configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xf86-video-xgi 1.6.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 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 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$1; test $as_status -eq 0 && as_status=1
371 if test "$4"; then
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 fi
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
547 shift
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
550 :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
553 :
554 else
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
561 shift
562 cat <<_LT_EOF
563 $*
564 _LT_EOF
565 exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 then
580 break
581 fi
582 done
583 fi
584
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589 else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 ECHO="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 ECHO='print -r'
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 ECHO='printf %s\n'
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 ECHO=echo
665 fi
666 fi
667 fi
668 fi
669 fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='xf86-video-xgi'
704 PACKAGE_TARNAME='xf86-video-xgi'
705 PACKAGE_VERSION='1.6.0'
706 PACKAGE_STRING='xf86-video-xgi 1.6.0'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708 PACKAGE_URL=''
709
710 ac_unique_file="Makefile.am"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 # include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 # include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 DRIVER_NAME
752 moduledir
753 XSERVER_LIBPCIACCESS_FALSE
754 XSERVER_LIBPCIACCESS_TRUE
755 PCIACCESS_LIBS
756 PCIACCESS_CFLAGS
757 DRI_LIBS
758 DRI_CFLAGS
759 DRI_FALSE
760 DRI_TRUE
761 HAVE_XEXTPROTO_71_FALSE
762 HAVE_XEXTPROTO_71_TRUE
763 XEXT_LIBS
764 XEXT_CFLAGS
765 XORG_LIBS
766 XORG_CFLAGS
767 PKG_CONFIG_LIBDIR
768 PKG_CONFIG_PATH
769 PKG_CONFIG
770 CPP
771 OTOOL64
772 OTOOL
773 LIPO
774 NMEDIT
775 DSYMUTIL
776 lt_ECHO
777 RANLIB
778 AR
779 OBJDUMP
780 LN_S
781 NM
782 ac_ct_DUMPBIN
783 DUMPBIN
784 LD
785 FGREP
786 EGREP
787 GREP
788 SED
789 am__fastdepCC_FALSE
790 am__fastdepCC_TRUE
791 CCDEPMODE
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 host_os
806 host_vendor
807 host_cpu
808 host
809 build_os
810 build_vendor
811 build_cpu
812 build
813 LIBTOOL
814 MAINT
815 MAINTAINER_MODE_FALSE
816 MAINTAINER_MODE_TRUE
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files=''
879 ac_user_opts='
880 enable_option_checking
881 enable_maintainer_mode
882 enable_static
883 enable_shared
884 with_pic
885 enable_fast_install
886 enable_dependency_tracking
887 with_gnu_ld
888 enable_libtool_lock
889 with_xorg_module_dir
890 enable_dri
891 '
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 XORG_CFLAGS
905 XORG_LIBS
906 XEXT_CFLAGS
907 XEXT_LIBS
908 DRI_CFLAGS
909 DRI_LIBS
910 PCIACCESS_CFLAGS
911 PCIACCESS_LIBS'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
977 esac
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
989
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1004
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1009
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
1017 -disable-* | --disable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1066 exec_prefix=$ac_optarg ;;
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
1078
1079 -host | --host | --hos | --ho)
1080 ac_prev=host_alias ;;
1081 -host=* | --host=* | --hos=* | --ho=*)
1082 host_alias=$ac_optarg ;;
1083
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1095 includedir=$ac_optarg ;;
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100 infodir=$ac_optarg ;;
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105 libdir=$ac_optarg ;;
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1112 libexecdir=$ac_optarg ;;
1113
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
1120 | --localstate | --localstat | --localsta | --localst | --locals)
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124 localstatedir=$ac_optarg ;;
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129 mandir=$ac_optarg ;;
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136 | --no-cr | --no-c | -n)
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150 oldincludedir=$ac_optarg ;;
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155 prefix=$ac_optarg ;;
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162 program_prefix=$ac_optarg ;;
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169 program_suffix=$ac_optarg ;;
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1186 program_transform_name=$ac_optarg ;;
1187
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used" >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419 else
1420 ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425 fi
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1433 fi
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures xf86-video-xgi 1.6.0 to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-xgi]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1508
1509 cat <<\_ACEOF
1510
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of xf86-video-xgi 1.6.0:";;
1525 esac
1526 cat <<\_ACEOF
1527
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-static[=PKGS] build static libraries [default=no]
1535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-dri Disable DRI support [[default=auto]]
1542
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-xorg-module-dir=DIR
1550 Default xorg module directory
1551 [[default=$libdir/xorg/modules]]
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562 PKG_CONFIG path to pkg-config utility
1563 PKG_CONFIG_PATH
1564 directories to add to pkg-config's search path
1565 PKG_CONFIG_LIBDIR
1566 path overriding pkg-config's built-in search path
1567 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1568 XORG_LIBS linker flags for XORG, overriding pkg-config
1569 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1570 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1571 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1572 DRI_LIBS linker flags for DRI, overriding pkg-config
1573 PCIACCESS_CFLAGS
1574 C compiler flags for PCIACCESS, overriding pkg-config
1575 PCIACCESS_LIBS
1576 linker flags for PCIACCESS, overriding pkg-config
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589 test -d "$ac_dir" ||
1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591 continue
1592 ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611 .) # We are building in place.
1612 ac_srcdir=.
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
1616 ac_srcdir=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
1644 xf86-video-xgi configure 1.6.0
1645 generated by GNU Autoconf 2.67
1646
1647 Copyright (C) 2010 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext
1665 if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_link LINENO
1697 # -----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_link ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext conftest$ac_exeext
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest$ac_exeext && {
1722 test "$cross_compiling" = yes ||
1723 $as_test_x conftest$ac_exeext
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734 # interfere with the next link command; also delete a directory that is
1735 # left behind by Apple's compiler. We do this before executing the actions.
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_link
1741
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval "test \"\${$3+set}\"" = set; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761 else
1762 eval "$3=no"
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771 } # ac_fn_c_check_header_compile
1772
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_cpp ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_cpp
1809
1810 # ac_fn_c_try_run LINENO
1811 # ----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1813 # that executables *can* be run.
1814 ac_fn_c_try_run ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_link"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>&5
1825 ac_status=$?
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1828 { { case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_try") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; }; }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: program exited with status $ac_status" >&5
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=$ac_status
1845 fi
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_run
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval "test \"\${$3+set}\"" = set; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_func
1918
1919 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1920 # ---------------------------------------------
1921 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1922 # accordingly.
1923 ac_fn_c_check_decl ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 as_decl_name=`echo $2|sed 's/ *(.*//'`
1927 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1930 if eval "test \"\${$3+set}\"" = set; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 int
1937 main ()
1938 {
1939 #ifndef $as_decl_name
1940 #ifdef __cplusplus
1941 (void) $as_decl_use;
1942 #else
1943 (void) $as_decl_name;
1944 #endif
1945 #endif
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 eval "$3=yes"
1953 else
1954 eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962
1963 } # ac_fn_c_check_decl
1964 cat >config.log <<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1967
1968 It was created by xf86-video-xgi $as_me 1.6.0, which was
1969 generated by GNU Autoconf 2.67. Invocation command line was
1970
1971 $ $0 $@
1972
1973 _ACEOF
1974 exec 5>>config.log
1975 {
1976 cat <<_ASUNAME
1977 ## --------- ##
1978 ## Platform. ##
1979 ## --------- ##
1980
1981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986
1987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989
1990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997
1998 _ASUNAME
1999
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 $as_echo "PATH: $as_dir"
2006 done
2007 IFS=$as_save_IFS
2008
2009 } >&5
2010
2011 cat >&5 <<_ACEOF
2012
2013
2014 ## ----------- ##
2015 ## Core tests. ##
2016 ## ----------- ##
2017
2018 _ACEOF
2019
2020
2021 # Keep a trace of the command line.
2022 # Strip out --no-create and --no-recursion so they do not pile up.
2023 # Strip out --silent because we don't want to record it for future runs.
2024 # Also quote any args containing shell meta-characters.
2025 # Make two passes to allow for proper duplicate-argument suppression.
2026 ac_configure_args=
2027 ac_configure_args0=
2028 ac_configure_args1=
2029 ac_must_keep_next=false
2030 for ac_pass in 1 2
2031 do
2032 for ac_arg
2033 do
2034 case $ac_arg in
2035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037 | -silent | --silent | --silen | --sile | --sil)
2038 continue ;;
2039 *\'*)
2040 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 esac
2042 case $ac_pass in
2043 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 2)
2045 as_fn_append ac_configure_args1 " '$ac_arg'"
2046 if test $ac_must_keep_next = true; then
2047 ac_must_keep_next=false # Got value, back to normal.
2048 else
2049 case $ac_arg in
2050 *=* | --config-cache | -C | -disable-* | --disable-* \
2051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053 | -with-* | --with-* | -without-* | --without-* | --x)
2054 case "$ac_configure_args0 " in
2055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056 esac
2057 ;;
2058 -* ) ac_must_keep_next=true ;;
2059 esac
2060 fi
2061 as_fn_append ac_configure_args " '$ac_arg'"
2062 ;;
2063 esac
2064 done
2065 done
2066 { ac_configure_args0=; unset ac_configure_args0;}
2067 { ac_configure_args1=; unset ac_configure_args1;}
2068
2069 # When interrupted or exit'd, cleanup temporary files, and complete
2070 # config.log. We remove comments because anyway the quotes in there
2071 # would cause problems or look ugly.
2072 # WARNING: Use '\'' to represent an apostrophe within the trap.
2073 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074 trap 'exit_status=$?
2075 # Save into config.log some information that might help in debugging.
2076 {
2077 echo
2078
2079 $as_echo "## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##"
2082 echo
2083 # The following way of writing the cache mishandles newlines in values,
2084 (
2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in #(
2088 *${as_nl}*)
2089 case $ac_var in #(
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 esac
2093 case $ac_var in #(
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2097 esac ;;
2098 esac
2099 done
2100 (set) 2>&1 |
2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2103 sed -n \
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 ;; #(
2107 *)
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109 ;;
2110 esac |
2111 sort
2112 )
2113 echo
2114
2115 $as_echo "## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##"
2118 echo
2119 for ac_var in $ac_subst_vars
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2128
2129 if test -n "$ac_subst_files"; then
2130 $as_echo "## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##"
2133 echo
2134 for ac_var in $ac_subst_files
2135 do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 esac
2140 $as_echo "$ac_var='\''$ac_val'\''"
2141 done | sort
2142 echo
2143 fi
2144
2145 if test -s confdefs.h; then
2146 $as_echo "## ----------- ##
2147 ## confdefs.h. ##
2148 ## ----------- ##"
2149 echo
2150 cat confdefs.h
2151 echo
2152 fi
2153 test "$ac_signal" != 0 &&
2154 $as_echo "$as_me: caught signal $ac_signal"
2155 $as_echo "$as_me: exit $exit_status"
2156 } >&5
2157 rm -f core *.core core.conftest.* &&
2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159 exit $exit_status
2160 ' 0
2161 for ac_signal in 1 2 13 15; do
2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163 done
2164 ac_signal=0
2165
2166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 rm -f -r conftest* confdefs.h
2168
2169 $as_echo "/* confdefs.h */" > confdefs.h
2170
2171 # Predefined preprocessor variables.
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_NAME "$PACKAGE_NAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_STRING "$PACKAGE_STRING"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_URL "$PACKAGE_URL"
2195 _ACEOF
2196
2197
2198 # Let the site file select an alternate cache file if it wants to.
2199 # Prefer an explicitly selected file to automatically selected ones.
2200 ac_site_file1=NONE
2201 ac_site_file2=NONE
2202 if test -n "$CONFIG_SITE"; then
2203 # We do not want a PATH search for config.site.
2204 case $CONFIG_SITE in #((
2205 -*) ac_site_file1=./$CONFIG_SITE;;
2206 */*) ac_site_file1=$CONFIG_SITE;;
2207 *) ac_site_file1=./$CONFIG_SITE;;
2208 esac
2209 elif test "x$prefix" != xNONE; then
2210 ac_site_file1=$prefix/share/config.site
2211 ac_site_file2=$prefix/etc/config.site
2212 else
2213 ac_site_file1=$ac_default_prefix/share/config.site
2214 ac_site_file2=$ac_default_prefix/etc/config.site
2215 fi
2216 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 do
2218 test "x$ac_site_file" = xNONE && continue
2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2223 . "$ac_site_file" \
2224 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $? "failed to load site script $ac_site_file
2227 See \`config.log' for more details" "$LINENO" 5; }
2228 fi
2229 done
2230
2231 if test -r "$cache_file"; then
2232 # Some versions of bash will fail to source /dev/null (special files
2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 $as_echo "$as_me: loading cache $cache_file" >&6;}
2237 case $cache_file in
2238 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239 *) . "./$cache_file";;
2240 esac
2241 fi
2242 else
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 $as_echo "$as_me: creating cache $cache_file" >&6;}
2245 >$cache_file
2246 fi
2247
2248 # Check that the precious variables saved in the cache have kept the same
2249 # value.
2250 ac_cache_corrupted=false
2251 for ac_var in $ac_precious_vars; do
2252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253 eval ac_new_set=\$ac_env_${ac_var}_set
2254 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255 eval ac_new_val=\$ac_env_${ac_var}_value
2256 case $ac_old_set,$ac_new_set in
2257 set,)
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2261 ,set)
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2265 ,);;
2266 *)
2267 if test "x$ac_old_val" != "x$ac_new_val"; then
2268 # differences in whitespace do not lead to failure.
2269 ac_old_val_w=`echo x $ac_old_val`
2270 ac_new_val_w=`echo x $ac_new_val`
2271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274 ac_cache_corrupted=:
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278 eval $ac_var=\$ac_old_val
2279 fi
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2284 fi;;
2285 esac
2286 # Pass precious variables to config.status.
2287 if test "$ac_new_set" = set; then
2288 case $ac_new_val in
2289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290 *) ac_arg=$ac_var=$ac_new_val ;;
2291 esac
2292 case " $ac_configure_args " in
2293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295 esac
2296 fi
2297 done
2298 if $ac_cache_corrupted; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 fi
2305 ## -------------------- ##
2306 ## Main body of script. ##
2307 ## -------------------- ##
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315
2316 RELEASE_DATE="27 August 2007"
2317
2318
2319 ac_config_headers="$ac_config_headers config.h"
2320
2321 ac_aux_dir=
2322 for ac_dir in . "$srcdir"/.; do
2323 if test -f "$ac_dir/install-sh"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/install-sh -c"
2326 break
2327 elif test -f "$ac_dir/install.sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install.sh -c"
2330 break
2331 elif test -f "$ac_dir/shtool"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/shtool install -c"
2334 break
2335 fi
2336 done
2337 if test -z "$ac_aux_dir"; then
2338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2339 fi
2340
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2348
2349
2350
2351 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2352 #m4_ifndef([XORG_MACROS_VERSION],
2353 # [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
2354 XORG_MACROS_VERSION(1.8)
2355 XORG_DEFAULT_OPTIONS
2356
2357 # Initialize Automake
2358 am__api_version='1.11'
2359
2360 # Find a good install program. We prefer a C program (faster),
2361 # so one script is as good as another. But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2366 # AIX /bin/install
2367 # AmigaOS /C/install, which installs bootblocks on floppy discs
2368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371 # OS/2's system install, which has a completely different semantic
2372 # ./install, which can be erroneously created by make from ./install.sh.
2373 # Reject install programs that cannot install multiple files.
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2376 if test -z "$INSTALL"; then
2377 if test "${ac_cv_path_install+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 # Account for people who put trailing slashes in PATH elements.
2386 case $as_dir/ in #((
2387 ./ | .// | /[cC]/* | \
2388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390 /usr/ucb/* ) ;;
2391 *)
2392 # OSF1 and SCO ODT 3.0 have their own names for install.
2393 # Don't use installbsd from OSF since it installs stuff as root
2394 # by default.
2395 for ac_prog in ginstall scoinst install; do
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2398 if test $ac_prog = install &&
2399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # AIX install. It has an incompatible calling convention.
2401 :
2402 elif test $ac_prog = install &&
2403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # program-specific install script used by HP pwplus--don't use.
2405 :
2406 else
2407 rm -rf conftest.one conftest.two conftest.dir
2408 echo one > conftest.one
2409 echo two > conftest.two
2410 mkdir conftest.dir
2411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412 test -s conftest.one && test -s conftest.two &&
2413 test -s conftest.dir/conftest.one &&
2414 test -s conftest.dir/conftest.two
2415 then
2416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417 break 3
2418 fi
2419 fi
2420 fi
2421 done
2422 done
2423 ;;
2424 esac
2425
2426 done
2427 IFS=$as_save_IFS
2428
2429 rm -rf conftest.one conftest.two conftest.dir
2430
2431 fi
2432 if test "${ac_cv_path_install+set}" = set; then
2433 INSTALL=$ac_cv_path_install
2434 else
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for INSTALL within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 INSTALL=$ac_install_sh
2440 fi
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443 $as_echo "$INSTALL" >&6; }
2444
2445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446 # It thinks the first close brace ends the variable substitution.
2447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454 $as_echo_n "checking whether build environment is sane... " >&6; }
2455 # Just in case
2456 sleep 1
2457 echo timestamp > conftest.file
2458 # Reject unsafe characters in $srcdir or the absolute working directory
2459 # name. Accept space and tab only in the latter.
2460 am_lf='
2461 '
2462 case `pwd` in
2463 *[\\\"\#\$\&\'\`$am_lf]*)
2464 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2465 esac
2466 case $srcdir in
2467 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2468 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2469 esac
2470
2471 # Do `set' in a subshell so we don't clobber the current shell's
2472 # arguments. Must try -L first in case configure is actually a
2473 # symlink; some systems play weird games with the mod time of symlinks
2474 # (eg FreeBSD returns the mod time of the symlink's containing
2475 # directory).
2476 if (
2477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478 if test "$*" = "X"; then
2479 # -L didn't work.
2480 set X `ls -t "$srcdir/configure" conftest.file`
2481 fi
2482 rm -f conftest.file
2483 if test "$*" != "X $srcdir/configure conftest.file" \
2484 && test "$*" != "X conftest.file $srcdir/configure"; then
2485
2486 # If neither matched, then we have a broken ls. This can happen
2487 # if, for instance, CONFIG_SHELL is bash and it inherits a
2488 # broken ls alias from the environment. This has actually
2489 # happened. Such a system could not be considered "sane".
2490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2491 alias in your environment" "$LINENO" 5
2492 fi
2493
2494 test "$2" = conftest.file
2495 )
2496 then
2497 # Ok.
2498 :
2499 else
2500 as_fn_error $? "newly created file is older than distributed files!
2501 Check your system clock" "$LINENO" 5
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 test "$program_prefix" != NONE &&
2506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2507 # Use a double $ so make ignores it.
2508 test "$program_suffix" != NONE &&
2509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2510 # Double any \ or $.
2511 # By default was `s,x,x', remove it if useless.
2512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2514
2515 # expand $ac_aux_dir to an absolute path
2516 am_aux_dir=`cd $ac_aux_dir && pwd`
2517
2518 if test x"${MISSING+set}" != xset; then
2519 case $am_aux_dir in
2520 *\ * | *\ *)
2521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2522 *)
2523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2524 esac
2525 fi
2526 # Use eval to expand $SHELL
2527 if eval "$MISSING --run true"; then
2528 am_missing_run="$MISSING --run "
2529 else
2530 am_missing_run=
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2532 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2533 fi
2534
2535 if test x"${install_sh}" != xset; then
2536 case $am_aux_dir in
2537 *\ * | *\ *)
2538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2539 *)
2540 install_sh="\${SHELL} $am_aux_dir/install-sh"
2541 esac
2542 fi
2543
2544 # Installed binaries are usually stripped using `strip' when the user
2545 # run `make install-strip'. However `strip' might not be the right
2546 # tool to use in cross-compilation environments, therefore Automake
2547 # will honor the `STRIP' environment variable to overrule this program.
2548 if test "$cross_compiling" != no; then
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}strip; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if test "${ac_cv_prog_STRIP+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$STRIP"; then
2558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 STRIP=$ac_cv_prog_STRIP
2578 if test -n "$STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2580 $as_echo "$STRIP" >&6; }
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 fi
2585
2586
2587 fi
2588 if test -z "$ac_cv_prog_STRIP"; then
2589 ac_ct_STRIP=$STRIP
2590 # Extract the first word of "strip", so it can be a program name with args.
2591 set dummy strip; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$ac_ct_STRIP"; then
2598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_ac_ct_STRIP="strip"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2618 if test -n "$ac_ct_STRIP"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2620 $as_echo "$ac_ct_STRIP" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2625
2626 if test "x$ac_ct_STRIP" = x; then
2627 STRIP=":"
2628 else
2629 case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633 ac_tool_warned=yes ;;
2634 esac
2635 STRIP=$ac_ct_STRIP
2636 fi
2637 else
2638 STRIP="$ac_cv_prog_STRIP"
2639 fi
2640
2641 fi
2642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2646 if test -z "$MKDIR_P"; then
2647 if test "${ac_cv_path_mkdir+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_prog in mkdir gmkdir; do
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2659 'mkdir (GNU coreutils) '* | \
2660 'mkdir (coreutils) '* | \
2661 'mkdir (fileutils) '4.1*)
2662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2663 break 3;;
2664 esac
2665 done
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671
2672 test -d ./--version && rmdir ./--version
2673 if test "${ac_cv_path_mkdir+set}" = set; then
2674 MKDIR_P="$ac_cv_path_mkdir -p"
2675 else
2676 # As a last resort, use the slow shell script. Don't cache a
2677 # value for MKDIR_P within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the value is a relative name.
2680 MKDIR_P="$ac_install_sh -d"
2681 fi
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2684 $as_echo "$MKDIR_P" >&6; }
2685
2686 mkdir_p="$MKDIR_P"
2687 case $mkdir_p in
2688 [\\/$]* | ?:[\\/]*) ;;
2689 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2690 esac
2691
2692 for ac_prog in gawk mawk nawk awk
2693 do
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_AWK+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$AWK"; then
2702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_AWK="$ac_prog"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 AWK=$ac_cv_prog_AWK
2722 if test -n "$AWK"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724 $as_echo "$AWK" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731 test -n "$AWK" && break
2732 done
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2736 set x ${MAKE-make}
2737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2738 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat >conftest.make <<\_ACEOF
2742 SHELL = /bin/sh
2743 all:
2744 @echo '@@@%%%=$(MAKE)=@@@%%%'
2745 _ACEOF
2746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2747 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2748 *@@@%%%=?*=@@@%%%*)
2749 eval ac_cv_prog_make_${ac_make}_set=yes;;
2750 *)
2751 eval ac_cv_prog_make_${ac_make}_set=no;;
2752 esac
2753 rm -f conftest.make
2754 fi
2755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757 $as_echo "yes" >&6; }
2758 SET_MAKE=
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 SET_MAKE="MAKE=${MAKE-make}"
2763 fi
2764
2765 rm -rf .tst 2>/dev/null
2766 mkdir .tst 2>/dev/null
2767 if test -d .tst; then
2768 am__leading_dot=.
2769 else
2770 am__leading_dot=_
2771 fi
2772 rmdir .tst 2>/dev/null
2773
2774 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2775 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2776 # is not polluted with repeated "-I."
2777 am__isrc=' -I$(srcdir)'
2778 # test to see if srcdir already configured
2779 if test -f $srcdir/config.status; then
2780 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2781 fi
2782 fi
2783
2784 # test whether we have cygpath
2785 if test -z "$CYGPATH_W"; then
2786 if (cygpath --version) >/dev/null 2>/dev/null; then
2787 CYGPATH_W='cygpath -w'
2788 else
2789 CYGPATH_W=echo
2790 fi
2791 fi
2792
2793
2794 # Define the identity of the package.
2795 PACKAGE='xf86-video-xgi'
2796 VERSION='1.6.0'
2797
2798
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE "$PACKAGE"
2801 _ACEOF
2802
2803
2804 cat >>confdefs.h <<_ACEOF
2805 #define VERSION "$VERSION"
2806 _ACEOF
2807
2808 # Some tools Automake needs.
2809
2810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811
2812
2813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814
2815
2816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817
2818
2819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2820
2821
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823
2824 # We need awk for the "check" target. The system "awk" is bad on
2825 # some platforms.
2826 # Always define AMTAR for backward compatibility.
2827
2828 AMTAR=${AMTAR-"${am_missing_run}tar"}
2829
2830 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2831
2832
2833
2834
2835
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2838 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2839 # Check whether --enable-maintainer-mode was given.
2840 if test "${enable_maintainer_mode+set}" = set; then :
2841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2842 else
2843 USE_MAINTAINER_MODE=no
2844 fi
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2847 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2848 if test $USE_MAINTAINER_MODE = yes; then
2849 MAINTAINER_MODE_TRUE=
2850 MAINTAINER_MODE_FALSE='#'
2851 else
2852 MAINTAINER_MODE_TRUE='#'
2853 MAINTAINER_MODE_FALSE=
2854 fi
2855
2856 MAINT=$MAINTAINER_MODE_TRUE
2857
2858
2859
2860 # Initialize libtool
2861 # Check whether --enable-static was given.
2862 if test "${enable_static+set}" = set; then :
2863 enableval=$enable_static; p=${PACKAGE-default}
2864 case $enableval in
2865 yes) enable_static=yes ;;
2866 no) enable_static=no ;;
2867 *)
2868 enable_static=no
2869 # Look at the argument we got. We use all the common list separators.
2870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871 for pkg in $enableval; do
2872 IFS="$lt_save_ifs"
2873 if test "X$pkg" = "X$p"; then
2874 enable_static=yes
2875 fi
2876 done
2877 IFS="$lt_save_ifs"
2878 ;;
2879 esac
2880 else
2881 enable_static=no
2882 fi
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892 case `pwd` in
2893 *\ * | *\ *)
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2895 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2896 esac
2897
2898
2899
2900 macro_version='2.2.6b'
2901 macro_revision='1.3017'
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915 ltmain="$ac_aux_dir/ltmain.sh"
2916
2917 # Make sure we can run config.sub.
2918 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2919 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2922 $as_echo_n "checking build system type... " >&6; }
2923 if test "${ac_cv_build+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 ac_build_alias=$build_alias
2927 test "x$ac_build_alias" = x &&
2928 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2929 test "x$ac_build_alias" = x &&
2930 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2931 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2933
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2936 $as_echo "$ac_cv_build" >&6; }
2937 case $ac_cv_build in
2938 *-*-*) ;;
2939 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2940 esac
2941 build=$ac_cv_build
2942 ac_save_IFS=$IFS; IFS='-'
2943 set x $ac_cv_build
2944 shift
2945 build_cpu=$1
2946 build_vendor=$2
2947 shift; shift
2948 # Remember, the first character of IFS is used to create $*,
2949 # except with old shells:
2950 build_os=$*
2951 IFS=$ac_save_IFS
2952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2953
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2956 $as_echo_n "checking host system type... " >&6; }
2957 if test "${ac_cv_host+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test "x$host_alias" = x; then
2961 ac_cv_host=$ac_cv_build
2962 else
2963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2965 fi
2966
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2969 $as_echo "$ac_cv_host" >&6; }
2970 case $ac_cv_host in
2971 *-*-*) ;;
2972 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2973 esac
2974 host=$ac_cv_host
2975 ac_save_IFS=$IFS; IFS='-'
2976 set x $ac_cv_host
2977 shift
2978 host_cpu=$1
2979 host_vendor=$2
2980 shift; shift
2981 # Remember, the first character of IFS is used to create $*,
2982 # except with old shells:
2983 host_os=$*
2984 IFS=$ac_save_IFS
2985 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2986
2987
2988 DEPDIR="${am__leading_dot}deps"
2989
2990 ac_config_commands="$ac_config_commands depfiles"
2991
2992
2993 am_make=${MAKE-make}
2994 cat > confinc << 'END'
2995 am__doit:
2996 @echo this is the am__doit target
2997 .PHONY: am__doit
2998 END
2999 # If we don't find an include directive, just comment out the code.
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3001 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3002 am__include="#"
3003 am__quote=
3004 _am_result=none
3005 # First try GNU make style include.
3006 echo "include confinc" > confmf
3007 # Ignore all kinds of additional output from `make'.
3008 case `$am_make -s -f confmf 2> /dev/null` in #(
3009 *the\ am__doit\ target*)
3010 am__include=include
3011 am__quote=
3012 _am_result=GNU
3013 ;;
3014 esac
3015 # Now try BSD make style include.
3016 if test "$am__include" = "#"; then
3017 echo '.include "confinc"' > confmf
3018 case `$am_make -s -f confmf 2> /dev/null` in #(
3019 *the\ am__doit\ target*)
3020 am__include=.include
3021 am__quote="\""
3022 _am_result=BSD
3023 ;;
3024 esac
3025 fi
3026
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3029 $as_echo "$_am_result" >&6; }
3030 rm -f confinc confmf
3031
3032 # Check whether --enable-dependency-tracking was given.
3033 if test "${enable_dependency_tracking+set}" = set; then :
3034 enableval=$enable_dependency_tracking;
3035 fi
3036
3037 if test "x$enable_dependency_tracking" != xno; then
3038 am_depcomp="$ac_aux_dir/depcomp"
3039 AMDEPBACKSLASH='\'
3040 fi
3041 if test "x$enable_dependency_tracking" != xno; then
3042 AMDEP_TRUE=
3043 AMDEP_FALSE='#'
3044 else
3045 AMDEP_TRUE='#'
3046 AMDEP_FALSE=
3047 fi
3048
3049
3050 ac_ext=c
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092
3093 fi
3094 if test -z "$ac_cv_prog_CC"; then
3095 ac_ct_CC=$CC
3096 # Extract the first word of "gcc", so it can be a program name with args.
3097 set dummy gcc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_ac_ct_CC="gcc"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3126 $as_echo "$ac_ct_CC" >&6; }
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132 if test "x$ac_ct_CC" = x; then
3133 CC=""
3134 else
3135 case $cross_compiling:$ac_tool_warned in
3136 yes:)
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139 ac_tool_warned=yes ;;
3140 esac
3141 CC=$ac_ct_CC
3142 fi
3143 else
3144 CC="$ac_cv_prog_CC"
3145 fi
3146
3147 if test -z "$CC"; then
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}cc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="${ac_tool_prefix}cc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 fi
3188 if test -z "$CC"; then
3189 # Extract the first word of "cc", so it can be a program name with args.
3190 set dummy cc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 else
3199 ac_prog_rejected=no
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3208 ac_prog_rejected=yes
3209 continue
3210 fi
3211 ac_cv_prog_CC="cc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 if test $ac_prog_rejected = yes; then
3220 # We found a bogon in the path, so make sure we never use it.
3221 set dummy $ac_cv_prog_CC
3222 shift
3223 if test $# != 0; then
3224 # We chose a different compiler from the bogus one.
3225 # However, it has the same basename, so the bogon will be chosen
3226 # first if we set CC to just the basename; use the full file name.
3227 shift
3228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229 fi
3230 fi
3231 fi
3232 fi
3233 CC=$ac_cv_prog_CC
3234 if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243 fi
3244 if test -z "$CC"; then
3245 if test -n "$ac_tool_prefix"; then
3246 for ac_prog in cl.exe
3247 do
3248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if test "${ac_cv_prog_CC+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test -n "$CC"; then
3256 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261 IFS=$as_save_IFS
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285 test -n "$CC" && break
3286 done
3287 fi
3288 if test -z "$CC"; then
3289 ac_ct_CC=$CC
3290 for ac_prog in cl.exe
3291 do
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322 $as_echo "$ac_ct_CC" >&6; }
3323 else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329 test -n "$ac_ct_CC" && break
3330 done
3331
3332 if test "x$ac_ct_CC" = x; then
3333 CC=""
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 CC=$ac_ct_CC
3342 fi
3343 fi
3344
3345 fi
3346
3347
3348 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "no acceptable C compiler found in \$PATH
3351 See \`config.log' for more details" "$LINENO" 5; }
3352
3353 # Provide some information about the compiler.
3354 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3355 set X $ac_compile
3356 ac_compiler=$2
3357 for ac_option in --version -v -V -qversion; do
3358 { { ac_try="$ac_compiler $ac_option >&5"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3366 ac_status=$?
3367 if test -s conftest.err; then
3368 sed '10a\
3369 ... rest of stderr output deleted ...
3370 10q' conftest.err >conftest.er1
3371 cat conftest.er1 >&5
3372 fi
3373 rm -f conftest.er1 conftest.err
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }
3376 done
3377
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 int
3382 main ()
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3393 # of exeext.
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3395 $as_echo_n "checking whether the C compiler works... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3400
3401 ac_rmfiles=
3402 for ac_file in $ac_files
3403 do
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3407 esac
3408 done
3409 rm -f $ac_rmfiles
3410
3411 if { { ac_try="$ac_link_default"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_link_default") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; then :
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3426 # Autoconf.
3427 for ac_file in $ac_files ''
3428 do
3429 test -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3432 ;;
3433 [ab].out )
3434 # We found the default executable, but exeext='' is most
3435 # certainly right.
3436 break;;
3437 *.* )
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439 then :; else
3440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441 fi
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3446 # actually working.
3447 break;;
3448 * )
3449 break;;
3450 esac
3451 done
3452 test "$ac_cv_exeext" = no && ac_cv_exeext=
3453
3454 else
3455 ac_file=''
3456 fi
3457 if test -z "$ac_file"; then :
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error 77 "C compiler cannot create executables
3466 See \`config.log' for more details" "$LINENO" 5; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469 $as_echo "yes" >&6; }
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3472 $as_echo_n "checking for C compiler default output file name... " >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 ac_exeext=$ac_cv_exeext
3476
3477 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3478 ac_clean_files=$ac_clean_files_save
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3480 $as_echo_n "checking for suffix of executables... " >&6; }
3481 if { { ac_try="$ac_link"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3494 # work properly (i.e., refer to `conftest.exe'), while it won't with
3495 # `rm'.
3496 for ac_file in conftest.exe conftest conftest.*; do
3497 test -f "$ac_file" || continue
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501 break;;
3502 * ) break;;
3503 esac
3504 done
3505 else
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 fi
3511 rm -f conftest conftest$ac_cv_exeext
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3513 $as_echo "$ac_cv_exeext" >&6; }
3514
3515 rm -f conftest.$ac_ext
3516 EXEEXT=$ac_cv_exeext
3517 ac_exeext=$EXEEXT
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <stdio.h>
3521 int
3522 main ()
3523 {
3524 FILE *f = fopen ("conftest.out", "w");
3525 return ferror (f) || fclose (f) != 0;
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 ac_clean_files="$ac_clean_files conftest.out"
3532 # Check that the compiler produces executables we can run. If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3535 $as_echo_n "checking whether we are cross compiling... " >&6; }
3536 if test "$cross_compiling" != yes; then
3537 { { ac_try="$ac_link"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_link") 2>&5
3545 ac_status=$?
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }
3548 if { ac_try='./conftest$ac_cv_exeext'
3549 { { case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_try") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; }; then
3559 cross_compiling=no
3560 else
3561 if test "$cross_compiling" = maybe; then
3562 cross_compiling=yes
3563 else
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot run C compiled programs.
3567 If you meant to cross compile, use \`--host'.
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 fi
3570 fi
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3573 $as_echo "$cross_compiling" >&6; }
3574
3575 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3576 ac_clean_files=$ac_clean_files_save
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578 $as_echo_n "checking for suffix of object files... " >&6; }
3579 if test "${ac_cv_objext+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.o conftest.obj
3594 if { { ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compile") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 for ac_file in conftest.o conftest.obj conftest.*; do
3606 test -f "$ac_file" || continue;
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610 break;;
3611 esac
3612 done
3613 else
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "cannot compute suffix of object files: cannot compile
3620 See \`config.log' for more details" "$LINENO" 5; }
3621 fi
3622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625 $as_echo "$ac_cv_objext" >&6; }
3626 OBJEXT=$ac_cv_objext
3627 ac_objext=$OBJEXT
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639 #ifndef __GNUC__
3640 choke me
3641 #endif
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_compiler_gnu=yes
3649 else
3650 ac_compiler_gnu=no
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3654
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3659 GCC=yes
3660 else
3661 GCC=
3662 fi
3663 ac_test_CFLAGS=${CFLAGS+set}
3664 ac_save_CFLAGS=$CFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3667 if test "${ac_cv_prog_cc_g+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_save_c_werror_flag=$ac_c_werror_flag
3671 ac_c_werror_flag=yes
3672 ac_cv_prog_cc_g=no
3673 CFLAGS="-g"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_g=yes
3687 else
3688 CFLAGS=""
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701
3702 else
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729 CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731 if test "$GCC" = yes; then
3732 CFLAGS="-g -O2"
3733 else
3734 CFLAGS="-g"
3735 fi
3736 else
3737 if test "$GCC" = yes; then
3738 CFLAGS="-O2"
3739 else
3740 CFLAGS=
3741 fi
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 ac_cv_prog_cc_c89=no
3749 ac_save_CC=$CC
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752 #include <stdarg.h>
3753 #include <stdio.h>
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3760 char **p;
3761 int i;
3762 {
3763 return p[i];
3764 }
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3766 {
3767 char *s;
3768 va_list v;
3769 va_start (v,p);
3770 s = g (p, va_arg (v,int));
3771 va_end (v);
3772 return s;
3773 }
3774
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3786 #define FOO(x) 'x'
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793 int argc;
3794 char **argv;
3795 int
3796 main ()
3797 {
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 do
3806 CC="$ac_save_CC $ac_arg"
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_c89=$ac_arg
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext
3811 test "x$ac_cv_prog_cc_c89" != "xno" && break
3812 done
3813 rm -f conftest.$ac_ext
3814 CC=$ac_save_CC
3815
3816 fi
3817 # AC_CACHE_VAL
3818 case "x$ac_cv_prog_cc_c89" in
3819 x)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 $as_echo "none needed" >&6; } ;;
3822 xno)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824 $as_echo "unsupported" >&6; } ;;
3825 *)
3826 CC="$CC $ac_cv_prog_cc_c89"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829 esac
3830 if test "x$ac_cv_prog_cc_c89" != xno; then :
3831
3832 fi
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 depcc="$CC" am_compiler_list=
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D' -- because `-MD' means `put the output
3852 # in D'.
3853 mkdir conftest.dir
3854 # Copy depcomp to subdir because otherwise we won't find it if we're
3855 # using a relative directory.
3856 cp "$am_depcomp" conftest.dir
3857 cd conftest.dir
3858 # We will build objects and dependencies in a subdirectory because
3859 # it helps to detect inapplicable dependency modes. For instance
3860 # both Tru64's cc and ICC support -MD to output dependencies as a
3861 # side effect of compilation, but ICC will put the dependencies in
3862 # the current directory while Tru64 will put them in the object
3863 # directory.
3864 mkdir sub
3865
3866 am_cv_CC_dependencies_compiler_type=none
3867 if test "$am_compiler_list" = ""; then
3868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3869 fi
3870 am__universal=false
3871 case " $depcc " in #(
3872 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3873 esac
3874
3875 for depmode in $am_compiler_list; do
3876 # Setup a source with many dependencies, because some compilers
3877 # like to wrap large dependency lists on column 80 (with \), and
3878 # we should not choose a depcomp mode which is confused by this.
3879 #
3880 # We need to recreate these files for each test, as the compiler may
3881 # overwrite some of them when testing with obscure command lines.
3882 # This happens at least with the AIX C compiler.
3883 : > sub/conftest.c
3884 for i in 1 2 3 4 5 6; do
3885 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3886 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3887 # Solaris 8's {/usr,}/bin/sh.
3888 touch sub/conftst$i.h
3889 done
3890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3891
3892 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3893 # mode. It turns out that the SunPro C++ compiler does not properly
3894 # handle `-M -o', and we need to detect this. Also, some Intel
3895 # versions had trouble with output in subdirs
3896 am__obj=sub/conftest.${OBJEXT-o}
3897 am__minus_obj="-o $am__obj"
3898 case $depmode in
3899 gcc)
3900 # This depmode causes a compiler race in universal mode.
3901 test "$am__universal" = false || continue
3902 ;;
3903 nosideeffect)
3904 # after this tag, mechanisms are not by side-effect, so they'll
3905 # only be used when explicitly requested
3906 if test "x$enable_dependency_tracking" = xyes; then
3907 continue
3908 else
3909 break
3910 fi
3911 ;;
3912 msvisualcpp | msvcmsys)
3913 # This compiler won't grok `-c -o', but also, the minuso test has
3914 # not run yet. These depmodes are late enough in the game, and
3915 # so weak that their functioning should not be impacted.
3916 am__obj=conftest.${OBJEXT-o}
3917 am__minus_obj=
3918 ;;
3919 none) break ;;
3920 esac
3921 if depmode=$depmode \
3922 source=sub/conftest.c object=$am__obj \
3923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3924 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3925 >/dev/null 2>conftest.err &&
3926 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3930 # icc doesn't choke on unknown options, it will just issue warnings
3931 # or remarks (even with -Werror). So we grep stderr for any message
3932 # that says an option was ignored or not supported.
3933 # When given -MP, icc 7.0 and 7.1 complain thusly:
3934 # icc: Command line warning: ignoring option '-M'; no argument required
3935 # The diagnosis changed in icc 8.0:
3936 # icc: Command line remark: option '-MP' not supported
3937 if (grep 'ignoring option' conftest.err ||
3938 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3939 am_cv_CC_dependencies_compiler_type=$depmode
3940 break
3941 fi
3942 fi
3943 done
3944
3945 cd ..
3946 rm -rf conftest.dir
3947 else
3948 am_cv_CC_dependencies_compiler_type=none
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3953 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3954 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3955
3956 if
3957 test "x$enable_dependency_tracking" != xno \
3958 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3959 am__fastdepCC_TRUE=
3960 am__fastdepCC_FALSE='#'
3961 else
3962 am__fastdepCC_TRUE='#'
3963 am__fastdepCC_FALSE=
3964 fi
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3968 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3969 if test "${ac_cv_path_SED+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3973 for ac_i in 1 2 3 4 5 6 7; do
3974 ac_script="$ac_script$as_nl$ac_script"
3975 done
3976 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3977 { ac_script=; unset ac_script;}
3978 if test -z "$SED"; then
3979 ac_path_SED_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in sed gsed; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3989 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3990 # Check for GNU ac_path_SED and select it if it is found.
3991 # Check for GNU $ac_path_SED
3992 case `"$ac_path_SED" --version 2>&1` in
3993 *GNU*)
3994 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3995 *)
3996 ac_count=0
3997 $as_echo_n 0123456789 >"conftest.in"
3998 while :
3999 do
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 $as_echo '' >> "conftest.nl"
4004 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 as_fn_arith $ac_count + 1 && ac_count=$as_val
4007 if test $ac_count -gt ${ac_path_SED_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_SED="$ac_path_SED"
4010 ac_path_SED_max=$ac_count
4011 fi
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4017
4018 $ac_path_SED_found && break 3
4019 done
4020 done
4021 done
4022 IFS=$as_save_IFS
4023 if test -z "$ac_cv_path_SED"; then
4024 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4025 fi
4026 else
4027 ac_cv_path_SED=$SED
4028 fi
4029
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4032 $as_echo "$ac_cv_path_SED" >&6; }
4033 SED="$ac_cv_path_SED"
4034 rm -f conftest.sed
4035
4036 test -z "$SED" && SED=sed
4037 Xsed="$SED -e 1s/^X//"
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4050 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4051 if test "${ac_cv_path_GREP+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -z "$GREP"; then
4055 ac_path_GREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in grep ggrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4066 # Check for GNU ac_path_GREP and select it if it is found.
4067 # Check for GNU $ac_path_GREP
4068 case `"$ac_path_GREP" --version 2>&1` in
4069 *GNU*)
4070 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4071 *)
4072 ac_count=0
4073 $as_echo_n 0123456789 >"conftest.in"
4074 while :
4075 do
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 $as_echo 'GREP' >> "conftest.nl"
4080 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 as_fn_arith $ac_count + 1 && ac_count=$as_val
4083 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_GREP="$ac_path_GREP"
4086 ac_path_GREP_max=$ac_count
4087 fi
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4093
4094 $ac_path_GREP_found && break 3
4095 done
4096 done
4097 done
4098 IFS=$as_save_IFS
4099 if test -z "$ac_cv_path_GREP"; then
4100 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4101 fi
4102 else
4103 ac_cv_path_GREP=$GREP
4104 fi
4105
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4108 $as_echo "$ac_cv_path_GREP" >&6; }
4109 GREP="$ac_cv_path_GREP"
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4113 $as_echo_n "checking for egrep... " >&6; }
4114 if test "${ac_cv_path_EGREP+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4118 then ac_cv_path_EGREP="$GREP -E"
4119 else
4120 if test -z "$EGREP"; then
4121 ac_path_EGREP_found=false
4122 # Loop through the user's path and test for each of PROGNAME-LIST
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_prog in egrep; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4132 # Check for GNU ac_path_EGREP and select it if it is found.
4133 # Check for GNU $ac_path_EGREP
4134 case `"$ac_path_EGREP" --version 2>&1` in
4135 *GNU*)
4136 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4137 *)
4138 ac_count=0
4139 $as_echo_n 0123456789 >"conftest.in"
4140 while :
4141 do
4142 cat "conftest.in" "conftest.in" >"conftest.tmp"
4143 mv "conftest.tmp" "conftest.in"
4144 cp "conftest.in" "conftest.nl"
4145 $as_echo 'EGREP' >> "conftest.nl"
4146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148 as_fn_arith $ac_count + 1 && ac_count=$as_val
4149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4150 # Best one so far, save it but keep looking for a better one
4151 ac_cv_path_EGREP="$ac_path_EGREP"
4152 ac_path_EGREP_max=$ac_count
4153 fi
4154 # 10*(2^10) chars as input seems more than enough
4155 test $ac_count -gt 10 && break
4156 done
4157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158 esac
4159
4160 $ac_path_EGREP_found && break 3
4161 done
4162 done
4163 done
4164 IFS=$as_save_IFS
4165 if test -z "$ac_cv_path_EGREP"; then
4166 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167 fi
4168 else
4169 ac_cv_path_EGREP=$EGREP
4170 fi
4171
4172 fi
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4175 $as_echo "$ac_cv_path_EGREP" >&6; }
4176 EGREP="$ac_cv_path_EGREP"
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4180 $as_echo_n "checking for fgrep... " >&6; }
4181 if test "${ac_cv_path_FGREP+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4185 then ac_cv_path_FGREP="$GREP -F"
4186 else
4187 if test -z "$FGREP"; then
4188 ac_path_FGREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in fgrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4199 # Check for GNU ac_path_FGREP and select it if it is found.
4200 # Check for GNU $ac_path_FGREP
4201 case `"$ac_path_FGREP" --version 2>&1` in
4202 *GNU*)
4203 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4204 *)
4205 ac_count=0
4206 $as_echo_n 0123456789 >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo 'FGREP' >> "conftest.nl"
4213 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_FGREP="$ac_path_FGREP"
4219 ac_path_FGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4226
4227 $ac_path_FGREP_found && break 3
4228 done
4229 done
4230 done
4231 IFS=$as_save_IFS
4232 if test -z "$ac_cv_path_FGREP"; then
4233 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 fi
4235 else
4236 ac_cv_path_FGREP=$FGREP
4237 fi
4238
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4242 $as_echo "$ac_cv_path_FGREP" >&6; }
4243 FGREP="$ac_cv_path_FGREP"
4244
4245
4246 test -z "$GREP" && GREP=grep
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266 # Check whether --with-gnu-ld was given.
4267 if test "${with_gnu_ld+set}" = set; then :
4268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4269 else
4270 with_gnu_ld=no
4271 fi
4272
4273 ac_prog=ld
4274 if test "$GCC" = yes; then
4275 # Check if gcc -print-prog-name=ld gives a path.
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4277 $as_echo_n "checking for ld used by $CC... " >&6; }
4278 case $host in
4279 *-*-mingw*)
4280 # gcc leaves a trailing carriage return which upsets mingw
4281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4282 *)
4283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4284 esac
4285 case $ac_prog in
4286 # Accept absolute paths.
4287 [\\/]* | ?:[\\/]*)
4288 re_direlt='/[^/][^/]*/\.\./'
4289 # Canonicalize the pathname of ld
4290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4293 done
4294 test -z "$LD" && LD="$ac_prog"
4295 ;;
4296 "")
4297 # If it fails, then pretend we aren't using GCC.
4298 ac_prog=ld
4299 ;;
4300 *)
4301 # If it is relative, then search for the first ld in PATH.
4302 with_gnu_ld=unknown
4303 ;;
4304 esac
4305 elif test "$with_gnu_ld" = yes; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4307 $as_echo_n "checking for GNU ld... " >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4310 $as_echo_n "checking for non-GNU ld... " >&6; }
4311 fi
4312 if test "${lt_cv_path_LD+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -z "$LD"; then
4316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4317 for ac_dir in $PATH; do
4318 IFS="$lt_save_ifs"
4319 test -z "$ac_dir" && ac_dir=.
4320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4321 lt_cv_path_LD="$ac_dir/$ac_prog"
4322 # Check to see if the program is GNU ld. I'd rather use --version,
4323 # but apparently some variants of GNU ld only accept -v.
4324 # Break only if it was the GNU/non-GNU ld that we prefer.
4325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4326 *GNU* | *'with BFD'*)
4327 test "$with_gnu_ld" != no && break
4328 ;;
4329 *)
4330 test "$with_gnu_ld" != yes && break
4331 ;;
4332 esac
4333 fi
4334 done
4335 IFS="$lt_save_ifs"
4336 else
4337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4338 fi
4339 fi
4340
4341 LD="$lt_cv_path_LD"
4342 if test -n "$LD"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4344 $as_echo "$LD" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4352 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4356 case `$LD -v 2>&1 </dev/null` in
4357 *GNU* | *'with BFD'*)
4358 lt_cv_prog_gnu_ld=yes
4359 ;;
4360 *)
4361 lt_cv_prog_gnu_ld=no
4362 ;;
4363 esac
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4367 with_gnu_ld=$lt_cv_prog_gnu_ld
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4379 if test "${lt_cv_path_NM+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$NM"; then
4383 # Let the user override the test.
4384 lt_cv_path_NM="$NM"
4385 else
4386 lt_nm_to_check="${ac_tool_prefix}nm"
4387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4388 lt_nm_to_check="$lt_nm_to_check nm"
4389 fi
4390 for lt_tmp_nm in $lt_nm_to_check; do
4391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4393 IFS="$lt_save_ifs"
4394 test -z "$ac_dir" && ac_dir=.
4395 tmp_nm="$ac_dir/$lt_tmp_nm"
4396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4397 # Check to see if the nm accepts a BSD-compat flag.
4398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4399 # nm: unknown option "B" ignored
4400 # Tru64's nm complains that /dev/null is an invalid object file
4401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4402 */dev/null* | *'Invalid file or object type'*)
4403 lt_cv_path_NM="$tmp_nm -B"
4404 break
4405 ;;
4406 *)
4407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4408 */dev/null*)
4409 lt_cv_path_NM="$tmp_nm -p"
4410 break
4411 ;;
4412 *)
4413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4414 continue # so that we can try to find one that supports BSD flags
4415 ;;
4416 esac
4417 ;;
4418 esac
4419 fi
4420 done
4421 IFS="$lt_save_ifs"
4422 done
4423 : ${lt_cv_path_NM=no}
4424 fi
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4427 $as_echo "$lt_cv_path_NM" >&6; }
4428 if test "$lt_cv_path_NM" != "no"; then
4429 NM="$lt_cv_path_NM"
4430 else
4431 # Didn't find any BSD compatible name lister, look for dumpbin.
4432 if test -n "$ac_tool_prefix"; then
4433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4434 do
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$DUMPBIN"; then
4443 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 DUMPBIN=$ac_cv_prog_DUMPBIN
4463 if test -n "$DUMPBIN"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4465 $as_echo "$DUMPBIN" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472 test -n "$DUMPBIN" && break
4473 done
4474 fi
4475 if test -z "$DUMPBIN"; then
4476 ac_ct_DUMPBIN=$DUMPBIN
4477 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4478 do
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 if test -n "$ac_ct_DUMPBIN"; then
4487 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4499 fi
4500 done
4501 done
4502 IFS=$as_save_IFS
4503
4504 fi
4505 fi
4506 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4507 if test -n "$ac_ct_DUMPBIN"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4509 $as_echo "$ac_ct_DUMPBIN" >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4513 fi
4514
4515
4516 test -n "$ac_ct_DUMPBIN" && break
4517 done
4518
4519 if test "x$ac_ct_DUMPBIN" = x; then
4520 DUMPBIN=":"
4521 else
4522 case $cross_compiling:$ac_tool_warned in
4523 yes:)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526 ac_tool_warned=yes ;;
4527 esac
4528 DUMPBIN=$ac_ct_DUMPBIN
4529 fi
4530 fi
4531
4532
4533 if test "$DUMPBIN" != ":"; then
4534 NM="$DUMPBIN"
4535 fi
4536 fi
4537 test -z "$NM" && NM=nm
4538
4539
4540
4541
4542
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4545 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4546 if test "${lt_cv_nm_interface+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 lt_cv_nm_interface="BSD nm"
4550 echo "int some_variable = 0;" > conftest.$ac_ext
4551 (eval echo "\"\$as_me:4551: $ac_compile\"" >&5)
4552 (eval "$ac_compile" 2>conftest.err)
4553 cat conftest.err >&5
4554 (eval echo "\"\$as_me:4554: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4555 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4556 cat conftest.err >&5
4557 (eval echo "\"\$as_me:4557: output\"" >&5)
4558 cat conftest.out >&5
4559 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4560 lt_cv_nm_interface="MS dumpbin"
4561 fi
4562 rm -f conftest*
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4565 $as_echo "$lt_cv_nm_interface" >&6; }
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4568 $as_echo_n "checking whether ln -s works... " >&6; }
4569 LN_S=$as_ln_s
4570 if test "$LN_S" = "ln -s"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572 $as_echo "yes" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4575 $as_echo "no, using $LN_S" >&6; }
4576 fi
4577
4578 # find the maximum length of command line arguments
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4580 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4581 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 i=0
4585 teststring="ABCD"
4586
4587 case $build_os in
4588 msdosdjgpp*)
4589 # On DJGPP, this test can blow up pretty badly due to problems in libc
4590 # (any single argument exceeding 2000 bytes causes a buffer overrun
4591 # during glob expansion). Even if it were fixed, the result of this
4592 # check would be larger than it should be.
4593 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4594 ;;
4595
4596 gnu*)
4597 # Under GNU Hurd, this test is not required because there is
4598 # no limit to the length of command line arguments.
4599 # Libtool will interpret -1 as no limit whatsoever
4600 lt_cv_sys_max_cmd_len=-1;
4601 ;;
4602
4603 cygwin* | mingw* | cegcc*)
4604 # On Win9x/ME, this test blows up -- it succeeds, but takes
4605 # about 5 minutes as the teststring grows exponentially.
4606 # Worse, since 9x/ME are not pre-emptively multitasking,
4607 # you end up with a "frozen" computer, even though with patience
4608 # the test eventually succeeds (with a max line length of 256k).
4609 # Instead, let's just punt: use the minimum linelength reported by
4610 # all of the supported platforms: 8192 (on NT/2K/XP).
4611 lt_cv_sys_max_cmd_len=8192;
4612 ;;
4613
4614 amigaos*)
4615 # On AmigaOS with pdksh, this test takes hours, literally.
4616 # So we just punt and use a minimum line length of 8192.
4617 lt_cv_sys_max_cmd_len=8192;
4618 ;;
4619
4620 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4621 # This has been around since 386BSD, at least. Likely further.
4622 if test -x /sbin/sysctl; then
4623 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4624 elif test -x /usr/sbin/sysctl; then
4625 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4626 else
4627 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4628 fi
4629 # And add a safety zone
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632 ;;
4633
4634 interix*)
4635 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4636 lt_cv_sys_max_cmd_len=196608
4637 ;;
4638
4639 osf*)
4640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642 # nice to cause kernel panics so lets avoid the loop below.
4643 # First set a reasonable default.
4644 lt_cv_sys_max_cmd_len=16384
4645 #
4646 if test -x /sbin/sysconfig; then
4647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649 esac
4650 fi
4651 ;;
4652 sco3.2v5*)
4653 lt_cv_sys_max_cmd_len=102400
4654 ;;
4655 sysv5* | sco5v6* | sysv4.2uw2*)
4656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657 if test -n "$kargmax"; then
4658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4659 else
4660 lt_cv_sys_max_cmd_len=32768
4661 fi
4662 ;;
4663 *)
4664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665 if test -n "$lt_cv_sys_max_cmd_len"; then
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668 else
4669 # Make teststring a little bigger before we do anything with it.
4670 # a 1K string should be a reasonable start.
4671 for i in 1 2 3 4 5 6 7 8 ; do
4672 teststring=$teststring$teststring
4673 done
4674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675 # If test is not a shell built-in, we'll probably end up computing a
4676 # maximum length that is only half of the actual maximum length, but
4677 # we can't tell.
4678 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4679 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4680 test $i != 17 # 1/2 MB should be enough
4681 do
4682 i=`expr $i + 1`
4683 teststring=$teststring$teststring
4684 done
4685 # Only check the string length outside the loop.
4686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687 teststring=
4688 # Add a significant safety factor because C++ compilers can tack on
4689 # massive amounts of additional arguments before passing them to the
4690 # linker. It appears as though 1/2 is a usable value.
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692 fi
4693 ;;
4694 esac
4695
4696 fi
4697
4698 if test -n $lt_cv_sys_max_cmd_len ; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703 $as_echo "none" >&6; }
4704 fi
4705 max_cmd_len=$lt_cv_sys_max_cmd_len
4706
4707
4708
4709
4710
4711
4712 : ${CP="cp -f"}
4713 : ${MV="mv -f"}
4714 : ${RM="rm -f"}
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718 # Try some XSI features
4719 xsi_shell=no
4720 ( _lt_dummy="a/b/c"
4721 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4722 = c,a/b,, \
4723 && eval 'test $(( 1 + 1 )) -eq 2 \
4724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725 && xsi_shell=yes
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727 $as_echo "$xsi_shell" >&6; }
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732 lt_shell_append=no
4733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734 >/dev/null 2>&1 \
4735 && lt_shell_append=yes
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737 $as_echo "$lt_shell_append" >&6; }
4738
4739
4740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741 lt_unset=unset
4742 else
4743 lt_unset=false
4744 fi
4745
4746
4747
4748
4749
4750 # test EBCDIC or ASCII
4751 case `echo X|tr X '\101'` in
4752 A) # ASCII based system
4753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754 lt_SP2NL='tr \040 \012'
4755 lt_NL2SP='tr \015\012 \040\040'
4756 ;;
4757 *) # EBCDIC based system
4758 lt_SP2NL='tr \100 \n'
4759 lt_NL2SP='tr \r\n \100\100'
4760 ;;
4761 esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4772 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4773 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 lt_cv_ld_reload_flag='-r'
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4779 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4780 reload_flag=$lt_cv_ld_reload_flag
4781 case $reload_flag in
4782 "" | " "*) ;;
4783 *) reload_flag=" $reload_flag" ;;
4784 esac
4785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4786 case $host_os in
4787 darwin*)
4788 if test "$GCC" = yes; then
4789 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4790 else
4791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792 fi
4793 ;;
4794 esac
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$OBJDUMP"; then
4813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826 done
4827 done
4828 IFS=$as_save_IFS
4829
4830 fi
4831 fi
4832 OBJDUMP=$ac_cv_prog_OBJDUMP
4833 if test -n "$OBJDUMP"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4835 $as_echo "$OBJDUMP" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840
4841
4842 fi
4843 if test -z "$ac_cv_prog_OBJDUMP"; then
4844 ac_ct_OBJDUMP=$OBJDUMP
4845 # Extract the first word of "objdump", so it can be a program name with args.
4846 set dummy objdump; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$ac_ct_OBJDUMP"; then
4853 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4873 if test -n "$ac_ct_OBJDUMP"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4875 $as_echo "$ac_ct_OBJDUMP" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881 if test "x$ac_ct_OBJDUMP" = x; then
4882 OBJDUMP="false"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 OBJDUMP=$ac_ct_OBJDUMP
4891 fi
4892 else
4893 OBJDUMP="$ac_cv_prog_OBJDUMP"
4894 fi
4895
4896 test -z "$OBJDUMP" && OBJDUMP=objdump
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4907 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4908 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 lt_cv_file_magic_cmd='$MAGIC_CMD'
4912 lt_cv_file_magic_test_file=
4913 lt_cv_deplibs_check_method='unknown'
4914 # Need to set the preceding variable on all platforms that support
4915 # interlibrary dependencies.
4916 # 'none' -- dependencies not supported.
4917 # `unknown' -- same as none, but documents that we really don't know.
4918 # 'pass_all' -- all dependencies passed with no checks.
4919 # 'test_compile' -- check by making test program.
4920 # 'file_magic [[regex]]' -- check by looking for files in library path
4921 # which responds to the $file_magic_cmd with a given extended regex.
4922 # If you have `file' or equivalent on your system and you're not sure
4923 # whether `pass_all' will *always* work, you probably want this one.
4924
4925 case $host_os in
4926 aix[4-9]*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930 beos*)
4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933
4934 bsdi[45]*)
4935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4936 lt_cv_file_magic_cmd='/usr/bin/file -L'
4937 lt_cv_file_magic_test_file=/shlib/libc.so
4938 ;;
4939
4940 cygwin*)
4941 # func_win32_libid is a shell function defined in ltmain.sh
4942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943 lt_cv_file_magic_cmd='func_win32_libid'
4944 ;;
4945
4946 mingw* | pw32*)
4947 # Base MSYS/MinGW do not provide the 'file' command needed by
4948 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4949 # unless we find 'file', for example because we are cross-compiling.
4950 if ( file / ) >/dev/null 2>&1; then
4951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952 lt_cv_file_magic_cmd='func_win32_libid'
4953 else
4954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4955 lt_cv_file_magic_cmd='$OBJDUMP -f'
4956 fi
4957 ;;
4958
4959 cegcc)
4960 # use the weaker test based on 'objdump'. See mingw*.
4961 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4962 lt_cv_file_magic_cmd='$OBJDUMP -f'
4963 ;;
4964
4965 darwin* | rhapsody*)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4968
4969 freebsd* | dragonfly*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971 case $host_cpu in
4972 i*86 )
4973 # Not sure whether the presence of OpenBSD here was a mistake.
4974 # Let's accept both of them until this is cleared up.
4975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976 lt_cv_file_magic_cmd=/usr/bin/file
4977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978 ;;
4979 esac
4980 else
4981 lt_cv_deplibs_check_method=pass_all
4982 fi
4983 ;;
4984
4985 gnu*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 hpux10.20* | hpux11*)
4990 lt_cv_file_magic_cmd=/usr/bin/file
4991 case $host_cpu in
4992 ia64*)
4993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4995 ;;
4996 hppa*64*)
4997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4999 ;;
5000 *)
5001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5003 ;;
5004 esac
5005 ;;
5006
5007 interix[3-9]*)
5008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5010 ;;
5011
5012 irix5* | irix6* | nonstopux*)
5013 case $LD in
5014 *-32|*"-32 ") libmagic=32-bit;;
5015 *-n32|*"-n32 ") libmagic=N32;;
5016 *-64|*"-64 ") libmagic=64-bit;;
5017 *) libmagic=never-match;;
5018 esac
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022 # This must be Linux ELF.
5023 linux* | k*bsd*-gnu)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 netbsd*)
5028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030 else
5031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5032 fi
5033 ;;
5034
5035 newos6*)
5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5037 lt_cv_file_magic_cmd=/usr/bin/file
5038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5039 ;;
5040
5041 *nto* | *qnx*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 openbsd*)
5046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5048 else
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5050 fi
5051 ;;
5052
5053 osf3* | osf4* | osf5*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057 rdos*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 solaris*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
5069 sysv4 | sysv4.3*)
5070 case $host_vendor in
5071 motorola)
5072 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]'
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5074 ;;
5075 ncr)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078 sequent)
5079 lt_cv_file_magic_cmd='/bin/file'
5080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5081 ;;
5082 sni)
5083 lt_cv_file_magic_cmd='/bin/file'
5084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5085 lt_cv_file_magic_test_file=/lib/libc.so
5086 ;;
5087 siemens)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090 pc)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093 esac
5094 ;;
5095
5096 tpf*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099 esac
5100
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5103 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5104 file_magic_cmd=$lt_cv_file_magic_cmd
5105 deplibs_check_method=$lt_cv_deplibs_check_method
5106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ar; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_AR+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$AR"; then
5128 ac_cv_prog_AR="$AR" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_AR="${ac_tool_prefix}ar"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 AR=$ac_cv_prog_AR
5148 if test -n "$AR"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5150 $as_echo "$AR" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156
5157 fi
5158 if test -z "$ac_cv_prog_AR"; then
5159 ac_ct_AR=$AR
5160 # Extract the first word of "ar", so it can be a program name with args.
5161 set dummy ar; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$ac_ct_AR"; then
5168 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_ac_ct_AR="ar"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5188 if test -n "$ac_ct_AR"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5190 $as_echo "$ac_ct_AR" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196 if test "x$ac_ct_AR" = x; then
5197 AR="false"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 AR=$ac_ct_AR
5206 fi
5207 else
5208 AR="$ac_cv_prog_AR"
5209 fi
5210
5211 test -z "$AR" && AR=ar
5212 test -z "$AR_FLAGS" && AR_FLAGS=cru
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}strip; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_STRIP+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$STRIP"; then
5233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 STRIP=$ac_cv_prog_STRIP
5253 if test -n "$STRIP"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5255 $as_echo "$STRIP" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_prog_STRIP"; then
5264 ac_ct_STRIP=$STRIP
5265 # Extract the first word of "strip", so it can be a program name with args.
5266 set dummy strip; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$ac_ct_STRIP"; then
5273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_ac_ct_STRIP="strip"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5293 if test -n "$ac_ct_STRIP"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5295 $as_echo "$ac_ct_STRIP" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301 if test "x$ac_ct_STRIP" = x; then
5302 STRIP=":"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 STRIP=$ac_ct_STRIP
5311 fi
5312 else
5313 STRIP="$ac_cv_prog_STRIP"
5314 fi
5315
5316 test -z "$STRIP" && STRIP=:
5317
5318
5319
5320
5321
5322
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$RANLIB"; then
5332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 RANLIB=$ac_cv_prog_RANLIB
5352 if test -n "$RANLIB"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5354 $as_echo "$RANLIB" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361 fi
5362 if test -z "$ac_cv_prog_RANLIB"; then
5363 ac_ct_RANLIB=$RANLIB
5364 # Extract the first word of "ranlib", so it can be a program name with args.
5365 set dummy ranlib; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$ac_ct_RANLIB"; then
5372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_ac_ct_RANLIB="ranlib"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5392 if test -n "$ac_ct_RANLIB"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5394 $as_echo "$ac_ct_RANLIB" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400 if test "x$ac_ct_RANLIB" = x; then
5401 RANLIB=":"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 RANLIB=$ac_ct_RANLIB
5410 fi
5411 else
5412 RANLIB="$ac_cv_prog_RANLIB"
5413 fi
5414
5415 test -z "$RANLIB" && RANLIB=:
5416
5417
5418
5419
5420
5421
5422 # Determine commands to create old-style static archives.
5423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5424 old_postinstall_cmds='chmod 644 $oldlib'
5425 old_postuninstall_cmds=
5426
5427 if test -n "$RANLIB"; then
5428 case $host_os in
5429 openbsd*)
5430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5431 ;;
5432 *)
5433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5434 ;;
5435 esac
5436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5437 fi
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 # If no C compiler was specified, use CC.
5473 LTCC=${LTCC-"$CC"}
5474
5475 # If no C compiler flags were specified, use CFLAGS.
5476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5477
5478 # Allow CC to be a program name with arguments.
5479 compiler=$CC
5480
5481
5482 # Check for command to grab the raw symbol name followed by C symbol from nm.
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5485 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488
5489 # These are sane defaults that work on at least a few old systems.
5490 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5491
5492 # Character class describing NM global symbol codes.
5493 symcode='[BCDEGRST]'
5494
5495 # Regexp to match symbols that can be accessed directly from C.
5496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5497
5498 # Define system-specific variables.
5499 case $host_os in
5500 aix*)
5501 symcode='[BCDT]'
5502 ;;
5503 cygwin* | mingw* | pw32* | cegcc*)
5504 symcode='[ABCDGISTW]'
5505 ;;
5506 hpux*)
5507 if test "$host_cpu" = ia64; then
5508 symcode='[ABCDEGRST]'
5509 fi
5510 ;;
5511 irix* | nonstopux*)
5512 symcode='[BCDEGRST]'
5513 ;;
5514 osf*)
5515 symcode='[BCDEGQRST]'
5516 ;;
5517 solaris*)
5518 symcode='[BDRT]'
5519 ;;
5520 sco3.2v5*)
5521 symcode='[DT]'
5522 ;;
5523 sysv4.2uw2*)
5524 symcode='[DT]'
5525 ;;
5526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5527 symcode='[ABDT]'
5528 ;;
5529 sysv4)
5530 symcode='[DFNSTU]'
5531 ;;
5532 esac
5533
5534 # If we're using GNU nm, then use its standard symbol codes.
5535 case `$NM -V 2>&1` in
5536 *GNU* | *'with BFD'*)
5537 symcode='[ABCDGIRSTW]' ;;
5538 esac
5539
5540 # Transform an extracted symbol line into a proper C declaration.
5541 # Some systems (esp. on ia64) link data and code symbols differently,
5542 # so use this general approach.
5543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5544
5545 # Transform an extracted symbol line into symbol name and symbol address
5546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5547 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'"
5548
5549 # Handle CRLF in mingw tool chain
5550 opt_cr=
5551 case $build_os in
5552 mingw*)
5553 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5554 ;;
5555 esac
5556
5557 # Try without a prefix underscore, then with it.
5558 for ac_symprfx in "" "_"; do
5559
5560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5561 symxfrm="\\1 $ac_symprfx\\2 \\2"
5562
5563 # Write the raw and C identifiers.
5564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5565 # Fake it for dumpbin and say T for any non-static function
5566 # and D for any global variable.
5567 # Also find C++ and __fastcall symbols from MSVC++,
5568 # which start with @ or ?.
5569 lt_cv_sys_global_symbol_pipe="$AWK '"\
5570 " {last_section=section; section=\$ 3};"\
5571 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5572 " \$ 0!~/External *\|/{next};"\
5573 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5574 " {if(hide[section]) next};"\
5575 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5576 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5577 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5578 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5579 " ' prfx=^$ac_symprfx"
5580 else
5581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5582 fi
5583
5584 # Check to see that the pipe works correctly.
5585 pipe_works=no
5586
5587 rm -f conftest*
5588 cat > conftest.$ac_ext <<_LT_EOF
5589 #ifdef __cplusplus
5590 extern "C" {
5591 #endif
5592 char nm_test_var;
5593 void nm_test_func(void);
5594 void nm_test_func(void){}
5595 #ifdef __cplusplus
5596 }
5597 #endif
5598 int main(){nm_test_var='a';nm_test_func();return(0);}
5599 _LT_EOF
5600
5601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605 test $ac_status = 0; }; then
5606 # Now try to grab the symbols.
5607 nlist=conftest.nm
5608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5609 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5610 ac_status=$?
5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612 test $ac_status = 0; } && test -s "$nlist"; then
5613 # Try sorting and uniquifying the output.
5614 if sort "$nlist" | uniq > "$nlist"T; then
5615 mv -f "$nlist"T "$nlist"
5616 else
5617 rm -f "$nlist"T
5618 fi
5619
5620 # Make sure that we snagged all the symbols we need.
5621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5623 cat <<_LT_EOF > conftest.$ac_ext
5624 #ifdef __cplusplus
5625 extern "C" {
5626 #endif
5627
5628 _LT_EOF
5629 # Now generate the symbol file.
5630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5631
5632 cat <<_LT_EOF >> conftest.$ac_ext
5633
5634 /* The mapping between symbol names and symbols. */
5635 const struct {
5636 const char *name;
5637 void *address;
5638 }
5639 lt__PROGRAM__LTX_preloaded_symbols[] =
5640 {
5641 { "@PROGRAM@", (void *) 0 },
5642 _LT_EOF
5643 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5644 cat <<\_LT_EOF >> conftest.$ac_ext
5645 {0, (void *) 0}
5646 };
5647
5648 /* This works around a problem in FreeBSD linker */
5649 #ifdef FREEBSD_WORKAROUND
5650 static const void *lt_preloaded_setup() {
5651 return lt__PROGRAM__LTX_preloaded_symbols;
5652 }
5653 #endif
5654
5655 #ifdef __cplusplus
5656 }
5657 #endif
5658 _LT_EOF
5659 # Now try linking the two files.
5660 mv conftest.$ac_objext conftstm.$ac_objext
5661 lt_save_LIBS="$LIBS"
5662 lt_save_CFLAGS="$CFLAGS"
5663 LIBS="conftstm.$ac_objext"
5664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5666 (eval $ac_link) 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5670 pipe_works=yes
5671 fi
5672 LIBS="$lt_save_LIBS"
5673 CFLAGS="$lt_save_CFLAGS"
5674 else
5675 echo "cannot find nm_test_func in $nlist" >&5
5676 fi
5677 else
5678 echo "cannot find nm_test_var in $nlist" >&5
5679 fi
5680 else
5681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5682 fi
5683 else
5684 echo "$progname: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 fi
5687 rm -rf conftest* conftst*
5688
5689 # Do not use the global_symbol_pipe unless it works.
5690 if test "$pipe_works" = yes; then
5691 break
5692 else
5693 lt_cv_sys_global_symbol_pipe=
5694 fi
5695 done
5696
5697 fi
5698
5699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5700 lt_cv_sys_global_symbol_to_cdecl=
5701 fi
5702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5704 $as_echo "failed" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5707 $as_echo "ok" >&6; }
5708 fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 # Check whether --enable-libtool-lock was given.
5733 if test "${enable_libtool_lock+set}" = set; then :
5734 enableval=$enable_libtool_lock;
5735 fi
5736
5737 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5738
5739 # Some flags need to be propagated to the compiler or linker for good
5740 # libtool support.
5741 case $host in
5742 ia64-*-hpux*)
5743 # Find out which ABI we are using.
5744 echo 'int i;' > conftest.$ac_ext
5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746 (eval $ac_compile) 2>&5
5747 ac_status=$?
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; }; then
5750 case `/usr/bin/file conftest.$ac_objext` in
5751 *ELF-32*)
5752 HPUX_IA64_MODE="32"
5753 ;;
5754 *ELF-64*)
5755 HPUX_IA64_MODE="64"
5756 ;;
5757 esac
5758 fi
5759 rm -rf conftest*
5760 ;;
5761 *-*-irix6*)
5762 # Find out which ABI we are using.
5763 echo '#line 5763 "configure"' > conftest.$ac_ext
5764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5765 (eval $ac_compile) 2>&5
5766 ac_status=$?
5767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768 test $ac_status = 0; }; then
5769 if test "$lt_cv_prog_gnu_ld" = yes; then
5770 case `/usr/bin/file conftest.$ac_objext` in
5771 *32-bit*)
5772 LD="${LD-ld} -melf32bsmip"
5773 ;;
5774 *N32*)
5775 LD="${LD-ld} -melf32bmipn32"
5776 ;;
5777 *64-bit*)
5778 LD="${LD-ld} -melf64bmip"
5779 ;;
5780 esac
5781 else
5782 case `/usr/bin/file conftest.$ac_objext` in
5783 *32-bit*)
5784 LD="${LD-ld} -32"
5785 ;;
5786 *N32*)
5787 LD="${LD-ld} -n32"
5788 ;;
5789 *64-bit*)
5790 LD="${LD-ld} -64"
5791 ;;
5792 esac
5793 fi
5794 fi
5795 rm -rf conftest*
5796 ;;
5797
5798 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5799 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5800 # Find out which ABI we are using.
5801 echo 'int i;' > conftest.$ac_ext
5802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5803 (eval $ac_compile) 2>&5
5804 ac_status=$?
5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }; then
5807 case `/usr/bin/file conftest.o` in
5808 *32-bit*)
5809 case $host in
5810 x86_64-*kfreebsd*-gnu)
5811 LD="${LD-ld} -m elf_i386_fbsd"
5812 ;;
5813 x86_64-*linux*)
5814 LD="${LD-ld} -m elf_i386"
5815 ;;
5816 ppc64-*linux*|powerpc64-*linux*)
5817 LD="${LD-ld} -m elf32ppclinux"
5818 ;;
5819 s390x-*linux*)
5820 LD="${LD-ld} -m elf_s390"
5821 ;;
5822 sparc64-*linux*)
5823 LD="${LD-ld} -m elf32_sparc"
5824 ;;
5825 esac
5826 ;;
5827 *64-bit*)
5828 case $host in
5829 x86_64-*kfreebsd*-gnu)
5830 LD="${LD-ld} -m elf_x86_64_fbsd"
5831 ;;
5832 x86_64-*linux*)
5833 LD="${LD-ld} -m elf_x86_64"
5834 ;;
5835 ppc*-*linux*|powerpc*-*linux*)
5836 LD="${LD-ld} -m elf64ppc"
5837 ;;
5838 s390*-*linux*|s390*-*tpf*)
5839 LD="${LD-ld} -m elf64_s390"
5840 ;;
5841 sparc*-*linux*)
5842 LD="${LD-ld} -m elf64_sparc"
5843 ;;
5844 esac
5845 ;;
5846 esac
5847 fi
5848 rm -rf conftest*
5849 ;;
5850
5851 *-*-sco3.2v5*)
5852 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5853 SAVE_CFLAGS="$CFLAGS"
5854 CFLAGS="$CFLAGS -belf"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5856 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5857 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 ac_ext=c
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_c_try_link "$LINENO"; then :
5878 lt_cv_cc_needs_belf=yes
5879 else
5880 lt_cv_cc_needs_belf=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5884 ac_ext=c
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5892 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5895 CFLAGS="$SAVE_CFLAGS"
5896 fi
5897 ;;
5898 sparc*-*solaris*)
5899 # Find out which ABI we are using.
5900 echo 'int i;' > conftest.$ac_ext
5901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5902 (eval $ac_compile) 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905 test $ac_status = 0; }; then
5906 case `/usr/bin/file conftest.o` in
5907 *64-bit*)
5908 case $lt_cv_prog_gnu_ld in
5909 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5910 *)
5911 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5912 LD="${LD-ld} -64"
5913 fi
5914 ;;
5915 esac
5916 ;;
5917 esac
5918 fi
5919 rm -rf conftest*
5920 ;;
5921 esac
5922
5923 need_locks="$enable_libtool_lock"
5924
5925
5926 case $host_os in
5927 rhapsody* | darwin*)
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$DSYMUTIL"; then
5937 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5957 if test -n "$DSYMUTIL"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5959 $as_echo "$DSYMUTIL" >&6; }
5960 else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_DSYMUTIL"; then
5968 ac_ct_DSYMUTIL=$DSYMUTIL
5969 # Extract the first word of "dsymutil", so it can be a program name with args.
5970 set dummy dsymutil; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_DSYMUTIL"; then
5977 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5997 if test -n "$ac_ct_DSYMUTIL"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5999 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_DSYMUTIL" = x; then
6006 DSYMUTIL=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 DSYMUTIL=$ac_ct_DSYMUTIL
6015 fi
6016 else
6017 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6018 fi
6019
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$NMEDIT"; then
6029 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046 fi
6047 fi
6048 NMEDIT=$ac_cv_prog_NMEDIT
6049 if test -n "$NMEDIT"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6051 $as_echo "$NMEDIT" >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056
6057
6058 fi
6059 if test -z "$ac_cv_prog_NMEDIT"; then
6060 ac_ct_NMEDIT=$NMEDIT
6061 # Extract the first word of "nmedit", so it can be a program name with args.
6062 set dummy nmedit; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$ac_ct_NMEDIT"; then
6069 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6089 if test -n "$ac_ct_NMEDIT"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6091 $as_echo "$ac_ct_NMEDIT" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097 if test "x$ac_ct_NMEDIT" = x; then
6098 NMEDIT=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 NMEDIT=$ac_ct_NMEDIT
6107 fi
6108 else
6109 NMEDIT="$ac_cv_prog_NMEDIT"
6110 fi
6111
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if test "${ac_cv_prog_LIPO+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$LIPO"; then
6121 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 LIPO=$ac_cv_prog_LIPO
6141 if test -n "$LIPO"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6143 $as_echo "$LIPO" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_LIPO"; then
6152 ac_ct_LIPO=$LIPO
6153 # Extract the first word of "lipo", so it can be a program name with args.
6154 set dummy lipo; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_LIPO"; then
6161 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_LIPO="lipo"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6181 if test -n "$ac_ct_LIPO"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6183 $as_echo "$ac_ct_LIPO" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_LIPO" = x; then
6190 LIPO=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 LIPO=$ac_ct_LIPO
6199 fi
6200 else
6201 LIPO="$ac_cv_prog_LIPO"
6202 fi
6203
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}otool; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$OTOOL"; then
6213 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 OTOOL=$ac_cv_prog_OTOOL
6233 if test -n "$OTOOL"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6235 $as_echo "$OTOOL" >&6; }
6236 else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_OTOOL"; then
6244 ac_ct_OTOOL=$OTOOL
6245 # Extract the first word of "otool", so it can be a program name with args.
6246 set dummy otool; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$ac_ct_OTOOL"; then
6253 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_OTOOL="otool"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6273 if test -n "$ac_ct_OTOOL"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6275 $as_echo "$ac_ct_OTOOL" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281 if test "x$ac_ct_OTOOL" = x; then
6282 OTOOL=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 OTOOL=$ac_ct_OTOOL
6291 fi
6292 else
6293 OTOOL="$ac_cv_prog_OTOOL"
6294 fi
6295
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$OTOOL64"; then
6305 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 OTOOL64=$ac_cv_prog_OTOOL64
6325 if test -n "$OTOOL64"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6327 $as_echo "$OTOOL64" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_OTOOL64"; then
6336 ac_ct_OTOOL64=$OTOOL64
6337 # Extract the first word of "otool64", so it can be a program name with args.
6338 set dummy otool64; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_OTOOL64"; then
6345 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_OTOOL64="otool64"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6365 if test -n "$ac_ct_OTOOL64"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6367 $as_echo "$ac_ct_OTOOL64" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373 if test "x$ac_ct_OTOOL64" = x; then
6374 OTOOL64=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 OTOOL64=$ac_ct_OTOOL64
6383 fi
6384 else
6385 OTOOL64="$ac_cv_prog_OTOOL64"
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6415 $as_echo_n "checking for -single_module linker flag... " >&6; }
6416 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 lt_cv_apple_cc_single_mod=no
6420 if test -z "${LT_MULTI_MODULE}"; then
6421 # By default we will add the -single_module flag. You can override
6422 # by either setting the environment variable LT_MULTI_MODULE
6423 # non-empty at configure time, or by adding -multi_module to the
6424 # link flags.
6425 rm -rf libconftest.dylib*
6426 echo "int foo(void){return 1;}" > conftest.c
6427 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6428 -dynamiclib -Wl,-single_module conftest.c" >&5
6429 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6431 _lt_result=$?
6432 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6433 lt_cv_apple_cc_single_mod=yes
6434 else
6435 cat conftest.err >&5
6436 fi
6437 rm -rf libconftest.dylib*
6438 rm -f conftest.*
6439 fi
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6442 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6444 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6445 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 lt_cv_ld_exported_symbols_list=no
6449 save_LDFLAGS=$LDFLAGS
6450 echo "_main" > conftest.sym
6451 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454
6455 int
6456 main ()
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_link "$LINENO"; then :
6464 lt_cv_ld_exported_symbols_list=yes
6465 else
6466 lt_cv_ld_exported_symbols_list=no
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6470 LDFLAGS="$save_LDFLAGS"
6471
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6474 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6475 case $host_os in
6476 rhapsody* | darwin1.[012])
6477 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6478 darwin1.*)
6479 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6480 darwin*) # darwin 5.x on
6481 # if running on 10.5 or later, the deployment target defaults
6482 # to the OS version, if on x86, and 10.4, the deployment
6483 # target defaults to 10.4. Don't you love it?
6484 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6485 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6486 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6487 10.[012]*)
6488 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6489 10.*)
6490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6491 esac
6492 ;;
6493 esac
6494 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6495 _lt_dar_single_mod='$single_module'
6496 fi
6497 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6498 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6499 else
6500 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6501 fi
6502 if test "$DSYMUTIL" != ":"; then
6503 _lt_dsymutil='~$DSYMUTIL $lib || :'
6504 else
6505 _lt_dsymutil=
6506 fi
6507 ;;
6508 esac
6509
6510 ac_ext=c
6511 ac_cpp='$CPP $CPPFLAGS'
6512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6516 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6517 # On Suns, sometimes $CPP names a directory.
6518 if test -n "$CPP" && test -d "$CPP"; then
6519 CPP=
6520 fi
6521 if test -z "$CPP"; then
6522 if test "${ac_cv_prog_CPP+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 # Double quotes because CPP needs to be expanded
6526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6527 do
6528 ac_preproc_ok=false
6529 for ac_c_preproc_warn_flag in '' yes
6530 do
6531 # Use a header file that comes with gcc, so configuring glibc
6532 # with a fresh cross-compiler works.
6533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534 # <limits.h> exists even on freestanding compilers.
6535 # On the NeXT, cc -E runs the code through the compiler's parser,
6536 # not just through cpp. "Syntax error" is here to catch this case.
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #ifdef __STDC__
6540 # include <limits.h>
6541 #else
6542 # include <assert.h>
6543 #endif
6544 Syntax error
6545 _ACEOF
6546 if ac_fn_c_try_cpp "$LINENO"; then :
6547
6548 else
6549 # Broken: fails on valid input.
6550 continue
6551 fi
6552 rm -f conftest.err conftest.i conftest.$ac_ext
6553
6554 # OK, works on sane cases. Now check whether nonexistent headers
6555 # can be detected and how.
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <ac_nonexistent.h>
6559 _ACEOF
6560 if ac_fn_c_try_cpp "$LINENO"; then :
6561 # Broken: success on invalid input.
6562 continue
6563 else
6564 # Passes both tests.
6565 ac_preproc_ok=:
6566 break
6567 fi
6568 rm -f conftest.err conftest.i conftest.$ac_ext
6569
6570 done
6571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6572 rm -f conftest.i conftest.err conftest.$ac_ext
6573 if $ac_preproc_ok; then :
6574 break
6575 fi
6576
6577 done
6578 ac_cv_prog_CPP=$CPP
6579
6580 fi
6581 CPP=$ac_cv_prog_CPP
6582 else
6583 ac_cv_prog_CPP=$CPP
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6586 $as_echo "$CPP" >&6; }
6587 ac_preproc_ok=false
6588 for ac_c_preproc_warn_flag in '' yes
6589 do
6590 # Use a header file that comes with gcc, so configuring glibc
6591 # with a fresh cross-compiler works.
6592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593 # <limits.h> exists even on freestanding compilers.
6594 # On the NeXT, cc -E runs the code through the compiler's parser,
6595 # not just through cpp. "Syntax error" is here to catch this case.
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #ifdef __STDC__
6599 # include <limits.h>
6600 #else
6601 # include <assert.h>
6602 #endif
6603 Syntax error
6604 _ACEOF
6605 if ac_fn_c_try_cpp "$LINENO"; then :
6606
6607 else
6608 # Broken: fails on valid input.
6609 continue
6610 fi
6611 rm -f conftest.err conftest.i conftest.$ac_ext
6612
6613 # OK, works on sane cases. Now check whether nonexistent headers
6614 # can be detected and how.
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #include <ac_nonexistent.h>
6618 _ACEOF
6619 if ac_fn_c_try_cpp "$LINENO"; then :
6620 # Broken: success on invalid input.
6621 continue
6622 else
6623 # Passes both tests.
6624 ac_preproc_ok=:
6625 break
6626 fi
6627 rm -f conftest.err conftest.i conftest.$ac_ext
6628
6629 done
6630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6631 rm -f conftest.i conftest.err conftest.$ac_ext
6632 if $ac_preproc_ok; then :
6633
6634 else
6635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6637 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6638 See \`config.log' for more details" "$LINENO" 5; }
6639 fi
6640
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6649 $as_echo_n "checking for ANSI C header files... " >&6; }
6650 if test "${ac_cv_header_stdc+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 #include <stdlib.h>
6656 #include <stdarg.h>
6657 #include <string.h>
6658 #include <float.h>
6659
6660 int
6661 main ()
6662 {
6663
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"; then :
6669 ac_cv_header_stdc=yes
6670 else
6671 ac_cv_header_stdc=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675 if test $ac_cv_header_stdc = yes; then
6676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 #include <string.h>
6680
6681 _ACEOF
6682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683 $EGREP "memchr" >/dev/null 2>&1; then :
6684
6685 else
6686 ac_cv_header_stdc=no
6687 fi
6688 rm -f conftest*
6689
6690 fi
6691
6692 if test $ac_cv_header_stdc = yes; then
6693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <stdlib.h>
6697
6698 _ACEOF
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev/null 2>&1; then :
6701
6702 else
6703 ac_cv_header_stdc=no
6704 fi
6705 rm -f conftest*
6706
6707 fi
6708
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then :
6712 :
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <ctype.h>
6717 #include <stdlib.h>
6718 #if ((' ' & 0x0FF) == 0x020)
6719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721 #else
6722 # define ISLOWER(c) \
6723 (('a' <= (c) && (c) <= 'i') \
6724 || ('j' <= (c) && (c) <= 'r') \
6725 || ('s' <= (c) && (c) <= 'z'))
6726 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6727 #endif
6728
6729 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730 int
6731 main ()
6732 {
6733 int i;
6734 for (i = 0; i < 256; i++)
6735 if (XOR (islower (i), ISLOWER (i))
6736 || toupper (i) != TOUPPER (i))
6737 return 2;
6738 return 0;
6739 }
6740 _ACEOF
6741 if ac_fn_c_try_run "$LINENO"; then :
6742
6743 else
6744 ac_cv_header_stdc=no
6745 fi
6746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6747 conftest.$ac_objext conftest.beam conftest.$ac_ext
6748 fi
6749
6750 fi
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6753 $as_echo "$ac_cv_header_stdc" >&6; }
6754 if test $ac_cv_header_stdc = yes; then
6755
6756 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6757
6758 fi
6759
6760 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6761 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6762 inttypes.h stdint.h unistd.h
6763 do :
6764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6765 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6766 "
6767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6768 cat >>confdefs.h <<_ACEOF
6769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 _ACEOF
6771
6772 fi
6773
6774 done
6775
6776
6777 for ac_header in dlfcn.h
6778 do :
6779 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6780 "
6781 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_DLFCN_H 1
6784 _ACEOF
6785
6786 fi
6787
6788 done
6789
6790
6791
6792 # Set options
6793
6794
6795
6796 enable_dlopen=no
6797
6798
6799 enable_win32_dll=no
6800
6801
6802 # Check whether --enable-shared was given.
6803 if test "${enable_shared+set}" = set; then :
6804 enableval=$enable_shared; p=${PACKAGE-default}
6805 case $enableval in
6806 yes) enable_shared=yes ;;
6807 no) enable_shared=no ;;
6808 *)
6809 enable_shared=no
6810 # Look at the argument we got. We use all the common list separators.
6811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6812 for pkg in $enableval; do
6813 IFS="$lt_save_ifs"
6814 if test "X$pkg" = "X$p"; then
6815 enable_shared=yes
6816 fi
6817 done
6818 IFS="$lt_save_ifs"
6819 ;;
6820 esac
6821 else
6822 enable_shared=yes
6823 fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 # Check whether --with-pic was given.
6836 if test "${with_pic+set}" = set; then :
6837 withval=$with_pic; pic_mode="$withval"
6838 else
6839 pic_mode=default
6840 fi
6841
6842
6843 test -z "$pic_mode" && pic_mode=default
6844
6845
6846
6847
6848
6849
6850
6851 # Check whether --enable-fast-install was given.
6852 if test "${enable_fast_install+set}" = set; then :
6853 enableval=$enable_fast_install; p=${PACKAGE-default}
6854 case $enableval in
6855 yes) enable_fast_install=yes ;;
6856 no) enable_fast_install=no ;;
6857 *)
6858 enable_fast_install=no
6859 # Look at the argument we got. We use all the common list separators.
6860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6861 for pkg in $enableval; do
6862 IFS="$lt_save_ifs"
6863 if test "X$pkg" = "X$p"; then
6864 enable_fast_install=yes
6865 fi
6866 done
6867 IFS="$lt_save_ifs"
6868 ;;
6869 esac
6870 else
6871 enable_fast_install=yes
6872 fi
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 # This can be used to rebuild libtool when needed
6885 LIBTOOL_DEPS="$ltmain"
6886
6887 # Always use our own libtool.
6888 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 test -z "$LN_S" && LN_S="ln -s"
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 if test -n "${ZSH_VERSION+set}" ; then
6930 setopt NO_GLOB_SUBST
6931 fi
6932
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6934 $as_echo_n "checking for objdir... " >&6; }
6935 if test "${lt_cv_objdir+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 rm -f .libs 2>/dev/null
6939 mkdir .libs 2>/dev/null
6940 if test -d .libs; then
6941 lt_cv_objdir=.libs
6942 else
6943 # MS-DOS does not allow filenames that begin with a dot.
6944 lt_cv_objdir=_libs
6945 fi
6946 rmdir .libs 2>/dev/null
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6949 $as_echo "$lt_cv_objdir" >&6; }
6950 objdir=$lt_cv_objdir
6951
6952
6953
6954
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define LT_OBJDIR "$lt_cv_objdir/"
6958 _ACEOF
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 case $host_os in
6977 aix3*)
6978 # AIX sometimes has problems with the GCC collect2 program. For some
6979 # reason, if we set the COLLECT_NAMES environment variable, the problems
6980 # vanish in a puff of smoke.
6981 if test "X${COLLECT_NAMES+set}" != Xset; then
6982 COLLECT_NAMES=
6983 export COLLECT_NAMES
6984 fi
6985 ;;
6986 esac
6987
6988 # Sed substitution that helps us do robust quoting. It backslashifies
6989 # metacharacters that are still active within double-quoted strings.
6990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6991
6992 # Same as above, but do not quote variable references.
6993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6994
6995 # Sed substitution to delay expansion of an escaped shell variable in a
6996 # double_quote_subst'ed string.
6997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6998
6999 # Sed substitution to delay expansion of an escaped single quote.
7000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7001
7002 # Sed substitution to avoid accidental globbing in evaled expressions
7003 no_glob_subst='s/\*/\\\*/g'
7004
7005 # Global variables:
7006 ofile=libtool
7007 can_build_shared=yes
7008
7009 # All known linkers require a `.a' archive for static linking (except MSVC,
7010 # which needs '.lib').
7011 libext=a
7012
7013 with_gnu_ld="$lt_cv_prog_gnu_ld"
7014
7015 old_CC="$CC"
7016 old_CFLAGS="$CFLAGS"
7017
7018 # Set sane defaults for various variables
7019 test -z "$CC" && CC=cc
7020 test -z "$LTCC" && LTCC=$CC
7021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7022 test -z "$LD" && LD=ld
7023 test -z "$ac_objext" && ac_objext=o
7024
7025 for cc_temp in $compiler""; do
7026 case $cc_temp in
7027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7029 \-*) ;;
7030 *) break;;
7031 esac
7032 done
7033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7034
7035
7036 # Only perform the check for file, if the check method requires it
7037 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7038 case $deplibs_check_method in
7039 file_magic*)
7040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 case $MAGIC_CMD in
7047 [\\/*] | ?:[\\/]*)
7048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7049 ;;
7050 *)
7051 lt_save_MAGIC_CMD="$MAGIC_CMD"
7052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7054 for ac_dir in $ac_dummy; do
7055 IFS="$lt_save_ifs"
7056 test -z "$ac_dir" && ac_dir=.
7057 if test -f $ac_dir/${ac_tool_prefix}file; then
7058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7059 if test -n "$file_magic_test_file"; then
7060 case $deplibs_check_method in
7061 "file_magic "*)
7062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7065 $EGREP "$file_magic_regex" > /dev/null; then
7066 :
7067 else
7068 cat <<_LT_EOF 1>&2
7069
7070 *** Warning: the command libtool uses to detect shared libraries,
7071 *** $file_magic_cmd, produces output that libtool cannot recognize.
7072 *** The result is that libtool may fail to recognize shared libraries
7073 *** as such. This will affect the creation of libtool libraries that
7074 *** depend on shared libraries, but programs linked with such libtool
7075 *** libraries will work regardless of this problem. Nevertheless, you
7076 *** may want to report the problem to your system manager and/or to
7077 *** bug-libtool@gnu.org
7078
7079 _LT_EOF
7080 fi ;;
7081 esac
7082 fi
7083 break
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 MAGIC_CMD="$lt_save_MAGIC_CMD"
7088 ;;
7089 esac
7090 fi
7091
7092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7093 if test -n "$MAGIC_CMD"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7095 $as_echo "$MAGIC_CMD" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102
7103
7104
7105 if test -z "$lt_cv_path_MAGIC_CMD"; then
7106 if test -n "$ac_tool_prefix"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7108 $as_echo_n "checking for file... " >&6; }
7109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 case $MAGIC_CMD in
7113 [\\/*] | ?:[\\/]*)
7114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 lt_save_MAGIC_CMD="$MAGIC_CMD"
7118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7120 for ac_dir in $ac_dummy; do
7121 IFS="$lt_save_ifs"
7122 test -z "$ac_dir" && ac_dir=.
7123 if test -f $ac_dir/file; then
7124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7125 if test -n "$file_magic_test_file"; then
7126 case $deplibs_check_method in
7127 "file_magic "*)
7128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7131 $EGREP "$file_magic_regex" > /dev/null; then
7132 :
7133 else
7134 cat <<_LT_EOF 1>&2
7135
7136 *** Warning: the command libtool uses to detect shared libraries,
7137 *** $file_magic_cmd, produces output that libtool cannot recognize.
7138 *** The result is that libtool may fail to recognize shared libraries
7139 *** as such. This will affect the creation of libtool libraries that
7140 *** depend on shared libraries, but programs linked with such libtool
7141 *** libraries will work regardless of this problem. Nevertheless, you
7142 *** may want to report the problem to your system manager and/or to
7143 *** bug-libtool@gnu.org
7144
7145 _LT_EOF
7146 fi ;;
7147 esac
7148 fi
7149 break
7150 fi
7151 done
7152 IFS="$lt_save_ifs"
7153 MAGIC_CMD="$lt_save_MAGIC_CMD"
7154 ;;
7155 esac
7156 fi
7157
7158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7159 if test -n "$MAGIC_CMD"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7161 $as_echo "$MAGIC_CMD" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 else
7169 MAGIC_CMD=:
7170 fi
7171 fi
7172
7173 fi
7174 ;;
7175 esac
7176
7177 # Use C for the default configuration in the libtool script
7178
7179 lt_save_CC="$CC"
7180 ac_ext=c
7181 ac_cpp='$CPP $CPPFLAGS'
7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186
7187 # Source file extension for C test sources.
7188 ac_ext=c
7189
7190 # Object file extension for compiled C test sources.
7191 objext=o
7192 objext=$objext
7193
7194 # Code to be used in simple compile tests
7195 lt_simple_compile_test_code="int some_variable = 0;"
7196
7197 # Code to be used in simple link tests
7198 lt_simple_link_test_code='int main(){return(0);}'
7199
7200
7201
7202
7203
7204
7205
7206 # If no C compiler was specified, use CC.
7207 LTCC=${LTCC-"$CC"}
7208
7209 # If no C compiler flags were specified, use CFLAGS.
7210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7211
7212 # Allow CC to be a program name with arguments.
7213 compiler=$CC
7214
7215 # Save the default compiler, since it gets overwritten when the other
7216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7217 compiler_DEFAULT=$CC
7218
7219 # save warnings/boilerplate of simple test code
7220 ac_outfile=conftest.$ac_objext
7221 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7223 _lt_compiler_boilerplate=`cat conftest.err`
7224 $RM conftest*
7225
7226 ac_outfile=conftest.$ac_objext
7227 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7229 _lt_linker_boilerplate=`cat conftest.err`
7230 $RM -r conftest*
7231
7232
7233 if test -n "$compiler"; then
7234
7235 lt_prog_compiler_no_builtin_flag=
7236
7237 if test "$GCC" = yes; then
7238 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 lt_cv_prog_compiler_rtti_exceptions=no
7246 ac_outfile=conftest.$ac_objext
7247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7248 lt_compiler_flag="-fno-rtti -fno-exceptions"
7249 # Insert the option either (1) after the last *FLAGS variable, or
7250 # (2) before a word containing "conftest.", or (3) at the end.
7251 # Note that $ac_compile itself does not contain backslashes and begins
7252 # with a dollar sign (not a hyphen), so the echo should work correctly.
7253 # The option is referenced via a variable to avoid confusing sed.
7254 lt_compile=`echo "$ac_compile" | $SED \
7255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7257 -e 's:$: $lt_compiler_flag:'`
7258 (eval echo "\"\$as_me:7258: $lt_compile\"" >&5)
7259 (eval "$lt_compile" 2>conftest.err)
7260 ac_status=$?
7261 cat conftest.err >&5
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 if (exit $ac_status) && test -s "$ac_outfile"; then
7264 # The compiler can only warn and ignore the option if not recognized
7265 # So say no if there are warnings other than the usual output.
7266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7269 lt_cv_prog_compiler_rtti_exceptions=yes
7270 fi
7271 fi
7272 $RM conftest*
7273
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7277
7278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7280 else
7281 :
7282 fi
7283
7284 fi
7285
7286
7287
7288
7289
7290
7291 lt_prog_compiler_wl=
7292 lt_prog_compiler_pic=
7293 lt_prog_compiler_static=
7294
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7297
7298 if test "$GCC" = yes; then
7299 lt_prog_compiler_wl='-Wl,'
7300 lt_prog_compiler_static='-static'
7301
7302 case $host_os in
7303 aix*)
7304 # All AIX code is PIC.
7305 if test "$host_cpu" = ia64; then
7306 # AIX 5 now supports IA64 processor
7307 lt_prog_compiler_static='-Bstatic'
7308 fi
7309 ;;
7310
7311 amigaos*)
7312 case $host_cpu in
7313 powerpc)
7314 # see comment about AmigaOS4 .so support
7315 lt_prog_compiler_pic='-fPIC'
7316 ;;
7317 m68k)
7318 # FIXME: we need at least 68020 code to build shared libraries, but
7319 # adding the `-m68020' flag to GCC prevents building anything better,
7320 # like `-m68040'.
7321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7322 ;;
7323 esac
7324 ;;
7325
7326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7327 # PIC is the default for these OSes.
7328 ;;
7329
7330 mingw* | cygwin* | pw32* | os2* | cegcc*)
7331 # This hack is so that the source file can tell whether it is being
7332 # built for inclusion in a dll (and should export symbols for example).
7333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7334 # (--disable-auto-import) libraries
7335 lt_prog_compiler_pic='-DDLL_EXPORT'
7336 ;;
7337
7338 darwin* | rhapsody*)
7339 # PIC is the default on this platform
7340 # Common symbols not allowed in MH_DYLIB files
7341 lt_prog_compiler_pic='-fno-common'
7342 ;;
7343
7344 hpux*)
7345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7347 # sets the default TLS model and affects inlining.
7348 case $host_cpu in
7349 hppa*64*)
7350 # +Z the default
7351 ;;
7352 *)
7353 lt_prog_compiler_pic='-fPIC'
7354 ;;
7355 esac
7356 ;;
7357
7358 interix[3-9]*)
7359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7360 # Instead, we relocate shared libraries at runtime.
7361 ;;
7362
7363 msdosdjgpp*)
7364 # Just because we use GCC doesn't mean we suddenly get shared libraries
7365 # on systems that don't support them.
7366 lt_prog_compiler_can_build_shared=no
7367 enable_shared=no
7368 ;;
7369
7370 *nto* | *qnx*)
7371 # QNX uses GNU C++, but need to define -shared option too, otherwise
7372 # it will coredump.
7373 lt_prog_compiler_pic='-fPIC -shared'
7374 ;;
7375
7376 sysv4*MP*)
7377 if test -d /usr/nec; then
7378 lt_prog_compiler_pic=-Kconform_pic
7379 fi
7380 ;;
7381
7382 *)
7383 lt_prog_compiler_pic='-fPIC'
7384 ;;
7385 esac
7386 else
7387 # PORTME Check for flag to pass linker flags through the system compiler.
7388 case $host_os in
7389 aix*)
7390 lt_prog_compiler_wl='-Wl,'
7391 if test "$host_cpu" = ia64; then
7392 # AIX 5 now supports IA64 processor
7393 lt_prog_compiler_static='-Bstatic'
7394 else
7395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7396 fi
7397 ;;
7398
7399 mingw* | cygwin* | pw32* | os2* | cegcc*)
7400 # This hack is so that the source file can tell whether it is being
7401 # built for inclusion in a dll (and should export symbols for example).
7402 lt_prog_compiler_pic='-DDLL_EXPORT'
7403 ;;
7404
7405 hpux9* | hpux10* | hpux11*)
7406 lt_prog_compiler_wl='-Wl,'
7407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7408 # not for PA HP-UX.
7409 case $host_cpu in
7410 hppa*64*|ia64*)
7411 # +Z the default
7412 ;;
7413 *)
7414 lt_prog_compiler_pic='+Z'
7415 ;;
7416 esac
7417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7418 lt_prog_compiler_static='${wl}-a ${wl}archive'
7419 ;;
7420
7421 irix5* | irix6* | nonstopux*)
7422 lt_prog_compiler_wl='-Wl,'
7423 # PIC (with -KPIC) is the default.
7424 lt_prog_compiler_static='-non_shared'
7425 ;;
7426
7427 linux* | k*bsd*-gnu)
7428 case $cc_basename in
7429 # old Intel for x86_64 which still supported -KPIC.
7430 ecc*)
7431 lt_prog_compiler_wl='-Wl,'
7432 lt_prog_compiler_pic='-KPIC'
7433 lt_prog_compiler_static='-static'
7434 ;;
7435 # icc used to be incompatible with GCC.
7436 # ICC 10 doesn't accept -KPIC any more.
7437 icc* | ifort*)
7438 lt_prog_compiler_wl='-Wl,'
7439 lt_prog_compiler_pic='-fPIC'
7440 lt_prog_compiler_static='-static'
7441 ;;
7442 # Lahey Fortran 8.1.
7443 lf95*)
7444 lt_prog_compiler_wl='-Wl,'
7445 lt_prog_compiler_pic='--shared'
7446 lt_prog_compiler_static='--static'
7447 ;;
7448 pgcc* | pgf77* | pgf90* | pgf95*)
7449 # Portland Group compilers (*not* the Pentium gcc compiler,
7450 # which looks to be a dead project)
7451 lt_prog_compiler_wl='-Wl,'
7452 lt_prog_compiler_pic='-fpic'
7453 lt_prog_compiler_static='-Bstatic'
7454 ;;
7455 ccc*)
7456 lt_prog_compiler_wl='-Wl,'
7457 # All Alpha code is PIC.
7458 lt_prog_compiler_static='-non_shared'
7459 ;;
7460 xl*)
7461 # IBM XL C 8.0/Fortran 10.1 on PPC
7462 lt_prog_compiler_wl='-Wl,'
7463 lt_prog_compiler_pic='-qpic'
7464 lt_prog_compiler_static='-qstaticlink'
7465 ;;
7466 *)
7467 case `$CC -V 2>&1 | sed 5q` in
7468 *Sun\ C*)
7469 # Sun C 5.9
7470 lt_prog_compiler_pic='-KPIC'
7471 lt_prog_compiler_static='-Bstatic'
7472 lt_prog_compiler_wl='-Wl,'
7473 ;;
7474 *Sun\ F*)
7475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7476 lt_prog_compiler_pic='-KPIC'
7477 lt_prog_compiler_static='-Bstatic'
7478 lt_prog_compiler_wl=''
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 ;;
7484
7485 newsos6)
7486 lt_prog_compiler_pic='-KPIC'
7487 lt_prog_compiler_static='-Bstatic'
7488 ;;
7489
7490 *nto* | *qnx*)
7491 # QNX uses GNU C++, but need to define -shared option too, otherwise
7492 # it will coredump.
7493 lt_prog_compiler_pic='-fPIC -shared'
7494 ;;
7495
7496 osf3* | osf4* | osf5*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # All OSF/1 code is PIC.
7499 lt_prog_compiler_static='-non_shared'
7500 ;;
7501
7502 rdos*)
7503 lt_prog_compiler_static='-non_shared'
7504 ;;
7505
7506 solaris*)
7507 lt_prog_compiler_pic='-KPIC'
7508 lt_prog_compiler_static='-Bstatic'
7509 case $cc_basename in
7510 f77* | f90* | f95*)
7511 lt_prog_compiler_wl='-Qoption ld ';;
7512 *)
7513 lt_prog_compiler_wl='-Wl,';;
7514 esac
7515 ;;
7516
7517 sunos4*)
7518 lt_prog_compiler_wl='-Qoption ld '
7519 lt_prog_compiler_pic='-PIC'
7520 lt_prog_compiler_static='-Bstatic'
7521 ;;
7522
7523 sysv4 | sysv4.2uw2* | sysv4.3*)
7524 lt_prog_compiler_wl='-Wl,'
7525 lt_prog_compiler_pic='-KPIC'
7526 lt_prog_compiler_static='-Bstatic'
7527 ;;
7528
7529 sysv4*MP*)
7530 if test -d /usr/nec ;then
7531 lt_prog_compiler_pic='-Kconform_pic'
7532 lt_prog_compiler_static='-Bstatic'
7533 fi
7534 ;;
7535
7536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7537 lt_prog_compiler_wl='-Wl,'
7538 lt_prog_compiler_pic='-KPIC'
7539 lt_prog_compiler_static='-Bstatic'
7540 ;;
7541
7542 unicos*)
7543 lt_prog_compiler_wl='-Wl,'
7544 lt_prog_compiler_can_build_shared=no
7545 ;;
7546
7547 uts4*)
7548 lt_prog_compiler_pic='-pic'
7549 lt_prog_compiler_static='-Bstatic'
7550 ;;
7551
7552 *)
7553 lt_prog_compiler_can_build_shared=no
7554 ;;
7555 esac
7556 fi
7557
7558 case $host_os in
7559 # For platforms which do not support PIC, -DPIC is meaningless:
7560 *djgpp*)
7561 lt_prog_compiler_pic=
7562 ;;
7563 *)
7564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7565 ;;
7566 esac
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7568 $as_echo "$lt_prog_compiler_pic" >&6; }
7569
7570
7571
7572
7573
7574
7575 #
7576 # Check to make sure the PIC flag actually works.
7577 #
7578 if test -n "$lt_prog_compiler_pic"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 lt_cv_prog_compiler_pic_works=no
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7588 # Insert the option either (1) after the last *FLAGS variable, or
7589 # (2) before a word containing "conftest.", or (3) at the end.
7590 # Note that $ac_compile itself does not contain backslashes and begins
7591 # with a dollar sign (not a hyphen), so the echo should work correctly.
7592 # The option is referenced via a variable to avoid confusing sed.
7593 lt_compile=`echo "$ac_compile" | $SED \
7594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7596 -e 's:$: $lt_compiler_flag:'`
7597 (eval echo "\"\$as_me:7597: $lt_compile\"" >&5)
7598 (eval "$lt_compile" 2>conftest.err)
7599 ac_status=$?
7600 cat conftest.err >&5
7601 echo "$as_me:7601: \$? = $ac_status" >&5
7602 if (exit $ac_status) && test -s "$ac_outfile"; then
7603 # The compiler can only warn and ignore the option if not recognized
7604 # So say no if there are warnings other than the usual output.
7605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7608 lt_cv_prog_compiler_pic_works=yes
7609 fi
7610 fi
7611 $RM conftest*
7612
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7616
7617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7618 case $lt_prog_compiler_pic in
7619 "" | " "*) ;;
7620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7621 esac
7622 else
7623 lt_prog_compiler_pic=
7624 lt_prog_compiler_can_build_shared=no
7625 fi
7626
7627 fi
7628
7629
7630
7631
7632
7633
7634 #
7635 # Check to make sure the static flag actually works.
7636 #
7637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 lt_cv_prog_compiler_static_works=no
7644 save_LDFLAGS="$LDFLAGS"
7645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7648 # The linker can only warn and ignore the option if not recognized
7649 # So say no if there are warnings
7650 if test -s conftest.err; then
7651 # Append any errors to the config.log.
7652 cat conftest.err 1>&5
7653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655 if diff conftest.exp conftest.er2 >/dev/null; then
7656 lt_cv_prog_compiler_static_works=yes
7657 fi
7658 else
7659 lt_cv_prog_compiler_static_works=yes
7660 fi
7661 fi
7662 $RM -r conftest*
7663 LDFLAGS="$save_LDFLAGS"
7664
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7668
7669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7670 :
7671 else
7672 lt_prog_compiler_static=
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 lt_cv_prog_compiler_c_o=no
7687 $RM -r conftest 2>/dev/null
7688 mkdir conftest
7689 cd conftest
7690 mkdir out
7691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7692
7693 lt_compiler_flag="-o out/conftest2.$ac_objext"
7694 # Insert the option either (1) after the last *FLAGS variable, or
7695 # (2) before a word containing "conftest.", or (3) at the end.
7696 # Note that $ac_compile itself does not contain backslashes and begins
7697 # with a dollar sign (not a hyphen), so the echo should work correctly.
7698 lt_compile=`echo "$ac_compile" | $SED \
7699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7701 -e 's:$: $lt_compiler_flag:'`
7702 (eval echo "\"\$as_me:7702: $lt_compile\"" >&5)
7703 (eval "$lt_compile" 2>out/conftest.err)
7704 ac_status=$?
7705 cat out/conftest.err >&5
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7708 then
7709 # The compiler can only warn and ignore the option if not recognized
7710 # So say no if there are warnings
7711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7714 lt_cv_prog_compiler_c_o=yes
7715 fi
7716 fi
7717 chmod u+w . 2>&5
7718 $RM conftest*
7719 # SGI C++ compiler will create directory out/ii_files/ for
7720 # template instantiation
7721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7722 $RM out/* && rmdir out
7723 cd ..
7724 $RM -r conftest
7725 $RM conftest*
7726
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7730
7731
7732
7733
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 lt_cv_prog_compiler_c_o=no
7742 $RM -r conftest 2>/dev/null
7743 mkdir conftest
7744 cd conftest
7745 mkdir out
7746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7747
7748 lt_compiler_flag="-o out/conftest2.$ac_objext"
7749 # Insert the option either (1) after the last *FLAGS variable, or
7750 # (2) before a word containing "conftest.", or (3) at the end.
7751 # Note that $ac_compile itself does not contain backslashes and begins
7752 # with a dollar sign (not a hyphen), so the echo should work correctly.
7753 lt_compile=`echo "$ac_compile" | $SED \
7754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7756 -e 's:$: $lt_compiler_flag:'`
7757 (eval echo "\"\$as_me:7757: $lt_compile\"" >&5)
7758 (eval "$lt_compile" 2>out/conftest.err)
7759 ac_status=$?
7760 cat out/conftest.err >&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7763 then
7764 # The compiler can only warn and ignore the option if not recognized
7765 # So say no if there are warnings
7766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7769 lt_cv_prog_compiler_c_o=yes
7770 fi
7771 fi
7772 chmod u+w . 2>&5
7773 $RM conftest*
7774 # SGI C++ compiler will create directory out/ii_files/ for
7775 # template instantiation
7776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7777 $RM out/* && rmdir out
7778 cd ..
7779 $RM -r conftest
7780 $RM conftest*
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7785
7786
7787
7788
7789 hard_links="nottested"
7790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7791 # do not overwrite the value of need_locks provided by the user
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7793 $as_echo_n "checking if we can lock with hard links... " >&6; }
7794 hard_links=yes
7795 $RM conftest*
7796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7797 touch conftest.a
7798 ln conftest.a conftest.b 2>&5 || hard_links=no
7799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7801 $as_echo "$hard_links" >&6; }
7802 if test "$hard_links" = no; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7805 need_locks=warn
7806 fi
7807 else
7808 need_locks=no
7809 fi
7810
7811
7812
7813
7814
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7818
7819 runpath_var=
7820 allow_undefined_flag=
7821 always_export_symbols=no
7822 archive_cmds=
7823 archive_expsym_cmds=
7824 compiler_needs_object=no
7825 enable_shared_with_static_runtimes=no
7826 export_dynamic_flag_spec=
7827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7828 hardcode_automatic=no
7829 hardcode_direct=no
7830 hardcode_direct_absolute=no
7831 hardcode_libdir_flag_spec=
7832 hardcode_libdir_flag_spec_ld=
7833 hardcode_libdir_separator=
7834 hardcode_minus_L=no
7835 hardcode_shlibpath_var=unsupported
7836 inherit_rpath=no
7837 link_all_deplibs=unknown
7838 module_cmds=
7839 module_expsym_cmds=
7840 old_archive_from_new_cmds=
7841 old_archive_from_expsyms_cmds=
7842 thread_safe_flag_spec=
7843 whole_archive_flag_spec=
7844 # include_expsyms should be a list of space-separated symbols to be *always*
7845 # included in the symbol list
7846 include_expsyms=
7847 # exclude_expsyms can be an extended regexp of symbols to exclude
7848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7850 # as well as any symbol that contains `d'.
7851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7853 # platforms (ab)use it in PIC code, but their linkers get confused if
7854 # the symbol is explicitly referenced. Since portable code cannot
7855 # rely on this symbol name, it's probably fine to never include it in
7856 # preloaded symbol tables.
7857 # Exclude shared library initialization/finalization symbols.
7858 extract_expsyms_cmds=
7859
7860 case $host_os in
7861 cygwin* | mingw* | pw32* | cegcc*)
7862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7863 # When not using gcc, we currently assume that we are using
7864 # Microsoft Visual C++.
7865 if test "$GCC" != yes; then
7866 with_gnu_ld=no
7867 fi
7868 ;;
7869 interix*)
7870 # we just hope/assume this is gcc and not c89 (= MSVC++)
7871 with_gnu_ld=yes
7872 ;;
7873 openbsd*)
7874 with_gnu_ld=no
7875 ;;
7876 esac
7877
7878 ld_shlibs=yes
7879 if test "$with_gnu_ld" = yes; then
7880 # If archive_cmds runs LD, not CC, wlarc should be empty
7881 wlarc='${wl}'
7882
7883 # Set some defaults for GNU ld with shared library support. These
7884 # are reset later if shared libraries are not supported. Putting them
7885 # here allows them to be overridden if necessary.
7886 runpath_var=LD_RUN_PATH
7887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7888 export_dynamic_flag_spec='${wl}--export-dynamic'
7889 # ancient GNU ld didn't support --whole-archive et. al.
7890 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7891 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7892 else
7893 whole_archive_flag_spec=
7894 fi
7895 supports_anon_versioning=no
7896 case `$LD -v 2>&1` in
7897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7900 *\ 2.11.*) ;; # other 2.11 versions
7901 *) supports_anon_versioning=yes ;;
7902 esac
7903
7904 # See if GNU ld supports shared libraries.
7905 case $host_os in
7906 aix[3-9]*)
7907 # On AIX/PPC, the GNU linker is very broken
7908 if test "$host_cpu" != ia64; then
7909 ld_shlibs=no
7910 cat <<_LT_EOF 1>&2
7911
7912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7913 *** to be unable to reliably create shared libraries on AIX.
7914 *** Therefore, libtool is disabling shared libraries support. If you
7915 *** really care for shared libraries, you may want to modify your PATH
7916 *** so that a non-GNU linker is found, and then restart.
7917
7918 _LT_EOF
7919 fi
7920 ;;
7921
7922 amigaos*)
7923 case $host_cpu in
7924 powerpc)
7925 # see comment about AmigaOS4 .so support
7926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927 archive_expsym_cmds=''
7928 ;;
7929 m68k)
7930 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)'
7931 hardcode_libdir_flag_spec='-L$libdir'
7932 hardcode_minus_L=yes
7933 ;;
7934 esac
7935 ;;
7936
7937 beos*)
7938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7939 allow_undefined_flag=unsupported
7940 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7941 # support --undefined. This deserves some investigation. FIXME
7942 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943 else
7944 ld_shlibs=no
7945 fi
7946 ;;
7947
7948 cygwin* | mingw* | pw32* | cegcc*)
7949 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7950 # as there is no search path for DLLs.
7951 hardcode_libdir_flag_spec='-L$libdir'
7952 allow_undefined_flag=unsupported
7953 always_export_symbols=no
7954 enable_shared_with_static_runtimes=yes
7955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7956
7957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7959 # If the export-symbols file already is a .def file (1st line
7960 # is EXPORTS), use it as is; otherwise, prepend...
7961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7962 cp $export_symbols $output_objdir/$soname.def;
7963 else
7964 echo EXPORTS > $output_objdir/$soname.def;
7965 cat $export_symbols >> $output_objdir/$soname.def;
7966 fi~
7967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7968 else
7969 ld_shlibs=no
7970 fi
7971 ;;
7972
7973 interix[3-9]*)
7974 hardcode_direct=no
7975 hardcode_shlibpath_var=no
7976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7977 export_dynamic_flag_spec='${wl}-E'
7978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7979 # Instead, shared libraries are loaded at an image base (0x10000000 by
7980 # default) and relocated if they conflict, which is a slow very memory
7981 # consuming and fragmenting process. To avoid this, we pick a random,
7982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7985 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'
7986 ;;
7987
7988 gnu* | linux* | tpf* | k*bsd*-gnu)
7989 tmp_diet=no
7990 if test "$host_os" = linux-dietlibc; then
7991 case $cc_basename in
7992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7993 esac
7994 fi
7995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7996 && test "$tmp_diet" = no
7997 then
7998 tmp_addflag=
7999 tmp_sharedflag='-shared'
8000 case $cc_basename,$host_cpu in
8001 pgcc*) # Portland Group C compiler
8002 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8003 tmp_addflag=' $pic_flag'
8004 ;;
8005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8006 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8007 tmp_addflag=' $pic_flag -Mnomain' ;;
8008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8009 tmp_addflag=' -i_dynamic' ;;
8010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8011 tmp_addflag=' -i_dynamic -nofor_main' ;;
8012 ifc* | ifort*) # Intel Fortran compiler
8013 tmp_addflag=' -nofor_main' ;;
8014 lf95*) # Lahey Fortran 8.1
8015 whole_archive_flag_spec=
8016 tmp_sharedflag='--shared' ;;
8017 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8018 tmp_sharedflag='-qmkshrobj'
8019 tmp_addflag= ;;
8020 esac
8021 case `$CC -V 2>&1 | sed 5q` in
8022 *Sun\ C*) # Sun C 5.9
8023 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8024 compiler_needs_object=yes
8025 tmp_sharedflag='-G' ;;
8026 *Sun\ F*) # Sun Fortran 8.3
8027 tmp_sharedflag='-G' ;;
8028 esac
8029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8030
8031 if test "x$supports_anon_versioning" = xyes; then
8032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8034 echo "local: *; };" >> $output_objdir/$libname.ver~
8035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8036 fi
8037
8038 case $cc_basename in
8039 xlf*)
8040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8042 hardcode_libdir_flag_spec=
8043 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8044 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8045 if test "x$supports_anon_versioning" = xyes; then
8046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8048 echo "local: *; };" >> $output_objdir/$libname.ver~
8049 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8050 fi
8051 ;;
8052 esac
8053 else
8054 ld_shlibs=no
8055 fi
8056 ;;
8057
8058 netbsd*)
8059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8060 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8061 wlarc=
8062 else
8063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8065 fi
8066 ;;
8067
8068 solaris*)
8069 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8070 ld_shlibs=no
8071 cat <<_LT_EOF 1>&2
8072
8073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8074 *** create shared libraries on Solaris systems. Therefore, libtool
8075 *** is disabling shared libraries support. We urge you to upgrade GNU
8076 *** binutils to release 2.9.1 or newer. Another option is to modify
8077 *** your PATH or compiler configuration so that the native linker is
8078 *** used, and then restart.
8079
8080 _LT_EOF
8081 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8084 else
8085 ld_shlibs=no
8086 fi
8087 ;;
8088
8089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8090 case `$LD -v 2>&1` in
8091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8092 ld_shlibs=no
8093 cat <<_LT_EOF 1>&2
8094
8095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8096 *** reliably create shared libraries on SCO systems. Therefore, libtool
8097 *** is disabling shared libraries support. We urge you to upgrade GNU
8098 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8099 *** your PATH or compiler configuration so that the native linker is
8100 *** used, and then restart.
8101
8102 _LT_EOF
8103 ;;
8104 *)
8105 # For security reasons, it is highly recommended that you always
8106 # use absolute paths for naming shared libraries, and exclude the
8107 # DT_RUNPATH tag from executables and libraries. But doing so
8108 # requires that you compile everything twice, which is a pain.
8109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113 else
8114 ld_shlibs=no
8115 fi
8116 ;;
8117 esac
8118 ;;
8119
8120 sunos4*)
8121 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8122 wlarc=
8123 hardcode_direct=yes
8124 hardcode_shlibpath_var=no
8125 ;;
8126
8127 *)
8128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131 else
8132 ld_shlibs=no
8133 fi
8134 ;;
8135 esac
8136
8137 if test "$ld_shlibs" = no; then
8138 runpath_var=
8139 hardcode_libdir_flag_spec=
8140 export_dynamic_flag_spec=
8141 whole_archive_flag_spec=
8142 fi
8143 else
8144 # PORTME fill in a description of your system's linker (not GNU ld)
8145 case $host_os in
8146 aix3*)
8147 allow_undefined_flag=unsupported
8148 always_export_symbols=yes
8149 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'
8150 # Note: this linker hardcodes the directories in LIBPATH if there
8151 # are no directories specified by -L.
8152 hardcode_minus_L=yes
8153 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8154 # Neither direct hardcoding nor static linking is supported with a
8155 # broken collect2.
8156 hardcode_direct=unsupported
8157 fi
8158 ;;
8159
8160 aix[4-9]*)
8161 if test "$host_cpu" = ia64; then
8162 # On IA64, the linker does run time linking by default, so we don't
8163 # have to do anything special.
8164 aix_use_runtimelinking=no
8165 exp_sym_flag='-Bexport'
8166 no_entry_flag=""
8167 else
8168 # If we're using GNU nm, then we don't want the "-C" option.
8169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8171 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8172 else
8173 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'
8174 fi
8175 aix_use_runtimelinking=no
8176
8177 # Test if we are trying to use run time linking or normal
8178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8179 # need to do runtime linking.
8180 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8181 for ld_flag in $LDFLAGS; do
8182 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8183 aix_use_runtimelinking=yes
8184 break
8185 fi
8186 done
8187 ;;
8188 esac
8189
8190 exp_sym_flag='-bexport'
8191 no_entry_flag='-bnoentry'
8192 fi
8193
8194 # When large executables or shared objects are built, AIX ld can
8195 # have problems creating the table of contents. If linking a library
8196 # or program results in "error TOC overflow" add -mminimal-toc to
8197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8199
8200 archive_cmds=''
8201 hardcode_direct=yes
8202 hardcode_direct_absolute=yes
8203 hardcode_libdir_separator=':'
8204 link_all_deplibs=yes
8205 file_list_spec='${wl}-f,'
8206
8207 if test "$GCC" = yes; then
8208 case $host_os in aix4.[012]|aix4.[012].*)
8209 # We only want to do this on AIX 4.2 and lower, the check
8210 # below for broken collect2 doesn't work under 4.3+
8211 collect2name=`${CC} -print-prog-name=collect2`
8212 if test -f "$collect2name" &&
8213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8214 then
8215 # We have reworked collect2
8216 :
8217 else
8218 # We have old collect2
8219 hardcode_direct=unsupported
8220 # It fails to find uninstalled libraries when the uninstalled
8221 # path is not listed in the libpath. Setting hardcode_minus_L
8222 # to unsupported forces relinking
8223 hardcode_minus_L=yes
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 hardcode_libdir_separator=
8226 fi
8227 ;;
8228 esac
8229 shared_flag='-shared'
8230 if test "$aix_use_runtimelinking" = yes; then
8231 shared_flag="$shared_flag "'${wl}-G'
8232 fi
8233 else
8234 # not using gcc
8235 if test "$host_cpu" = ia64; then
8236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8237 # chokes on -Wl,-G. The following line is correct:
8238 shared_flag='-G'
8239 else
8240 if test "$aix_use_runtimelinking" = yes; then
8241 shared_flag='${wl}-G'
8242 else
8243 shared_flag='${wl}-bM:SRE'
8244 fi
8245 fi
8246 fi
8247
8248 export_dynamic_flag_spec='${wl}-bexpall'
8249 # It seems that -bexpall does not export symbols beginning with
8250 # underscore (_), so it is better to generate a list of symbols to export.
8251 always_export_symbols=yes
8252 if test "$aix_use_runtimelinking" = yes; then
8253 # Warning - without using the other runtime loading flags (-brtl),
8254 # -berok will link without error, but may produce a broken library.
8255 allow_undefined_flag='-berok'
8256 # Determine the default libpath from the value encoded in an
8257 # empty executable.
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260
8261 int
8262 main ()
8263 {
8264
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_link "$LINENO"; then :
8270
8271 lt_aix_libpath_sed='
8272 /Import File Strings/,/^$/ {
8273 /^0/ {
8274 s/^0 *\(.*\)$/\1/
8275 p
8276 }
8277 }'
8278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8279 # Check for a 64-bit object if we didn't find anything.
8280 if test -z "$aix_libpath"; then
8281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8282 fi
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8287
8288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8289 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8290 else
8291 if test "$host_cpu" = ia64; then
8292 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8293 allow_undefined_flag="-z nodefs"
8294 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"
8295 else
8296 # Determine the default libpath from the value encoded in an
8297 # empty executable.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300
8301 int
8302 main ()
8303 {
8304
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8310
8311 lt_aix_libpath_sed='
8312 /Import File Strings/,/^$/ {
8313 /^0/ {
8314 s/^0 *\(.*\)$/\1/
8315 p
8316 }
8317 }'
8318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 # Check for a 64-bit object if we didn't find anything.
8320 if test -z "$aix_libpath"; then
8321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8322 fi
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8327
8328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8329 # Warning - without using the other run time loading flags,
8330 # -berok will link without error, but may produce a broken library.
8331 no_undefined_flag=' ${wl}-bernotok'
8332 allow_undefined_flag=' ${wl}-berok'
8333 # Exported symbols can be pulled into shared objects from archives
8334 whole_archive_flag_spec='$convenience'
8335 archive_cmds_need_lc=yes
8336 # This is similar to how AIX traditionally builds its shared libraries.
8337 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'
8338 fi
8339 fi
8340 ;;
8341
8342 amigaos*)
8343 case $host_cpu in
8344 powerpc)
8345 # see comment about AmigaOS4 .so support
8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 archive_expsym_cmds=''
8348 ;;
8349 m68k)
8350 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)'
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 hardcode_minus_L=yes
8353 ;;
8354 esac
8355 ;;
8356
8357 bsdi[45]*)
8358 export_dynamic_flag_spec=-rdynamic
8359 ;;
8360
8361 cygwin* | mingw* | pw32* | cegcc*)
8362 # When not using gcc, we currently assume that we are using
8363 # Microsoft Visual C++.
8364 # hardcode_libdir_flag_spec is actually meaningless, as there is
8365 # no search path for DLLs.
8366 hardcode_libdir_flag_spec=' '
8367 allow_undefined_flag=unsupported
8368 # Tell ltmain to make .lib files, not .a files.
8369 libext=lib
8370 # Tell ltmain to make .dll files, not .so files.
8371 shrext_cmds=".dll"
8372 # FIXME: Setting linknames here is a bad hack.
8373 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8374 # The linker will automatically build a .lib file if we build a DLL.
8375 old_archive_from_new_cmds='true'
8376 # FIXME: Should let the user specify the lib program.
8377 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8378 fix_srcfile_path='`cygpath -w "$srcfile"`'
8379 enable_shared_with_static_runtimes=yes
8380 ;;
8381
8382 darwin* | rhapsody*)
8383
8384
8385 archive_cmds_need_lc=no
8386 hardcode_direct=no
8387 hardcode_automatic=yes
8388 hardcode_shlibpath_var=unsupported
8389 whole_archive_flag_spec=''
8390 link_all_deplibs=yes
8391 allow_undefined_flag="$_lt_dar_allow_undefined"
8392 case $cc_basename in
8393 ifort*) _lt_dar_can_shared=yes ;;
8394 *) _lt_dar_can_shared=$GCC ;;
8395 esac
8396 if test "$_lt_dar_can_shared" = "yes"; then
8397 output_verbose_link_cmd=echo
8398 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8399 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8400 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}"
8401 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}"
8402
8403 else
8404 ld_shlibs=no
8405 fi
8406
8407 ;;
8408
8409 dgux*)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_libdir_flag_spec='-L$libdir'
8412 hardcode_shlibpath_var=no
8413 ;;
8414
8415 freebsd1*)
8416 ld_shlibs=no
8417 ;;
8418
8419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8420 # support. Future versions do this automatically, but an explicit c++rt0.o
8421 # does not break anything, and helps significantly (at the cost of a little
8422 # extra space).
8423 freebsd2.2*)
8424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8425 hardcode_libdir_flag_spec='-R$libdir'
8426 hardcode_direct=yes
8427 hardcode_shlibpath_var=no
8428 ;;
8429
8430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8431 freebsd2*)
8432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_direct=yes
8434 hardcode_minus_L=yes
8435 hardcode_shlibpath_var=no
8436 ;;
8437
8438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8439 freebsd* | dragonfly*)
8440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8441 hardcode_libdir_flag_spec='-R$libdir'
8442 hardcode_direct=yes
8443 hardcode_shlibpath_var=no
8444 ;;
8445
8446 hpux9*)
8447 if test "$GCC" = yes; then
8448 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'
8449 else
8450 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'
8451 fi
8452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453 hardcode_libdir_separator=:
8454 hardcode_direct=yes
8455
8456 # hardcode_minus_L: Not really in the search PATH,
8457 # but as the default location of the library.
8458 hardcode_minus_L=yes
8459 export_dynamic_flag_spec='${wl}-E'
8460 ;;
8461
8462 hpux10*)
8463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465 else
8466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8467 fi
8468 if test "$with_gnu_ld" = no; then
8469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470 hardcode_libdir_flag_spec_ld='+b $libdir'
8471 hardcode_libdir_separator=:
8472 hardcode_direct=yes
8473 hardcode_direct_absolute=yes
8474 export_dynamic_flag_spec='${wl}-E'
8475 # hardcode_minus_L: Not really in the search PATH,
8476 # but as the default location of the library.
8477 hardcode_minus_L=yes
8478 fi
8479 ;;
8480
8481 hpux11*)
8482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8483 case $host_cpu in
8484 hppa*64*)
8485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 ;;
8487 ia64*)
8488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8489 ;;
8490 *)
8491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8492 ;;
8493 esac
8494 else
8495 case $host_cpu in
8496 hppa*64*)
8497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8498 ;;
8499 ia64*)
8500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8501 ;;
8502 *)
8503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8504 ;;
8505 esac
8506 fi
8507 if test "$with_gnu_ld" = no; then
8508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8509 hardcode_libdir_separator=:
8510
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 hardcode_direct=no
8514 hardcode_shlibpath_var=no
8515 ;;
8516 *)
8517 hardcode_direct=yes
8518 hardcode_direct_absolute=yes
8519 export_dynamic_flag_spec='${wl}-E'
8520
8521 # hardcode_minus_L: Not really in the search PATH,
8522 # but as the default location of the library.
8523 hardcode_minus_L=yes
8524 ;;
8525 esac
8526 fi
8527 ;;
8528
8529 irix5* | irix6* | nonstopux*)
8530 if test "$GCC" = yes; then
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8532 # Try to use the -exported_symbol ld option, if it does not
8533 # work, assume that -exports_file does not work either and
8534 # implicitly export all symbols.
8535 save_LDFLAGS="$LDFLAGS"
8536 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 int foo(void) {}
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8543
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LDFLAGS="$save_LDFLAGS"
8548 else
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8551 fi
8552 archive_cmds_need_lc='no'
8553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554 hardcode_libdir_separator=:
8555 inherit_rpath=yes
8556 link_all_deplibs=yes
8557 ;;
8558
8559 netbsd*)
8560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8562 else
8563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8564 fi
8565 hardcode_libdir_flag_spec='-R$libdir'
8566 hardcode_direct=yes
8567 hardcode_shlibpath_var=no
8568 ;;
8569
8570 newsos6)
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_direct=yes
8573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574 hardcode_libdir_separator=:
8575 hardcode_shlibpath_var=no
8576 ;;
8577
8578 *nto* | *qnx*)
8579 ;;
8580
8581 openbsd*)
8582 if test -f /usr/libexec/ld.so; then
8583 hardcode_direct=yes
8584 hardcode_shlibpath_var=no
8585 hardcode_direct_absolute=yes
8586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8590 export_dynamic_flag_spec='${wl}-E'
8591 else
8592 case $host_os in
8593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8595 hardcode_libdir_flag_spec='-R$libdir'
8596 ;;
8597 *)
8598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8599 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8600 ;;
8601 esac
8602 fi
8603 else
8604 ld_shlibs=no
8605 fi
8606 ;;
8607
8608 os2*)
8609 hardcode_libdir_flag_spec='-L$libdir'
8610 hardcode_minus_L=yes
8611 allow_undefined_flag=unsupported
8612 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'
8613 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8614 ;;
8615
8616 osf3*)
8617 if test "$GCC" = yes; then
8618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8619 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8620 else
8621 allow_undefined_flag=' -expect_unresolved \*'
8622 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8623 fi
8624 archive_cmds_need_lc='no'
8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626 hardcode_libdir_separator=:
8627 ;;
8628
8629 osf4* | osf5*) # as osf3* with the addition of -msym flag
8630 if test "$GCC" = yes; then
8631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8632 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634 else
8635 allow_undefined_flag=' -expect_unresolved \*'
8636 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8637 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~
8638 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8639
8640 # Both c and cxx compiler support -rpath directly
8641 hardcode_libdir_flag_spec='-rpath $libdir'
8642 fi
8643 archive_cmds_need_lc='no'
8644 hardcode_libdir_separator=:
8645 ;;
8646
8647 solaris*)
8648 no_undefined_flag=' -z defs'
8649 if test "$GCC" = yes; then
8650 wlarc='${wl}'
8651 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8653 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8654 else
8655 case `$CC -V 2>&1` in
8656 *"Compilers 5.0"*)
8657 wlarc=''
8658 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8661 ;;
8662 *)
8663 wlarc='${wl}'
8664 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8666 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8667 ;;
8668 esac
8669 fi
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 hardcode_shlibpath_var=no
8672 case $host_os in
8673 solaris2.[0-5] | solaris2.[0-5].*) ;;
8674 *)
8675 # The compiler driver will combine and reorder linker options,
8676 # but understands `-z linker_flag'. GCC discards it without `$wl',
8677 # but is careful enough not to reorder.
8678 # Supported since Solaris 2.6 (maybe 2.5.1?)
8679 if test "$GCC" = yes; then
8680 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8681 else
8682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8683 fi
8684 ;;
8685 esac
8686 link_all_deplibs=yes
8687 ;;
8688
8689 sunos4*)
8690 if test "x$host_vendor" = xsequent; then
8691 # Use $CC to link under sequent, because it throws in some extra .o
8692 # files that make .init and .fini sections work.
8693 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8694 else
8695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8696 fi
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_direct=yes
8699 hardcode_minus_L=yes
8700 hardcode_shlibpath_var=no
8701 ;;
8702
8703 sysv4)
8704 case $host_vendor in
8705 sni)
8706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_direct=yes # is this really true???
8708 ;;
8709 siemens)
8710 ## LD is ld it makes a PLAMLIB
8711 ## CC just makes a GrossModule.
8712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8713 reload_cmds='$CC -r -o $output$reload_objs'
8714 hardcode_direct=no
8715 ;;
8716 motorola)
8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8719 ;;
8720 esac
8721 runpath_var='LD_RUN_PATH'
8722 hardcode_shlibpath_var=no
8723 ;;
8724
8725 sysv4.3*)
8726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727 hardcode_shlibpath_var=no
8728 export_dynamic_flag_spec='-Bexport'
8729 ;;
8730
8731 sysv4*MP*)
8732 if test -d /usr/nec; then
8733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 hardcode_shlibpath_var=no
8735 runpath_var=LD_RUN_PATH
8736 hardcode_runpath_var=yes
8737 ld_shlibs=yes
8738 fi
8739 ;;
8740
8741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8742 no_undefined_flag='${wl}-z,text'
8743 archive_cmds_need_lc=no
8744 hardcode_shlibpath_var=no
8745 runpath_var='LD_RUN_PATH'
8746
8747 if test "$GCC" = yes; then
8748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 else
8751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 fi
8754 ;;
8755
8756 sysv5* | sco3.2v5* | sco5v6*)
8757 # Note: We can NOT use -z defs as we might desire, because we do not
8758 # link with -lc, and that would cause any symbols used from libc to
8759 # always be unresolved, which means just about no library would
8760 # ever link correctly. If we're not using GNU ld we use -z text
8761 # though, which does catch some bad symbols but isn't as heavy-handed
8762 # as -z defs.
8763 no_undefined_flag='${wl}-z,text'
8764 allow_undefined_flag='${wl}-z,nodefs'
8765 archive_cmds_need_lc=no
8766 hardcode_shlibpath_var=no
8767 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8768 hardcode_libdir_separator=':'
8769 link_all_deplibs=yes
8770 export_dynamic_flag_spec='${wl}-Bexport'
8771 runpath_var='LD_RUN_PATH'
8772
8773 if test "$GCC" = yes; then
8774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 else
8777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 fi
8780 ;;
8781
8782 uts4*)
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_libdir_flag_spec='-L$libdir'
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 *)
8789 ld_shlibs=no
8790 ;;
8791 esac
8792
8793 if test x$host_vendor = xsni; then
8794 case $host in
8795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8796 export_dynamic_flag_spec='${wl}-Blargedynsym'
8797 ;;
8798 esac
8799 fi
8800 fi
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8803 $as_echo "$ld_shlibs" >&6; }
8804 test "$ld_shlibs" = no && can_build_shared=no
8805
8806 with_gnu_ld=$with_gnu_ld
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 #
8823 # Do we need to explicitly link libc?
8824 #
8825 case "x$archive_cmds_need_lc" in
8826 x|xyes)
8827 # Assume -lc should be added
8828 archive_cmds_need_lc=yes
8829
8830 if test "$enable_shared" = yes && test "$GCC" = yes; then
8831 case $archive_cmds in
8832 *'~'*)
8833 # FIXME: we may have to deal with multi-command sequences.
8834 ;;
8835 '$CC '*)
8836 # Test whether the compiler implicitly links with -lc since on some
8837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8838 # to ld, don't add -lc before -lgcc.
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8841 $RM conftest*
8842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843
8844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8845 (eval $ac_compile) 2>&5
8846 ac_status=$?
8847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8848 test $ac_status = 0; } 2>conftest.err; then
8849 soname=conftest
8850 lib=conftest
8851 libobjs=conftest.$ac_objext
8852 deplibs=
8853 wl=$lt_prog_compiler_wl
8854 pic_flag=$lt_prog_compiler_pic
8855 compiler_flags=-v
8856 linker_flags=-v
8857 verstring=
8858 output_objdir=.
8859 libname=conftest
8860 lt_save_allow_undefined_flag=$allow_undefined_flag
8861 allow_undefined_flag=
8862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8863 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8864 ac_status=$?
8865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8866 test $ac_status = 0; }
8867 then
8868 archive_cmds_need_lc=no
8869 else
8870 archive_cmds_need_lc=yes
8871 fi
8872 allow_undefined_flag=$lt_save_allow_undefined_flag
8873 else
8874 cat conftest.err 1>&5
8875 fi
8876 $RM conftest*
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8878 $as_echo "$archive_cmds_need_lc" >&6; }
8879 ;;
8880 esac
8881 fi
8882 ;;
8883 esac
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9043
9044 if test "$GCC" = yes; then
9045 case $host_os in
9046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9047 *) lt_awk_arg="/^libraries:/" ;;
9048 esac
9049 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9050 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9051 # if the path contains ";" then we assume it to be the separator
9052 # otherwise default to the standard path separator (i.e. ":") - it is
9053 # assumed that no part of a normal pathname contains ";" but that should
9054 # okay in the real world where ";" in dirpaths is itself problematic.
9055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9056 else
9057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9058 fi
9059 # Ok, now we have the path, separated by spaces, we can step through it
9060 # and add multilib dir if necessary.
9061 lt_tmp_lt_search_path_spec=
9062 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9063 for lt_sys_path in $lt_search_path_spec; do
9064 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9066 else
9067 test -d "$lt_sys_path" && \
9068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9069 fi
9070 done
9071 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9072 BEGIN {RS=" "; FS="/|\n";} {
9073 lt_foo="";
9074 lt_count=0;
9075 for (lt_i = NF; lt_i > 0; lt_i--) {
9076 if ($lt_i != "" && $lt_i != ".") {
9077 if ($lt_i == "..") {
9078 lt_count++;
9079 } else {
9080 if (lt_count == 0) {
9081 lt_foo="/" $lt_i lt_foo;
9082 } else {
9083 lt_count--;
9084 }
9085 }
9086 }
9087 }
9088 if (lt_foo != "") { lt_freq[lt_foo]++; }
9089 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9090 }'`
9091 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9092 else
9093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9094 fi
9095 library_names_spec=
9096 libname_spec='lib$name'
9097 soname_spec=
9098 shrext_cmds=".so"
9099 postinstall_cmds=
9100 postuninstall_cmds=
9101 finish_cmds=
9102 finish_eval=
9103 shlibpath_var=
9104 shlibpath_overrides_runpath=unknown
9105 version_type=none
9106 dynamic_linker="$host_os ld.so"
9107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9108 need_lib_prefix=unknown
9109 hardcode_into_libs=no
9110
9111 # when you set need_version to no, make sure it does not cause -set_version
9112 # flags to be left without arguments
9113 need_version=unknown
9114
9115 case $host_os in
9116 aix3*)
9117 version_type=linux
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9119 shlibpath_var=LIBPATH
9120
9121 # AIX 3 has no versioning support, so we append a major version to the name.
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 ;;
9124
9125 aix[4-9]*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 hardcode_into_libs=yes
9130 if test "$host_cpu" = ia64; then
9131 # AIX 5 supports IA64
9132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 else
9135 # With GCC up to 2.95.x, collect2 would create an import file
9136 # for dependence libraries. The import file would start with
9137 # the line `#! .'. This would cause the generated library to
9138 # depend on `.', always an invalid library. This was fixed in
9139 # development snapshots of GCC prior to 3.0.
9140 case $host_os in
9141 aix4 | aix4.[01] | aix4.[01].*)
9142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9143 echo ' yes '
9144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9145 :
9146 else
9147 can_build_shared=no
9148 fi
9149 ;;
9150 esac
9151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9152 # soname into executable. Probably we can add versioning support to
9153 # collect2, so additional links can be useful in future.
9154 if test "$aix_use_runtimelinking" = yes; then
9155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9156 # instead of lib<name>.a to let people know that these are not
9157 # typical AIX shared libraries.
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 else
9160 # We preserve .a as extension for shared libraries through AIX4.2
9161 # and later when we are not doing run time linking.
9162 library_names_spec='${libname}${release}.a $libname.a'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 fi
9165 shlibpath_var=LIBPATH
9166 fi
9167 ;;
9168
9169 amigaos*)
9170 case $host_cpu in
9171 powerpc)
9172 # Since July 2007 AmigaOS4 officially supports .so libraries.
9173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 ;;
9176 m68k)
9177 library_names_spec='$libname.ixlibrary $libname.a'
9178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9180 ;;
9181 esac
9182 ;;
9183
9184 beos*)
9185 library_names_spec='${libname}${shared_ext}'
9186 dynamic_linker="$host_os ld.so"
9187 shlibpath_var=LIBRARY_PATH
9188 ;;
9189
9190 bsdi[45]*)
9191 version_type=linux
9192 need_version=no
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9199 # the default ld.so.conf also contains /usr/contrib/lib and
9200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9201 # libtool to hard-code these into programs
9202 ;;
9203
9204 cygwin* | mingw* | pw32* | cegcc*)
9205 version_type=windows
9206 shrext_cmds=".dll"
9207 need_version=no
9208 need_lib_prefix=no
9209
9210 case $GCC,$host_os in
9211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9212 library_names_spec='$libname.dll.a'
9213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9214 postinstall_cmds='base_file=`basename \${file}`~
9215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9216 dldir=$destdir/`dirname \$dlpath`~
9217 test -d \$dldir || mkdir -p \$dldir~
9218 $install_prog $dir/$dlname \$dldir/$dlname~
9219 chmod a+x \$dldir/$dlname~
9220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9222 fi'
9223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9224 dlpath=$dir/\$dldll~
9225 $RM \$dlpath'
9226 shlibpath_overrides_runpath=yes
9227
9228 case $host_os in
9229 cygwin*)
9230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9233 ;;
9234 mingw* | cegcc*)
9235 # MinGW DLLs use traditional 'lib' prefix
9236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9237 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9239 # It is most probably a Windows format PATH printed by
9240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9241 # path with ; separators, and with drive letters. We can handle the
9242 # drive letters (cygwin fileutils understands them), so leave them,
9243 # especially as we might pass files found there to a mingw objdump,
9244 # which wouldn't understand a cygwinified path. Ahh.
9245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9246 else
9247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9248 fi
9249 ;;
9250 pw32*)
9251 # pw32 DLLs use 'pw' prefix rather than 'lib'
9252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253 ;;
9254 esac
9255 ;;
9256
9257 *)
9258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9259 ;;
9260 esac
9261 dynamic_linker='Win32 ld.exe'
9262 # FIXME: first we should search . and the directory the executable is in
9263 shlibpath_var=PATH
9264 ;;
9265
9266 darwin* | rhapsody*)
9267 dynamic_linker="$host_os dyld"
9268 version_type=darwin
9269 need_lib_prefix=no
9270 need_version=no
9271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9272 soname_spec='${libname}${release}${major}$shared_ext'
9273 shlibpath_overrides_runpath=yes
9274 shlibpath_var=DYLD_LIBRARY_PATH
9275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9276
9277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9279 ;;
9280
9281 dgux*)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 ;;
9289
9290 freebsd1*)
9291 dynamic_linker=no
9292 ;;
9293
9294 freebsd* | dragonfly*)
9295 # DragonFly does not have aout. When/if they implement a new
9296 # versioning mechanism, adjust this.
9297 if test -x /usr/bin/objformat; then
9298 objformat=`/usr/bin/objformat`
9299 else
9300 case $host_os in
9301 freebsd[123]*) objformat=aout ;;
9302 *) objformat=elf ;;
9303 esac
9304 fi
9305 version_type=freebsd-$objformat
9306 case $version_type in
9307 freebsd-elf*)
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309 need_version=no
9310 need_lib_prefix=no
9311 ;;
9312 freebsd-*)
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9314 need_version=yes
9315 ;;
9316 esac
9317 shlibpath_var=LD_LIBRARY_PATH
9318 case $host_os in
9319 freebsd2*)
9320 shlibpath_overrides_runpath=yes
9321 ;;
9322 freebsd3.[01]* | freebsdelf3.[01]*)
9323 shlibpath_overrides_runpath=yes
9324 hardcode_into_libs=yes
9325 ;;
9326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9328 shlibpath_overrides_runpath=no
9329 hardcode_into_libs=yes
9330 ;;
9331 *) # from 4.6 on, and DragonFly
9332 shlibpath_overrides_runpath=yes
9333 hardcode_into_libs=yes
9334 ;;
9335 esac
9336 ;;
9337
9338 gnu*)
9339 version_type=linux
9340 need_lib_prefix=no
9341 need_version=no
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 hardcode_into_libs=yes
9346 ;;
9347
9348 hpux9* | hpux10* | hpux11*)
9349 # Give a soname corresponding to the major version so that dld.sl refuses to
9350 # link against other versions.
9351 version_type=sunos
9352 need_lib_prefix=no
9353 need_version=no
9354 case $host_cpu in
9355 ia64*)
9356 shrext_cmds='.so'
9357 hardcode_into_libs=yes
9358 dynamic_linker="$host_os dld.so"
9359 shlibpath_var=LD_LIBRARY_PATH
9360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 if test "X$HPUX_IA64_MODE" = X32; then
9364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9365 else
9366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9367 fi
9368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369 ;;
9370 hppa*64*)
9371 shrext_cmds='.sl'
9372 hardcode_into_libs=yes
9373 dynamic_linker="$host_os dld.sl"
9374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9380 ;;
9381 *)
9382 shrext_cmds='.sl'
9383 dynamic_linker="$host_os dld.sl"
9384 shlibpath_var=SHLIB_PATH
9385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 ;;
9389 esac
9390 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9391 postinstall_cmds='chmod 555 $lib'
9392 ;;
9393
9394 interix[3-9]*)
9395 version_type=linux
9396 need_lib_prefix=no
9397 need_version=no
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=no
9403 hardcode_into_libs=yes
9404 ;;
9405
9406 irix5* | irix6* | nonstopux*)
9407 case $host_os in
9408 nonstopux*) version_type=nonstopux ;;
9409 *)
9410 if test "$lt_cv_prog_gnu_ld" = yes; then
9411 version_type=linux
9412 else
9413 version_type=irix
9414 fi ;;
9415 esac
9416 need_lib_prefix=no
9417 need_version=no
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9420 case $host_os in
9421 irix5* | nonstopux*)
9422 libsuff= shlibsuff=
9423 ;;
9424 *)
9425 case $LD in # libtool.m4 will add one of these switches to LD
9426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9427 libsuff= shlibsuff= libmagic=32-bit;;
9428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9429 libsuff=32 shlibsuff=N32 libmagic=N32;;
9430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9432 *) libsuff= shlibsuff= libmagic=never-match;;
9433 esac
9434 ;;
9435 esac
9436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9437 shlibpath_overrides_runpath=no
9438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9440 hardcode_into_libs=yes
9441 ;;
9442
9443 # No shared lib support for Linux oldld, aout, or coff.
9444 linux*oldld* | linux*aout* | linux*coff*)
9445 dynamic_linker=no
9446 ;;
9447
9448 # This must be Linux ELF.
9449 linux* | k*bsd*-gnu)
9450 version_type=linux
9451 need_lib_prefix=no
9452 need_version=no
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 shlibpath_overrides_runpath=no
9458 # Some binutils ld are patched to set DT_RUNPATH
9459 save_LDFLAGS=$LDFLAGS
9460 save_libdir=$libdir
9461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465
9466 int
9467 main ()
9468 {
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9476 shlibpath_overrides_runpath=yes
9477 fi
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 LDFLAGS=$save_LDFLAGS
9482 libdir=$save_libdir
9483
9484 # This implies no fast_install, which is unacceptable.
9485 # Some rework will be needed to allow for fast_install
9486 # before this can be enabled.
9487 hardcode_into_libs=yes
9488
9489 # Append ld.so.conf contents to the search path
9490 if test -f /etc/ld.so.conf; then
9491 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;/^$/d' | tr '\n' ' '`
9492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9493 fi
9494
9495 # We used to test for /lib/ld.so.1 and disable shared libraries on
9496 # powerpc, because MkLinux only supported shared libraries with the
9497 # GNU dynamic linker. Since this was broken with cross compilers,
9498 # most powerpc-linux boxes support dynamic linking these days and
9499 # people can always --disable-shared, the test was removed, and we
9500 # assume the GNU/Linux dynamic linker is in use.
9501 dynamic_linker='GNU/Linux ld.so'
9502 ;;
9503
9504 netbsd*)
9505 version_type=sunos
9506 need_lib_prefix=no
9507 need_version=no
9508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9511 dynamic_linker='NetBSD (a.out) ld.so'
9512 else
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 dynamic_linker='NetBSD ld.elf_so'
9516 fi
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes
9519 hardcode_into_libs=yes
9520 ;;
9521
9522 newsos6)
9523 version_type=linux
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=yes
9527 ;;
9528
9529 *nto* | *qnx*)
9530 version_type=qnx
9531 need_lib_prefix=no
9532 need_version=no
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=no
9537 hardcode_into_libs=yes
9538 dynamic_linker='ldqnx.so'
9539 ;;
9540
9541 openbsd*)
9542 version_type=sunos
9543 sys_lib_dlsearch_path_spec="/usr/lib"
9544 need_lib_prefix=no
9545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9546 case $host_os in
9547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9548 *) need_version=no ;;
9549 esac
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554 case $host_os in
9555 openbsd2.[89] | openbsd2.[89].*)
9556 shlibpath_overrides_runpath=no
9557 ;;
9558 *)
9559 shlibpath_overrides_runpath=yes
9560 ;;
9561 esac
9562 else
9563 shlibpath_overrides_runpath=yes
9564 fi
9565 ;;
9566
9567 os2*)
9568 libname_spec='$name'
9569 shrext_cmds=".dll"
9570 need_lib_prefix=no
9571 library_names_spec='$libname${shared_ext} $libname.a'
9572 dynamic_linker='OS/2 ld.exe'
9573 shlibpath_var=LIBPATH
9574 ;;
9575
9576 osf3* | osf4* | osf5*)
9577 version_type=osf
9578 need_lib_prefix=no
9579 need_version=no
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9585 ;;
9586
9587 rdos*)
9588 dynamic_linker=no
9589 ;;
9590
9591 solaris*)
9592 version_type=linux
9593 need_lib_prefix=no
9594 need_version=no
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 shlibpath_overrides_runpath=yes
9599 hardcode_into_libs=yes
9600 # ldd complains unless libraries are executable
9601 postinstall_cmds='chmod +x $lib'
9602 ;;
9603
9604 sunos4*)
9605 version_type=sunos
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes
9610 if test "$with_gnu_ld" = yes; then
9611 need_lib_prefix=no
9612 fi
9613 need_version=yes
9614 ;;
9615
9616 sysv4 | sysv4.3*)
9617 version_type=linux
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 case $host_vendor in
9622 sni)
9623 shlibpath_overrides_runpath=no
9624 need_lib_prefix=no
9625 runpath_var=LD_RUN_PATH
9626 ;;
9627 siemens)
9628 need_lib_prefix=no
9629 ;;
9630 motorola)
9631 need_lib_prefix=no
9632 need_version=no
9633 shlibpath_overrides_runpath=no
9634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9635 ;;
9636 esac
9637 ;;
9638
9639 sysv4*MP*)
9640 if test -d /usr/nec ;then
9641 version_type=linux
9642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9643 soname_spec='$libname${shared_ext}.$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 fi
9646 ;;
9647
9648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9649 version_type=freebsd-elf
9650 need_lib_prefix=no
9651 need_version=no
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9656 hardcode_into_libs=yes
9657 if test "$with_gnu_ld" = yes; then
9658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9659 else
9660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9661 case $host_os in
9662 sco3.2v5*)
9663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9664 ;;
9665 esac
9666 fi
9667 sys_lib_dlsearch_path_spec='/usr/lib'
9668 ;;
9669
9670 tpf*)
9671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=no
9678 hardcode_into_libs=yes
9679 ;;
9680
9681 uts4*)
9682 version_type=linux
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 ;;
9687
9688 *)
9689 dynamic_linker=no
9690 ;;
9691 esac
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9693 $as_echo "$dynamic_linker" >&6; }
9694 test "$dynamic_linker" = no && can_build_shared=no
9695
9696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697 if test "$GCC" = yes; then
9698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9699 fi
9700
9701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9703 fi
9704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9706 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9796 hardcode_action=
9797 if test -n "$hardcode_libdir_flag_spec" ||
9798 test -n "$runpath_var" ||
9799 test "X$hardcode_automatic" = "Xyes" ; then
9800
9801 # We can hardcode non-existent directories.
9802 if test "$hardcode_direct" != no &&
9803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9804 # have to relink, otherwise we might link with an installed library
9805 # when we should be linking with a yet-to-be-installed one
9806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9807 test "$hardcode_minus_L" != no; then
9808 # Linking always hardcodes the temporary library directory.
9809 hardcode_action=relink
9810 else
9811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9812 hardcode_action=immediate
9813 fi
9814 else
9815 # We cannot hardcode anything, or else we can only hardcode existing
9816 # directories.
9817 hardcode_action=unsupported
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9820 $as_echo "$hardcode_action" >&6; }
9821
9822 if test "$hardcode_action" = relink ||
9823 test "$inherit_rpath" = yes; then
9824 # Fast installation is not supported
9825 enable_fast_install=no
9826 elif test "$shlibpath_overrides_runpath" = yes ||
9827 test "$enable_shared" = no; then
9828 # Fast installation is not necessary
9829 enable_fast_install=needless
9830 fi
9831
9832
9833
9834
9835
9836
9837 if test "x$enable_dlopen" != xyes; then
9838 enable_dlopen=unknown
9839 enable_dlopen_self=unknown
9840 enable_dlopen_self_static=unknown
9841 else
9842 lt_cv_dlopen=no
9843 lt_cv_dlopen_libs=
9844
9845 case $host_os in
9846 beos*)
9847 lt_cv_dlopen="load_add_on"
9848 lt_cv_dlopen_libs=
9849 lt_cv_dlopen_self=yes
9850 ;;
9851
9852 mingw* | pw32* | cegcc*)
9853 lt_cv_dlopen="LoadLibrary"
9854 lt_cv_dlopen_libs=
9855 ;;
9856
9857 cygwin*)
9858 lt_cv_dlopen="dlopen"
9859 lt_cv_dlopen_libs=
9860 ;;
9861
9862 darwin*)
9863 # if libdl is installed we need to link against it
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9865 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-ldl $LIBS"
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char dlopen ();
9881 int
9882 main ()
9883 {
9884 return dlopen ();
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 if ac_fn_c_try_link "$LINENO"; then :
9890 ac_cv_lib_dl_dlopen=yes
9891 else
9892 ac_cv_lib_dl_dlopen=no
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9899 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9900 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9902 else
9903
9904 lt_cv_dlopen="dyld"
9905 lt_cv_dlopen_libs=
9906 lt_cv_dlopen_self=yes
9907
9908 fi
9909
9910 ;;
9911
9912 *)
9913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9914 if test "x$ac_cv_func_shl_load" = x""yes; then :
9915 lt_cv_dlopen="shl_load"
9916 else
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9918 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-ldld $LIBS"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char shl_load ();
9934 int
9935 main ()
9936 {
9937 return shl_load ();
9938 ;
9939 return 0;
9940 }
9941 _ACEOF
9942 if ac_fn_c_try_link "$LINENO"; then :
9943 ac_cv_lib_dld_shl_load=yes
9944 else
9945 ac_cv_lib_dld_shl_load=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9952 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9953 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9955 else
9956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9957 if test "x$ac_cv_func_dlopen" = x""yes; then :
9958 lt_cv_dlopen="dlopen"
9959 else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-ldl $LIBS"
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 char dlopen ();
9977 int
9978 main ()
9979 {
9980 return dlopen ();
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 ac_cv_lib_dl_dlopen=yes
9987 else
9988 ac_cv_lib_dl_dlopen=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9996 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9998 else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10000 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lsvld $LIBS"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char dlopen ();
10016 int
10017 main ()
10018 {
10019 return dlopen ();
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 ac_cv_lib_svld_dlopen=yes
10026 else
10027 ac_cv_lib_svld_dlopen=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-ldld $LIBS"
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char dld_link ();
10055 int
10056 main ()
10057 {
10058 return dld_link ();
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064 ac_cv_lib_dld_dld_link=yes
10065 else
10066 ac_cv_lib_dld_dld_link=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10073 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10074 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10076 fi
10077
10078
10079 fi
10080
10081
10082 fi
10083
10084
10085 fi
10086
10087
10088 fi
10089
10090
10091 fi
10092
10093 ;;
10094 esac
10095
10096 if test "x$lt_cv_dlopen" != xno; then
10097 enable_dlopen=yes
10098 else
10099 enable_dlopen=no
10100 fi
10101
10102 case $lt_cv_dlopen in
10103 dlopen)
10104 save_CPPFLAGS="$CPPFLAGS"
10105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10106
10107 save_LDFLAGS="$LDFLAGS"
10108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10109
10110 save_LIBS="$LIBS"
10111 LIBS="$lt_cv_dlopen_libs $LIBS"
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10114 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10115 if test "${lt_cv_dlopen_self+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 if test "$cross_compiling" = yes; then :
10119 lt_cv_dlopen_self=cross
10120 else
10121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10122 lt_status=$lt_dlunknown
10123 cat > conftest.$ac_ext <<_LT_EOF
10124 #line 10124 "configure"
10125 #include "confdefs.h"
10126
10127 #if HAVE_DLFCN_H
10128 #include <dlfcn.h>
10129 #endif
10130
10131 #include <stdio.h>
10132
10133 #ifdef RTLD_GLOBAL
10134 # define LT_DLGLOBAL RTLD_GLOBAL
10135 #else
10136 # ifdef DL_GLOBAL
10137 # define LT_DLGLOBAL DL_GLOBAL
10138 # else
10139 # define LT_DLGLOBAL 0
10140 # endif
10141 #endif
10142
10143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10144 find out it does not work in some platform. */
10145 #ifndef LT_DLLAZY_OR_NOW
10146 # ifdef RTLD_LAZY
10147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10148 # else
10149 # ifdef DL_LAZY
10150 # define LT_DLLAZY_OR_NOW DL_LAZY
10151 # else
10152 # ifdef RTLD_NOW
10153 # define LT_DLLAZY_OR_NOW RTLD_NOW
10154 # else
10155 # ifdef DL_NOW
10156 # define LT_DLLAZY_OR_NOW DL_NOW
10157 # else
10158 # define LT_DLLAZY_OR_NOW 0
10159 # endif
10160 # endif
10161 # endif
10162 # endif
10163 #endif
10164
10165 void fnord() { int i=42;}
10166 int main ()
10167 {
10168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10169 int status = $lt_dlunknown;
10170
10171 if (self)
10172 {
10173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10174 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10175 /* dlclose (self); */
10176 }
10177 else
10178 puts (dlerror ());
10179
10180 return status;
10181 }
10182 _LT_EOF
10183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10184 (eval $ac_link) 2>&5
10185 ac_status=$?
10186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10188 (./conftest; exit; ) >&5 2>/dev/null
10189 lt_status=$?
10190 case x$lt_status in
10191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10194 esac
10195 else :
10196 # compilation failed
10197 lt_cv_dlopen_self=no
10198 fi
10199 fi
10200 rm -fr conftest*
10201
10202
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10205 $as_echo "$lt_cv_dlopen_self" >&6; }
10206
10207 if test "x$lt_cv_dlopen_self" = xyes; then
10208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10211 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self_static=cross
10216 else
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<_LT_EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222
10223 #if HAVE_DLFCN_H
10224 #include <dlfcn.h>
10225 #endif
10226
10227 #include <stdio.h>
10228
10229 #ifdef RTLD_GLOBAL
10230 # define LT_DLGLOBAL RTLD_GLOBAL
10231 #else
10232 # ifdef DL_GLOBAL
10233 # define LT_DLGLOBAL DL_GLOBAL
10234 # else
10235 # define LT_DLGLOBAL 0
10236 # endif
10237 #endif
10238
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10242 # ifdef RTLD_LAZY
10243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10244 # else
10245 # ifdef DL_LAZY
10246 # define LT_DLLAZY_OR_NOW DL_LAZY
10247 # else
10248 # ifdef RTLD_NOW
10249 # define LT_DLLAZY_OR_NOW RTLD_NOW
10250 # else
10251 # ifdef DL_NOW
10252 # define LT_DLLAZY_OR_NOW DL_NOW
10253 # else
10254 # define LT_DLLAZY_OR_NOW 0
10255 # endif
10256 # endif
10257 # endif
10258 # endif
10259 #endif
10260
10261 void fnord() { int i=42;}
10262 int main ()
10263 {
10264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10265 int status = $lt_dlunknown;
10266
10267 if (self)
10268 {
10269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10270 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10271 /* dlclose (self); */
10272 }
10273 else
10274 puts (dlerror ());
10275
10276 return status;
10277 }
10278 _LT_EOF
10279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10280 (eval $ac_link) 2>&5
10281 ac_status=$?
10282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10284 (./conftest; exit; ) >&5 2>/dev/null
10285 lt_status=$?
10286 case x$lt_status in
10287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10290 esac
10291 else :
10292 # compilation failed
10293 lt_cv_dlopen_self_static=no
10294 fi
10295 fi
10296 rm -fr conftest*
10297
10298
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10302 fi
10303
10304 CPPFLAGS="$save_CPPFLAGS"
10305 LDFLAGS="$save_LDFLAGS"
10306 LIBS="$save_LIBS"
10307 ;;
10308 esac
10309
10310 case $lt_cv_dlopen_self in
10311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10312 *) enable_dlopen_self=unknown ;;
10313 esac
10314
10315 case $lt_cv_dlopen_self_static in
10316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10317 *) enable_dlopen_self_static=unknown ;;
10318 esac
10319 fi
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337 striplib=
10338 old_striplib=
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10345 $as_echo "yes" >&6; }
10346 else
10347 # FIXME - insert some real tests, host_os isn't really good enough
10348 case $host_os in
10349 darwin*)
10350 if test -n "$STRIP" ; then
10351 striplib="$STRIP -x"
10352 old_striplib="$STRIP -S"
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354 $as_echo "yes" >&6; }
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10358 fi
10359 ;;
10360 *)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10363 ;;
10364 esac
10365 fi
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378 # Report which library types will actually be built
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10382 $as_echo "$can_build_shared" >&6; }
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10385 $as_echo_n "checking whether to build shared libraries... " >&6; }
10386 test "$can_build_shared" = "no" && enable_shared=no
10387
10388 # On AIX, shared libraries and static libraries use the same namespace, and
10389 # are all built from PIC.
10390 case $host_os in
10391 aix3*)
10392 test "$enable_shared" = yes && enable_static=no
10393 if test -n "$RANLIB"; then
10394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10395 postinstall_cmds='$RANLIB $lib'
10396 fi
10397 ;;
10398
10399 aix[4-9]*)
10400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10401 test "$enable_shared" = yes && enable_static=no
10402 fi
10403 ;;
10404 esac
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10406 $as_echo "$enable_shared" >&6; }
10407
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10409 $as_echo_n "checking whether to build static libraries... " >&6; }
10410 # Make sure either enable_shared or enable_static is yes.
10411 test "$enable_shared" = yes || enable_static=yes
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10413 $as_echo "$enable_static" >&6; }
10414
10415
10416
10417
10418 fi
10419 ac_ext=c
10420 ac_cpp='$CPP $CPPFLAGS'
10421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10424
10425 CC="$lt_save_CC"
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439 ac_config_commands="$ac_config_commands libtool"
10440
10441
10442
10443
10444 # Only expand once:
10445
10446
10447
10448
10449
10450 # Define a configure option for an alternate module directory
10451
10452 # Check whether --with-xorg-module-dir was given.
10453 if test "${with_xorg_module_dir+set}" = set; then :
10454 withval=$with_xorg_module_dir; moduledir="$withval"
10455 else
10456 moduledir="$libdir/xorg/modules"
10457 fi
10458
10459
10460 # Check whether --enable-dri was given.
10461 if test "${enable_dri+set}" = set; then :
10462 enableval=$enable_dri; DRI="$enableval"
10463 else
10464 DRI=auto
10465 fi
10466
10467
10468 # Store the list of server defined optional extensions in REQUIRED_MODULES
10469 XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
10470 XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
10471 XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
10472 XORG_DRIVER_CHECK_EXT(XV, videoproto)
10473 XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
10474
10475 # Obtain compiler/linker options for the driver dependencies
10476
10477
10478
10479
10480
10481
10482 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10483 if test -n "$ac_tool_prefix"; then
10484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 case $PKG_CONFIG in
10492 [\\/]* | ?:[\\/]*)
10493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10494 ;;
10495 *)
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507 done
10508 done
10509 IFS=$as_save_IFS
10510
10511 ;;
10512 esac
10513 fi
10514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10515 if test -n "$PKG_CONFIG"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10517 $as_echo "$PKG_CONFIG" >&6; }
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10521 fi
10522
10523
10524 fi
10525 if test -z "$ac_cv_path_PKG_CONFIG"; then
10526 ac_pt_PKG_CONFIG=$PKG_CONFIG
10527 # Extract the first word of "pkg-config", so it can be a program name with args.
10528 set dummy pkg-config; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 case $ac_pt_PKG_CONFIG in
10535 [\\/]* | ?:[\\/]*)
10536 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10537 ;;
10538 *)
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550 done
10551 done
10552 IFS=$as_save_IFS
10553
10554 ;;
10555 esac
10556 fi
10557 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10558 if test -n "$ac_pt_PKG_CONFIG"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10560 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565
10566 if test "x$ac_pt_PKG_CONFIG" = x; then
10567 PKG_CONFIG=""
10568 else
10569 case $cross_compiling:$ac_tool_warned in
10570 yes:)
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573 ac_tool_warned=yes ;;
10574 esac
10575 PKG_CONFIG=$ac_pt_PKG_CONFIG
10576 fi
10577 else
10578 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10579 fi
10580
10581 fi
10582 if test -n "$PKG_CONFIG"; then
10583 _pkg_min_version=0.9.0
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10585 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10586 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588 $as_echo "yes" >&6; }
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 PKG_CONFIG=""
10593 fi
10594 fi
10595
10596 pkg_failed=no
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
10598 $as_echo_n "checking for XORG... " >&6; }
10599
10600 if test -n "$XORG_CFLAGS"; then
10601 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
10602 elif test -n "$PKG_CONFIG"; then
10603 if test -n "$PKG_CONFIG" && \
10604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
10605 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
10606 ac_status=$?
10607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608 test $ac_status = 0; }; then
10609 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
10610 else
10611 pkg_failed=yes
10612 fi
10613 else
10614 pkg_failed=untried
10615 fi
10616 if test -n "$XORG_LIBS"; then
10617 pkg_cv_XORG_LIBS="$XORG_LIBS"
10618 elif test -n "$PKG_CONFIG"; then
10619 if test -n "$PKG_CONFIG" && \
10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
10621 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
10622 ac_status=$?
10623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10624 test $ac_status = 0; }; then
10625 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
10626 else
10627 pkg_failed=yes
10628 fi
10629 else
10630 pkg_failed=untried
10631 fi
10632
10633
10634
10635 if test $pkg_failed = yes; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638
10639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10640 _pkg_short_errors_supported=yes
10641 else
10642 _pkg_short_errors_supported=no
10643 fi
10644 if test $_pkg_short_errors_supported = yes; then
10645 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
10646 else
10647 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
10648 fi
10649 # Put the nasty error message in config.log where it belongs
10650 echo "$XORG_PKG_ERRORS" >&5
10651
10652 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
10653
10654 $XORG_PKG_ERRORS
10655
10656 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10657 installed software in a non-standard prefix.
10658
10659 Alternatively, you may set the environment variables XORG_CFLAGS
10660 and XORG_LIBS to avoid the need to call pkg-config.
10661 See the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
10662
10663 elif test $pkg_failed = untried; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10668 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10669 is in your PATH or set the PKG_CONFIG environment variable to the full
10670 path to pkg-config.
10671
10672 Alternatively, you may set the environment variables XORG_CFLAGS
10673 and XORG_LIBS to avoid the need to call pkg-config.
10674 See the pkg-config man page for more details.
10675
10676 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10677 See \`config.log' for more details" "$LINENO" 5; }
10678 else
10679 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
10680 XORG_LIBS=$pkg_cv_XORG_LIBS
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682 $as_echo "yes" >&6; }
10683
10684 fi
10685
10686 pkg_failed=no
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
10688 $as_echo_n "checking for XEXT... " >&6; }
10689
10690 if test -n "$XEXT_CFLAGS"; then
10691 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
10692 elif test -n "$PKG_CONFIG"; then
10693 if test -n "$PKG_CONFIG" && \
10694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
10695 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
10696 ac_status=$?
10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10698 test $ac_status = 0; }; then
10699 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
10700 else
10701 pkg_failed=yes
10702 fi
10703 else
10704 pkg_failed=untried
10705 fi
10706 if test -n "$XEXT_LIBS"; then
10707 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
10708 elif test -n "$PKG_CONFIG"; then
10709 if test -n "$PKG_CONFIG" && \
10710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
10711 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
10712 ac_status=$?
10713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714 test $ac_status = 0; }; then
10715 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
10716 else
10717 pkg_failed=yes
10718 fi
10719 else
10720 pkg_failed=untried
10721 fi
10722
10723
10724
10725 if test $pkg_failed = yes; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728
10729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10730 _pkg_short_errors_supported=yes
10731 else
10732 _pkg_short_errors_supported=no
10733 fi
10734 if test $_pkg_short_errors_supported = yes; then
10735 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
10736 else
10737 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
10738 fi
10739 # Put the nasty error message in config.log where it belongs
10740 echo "$XEXT_PKG_ERRORS" >&5
10741
10742 HAVE_XEXTPROTO_71="no"
10743 elif test $pkg_failed = untried; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 HAVE_XEXTPROTO_71="no"
10747 else
10748 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
10749 XEXT_LIBS=$pkg_cv_XEXT_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10751 $as_echo "yes" >&6; }
10752 HAVE_XEXTPROTO_71="yes";
10753 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
10754
10755 fi
10756 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
10757 HAVE_XEXTPROTO_71_TRUE=
10758 HAVE_XEXTPROTO_71_FALSE='#'
10759 else
10760 HAVE_XEXTPROTO_71_TRUE='#'
10761 HAVE_XEXTPROTO_71_FALSE=
10762 fi
10763
10764 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
10765
10766 # Checks for libraries.
10767
10768 if test "x$DRI" = xauto; then
10769 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
10771 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
10772 if eval "test \"\${$as_ac_File+set}\"" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 test "$cross_compiling" = yes &&
10776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10777 if test -r "${sdkdir}/dri.h"; then
10778 eval "$as_ac_File=yes"
10779 else
10780 eval "$as_ac_File=no"
10781 fi
10782 fi
10783 eval ac_res=\$$as_ac_File
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10785 $as_echo "$ac_res" >&6; }
10786 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10787 have_dri_h="yes"
10788 else
10789 have_dri_h="no"
10790 fi
10791
10792 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
10794 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
10795 if eval "test \"\${$as_ac_File+set}\"" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 test "$cross_compiling" = yes &&
10799 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10800 if test -r "${sdkdir}/sarea.h"; then
10801 eval "$as_ac_File=yes"
10802 else
10803 eval "$as_ac_File=no"
10804 fi
10805 fi
10806 eval ac_res=\$$as_ac_File
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10808 $as_echo "$ac_res" >&6; }
10809 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10810 have_sarea_h="yes"
10811 else
10812 have_sarea_h="no"
10813 fi
10814
10815 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
10817 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
10818 if eval "test \"\${$as_ac_File+set}\"" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 test "$cross_compiling" = yes &&
10822 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10823 if test -r "${sdkdir}/dristruct.h"; then
10824 eval "$as_ac_File=yes"
10825 else
10826 eval "$as_ac_File=no"
10827 fi
10828 fi
10829 eval ac_res=\$$as_ac_File
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10831 $as_echo "$ac_res" >&6; }
10832 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10833 have_dristruct_h="yes"
10834 else
10835 have_dristruct_h="no"
10836 fi
10837
10838 fi
10839
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
10841 $as_echo_n "checking whether to include DRI support... " >&6; }
10842 if test "x$DRI" = xauto; then
10843 if test "x$have_dri_h" = xyes && \
10844 test "x$have_sarea_h" = xyes && \
10845 test "x$have_dristruct_h" = xyes; then
10846 DRI="yes"
10847 else
10848 DRI="no"
10849 fi
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
10852 $as_echo "$DRI" >&6; }
10853
10854 if test "x$DRI" = xyes; then
10855 DRI_TRUE=
10856 DRI_FALSE='#'
10857 else
10858 DRI_TRUE='#'
10859 DRI_FALSE=
10860 fi
10861
10862 if test "x$DRI" = xyes; then
10863
10864 pkg_failed=no
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
10866 $as_echo_n "checking for DRI... " >&6; }
10867
10868 if test -n "$DRI_CFLAGS"; then
10869 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
10870 elif test -n "$PKG_CONFIG"; then
10871 if test -n "$PKG_CONFIG" && \
10872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto glproto\""; } >&5
10873 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto glproto") 2>&5
10874 ac_status=$?
10875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876 test $ac_status = 0; }; then
10877 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto glproto" 2>/dev/null`
10878 else
10879 pkg_failed=yes
10880 fi
10881 else
10882 pkg_failed=untried
10883 fi
10884 if test -n "$DRI_LIBS"; then
10885 pkg_cv_DRI_LIBS="$DRI_LIBS"
10886 elif test -n "$PKG_CONFIG"; then
10887 if test -n "$PKG_CONFIG" && \
10888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto glproto\""; } >&5
10889 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto glproto") 2>&5
10890 ac_status=$?
10891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; }; then
10893 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto glproto" 2>/dev/null`
10894 else
10895 pkg_failed=yes
10896 fi
10897 else
10898 pkg_failed=untried
10899 fi
10900
10901
10902
10903 if test $pkg_failed = yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906
10907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported=yes
10909 else
10910 _pkg_short_errors_supported=no
10911 fi
10912 if test $_pkg_short_errors_supported = yes; then
10913 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto glproto" 2>&1`
10914 else
10915 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto glproto" 2>&1`
10916 fi
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$DRI_PKG_ERRORS" >&5
10919
10920 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto glproto) were not met:
10921
10922 $DRI_PKG_ERRORS
10923
10924 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10925 installed software in a non-standard prefix.
10926
10927 Alternatively, you may set the environment variables DRI_CFLAGS
10928 and DRI_LIBS to avoid the need to call pkg-config.
10929 See the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
10930
10931 elif test $pkg_failed = untried; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10937 is in your PATH or set the PKG_CONFIG environment variable to the full
10938 path to pkg-config.
10939
10940 Alternatively, you may set the environment variables DRI_CFLAGS
10941 and DRI_LIBS to avoid the need to call pkg-config.
10942 See the pkg-config man page for more details.
10943
10944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10945 See \`config.log' for more details" "$LINENO" 5; }
10946 else
10947 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
10948 DRI_LIBS=$pkg_cv_DRI_LIBS
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950 $as_echo "yes" >&6; }
10951
10952 fi
10953
10954 $as_echo "#define XF86DRI 1" >>confdefs.h
10955
10956
10957 $as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
10958
10959 fi
10960
10961 SAVE_CPPFLAGS="$CPPFLAGS"
10962 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
10963
10964 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
10965 "
10966 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
10967 XSERVER_LIBPCIACCESS=yes
10968 else
10969 XSERVER_LIBPCIACCESS=no
10970 fi
10971
10972
10973 CPPFLAGS="$SAVE_CPPFLAGS"
10974
10975 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
10976
10977 pkg_failed=no
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
10979 $as_echo_n "checking for PCIACCESS... " >&6; }
10980
10981 if test -n "$PCIACCESS_CFLAGS"; then
10982 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
10983 elif test -n "$PKG_CONFIG"; then
10984 if test -n "$PKG_CONFIG" && \
10985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
10986 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
10987 ac_status=$?
10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989 test $ac_status = 0; }; then
10990 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
10991 else
10992 pkg_failed=yes
10993 fi
10994 else
10995 pkg_failed=untried
10996 fi
10997 if test -n "$PCIACCESS_LIBS"; then
10998 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
10999 elif test -n "$PKG_CONFIG"; then
11000 if test -n "$PKG_CONFIG" && \
11001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
11002 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
11003 ac_status=$?
11004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005 test $ac_status = 0; }; then
11006 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
11007 else
11008 pkg_failed=yes
11009 fi
11010 else
11011 pkg_failed=untried
11012 fi
11013
11014
11015
11016 if test $pkg_failed = yes; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11019
11020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11021 _pkg_short_errors_supported=yes
11022 else
11023 _pkg_short_errors_supported=no
11024 fi
11025 if test $_pkg_short_errors_supported = yes; then
11026 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
11027 else
11028 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
11029 fi
11030 # Put the nasty error message in config.log where it belongs
11031 echo "$PCIACCESS_PKG_ERRORS" >&5
11032
11033 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
11034
11035 $PCIACCESS_PKG_ERRORS
11036
11037 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11038 installed software in a non-standard prefix.
11039
11040 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11041 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11042 See the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
11043
11044 elif test $pkg_failed = untried; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11049 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11050 is in your PATH or set the PKG_CONFIG environment variable to the full
11051 path to pkg-config.
11052
11053 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11054 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11055 See the pkg-config man page for more details.
11056
11057 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11058 See \`config.log' for more details" "$LINENO" 5; }
11059 else
11060 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
11061 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063 $as_echo "yes" >&6; }
11064
11065 fi
11066 fi
11067 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
11068 XSERVER_LIBPCIACCESS_TRUE=
11069 XSERVER_LIBPCIACCESS_FALSE='#'
11070 else
11071 XSERVER_LIBPCIACCESS_TRUE='#'
11072 XSERVER_LIBPCIACCESS_FALSE=
11073 fi
11074
11075
11076
11077
11078 cat >>confdefs.h <<_ACEOF
11079 #define XGI_RELEASE_DATE "$RELEASE_DATE"
11080 _ACEOF
11081
11082 DRIVER_NAME=xgi
11083
11084
11085 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11086
11087 cat >confcache <<\_ACEOF
11088 # This file is a shell script that caches the results of configure
11089 # tests run on this system so they can be shared between configure
11090 # scripts and configure runs, see configure's option --config-cache.
11091 # It is not useful on other systems. If it contains results you don't
11092 # want to keep, you may remove or edit it.
11093 #
11094 # config.status only pays attention to the cache file if you give it
11095 # the --recheck option to rerun configure.
11096 #
11097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11099 # following values.
11100
11101 _ACEOF
11102
11103 # The following way of writing the cache mishandles newlines in values,
11104 # but we know of no workaround that is simple, portable, and efficient.
11105 # So, we kill variables containing newlines.
11106 # Ultrix sh set writes to stderr and can't be redirected directly,
11107 # and sets the high bit in the cache file unless we assign to the vars.
11108 (
11109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11110 eval ac_val=\$$ac_var
11111 case $ac_val in #(
11112 *${as_nl}*)
11113 case $ac_var in #(
11114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11116 esac
11117 case $ac_var in #(
11118 _ | IFS | as_nl) ;; #(
11119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11120 *) { eval $ac_var=; unset $ac_var;} ;;
11121 esac ;;
11122 esac
11123 done
11124
11125 (set) 2>&1 |
11126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11127 *${as_nl}ac_space=\ *)
11128 # `set' does not quote correctly, so add quotes: double-quote
11129 # substitution turns \\\\ into \\, and sed turns \\ into \.
11130 sed -n \
11131 "s/'/'\\\\''/g;
11132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11133 ;; #(
11134 *)
11135 # `set' quotes correctly as required by POSIX, so do not add quotes.
11136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11137 ;;
11138 esac |
11139 sort
11140 ) |
11141 sed '
11142 /^ac_cv_env_/b end
11143 t clear
11144 :clear
11145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11146 t end
11147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11148 :end' >>confcache
11149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11150 if test -w "$cache_file"; then
11151 test "x$cache_file" != "x/dev/null" &&
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11153 $as_echo "$as_me: updating cache $cache_file" >&6;}
11154 cat confcache >$cache_file
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11158 fi
11159 fi
11160 rm -f confcache
11161
11162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11163 # Let make expand exec_prefix.
11164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11165
11166 DEFS=-DHAVE_CONFIG_H
11167
11168 ac_libobjs=
11169 ac_ltlibobjs=
11170 U=
11171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11172 # 1. Remove the extension, and $U if already installed.
11173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11176 # will be set to the directory where LIBOBJS objects are built.
11177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11179 done
11180 LIBOBJS=$ac_libobjs
11181
11182 LTLIBOBJS=$ac_ltlibobjs
11183
11184
11185 if test -n "$EXEEXT"; then
11186 am__EXEEXT_TRUE=
11187 am__EXEEXT_FALSE='#'
11188 else
11189 am__EXEEXT_TRUE='#'
11190 am__EXEEXT_FALSE=
11191 fi
11192
11193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11194 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11196 fi
11197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11198 as_fn_error $? "conditional \"AMDEP\" was never defined.
11199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11200 fi
11201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11202 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11204 fi
11205 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
11206 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
11207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11208 fi
11209 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
11210 as_fn_error $? "conditional \"DRI\" was never defined.
11211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11212 fi
11213 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
11214 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
11215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11216 fi
11217
11218 : ${CONFIG_STATUS=./config.status}
11219 ac_write_fail=0
11220 ac_clean_files_save=$ac_clean_files
11221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11223 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11224 as_write_fail=0
11225 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11226 #! $SHELL
11227 # Generated by $as_me.
11228 # Run this file to recreate the current configuration.
11229 # Compiler output produced by configure, useful for debugging
11230 # configure, is in config.log if it exists.
11231
11232 debug=false
11233 ac_cs_recheck=false
11234 ac_cs_silent=false
11235
11236 SHELL=\${CONFIG_SHELL-$SHELL}
11237 export SHELL
11238 _ASEOF
11239 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11240 ## -------------------- ##
11241 ## M4sh Initialization. ##
11242 ## -------------------- ##
11243
11244 # Be more Bourne compatible
11245 DUALCASE=1; export DUALCASE # for MKS sh
11246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11247 emulate sh
11248 NULLCMD=:
11249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11250 # is contrary to our usage. Disable this feature.
11251 alias -g '${1+"$@"}'='"$@"'
11252 setopt NO_GLOB_SUBST
11253 else
11254 case `(set -o) 2>/dev/null` in #(
11255 *posix*) :
11256 set -o posix ;; #(
11257 *) :
11258 ;;
11259 esac
11260 fi
11261
11262
11263 as_nl='
11264 '
11265 export as_nl
11266 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11267 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11270 # Prefer a ksh shell builtin over an external printf program on Solaris,
11271 # but without wasting forks for bash or zsh.
11272 if test -z "$BASH_VERSION$ZSH_VERSION" \
11273 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11274 as_echo='print -r --'
11275 as_echo_n='print -rn --'
11276 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11277 as_echo='printf %s\n'
11278 as_echo_n='printf %s'
11279 else
11280 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11281 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11282 as_echo_n='/usr/ucb/echo -n'
11283 else
11284 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11285 as_echo_n_body='eval
11286 arg=$1;
11287 case $arg in #(
11288 *"$as_nl"*)
11289 expr "X$arg" : "X\\(.*\\)$as_nl";
11290 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11291 esac;
11292 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11293 '
11294 export as_echo_n_body
11295 as_echo_n='sh -c $as_echo_n_body as_echo'
11296 fi
11297 export as_echo_body
11298 as_echo='sh -c $as_echo_body as_echo'
11299 fi
11300
11301 # The user is always right.
11302 if test "${PATH_SEPARATOR+set}" != set; then
11303 PATH_SEPARATOR=:
11304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11306 PATH_SEPARATOR=';'
11307 }
11308 fi
11309
11310
11311 # IFS
11312 # We need space, tab and new line, in precisely that order. Quoting is
11313 # there to prevent editors from complaining about space-tab.
11314 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11315 # splitting by setting IFS to empty value.)
11316 IFS=" "" $as_nl"
11317
11318 # Find who we are. Look in the path if we contain no directory separator.
11319 case $0 in #((
11320 *[\\/]* ) as_myself=$0 ;;
11321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11327 done
11328 IFS=$as_save_IFS
11329
11330 ;;
11331 esac
11332 # We did not find ourselves, most probably we were run as `sh COMMAND'
11333 # in which case we are not to be found in the path.
11334 if test "x$as_myself" = x; then
11335 as_myself=$0
11336 fi
11337 if test ! -f "$as_myself"; then
11338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11339 exit 1
11340 fi
11341
11342 # Unset variables that we do not need and which cause bugs (e.g. in
11343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11344 # suppresses any "Segmentation fault" message there. '((' could
11345 # trigger a bug in pdksh 5.2.14.
11346 for as_var in BASH_ENV ENV MAIL MAILPATH
11347 do eval test x\${$as_var+set} = xset \
11348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11349 done
11350 PS1='$ '
11351 PS2='> '
11352 PS4='+ '
11353
11354 # NLS nuisances.
11355 LC_ALL=C
11356 export LC_ALL
11357 LANGUAGE=C
11358 export LANGUAGE
11359
11360 # CDPATH.
11361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11362
11363
11364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11365 # ----------------------------------------
11366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11368 # script with STATUS, using 1 if that was 0.
11369 as_fn_error ()
11370 {
11371 as_status=$1; test $as_status -eq 0 && as_status=1
11372 if test "$4"; then
11373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11375 fi
11376 $as_echo "$as_me: error: $2" >&2
11377 as_fn_exit $as_status
11378 } # as_fn_error
11379
11380
11381 # as_fn_set_status STATUS
11382 # -----------------------
11383 # Set $? to STATUS, without forking.
11384 as_fn_set_status ()
11385 {
11386 return $1
11387 } # as_fn_set_status
11388
11389 # as_fn_exit STATUS
11390 # -----------------
11391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11392 as_fn_exit ()
11393 {
11394 set +e
11395 as_fn_set_status $1
11396 exit $1
11397 } # as_fn_exit
11398
11399 # as_fn_unset VAR
11400 # ---------------
11401 # Portably unset VAR.
11402 as_fn_unset ()
11403 {
11404 { eval $1=; unset $1;}
11405 }
11406 as_unset=as_fn_unset
11407 # as_fn_append VAR VALUE
11408 # ----------------------
11409 # Append the text in VALUE to the end of the definition contained in VAR. Take
11410 # advantage of any shell optimizations that allow amortized linear growth over
11411 # repeated appends, instead of the typical quadratic growth present in naive
11412 # implementations.
11413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11414 eval 'as_fn_append ()
11415 {
11416 eval $1+=\$2
11417 }'
11418 else
11419 as_fn_append ()
11420 {
11421 eval $1=\$$1\$2
11422 }
11423 fi # as_fn_append
11424
11425 # as_fn_arith ARG...
11426 # ------------------
11427 # Perform arithmetic evaluation on the ARGs, and store the result in the
11428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11429 # must be portable across $(()) and expr.
11430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11431 eval 'as_fn_arith ()
11432 {
11433 as_val=$(( $* ))
11434 }'
11435 else
11436 as_fn_arith ()
11437 {
11438 as_val=`expr "$@" || test $? -eq 1`
11439 }
11440 fi # as_fn_arith
11441
11442
11443 if expr a : '\(a\)' >/dev/null 2>&1 &&
11444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11445 as_expr=expr
11446 else
11447 as_expr=false
11448 fi
11449
11450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11451 as_basename=basename
11452 else
11453 as_basename=false
11454 fi
11455
11456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11457 as_dirname=dirname
11458 else
11459 as_dirname=false
11460 fi
11461
11462 as_me=`$as_basename -- "$0" ||
11463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11464 X"$0" : 'X\(//\)$' \| \
11465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11466 $as_echo X/"$0" |
11467 sed '/^.*\/\([^/][^/]*\)\/*$/{
11468 s//\1/
11469 q
11470 }
11471 /^X\/\(\/\/\)$/{
11472 s//\1/
11473 q
11474 }
11475 /^X\/\(\/\).*/{
11476 s//\1/
11477 q
11478 }
11479 s/.*/./; q'`
11480
11481 # Avoid depending upon Character Ranges.
11482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11485 as_cr_digits='0123456789'
11486 as_cr_alnum=$as_cr_Letters$as_cr_digits
11487
11488 ECHO_C= ECHO_N= ECHO_T=
11489 case `echo -n x` in #(((((
11490 -n*)
11491 case `echo 'xy\c'` in
11492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11493 xy) ECHO_C='\c';;
11494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11495 ECHO_T=' ';;
11496 esac;;
11497 *)
11498 ECHO_N='-n';;
11499 esac
11500
11501 rm -f conf$$ conf$$.exe conf$$.file
11502 if test -d conf$$.dir; then
11503 rm -f conf$$.dir/conf$$.file
11504 else
11505 rm -f conf$$.dir
11506 mkdir conf$$.dir 2>/dev/null
11507 fi
11508 if (echo >conf$$.file) 2>/dev/null; then
11509 if ln -s conf$$.file conf$$ 2>/dev/null; then
11510 as_ln_s='ln -s'
11511 # ... but there are two gotchas:
11512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11514 # In both cases, we have to default to `cp -p'.
11515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11516 as_ln_s='cp -p'
11517 elif ln conf$$.file conf$$ 2>/dev/null; then
11518 as_ln_s=ln
11519 else
11520 as_ln_s='cp -p'
11521 fi
11522 else
11523 as_ln_s='cp -p'
11524 fi
11525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11526 rmdir conf$$.dir 2>/dev/null
11527
11528
11529 # as_fn_mkdir_p
11530 # -------------
11531 # Create "$as_dir" as a directory, including parents if necessary.
11532 as_fn_mkdir_p ()
11533 {
11534
11535 case $as_dir in #(
11536 -*) as_dir=./$as_dir;;
11537 esac
11538 test -d "$as_dir" || eval $as_mkdir_p || {
11539 as_dirs=
11540 while :; do
11541 case $as_dir in #(
11542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11543 *) as_qdir=$as_dir;;
11544 esac
11545 as_dirs="'$as_qdir' $as_dirs"
11546 as_dir=`$as_dirname -- "$as_dir" ||
11547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11548 X"$as_dir" : 'X\(//\)[^/]' \| \
11549 X"$as_dir" : 'X\(//\)$' \| \
11550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11551 $as_echo X"$as_dir" |
11552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11553 s//\1/
11554 q
11555 }
11556 /^X\(\/\/\)[^/].*/{
11557 s//\1/
11558 q
11559 }
11560 /^X\(\/\/\)$/{
11561 s//\1/
11562 q
11563 }
11564 /^X\(\/\).*/{
11565 s//\1/
11566 q
11567 }
11568 s/.*/./; q'`
11569 test -d "$as_dir" && break
11570 done
11571 test -z "$as_dirs" || eval "mkdir $as_dirs"
11572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11573
11574
11575 } # as_fn_mkdir_p
11576 if mkdir -p . 2>/dev/null; then
11577 as_mkdir_p='mkdir -p "$as_dir"'
11578 else
11579 test -d ./-p && rmdir ./-p
11580 as_mkdir_p=false
11581 fi
11582
11583 if test -x / >/dev/null 2>&1; then
11584 as_test_x='test -x'
11585 else
11586 if ls -dL / >/dev/null 2>&1; then
11587 as_ls_L_option=L
11588 else
11589 as_ls_L_option=
11590 fi
11591 as_test_x='
11592 eval sh -c '\''
11593 if test -d "$1"; then
11594 test -d "$1/.";
11595 else
11596 case $1 in #(
11597 -*)set "./$1";;
11598 esac;
11599 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11600 ???[sx]*):;;*)false;;esac;fi
11601 '\'' sh
11602 '
11603 fi
11604 as_executable_p=$as_test_x
11605
11606 # Sed expression to map a string onto a valid CPP name.
11607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11608
11609 # Sed expression to map a string onto a valid variable name.
11610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11611
11612
11613 exec 6>&1
11614 ## ----------------------------------- ##
11615 ## Main body of $CONFIG_STATUS script. ##
11616 ## ----------------------------------- ##
11617 _ASEOF
11618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11619
11620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11621 # Save the log message, to keep $0 and so on meaningful, and to
11622 # report actual input values of CONFIG_FILES etc. instead of their
11623 # values after options handling.
11624 ac_log="
11625 This file was extended by xf86-video-xgi $as_me 1.6.0, which was
11626 generated by GNU Autoconf 2.67. Invocation command line was
11627
11628 CONFIG_FILES = $CONFIG_FILES
11629 CONFIG_HEADERS = $CONFIG_HEADERS
11630 CONFIG_LINKS = $CONFIG_LINKS
11631 CONFIG_COMMANDS = $CONFIG_COMMANDS
11632 $ $0 $@
11633
11634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11635 "
11636
11637 _ACEOF
11638
11639 case $ac_config_files in *"
11640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11641 esac
11642
11643 case $ac_config_headers in *"
11644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11645 esac
11646
11647
11648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11649 # Files that config.status was made for.
11650 config_files="$ac_config_files"
11651 config_headers="$ac_config_headers"
11652 config_commands="$ac_config_commands"
11653
11654 _ACEOF
11655
11656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657 ac_cs_usage="\
11658 \`$as_me' instantiates files and other configuration actions
11659 from templates according to the current configuration. Unless the files
11660 and actions are specified as TAGs, all are instantiated by default.
11661
11662 Usage: $0 [OPTION]... [TAG]...
11663
11664 -h, --help print this help, then exit
11665 -V, --version print version number and configuration settings, then exit
11666 --config print configuration, then exit
11667 -q, --quiet, --silent
11668 do not print progress messages
11669 -d, --debug don't remove temporary files
11670 --recheck update $as_me by reconfiguring in the same conditions
11671 --file=FILE[:TEMPLATE]
11672 instantiate the configuration file FILE
11673 --header=FILE[:TEMPLATE]
11674 instantiate the configuration header FILE
11675
11676 Configuration files:
11677 $config_files
11678
11679 Configuration headers:
11680 $config_headers
11681
11682 Configuration commands:
11683 $config_commands
11684
11685 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11686
11687 _ACEOF
11688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11690 ac_cs_version="\\
11691 xf86-video-xgi config.status 1.6.0
11692 configured by $0, generated by GNU Autoconf 2.67,
11693 with options \\"\$ac_cs_config\\"
11694
11695 Copyright (C) 2010 Free Software Foundation, Inc.
11696 This config.status script is free software; the Free Software Foundation
11697 gives unlimited permission to copy, distribute and modify it."
11698
11699 ac_pwd='$ac_pwd'
11700 srcdir='$srcdir'
11701 INSTALL='$INSTALL'
11702 MKDIR_P='$MKDIR_P'
11703 AWK='$AWK'
11704 test -n "\$AWK" || AWK=awk
11705 _ACEOF
11706
11707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11708 # The default lists apply if the user does not specify any file.
11709 ac_need_defaults=:
11710 while test $# != 0
11711 do
11712 case $1 in
11713 --*=?*)
11714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11716 ac_shift=:
11717 ;;
11718 --*=)
11719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11720 ac_optarg=
11721 ac_shift=:
11722 ;;
11723 *)
11724 ac_option=$1
11725 ac_optarg=$2
11726 ac_shift=shift
11727 ;;
11728 esac
11729
11730 case $ac_option in
11731 # Handling of the options.
11732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11733 ac_cs_recheck=: ;;
11734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11735 $as_echo "$ac_cs_version"; exit ;;
11736 --config | --confi | --conf | --con | --co | --c )
11737 $as_echo "$ac_cs_config"; exit ;;
11738 --debug | --debu | --deb | --de | --d | -d )
11739 debug=: ;;
11740 --file | --fil | --fi | --f )
11741 $ac_shift
11742 case $ac_optarg in
11743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11744 '') as_fn_error $? "missing file argument" ;;
11745 esac
11746 as_fn_append CONFIG_FILES " '$ac_optarg'"
11747 ac_need_defaults=false;;
11748 --header | --heade | --head | --hea )
11749 $ac_shift
11750 case $ac_optarg in
11751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11752 esac
11753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11754 ac_need_defaults=false;;
11755 --he | --h)
11756 # Conflict between --help and --header
11757 as_fn_error $? "ambiguous option: \`$1'
11758 Try \`$0 --help' for more information.";;
11759 --help | --hel | -h )
11760 $as_echo "$ac_cs_usage"; exit ;;
11761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11763 ac_cs_silent=: ;;
11764
11765 # This is an error.
11766 -*) as_fn_error $? "unrecognized option: \`$1'
11767 Try \`$0 --help' for more information." ;;
11768
11769 *) as_fn_append ac_config_targets " $1"
11770 ac_need_defaults=false ;;
11771
11772 esac
11773 shift
11774 done
11775
11776 ac_configure_extra_args=
11777
11778 if $ac_cs_silent; then
11779 exec 6>/dev/null
11780 ac_configure_extra_args="$ac_configure_extra_args --silent"
11781 fi
11782
11783 _ACEOF
11784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785 if \$ac_cs_recheck; then
11786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11787 shift
11788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11789 CONFIG_SHELL='$SHELL'
11790 export CONFIG_SHELL
11791 exec "\$@"
11792 fi
11793
11794 _ACEOF
11795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796 exec 5>>config.log
11797 {
11798 echo
11799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11800 ## Running $as_me. ##
11801 _ASBOX
11802 $as_echo "$ac_log"
11803 } >&5
11804
11805 _ACEOF
11806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11807 #
11808 # INIT-COMMANDS
11809 #
11810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11811
11812
11813 # The HP-UX ksh and POSIX shell print the target directory to stdout
11814 # if CDPATH is set.
11815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11816
11817 sed_quote_subst='$sed_quote_subst'
11818 double_quote_subst='$double_quote_subst'
11819 delay_variable_subst='$delay_variable_subst'
11820 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11821 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11822 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11823 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11824 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11825 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11826 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11827 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11828 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11829 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11830 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11831 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11832 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11833 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11834 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11835 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11836 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11837 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11838 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11839 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11840 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11841 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11842 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11843 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11844 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11845 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11846 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11847 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11848 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11849 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11850 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11851 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11852 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11853 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11854 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11855 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11856 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11858 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11859 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11860 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11861 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11862 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11863 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11864 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11866 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11867 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11868 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11869 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11870 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11871 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11872 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11873 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11874 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11875 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11876 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11877 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11878 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11879 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11880 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11881 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11882 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11883 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11884 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11885 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11886 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11887 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11888 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11889 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11890 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11891 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11892 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11893 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11894 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11895 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11896 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11897 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11898 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11899 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11900 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11901 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11902 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11903 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11904 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11905 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11906 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11907 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11908 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11909 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11910 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11911 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11912 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11913 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11914 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11915 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11916 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11917 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11918 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11919 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11920 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11921 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11922 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11923 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11924 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11925 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11926 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11927 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11928 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11929 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11930 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11931 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11932 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11933 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11934 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11935 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11936 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11937 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11938
11939 LTCC='$LTCC'
11940 LTCFLAGS='$LTCFLAGS'
11941 compiler='$compiler_DEFAULT'
11942
11943 # Quote evaled strings.
11944 for var in SED \
11945 GREP \
11946 EGREP \
11947 FGREP \
11948 LD \
11949 NM \
11950 LN_S \
11951 lt_SP2NL \
11952 lt_NL2SP \
11953 reload_flag \
11954 OBJDUMP \
11955 deplibs_check_method \
11956 file_magic_cmd \
11957 AR \
11958 AR_FLAGS \
11959 STRIP \
11960 RANLIB \
11961 CC \
11962 CFLAGS \
11963 compiler \
11964 lt_cv_sys_global_symbol_pipe \
11965 lt_cv_sys_global_symbol_to_cdecl \
11966 lt_cv_sys_global_symbol_to_c_name_address \
11967 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11968 SHELL \
11969 ECHO \
11970 lt_prog_compiler_no_builtin_flag \
11971 lt_prog_compiler_wl \
11972 lt_prog_compiler_pic \
11973 lt_prog_compiler_static \
11974 lt_cv_prog_compiler_c_o \
11975 need_locks \
11976 DSYMUTIL \
11977 NMEDIT \
11978 LIPO \
11979 OTOOL \
11980 OTOOL64 \
11981 shrext_cmds \
11982 export_dynamic_flag_spec \
11983 whole_archive_flag_spec \
11984 compiler_needs_object \
11985 with_gnu_ld \
11986 allow_undefined_flag \
11987 no_undefined_flag \
11988 hardcode_libdir_flag_spec \
11989 hardcode_libdir_flag_spec_ld \
11990 hardcode_libdir_separator \
11991 fix_srcfile_path \
11992 exclude_expsyms \
11993 include_expsyms \
11994 file_list_spec \
11995 variables_saved_for_relink \
11996 libname_spec \
11997 library_names_spec \
11998 soname_spec \
11999 finish_eval \
12000 old_striplib \
12001 striplib; do
12002 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12003 *[\\\\\\\`\\"\\\$]*)
12004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12005 ;;
12006 *)
12007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12008 ;;
12009 esac
12010 done
12011
12012 # Double-quote double-evaled strings.
12013 for var in reload_cmds \
12014 old_postinstall_cmds \
12015 old_postuninstall_cmds \
12016 old_archive_cmds \
12017 extract_expsyms_cmds \
12018 old_archive_from_new_cmds \
12019 old_archive_from_expsyms_cmds \
12020 archive_cmds \
12021 archive_expsym_cmds \
12022 module_cmds \
12023 module_expsym_cmds \
12024 export_symbols_cmds \
12025 prelink_cmds \
12026 postinstall_cmds \
12027 postuninstall_cmds \
12028 finish_cmds \
12029 sys_lib_search_path_spec \
12030 sys_lib_dlsearch_path_spec; do
12031 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12032 *[\\\\\\\`\\"\\\$]*)
12033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12034 ;;
12035 *)
12036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12037 ;;
12038 esac
12039 done
12040
12041 # Fix-up fallback echo if it was mangled by the above quoting rules.
12042 case \$lt_ECHO in
12043 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12044 ;;
12045 esac
12046
12047 ac_aux_dir='$ac_aux_dir'
12048 xsi_shell='$xsi_shell'
12049 lt_shell_append='$lt_shell_append'
12050
12051 # See if we are running on zsh, and set the options which allow our
12052 # commands through without removal of \ escapes INIT.
12053 if test -n "\${ZSH_VERSION+set}" ; then
12054 setopt NO_GLOB_SUBST
12055 fi
12056
12057
12058 PACKAGE='$PACKAGE'
12059 VERSION='$VERSION'
12060 TIMESTAMP='$TIMESTAMP'
12061 RM='$RM'
12062 ofile='$ofile'
12063
12064
12065
12066
12067 _ACEOF
12068
12069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12070
12071 # Handling of arguments.
12072 for ac_config_target in $ac_config_targets
12073 do
12074 case $ac_config_target in
12075 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12076 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12077 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12078 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12079 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12080 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12081
12082 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12083 esac
12084 done
12085
12086
12087 # If the user did not use the arguments to specify the items to instantiate,
12088 # then the envvar interface is used. Set only those that are not.
12089 # We use the long form for the default assignment because of an extremely
12090 # bizarre bug on SunOS 4.1.3.
12091 if $ac_need_defaults; then
12092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12095 fi
12096
12097 # Have a temporary directory for convenience. Make it in the build tree
12098 # simply because there is no reason against having it here, and in addition,
12099 # creating and moving files from /tmp can sometimes cause problems.
12100 # Hook for its removal unless debugging.
12101 # Note that there is a small window in which the directory will not be cleaned:
12102 # after its creation but before its name has been assigned to `$tmp'.
12103 $debug ||
12104 {
12105 tmp=
12106 trap 'exit_status=$?
12107 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12108 ' 0
12109 trap 'as_fn_exit 1' 1 2 13 15
12110 }
12111 # Create a (secure) tmp directory for tmp files.
12112
12113 {
12114 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12115 test -n "$tmp" && test -d "$tmp"
12116 } ||
12117 {
12118 tmp=./conf$$-$RANDOM
12119 (umask 077 && mkdir "$tmp")
12120 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12121
12122 # Set up the scripts for CONFIG_FILES section.
12123 # No need to generate them if there are no CONFIG_FILES.
12124 # This happens for instance with `./config.status config.h'.
12125 if test -n "$CONFIG_FILES"; then
12126
12127
12128 ac_cr=`echo X | tr X '\015'`
12129 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12130 # But we know of no other shell where ac_cr would be empty at this
12131 # point, so we can use a bashism as a fallback.
12132 if test "x$ac_cr" = x; then
12133 eval ac_cr=\$\'\\r\'
12134 fi
12135 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12136 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12137 ac_cs_awk_cr='\\r'
12138 else
12139 ac_cs_awk_cr=$ac_cr
12140 fi
12141
12142 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12143 _ACEOF
12144
12145
12146 {
12147 echo "cat >conf$$subs.awk <<_ACEOF" &&
12148 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12149 echo "_ACEOF"
12150 } >conf$$subs.sh ||
12151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12152 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12153 ac_delim='%!_!# '
12154 for ac_last_try in false false false false false :; do
12155 . ./conf$$subs.sh ||
12156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12157
12158 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12159 if test $ac_delim_n = $ac_delim_num; then
12160 break
12161 elif $ac_last_try; then
12162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12163 else
12164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165 fi
12166 done
12167 rm -f conf$$subs.sh
12168
12169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12171 _ACEOF
12172 sed -n '
12173 h
12174 s/^/S["/; s/!.*/"]=/
12175 p
12176 g
12177 s/^[^!]*!//
12178 :repl
12179 t repl
12180 s/'"$ac_delim"'$//
12181 t delim
12182 :nl
12183 h
12184 s/\(.\{148\}\)..*/\1/
12185 t more1
12186 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12187 p
12188 n
12189 b repl
12190 :more1
12191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192 p
12193 g
12194 s/.\{148\}//
12195 t nl
12196 :delim
12197 h
12198 s/\(.\{148\}\)..*/\1/
12199 t more2
12200 s/["\\]/\\&/g; s/^/"/; s/$/"/
12201 p
12202 b
12203 :more2
12204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12205 p
12206 g
12207 s/.\{148\}//
12208 t delim
12209 ' <conf$$subs.awk | sed '
12210 /^[^""]/{
12211 N
12212 s/\n//
12213 }
12214 ' >>$CONFIG_STATUS || ac_write_fail=1
12215 rm -f conf$$subs.awk
12216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217 _ACAWK
12218 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12219 for (key in S) S_is_set[key] = 1
12220 FS = ""
12221
12222 }
12223 {
12224 line = $ 0
12225 nfields = split(line, field, "@")
12226 substed = 0
12227 len = length(field[1])
12228 for (i = 2; i < nfields; i++) {
12229 key = field[i]
12230 keylen = length(key)
12231 if (S_is_set[key]) {
12232 value = S[key]
12233 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12234 len += length(value) + length(field[++i])
12235 substed = 1
12236 } else
12237 len += 1 + keylen
12238 }
12239
12240 print line
12241 }
12242
12243 _ACAWK
12244 _ACEOF
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12247 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248 else
12249 cat
12250 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12251 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12252 _ACEOF
12253
12254 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12255 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12256 # trailing colons and then remove the whole line if VPATH becomes empty
12257 # (actually we leave an empty line to preserve line numbers).
12258 if test "x$srcdir" = x.; then
12259 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12260 h
12261 s///
12262 s/^/:/
12263 s/[ ]*$/:/
12264 s/:\$(srcdir):/:/g
12265 s/:\${srcdir}:/:/g
12266 s/:@srcdir@:/:/g
12267 s/^:*//
12268 s/:*$//
12269 x
12270 s/\(=[ ]*\).*/\1/
12271 G
12272 s/\n//
12273 s/^[^=]*=[ ]*$//
12274 }'
12275 fi
12276
12277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12278 fi # test -n "$CONFIG_FILES"
12279
12280 # Set up the scripts for CONFIG_HEADERS section.
12281 # No need to generate them if there are no CONFIG_HEADERS.
12282 # This happens for instance with `./config.status Makefile'.
12283 if test -n "$CONFIG_HEADERS"; then
12284 cat >"$tmp/defines.awk" <<\_ACAWK ||
12285 BEGIN {
12286 _ACEOF
12287
12288 # Transform confdefs.h into an awk script `defines.awk', embedded as
12289 # here-document in config.status, that substitutes the proper values into
12290 # config.h.in to produce config.h.
12291
12292 # Create a delimiter string that does not exist in confdefs.h, to ease
12293 # handling of long lines.
12294 ac_delim='%!_!# '
12295 for ac_last_try in false false :; do
12296 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12297 if test -z "$ac_t"; then
12298 break
12299 elif $ac_last_try; then
12300 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12301 else
12302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12303 fi
12304 done
12305
12306 # For the awk script, D is an array of macro values keyed by name,
12307 # likewise P contains macro parameters if any. Preserve backslash
12308 # newline sequences.
12309
12310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12311 sed -n '
12312 s/.\{148\}/&'"$ac_delim"'/g
12313 t rset
12314 :rset
12315 s/^[ ]*#[ ]*define[ ][ ]*/ /
12316 t def
12317 d
12318 :def
12319 s/\\$//
12320 t bsnl
12321 s/["\\]/\\&/g
12322 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12323 D["\1"]=" \3"/p
12324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12325 d
12326 :bsnl
12327 s/["\\]/\\&/g
12328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12329 D["\1"]=" \3\\\\\\n"\\/p
12330 t cont
12331 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12332 t cont
12333 d
12334 :cont
12335 n
12336 s/.\{148\}/&'"$ac_delim"'/g
12337 t clear
12338 :clear
12339 s/\\$//
12340 t bsnlc
12341 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12342 d
12343 :bsnlc
12344 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12345 b cont
12346 ' <confdefs.h | sed '
12347 s/'"$ac_delim"'/"\\\
12348 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12349
12350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351 for (key in D) D_is_set[key] = 1
12352 FS = ""
12353 }
12354 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12355 line = \$ 0
12356 split(line, arg, " ")
12357 if (arg[1] == "#") {
12358 defundef = arg[2]
12359 mac1 = arg[3]
12360 } else {
12361 defundef = substr(arg[1], 2)
12362 mac1 = arg[2]
12363 }
12364 split(mac1, mac2, "(") #)
12365 macro = mac2[1]
12366 prefix = substr(line, 1, index(line, defundef) - 1)
12367 if (D_is_set[macro]) {
12368 # Preserve the white space surrounding the "#".
12369 print prefix "define", macro P[macro] D[macro]
12370 next
12371 } else {
12372 # Replace #undef with comments. This is necessary, for example,
12373 # in the case of _POSIX_SOURCE, which is predefined and required
12374 # on some systems where configure will not decide to define it.
12375 if (defundef == "undef") {
12376 print "/*", prefix defundef, macro, "*/"
12377 next
12378 }
12379 }
12380 }
12381 { print }
12382 _ACAWK
12383 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12386 fi # test -n "$CONFIG_HEADERS"
12387
12388
12389 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12390 shift
12391 for ac_tag
12392 do
12393 case $ac_tag in
12394 :[FHLC]) ac_mode=$ac_tag; continue;;
12395 esac
12396 case $ac_mode$ac_tag in
12397 :[FHL]*:*);;
12398 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12399 :[FH]-) ac_tag=-:-;;
12400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12401 esac
12402 ac_save_IFS=$IFS
12403 IFS=:
12404 set x $ac_tag
12405 IFS=$ac_save_IFS
12406 shift
12407 ac_file=$1
12408 shift
12409
12410 case $ac_mode in
12411 :L) ac_source=$1;;
12412 :[FH])
12413 ac_file_inputs=
12414 for ac_f
12415 do
12416 case $ac_f in
12417 -) ac_f="$tmp/stdin";;
12418 *) # Look for the file first in the build tree, then in the source tree
12419 # (if the path is not absolute). The absolute path cannot be DOS-style,
12420 # because $ac_f cannot contain `:'.
12421 test -f "$ac_f" ||
12422 case $ac_f in
12423 [\\/$]*) false;;
12424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12425 esac ||
12426 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12427 esac
12428 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12429 as_fn_append ac_file_inputs " '$ac_f'"
12430 done
12431
12432 # Let's still pretend it is `configure' which instantiates (i.e., don't
12433 # use $as_me), people would be surprised to read:
12434 # /* config.h. Generated by config.status. */
12435 configure_input='Generated from '`
12436 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12437 `' by configure.'
12438 if test x"$ac_file" != x-; then
12439 configure_input="$ac_file. $configure_input"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12441 $as_echo "$as_me: creating $ac_file" >&6;}
12442 fi
12443 # Neutralize special characters interpreted by sed in replacement strings.
12444 case $configure_input in #(
12445 *\&* | *\|* | *\\* )
12446 ac_sed_conf_input=`$as_echo "$configure_input" |
12447 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12448 *) ac_sed_conf_input=$configure_input;;
12449 esac
12450
12451 case $ac_tag in
12452 *:-:* | *:-) cat >"$tmp/stdin" \
12453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12454 esac
12455 ;;
12456 esac
12457
12458 ac_dir=`$as_dirname -- "$ac_file" ||
12459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460 X"$ac_file" : 'X\(//\)[^/]' \| \
12461 X"$ac_file" : 'X\(//\)$' \| \
12462 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12463 $as_echo X"$ac_file" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465 s//\1/
12466 q
12467 }
12468 /^X\(\/\/\)[^/].*/{
12469 s//\1/
12470 q
12471 }
12472 /^X\(\/\/\)$/{
12473 s//\1/
12474 q
12475 }
12476 /^X\(\/\).*/{
12477 s//\1/
12478 q
12479 }
12480 s/.*/./; q'`
12481 as_dir="$ac_dir"; as_fn_mkdir_p
12482 ac_builddir=.
12483
12484 case "$ac_dir" in
12485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12486 *)
12487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12488 # A ".." for each directory in $ac_dir_suffix.
12489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12490 case $ac_top_builddir_sub in
12491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12493 esac ;;
12494 esac
12495 ac_abs_top_builddir=$ac_pwd
12496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12497 # for backward compatibility:
12498 ac_top_builddir=$ac_top_build_prefix
12499
12500 case $srcdir in
12501 .) # We are building in place.
12502 ac_srcdir=.
12503 ac_top_srcdir=$ac_top_builddir_sub
12504 ac_abs_top_srcdir=$ac_pwd ;;
12505 [\\/]* | ?:[\\/]* ) # Absolute name.
12506 ac_srcdir=$srcdir$ac_dir_suffix;
12507 ac_top_srcdir=$srcdir
12508 ac_abs_top_srcdir=$srcdir ;;
12509 *) # Relative name.
12510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12511 ac_top_srcdir=$ac_top_build_prefix$srcdir
12512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12513 esac
12514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12515
12516
12517 case $ac_mode in
12518 :F)
12519 #
12520 # CONFIG_FILE
12521 #
12522
12523 case $INSTALL in
12524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12525 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12526 esac
12527 ac_MKDIR_P=$MKDIR_P
12528 case $MKDIR_P in
12529 [\\/$]* | ?:[\\/]* ) ;;
12530 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12531 esac
12532 _ACEOF
12533
12534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535 # If the template does not know about datarootdir, expand it.
12536 # FIXME: This hack should be removed a few years after 2.60.
12537 ac_datarootdir_hack=; ac_datarootdir_seen=
12538 ac_sed_dataroot='
12539 /datarootdir/ {
12540 p
12541 q
12542 }
12543 /@datadir@/p
12544 /@docdir@/p
12545 /@infodir@/p
12546 /@localedir@/p
12547 /@mandir@/p'
12548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549 *datarootdir*) ac_datarootdir_seen=yes;;
12550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553 _ACEOF
12554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555 ac_datarootdir_hack='
12556 s&@datadir@&$datadir&g
12557 s&@docdir@&$docdir&g
12558 s&@infodir@&$infodir&g
12559 s&@localedir@&$localedir&g
12560 s&@mandir@&$mandir&g
12561 s&\\\${datarootdir}&$datarootdir&g' ;;
12562 esac
12563 _ACEOF
12564
12565 # Neutralize VPATH when `$srcdir' = `.'.
12566 # Shell code in configure.ac might set extrasub.
12567 # FIXME: do we really want to maintain this feature?
12568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569 ac_sed_extra="$ac_vpsub
12570 $extrasub
12571 _ACEOF
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 :t
12574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575 s|@configure_input@|$ac_sed_conf_input|;t t
12576 s&@top_builddir@&$ac_top_builddir_sub&;t t
12577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12578 s&@srcdir@&$ac_srcdir&;t t
12579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12580 s&@top_srcdir@&$ac_top_srcdir&;t t
12581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582 s&@builddir@&$ac_builddir&;t t
12583 s&@abs_builddir@&$ac_abs_builddir&;t t
12584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585 s&@INSTALL@&$ac_INSTALL&;t t
12586 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12587 $ac_datarootdir_hack
12588 "
12589 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591
12592 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12593 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12596 which seems to be undefined. Please make sure it is defined" >&5
12597 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12598 which seems to be undefined. Please make sure it is defined" >&2;}
12599
12600 rm -f "$tmp/stdin"
12601 case $ac_file in
12602 -) cat "$tmp/out" && rm -f "$tmp/out";;
12603 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12604 esac \
12605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12606 ;;
12607 :H)
12608 #
12609 # CONFIG_HEADER
12610 #
12611 if test x"$ac_file" != x-; then
12612 {
12613 $as_echo "/* $configure_input */" \
12614 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12615 } >"$tmp/config.h" \
12616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12617 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12619 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12620 else
12621 rm -f "$ac_file"
12622 mv "$tmp/config.h" "$ac_file" \
12623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12624 fi
12625 else
12626 $as_echo "/* $configure_input */" \
12627 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12628 || as_fn_error $? "could not create -" "$LINENO" 5
12629 fi
12630 # Compute "$ac_file"'s index in $config_headers.
12631 _am_arg="$ac_file"
12632 _am_stamp_count=1
12633 for _am_header in $config_headers :; do
12634 case $_am_header in
12635 $_am_arg | $_am_arg:* )
12636 break ;;
12637 * )
12638 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12639 esac
12640 done
12641 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12642 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$_am_arg" : 'X\(//\)[^/]' \| \
12644 X"$_am_arg" : 'X\(//\)$' \| \
12645 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12646 $as_echo X"$_am_arg" |
12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648 s//\1/
12649 q
12650 }
12651 /^X\(\/\/\)[^/].*/{
12652 s//\1/
12653 q
12654 }
12655 /^X\(\/\/\)$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\(\/\).*/{
12660 s//\1/
12661 q
12662 }
12663 s/.*/./; q'`/stamp-h$_am_stamp_count
12664 ;;
12665
12666 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12667 $as_echo "$as_me: executing $ac_file commands" >&6;}
12668 ;;
12669 esac
12670
12671
12672 case $ac_file$ac_mode in
12673 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12674 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12675 # are listed without --file. Let's play safe and only enable the eval
12676 # if we detect the quoting.
12677 case $CONFIG_FILES in
12678 *\'*) eval set x "$CONFIG_FILES" ;;
12679 *) set x $CONFIG_FILES ;;
12680 esac
12681 shift
12682 for mf
12683 do
12684 # Strip MF so we end up with the name of the file.
12685 mf=`echo "$mf" | sed -e 's/:.*$//'`
12686 # Check whether this is an Automake generated Makefile or not.
12687 # We used to match only the files named `Makefile.in', but
12688 # some people rename them; so instead we look at the file content.
12689 # Grep'ing the first line is not enough: some people post-process
12690 # each Makefile.in and add a new line on top of each file to say so.
12691 # Grep'ing the whole file is not good either: AIX grep has a line
12692 # limit of 2048, but all sed's we know have understand at least 4000.
12693 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12694 dirpart=`$as_dirname -- "$mf" ||
12695 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12696 X"$mf" : 'X\(//\)[^/]' \| \
12697 X"$mf" : 'X\(//\)$' \| \
12698 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12699 $as_echo X"$mf" |
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12701 s//\1/
12702 q
12703 }
12704 /^X\(\/\/\)[^/].*/{
12705 s//\1/
12706 q
12707 }
12708 /^X\(\/\/\)$/{
12709 s//\1/
12710 q
12711 }
12712 /^X\(\/\).*/{
12713 s//\1/
12714 q
12715 }
12716 s/.*/./; q'`
12717 else
12718 continue
12719 fi
12720 # Extract the definition of DEPDIR, am__include, and am__quote
12721 # from the Makefile without running `make'.
12722 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12723 test -z "$DEPDIR" && continue
12724 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12725 test -z "am__include" && continue
12726 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12727 # When using ansi2knr, U may be empty or an underscore; expand it
12728 U=`sed -n 's/^U = //p' < "$mf"`
12729 # Find all dependency output files, they are included files with
12730 # $(DEPDIR) in their names. We invoke sed twice because it is the
12731 # simplest approach to changing $(DEPDIR) to its actual value in the
12732 # expansion.
12733 for file in `sed -n "
12734 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12735 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12736 # Make sure the directory exists.
12737 test -f "$dirpart/$file" && continue
12738 fdir=`$as_dirname -- "$file" ||
12739 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12740 X"$file" : 'X\(//\)[^/]' \| \
12741 X"$file" : 'X\(//\)$' \| \
12742 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12743 $as_echo X"$file" |
12744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12745 s//\1/
12746 q
12747 }
12748 /^X\(\/\/\)[^/].*/{
12749 s//\1/
12750 q
12751 }
12752 /^X\(\/\/\)$/{
12753 s//\1/
12754 q
12755 }
12756 /^X\(\/\).*/{
12757 s//\1/
12758 q
12759 }
12760 s/.*/./; q'`
12761 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12762 # echo "creating $dirpart/$file"
12763 echo '# dummy' > "$dirpart/$file"
12764 done
12765 done
12766 }
12767 ;;
12768 "libtool":C)
12769
12770 # See if we are running on zsh, and set the options which allow our
12771 # commands through without removal of \ escapes.
12772 if test -n "${ZSH_VERSION+set}" ; then
12773 setopt NO_GLOB_SUBST
12774 fi
12775
12776 cfgfile="${ofile}T"
12777 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12778 $RM "$cfgfile"
12779
12780 cat <<_LT_EOF >> "$cfgfile"
12781 #! $SHELL
12782
12783 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12784 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12785 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12787 #
12788 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12789 # 2006, 2007, 2008 Free Software Foundation, Inc.
12790 # Written by Gordon Matzigkeit, 1996
12791 #
12792 # This file is part of GNU Libtool.
12793 #
12794 # GNU Libtool is free software; you can redistribute it and/or
12795 # modify it under the terms of the GNU General Public License as
12796 # published by the Free Software Foundation; either version 2 of
12797 # the License, or (at your option) any later version.
12798 #
12799 # As a special exception to the GNU General Public License,
12800 # if you distribute this file as part of a program or library that
12801 # is built using GNU Libtool, you may include this file under the
12802 # same distribution terms that you use for the rest of that program.
12803 #
12804 # GNU Libtool is distributed in the hope that it will be useful,
12805 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12806 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12807 # GNU General Public License for more details.
12808 #
12809 # You should have received a copy of the GNU General Public License
12810 # along with GNU Libtool; see the file COPYING. If not, a copy
12811 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12812 # obtained by writing to the Free Software Foundation, Inc.,
12813 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12814
12815
12816 # The names of the tagged configurations supported by this script.
12817 available_tags=""
12818
12819 # ### BEGIN LIBTOOL CONFIG
12820
12821 # Whether or not to build static libraries.
12822 build_old_libs=$enable_static
12823
12824 # Which release of libtool.m4 was used?
12825 macro_version=$macro_version
12826 macro_revision=$macro_revision
12827
12828 # Whether or not to build shared libraries.
12829 build_libtool_libs=$enable_shared
12830
12831 # What type of objects to build.
12832 pic_mode=$pic_mode
12833
12834 # Whether or not to optimize for fast installation.
12835 fast_install=$enable_fast_install
12836
12837 # The host system.
12838 host_alias=$host_alias
12839 host=$host
12840 host_os=$host_os
12841
12842 # The build system.
12843 build_alias=$build_alias
12844 build=$build
12845 build_os=$build_os
12846
12847 # A sed program that does not truncate output.
12848 SED=$lt_SED
12849
12850 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12851 Xsed="\$SED -e 1s/^X//"
12852
12853 # A grep program that handles long lines.
12854 GREP=$lt_GREP
12855
12856 # An ERE matcher.
12857 EGREP=$lt_EGREP
12858
12859 # A literal string matcher.
12860 FGREP=$lt_FGREP
12861
12862 # A BSD- or MS-compatible name lister.
12863 NM=$lt_NM
12864
12865 # Whether we need soft or hard links.
12866 LN_S=$lt_LN_S
12867
12868 # What is the maximum length of a command?
12869 max_cmd_len=$max_cmd_len
12870
12871 # Object file suffix (normally "o").
12872 objext=$ac_objext
12873
12874 # Executable file suffix (normally "").
12875 exeext=$exeext
12876
12877 # whether the shell understands "unset".
12878 lt_unset=$lt_unset
12879
12880 # turn spaces into newlines.
12881 SP2NL=$lt_lt_SP2NL
12882
12883 # turn newlines into spaces.
12884 NL2SP=$lt_lt_NL2SP
12885
12886 # How to create reloadable object files.
12887 reload_flag=$lt_reload_flag
12888 reload_cmds=$lt_reload_cmds
12889
12890 # An object symbol dumper.
12891 OBJDUMP=$lt_OBJDUMP
12892
12893 # Method to check whether dependent libraries are shared objects.
12894 deplibs_check_method=$lt_deplibs_check_method
12895
12896 # Command to use when deplibs_check_method == "file_magic".
12897 file_magic_cmd=$lt_file_magic_cmd
12898
12899 # The archiver.
12900 AR=$lt_AR
12901 AR_FLAGS=$lt_AR_FLAGS
12902
12903 # A symbol stripping program.
12904 STRIP=$lt_STRIP
12905
12906 # Commands used to install an old-style archive.
12907 RANLIB=$lt_RANLIB
12908 old_postinstall_cmds=$lt_old_postinstall_cmds
12909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12910
12911 # A C compiler.
12912 LTCC=$lt_CC
12913
12914 # LTCC compiler flags.
12915 LTCFLAGS=$lt_CFLAGS
12916
12917 # Take the output of nm and produce a listing of raw symbols and C names.
12918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12919
12920 # Transform the output of nm in a proper C declaration.
12921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12922
12923 # Transform the output of nm in a C name address pair.
12924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12925
12926 # Transform the output of nm in a C name address pair when lib prefix is needed.
12927 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12928
12929 # The name of the directory that contains temporary libtool files.
12930 objdir=$objdir
12931
12932 # Shell to use when invoking shell scripts.
12933 SHELL=$lt_SHELL
12934
12935 # An echo program that does not interpret backslashes.
12936 ECHO=$lt_ECHO
12937
12938 # Used to examine libraries when file_magic_cmd begins with "file".
12939 MAGIC_CMD=$MAGIC_CMD
12940
12941 # Must we lock files when doing compilation?
12942 need_locks=$lt_need_locks
12943
12944 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12945 DSYMUTIL=$lt_DSYMUTIL
12946
12947 # Tool to change global to local symbols on Mac OS X.
12948 NMEDIT=$lt_NMEDIT
12949
12950 # Tool to manipulate fat objects and archives on Mac OS X.
12951 LIPO=$lt_LIPO
12952
12953 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12954 OTOOL=$lt_OTOOL
12955
12956 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12957 OTOOL64=$lt_OTOOL64
12958
12959 # Old archive suffix (normally "a").
12960 libext=$libext
12961
12962 # Shared library suffix (normally ".so").
12963 shrext_cmds=$lt_shrext_cmds
12964
12965 # The commands to extract the exported symbol list from a shared archive.
12966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12967
12968 # Variables whose values should be saved in libtool wrapper scripts and
12969 # restored at link time.
12970 variables_saved_for_relink=$lt_variables_saved_for_relink
12971
12972 # Do we need the "lib" prefix for modules?
12973 need_lib_prefix=$need_lib_prefix
12974
12975 # Do we need a version for libraries?
12976 need_version=$need_version
12977
12978 # Library versioning type.
12979 version_type=$version_type
12980
12981 # Shared library runtime path variable.
12982 runpath_var=$runpath_var
12983
12984 # Shared library path variable.
12985 shlibpath_var=$shlibpath_var
12986
12987 # Is shlibpath searched before the hard-coded library search path?
12988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12989
12990 # Format of library name prefix.
12991 libname_spec=$lt_libname_spec
12992
12993 # List of archive names. First name is the real one, the rest are links.
12994 # The last name is the one that the linker finds with -lNAME
12995 library_names_spec=$lt_library_names_spec
12996
12997 # The coded name of the library, if different from the real name.
12998 soname_spec=$lt_soname_spec
12999
13000 # Command to use after installation of a shared archive.
13001 postinstall_cmds=$lt_postinstall_cmds
13002
13003 # Command to use after uninstallation of a shared archive.
13004 postuninstall_cmds=$lt_postuninstall_cmds
13005
13006 # Commands used to finish a libtool library installation in a directory.
13007 finish_cmds=$lt_finish_cmds
13008
13009 # As "finish_cmds", except a single script fragment to be evaled but
13010 # not shown.
13011 finish_eval=$lt_finish_eval
13012
13013 # Whether we should hardcode library paths into libraries.
13014 hardcode_into_libs=$hardcode_into_libs
13015
13016 # Compile-time system search path for libraries.
13017 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13018
13019 # Run-time system search path for libraries.
13020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13021
13022 # Whether dlopen is supported.
13023 dlopen_support=$enable_dlopen
13024
13025 # Whether dlopen of programs is supported.
13026 dlopen_self=$enable_dlopen_self
13027
13028 # Whether dlopen of statically linked programs is supported.
13029 dlopen_self_static=$enable_dlopen_self_static
13030
13031 # Commands to strip libraries.
13032 old_striplib=$lt_old_striplib
13033 striplib=$lt_striplib
13034
13035
13036 # The linker used to build libraries.
13037 LD=$lt_LD
13038
13039 # Commands used to build an old-style archive.
13040 old_archive_cmds=$lt_old_archive_cmds
13041
13042 # A language specific compiler.
13043 CC=$lt_compiler
13044
13045 # Is the compiler the GNU compiler?
13046 with_gcc=$GCC
13047
13048 # Compiler flag to turn off builtin functions.
13049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13050
13051 # How to pass a linker flag through the compiler.
13052 wl=$lt_lt_prog_compiler_wl
13053
13054 # Additional compiler flags for building library objects.
13055 pic_flag=$lt_lt_prog_compiler_pic
13056
13057 # Compiler flag to prevent dynamic linking.
13058 link_static_flag=$lt_lt_prog_compiler_static
13059
13060 # Does compiler simultaneously support -c and -o options?
13061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13062
13063 # Whether or not to add -lc for building shared libraries.
13064 build_libtool_need_lc=$archive_cmds_need_lc
13065
13066 # Whether or not to disallow shared libs when runtime libs are static.
13067 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13068
13069 # Compiler flag to allow reflexive dlopens.
13070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13071
13072 # Compiler flag to generate shared objects directly from archives.
13073 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13074
13075 # Whether the compiler copes with passing no objects directly.
13076 compiler_needs_object=$lt_compiler_needs_object
13077
13078 # Create an old-style archive from a shared archive.
13079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13080
13081 # Create a temporary old-style archive to link instead of a shared archive.
13082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13083
13084 # Commands used to build a shared archive.
13085 archive_cmds=$lt_archive_cmds
13086 archive_expsym_cmds=$lt_archive_expsym_cmds
13087
13088 # Commands used to build a loadable module if different from building
13089 # a shared archive.
13090 module_cmds=$lt_module_cmds
13091 module_expsym_cmds=$lt_module_expsym_cmds
13092
13093 # Whether we are building with GNU ld or not.
13094 with_gnu_ld=$lt_with_gnu_ld
13095
13096 # Flag that allows shared libraries with undefined symbols to be built.
13097 allow_undefined_flag=$lt_allow_undefined_flag
13098
13099 # Flag that enforces no undefined symbols.
13100 no_undefined_flag=$lt_no_undefined_flag
13101
13102 # Flag to hardcode \$libdir into a binary during linking.
13103 # This must work even if \$libdir does not exist
13104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13105
13106 # If ld is used when linking, flag to hardcode \$libdir into a binary
13107 # during linking. This must work even if \$libdir does not exist.
13108 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13109
13110 # Whether we need a single "-rpath" flag with a separated argument.
13111 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13112
13113 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13114 # DIR into the resulting binary.
13115 hardcode_direct=$hardcode_direct
13116
13117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13118 # DIR into the resulting binary and the resulting library dependency is
13119 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13120 # library is relocated.
13121 hardcode_direct_absolute=$hardcode_direct_absolute
13122
13123 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13124 # into the resulting binary.
13125 hardcode_minus_L=$hardcode_minus_L
13126
13127 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13128 # into the resulting binary.
13129 hardcode_shlibpath_var=$hardcode_shlibpath_var
13130
13131 # Set to "yes" if building a shared library automatically hardcodes DIR
13132 # into the library and all subsequent libraries and executables linked
13133 # against it.
13134 hardcode_automatic=$hardcode_automatic
13135
13136 # Set to yes if linker adds runtime paths of dependent libraries
13137 # to runtime path list.
13138 inherit_rpath=$inherit_rpath
13139
13140 # Whether libtool must link a program against all its dependency libraries.
13141 link_all_deplibs=$link_all_deplibs
13142
13143 # Fix the shell variable \$srcfile for the compiler.
13144 fix_srcfile_path=$lt_fix_srcfile_path
13145
13146 # Set to "yes" if exported symbols are required.
13147 always_export_symbols=$always_export_symbols
13148
13149 # The commands to list exported symbols.
13150 export_symbols_cmds=$lt_export_symbols_cmds
13151
13152 # Symbols that should not be listed in the preloaded symbols.
13153 exclude_expsyms=$lt_exclude_expsyms
13154
13155 # Symbols that must always be exported.
13156 include_expsyms=$lt_include_expsyms
13157
13158 # Commands necessary for linking programs (against libraries) with templates.
13159 prelink_cmds=$lt_prelink_cmds
13160
13161 # Specify filename containing input files.
13162 file_list_spec=$lt_file_list_spec
13163
13164 # How to hardcode a shared library path into an executable.
13165 hardcode_action=$hardcode_action
13166
13167 # ### END LIBTOOL CONFIG
13168
13169 _LT_EOF
13170
13171 case $host_os in
13172 aix3*)
13173 cat <<\_LT_EOF >> "$cfgfile"
13174 # AIX sometimes has problems with the GCC collect2 program. For some
13175 # reason, if we set the COLLECT_NAMES environment variable, the problems
13176 # vanish in a puff of smoke.
13177 if test "X${COLLECT_NAMES+set}" != Xset; then
13178 COLLECT_NAMES=
13179 export COLLECT_NAMES
13180 fi
13181 _LT_EOF
13182 ;;
13183 esac
13184
13185
13186 ltmain="$ac_aux_dir/ltmain.sh"
13187
13188
13189 # We use sed instead of cat because bash on DJGPP gets confused if
13190 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13191 # text mode, it properly converts lines to CR/LF. This bash problem
13192 # is reportedly fixed, but why not run on old versions too?
13193 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13194 || (rm -f "$cfgfile"; exit 1)
13195
13196 case $xsi_shell in
13197 yes)
13198 cat << \_LT_EOF >> "$cfgfile"
13199
13200 # func_dirname file append nondir_replacement
13201 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13202 # otherwise set result to NONDIR_REPLACEMENT.
13203 func_dirname ()
13204 {
13205 case ${1} in
13206 */*) func_dirname_result="${1%/*}${2}" ;;
13207 * ) func_dirname_result="${3}" ;;
13208 esac
13209 }
13210
13211 # func_basename file
13212 func_basename ()
13213 {
13214 func_basename_result="${1##*/}"
13215 }
13216
13217 # func_dirname_and_basename file append nondir_replacement
13218 # perform func_basename and func_dirname in a single function
13219 # call:
13220 # dirname: Compute the dirname of FILE. If nonempty,
13221 # add APPEND to the result, otherwise set result
13222 # to NONDIR_REPLACEMENT.
13223 # value returned in "$func_dirname_result"
13224 # basename: Compute filename of FILE.
13225 # value retuned in "$func_basename_result"
13226 # Implementation must be kept synchronized with func_dirname
13227 # and func_basename. For efficiency, we do not delegate to
13228 # those functions but instead duplicate the functionality here.
13229 func_dirname_and_basename ()
13230 {
13231 case ${1} in
13232 */*) func_dirname_result="${1%/*}${2}" ;;
13233 * ) func_dirname_result="${3}" ;;
13234 esac
13235 func_basename_result="${1##*/}"
13236 }
13237
13238 # func_stripname prefix suffix name
13239 # strip PREFIX and SUFFIX off of NAME.
13240 # PREFIX and SUFFIX must not contain globbing or regex special
13241 # characters, hashes, percent signs, but SUFFIX may contain a leading
13242 # dot (in which case that matches only a dot).
13243 func_stripname ()
13244 {
13245 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13246 # positional parameters, so assign one to ordinary parameter first.
13247 func_stripname_result=${3}
13248 func_stripname_result=${func_stripname_result#"${1}"}
13249 func_stripname_result=${func_stripname_result%"${2}"}
13250 }
13251
13252 # func_opt_split
13253 func_opt_split ()
13254 {
13255 func_opt_split_opt=${1%%=*}
13256 func_opt_split_arg=${1#*=}
13257 }
13258
13259 # func_lo2o object
13260 func_lo2o ()
13261 {
13262 case ${1} in
13263 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13264 *) func_lo2o_result=${1} ;;
13265 esac
13266 }
13267
13268 # func_xform libobj-or-source
13269 func_xform ()
13270 {
13271 func_xform_result=${1%.*}.lo
13272 }
13273
13274 # func_arith arithmetic-term...
13275 func_arith ()
13276 {
13277 func_arith_result=$(( $* ))
13278 }
13279
13280 # func_len string
13281 # STRING may not start with a hyphen.
13282 func_len ()
13283 {
13284 func_len_result=${#1}
13285 }
13286
13287 _LT_EOF
13288 ;;
13289 *) # Bourne compatible functions.
13290 cat << \_LT_EOF >> "$cfgfile"
13291
13292 # func_dirname file append nondir_replacement
13293 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13294 # otherwise set result to NONDIR_REPLACEMENT.
13295 func_dirname ()
13296 {
13297 # Extract subdirectory from the argument.
13298 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13299 if test "X$func_dirname_result" = "X${1}"; then
13300 func_dirname_result="${3}"
13301 else
13302 func_dirname_result="$func_dirname_result${2}"
13303 fi
13304 }
13305
13306 # func_basename file
13307 func_basename ()
13308 {
13309 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13310 }
13311
13312
13313 # func_stripname prefix suffix name
13314 # strip PREFIX and SUFFIX off of NAME.
13315 # PREFIX and SUFFIX must not contain globbing or regex special
13316 # characters, hashes, percent signs, but SUFFIX may contain a leading
13317 # dot (in which case that matches only a dot).
13318 # func_strip_suffix prefix name
13319 func_stripname ()
13320 {
13321 case ${2} in
13322 .*) func_stripname_result=`$ECHO "X${3}" \
13323 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13324 *) func_stripname_result=`$ECHO "X${3}" \
13325 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13326 esac
13327 }
13328
13329 # sed scripts:
13330 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13331 my_sed_long_arg='1s/^-[^=]*=//'
13332
13333 # func_opt_split
13334 func_opt_split ()
13335 {
13336 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13337 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13338 }
13339
13340 # func_lo2o object
13341 func_lo2o ()
13342 {
13343 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13344 }
13345
13346 # func_xform libobj-or-source
13347 func_xform ()
13348 {
13349 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13350 }
13351
13352 # func_arith arithmetic-term...
13353 func_arith ()
13354 {
13355 func_arith_result=`expr "$@"`
13356 }
13357
13358 # func_len string
13359 # STRING may not start with a hyphen.
13360 func_len ()
13361 {
13362 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13363 }
13364
13365 _LT_EOF
13366 esac
13367
13368 case $lt_shell_append in
13369 yes)
13370 cat << \_LT_EOF >> "$cfgfile"
13371
13372 # func_append var value
13373 # Append VALUE to the end of shell variable VAR.
13374 func_append ()
13375 {
13376 eval "$1+=\$2"
13377 }
13378 _LT_EOF
13379 ;;
13380 *)
13381 cat << \_LT_EOF >> "$cfgfile"
13382
13383 # func_append var value
13384 # Append VALUE to the end of shell variable VAR.
13385 func_append ()
13386 {
13387 eval "$1=\$$1\$2"
13388 }
13389
13390 _LT_EOF
13391 ;;
13392 esac
13393
13394
13395 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13396 || (rm -f "$cfgfile"; exit 1)
13397
13398 mv -f "$cfgfile" "$ofile" ||
13399 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13400 chmod +x "$ofile"
13401
13402 ;;
13403
13404 esac
13405 done # for ac_tag
13406
13407
13408 as_fn_exit 0
13409 _ACEOF
13410 ac_clean_files=$ac_clean_files_save
13411
13412 test $ac_write_fail = 0 ||
13413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13414
13415
13416 # configure is writing to config.log, and then calls config.status.
13417 # config.status does its own redirection, appending to config.log.
13418 # Unfortunately, on DOS this fails, as config.log is still kept open
13419 # by configure, so config.status won't be able to write to it; its
13420 # output is simply discarded. So we exec the FD to /dev/null,
13421 # effectively closing config.log, so it can be properly (re)opened and
13422 # appended to by config.status. When coming back to configure, we
13423 # need to make the FD available again.
13424 if test "$no_create" != yes; then
13425 ac_cs_success=:
13426 ac_config_status_args=
13427 test "$silent" = yes &&
13428 ac_config_status_args="$ac_config_status_args --quiet"
13429 exec 5>/dev/null
13430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13431 exec 5>>config.log
13432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13433 # would make configure fail if this is the last instruction.
13434 $ac_cs_success || as_fn_exit 1
13435 fi
13436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13438 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13439 fi
13440
13441