pcsxr-1.9.92
[pcsx_rearmed.git] / configure
CommitLineData
ef79bbde
P
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for pcsx 1.9.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='pcsx'
745PACKAGE_TARNAME='pcsx'
746PACKAGE_VERSION='1.9'
747PACKAGE_STRING='pcsx 1.9'
748PACKAGE_BUGREPORT=''
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786gt_needs=
787ac_subst_vars='LTLIBOBJS
788LIBOBJS
789ARCH_PPC_FALSE
790ARCH_PPC_TRUE
791ARCH_X86_64_FALSE
792ARCH_X86_64_TRUE
793ARCH_X86_FALSE
794ARCH_X86_TRUE
795NASM
796X86_NASM_FALSE
797X86_NASM_TRUE
798PEOPSXGL
799LIBCDIO_LIBS
800LIBCDIO_CFLAGS
801USE_LIBCDIO_FALSE
802USE_LIBCDIO_TRUE
803SOUND_PULSEAUDIO_FALSE
804SOUND_PULSEAUDIO_TRUE
805SOUND_ALSA_FALSE
806SOUND_ALSA_TRUE
807PULSEAUDIO_LIBS
808PULSEAUDIO_CFLAGS
809ALSA_LIBS
810ALSA_CFLAGS
811SOUND_NULL_FALSE
812SOUND_NULL_TRUE
813SOUND_SDL_FALSE
814SOUND_SDL_TRUE
815SOUND_OSS_FALSE
816SOUND_OSS_TRUE
817SDL_LIBS
818SDL_CFLAGS
819SDL_CONFIG
820GLADE2_LIBS
821GLADE2_CFLAGS
822GTK2_LIBS
823GTK2_CFLAGS
824GLIB2_LIBS
825GLIB2_CFLAGS
826PKG_CONFIG
827GETTEXT_PACKAGE
828POSUB
829LTLIBINTL
830LIBINTL
831INTLLIBS
832LTLIBICONV
833LIBICONV
834INTL_MACOSX_LIBS
835XGETTEXT_EXTRA_OPTIONS
836MSGMERGE
837XGETTEXT_015
838XGETTEXT
839GMSGFMT_015
840MSGFMT_015
841GMSGFMT
842MSGFMT
843GETTEXT_MACRO_VERSION
844USE_NLS
845am__fastdepCCAS_FALSE
846am__fastdepCCAS_TRUE
847CCASDEPMODE
848CCASFLAGS
849CCAS
850CPP
851OTOOL64
852OTOOL
853LIPO
854NMEDIT
855DSYMUTIL
856lt_ECHO
857AR
858OBJDUMP
859LN_S
860NM
861ac_ct_DUMPBIN
862DUMPBIN
863LD
864FGREP
865EGREP
866GREP
867SED
868LIBTOOL
869RANLIB
870am__fastdepCC_FALSE
871am__fastdepCC_TRUE
872CCDEPMODE
873AMDEPBACKSLASH
874AMDEP_FALSE
875AMDEP_TRUE
876am__quote
877am__include
878DEPDIR
879OBJEXT
880EXEEXT
881ac_ct_CC
882CPPFLAGS
883LDFLAGS
884CFLAGS
885CC
886MAINT
887MAINTAINER_MODE_FALSE
888MAINTAINER_MODE_TRUE
889am__untar
890am__tar
891AMTAR
892am__leading_dot
893SET_MAKE
894AWK
895mkdir_p
896MKDIR_P
897INSTALL_STRIP_PROGRAM
898STRIP
899install_sh
900MAKEINFO
901AUTOHEADER
902AUTOMAKE
903AUTOCONF
904ACLOCAL
905VERSION
906PACKAGE
907CYGPATH_W
908am__isrc
909INSTALL_DATA
910INSTALL_SCRIPT
911INSTALL_PROGRAM
912target_os
913target_vendor
914target_cpu
915target
916host_os
917host_vendor
918host_cpu
919host
920build_os
921build_vendor
922build_cpu
923build
924target_alias
925host_alias
926build_alias
927LIBS
928ECHO_T
929ECHO_N
930ECHO_C
931DEFS
932mandir
933localedir
934libdir
935psdir
936pdfdir
937dvidir
938htmldir
939infodir
940docdir
941oldincludedir
942includedir
943localstatedir
944sharedstatedir
945sysconfdir
946datadir
947datarootdir
948libexecdir
949sbindir
950bindir
951program_transform_name
952prefix
953exec_prefix
954PACKAGE_BUGREPORT
955PACKAGE_STRING
956PACKAGE_VERSION
957PACKAGE_TARNAME
958PACKAGE_NAME
959PATH_SEPARATOR
960SHELL'
961ac_subst_files=''
962ac_user_opts='
963enable_option_checking
964enable_maintainer_mode
965enable_dependency_tracking
966enable_static
967enable_shared
968with_pic
969enable_fast_install
970with_gnu_ld
971enable_libtool_lock
972enable_nls
973enable_rpath
974with_libiconv_prefix
975with_libintl_prefix
976with_sdl_prefix
977with_sdl_exec_prefix
978enable_sdltest
979enable_sound
980enable_libcdio
981enable_opengl
982enable_dynarec
983'
984 ac_precious_vars='build_alias
985host_alias
986target_alias
987CC
988CFLAGS
989LDFLAGS
990LIBS
991CPPFLAGS
992CPP
993CCAS
994CCASFLAGS
995PKG_CONFIG
996GLIB2_CFLAGS
997GLIB2_LIBS
998GTK2_CFLAGS
999GTK2_LIBS
1000GLADE2_CFLAGS
1001GLADE2_LIBS
1002ALSA_CFLAGS
1003ALSA_LIBS
1004PULSEAUDIO_CFLAGS
1005PULSEAUDIO_LIBS
1006LIBCDIO_CFLAGS
1007LIBCDIO_LIBS'
1008
1009
1010# Initialize some variables set by options.
1011ac_init_help=
1012ac_init_version=false
1013ac_unrecognized_opts=
1014ac_unrecognized_sep=
1015# The variables have the same names as the options, with
1016# dashes changed to underlines.
1017cache_file=/dev/null
1018exec_prefix=NONE
1019no_create=
1020no_recursion=
1021prefix=NONE
1022program_prefix=NONE
1023program_suffix=NONE
1024program_transform_name=s,x,x,
1025silent=
1026site=
1027srcdir=
1028verbose=
1029x_includes=NONE
1030x_libraries=NONE
1031
1032# Installation directory options.
1033# These are left unexpanded so users can "make install exec_prefix=/foo"
1034# and all the variables that are supposed to be based on exec_prefix
1035# by default will actually change.
1036# Use braces instead of parens because sh, perl, etc. also accept them.
1037# (The list follows the same order as the GNU Coding Standards.)
1038bindir='${exec_prefix}/bin'
1039sbindir='${exec_prefix}/sbin'
1040libexecdir='${exec_prefix}/libexec'
1041datarootdir='${prefix}/share'
1042datadir='${datarootdir}'
1043sysconfdir='${prefix}/etc'
1044sharedstatedir='${prefix}/com'
1045localstatedir='${prefix}/var'
1046includedir='${prefix}/include'
1047oldincludedir='/usr/include'
1048docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049infodir='${datarootdir}/info'
1050htmldir='${docdir}'
1051dvidir='${docdir}'
1052pdfdir='${docdir}'
1053psdir='${docdir}'
1054libdir='${exec_prefix}/lib'
1055localedir='${datarootdir}/locale'
1056mandir='${datarootdir}/man'
1057
1058ac_prev=
1059ac_dashdash=
1060for ac_option
1061do
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1065 ac_prev=
1066 continue
1067 fi
1068
1069 case $ac_option in
1070 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 *) ac_optarg=yes ;;
1072 esac
1073
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1075
1076 case $ac_dashdash$ac_option in
1077 --)
1078 ac_dashdash=yes ;;
1079
1080 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081 ac_prev=bindir ;;
1082 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083 bindir=$ac_optarg ;;
1084
1085 -build | --build | --buil | --bui | --bu)
1086 ac_prev=build_alias ;;
1087 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088 build_alias=$ac_optarg ;;
1089
1090 -cache-file | --cache-file | --cache-fil | --cache-fi \
1091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092 ac_prev=cache_file ;;
1093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095 cache_file=$ac_optarg ;;
1096
1097 --config-cache | -C)
1098 cache_file=config.cache ;;
1099
1100 -datadir | --datadir | --datadi | --datad)
1101 ac_prev=datadir ;;
1102 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103 datadir=$ac_optarg ;;
1104
1105 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106 | --dataroo | --dataro | --datar)
1107 ac_prev=datarootdir ;;
1108 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110 datarootdir=$ac_optarg ;;
1111
1112 -disable-* | --disable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"enable_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval enable_$ac_useropt=no ;;
1128
1129 -docdir | --docdir | --docdi | --doc | --do)
1130 ac_prev=docdir ;;
1131 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132 docdir=$ac_optarg ;;
1133
1134 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135 ac_prev=dvidir ;;
1136 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137 dvidir=$ac_optarg ;;
1138
1139 -enable-* | --enable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149"enable_$ac_useropt"
1150"*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1155
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1164
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1167 with_gas=yes ;;
1168
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1175
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1180
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182 ac_prev=htmldir ;;
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184 | --ht=*)
1185 htmldir=$ac_optarg ;;
1186
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1193
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1195 ac_prev=infodir ;;
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1198
1199 -libdir | --libdir | --libdi | --libd)
1200 ac_prev=libdir ;;
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1203
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1210
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1215
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1222
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224 ac_prev=mandir ;;
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1227
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1230 with_fp=no ;;
1231
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1234 no_create=yes ;;
1235
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238 no_recursion=yes ;;
1239
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1248
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250 ac_prev=prefix ;;
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1253
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1260
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1267
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1284
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286 ac_prev=pdfdir ;;
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1289
1290 -psdir | --psdir | --psdi | --psd | --ps)
1291 ac_prev=psdir ;;
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293 psdir=$ac_optarg ;;
1294
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1297 silent=yes ;;
1298
1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300 ac_prev=sbindir ;;
1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302 | --sbi=* | --sb=*)
1303 sbindir=$ac_optarg ;;
1304
1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307 | --sharedst | --shareds | --shared | --share | --shar \
1308 | --sha | --sh)
1309 ac_prev=sharedstatedir ;;
1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313 | --sha=* | --sh=*)
1314 sharedstatedir=$ac_optarg ;;
1315
1316 -site | --site | --sit)
1317 ac_prev=site ;;
1318 -site=* | --site=* | --sit=*)
1319 site=$ac_optarg ;;
1320
1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322 ac_prev=srcdir ;;
1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324 srcdir=$ac_optarg ;;
1325
1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327 | --syscon | --sysco | --sysc | --sys | --sy)
1328 ac_prev=sysconfdir ;;
1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331 sysconfdir=$ac_optarg ;;
1332
1333 -target | --target | --targe | --targ | --tar | --ta | --t)
1334 ac_prev=target_alias ;;
1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336 target_alias=$ac_optarg ;;
1337
1338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339 verbose=yes ;;
1340
1341 -version | --version | --versio | --versi | --vers | -V)
1342 ac_init_version=: ;;
1343
1344 -with-* | --with-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1349 { (exit 1); exit 1; }; }
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"with_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=\$ac_optarg ;;
1360
1361 -without-* | --without-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1366 { (exit 1); exit 1; }; }
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1370 *"
1371"with_$ac_useropt"
1372"*) ;;
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1375 esac
1376 eval with_$ac_useropt=no ;;
1377
1378 --x)
1379 # Obsolete; use --with-x.
1380 with_x=yes ;;
1381
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1388
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1395
1396 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1397Try \`$0 --help' for more information." >&2
1398 { (exit 1); exit 1; }; }
1399 ;;
1400
1401 *=*)
1402 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1405 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406 { (exit 1); exit 1; }; }
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1409
1410 *)
1411 # FIXME: should be removed in autoconf 3.0.
1412 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416 ;;
1417
1418 esac
1419done
1420
1421if test -n "$ac_prev"; then
1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1424 { (exit 1); exit 1; }; }
1425fi
1426
1427if test -n "$ac_unrecognized_opts"; then
1428 case $enable_option_checking in
1429 no) ;;
1430 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1431 { (exit 1); exit 1; }; } ;;
1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433 esac
1434fi
1435
1436# Check all directory arguments for consistency.
1437for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438 datadir sysconfdir sharedstatedir localstatedir includedir \
1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440 libdir localedir mandir
1441do
1442 eval ac_val=\$$ac_var
1443 # Remove trailing slashes.
1444 case $ac_val in
1445 */ )
1446 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447 eval $ac_var=\$ac_val;;
1448 esac
1449 # Be sure to have absolute directory names.
1450 case $ac_val in
1451 [\\/$]* | ?:[\\/]* ) continue;;
1452 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453 esac
1454 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1455 { (exit 1); exit 1; }; }
1456done
1457
1458# There might be people who depend on the old broken behavior: `$host'
1459# used to hold the argument of --host etc.
1460# FIXME: To remove some day.
1461build=$build_alias
1462host=$host_alias
1463target=$target_alias
1464
1465# FIXME: To remove some day.
1466if test "x$host_alias" != x; then
1467 if test "x$build_alias" = x; then
1468 cross_compiling=maybe
1469 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1470 If a cross compiler is detected then cross compile mode will be used." >&2
1471 elif test "x$build_alias" != "x$host_alias"; then
1472 cross_compiling=yes
1473 fi
1474fi
1475
1476ac_tool_prefix=
1477test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479test "$silent" = yes && exec 6>/dev/null
1480
1481
1482ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483ac_ls_di=`ls -di .` &&
1484ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1486 { (exit 1); exit 1; }; }
1487test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1488 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1489 { (exit 1); exit 1; }; }
1490
1491
1492# Find the source files, if location was not specified.
1493if test -z "$srcdir"; then
1494 ac_srcdir_defaulted=yes
1495 # Try the directory containing this script, then the parent directory.
1496 ac_confdir=`$as_dirname -- "$as_myself" ||
1497$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498 X"$as_myself" : 'X\(//\)[^/]' \| \
1499 X"$as_myself" : 'X\(//\)$' \| \
1500 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501$as_echo X"$as_myself" |
1502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503 s//\1/
1504 q
1505 }
1506 /^X\(\/\/\)[^/].*/{
1507 s//\1/
1508 q
1509 }
1510 /^X\(\/\/\)$/{
1511 s//\1/
1512 q
1513 }
1514 /^X\(\/\).*/{
1515 s//\1/
1516 q
1517 }
1518 s/.*/./; q'`
1519 srcdir=$ac_confdir
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1521 srcdir=..
1522 fi
1523else
1524 ac_srcdir_defaulted=no
1525fi
1526if test ! -r "$srcdir/$ac_unique_file"; then
1527 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1529 { (exit 1); exit 1; }; }
1530fi
1531ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532ac_abs_confdir=`(
1533 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1534 { (exit 1); exit 1; }; }
1535 pwd)`
1536# When building in place, set srcdir=.
1537if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 srcdir=.
1539fi
1540# Remove unnecessary trailing slashes from srcdir.
1541# Double slashes in file names in object file debugging info
1542# mess up M-x gdb in Emacs.
1543case $srcdir in
1544*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545esac
1546for ac_var in $ac_precious_vars; do
1547 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_env_${ac_var}_value=\$${ac_var}
1549 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551done
1552
1553#
1554# Report the --help message.
1555#
1556if test "$ac_init_help" = "long"; then
1557 # Omit some internal or obsolete options to make the list less imposing.
1558 # This message is too long to be a string in the A/UX 3.1 sh.
1559 cat <<_ACEOF
1560\`configure' configures pcsx 1.9 to adapt to many kinds of systems.
1561
1562Usage: $0 [OPTION]... [VAR=VALUE]...
1563
1564To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565VAR=VALUE. See below for descriptions of some of the useful variables.
1566
1567Defaults for the options are specified in brackets.
1568
1569Configuration:
1570 -h, --help display this help and exit
1571 --help=short display options specific to this package
1572 --help=recursive display the short help of all the included packages
1573 -V, --version display version information and exit
1574 -q, --quiet, --silent do not print \`checking...' messages
1575 --cache-file=FILE cache test results in FILE [disabled]
1576 -C, --config-cache alias for \`--cache-file=config.cache'
1577 -n, --no-create do not create output files
1578 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579
1580Installation directories:
1581 --prefix=PREFIX install architecture-independent files in PREFIX
1582 [$ac_default_prefix]
1583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 [PREFIX]
1585
1586By default, \`make install' will install all the files in
1587\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1588an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589for instance \`--prefix=\$HOME'.
1590
1591For better control, use the options below.
1592
1593Fine tuning of the installation directories:
1594 --bindir=DIR user executables [EPREFIX/bin]
1595 --sbindir=DIR system admin executables [EPREFIX/sbin]
1596 --libexecdir=DIR program executables [EPREFIX/libexec]
1597 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1598 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1599 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1600 --libdir=DIR object code libraries [EPREFIX/lib]
1601 --includedir=DIR C header files [PREFIX/include]
1602 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1603 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1604 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1605 --infodir=DIR info documentation [DATAROOTDIR/info]
1606 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1607 --mandir=DIR man documentation [DATAROOTDIR/man]
1608 --docdir=DIR documentation root [DATAROOTDIR/doc/pcsx]
1609 --htmldir=DIR html documentation [DOCDIR]
1610 --dvidir=DIR dvi documentation [DOCDIR]
1611 --pdfdir=DIR pdf documentation [DOCDIR]
1612 --psdir=DIR ps documentation [DOCDIR]
1613_ACEOF
1614
1615 cat <<\_ACEOF
1616
1617Program names:
1618 --program-prefix=PREFIX prepend PREFIX to installed program names
1619 --program-suffix=SUFFIX append SUFFIX to installed program names
1620 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1621
1622System types:
1623 --build=BUILD configure for building on BUILD [guessed]
1624 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1625 --target=TARGET configure for building compilers for TARGET [HOST]
1626_ACEOF
1627fi
1628
1629if test -n "$ac_init_help"; then
1630 case $ac_init_help in
1631 short | recursive ) echo "Configuration of pcsx 1.9:";;
1632 esac
1633 cat <<\_ACEOF
1634
1635Optional Features:
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-maintainer-mode enable make rules and dependencies not useful
1640 (and sometimes confusing) to the casual installer
1641 --disable-dependency-tracking speeds up one-time build
1642 --enable-dependency-tracking do not reject slow dependency extractors
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-shared[=PKGS] build shared libraries [default=yes]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --disable-sdltest Do not try to compile and run a test SDL program
1651 --enable-sound=... force selection of sound backend (alsa/null/oss/pulseaudio/sdl) (default: sdl)
1652 --enable-libcdio use GNU libcdio for CD-ROM support (default=no)
1653 --enable-opengl build OpenGL plugin (default=no)
1654 --enable-dynarec=... force selection of dynamic recompiler platform (auto/no/x86/x86_64/ppc) (default: auto)
1655
1656Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-pic try to use only PIC/non-PIC objects [default=use
1660 both]
1661 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1664 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1665 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1666 --without-libintl-prefix don't search for libintl in includedir and libdir
1667 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1668 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1669
1670Some influential environment variables:
1671 CC C compiler command
1672 CFLAGS C compiler flags
1673 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1674 nonstandard directory <lib dir>
1675 LIBS libraries to pass to the linker, e.g. -l<library>
1676 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1677 you have headers in a nonstandard directory <include dir>
1678 CPP C preprocessor
1679 CCAS assembler compiler command (defaults to CC)
1680 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1681 PKG_CONFIG path to pkg-config utility
1682 GLIB2_CFLAGS
1683 C compiler flags for GLIB2, overriding pkg-config
1684 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1685 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1686 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1687 GLADE2_CFLAGS
1688 C compiler flags for GLADE2, overriding pkg-config
1689 GLADE2_LIBS linker flags for GLADE2, overriding pkg-config
1690 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1691 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1692 PULSEAUDIO_CFLAGS
1693 C compiler flags for PULSEAUDIO, overriding pkg-config
1694 PULSEAUDIO_LIBS
1695 linker flags for PULSEAUDIO, overriding pkg-config
1696 LIBCDIO_CFLAGS
1697 C compiler flags for LIBCDIO, overriding pkg-config
1698 LIBCDIO_LIBS
1699 linker flags for LIBCDIO, overriding pkg-config
1700
1701Use these variables to override the choices made by `configure' or to help
1702it to find libraries and programs with nonstandard names/locations.
1703
1704_ACEOF
1705ac_status=$?
1706fi
1707
1708if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713 continue
1714 ac_builddir=.
1715
1716case "$ac_dir" in
1717.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718*)
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 esac ;;
1726esac
1727ac_abs_top_builddir=$ac_pwd
1728ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729# for backward compatibility:
1730ac_top_builddir=$ac_top_build_prefix
1731
1732case $srcdir in
1733 .) # We are building in place.
1734 ac_srcdir=.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1741 *) # Relative name.
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745esac
1746ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1756 else
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 fi || ac_status=$?
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1760 done
1761fi
1762
1763test -n "$ac_init_help" && exit $ac_status
1764if $ac_init_version; then
1765 cat <<\_ACEOF
1766pcsx configure 1.9
1767generated by GNU Autoconf 2.63
1768
1769Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17702002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1771This configure script is free software; the Free Software Foundation
1772gives unlimited permission to copy, distribute and modify it.
1773_ACEOF
1774 exit
1775fi
1776cat >config.log <<_ACEOF
1777This file contains any messages produced by compilers while
1778running configure, to aid debugging if configure makes a mistake.
1779
1780It was created by pcsx $as_me 1.9, which was
1781generated by GNU Autoconf 2.63. Invocation command line was
1782
1783 $ $0 $@
1784
1785_ACEOF
1786exec 5>>config.log
1787{
1788cat <<_ASUNAME
1789## --------- ##
1790## Platform. ##
1791## --------- ##
1792
1793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1794uname -m = `(uname -m) 2>/dev/null || echo unknown`
1795uname -r = `(uname -r) 2>/dev/null || echo unknown`
1796uname -s = `(uname -s) 2>/dev/null || echo unknown`
1797uname -v = `(uname -v) 2>/dev/null || echo unknown`
1798
1799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1801
1802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1805/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1809
1810_ASUNAME
1811
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 $as_echo "PATH: $as_dir"
1818done
1819IFS=$as_save_IFS
1820
1821} >&5
1822
1823cat >&5 <<_ACEOF
1824
1825
1826## ----------- ##
1827## Core tests. ##
1828## ----------- ##
1829
1830_ACEOF
1831
1832
1833# Keep a trace of the command line.
1834# Strip out --no-create and --no-recursion so they do not pile up.
1835# Strip out --silent because we don't want to record it for future runs.
1836# Also quote any args containing shell meta-characters.
1837# Make two passes to allow for proper duplicate-argument suppression.
1838ac_configure_args=
1839ac_configure_args0=
1840ac_configure_args1=
1841ac_must_keep_next=false
1842for ac_pass in 1 2
1843do
1844 for ac_arg
1845 do
1846 case $ac_arg in
1847 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1849 | -silent | --silent | --silen | --sile | --sil)
1850 continue ;;
1851 *\'*)
1852 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 case $ac_pass in
1855 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1856 2)
1857 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1858 if test $ac_must_keep_next = true; then
1859 ac_must_keep_next=false # Got value, back to normal.
1860 else
1861 case $ac_arg in
1862 *=* | --config-cache | -C | -disable-* | --disable-* \
1863 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1864 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1865 | -with-* | --with-* | -without-* | --without-* | --x)
1866 case "$ac_configure_args0 " in
1867 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868 esac
1869 ;;
1870 -* ) ac_must_keep_next=true ;;
1871 esac
1872 fi
1873 ac_configure_args="$ac_configure_args '$ac_arg'"
1874 ;;
1875 esac
1876 done
1877done
1878$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1879$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1880
1881# When interrupted or exit'd, cleanup temporary files, and complete
1882# config.log. We remove comments because anyway the quotes in there
1883# would cause problems or look ugly.
1884# WARNING: Use '\'' to represent an apostrophe within the trap.
1885# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1886trap 'exit_status=$?
1887 # Save into config.log some information that might help in debugging.
1888 {
1889 echo
1890
1891 cat <<\_ASBOX
1892## ---------------- ##
1893## Cache variables. ##
1894## ---------------- ##
1895_ASBOX
1896 echo
1897 # The following way of writing the cache mishandles newlines in values,
1898(
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in #(
1902 *${as_nl}*)
1903 case $ac_var in #(
1904 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1905$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 esac
1907 case $ac_var in #(
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) $as_unset $ac_var ;;
1911 esac ;;
1912 esac
1913 done
1914 (set) 2>&1 |
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1917 sed -n \
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 ;; #(
1921 *)
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923 ;;
1924 esac |
1925 sort
1926)
1927 echo
1928
1929 cat <<\_ASBOX
1930## ----------------- ##
1931## Output variables. ##
1932## ----------------- ##
1933_ASBOX
1934 echo
1935 for ac_var in $ac_subst_vars
1936 do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 $as_echo "$ac_var='\''$ac_val'\''"
1942 done | sort
1943 echo
1944
1945 if test -n "$ac_subst_files"; then
1946 cat <<\_ASBOX
1947## ------------------- ##
1948## File substitutions. ##
1949## ------------------- ##
1950_ASBOX
1951 echo
1952 for ac_var in $ac_subst_files
1953 do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
1959 done | sort
1960 echo
1961 fi
1962
1963 if test -s confdefs.h; then
1964 cat <<\_ASBOX
1965## ----------- ##
1966## confdefs.h. ##
1967## ----------- ##
1968_ASBOX
1969 echo
1970 cat confdefs.h
1971 echo
1972 fi
1973 test "$ac_signal" != 0 &&
1974 $as_echo "$as_me: caught signal $ac_signal"
1975 $as_echo "$as_me: exit $exit_status"
1976 } >&5
1977 rm -f core *.core core.conftest.* &&
1978 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1979 exit $exit_status
1980' 0
1981for ac_signal in 1 2 13 15; do
1982 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1983done
1984ac_signal=0
1985
1986# confdefs.h avoids OS command line length limits that DEFS can exceed.
1987rm -f -r conftest* confdefs.h
1988
1989# Predefined preprocessor variables.
1990
1991cat >>confdefs.h <<_ACEOF
1992#define PACKAGE_NAME "$PACKAGE_NAME"
1993_ACEOF
1994
1995
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1998_ACEOF
1999
2000
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_VERSION "$PACKAGE_VERSION"
2003_ACEOF
2004
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_STRING "$PACKAGE_STRING"
2008_ACEOF
2009
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2013_ACEOF
2014
2015
2016# Let the site file select an alternate cache file if it wants to.
2017# Prefer an explicitly selected file to automatically selected ones.
2018ac_site_file1=NONE
2019ac_site_file2=NONE
2020if test -n "$CONFIG_SITE"; then
2021 ac_site_file1=$CONFIG_SITE
2022elif test "x$prefix" != xNONE; then
2023 ac_site_file1=$prefix/share/config.site
2024 ac_site_file2=$prefix/etc/config.site
2025else
2026 ac_site_file1=$ac_default_prefix/share/config.site
2027 ac_site_file2=$ac_default_prefix/etc/config.site
2028fi
2029for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2030do
2031 test "x$ac_site_file" = xNONE && continue
2032 if test -r "$ac_site_file"; then
2033 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2034$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2035 sed 's/^/| /' "$ac_site_file" >&5
2036 . "$ac_site_file"
2037 fi
2038done
2039
2040if test -r "$cache_file"; then
2041 # Some versions of bash will fail to source /dev/null (special
2042 # files actually), so we avoid doing that.
2043 if test -f "$cache_file"; then
2044 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2045$as_echo "$as_me: loading cache $cache_file" >&6;}
2046 case $cache_file in
2047 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2048 *) . "./$cache_file";;
2049 esac
2050 fi
2051else
2052 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2053$as_echo "$as_me: creating cache $cache_file" >&6;}
2054 >$cache_file
2055fi
2056
2057gt_needs="$gt_needs "
2058# Check that the precious variables saved in the cache have kept the same
2059# value.
2060ac_cache_corrupted=false
2061for ac_var in $ac_precious_vars; do
2062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2063 eval ac_new_set=\$ac_env_${ac_var}_set
2064 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2065 eval ac_new_val=\$ac_env_${ac_var}_value
2066 case $ac_old_set,$ac_new_set in
2067 set,)
2068 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2069$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2070 ac_cache_corrupted=: ;;
2071 ,set)
2072 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2073$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2075 ,);;
2076 *)
2077 if test "x$ac_old_val" != "x$ac_new_val"; then
2078 # differences in whitespace do not lead to failure.
2079 ac_old_val_w=`echo x $ac_old_val`
2080 ac_new_val_w=`echo x $ac_new_val`
2081 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2082 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2083$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2084 ac_cache_corrupted=:
2085 else
2086 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2087$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2088 eval $ac_var=\$ac_old_val
2089 fi
2090 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2091$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2092 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2093$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2094 fi;;
2095 esac
2096 # Pass precious variables to config.status.
2097 if test "$ac_new_set" = set; then
2098 case $ac_new_val in
2099 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 *) ac_arg=$ac_var=$ac_new_val ;;
2101 esac
2102 case " $ac_configure_args " in
2103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2104 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2105 esac
2106 fi
2107done
2108if $ac_cache_corrupted; then
2109 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2112$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2113 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2114$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2115 { (exit 1); exit 1; }; }
2116fi
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142ac_ext=c
2143ac_cpp='$CPP $CPPFLAGS'
2144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
2148
2149
2150ac_aux_dir=
2151for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2152 if test -f "$ac_dir/install-sh"; then
2153 ac_aux_dir=$ac_dir
2154 ac_install_sh="$ac_aux_dir/install-sh -c"
2155 break
2156 elif test -f "$ac_dir/install.sh"; then
2157 ac_aux_dir=$ac_dir
2158 ac_install_sh="$ac_aux_dir/install.sh -c"
2159 break
2160 elif test -f "$ac_dir/shtool"; then
2161 ac_aux_dir=$ac_dir
2162 ac_install_sh="$ac_aux_dir/shtool install -c"
2163 break
2164 fi
2165done
2166if test -z "$ac_aux_dir"; then
2167 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2168$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2169 { (exit 1); exit 1; }; }
2170fi
2171
2172# These three variables are undocumented and unsupported,
2173# and are intended to be withdrawn in a future Autoconf release.
2174# They can cause serious problems if a builder's source tree is in a directory
2175# whose full name contains unusual characters.
2176ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2177ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2178ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179
2180
2181# Make sure we can run config.sub.
2182$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2183 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2184$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2185 { (exit 1); exit 1; }; }
2186
2187{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2188$as_echo_n "checking build system type... " >&6; }
2189if test "${ac_cv_build+set}" = set; then
2190 $as_echo_n "(cached) " >&6
2191else
2192 ac_build_alias=$build_alias
2193test "x$ac_build_alias" = x &&
2194 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2195test "x$ac_build_alias" = x &&
2196 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2197$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2198 { (exit 1); exit 1; }; }
2199ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2200 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2201$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2202 { (exit 1); exit 1; }; }
2203
2204fi
2205{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2206$as_echo "$ac_cv_build" >&6; }
2207case $ac_cv_build in
2208*-*-*) ;;
2209*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2210$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2211 { (exit 1); exit 1; }; };;
2212esac
2213build=$ac_cv_build
2214ac_save_IFS=$IFS; IFS='-'
2215set x $ac_cv_build
2216shift
2217build_cpu=$1
2218build_vendor=$2
2219shift; shift
2220# Remember, the first character of IFS is used to create $*,
2221# except with old shells:
2222build_os=$*
2223IFS=$ac_save_IFS
2224case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2225
2226
2227{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2228$as_echo_n "checking host system type... " >&6; }
2229if test "${ac_cv_host+set}" = set; then
2230 $as_echo_n "(cached) " >&6
2231else
2232 if test "x$host_alias" = x; then
2233 ac_cv_host=$ac_cv_build
2234else
2235 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2236 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2237$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2238 { (exit 1); exit 1; }; }
2239fi
2240
2241fi
2242{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2243$as_echo "$ac_cv_host" >&6; }
2244case $ac_cv_host in
2245*-*-*) ;;
2246*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2247$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2248 { (exit 1); exit 1; }; };;
2249esac
2250host=$ac_cv_host
2251ac_save_IFS=$IFS; IFS='-'
2252set x $ac_cv_host
2253shift
2254host_cpu=$1
2255host_vendor=$2
2256shift; shift
2257# Remember, the first character of IFS is used to create $*,
2258# except with old shells:
2259host_os=$*
2260IFS=$ac_save_IFS
2261case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2262
2263
2264{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2265$as_echo_n "checking target system type... " >&6; }
2266if test "${ac_cv_target+set}" = set; then
2267 $as_echo_n "(cached) " >&6
2268else
2269 if test "x$target_alias" = x; then
2270 ac_cv_target=$ac_cv_host
2271else
2272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2273 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2274$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2275 { (exit 1); exit 1; }; }
2276fi
2277
2278fi
2279{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2280$as_echo "$ac_cv_target" >&6; }
2281case $ac_cv_target in
2282*-*-*) ;;
2283*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2284$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2285 { (exit 1); exit 1; }; };;
2286esac
2287target=$ac_cv_target
2288ac_save_IFS=$IFS; IFS='-'
2289set x $ac_cv_target
2290shift
2291target_cpu=$1
2292target_vendor=$2
2293shift; shift
2294# Remember, the first character of IFS is used to create $*,
2295# except with old shells:
2296target_os=$*
2297IFS=$ac_save_IFS
2298case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2299
2300
2301# The aliases save the names the user supplied, while $host etc.
2302# will get canonicalized.
2303test -n "$target_alias" &&
2304 test "$program_prefix$program_suffix$program_transform_name" = \
2305 NONENONEs,x,x, &&
2306 program_prefix=${target_alias}-
2307am__api_version='1.10'
2308
2309# Find a good install program. We prefer a C program (faster),
2310# so one script is as good as another. But avoid the broken or
2311# incompatible versions:
2312# SysV /etc/install, /usr/sbin/install
2313# SunOS /usr/etc/install
2314# IRIX /sbin/install
2315# AIX /bin/install
2316# AmigaOS /C/install, which installs bootblocks on floppy discs
2317# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2318# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2319# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2320# OS/2's system install, which has a completely different semantic
2321# ./install, which can be erroneously created by make from ./install.sh.
2322# Reject install programs that cannot install multiple files.
2323{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2324$as_echo_n "checking for a BSD-compatible install... " >&6; }
2325if test -z "$INSTALL"; then
2326if test "${ac_cv_path_install+set}" = set; then
2327 $as_echo_n "(cached) " >&6
2328else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 # Account for people who put trailing slashes in PATH elements.
2335case $as_dir/ in
2336 ./ | .// | /cC/* | \
2337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2338 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2339 /usr/ucb/* ) ;;
2340 *)
2341 # OSF1 and SCO ODT 3.0 have their own names for install.
2342 # Don't use installbsd from OSF since it installs stuff as root
2343 # by default.
2344 for ac_prog in ginstall scoinst install; do
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2347 if test $ac_prog = install &&
2348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # AIX install. It has an incompatible calling convention.
2350 :
2351 elif test $ac_prog = install &&
2352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 # program-specific install script used by HP pwplus--don't use.
2354 :
2355 else
2356 rm -rf conftest.one conftest.two conftest.dir
2357 echo one > conftest.one
2358 echo two > conftest.two
2359 mkdir conftest.dir
2360 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2361 test -s conftest.one && test -s conftest.two &&
2362 test -s conftest.dir/conftest.one &&
2363 test -s conftest.dir/conftest.two
2364 then
2365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2366 break 3
2367 fi
2368 fi
2369 fi
2370 done
2371 done
2372 ;;
2373esac
2374
2375done
2376IFS=$as_save_IFS
2377
2378rm -rf conftest.one conftest.two conftest.dir
2379
2380fi
2381 if test "${ac_cv_path_install+set}" = set; then
2382 INSTALL=$ac_cv_path_install
2383 else
2384 # As a last resort, use the slow shell script. Don't cache a
2385 # value for INSTALL within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the value is a relative name.
2388 INSTALL=$ac_install_sh
2389 fi
2390fi
2391{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2392$as_echo "$INSTALL" >&6; }
2393
2394# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395# It thinks the first close brace ends the variable substitution.
2396test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2397
2398test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2399
2400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2401
2402{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2403$as_echo_n "checking whether build environment is sane... " >&6; }
2404# Just in case
2405sleep 1
2406echo timestamp > conftest.file
2407# Do `set' in a subshell so we don't clobber the current shell's
2408# arguments. Must try -L first in case configure is actually a
2409# symlink; some systems play weird games with the mod time of symlinks
2410# (eg FreeBSD returns the mod time of the symlink's containing
2411# directory).
2412if (
2413 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2414 if test "$*" = "X"; then
2415 # -L didn't work.
2416 set X `ls -t $srcdir/configure conftest.file`
2417 fi
2418 rm -f conftest.file
2419 if test "$*" != "X $srcdir/configure conftest.file" \
2420 && test "$*" != "X conftest.file $srcdir/configure"; then
2421
2422 # If neither matched, then we have a broken ls. This can happen
2423 # if, for instance, CONFIG_SHELL is bash and it inherits a
2424 # broken ls alias from the environment. This has actually
2425 # happened. Such a system could not be considered "sane".
2426 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2427alias in your environment" >&5
2428$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2429alias in your environment" >&2;}
2430 { (exit 1); exit 1; }; }
2431 fi
2432
2433 test "$2" = conftest.file
2434 )
2435then
2436 # Ok.
2437 :
2438else
2439 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2440Check your system clock" >&5
2441$as_echo "$as_me: error: newly created file is older than distributed files!
2442Check your system clock" >&2;}
2443 { (exit 1); exit 1; }; }
2444fi
2445{ $as_echo "$as_me:$LINENO: result: yes" >&5
2446$as_echo "yes" >&6; }
2447test "$program_prefix" != NONE &&
2448 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449# Use a double $ so make ignores it.
2450test "$program_suffix" != NONE &&
2451 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452# Double any \ or $.
2453# By default was `s,x,x', remove it if useless.
2454ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2455program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2456
2457# expand $ac_aux_dir to an absolute path
2458am_aux_dir=`cd $ac_aux_dir && pwd`
2459
2460test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2461# Use eval to expand $SHELL
2462if eval "$MISSING --run true"; then
2463 am_missing_run="$MISSING --run "
2464else
2465 am_missing_run=
2466 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2467$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2468fi
2469
2470{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2471$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472if test -z "$MKDIR_P"; then
2473 if test "${ac_cv_path_mkdir+set}" = set; then
2474 $as_echo_n "(cached) " >&6
2475else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_prog in mkdir gmkdir; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485 'mkdir (GNU coreutils) '* | \
2486 'mkdir (coreutils) '* | \
2487 'mkdir (fileutils) '4.1*)
2488 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489 break 3;;
2490 esac
2491 done
2492 done
2493done
2494IFS=$as_save_IFS
2495
2496fi
2497
2498 if test "${ac_cv_path_mkdir+set}" = set; then
2499 MKDIR_P="$ac_cv_path_mkdir -p"
2500 else
2501 # As a last resort, use the slow shell script. Don't cache a
2502 # value for MKDIR_P within a source directory, because that will
2503 # break other packages using the cache if that directory is
2504 # removed, or if the value is a relative name.
2505 test -d ./--version && rmdir ./--version
2506 MKDIR_P="$ac_install_sh -d"
2507 fi
2508fi
2509{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2510$as_echo "$MKDIR_P" >&6; }
2511
2512mkdir_p="$MKDIR_P"
2513case $mkdir_p in
2514 [\\/$]* | ?:[\\/]*) ;;
2515 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516esac
2517
2518for ac_prog in gawk mawk nawk awk
2519do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521set dummy $ac_prog; ac_word=$2
2522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523$as_echo_n "checking for $ac_word... " >&6; }
2524if test "${ac_cv_prog_AWK+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526else
2527 if test -n "$AWK"; then
2528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_AWK="$ac_prog"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547AWK=$ac_cv_prog_AWK
2548if test -n "$AWK"; then
2549 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2550$as_echo "$AWK" >&6; }
2551else
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553$as_echo "no" >&6; }
2554fi
2555
2556
2557 test -n "$AWK" && break
2558done
2559
2560{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562set x ${MAKE-make}
2563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2565 $as_echo_n "(cached) " >&6
2566else
2567 cat >conftest.make <<\_ACEOF
2568SHELL = /bin/sh
2569all:
2570 @echo '@@@%%%=$(MAKE)=@@@%%%'
2571_ACEOF
2572# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2573case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574 *@@@%%%=?*=@@@%%%*)
2575 eval ac_cv_prog_make_${ac_make}_set=yes;;
2576 *)
2577 eval ac_cv_prog_make_${ac_make}_set=no;;
2578esac
2579rm -f conftest.make
2580fi
2581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582 { $as_echo "$as_me:$LINENO: result: yes" >&5
2583$as_echo "yes" >&6; }
2584 SET_MAKE=
2585else
2586 { $as_echo "$as_me:$LINENO: result: no" >&5
2587$as_echo "no" >&6; }
2588 SET_MAKE="MAKE=${MAKE-make}"
2589fi
2590
2591rm -rf .tst 2>/dev/null
2592mkdir .tst 2>/dev/null
2593if test -d .tst; then
2594 am__leading_dot=.
2595else
2596 am__leading_dot=_
2597fi
2598rmdir .tst 2>/dev/null
2599
2600if test "`cd $srcdir && pwd`" != "`pwd`"; then
2601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602 # is not polluted with repeated "-I."
2603 am__isrc=' -I$(srcdir)'
2604 # test to see if srcdir already configured
2605 if test -f $srcdir/config.status; then
2606 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608 { (exit 1); exit 1; }; }
2609 fi
2610fi
2611
2612# test whether we have cygpath
2613if test -z "$CYGPATH_W"; then
2614 if (cygpath --version) >/dev/null 2>/dev/null; then
2615 CYGPATH_W='cygpath -w'
2616 else
2617 CYGPATH_W=echo
2618 fi
2619fi
2620
2621
2622# Define the identity of the package.
2623 PACKAGE=pcsx
2624 VERSION=1.9
2625
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE "$PACKAGE"
2629_ACEOF
2630
2631
2632cat >>confdefs.h <<_ACEOF
2633#define VERSION "$VERSION"
2634_ACEOF
2635
2636# Some tools Automake needs.
2637
2638ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2639
2640
2641AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2642
2643
2644AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2645
2646
2647AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2648
2649
2650MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2651
2652install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2653
2654# Installed binaries are usually stripped using `strip' when the user
2655# run `make install-strip'. However `strip' might not be the right
2656# tool to use in cross-compilation environments, therefore Automake
2657# will honor the `STRIP' environment variable to overrule this program.
2658if test "$cross_compiling" != no; then
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2661set dummy ${ac_tool_prefix}strip; ac_word=$2
2662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if test "${ac_cv_prog_STRIP+set}" = set; then
2665 $as_echo_n "(cached) " >&6
2666else
2667 if test -n "$STRIP"; then
2668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681done
2682done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687STRIP=$ac_cv_prog_STRIP
2688if test -n "$STRIP"; then
2689 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2690$as_echo "$STRIP" >&6; }
2691else
2692 { $as_echo "$as_me:$LINENO: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697fi
2698if test -z "$ac_cv_prog_STRIP"; then
2699 ac_ct_STRIP=$STRIP
2700 # Extract the first word of "strip", so it can be a program name with args.
2701set dummy strip; ac_word=$2
2702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$ac_ct_STRIP"; then
2708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_STRIP="strip"
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2728if test -n "$ac_ct_STRIP"; then
2729 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2730$as_echo "$ac_ct_STRIP" >&6; }
2731else
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736 if test "x$ac_ct_STRIP" = x; then
2737 STRIP=":"
2738 else
2739 case $cross_compiling:$ac_tool_warned in
2740yes:)
2741{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743ac_tool_warned=yes ;;
2744esac
2745 STRIP=$ac_ct_STRIP
2746 fi
2747else
2748 STRIP="$ac_cv_prog_STRIP"
2749fi
2750
2751fi
2752INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2753
2754# We need awk for the "check" target. The system "awk" is bad on
2755# some platforms.
2756# Always define AMTAR for backward compatibility.
2757
2758AMTAR=${AMTAR-"${am_missing_run}tar"}
2759
2760am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2761
2762
2763
2764
2765
2766{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2767$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2768 # Check whether --enable-maintainer-mode was given.
2769if test "${enable_maintainer_mode+set}" = set; then
2770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2771else
2772 USE_MAINTAINER_MODE=no
2773fi
2774
2775 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2776$as_echo "$USE_MAINTAINER_MODE" >&6; }
2777 if test $USE_MAINTAINER_MODE = yes; then
2778 MAINTAINER_MODE_TRUE=
2779 MAINTAINER_MODE_FALSE='#'
2780else
2781 MAINTAINER_MODE_TRUE='#'
2782 MAINTAINER_MODE_FALSE=
2783fi
2784
2785 MAINT=$MAINTAINER_MODE_TRUE
2786
2787
2788
2789ac_config_headers="$ac_config_headers include/config.h:include/config.h.in"
2790
2791
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}gcc; ac_word=$2
2800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if test "${ac_cv_prog_CC+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2804else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819done
2820done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835fi
2836if test -z "$ac_cv_prog_CC"; then
2837 ac_ct_CC=$CC
2838 # Extract the first word of "gcc", so it can be a program name with args.
2839set dummy gcc; ac_word=$2
2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 $as_echo_n "(cached) " >&6
2844else
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_ac_ct_CC="gcc"
2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866if test -n "$ac_ct_CC"; then
2867 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2868$as_echo "$ac_ct_CC" >&6; }
2869else
2870 { $as_echo "$as_me:$LINENO: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874 if test "x$ac_ct_CC" = x; then
2875 CC=""
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883 CC=$ac_ct_CC
2884 fi
2885else
2886 CC="$ac_cv_prog_CC"
2887fi
2888
2889if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}cc; ac_word=$2
2893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if test "${ac_cv_prog_CC+set}" = set; then
2896 $as_echo_n "(cached) " >&6
2897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="${ac_tool_prefix}cc"
2909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912done
2913done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923 { $as_echo "$as_me:$LINENO: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928 fi
2929fi
2930if test -z "$CC"; then
2931 # Extract the first word of "cc", so it can be a program name with args.
2932set dummy cc; ac_word=$2
2933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if test "${ac_cv_prog_CC+set}" = set; then
2936 $as_echo_n "(cached) " >&6
2937else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941 ac_prog_rejected=no
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2950 ac_prog_rejected=yes
2951 continue
2952 fi
2953 ac_cv_prog_CC="cc"
2954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957done
2958done
2959IFS=$as_save_IFS
2960
2961if test $ac_prog_rejected = yes; then
2962 # We found a bogon in the path, so make sure we never use it.
2963 set dummy $ac_cv_prog_CC
2964 shift
2965 if test $# != 0; then
2966 # We chose a different compiler from the bogus one.
2967 # However, it has the same basename, so the bogon will be chosen
2968 # first if we set CC to just the basename; use the full file name.
2969 shift
2970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971 fi
2972fi
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
2977 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2978$as_echo "$CC" >&6; }
2979else
2980 { $as_echo "$as_me:$LINENO: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984
2985fi
2986if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 for ac_prog in cl.exe
2989 do
2990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if test "${ac_cv_prog_CC+set}" = set; then
2995 $as_echo_n "(cached) " >&6
2996else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017CC=$ac_cv_prog_CC
3018if test -n "$CC"; then
3019 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3020$as_echo "$CC" >&6; }
3021else
3022 { $as_echo "$as_me:$LINENO: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027 test -n "$CC" && break
3028 done
3029fi
3030if test -z "$CC"; then
3031 ac_ct_CC=$CC
3032 for ac_prog in cl.exe
3033do
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035set dummy $ac_prog; ac_word=$2
3036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3039 $as_echo_n "(cached) " >&6
3040else
3041 if test -n "$ac_ct_CC"; then
3042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_CC="$ac_prog"
3052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055done
3056done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062if test -n "$ac_ct_CC"; then
3063 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3064$as_echo "$ac_ct_CC" >&6; }
3065else
3066 { $as_echo "$as_me:$LINENO: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071 test -n "$ac_ct_CC" && break
3072done
3073
3074 if test "x$ac_ct_CC" = x; then
3075 CC=""
3076 else
3077 case $cross_compiling:$ac_tool_warned in
3078yes:)
3079{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081ac_tool_warned=yes ;;
3082esac
3083 CC=$ac_ct_CC
3084 fi
3085fi
3086
3087fi
3088
3089
3090test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3093See \`config.log' for more details." >&5
3094$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3095See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }; }
3097
3098# Provide some information about the compiler.
3099$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3100set X $ac_compile
3101ac_compiler=$2
3102{ (ac_try="$ac_compiler --version >&5"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108$as_echo "$ac_try_echo") >&5
3109 (eval "$ac_compiler --version >&5") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }
3113{ (ac_try="$ac_compiler -v >&5"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3119$as_echo "$ac_try_echo") >&5
3120 (eval "$ac_compiler -v >&5") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124{ (ac_try="$ac_compiler -V >&5"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
3131 (eval "$ac_compiler -V >&5") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
3135
3136cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151ac_clean_files_save=$ac_clean_files
3152ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3153# Try to create an executable without -o first, disregard a.out.
3154# It will help us diagnose broken compilers, and finding out an intuition
3155# of exeext.
3156{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3157$as_echo_n "checking for C compiler default output file name... " >&6; }
3158ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3159
3160# The possible output files:
3161ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3162
3163ac_rmfiles=
3164for ac_file in $ac_files
3165do
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3169 esac
3170done
3171rm -f $ac_rmfiles
3172
3173if { (ac_try="$ac_link_default"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179$as_echo "$ac_try_echo") >&5
3180 (eval "$ac_link_default") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; then
3184 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3185# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3186# in a Makefile. We should not override ac_cv_exeext if it was cached,
3187# so that the user can short-circuit this test for compilers unknown to
3188# Autoconf.
3189for ac_file in $ac_files ''
3190do
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3194 ;;
3195 [ab].out )
3196 # We found the default executable, but exeext='' is most
3197 # certainly right.
3198 break;;
3199 *.* )
3200 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3201 then :; else
3202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 fi
3204 # We set ac_cv_exeext here because the later test for it is not
3205 # safe: cross compilers may not add the suffix if given an `-o'
3206 # argument, so we may need to know it at that point already.
3207 # Even if this section looks crufty: it has the advantage of
3208 # actually working.
3209 break;;
3210 * )
3211 break;;
3212 esac
3213done
3214test "$ac_cv_exeext" = no && ac_cv_exeext=
3215
3216else
3217 ac_file=''
3218fi
3219
3220{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3221$as_echo "$ac_file" >&6; }
3222if test -z "$ac_file"; then
3223 $as_echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3229See \`config.log' for more details." >&5
3230$as_echo "$as_me: error: C compiler cannot create executables
3231See \`config.log' for more details." >&2;}
3232 { (exit 77); exit 77; }; }; }
3233fi
3234
3235ac_exeext=$ac_cv_exeext
3236
3237# Check that the compiler produces executables we can run. If not, either
3238# the compiler is broken, or we cross compile.
3239{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3240$as_echo_n "checking whether the C compiler works... " >&6; }
3241# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3242# If not cross compiling, check that we can run a simple program.
3243if test "$cross_compiling" != yes; then
3244 if { ac_try='./$ac_file'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250$as_echo "$ac_try_echo") >&5
3251 (eval "$ac_try") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 cross_compiling=no
3256 else
3257 if test "$cross_compiling" = maybe; then
3258 cross_compiling=yes
3259 else
3260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3263If you meant to cross compile, use \`--host'.
3264See \`config.log' for more details." >&5
3265$as_echo "$as_me: error: cannot run C compiled programs.
3266If you meant to cross compile, use \`--host'.
3267See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }; }
3269 fi
3270 fi
3271fi
3272{ $as_echo "$as_me:$LINENO: result: yes" >&5
3273$as_echo "yes" >&6; }
3274
3275rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276ac_clean_files=$ac_clean_files_save
3277# Check that the compiler produces executables we can run. If not, either
3278# the compiler is broken, or we cross compile.
3279{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3280$as_echo_n "checking whether we are cross compiling... " >&6; }
3281{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3282$as_echo "$cross_compiling" >&6; }
3283
3284{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3285$as_echo_n "checking for suffix of executables... " >&6; }
3286if { (ac_try="$ac_link"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292$as_echo "$ac_try_echo") >&5
3293 (eval "$ac_link") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3299# work properly (i.e., refer to `conftest.exe'), while it won't with
3300# `rm'.
3301for ac_file in conftest.exe conftest conftest.*; do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 break;;
3307 * ) break;;
3308 esac
3309done
3310else
3311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3314See \`config.log' for more details." >&5
3315$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }; }
3318fi
3319
3320rm -f conftest$ac_cv_exeext
3321{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322$as_echo "$ac_cv_exeext" >&6; }
3323
3324rm -f conftest.$ac_ext
3325EXEEXT=$ac_cv_exeext
3326ac_exeext=$EXEEXT
3327{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328$as_echo_n "checking for suffix of object files... " >&6; }
3329if test "${ac_cv_objext+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3331else
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
3347rm -f conftest.o conftest.obj
3348if { (ac_try="$ac_compile"
3349case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3354$as_echo "$ac_try_echo") >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; then
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366done
3367else
3368 $as_echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3374See \`config.log' for more details." >&5
3375$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3376See \`config.log' for more details." >&2;}
3377 { (exit 1); exit 1; }; }; }
3378fi
3379
3380rm -f conftest.$ac_cv_objext conftest.$ac_ext
3381fi
3382{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3383$as_echo "$ac_cv_objext" >&6; }
3384OBJEXT=$ac_cv_objext
3385ac_objext=$OBJEXT
3386{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3387$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3388if test "${ac_cv_c_compiler_gnu+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3390else
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401#ifndef __GNUC__
3402 choke me
3403#endif
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (ac_try="$ac_compile"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416$as_echo "$ac_try_echo") >&5
3417 (eval "$ac_compile") 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } && {
3424 test -z "$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3426 } && test -s conftest.$ac_objext; then
3427 ac_compiler_gnu=yes
3428else
3429 $as_echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_compiler_gnu=no
3433fi
3434
3435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438fi
3439{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3440$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443else
3444 GCC=
3445fi
3446ac_test_CFLAGS=${CFLAGS+set}
3447ac_save_CFLAGS=$CFLAGS
3448{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3449$as_echo_n "checking whether $CC accepts -g... " >&6; }
3450if test "${ac_cv_prog_cc_g+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3452else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472rm -f conftest.$ac_objext
3473if { (ac_try="$ac_compile"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479$as_echo "$ac_try_echo") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv_prog_cc_g=yes
3491else
3492 $as_echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 CFLAGS=""
3496 cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502
3503int
3504main ()
3505{
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518$as_echo "$ac_try_echo") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 :
3530else
3531 $as_echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 CFLAGS="-g"
3536 cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
3552if { (ac_try="$ac_compile"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558$as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3569 ac_cv_prog_cc_g=yes
3570else
3571 $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574
3575fi
3576
3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578fi
3579
3580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3587$as_echo "$ac_cv_prog_cc_g" >&6; }
3588if test "$ac_test_CFLAGS" = set; then
3589 CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591 if test "$GCC" = yes; then
3592 CFLAGS="-g -O2"
3593 else
3594 CFLAGS="-g"
3595 fi
3596else
3597 if test "$GCC" = yes; then
3598 CFLAGS="-O2"
3599 else
3600 CFLAGS=
3601 fi
3602fi
3603{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605if test "${ac_cv_prog_cc_c89+set}" = set; then
3606 $as_echo_n "(cached) " >&6
3607else
3608 ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
3610cat >conftest.$ac_ext <<_ACEOF
3611/* confdefs.h. */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h. */
3616#include <stdarg.h>
3617#include <stdio.h>
3618#include <sys/types.h>
3619#include <sys/stat.h>
3620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621struct buf { int x; };
3622FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623static char *e (p, i)
3624 char **p;
3625 int i;
3626{
3627 return p[i];
3628}
3629static char *f (char * (*g) (char **, int), char **p, ...)
3630{
3631 char *s;
3632 va_list v;
3633 va_start (v,p);
3634 s = g (p, va_arg (v,int));
3635 va_end (v);
3636 return s;
3637}
3638
3639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640 function prototypes and stuff, but not '\xHH' hex character constants.
3641 These don't provoke an error unfortunately, instead are silently treated
3642 as 'x'. The following induces an error, until -std is added to get
3643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644 array size at least. It's necessary to write '\x00'==0 to get something
3645 that's true only with -std. */
3646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649 inside strings and character constants. */
3650#define FOO(x) 'x'
3651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653int test (int i, double x);
3654struct s1 {int (*f) (int a);};
3655struct s2 {int (*f) (double a);};
3656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657int argc;
3658char **argv;
3659int
3660main ()
3661{
3662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669do
3670 CC="$ac_save_CC $ac_arg"
3671 rm -f conftest.$ac_objext
3672if { (ac_try="$ac_compile"
3673case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676esac
3677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3678$as_echo "$ac_try_echo") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3680 ac_status=$?
3681 grep -v '^ *+' conftest.er1 >conftest.err
3682 rm -f conftest.er1
3683 cat conftest.err >&5
3684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3689 ac_cv_prog_cc_c89=$ac_arg
3690else
3691 $as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694
3695fi
3696
3697rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702
3703fi
3704# AC_CACHE_VAL
3705case "x$ac_cv_prog_cc_c89" in
3706 x)
3707 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3708$as_echo "none needed" >&6; } ;;
3709 xno)
3710 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3711$as_echo "unsupported" >&6; } ;;
3712 *)
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3715$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716esac
3717
3718
3719ac_ext=c
3720ac_cpp='$CPP $CPPFLAGS'
3721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724DEPDIR="${am__leading_dot}deps"
3725
3726ac_config_commands="$ac_config_commands depfiles"
3727
3728
3729am_make=${MAKE-make}
3730cat > confinc << 'END'
3731am__doit:
3732 @echo done
3733.PHONY: am__doit
3734END
3735# If we don't find an include directive, just comment out the code.
3736{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3737$as_echo_n "checking for style of include used by $am_make... " >&6; }
3738am__include="#"
3739am__quote=
3740_am_result=none
3741# First try GNU make style include.
3742echo "include confinc" > confmf
3743# We grep out `Entering directory' and `Leaving directory'
3744# messages which can occur if `w' ends up in MAKEFLAGS.
3745# In particular we don't look at `^make:' because GNU make might
3746# be invoked under some other name (usually "gmake"), in which
3747# case it prints its new name instead of `make'.
3748if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3749 am__include=include
3750 am__quote=
3751 _am_result=GNU
3752fi
3753# Now try BSD make style include.
3754if test "$am__include" = "#"; then
3755 echo '.include "confinc"' > confmf
3756 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3757 am__include=.include
3758 am__quote="\""
3759 _am_result=BSD
3760 fi
3761fi
3762
3763
3764{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3765$as_echo "$_am_result" >&6; }
3766rm -f confinc confmf
3767
3768# Check whether --enable-dependency-tracking was given.
3769if test "${enable_dependency_tracking+set}" = set; then
3770 enableval=$enable_dependency_tracking;
3771fi
3772
3773if test "x$enable_dependency_tracking" != xno; then
3774 am_depcomp="$ac_aux_dir/depcomp"
3775 AMDEPBACKSLASH='\'
3776fi
3777 if test "x$enable_dependency_tracking" != xno; then
3778 AMDEP_TRUE=
3779 AMDEP_FALSE='#'
3780else
3781 AMDEP_TRUE='#'
3782 AMDEP_FALSE=
3783fi
3784
3785
3786
3787depcc="$CC" am_compiler_list=
3788
3789{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3790$as_echo_n "checking dependency style of $depcc... " >&6; }
3791if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3792 $as_echo_n "(cached) " >&6
3793else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # in D'.
3800 mkdir conftest.dir
3801 # Copy depcomp to subdir because otherwise we won't find it if we're
3802 # using a relative directory.
3803 cp "$am_depcomp" conftest.dir
3804 cd conftest.dir
3805 # We will build objects and dependencies in a subdirectory because
3806 # it helps to detect inapplicable dependency modes. For instance
3807 # both Tru64's cc and ICC support -MD to output dependencies as a
3808 # side effect of compilation, but ICC will put the dependencies in
3809 # the current directory while Tru64 will put them in the object
3810 # directory.
3811 mkdir sub
3812
3813 am_cv_CC_dependencies_compiler_type=none
3814 if test "$am_compiler_list" = ""; then
3815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 fi
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3821 #
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3825 : > sub/conftest.c
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3831 done
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
3834 case $depmode in
3835 nosideeffect)
3836 # after this tag, mechanisms are not by side-effect, so they'll
3837 # only be used when explicitly requested
3838 if test "x$enable_dependency_tracking" = xyes; then
3839 continue
3840 else
3841 break
3842 fi
3843 ;;
3844 none) break ;;
3845 esac
3846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle `-M -o', and we need to detect this.
3849 if depmode=$depmode \
3850 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3853 >/dev/null 2>conftest.err &&
3854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858 # icc doesn't choke on unknown options, it will just issue warnings
3859 # or remarks (even with -Werror). So we grep stderr for any message
3860 # that says an option was ignored or not supported.
3861 # When given -MP, icc 7.0 and 7.1 complain thusly:
3862 # icc: Command line warning: ignoring option '-M'; no argument required
3863 # The diagnosis changed in icc 8.0:
3864 # icc: Command line remark: option '-MP' not supported
3865 if (grep 'ignoring option' conftest.err ||
3866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867 am_cv_CC_dependencies_compiler_type=$depmode
3868 break
3869 fi
3870 fi
3871 done
3872
3873 cd ..
3874 rm -rf conftest.dir
3875else
3876 am_cv_CC_dependencies_compiler_type=none
3877fi
3878
3879fi
3880{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3882CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884 if
3885 test "x$enable_dependency_tracking" != xno \
3886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_TRUE=
3888 am__fastdepCC_FALSE='#'
3889else
3890 am__fastdepCC_TRUE='#'
3891 am__fastdepCC_FALSE=
3892fi
3893
3894
3895if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
3900if test "${ac_cv_prog_RANLIB+set}" = set; then
3901 $as_echo_n "(cached) " >&6
3902else
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917done
3918done
3919IFS=$as_save_IFS
3920
3921fi
3922fi
3923RANLIB=$ac_cv_prog_RANLIB
3924if test -n "$RANLIB"; then
3925 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3926$as_echo "$RANLIB" >&6; }
3927else
3928 { $as_echo "$as_me:$LINENO: result: no" >&5
3929$as_echo "no" >&6; }
3930fi
3931
3932
3933fi
3934if test -z "$ac_cv_prog_RANLIB"; then
3935 ac_ct_RANLIB=$RANLIB
3936 # Extract the first word of "ranlib", so it can be a program name with args.
3937set dummy ranlib; ac_word=$2
3938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3941 $as_echo_n "(cached) " >&6
3942else
3943 if test -n "$ac_ct_RANLIB"; then
3944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_ac_ct_RANLIB="ranlib"
3954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964if test -n "$ac_ct_RANLIB"; then
3965 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966$as_echo "$ac_ct_RANLIB" >&6; }
3967else
3968 { $as_echo "$as_me:$LINENO: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972 if test "x$ac_ct_RANLIB" = x; then
3973 RANLIB=":"
3974 else
3975 case $cross_compiling:$ac_tool_warned in
3976yes:)
3977{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3979ac_tool_warned=yes ;;
3980esac
3981 RANLIB=$ac_ct_RANLIB
3982 fi
3983else
3984 RANLIB="$ac_cv_prog_RANLIB"
3985fi
3986
3987# Check whether --enable-static was given.
3988if test "${enable_static+set}" = set; then
3989 enableval=$enable_static; p=${PACKAGE-default}
3990 case $enableval in
3991 yes) enable_static=yes ;;
3992 no) enable_static=no ;;
3993 *)
3994 enable_static=no
3995 # Look at the argument we got. We use all the common list separators.
3996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3997 for pkg in $enableval; do
3998 IFS="$lt_save_ifs"
3999 if test "X$pkg" = "X$p"; then
4000 enable_static=yes
4001 fi
4002 done
4003 IFS="$lt_save_ifs"
4004 ;;
4005 esac
4006else
4007 enable_static=no
4008fi
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018case `pwd` in
4019 *\ * | *\ *)
4020 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4021$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4022esac
4023
4024
4025
4026macro_version='2.2.6'
4027macro_revision='1.3012'
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041ltmain="$ac_aux_dir/ltmain.sh"
4042
4043{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4044$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4045if test "${ac_cv_path_SED+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4047else
4048 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4049 for ac_i in 1 2 3 4 5 6 7; do
4050 ac_script="$ac_script$as_nl$ac_script"
4051 done
4052 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4053 $as_unset ac_script || ac_script=
4054 if test -z "$SED"; then
4055 ac_path_SED_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in sed gsed; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4066# Check for GNU ac_path_SED and select it if it is found.
4067 # Check for GNU $ac_path_SED
4068case `"$ac_path_SED" --version 2>&1` in
4069*GNU*)
4070 ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
4080 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_SED_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_SED="$ac_path_SED"
4086 ac_path_SED_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;;
4092esac
4093
4094 $ac_path_SED_found && break 3
4095 done
4096 done
4097done
4098IFS=$as_save_IFS
4099 if test -z "$ac_cv_path_SED"; then
4100 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4101$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4102 { (exit 1); exit 1; }; }
4103 fi
4104else
4105 ac_cv_path_SED=$SED
4106fi
4107
4108fi
4109{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4110$as_echo "$ac_cv_path_SED" >&6; }
4111 SED="$ac_cv_path_SED"
4112 rm -f conftest.sed
4113
4114test -z "$SED" && SED=sed
4115Xsed="$SED -e 1s/^X//"
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4128$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129if test "${ac_cv_path_GREP+set}" = set; then
4130 $as_echo_n "(cached) " >&6
4131else
4132 if test -z "$GREP"; then
4133 ac_path_GREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in grep ggrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4144# Check for GNU ac_path_GREP and select it if it is found.
4145 # Check for GNU $ac_path_GREP
4146case `"$ac_path_GREP" --version 2>&1` in
4147*GNU*)
4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149*)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'GREP' >> "conftest.nl"
4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 ac_count=`expr $ac_count + 1`
4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_GREP="$ac_path_GREP"
4164 ac_path_GREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170esac
4171
4172 $ac_path_GREP_found && break 3
4173 done
4174 done
4175done
4176IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_GREP"; then
4178 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4179$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4180 { (exit 1); exit 1; }; }
4181 fi
4182else
4183 ac_cv_path_GREP=$GREP
4184fi
4185
4186fi
4187{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4188$as_echo "$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4190
4191
4192{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4193$as_echo_n "checking for egrep... " >&6; }
4194if test "${ac_cv_path_EGREP+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4196else
4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198 then ac_cv_path_EGREP="$GREP -E"
4199 else
4200 if test -z "$EGREP"; then
4201 ac_path_EGREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in egrep; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4212# Check for GNU ac_path_EGREP and select it if it is found.
4213 # Check for GNU $ac_path_EGREP
4214case `"$ac_path_EGREP" --version 2>&1` in
4215*GNU*)
4216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4217*)
4218 ac_count=0
4219 $as_echo_n 0123456789 >"conftest.in"
4220 while :
4221 do
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'EGREP' >> "conftest.nl"
4226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 ac_count=`expr $ac_count + 1`
4229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_EGREP="$ac_path_EGREP"
4232 ac_path_EGREP_max=$ac_count
4233 fi
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4236 done
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238esac
4239
4240 $ac_path_EGREP_found && break 3
4241 done
4242 done
4243done
4244IFS=$as_save_IFS
4245 if test -z "$ac_cv_path_EGREP"; then
4246 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4247$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4248 { (exit 1); exit 1; }; }
4249 fi
4250else
4251 ac_cv_path_EGREP=$EGREP
4252fi
4253
4254 fi
4255fi
4256{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4257$as_echo "$ac_cv_path_EGREP" >&6; }
4258 EGREP="$ac_cv_path_EGREP"
4259
4260
4261{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4262$as_echo_n "checking for fgrep... " >&6; }
4263if test "${ac_cv_path_FGREP+set}" = set; then
4264 $as_echo_n "(cached) " >&6
4265else
4266 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4267 then ac_cv_path_FGREP="$GREP -F"
4268 else
4269 if test -z "$FGREP"; then
4270 ac_path_FGREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in fgrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4280 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4281# Check for GNU ac_path_FGREP and select it if it is found.
4282 # Check for GNU $ac_path_FGREP
4283case `"$ac_path_FGREP" --version 2>&1` in
4284*GNU*)
4285 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4286*)
4287 ac_count=0
4288 $as_echo_n 0123456789 >"conftest.in"
4289 while :
4290 do
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 $as_echo 'FGREP' >> "conftest.nl"
4295 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 ac_count=`expr $ac_count + 1`
4298 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_FGREP="$ac_path_FGREP"
4301 ac_path_FGREP_max=$ac_count
4302 fi
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307esac
4308
4309 $ac_path_FGREP_found && break 3
4310 done
4311 done
4312done
4313IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_FGREP"; then
4315 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4316$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4317 { (exit 1); exit 1; }; }
4318 fi
4319else
4320 ac_cv_path_FGREP=$FGREP
4321fi
4322
4323 fi
4324fi
4325{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4326$as_echo "$ac_cv_path_FGREP" >&6; }
4327 FGREP="$ac_cv_path_FGREP"
4328
4329
4330test -z "$GREP" && GREP=grep
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350# Check whether --with-gnu-ld was given.
4351if test "${with_gnu_ld+set}" = set; then
4352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4353else
4354 with_gnu_ld=no
4355fi
4356
4357ac_prog=ld
4358if test "$GCC" = yes; then
4359 # Check if gcc -print-prog-name=ld gives a path.
4360 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4361$as_echo_n "checking for ld used by $CC... " >&6; }
4362 case $host in
4363 *-*-mingw*)
4364 # gcc leaves a trailing carriage return which upsets mingw
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4366 *)
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4368 esac
4369 case $ac_prog in
4370 # Accept absolute paths.
4371 [\\/]* | ?:[\\/]*)
4372 re_direlt='/[^/][^/]*/\.\./'
4373 # Canonicalize the pathname of ld
4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4377 done
4378 test -z "$LD" && LD="$ac_prog"
4379 ;;
4380 "")
4381 # If it fails, then pretend we aren't using GCC.
4382 ac_prog=ld
4383 ;;
4384 *)
4385 # If it is relative, then search for the first ld in PATH.
4386 with_gnu_ld=unknown
4387 ;;
4388 esac
4389elif test "$with_gnu_ld" = yes; then
4390 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4391$as_echo_n "checking for GNU ld... " >&6; }
4392else
4393 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4394$as_echo_n "checking for non-GNU ld... " >&6; }
4395fi
4396if test "${lt_cv_path_LD+set}" = set; then
4397 $as_echo_n "(cached) " >&6
4398else
4399 if test -z "$LD"; then
4400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4401 for ac_dir in $PATH; do
4402 IFS="$lt_save_ifs"
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4405 lt_cv_path_LD="$ac_dir/$ac_prog"
4406 # Check to see if the program is GNU ld. I'd rather use --version,
4407 # but apparently some variants of GNU ld only accept -v.
4408 # Break only if it was the GNU/non-GNU ld that we prefer.
4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 test "$with_gnu_ld" != no && break
4412 ;;
4413 *)
4414 test "$with_gnu_ld" != yes && break
4415 ;;
4416 esac
4417 fi
4418 done
4419 IFS="$lt_save_ifs"
4420else
4421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4422fi
4423fi
4424
4425LD="$lt_cv_path_LD"
4426if test -n "$LD"; then
4427 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4428$as_echo "$LD" >&6; }
4429else
4430 { $as_echo "$as_me:$LINENO: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4434$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4435 { (exit 1); exit 1; }; }
4436{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4437$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4438if test "${lt_cv_prog_gnu_ld+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4440else
4441 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4442case `$LD -v 2>&1 </dev/null` in
4443*GNU* | *'with BFD'*)
4444 lt_cv_prog_gnu_ld=yes
4445 ;;
4446*)
4447 lt_cv_prog_gnu_ld=no
4448 ;;
4449esac
4450fi
4451{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4452$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4453with_gnu_ld=$lt_cv_prog_gnu_ld
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4464$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4465if test "${lt_cv_path_NM+set}" = set; then
4466 $as_echo_n "(cached) " >&6
4467else
4468 if test -n "$NM"; then
4469 # Let the user override the test.
4470 lt_cv_path_NM="$NM"
4471else
4472 lt_nm_to_check="${ac_tool_prefix}nm"
4473 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4474 lt_nm_to_check="$lt_nm_to_check nm"
4475 fi
4476 for lt_tmp_nm in $lt_nm_to_check; do
4477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4478 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4479 IFS="$lt_save_ifs"
4480 test -z "$ac_dir" && ac_dir=.
4481 tmp_nm="$ac_dir/$lt_tmp_nm"
4482 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4483 # Check to see if the nm accepts a BSD-compat flag.
4484 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4485 # nm: unknown option "B" ignored
4486 # Tru64's nm complains that /dev/null is an invalid object file
4487 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4488 */dev/null* | *'Invalid file or object type'*)
4489 lt_cv_path_NM="$tmp_nm -B"
4490 break
4491 ;;
4492 *)
4493 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4494 */dev/null*)
4495 lt_cv_path_NM="$tmp_nm -p"
4496 break
4497 ;;
4498 *)
4499 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4500 continue # so that we can try to find one that supports BSD flags
4501 ;;
4502 esac
4503 ;;
4504 esac
4505 fi
4506 done
4507 IFS="$lt_save_ifs"
4508 done
4509 : ${lt_cv_path_NM=no}
4510fi
4511fi
4512{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4513$as_echo "$lt_cv_path_NM" >&6; }
4514if test "$lt_cv_path_NM" != "no"; then
4515 NM="$lt_cv_path_NM"
4516else
4517 # Didn't find any BSD compatible name lister, look for dumpbin.
4518 if test -n "$ac_tool_prefix"; then
4519 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4520 do
4521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4524$as_echo_n "checking for $ac_word... " >&6; }
4525if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4527else
4528 if test -n "$DUMPBIN"; then
4529 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542done
4543done
4544IFS=$as_save_IFS
4545
4546fi
4547fi
4548DUMPBIN=$ac_cv_prog_DUMPBIN
4549if test -n "$DUMPBIN"; then
4550 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4551$as_echo "$DUMPBIN" >&6; }
4552else
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554$as_echo "no" >&6; }
4555fi
4556
4557
4558 test -n "$DUMPBIN" && break
4559 done
4560fi
4561if test -z "$DUMPBIN"; then
4562 ac_ct_DUMPBIN=$DUMPBIN
4563 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4564do
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566set dummy $ac_prog; ac_word=$2
4567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
4569if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571else
4572 if test -n "$ac_ct_DUMPBIN"; then
4573 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
4588IFS=$as_save_IFS
4589
4590fi
4591fi
4592ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4593if test -n "$ac_ct_DUMPBIN"; then
4594 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4595$as_echo "$ac_ct_DUMPBIN" >&6; }
4596else
4597 { $as_echo "$as_me:$LINENO: result: no" >&5
4598$as_echo "no" >&6; }
4599fi
4600
4601
4602 test -n "$ac_ct_DUMPBIN" && break
4603done
4604
4605 if test "x$ac_ct_DUMPBIN" = x; then
4606 DUMPBIN=":"
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609yes:)
4610{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612ac_tool_warned=yes ;;
4613esac
4614 DUMPBIN=$ac_ct_DUMPBIN
4615 fi
4616fi
4617
4618
4619 if test "$DUMPBIN" != ":"; then
4620 NM="$DUMPBIN"
4621 fi
4622fi
4623test -z "$NM" && NM=nm
4624
4625
4626
4627
4628
4629
4630{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4631$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4632if test "${lt_cv_nm_interface+set}" = set; then
4633 $as_echo_n "(cached) " >&6
4634else
4635 lt_cv_nm_interface="BSD nm"
4636 echo "int some_variable = 0;" > conftest.$ac_ext
4637 (eval echo "\"\$as_me:4637: $ac_compile\"" >&5)
4638 (eval "$ac_compile" 2>conftest.err)
4639 cat conftest.err >&5
4640 (eval echo "\"\$as_me:4640: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4641 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4642 cat conftest.err >&5
4643 (eval echo "\"\$as_me:4643: output\"" >&5)
4644 cat conftest.out >&5
4645 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4646 lt_cv_nm_interface="MS dumpbin"
4647 fi
4648 rm -f conftest*
4649fi
4650{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4651$as_echo "$lt_cv_nm_interface" >&6; }
4652
4653{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4654$as_echo_n "checking whether ln -s works... " >&6; }
4655LN_S=$as_ln_s
4656if test "$LN_S" = "ln -s"; then
4657 { $as_echo "$as_me:$LINENO: result: yes" >&5
4658$as_echo "yes" >&6; }
4659else
4660 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4661$as_echo "no, using $LN_S" >&6; }
4662fi
4663
4664# find the maximum length of command line arguments
4665{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4666$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4667if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4669else
4670 i=0
4671 teststring="ABCD"
4672
4673 case $build_os in
4674 msdosdjgpp*)
4675 # On DJGPP, this test can blow up pretty badly due to problems in libc
4676 # (any single argument exceeding 2000 bytes causes a buffer overrun
4677 # during glob expansion). Even if it were fixed, the result of this
4678 # check would be larger than it should be.
4679 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4680 ;;
4681
4682 gnu*)
4683 # Under GNU Hurd, this test is not required because there is
4684 # no limit to the length of command line arguments.
4685 # Libtool will interpret -1 as no limit whatsoever
4686 lt_cv_sys_max_cmd_len=-1;
4687 ;;
4688
4689 cygwin* | mingw* | cegcc*)
4690 # On Win9x/ME, this test blows up -- it succeeds, but takes
4691 # about 5 minutes as the teststring grows exponentially.
4692 # Worse, since 9x/ME are not pre-emptively multitasking,
4693 # you end up with a "frozen" computer, even though with patience
4694 # the test eventually succeeds (with a max line length of 256k).
4695 # Instead, let's just punt: use the minimum linelength reported by
4696 # all of the supported platforms: 8192 (on NT/2K/XP).
4697 lt_cv_sys_max_cmd_len=8192;
4698 ;;
4699
4700 amigaos*)
4701 # On AmigaOS with pdksh, this test takes hours, literally.
4702 # So we just punt and use a minimum line length of 8192.
4703 lt_cv_sys_max_cmd_len=8192;
4704 ;;
4705
4706 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4707 # This has been around since 386BSD, at least. Likely further.
4708 if test -x /sbin/sysctl; then
4709 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4710 elif test -x /usr/sbin/sysctl; then
4711 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4712 else
4713 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4714 fi
4715 # And add a safety zone
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4718 ;;
4719
4720 interix*)
4721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4722 lt_cv_sys_max_cmd_len=196608
4723 ;;
4724
4725 osf*)
4726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4728 # nice to cause kernel panics so lets avoid the loop below.
4729 # First set a reasonable default.
4730 lt_cv_sys_max_cmd_len=16384
4731 #
4732 if test -x /sbin/sysconfig; then
4733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4734 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4735 esac
4736 fi
4737 ;;
4738 sco3.2v5*)
4739 lt_cv_sys_max_cmd_len=102400
4740 ;;
4741 sysv5* | sco5v6* | sysv4.2uw2*)
4742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4743 if test -n "$kargmax"; then
4744 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4745 else
4746 lt_cv_sys_max_cmd_len=32768
4747 fi
4748 ;;
4749 *)
4750 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4751 if test -n "$lt_cv_sys_max_cmd_len"; then
4752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4754 else
4755 # Make teststring a little bigger before we do anything with it.
4756 # a 1K string should be a reasonable start.
4757 for i in 1 2 3 4 5 6 7 8 ; do
4758 teststring=$teststring$teststring
4759 done
4760 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4761 # If test is not a shell built-in, we'll probably end up computing a
4762 # maximum length that is only half of the actual maximum length, but
4763 # we can't tell.
4764 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4765 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4766 test $i != 17 # 1/2 MB should be enough
4767 do
4768 i=`expr $i + 1`
4769 teststring=$teststring$teststring
4770 done
4771 # Only check the string length outside the loop.
4772 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4773 teststring=
4774 # Add a significant safety factor because C++ compilers can tack on
4775 # massive amounts of additional arguments before passing them to the
4776 # linker. It appears as though 1/2 is a usable value.
4777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4778 fi
4779 ;;
4780 esac
4781
4782fi
4783
4784if test -n $lt_cv_sys_max_cmd_len ; then
4785 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4786$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4787else
4788 { $as_echo "$as_me:$LINENO: result: none" >&5
4789$as_echo "none" >&6; }
4790fi
4791max_cmd_len=$lt_cv_sys_max_cmd_len
4792
4793
4794
4795
4796
4797
4798: ${CP="cp -f"}
4799: ${MV="mv -f"}
4800: ${RM="rm -f"}
4801
4802{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4803$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4804# Try some XSI features
4805xsi_shell=no
4806( _lt_dummy="a/b/c"
4807 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4808 = c,a/b,, \
4809 && eval 'test $(( 1 + 1 )) -eq 2 \
4810 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4811 && xsi_shell=yes
4812{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4813$as_echo "$xsi_shell" >&6; }
4814
4815
4816{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4817$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4818lt_shell_append=no
4819( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4820 >/dev/null 2>&1 \
4821 && lt_shell_append=yes
4822{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4823$as_echo "$lt_shell_append" >&6; }
4824
4825
4826if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4827 lt_unset=unset
4828else
4829 lt_unset=false
4830fi
4831
4832
4833
4834
4835
4836# test EBCDIC or ASCII
4837case `echo X|tr X '\101'` in
4838 A) # ASCII based system
4839 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4840 lt_SP2NL='tr \040 \012'
4841 lt_NL2SP='tr \015\012 \040\040'
4842 ;;
4843 *) # EBCDIC based system
4844 lt_SP2NL='tr \100 \n'
4845 lt_NL2SP='tr \r\n \100\100'
4846 ;;
4847esac
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4858$as_echo_n "checking for $LD option to reload object files... " >&6; }
4859if test "${lt_cv_ld_reload_flag+set}" = set; then
4860 $as_echo_n "(cached) " >&6
4861else
4862 lt_cv_ld_reload_flag='-r'
4863fi
4864{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4865$as_echo "$lt_cv_ld_reload_flag" >&6; }
4866reload_flag=$lt_cv_ld_reload_flag
4867case $reload_flag in
4868"" | " "*) ;;
4869*) reload_flag=" $reload_flag" ;;
4870esac
4871reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872case $host_os in
4873 darwin*)
4874 if test "$GCC" = yes; then
4875 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4876 else
4877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4878 fi
4879 ;;
4880esac
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890if test -n "$ac_tool_prefix"; then
4891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4892set dummy ${ac_tool_prefix}objdump; ac_word=$2
4893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4896 $as_echo_n "(cached) " >&6
4897else
4898 if test -n "$OBJDUMP"; then
4899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912done
4913done
4914IFS=$as_save_IFS
4915
4916fi
4917fi
4918OBJDUMP=$ac_cv_prog_OBJDUMP
4919if test -n "$OBJDUMP"; then
4920 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4921$as_echo "$OBJDUMP" >&6; }
4922else
4923 { $as_echo "$as_me:$LINENO: result: no" >&5
4924$as_echo "no" >&6; }
4925fi
4926
4927
4928fi
4929if test -z "$ac_cv_prog_OBJDUMP"; then
4930 ac_ct_OBJDUMP=$OBJDUMP
4931 # Extract the first word of "objdump", so it can be a program name with args.
4932set dummy objdump; ac_word=$2
4933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4936 $as_echo_n "(cached) " >&6
4937else
4938 if test -n "$ac_ct_OBJDUMP"; then
4939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4951 fi
4952done
4953done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4959if test -n "$ac_ct_OBJDUMP"; then
4960 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4961$as_echo "$ac_ct_OBJDUMP" >&6; }
4962else
4963 { $as_echo "$as_me:$LINENO: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967 if test "x$ac_ct_OBJDUMP" = x; then
4968 OBJDUMP="false"
4969 else
4970 case $cross_compiling:$ac_tool_warned in
4971yes:)
4972{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4974ac_tool_warned=yes ;;
4975esac
4976 OBJDUMP=$ac_ct_OBJDUMP
4977 fi
4978else
4979 OBJDUMP="$ac_cv_prog_OBJDUMP"
4980fi
4981
4982test -z "$OBJDUMP" && OBJDUMP=objdump
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4993$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4994if test "${lt_cv_deplibs_check_method+set}" = set; then
4995 $as_echo_n "(cached) " >&6
4996else
4997 lt_cv_file_magic_cmd='$MAGIC_CMD'
4998lt_cv_file_magic_test_file=
4999lt_cv_deplibs_check_method='unknown'
5000# Need to set the preceding variable on all platforms that support
5001# interlibrary dependencies.
5002# 'none' -- dependencies not supported.
5003# `unknown' -- same as none, but documents that we really don't know.
5004# 'pass_all' -- all dependencies passed with no checks.
5005# 'test_compile' -- check by making test program.
5006# 'file_magic [[regex]]' -- check by looking for files in library path
5007# which responds to the $file_magic_cmd with a given extended regex.
5008# If you have `file' or equivalent on your system and you're not sure
5009# whether `pass_all' will *always* work, you probably want this one.
5010
5011case $host_os in
5012aix[4-9]*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016beos*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020bsdi[45]*)
5021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5022 lt_cv_file_magic_cmd='/usr/bin/file -L'
5023 lt_cv_file_magic_test_file=/shlib/libc.so
5024 ;;
5025
5026cygwin*)
5027 # func_win32_libid is a shell function defined in ltmain.sh
5028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5029 lt_cv_file_magic_cmd='func_win32_libid'
5030 ;;
5031
5032mingw* | pw32*)
5033 # Base MSYS/MinGW do not provide the 'file' command needed by
5034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5035 # unless we find 'file', for example because we are cross-compiling.
5036 if ( file / ) >/dev/null 2>&1; then
5037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5038 lt_cv_file_magic_cmd='func_win32_libid'
5039 else
5040 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5041 lt_cv_file_magic_cmd='$OBJDUMP -f'
5042 fi
5043 ;;
5044
5045cegcc)
5046 # use the weaker test based on 'objdump'. See mingw*.
5047 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5048 lt_cv_file_magic_cmd='$OBJDUMP -f'
5049 ;;
5050
5051darwin* | rhapsody*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054
5055freebsd* | dragonfly*)
5056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5057 case $host_cpu in
5058 i*86 )
5059 # Not sure whether the presence of OpenBSD here was a mistake.
5060 # Let's accept both of them until this is cleared up.
5061 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5064 ;;
5065 esac
5066 else
5067 lt_cv_deplibs_check_method=pass_all
5068 fi
5069 ;;
5070
5071gnu*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
5075hpux10.20* | hpux11*)
5076 lt_cv_file_magic_cmd=/usr/bin/file
5077 case $host_cpu in
5078 ia64*)
5079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5081 ;;
5082 hppa*64*)
5083 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]'
5084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5085 ;;
5086 *)
5087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5089 ;;
5090 esac
5091 ;;
5092
5093interix[3-9]*)
5094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5096 ;;
5097
5098irix5* | irix6* | nonstopux*)
5099 case $LD in
5100 *-32|*"-32 ") libmagic=32-bit;;
5101 *-n32|*"-n32 ") libmagic=N32;;
5102 *-64|*"-64 ") libmagic=64-bit;;
5103 *) libmagic=never-match;;
5104 esac
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107
5108# This must be Linux ELF.
5109linux* | k*bsd*-gnu)
5110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112
5113netbsd* | netbsdelf*-gnu)
5114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 else
5117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5118 fi
5119 ;;
5120
5121newos6*)
5122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5123 lt_cv_file_magic_cmd=/usr/bin/file
5124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5125 ;;
5126
5127*nto* | *qnx*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131openbsd*)
5132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5134 else
5135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5136 fi
5137 ;;
5138
5139osf3* | osf4* | osf5*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143rdos*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147solaris*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
5155sysv4 | sysv4.3*)
5156 case $host_vendor in
5157 motorola)
5158 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]'
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5160 ;;
5161 ncr)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164 sequent)
5165 lt_cv_file_magic_cmd='/bin/file'
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5167 ;;
5168 sni)
5169 lt_cv_file_magic_cmd='/bin/file'
5170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5171 lt_cv_file_magic_test_file=/lib/libc.so
5172 ;;
5173 siemens)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
5176 pc)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179 esac
5180 ;;
5181
5182tpf*)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185esac
5186
5187fi
5188{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189$as_echo "$lt_cv_deplibs_check_method" >&6; }
5190file_magic_cmd=$lt_cv_file_magic_cmd
5191deplibs_check_method=$lt_cv_deplibs_check_method
5192test -z "$deplibs_check_method" && deplibs_check_method=unknown
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5207set dummy ${ac_tool_prefix}ar; ac_word=$2
5208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if test "${ac_cv_prog_AR+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5212else
5213 if test -n "$AR"; then
5214 ac_cv_prog_AR="$AR" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_AR="${ac_tool_prefix}ar"
5224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227done
5228done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233AR=$ac_cv_prog_AR
5234if test -n "$AR"; then
5235 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5236$as_echo "$AR" >&6; }
5237else
5238 { $as_echo "$as_me:$LINENO: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$ac_cv_prog_AR"; then
5245 ac_ct_AR=$AR
5246 # Extract the first word of "ar", so it can be a program name with args.
5247set dummy ar; ac_word=$2
5248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252else
5253 if test -n "$ac_ct_AR"; then
5254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_AR="ar"
5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_AR=$ac_cv_prog_ac_ct_AR
5274if test -n "$ac_ct_AR"; then
5275 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5276$as_echo "$ac_ct_AR" >&6; }
5277else
5278 { $as_echo "$as_me:$LINENO: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282 if test "x$ac_ct_AR" = x; then
5283 AR="false"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291 AR=$ac_ct_AR
5292 fi
5293else
5294 AR="$ac_cv_prog_AR"
5295fi
5296
5297test -z "$AR" && AR=ar
5298test -z "$AR_FLAGS" && AR_FLAGS=cru
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5312set dummy ${ac_tool_prefix}strip; ac_word=$2
5313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
5315if test "${ac_cv_prog_STRIP+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5317else
5318 if test -n "$STRIP"; then
5319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332done
5333done
5334IFS=$as_save_IFS
5335
5336fi
5337fi
5338STRIP=$ac_cv_prog_STRIP
5339if test -n "$STRIP"; then
5340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5341$as_echo "$STRIP" >&6; }
5342else
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348fi
5349if test -z "$ac_cv_prog_STRIP"; then
5350 ac_ct_STRIP=$STRIP
5351 # Extract the first word of "strip", so it can be a program name with args.
5352set dummy strip; ac_word=$2
5353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5356 $as_echo_n "(cached) " >&6
5357else
5358 if test -n "$ac_ct_STRIP"; then
5359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_STRIP="strip"
5369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5379if test -n "$ac_ct_STRIP"; then
5380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5381$as_echo "$ac_ct_STRIP" >&6; }
5382else
5383 { $as_echo "$as_me:$LINENO: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387 if test "x$ac_ct_STRIP" = x; then
5388 STRIP=":"
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391yes:)
5392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394ac_tool_warned=yes ;;
5395esac
5396 STRIP=$ac_ct_STRIP
5397 fi
5398else
5399 STRIP="$ac_cv_prog_STRIP"
5400fi
5401
5402test -z "$STRIP" && STRIP=:
5403
5404
5405
5406
5407
5408
5409if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if test "${ac_cv_prog_RANLIB+set}" = set; then
5415 $as_echo_n "(cached) " >&6
5416else
5417 if test -n "$RANLIB"; then
5418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437RANLIB=$ac_cv_prog_RANLIB
5438if test -n "$RANLIB"; then
5439 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5440$as_echo "$RANLIB" >&6; }
5441else
5442 { $as_echo "$as_me:$LINENO: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446
5447fi
5448if test -z "$ac_cv_prog_RANLIB"; then
5449 ac_ct_RANLIB=$RANLIB
5450 # Extract the first word of "ranlib", so it can be a program name with args.
5451set dummy ranlib; ac_word=$2
5452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
5454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5456else
5457 if test -n "$ac_ct_RANLIB"; then
5458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_ac_ct_RANLIB="ranlib"
5468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471done
5472done
5473IFS=$as_save_IFS
5474
5475fi
5476fi
5477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5478if test -n "$ac_ct_RANLIB"; then
5479 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5480$as_echo "$ac_ct_RANLIB" >&6; }
5481else
5482 { $as_echo "$as_me:$LINENO: result: no" >&5
5483$as_echo "no" >&6; }
5484fi
5485
5486 if test "x$ac_ct_RANLIB" = x; then
5487 RANLIB=":"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
5491{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495 RANLIB=$ac_ct_RANLIB
5496 fi
5497else
5498 RANLIB="$ac_cv_prog_RANLIB"
5499fi
5500
5501test -z "$RANLIB" && RANLIB=:
5502
5503
5504
5505
5506
5507
5508# Determine commands to create old-style static archives.
5509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5510old_postinstall_cmds='chmod 644 $oldlib'
5511old_postuninstall_cmds=
5512
5513if test -n "$RANLIB"; then
5514 case $host_os in
5515 openbsd*)
5516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5517 ;;
5518 *)
5519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5520 ;;
5521 esac
5522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5523fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558# If no C compiler was specified, use CC.
5559LTCC=${LTCC-"$CC"}
5560
5561# If no C compiler flags were specified, use CFLAGS.
5562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5563
5564# Allow CC to be a program name with arguments.
5565compiler=$CC
5566
5567
5568# Check for command to grab the raw symbol name followed by C symbol from nm.
5569{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5570$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5571if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5572 $as_echo_n "(cached) " >&6
5573else
5574
5575# These are sane defaults that work on at least a few old systems.
5576# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5577
5578# Character class describing NM global symbol codes.
5579symcode='[BCDEGRST]'
5580
5581# Regexp to match symbols that can be accessed directly from C.
5582sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5583
5584# Define system-specific variables.
5585case $host_os in
5586aix*)
5587 symcode='[BCDT]'
5588 ;;
5589cygwin* | mingw* | pw32* | cegcc*)
5590 symcode='[ABCDGISTW]'
5591 ;;
5592hpux*)
5593 if test "$host_cpu" = ia64; then
5594 symcode='[ABCDEGRST]'
5595 fi
5596 ;;
5597irix* | nonstopux*)
5598 symcode='[BCDEGRST]'
5599 ;;
5600osf*)
5601 symcode='[BCDEGQRST]'
5602 ;;
5603solaris*)
5604 symcode='[BDRT]'
5605 ;;
5606sco3.2v5*)
5607 symcode='[DT]'
5608 ;;
5609sysv4.2uw2*)
5610 symcode='[DT]'
5611 ;;
5612sysv5* | sco5v6* | unixware* | OpenUNIX*)
5613 symcode='[ABDT]'
5614 ;;
5615sysv4)
5616 symcode='[DFNSTU]'
5617 ;;
5618esac
5619
5620# If we're using GNU nm, then use its standard symbol codes.
5621case `$NM -V 2>&1` in
5622*GNU* | *'with BFD'*)
5623 symcode='[ABCDGIRSTW]' ;;
5624esac
5625
5626# Transform an extracted symbol line into a proper C declaration.
5627# Some systems (esp. on ia64) link data and code symbols differently,
5628# so use this general approach.
5629lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5630
5631# Transform an extracted symbol line into symbol name and symbol address
5632lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5633lt_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'"
5634
5635# Handle CRLF in mingw tool chain
5636opt_cr=
5637case $build_os in
5638mingw*)
5639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5640 ;;
5641esac
5642
5643# Try without a prefix underscore, then with it.
5644for ac_symprfx in "" "_"; do
5645
5646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647 symxfrm="\\1 $ac_symprfx\\2 \\2"
5648
5649 # Write the raw and C identifiers.
5650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5651 # Fake it for dumpbin and say T for any non-static function
5652 # and D for any global variable.
5653 # Also find C++ and __fastcall symbols from MSVC++,
5654 # which start with @ or ?.
5655 lt_cv_sys_global_symbol_pipe="$AWK '"\
5656" {last_section=section; section=\$ 3};"\
5657" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5658" \$ 0!~/External *\|/{next};"\
5659" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5660" {if(hide[section]) next};"\
5661" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5662" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5663" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5664" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5665" ' prfx=^$ac_symprfx"
5666 else
5667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5668 fi
5669
5670 # Check to see that the pipe works correctly.
5671 pipe_works=no
5672
5673 rm -f conftest*
5674 cat > conftest.$ac_ext <<_LT_EOF
5675#ifdef __cplusplus
5676extern "C" {
5677#endif
5678char nm_test_var;
5679void nm_test_func(void);
5680void nm_test_func(void){}
5681#ifdef __cplusplus
5682}
5683#endif
5684int main(){nm_test_var='a';nm_test_func();return(0);}
5685_LT_EOF
5686
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; then
5692 # Now try to grab the symbols.
5693 nlist=conftest.nm
5694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && test -s "$nlist"; then
5699 # Try sorting and uniquifying the output.
5700 if sort "$nlist" | uniq > "$nlist"T; then
5701 mv -f "$nlist"T "$nlist"
5702 else
5703 rm -f "$nlist"T
5704 fi
5705
5706 # Make sure that we snagged all the symbols we need.
5707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5709 cat <<_LT_EOF > conftest.$ac_ext
5710#ifdef __cplusplus
5711extern "C" {
5712#endif
5713
5714_LT_EOF
5715 # Now generate the symbol file.
5716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5717
5718 cat <<_LT_EOF >> conftest.$ac_ext
5719
5720/* The mapping between symbol names and symbols. */
5721const struct {
5722 const char *name;
5723 void *address;
5724}
5725lt__PROGRAM__LTX_preloaded_symbols[] =
5726{
5727 { "@PROGRAM@", (void *) 0 },
5728_LT_EOF
5729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730 cat <<\_LT_EOF >> conftest.$ac_ext
5731 {0, (void *) 0}
5732};
5733
5734/* This works around a problem in FreeBSD linker */
5735#ifdef FREEBSD_WORKAROUND
5736static const void *lt_preloaded_setup() {
5737 return lt__PROGRAM__LTX_preloaded_symbols;
5738}
5739#endif
5740
5741#ifdef __cplusplus
5742}
5743#endif
5744_LT_EOF
5745 # Now try linking the two files.
5746 mv conftest.$ac_objext conftstm.$ac_objext
5747 lt_save_LIBS="$LIBS"
5748 lt_save_CFLAGS="$CFLAGS"
5749 LIBS="conftstm.$ac_objext"
5750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752 (eval $ac_link) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5756 pipe_works=yes
5757 fi
5758 LIBS="$lt_save_LIBS"
5759 CFLAGS="$lt_save_CFLAGS"
5760 else
5761 echo "cannot find nm_test_func in $nlist" >&5
5762 fi
5763 else
5764 echo "cannot find nm_test_var in $nlist" >&5
5765 fi
5766 else
5767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5768 fi
5769 else
5770 echo "$progname: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 fi
5773 rm -rf conftest* conftst*
5774
5775 # Do not use the global_symbol_pipe unless it works.
5776 if test "$pipe_works" = yes; then
5777 break
5778 else
5779 lt_cv_sys_global_symbol_pipe=
5780 fi
5781done
5782
5783fi
5784
5785if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786 lt_cv_sys_global_symbol_to_cdecl=
5787fi
5788if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5789 { $as_echo "$as_me:$LINENO: result: failed" >&5
5790$as_echo "failed" >&6; }
5791else
5792 { $as_echo "$as_me:$LINENO: result: ok" >&5
5793$as_echo "ok" >&6; }
5794fi
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818# Check whether --enable-libtool-lock was given.
5819if test "${enable_libtool_lock+set}" = set; then
5820 enableval=$enable_libtool_lock;
5821fi
5822
5823test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5824
5825# Some flags need to be propagated to the compiler or linker for good
5826# libtool support.
5827case $host in
5828ia64-*-hpux*)
5829 # Find out which ABI we are using.
5830 echo 'int i;' > conftest.$ac_ext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>&5
5833 ac_status=$?
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; then
5836 case `/usr/bin/file conftest.$ac_objext` in
5837 *ELF-32*)
5838 HPUX_IA64_MODE="32"
5839 ;;
5840 *ELF-64*)
5841 HPUX_IA64_MODE="64"
5842 ;;
5843 esac
5844 fi
5845 rm -rf conftest*
5846 ;;
5847*-*-irix6*)
5848 # Find out which ABI we are using.
5849 echo '#line 5849 "configure"' > conftest.$ac_ext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851 (eval $ac_compile) 2>&5
5852 ac_status=$?
5853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then
5855 if test "$lt_cv_prog_gnu_ld" = yes; then
5856 case `/usr/bin/file conftest.$ac_objext` in
5857 *32-bit*)
5858 LD="${LD-ld} -melf32bsmip"
5859 ;;
5860 *N32*)
5861 LD="${LD-ld} -melf32bmipn32"
5862 ;;
5863 *64-bit*)
5864 LD="${LD-ld} -melf64bmip"
5865 ;;
5866 esac
5867 else
5868 case `/usr/bin/file conftest.$ac_objext` in
5869 *32-bit*)
5870 LD="${LD-ld} -32"
5871 ;;
5872 *N32*)
5873 LD="${LD-ld} -n32"
5874 ;;
5875 *64-bit*)
5876 LD="${LD-ld} -64"
5877 ;;
5878 esac
5879 fi
5880 fi
5881 rm -rf conftest*
5882 ;;
5883
5884x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5885s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5886 # Find out which ABI we are using.
5887 echo 'int i;' > conftest.$ac_ext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>&5
5890 ac_status=$?
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; then
5893 case `/usr/bin/file conftest.o` in
5894 *32-bit*)
5895 case $host in
5896 x86_64-*kfreebsd*-gnu)
5897 LD="${LD-ld} -m elf_i386_fbsd"
5898 ;;
5899 x86_64-*linux*)
5900 LD="${LD-ld} -m elf_i386"
5901 ;;
5902 ppc64-*linux*|powerpc64-*linux*)
5903 LD="${LD-ld} -m elf32ppclinux"
5904 ;;
5905 s390x-*linux*)
5906 LD="${LD-ld} -m elf_s390"
5907 ;;
5908 sparc64-*linux*)
5909 LD="${LD-ld} -m elf32_sparc"
5910 ;;
5911 esac
5912 ;;
5913 *64-bit*)
5914 case $host in
5915 x86_64-*kfreebsd*-gnu)
5916 LD="${LD-ld} -m elf_x86_64_fbsd"
5917 ;;
5918 x86_64-*linux*)
5919 LD="${LD-ld} -m elf_x86_64"
5920 ;;
5921 ppc*-*linux*|powerpc*-*linux*)
5922 LD="${LD-ld} -m elf64ppc"
5923 ;;
5924 s390*-*linux*|s390*-*tpf*)
5925 LD="${LD-ld} -m elf64_s390"
5926 ;;
5927 sparc*-*linux*)
5928 LD="${LD-ld} -m elf64_sparc"
5929 ;;
5930 esac
5931 ;;
5932 esac
5933 fi
5934 rm -rf conftest*
5935 ;;
5936
5937*-*-sco3.2v5*)
5938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5939 SAVE_CFLAGS="$CFLAGS"
5940 CFLAGS="$CFLAGS -belf"
5941 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5942$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5943if test "${lt_cv_cc_needs_belf+set}" = set; then
5944 $as_echo_n "(cached) " >&6
5945else
5946 ac_ext=c
5947ac_cpp='$CPP $CPPFLAGS'
5948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958
5959int
5960main ()
5961{
5962
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967rm -f conftest.$ac_objext conftest$ac_exeext
5968if { (ac_try="$ac_link"
5969case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974$as_echo "$ac_try_echo") >&5
5975 (eval "$ac_link") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest$ac_exeext && {
5985 test "$cross_compiling" = yes ||
5986 $as_test_x conftest$ac_exeext
5987 }; then
5988 lt_cv_cc_needs_belf=yes
5989else
5990 $as_echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 lt_cv_cc_needs_belf=no
5994fi
5995
5996rm -rf conftest.dSYM
5997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5998 conftest$ac_exeext conftest.$ac_ext
5999 ac_ext=c
6000ac_cpp='$CPP $CPPFLAGS'
6001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004
6005fi
6006{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6007$as_echo "$lt_cv_cc_needs_belf" >&6; }
6008 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6009 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6010 CFLAGS="$SAVE_CFLAGS"
6011 fi
6012 ;;
6013sparc*-*solaris*)
6014 # Find out which ABI we are using.
6015 echo 'int i;' > conftest.$ac_ext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017 (eval $ac_compile) 2>&5
6018 ac_status=$?
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; then
6021 case `/usr/bin/file conftest.o` in
6022 *64-bit*)
6023 case $lt_cv_prog_gnu_ld in
6024 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6025 *)
6026 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6027 LD="${LD-ld} -64"
6028 fi
6029 ;;
6030 esac
6031 ;;
6032 esac
6033 fi
6034 rm -rf conftest*
6035 ;;
6036esac
6037
6038need_locks="$enable_libtool_lock"
6039
6040
6041 case $host_os in
6042 rhapsody* | darwin*)
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6049 $as_echo_n "(cached) " >&6
6050else
6051 if test -n "$DSYMUTIL"; then
6052 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065done
6066done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071DSYMUTIL=$ac_cv_prog_DSYMUTIL
6072if test -n "$DSYMUTIL"; then
6073 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6074$as_echo "$DSYMUTIL" >&6; }
6075else
6076 { $as_echo "$as_me:$LINENO: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_DSYMUTIL"; then
6083 ac_ct_DSYMUTIL=$DSYMUTIL
6084 # Extract the first word of "dsymutil", so it can be a program name with args.
6085set dummy dsymutil; ac_word=$2
6086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6089 $as_echo_n "(cached) " >&6
6090else
6091 if test -n "$ac_ct_DSYMUTIL"; then
6092 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6112if test -n "$ac_ct_DSYMUTIL"; then
6113 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6114$as_echo "$ac_ct_DSYMUTIL" >&6; }
6115else
6116 { $as_echo "$as_me:$LINENO: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120 if test "x$ac_ct_DSYMUTIL" = x; then
6121 DSYMUTIL=":"
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129 DSYMUTIL=$ac_ct_DSYMUTIL
6130 fi
6131else
6132 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6133fi
6134
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if test "${ac_cv_prog_NMEDIT+set}" = set; then
6141 $as_echo_n "(cached) " >&6
6142else
6143 if test -n "$NMEDIT"; then
6144 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157done
6158done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163NMEDIT=$ac_cv_prog_NMEDIT
6164if test -n "$NMEDIT"; then
6165 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6166$as_echo "$NMEDIT" >&6; }
6167else
6168 { $as_echo "$as_me:$LINENO: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172
6173fi
6174if test -z "$ac_cv_prog_NMEDIT"; then
6175 ac_ct_NMEDIT=$NMEDIT
6176 # Extract the first word of "nmedit", so it can be a program name with args.
6177set dummy nmedit; ac_word=$2
6178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182else
6183 if test -n "$ac_ct_NMEDIT"; then
6184 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6204if test -n "$ac_ct_NMEDIT"; then
6205 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6206$as_echo "$ac_ct_NMEDIT" >&6; }
6207else
6208 { $as_echo "$as_me:$LINENO: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212 if test "x$ac_ct_NMEDIT" = x; then
6213 NMEDIT=":"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221 NMEDIT=$ac_ct_NMEDIT
6222 fi
6223else
6224 NMEDIT="$ac_cv_prog_NMEDIT"
6225fi
6226
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6229set dummy ${ac_tool_prefix}lipo; ac_word=$2
6230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if test "${ac_cv_prog_LIPO+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6234else
6235 if test -n "$LIPO"; then
6236 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255LIPO=$ac_cv_prog_LIPO
6256if test -n "$LIPO"; then
6257 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6258$as_echo "$LIPO" >&6; }
6259else
6260 { $as_echo "$as_me:$LINENO: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264
6265fi
6266if test -z "$ac_cv_prog_LIPO"; then
6267 ac_ct_LIPO=$LIPO
6268 # Extract the first word of "lipo", so it can be a program name with args.
6269set dummy lipo; ac_word=$2
6270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6273 $as_echo_n "(cached) " >&6
6274else
6275 if test -n "$ac_ct_LIPO"; then
6276 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_ac_ct_LIPO="lipo"
6286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6296if test -n "$ac_ct_LIPO"; then
6297 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6298$as_echo "$ac_ct_LIPO" >&6; }
6299else
6300 { $as_echo "$as_me:$LINENO: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304 if test "x$ac_ct_LIPO" = x; then
6305 LIPO=":"
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311ac_tool_warned=yes ;;
6312esac
6313 LIPO=$ac_ct_LIPO
6314 fi
6315else
6316 LIPO="$ac_cv_prog_LIPO"
6317fi
6318
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}otool; ac_word=$2
6322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if test "${ac_cv_prog_OTOOL+set}" = set; then
6325 $as_echo_n "(cached) " >&6
6326else
6327 if test -n "$OTOOL"; then
6328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341done
6342done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347OTOOL=$ac_cv_prog_OTOOL
6348if test -n "$OTOOL"; then
6349 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6350$as_echo "$OTOOL" >&6; }
6351else
6352 { $as_echo "$as_me:$LINENO: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356
6357fi
6358if test -z "$ac_cv_prog_OTOOL"; then
6359 ac_ct_OTOOL=$OTOOL
6360 # Extract the first word of "otool", so it can be a program name with args.
6361set dummy otool; ac_word=$2
6362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6365 $as_echo_n "(cached) " >&6
6366else
6367 if test -n "$ac_ct_OTOOL"; then
6368 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_ac_ct_OTOOL="otool"
6378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6388if test -n "$ac_ct_OTOOL"; then
6389 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6390$as_echo "$ac_ct_OTOOL" >&6; }
6391else
6392 { $as_echo "$as_me:$LINENO: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396 if test "x$ac_ct_OTOOL" = x; then
6397 OTOOL=":"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400yes:)
6401{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403ac_tool_warned=yes ;;
6404esac
6405 OTOOL=$ac_ct_OTOOL
6406 fi
6407else
6408 OTOOL="$ac_cv_prog_OTOOL"
6409fi
6410
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6413set dummy ${ac_tool_prefix}otool64; ac_word=$2
6414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if test "${ac_cv_prog_OTOOL64+set}" = set; then
6417 $as_echo_n "(cached) " >&6
6418else
6419 if test -n "$OTOOL64"; then
6420 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439OTOOL64=$ac_cv_prog_OTOOL64
6440if test -n "$OTOOL64"; then
6441 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6442$as_echo "$OTOOL64" >&6; }
6443else
6444 { $as_echo "$as_me:$LINENO: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448
6449fi
6450if test -z "$ac_cv_prog_OTOOL64"; then
6451 ac_ct_OTOOL64=$OTOOL64
6452 # Extract the first word of "otool64", so it can be a program name with args.
6453set dummy otool64; ac_word=$2
6454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6457 $as_echo_n "(cached) " >&6
6458else
6459 if test -n "$ac_ct_OTOOL64"; then
6460 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_ac_ct_OTOOL64="otool64"
6470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6480if test -n "$ac_ct_OTOOL64"; then
6481 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6482$as_echo "$ac_ct_OTOOL64" >&6; }
6483else
6484 { $as_echo "$as_me:$LINENO: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488 if test "x$ac_ct_OTOOL64" = x; then
6489 OTOOL64=":"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495ac_tool_warned=yes ;;
6496esac
6497 OTOOL64=$ac_ct_OTOOL64
6498 fi
6499else
6500 OTOOL64="$ac_cv_prog_OTOOL64"
6501fi
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6530$as_echo_n "checking for -single_module linker flag... " >&6; }
6531if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6533else
6534 lt_cv_apple_cc_single_mod=no
6535 if test -z "${LT_MULTI_MODULE}"; then
6536 # By default we will add the -single_module flag. You can override
6537 # by either setting the environment variable LT_MULTI_MODULE
6538 # non-empty at configure time, or by adding -multi_module to the
6539 # link flags.
6540 rm -rf libconftest.dylib*
6541 echo "int foo(void){return 1;}" > conftest.c
6542 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6543-dynamiclib -Wl,-single_module conftest.c" >&5
6544 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6545 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6546 _lt_result=$?
6547 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6548 lt_cv_apple_cc_single_mod=yes
6549 else
6550 cat conftest.err >&5
6551 fi
6552 rm -rf libconftest.dylib*
6553 rm -f conftest.*
6554 fi
6555fi
6556{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6557$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6558 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6559$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6560if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6562else
6563 lt_cv_ld_exported_symbols_list=no
6564 save_LDFLAGS=$LDFLAGS
6565 echo "_main" > conftest.sym
6566 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6567 cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h. */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h. */
6573
6574int
6575main ()
6576{
6577
6578 ;
6579 return 0;
6580}
6581_ACEOF
6582rm -f conftest.$ac_objext conftest$ac_exeext
6583if { (ac_try="$ac_link"
6584case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587esac
6588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6589$as_echo "$ac_try_echo") >&5
6590 (eval "$ac_link") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && {
6597 test -z "$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6599 } && test -s conftest$ac_exeext && {
6600 test "$cross_compiling" = yes ||
6601 $as_test_x conftest$ac_exeext
6602 }; then
6603 lt_cv_ld_exported_symbols_list=yes
6604else
6605 $as_echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 lt_cv_ld_exported_symbols_list=no
6609fi
6610
6611rm -rf conftest.dSYM
6612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6613 conftest$ac_exeext conftest.$ac_ext
6614 LDFLAGS="$save_LDFLAGS"
6615
6616fi
6617{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6618$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6619 case $host_os in
6620 rhapsody* | darwin1.[012])
6621 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6622 darwin1.*)
6623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6624 darwin*) # darwin 5.x on
6625 # if running on 10.5 or later, the deployment target defaults
6626 # to the OS version, if on x86, and 10.4, the deployment
6627 # target defaults to 10.4. Don't you love it?
6628 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6629 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6630 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6631 10.[012]*)
6632 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6633 10.*)
6634 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6635 esac
6636 ;;
6637 esac
6638 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6639 _lt_dar_single_mod='$single_module'
6640 fi
6641 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6642 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6643 else
6644 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6645 fi
6646 if test "$DSYMUTIL" != ":"; then
6647 _lt_dsymutil='~$DSYMUTIL $lib || :'
6648 else
6649 _lt_dsymutil=
6650 fi
6651 ;;
6652 esac
6653
6654ac_ext=c
6655ac_cpp='$CPP $CPPFLAGS'
6656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6660$as_echo_n "checking how to run the C preprocessor... " >&6; }
6661# On Suns, sometimes $CPP names a directory.
6662if test -n "$CPP" && test -d "$CPP"; then
6663 CPP=
6664fi
6665if test -z "$CPP"; then
6666 if test "${ac_cv_prog_CPP+set}" = set; then
6667 $as_echo_n "(cached) " >&6
6668else
6669 # Double quotes because CPP needs to be expanded
6670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6671 do
6672 ac_preproc_ok=false
6673for ac_c_preproc_warn_flag in '' yes
6674do
6675 # Use a header file that comes with gcc, so configuring glibc
6676 # with a fresh cross-compiler works.
6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 # <limits.h> exists even on freestanding compilers.
6679 # On the NeXT, cc -E runs the code through the compiler's parser,
6680 # not just through cpp. "Syntax error" is here to catch this case.
6681 cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h. */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h. */
6687#ifdef __STDC__
6688# include <limits.h>
6689#else
6690# include <assert.h>
6691#endif
6692 Syntax error
6693_ACEOF
6694if { (ac_try="$ac_cpp conftest.$ac_ext"
6695case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698esac
6699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6700$as_echo "$ac_try_echo") >&5
6701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } >/dev/null && {
6708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 }; then
6711 :
6712else
6713 $as_echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 # Broken: fails on valid input.
6717continue
6718fi
6719
6720rm -f conftest.err conftest.$ac_ext
6721
6722 # OK, works on sane cases. Now check whether nonexistent headers
6723 # can be detected and how.
6724 cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
6730#include <ac_nonexistent.h>
6731_ACEOF
6732if { (ac_try="$ac_cpp conftest.$ac_ext"
6733case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736esac
6737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738$as_echo "$ac_try_echo") >&5
6739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } >/dev/null && {
6746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 }; then
6749 # Broken: success on invalid input.
6750continue
6751else
6752 $as_echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 # Passes both tests.
6756ac_preproc_ok=:
6757break
6758fi
6759
6760rm -f conftest.err conftest.$ac_ext
6761
6762done
6763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6764rm -f conftest.err conftest.$ac_ext
6765if $ac_preproc_ok; then
6766 break
6767fi
6768
6769 done
6770 ac_cv_prog_CPP=$CPP
6771
6772fi
6773 CPP=$ac_cv_prog_CPP
6774else
6775 ac_cv_prog_CPP=$CPP
6776fi
6777{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6778$as_echo "$CPP" >&6; }
6779ac_preproc_ok=false
6780for ac_c_preproc_warn_flag in '' yes
6781do
6782 # Use a header file that comes with gcc, so configuring glibc
6783 # with a fresh cross-compiler works.
6784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6785 # <limits.h> exists even on freestanding compilers.
6786 # On the NeXT, cc -E runs the code through the compiler's parser,
6787 # not just through cpp. "Syntax error" is here to catch this case.
6788 cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
6794#ifdef __STDC__
6795# include <limits.h>
6796#else
6797# include <assert.h>
6798#endif
6799 Syntax error
6800_ACEOF
6801if { (ac_try="$ac_cpp conftest.$ac_ext"
6802case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
6806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807$as_echo "$ac_try_echo") >&5
6808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } >/dev/null && {
6815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 }; then
6818 :
6819else
6820 $as_echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823 # Broken: fails on valid input.
6824continue
6825fi
6826
6827rm -f conftest.err conftest.$ac_ext
6828
6829 # OK, works on sane cases. Now check whether nonexistent headers
6830 # can be detected and how.
6831 cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <ac_nonexistent.h>
6838_ACEOF
6839if { (ac_try="$ac_cpp conftest.$ac_ext"
6840case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843esac
6844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845$as_echo "$ac_try_echo") >&5
6846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } >/dev/null && {
6853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 }; then
6856 # Broken: success on invalid input.
6857continue
6858else
6859 $as_echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 # Passes both tests.
6863ac_preproc_ok=:
6864break
6865fi
6866
6867rm -f conftest.err conftest.$ac_ext
6868
6869done
6870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871rm -f conftest.err conftest.$ac_ext
6872if $ac_preproc_ok; then
6873 :
6874else
6875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6877{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6878See \`config.log' for more details." >&5
6879$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6880See \`config.log' for more details." >&2;}
6881 { (exit 1); exit 1; }; }; }
6882fi
6883
6884ac_ext=c
6885ac_cpp='$CPP $CPPFLAGS'
6886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889
6890
6891{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6892$as_echo_n "checking for ANSI C header files... " >&6; }
6893if test "${ac_cv_header_stdc+set}" = set; then
6894 $as_echo_n "(cached) " >&6
6895else
6896 cat >conftest.$ac_ext <<_ACEOF
6897/* confdefs.h. */
6898_ACEOF
6899cat confdefs.h >>conftest.$ac_ext
6900cat >>conftest.$ac_ext <<_ACEOF
6901/* end confdefs.h. */
6902#include <stdlib.h>
6903#include <stdarg.h>
6904#include <string.h>
6905#include <float.h>
6906
6907int
6908main ()
6909{
6910
6911 ;
6912 return 0;
6913}
6914_ACEOF
6915rm -f conftest.$ac_objext
6916if { (ac_try="$ac_compile"
6917case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920esac
6921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922$as_echo "$ac_try_echo") >&5
6923 (eval "$ac_compile") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest.$ac_objext; then
6933 ac_cv_header_stdc=yes
6934else
6935 $as_echo "$as_me: failed program was:" >&5
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_header_stdc=no
6939fi
6940
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942
6943if test $ac_cv_header_stdc = yes; then
6944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6945 cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h. */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */
6951#include <string.h>
6952
6953_ACEOF
6954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955 $EGREP "memchr" >/dev/null 2>&1; then
6956 :
6957else
6958 ac_cv_header_stdc=no
6959fi
6960rm -f conftest*
6961
6962fi
6963
6964if test $ac_cv_header_stdc = yes; then
6965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6966 cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
6972#include <stdlib.h>
6973
6974_ACEOF
6975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6976 $EGREP "free" >/dev/null 2>&1; then
6977 :
6978else
6979 ac_cv_header_stdc=no
6980fi
6981rm -f conftest*
6982
6983fi
6984
6985if test $ac_cv_header_stdc = yes; then
6986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6987 if test "$cross_compiling" = yes; then
6988 :
6989else
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <ctype.h>
6997#include <stdlib.h>
6998#if ((' ' & 0x0FF) == 0x020)
6999# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7000# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7001#else
7002# define ISLOWER(c) \
7003 (('a' <= (c) && (c) <= 'i') \
7004 || ('j' <= (c) && (c) <= 'r') \
7005 || ('s' <= (c) && (c) <= 'z'))
7006# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7007#endif
7008
7009#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7010int
7011main ()
7012{
7013 int i;
7014 for (i = 0; i < 256; i++)
7015 if (XOR (islower (i), ISLOWER (i))
7016 || toupper (i) != TOUPPER (i))
7017 return 2;
7018 return 0;
7019}
7020_ACEOF
7021rm -f conftest$ac_exeext
7022if { (ac_try="$ac_link"
7023case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026esac
7027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7028$as_echo "$ac_try_echo") >&5
7029 (eval "$ac_link") 2>&5
7030 ac_status=$?
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7033 { (case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
7037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038$as_echo "$ac_try_echo") >&5
7039 (eval "$ac_try") 2>&5
7040 ac_status=$?
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 :
7044else
7045 $as_echo "$as_me: program exited with status $ac_status" >&5
7046$as_echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049( exit $ac_status )
7050ac_cv_header_stdc=no
7051fi
7052rm -rf conftest.dSYM
7053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7054fi
7055
7056
7057fi
7058fi
7059{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7060$as_echo "$ac_cv_header_stdc" >&6; }
7061if test $ac_cv_header_stdc = yes; then
7062
7063cat >>confdefs.h <<\_ACEOF
7064#define STDC_HEADERS 1
7065_ACEOF
7066
7067fi
7068
7069# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7080 inttypes.h stdint.h unistd.h
7081do
7082as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7084$as_echo_n "checking for $ac_header... " >&6; }
7085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086 $as_echo_n "(cached) " >&6
7087else
7088 cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h. */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */
7094$ac_includes_default
7095
7096#include <$ac_header>
7097_ACEOF
7098rm -f conftest.$ac_objext
7099if { (ac_try="$ac_compile"
7100case "(($ac_try" in
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7103esac
7104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7105$as_echo "$ac_try_echo") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
7116 eval "$as_ac_Header=yes"
7117else
7118 $as_echo "$as_me: failed program was:" >&5
7119sed 's/^/| /' conftest.$ac_ext >&5
7120
7121 eval "$as_ac_Header=no"
7122fi
7123
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125fi
7126ac_res=`eval 'as_val=${'$as_ac_Header'}
7127 $as_echo "$as_val"'`
7128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7129$as_echo "$ac_res" >&6; }
7130as_val=`eval 'as_val=${'$as_ac_Header'}
7131 $as_echo "$as_val"'`
7132 if test "x$as_val" = x""yes; then
7133 cat >>confdefs.h <<_ACEOF
7134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135_ACEOF
7136
7137fi
7138
7139done
7140
7141
7142
7143for ac_header in dlfcn.h
7144do
7145as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7146{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7147$as_echo_n "checking for $ac_header... " >&6; }
7148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 $as_echo_n "(cached) " >&6
7150else
7151 cat >conftest.$ac_ext <<_ACEOF
7152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
7157$ac_includes_default
7158
7159#include <$ac_header>
7160_ACEOF
7161rm -f conftest.$ac_objext
7162if { (ac_try="$ac_compile"
7163case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166esac
7167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168$as_echo "$ac_try_echo") >&5
7169 (eval "$ac_compile") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && {
7176 test -z "$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 } && test -s conftest.$ac_objext; then
7179 eval "$as_ac_Header=yes"
7180else
7181 $as_echo "$as_me: failed program was:" >&5
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 eval "$as_ac_Header=no"
7185fi
7186
7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188fi
7189ac_res=`eval 'as_val=${'$as_ac_Header'}
7190 $as_echo "$as_val"'`
7191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7192$as_echo "$ac_res" >&6; }
7193as_val=`eval 'as_val=${'$as_ac_Header'}
7194 $as_echo "$as_val"'`
7195 if test "x$as_val" = x""yes; then
7196 cat >>confdefs.h <<_ACEOF
7197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7198_ACEOF
7199
7200fi
7201
7202done
7203
7204
7205
7206# Set options
7207
7208
7209
7210 enable_dlopen=no
7211
7212
7213 enable_win32_dll=no
7214
7215
7216 # Check whether --enable-shared was given.
7217if test "${enable_shared+set}" = set; then
7218 enableval=$enable_shared; p=${PACKAGE-default}
7219 case $enableval in
7220 yes) enable_shared=yes ;;
7221 no) enable_shared=no ;;
7222 *)
7223 enable_shared=no
7224 # Look at the argument we got. We use all the common list separators.
7225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7226 for pkg in $enableval; do
7227 IFS="$lt_save_ifs"
7228 if test "X$pkg" = "X$p"; then
7229 enable_shared=yes
7230 fi
7231 done
7232 IFS="$lt_save_ifs"
7233 ;;
7234 esac
7235else
7236 enable_shared=yes
7237fi
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249# Check whether --with-pic was given.
7250if test "${with_pic+set}" = set; then
7251 withval=$with_pic; pic_mode="$withval"
7252else
7253 pic_mode=default
7254fi
7255
7256
7257test -z "$pic_mode" && pic_mode=default
7258
7259
7260
7261
7262
7263
7264
7265 # Check whether --enable-fast-install was given.
7266if test "${enable_fast_install+set}" = set; then
7267 enableval=$enable_fast_install; p=${PACKAGE-default}
7268 case $enableval in
7269 yes) enable_fast_install=yes ;;
7270 no) enable_fast_install=no ;;
7271 *)
7272 enable_fast_install=no
7273 # Look at the argument we got. We use all the common list separators.
7274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7275 for pkg in $enableval; do
7276 IFS="$lt_save_ifs"
7277 if test "X$pkg" = "X$p"; then
7278 enable_fast_install=yes
7279 fi
7280 done
7281 IFS="$lt_save_ifs"
7282 ;;
7283 esac
7284else
7285 enable_fast_install=yes
7286fi
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298# This can be used to rebuild libtool when needed
7299LIBTOOL_DEPS="$ltmain"
7300
7301# Always use our own libtool.
7302LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328test -z "$LN_S" && LN_S="ln -s"
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343if test -n "${ZSH_VERSION+set}" ; then
7344 setopt NO_GLOB_SUBST
7345fi
7346
7347{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7348$as_echo_n "checking for objdir... " >&6; }
7349if test "${lt_cv_objdir+set}" = set; then
7350 $as_echo_n "(cached) " >&6
7351else
7352 rm -f .libs 2>/dev/null
7353mkdir .libs 2>/dev/null
7354if test -d .libs; then
7355 lt_cv_objdir=.libs
7356else
7357 # MS-DOS does not allow filenames that begin with a dot.
7358 lt_cv_objdir=_libs
7359fi
7360rmdir .libs 2>/dev/null
7361fi
7362{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7363$as_echo "$lt_cv_objdir" >&6; }
7364objdir=$lt_cv_objdir
7365
7366
7367
7368
7369
7370cat >>confdefs.h <<_ACEOF
7371#define LT_OBJDIR "$lt_cv_objdir/"
7372_ACEOF
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390case $host_os in
7391aix3*)
7392 # AIX sometimes has problems with the GCC collect2 program. For some
7393 # reason, if we set the COLLECT_NAMES environment variable, the problems
7394 # vanish in a puff of smoke.
7395 if test "X${COLLECT_NAMES+set}" != Xset; then
7396 COLLECT_NAMES=
7397 export COLLECT_NAMES
7398 fi
7399 ;;
7400esac
7401
7402# Sed substitution that helps us do robust quoting. It backslashifies
7403# metacharacters that are still active within double-quoted strings.
7404sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7405
7406# Same as above, but do not quote variable references.
7407double_quote_subst='s/\(["`\\]\)/\\\1/g'
7408
7409# Sed substitution to delay expansion of an escaped shell variable in a
7410# double_quote_subst'ed string.
7411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7412
7413# Sed substitution to delay expansion of an escaped single quote.
7414delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7415
7416# Sed substitution to avoid accidental globbing in evaled expressions
7417no_glob_subst='s/\*/\\\*/g'
7418
7419# Global variables:
7420ofile=libtool
7421can_build_shared=yes
7422
7423# All known linkers require a `.a' archive for static linking (except MSVC,
7424# which needs '.lib').
7425libext=a
7426
7427with_gnu_ld="$lt_cv_prog_gnu_ld"
7428
7429old_CC="$CC"
7430old_CFLAGS="$CFLAGS"
7431
7432# Set sane defaults for various variables
7433test -z "$CC" && CC=cc
7434test -z "$LTCC" && LTCC=$CC
7435test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7436test -z "$LD" && LD=ld
7437test -z "$ac_objext" && ac_objext=o
7438
7439for cc_temp in $compiler""; do
7440 case $cc_temp in
7441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443 \-*) ;;
7444 *) break;;
7445 esac
7446done
7447cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7448
7449
7450# Only perform the check for file, if the check method requires it
7451test -z "$MAGIC_CMD" && MAGIC_CMD=file
7452case $deplibs_check_method in
7453file_magic*)
7454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7455 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7456$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7457if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7458 $as_echo_n "(cached) " >&6
7459else
7460 case $MAGIC_CMD in
7461[\\/*] | ?:[\\/]*)
7462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7463 ;;
7464*)
7465 lt_save_MAGIC_CMD="$MAGIC_CMD"
7466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7468 for ac_dir in $ac_dummy; do
7469 IFS="$lt_save_ifs"
7470 test -z "$ac_dir" && ac_dir=.
7471 if test -f $ac_dir/${ac_tool_prefix}file; then
7472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7473 if test -n "$file_magic_test_file"; then
7474 case $deplibs_check_method in
7475 "file_magic "*)
7476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7479 $EGREP "$file_magic_regex" > /dev/null; then
7480 :
7481 else
7482 cat <<_LT_EOF 1>&2
7483
7484*** Warning: the command libtool uses to detect shared libraries,
7485*** $file_magic_cmd, produces output that libtool cannot recognize.
7486*** The result is that libtool may fail to recognize shared libraries
7487*** as such. This will affect the creation of libtool libraries that
7488*** depend on shared libraries, but programs linked with such libtool
7489*** libraries will work regardless of this problem. Nevertheless, you
7490*** may want to report the problem to your system manager and/or to
7491*** bug-libtool@gnu.org
7492
7493_LT_EOF
7494 fi ;;
7495 esac
7496 fi
7497 break
7498 fi
7499 done
7500 IFS="$lt_save_ifs"
7501 MAGIC_CMD="$lt_save_MAGIC_CMD"
7502 ;;
7503esac
7504fi
7505
7506MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507if test -n "$MAGIC_CMD"; then
7508 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7509$as_echo "$MAGIC_CMD" >&6; }
7510else
7511 { $as_echo "$as_me:$LINENO: result: no" >&5
7512$as_echo "no" >&6; }
7513fi
7514
7515
7516
7517
7518
7519if test -z "$lt_cv_path_MAGIC_CMD"; then
7520 if test -n "$ac_tool_prefix"; then
7521 { $as_echo "$as_me:$LINENO: checking for file" >&5
7522$as_echo_n "checking for file... " >&6; }
7523if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7524 $as_echo_n "(cached) " >&6
7525else
7526 case $MAGIC_CMD in
7527[\\/*] | ?:[\\/]*)
7528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7529 ;;
7530*)
7531 lt_save_MAGIC_CMD="$MAGIC_CMD"
7532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7534 for ac_dir in $ac_dummy; do
7535 IFS="$lt_save_ifs"
7536 test -z "$ac_dir" && ac_dir=.
7537 if test -f $ac_dir/file; then
7538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7539 if test -n "$file_magic_test_file"; then
7540 case $deplibs_check_method in
7541 "file_magic "*)
7542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7545 $EGREP "$file_magic_regex" > /dev/null; then
7546 :
7547 else
7548 cat <<_LT_EOF 1>&2
7549
7550*** Warning: the command libtool uses to detect shared libraries,
7551*** $file_magic_cmd, produces output that libtool cannot recognize.
7552*** The result is that libtool may fail to recognize shared libraries
7553*** as such. This will affect the creation of libtool libraries that
7554*** depend on shared libraries, but programs linked with such libtool
7555*** libraries will work regardless of this problem. Nevertheless, you
7556*** may want to report the problem to your system manager and/or to
7557*** bug-libtool@gnu.org
7558
7559_LT_EOF
7560 fi ;;
7561 esac
7562 fi
7563 break
7564 fi
7565 done
7566 IFS="$lt_save_ifs"
7567 MAGIC_CMD="$lt_save_MAGIC_CMD"
7568 ;;
7569esac
7570fi
7571
7572MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7573if test -n "$MAGIC_CMD"; then
7574 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7575$as_echo "$MAGIC_CMD" >&6; }
7576else
7577 { $as_echo "$as_me:$LINENO: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 else
7583 MAGIC_CMD=:
7584 fi
7585fi
7586
7587 fi
7588 ;;
7589esac
7590
7591# Use C for the default configuration in the libtool script
7592
7593lt_save_CC="$CC"
7594ac_ext=c
7595ac_cpp='$CPP $CPPFLAGS'
7596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600
7601# Source file extension for C test sources.
7602ac_ext=c
7603
7604# Object file extension for compiled C test sources.
7605objext=o
7606objext=$objext
7607
7608# Code to be used in simple compile tests
7609lt_simple_compile_test_code="int some_variable = 0;"
7610
7611# Code to be used in simple link tests
7612lt_simple_link_test_code='int main(){return(0);}'
7613
7614
7615
7616
7617
7618
7619
7620# If no C compiler was specified, use CC.
7621LTCC=${LTCC-"$CC"}
7622
7623# If no C compiler flags were specified, use CFLAGS.
7624LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7625
7626# Allow CC to be a program name with arguments.
7627compiler=$CC
7628
7629# Save the default compiler, since it gets overwritten when the other
7630# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7631compiler_DEFAULT=$CC
7632
7633# save warnings/boilerplate of simple test code
7634ac_outfile=conftest.$ac_objext
7635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637_lt_compiler_boilerplate=`cat conftest.err`
7638$RM conftest*
7639
7640ac_outfile=conftest.$ac_objext
7641echo "$lt_simple_link_test_code" >conftest.$ac_ext
7642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643_lt_linker_boilerplate=`cat conftest.err`
7644$RM -r conftest*
7645
7646
7647if test -n "$compiler"; then
7648
7649lt_prog_compiler_no_builtin_flag=
7650
7651if test "$GCC" = yes; then
7652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7653
7654 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7657 $as_echo_n "(cached) " >&6
7658else
7659 lt_cv_prog_compiler_rtti_exceptions=no
7660 ac_outfile=conftest.$ac_objext
7661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662 lt_compiler_flag="-fno-rtti -fno-exceptions"
7663 # Insert the option either (1) after the last *FLAGS variable, or
7664 # (2) before a word containing "conftest.", or (3) at the end.
7665 # Note that $ac_compile itself does not contain backslashes and begins
7666 # with a dollar sign (not a hyphen), so the echo should work correctly.
7667 # The option is referenced via a variable to avoid confusing sed.
7668 lt_compile=`echo "$ac_compile" | $SED \
7669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671 -e 's:$: $lt_compiler_flag:'`
7672 (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673 (eval "$lt_compile" 2>conftest.err)
7674 ac_status=$?
7675 cat conftest.err >&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 if (exit $ac_status) && test -s "$ac_outfile"; then
7678 # The compiler can only warn and ignore the option if not recognized
7679 # So say no if there are warnings other than the usual output.
7680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683 lt_cv_prog_compiler_rtti_exceptions=yes
7684 fi
7685 fi
7686 $RM conftest*
7687
7688fi
7689{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7691
7692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694else
7695 :
7696fi
7697
7698fi
7699
7700
7701
7702
7703
7704
7705 lt_prog_compiler_wl=
7706lt_prog_compiler_pic=
7707lt_prog_compiler_static=
7708
7709{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7710$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7711
7712 if test "$GCC" = yes; then
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_static='-static'
7715
7716 case $host_os in
7717 aix*)
7718 # All AIX code is PIC.
7719 if test "$host_cpu" = ia64; then
7720 # AIX 5 now supports IA64 processor
7721 lt_prog_compiler_static='-Bstatic'
7722 fi
7723 ;;
7724
7725 amigaos*)
7726 case $host_cpu in
7727 powerpc)
7728 # see comment about AmigaOS4 .so support
7729 lt_prog_compiler_pic='-fPIC'
7730 ;;
7731 m68k)
7732 # FIXME: we need at least 68020 code to build shared libraries, but
7733 # adding the `-m68020' flag to GCC prevents building anything better,
7734 # like `-m68040'.
7735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736 ;;
7737 esac
7738 ;;
7739
7740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7741 # PIC is the default for these OSes.
7742 ;;
7743
7744 mingw* | cygwin* | pw32* | os2* | cegcc*)
7745 # This hack is so that the source file can tell whether it is being
7746 # built for inclusion in a dll (and should export symbols for example).
7747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7748 # (--disable-auto-import) libraries
7749 lt_prog_compiler_pic='-DDLL_EXPORT'
7750 ;;
7751
7752 darwin* | rhapsody*)
7753 # PIC is the default on this platform
7754 # Common symbols not allowed in MH_DYLIB files
7755 lt_prog_compiler_pic='-fno-common'
7756 ;;
7757
7758 hpux*)
7759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7761 # sets the default TLS model and affects inlining.
7762 case $host_cpu in
7763 hppa*64*)
7764 # +Z the default
7765 ;;
7766 *)
7767 lt_prog_compiler_pic='-fPIC'
7768 ;;
7769 esac
7770 ;;
7771
7772 interix[3-9]*)
7773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7774 # Instead, we relocate shared libraries at runtime.
7775 ;;
7776
7777 msdosdjgpp*)
7778 # Just because we use GCC doesn't mean we suddenly get shared libraries
7779 # on systems that don't support them.
7780 lt_prog_compiler_can_build_shared=no
7781 enable_shared=no
7782 ;;
7783
7784 *nto* | *qnx*)
7785 # QNX uses GNU C++, but need to define -shared option too, otherwise
7786 # it will coredump.
7787 lt_prog_compiler_pic='-fPIC -shared'
7788 ;;
7789
7790 sysv4*MP*)
7791 if test -d /usr/nec; then
7792 lt_prog_compiler_pic=-Kconform_pic
7793 fi
7794 ;;
7795
7796 *)
7797 lt_prog_compiler_pic='-fPIC'
7798 ;;
7799 esac
7800 else
7801 # PORTME Check for flag to pass linker flags through the system compiler.
7802 case $host_os in
7803 aix*)
7804 lt_prog_compiler_wl='-Wl,'
7805 if test "$host_cpu" = ia64; then
7806 # AIX 5 now supports IA64 processor
7807 lt_prog_compiler_static='-Bstatic'
7808 else
7809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7810 fi
7811 ;;
7812
7813 mingw* | cygwin* | pw32* | os2* | cegcc*)
7814 # This hack is so that the source file can tell whether it is being
7815 # built for inclusion in a dll (and should export symbols for example).
7816 lt_prog_compiler_pic='-DDLL_EXPORT'
7817 ;;
7818
7819 hpux9* | hpux10* | hpux11*)
7820 lt_prog_compiler_wl='-Wl,'
7821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7822 # not for PA HP-UX.
7823 case $host_cpu in
7824 hppa*64*|ia64*)
7825 # +Z the default
7826 ;;
7827 *)
7828 lt_prog_compiler_pic='+Z'
7829 ;;
7830 esac
7831 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7832 lt_prog_compiler_static='${wl}-a ${wl}archive'
7833 ;;
7834
7835 irix5* | irix6* | nonstopux*)
7836 lt_prog_compiler_wl='-Wl,'
7837 # PIC (with -KPIC) is the default.
7838 lt_prog_compiler_static='-non_shared'
7839 ;;
7840
7841 linux* | k*bsd*-gnu)
7842 case $cc_basename in
7843 # old Intel for x86_64 which still supported -KPIC.
7844 ecc*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-static'
7848 ;;
7849 # icc used to be incompatible with GCC.
7850 # ICC 10 doesn't accept -KPIC any more.
7851 icc* | ifort*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-fPIC'
7854 lt_prog_compiler_static='-static'
7855 ;;
7856 # Lahey Fortran 8.1.
7857 lf95*)
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_pic='--shared'
7860 lt_prog_compiler_static='--static'
7861 ;;
7862 pgcc* | pgf77* | pgf90* | pgf95*)
7863 # Portland Group compilers (*not* the Pentium gcc compiler,
7864 # which looks to be a dead project)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_pic='-fpic'
7867 lt_prog_compiler_static='-Bstatic'
7868 ;;
7869 ccc*)
7870 lt_prog_compiler_wl='-Wl,'
7871 # All Alpha code is PIC.
7872 lt_prog_compiler_static='-non_shared'
7873 ;;
7874 xl*)
7875 # IBM XL C 8.0/Fortran 10.1 on PPC
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_pic='-qpic'
7878 lt_prog_compiler_static='-qstaticlink'
7879 ;;
7880 *)
7881 case `$CC -V 2>&1 | sed 5q` in
7882 *Sun\ C*)
7883 # Sun C 5.9
7884 lt_prog_compiler_pic='-KPIC'
7885 lt_prog_compiler_static='-Bstatic'
7886 lt_prog_compiler_wl='-Wl,'
7887 ;;
7888 *Sun\ F*)
7889 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7890 lt_prog_compiler_pic='-KPIC'
7891 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl=''
7893 ;;
7894 esac
7895 ;;
7896 esac
7897 ;;
7898
7899 newsos6)
7900 lt_prog_compiler_pic='-KPIC'
7901 lt_prog_compiler_static='-Bstatic'
7902 ;;
7903
7904 *nto* | *qnx*)
7905 # QNX uses GNU C++, but need to define -shared option too, otherwise
7906 # it will coredump.
7907 lt_prog_compiler_pic='-fPIC -shared'
7908 ;;
7909
7910 osf3* | osf4* | osf5*)
7911 lt_prog_compiler_wl='-Wl,'
7912 # All OSF/1 code is PIC.
7913 lt_prog_compiler_static='-non_shared'
7914 ;;
7915
7916 rdos*)
7917 lt_prog_compiler_static='-non_shared'
7918 ;;
7919
7920 solaris*)
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-Bstatic'
7923 case $cc_basename in
7924 f77* | f90* | f95*)
7925 lt_prog_compiler_wl='-Qoption ld ';;
7926 *)
7927 lt_prog_compiler_wl='-Wl,';;
7928 esac
7929 ;;
7930
7931 sunos4*)
7932 lt_prog_compiler_wl='-Qoption ld '
7933 lt_prog_compiler_pic='-PIC'
7934 lt_prog_compiler_static='-Bstatic'
7935 ;;
7936
7937 sysv4 | sysv4.2uw2* | sysv4.3*)
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='-KPIC'
7940 lt_prog_compiler_static='-Bstatic'
7941 ;;
7942
7943 sysv4*MP*)
7944 if test -d /usr/nec ;then
7945 lt_prog_compiler_pic='-Kconform_pic'
7946 lt_prog_compiler_static='-Bstatic'
7947 fi
7948 ;;
7949
7950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-KPIC'
7953 lt_prog_compiler_static='-Bstatic'
7954 ;;
7955
7956 unicos*)
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_can_build_shared=no
7959 ;;
7960
7961 uts4*)
7962 lt_prog_compiler_pic='-pic'
7963 lt_prog_compiler_static='-Bstatic'
7964 ;;
7965
7966 *)
7967 lt_prog_compiler_can_build_shared=no
7968 ;;
7969 esac
7970 fi
7971
7972case $host_os in
7973 # For platforms which do not support PIC, -DPIC is meaningless:
7974 *djgpp*)
7975 lt_prog_compiler_pic=
7976 ;;
7977 *)
7978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7979 ;;
7980esac
7981{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7982$as_echo "$lt_prog_compiler_pic" >&6; }
7983
7984
7985
7986
7987
7988
7989#
7990# Check to make sure the PIC flag actually works.
7991#
7992if test -n "$lt_prog_compiler_pic"; then
7993 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7994$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7995if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7997else
7998 lt_cv_prog_compiler_pic_works=no
7999 ac_outfile=conftest.$ac_objext
8000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8002 # Insert the option either (1) after the last *FLAGS variable, or
8003 # (2) before a word containing "conftest.", or (3) at the end.
8004 # Note that $ac_compile itself does not contain backslashes and begins
8005 # with a dollar sign (not a hyphen), so the echo should work correctly.
8006 # The option is referenced via a variable to avoid confusing sed.
8007 lt_compile=`echo "$ac_compile" | $SED \
8008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8010 -e 's:$: $lt_compiler_flag:'`
8011 (eval echo "\"\$as_me:8011: $lt_compile\"" >&5)
8012 (eval "$lt_compile" 2>conftest.err)
8013 ac_status=$?
8014 cat conftest.err >&5
8015 echo "$as_me:8015: \$? = $ac_status" >&5
8016 if (exit $ac_status) && test -s "$ac_outfile"; then
8017 # The compiler can only warn and ignore the option if not recognized
8018 # So say no if there are warnings other than the usual output.
8019 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8022 lt_cv_prog_compiler_pic_works=yes
8023 fi
8024 fi
8025 $RM conftest*
8026
8027fi
8028{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8029$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8030
8031if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8032 case $lt_prog_compiler_pic in
8033 "" | " "*) ;;
8034 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8035 esac
8036else
8037 lt_prog_compiler_pic=
8038 lt_prog_compiler_can_build_shared=no
8039fi
8040
8041fi
8042
8043
8044
8045
8046
8047
8048#
8049# Check to make sure the static flag actually works.
8050#
8051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8052{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8054if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8055 $as_echo_n "(cached) " >&6
8056else
8057 lt_cv_prog_compiler_static_works=no
8058 save_LDFLAGS="$LDFLAGS"
8059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8062 # The linker can only warn and ignore the option if not recognized
8063 # So say no if there are warnings
8064 if test -s conftest.err; then
8065 # Append any errors to the config.log.
8066 cat conftest.err 1>&5
8067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069 if diff conftest.exp conftest.er2 >/dev/null; then
8070 lt_cv_prog_compiler_static_works=yes
8071 fi
8072 else
8073 lt_cv_prog_compiler_static_works=yes
8074 fi
8075 fi
8076 $RM -r conftest*
8077 LDFLAGS="$save_LDFLAGS"
8078
8079fi
8080{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8081$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8082
8083if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8084 :
8085else
8086 lt_prog_compiler_static=
8087fi
8088
8089
8090
8091
8092
8093
8094
8095 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8097if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8098 $as_echo_n "(cached) " >&6
8099else
8100 lt_cv_prog_compiler_c_o=no
8101 $RM -r conftest 2>/dev/null
8102 mkdir conftest
8103 cd conftest
8104 mkdir out
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106
8107 lt_compiler_flag="-o out/conftest2.$ac_objext"
8108 # Insert the option either (1) after the last *FLAGS variable, or
8109 # (2) before a word containing "conftest.", or (3) at the end.
8110 # Note that $ac_compile itself does not contain backslashes and begins
8111 # with a dollar sign (not a hyphen), so the echo should work correctly.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:8116: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>out/conftest.err)
8118 ac_status=$?
8119 cat out/conftest.err >&5
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8122 then
8123 # The compiler can only warn and ignore the option if not recognized
8124 # So say no if there are warnings
8125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8128 lt_cv_prog_compiler_c_o=yes
8129 fi
8130 fi
8131 chmod u+w . 2>&5
8132 $RM conftest*
8133 # SGI C++ compiler will create directory out/ii_files/ for
8134 # template instantiation
8135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8136 $RM out/* && rmdir out
8137 cd ..
8138 $RM -r conftest
8139 $RM conftest*
8140
8141fi
8142{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8143$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8144
8145
8146
8147
8148
8149
8150 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8152if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8153 $as_echo_n "(cached) " >&6
8154else
8155 lt_cv_prog_compiler_c_o=no
8156 $RM -r conftest 2>/dev/null
8157 mkdir conftest
8158 cd conftest
8159 mkdir out
8160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8161
8162 lt_compiler_flag="-o out/conftest2.$ac_objext"
8163 # Insert the option either (1) after the last *FLAGS variable, or
8164 # (2) before a word containing "conftest.", or (3) at the end.
8165 # Note that $ac_compile itself does not contain backslashes and begins
8166 # with a dollar sign (not a hyphen), so the echo should work correctly.
8167 lt_compile=`echo "$ac_compile" | $SED \
8168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8170 -e 's:$: $lt_compiler_flag:'`
8171 (eval echo "\"\$as_me:8171: $lt_compile\"" >&5)
8172 (eval "$lt_compile" 2>out/conftest.err)
8173 ac_status=$?
8174 cat out/conftest.err >&5
8175 echo "$as_me:8175: \$? = $ac_status" >&5
8176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8177 then
8178 # The compiler can only warn and ignore the option if not recognized
8179 # So say no if there are warnings
8180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8183 lt_cv_prog_compiler_c_o=yes
8184 fi
8185 fi
8186 chmod u+w . 2>&5
8187 $RM conftest*
8188 # SGI C++ compiler will create directory out/ii_files/ for
8189 # template instantiation
8190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8191 $RM out/* && rmdir out
8192 cd ..
8193 $RM -r conftest
8194 $RM conftest*
8195
8196fi
8197{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8198$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8199
8200
8201
8202
8203hard_links="nottested"
8204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8205 # do not overwrite the value of need_locks provided by the user
8206 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8207$as_echo_n "checking if we can lock with hard links... " >&6; }
8208 hard_links=yes
8209 $RM conftest*
8210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8211 touch conftest.a
8212 ln conftest.a conftest.b 2>&5 || hard_links=no
8213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8214 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8215$as_echo "$hard_links" >&6; }
8216 if test "$hard_links" = no; then
8217 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8218$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8219 need_locks=warn
8220 fi
8221else
8222 need_locks=no
8223fi
8224
8225
8226
8227
8228
8229
8230 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8232
8233 runpath_var=
8234 allow_undefined_flag=
8235 always_export_symbols=no
8236 archive_cmds=
8237 archive_expsym_cmds=
8238 compiler_needs_object=no
8239 enable_shared_with_static_runtimes=no
8240 export_dynamic_flag_spec=
8241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8242 hardcode_automatic=no
8243 hardcode_direct=no
8244 hardcode_direct_absolute=no
8245 hardcode_libdir_flag_spec=
8246 hardcode_libdir_flag_spec_ld=
8247 hardcode_libdir_separator=
8248 hardcode_minus_L=no
8249 hardcode_shlibpath_var=unsupported
8250 inherit_rpath=no
8251 link_all_deplibs=unknown
8252 module_cmds=
8253 module_expsym_cmds=
8254 old_archive_from_new_cmds=
8255 old_archive_from_expsyms_cmds=
8256 thread_safe_flag_spec=
8257 whole_archive_flag_spec=
8258 # include_expsyms should be a list of space-separated symbols to be *always*
8259 # included in the symbol list
8260 include_expsyms=
8261 # exclude_expsyms can be an extended regexp of symbols to exclude
8262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8264 # as well as any symbol that contains `d'.
8265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8267 # platforms (ab)use it in PIC code, but their linkers get confused if
8268 # the symbol is explicitly referenced. Since portable code cannot
8269 # rely on this symbol name, it's probably fine to never include it in
8270 # preloaded symbol tables.
8271 # Exclude shared library initialization/finalization symbols.
8272 extract_expsyms_cmds=
8273
8274 case $host_os in
8275 cygwin* | mingw* | pw32* | cegcc*)
8276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8277 # When not using gcc, we currently assume that we are using
8278 # Microsoft Visual C++.
8279 if test "$GCC" != yes; then
8280 with_gnu_ld=no
8281 fi
8282 ;;
8283 interix*)
8284 # we just hope/assume this is gcc and not c89 (= MSVC++)
8285 with_gnu_ld=yes
8286 ;;
8287 openbsd*)
8288 with_gnu_ld=no
8289 ;;
8290 esac
8291
8292 ld_shlibs=yes
8293 if test "$with_gnu_ld" = yes; then
8294 # If archive_cmds runs LD, not CC, wlarc should be empty
8295 wlarc='${wl}'
8296
8297 # Set some defaults for GNU ld with shared library support. These
8298 # are reset later if shared libraries are not supported. Putting them
8299 # here allows them to be overridden if necessary.
8300 runpath_var=LD_RUN_PATH
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 export_dynamic_flag_spec='${wl}--export-dynamic'
8303 # ancient GNU ld didn't support --whole-archive et. al.
8304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8306 else
8307 whole_archive_flag_spec=
8308 fi
8309 supports_anon_versioning=no
8310 case `$LD -v 2>&1` in
8311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8314 *\ 2.11.*) ;; # other 2.11 versions
8315 *) supports_anon_versioning=yes ;;
8316 esac
8317
8318 # See if GNU ld supports shared libraries.
8319 case $host_os in
8320 aix[3-9]*)
8321 # On AIX/PPC, the GNU linker is very broken
8322 if test "$host_cpu" != ia64; then
8323 ld_shlibs=no
8324 cat <<_LT_EOF 1>&2
8325
8326*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8327*** to be unable to reliably create shared libraries on AIX.
8328*** Therefore, libtool is disabling shared libraries support. If you
8329*** really care for shared libraries, you may want to modify your PATH
8330*** so that a non-GNU linker is found, and then restart.
8331
8332_LT_EOF
8333 fi
8334 ;;
8335
8336 amigaos*)
8337 case $host_cpu in
8338 powerpc)
8339 # see comment about AmigaOS4 .so support
8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341 archive_expsym_cmds=''
8342 ;;
8343 m68k)
8344 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)'
8345 hardcode_libdir_flag_spec='-L$libdir'
8346 hardcode_minus_L=yes
8347 ;;
8348 esac
8349 ;;
8350
8351 beos*)
8352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8353 allow_undefined_flag=unsupported
8354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8355 # support --undefined. This deserves some investigation. FIXME
8356 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357 else
8358 ld_shlibs=no
8359 fi
8360 ;;
8361
8362 cygwin* | mingw* | pw32* | cegcc*)
8363 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8364 # as there is no search path for DLLs.
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 allow_undefined_flag=unsupported
8367 always_export_symbols=no
8368 enable_shared_with_static_runtimes=yes
8369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8370
8371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8373 # If the export-symbols file already is a .def file (1st line
8374 # is EXPORTS), use it as is; otherwise, prepend...
8375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8376 cp $export_symbols $output_objdir/$soname.def;
8377 else
8378 echo EXPORTS > $output_objdir/$soname.def;
8379 cat $export_symbols >> $output_objdir/$soname.def;
8380 fi~
8381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8382 else
8383 ld_shlibs=no
8384 fi
8385 ;;
8386
8387 interix[3-9]*)
8388 hardcode_direct=no
8389 hardcode_shlibpath_var=no
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391 export_dynamic_flag_spec='${wl}-E'
8392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8393 # Instead, shared libraries are loaded at an image base (0x10000000 by
8394 # default) and relocated if they conflict, which is a slow very memory
8395 # consuming and fragmenting process. To avoid this, we pick a random,
8396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8399 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'
8400 ;;
8401
8402 gnu* | linux* | tpf* | k*bsd*-gnu)
8403 tmp_diet=no
8404 if test "$host_os" = linux-dietlibc; then
8405 case $cc_basename in
8406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8407 esac
8408 fi
8409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8410 && test "$tmp_diet" = no
8411 then
8412 tmp_addflag=
8413 tmp_sharedflag='-shared'
8414 case $cc_basename,$host_cpu in
8415 pgcc*) # Portland Group C compiler
8416 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'
8417 tmp_addflag=' $pic_flag'
8418 ;;
8419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8420 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'
8421 tmp_addflag=' $pic_flag -Mnomain' ;;
8422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8423 tmp_addflag=' -i_dynamic' ;;
8424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8425 tmp_addflag=' -i_dynamic -nofor_main' ;;
8426 ifc* | ifort*) # Intel Fortran compiler
8427 tmp_addflag=' -nofor_main' ;;
8428 lf95*) # Lahey Fortran 8.1
8429 whole_archive_flag_spec=
8430 tmp_sharedflag='--shared' ;;
8431 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8432 tmp_sharedflag='-qmkshrobj'
8433 tmp_addflag= ;;
8434 esac
8435 case `$CC -V 2>&1 | sed 5q` in
8436 *Sun\ C*) # Sun C 5.9
8437 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'
8438 compiler_needs_object=yes
8439 tmp_sharedflag='-G' ;;
8440 *Sun\ F*) # Sun Fortran 8.3
8441 tmp_sharedflag='-G' ;;
8442 esac
8443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8444
8445 if test "x$supports_anon_versioning" = xyes; then
8446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8448 echo "local: *; };" >> $output_objdir/$libname.ver~
8449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8450 fi
8451
8452 case $cc_basename in
8453 xlf*)
8454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8456 hardcode_libdir_flag_spec=
8457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8458 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8459 if test "x$supports_anon_versioning" = xyes; then
8460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8462 echo "local: *; };" >> $output_objdir/$libname.ver~
8463 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8464 fi
8465 ;;
8466 esac
8467 else
8468 ld_shlibs=no
8469 fi
8470 ;;
8471
8472 netbsd* | netbsdelf*-gnu)
8473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8475 wlarc=
8476 else
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8479 fi
8480 ;;
8481
8482 solaris*)
8483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8484 ld_shlibs=no
8485 cat <<_LT_EOF 1>&2
8486
8487*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8488*** create shared libraries on Solaris systems. Therefore, libtool
8489*** is disabling shared libraries support. We urge you to upgrade GNU
8490*** binutils to release 2.9.1 or newer. Another option is to modify
8491*** your PATH or compiler configuration so that the native linker is
8492*** used, and then restart.
8493
8494_LT_EOF
8495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8498 else
8499 ld_shlibs=no
8500 fi
8501 ;;
8502
8503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8504 case `$LD -v 2>&1` in
8505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8506 ld_shlibs=no
8507 cat <<_LT_EOF 1>&2
8508
8509*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8510*** reliably create shared libraries on SCO systems. Therefore, libtool
8511*** is disabling shared libraries support. We urge you to upgrade GNU
8512*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8513*** your PATH or compiler configuration so that the native linker is
8514*** used, and then restart.
8515
8516_LT_EOF
8517 ;;
8518 *)
8519 # For security reasons, it is highly recommended that you always
8520 # use absolute paths for naming shared libraries, and exclude the
8521 # DT_RUNPATH tag from executables and libraries. But doing so
8522 # requires that you compile everything twice, which is a pain.
8523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8527 else
8528 ld_shlibs=no
8529 fi
8530 ;;
8531 esac
8532 ;;
8533
8534 sunos4*)
8535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8536 wlarc=
8537 hardcode_direct=yes
8538 hardcode_shlibpath_var=no
8539 ;;
8540
8541 *)
8542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8545 else
8546 ld_shlibs=no
8547 fi
8548 ;;
8549 esac
8550
8551 if test "$ld_shlibs" = no; then
8552 runpath_var=
8553 hardcode_libdir_flag_spec=
8554 export_dynamic_flag_spec=
8555 whole_archive_flag_spec=
8556 fi
8557 else
8558 # PORTME fill in a description of your system's linker (not GNU ld)
8559 case $host_os in
8560 aix3*)
8561 allow_undefined_flag=unsupported
8562 always_export_symbols=yes
8563 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'
8564 # Note: this linker hardcodes the directories in LIBPATH if there
8565 # are no directories specified by -L.
8566 hardcode_minus_L=yes
8567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8568 # Neither direct hardcoding nor static linking is supported with a
8569 # broken collect2.
8570 hardcode_direct=unsupported
8571 fi
8572 ;;
8573
8574 aix[4-9]*)
8575 if test "$host_cpu" = ia64; then
8576 # On IA64, the linker does run time linking by default, so we don't
8577 # have to do anything special.
8578 aix_use_runtimelinking=no
8579 exp_sym_flag='-Bexport'
8580 no_entry_flag=""
8581 else
8582 # If we're using GNU nm, then we don't want the "-C" option.
8583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8585 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'
8586 else
8587 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'
8588 fi
8589 aix_use_runtimelinking=no
8590
8591 # Test if we are trying to use run time linking or normal
8592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8593 # need to do runtime linking.
8594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8595 for ld_flag in $LDFLAGS; do
8596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8597 aix_use_runtimelinking=yes
8598 break
8599 fi
8600 done
8601 ;;
8602 esac
8603
8604 exp_sym_flag='-bexport'
8605 no_entry_flag='-bnoentry'
8606 fi
8607
8608 # When large executables or shared objects are built, AIX ld can
8609 # have problems creating the table of contents. If linking a library
8610 # or program results in "error TOC overflow" add -mminimal-toc to
8611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8613
8614 archive_cmds=''
8615 hardcode_direct=yes
8616 hardcode_direct_absolute=yes
8617 hardcode_libdir_separator=':'
8618 link_all_deplibs=yes
8619 file_list_spec='${wl}-f,'
8620
8621 if test "$GCC" = yes; then
8622 case $host_os in aix4.[012]|aix4.[012].*)
8623 # We only want to do this on AIX 4.2 and lower, the check
8624 # below for broken collect2 doesn't work under 4.3+
8625 collect2name=`${CC} -print-prog-name=collect2`
8626 if test -f "$collect2name" &&
8627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8628 then
8629 # We have reworked collect2
8630 :
8631 else
8632 # We have old collect2
8633 hardcode_direct=unsupported
8634 # It fails to find uninstalled libraries when the uninstalled
8635 # path is not listed in the libpath. Setting hardcode_minus_L
8636 # to unsupported forces relinking
8637 hardcode_minus_L=yes
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_libdir_separator=
8640 fi
8641 ;;
8642 esac
8643 shared_flag='-shared'
8644 if test "$aix_use_runtimelinking" = yes; then
8645 shared_flag="$shared_flag "'${wl}-G'
8646 fi
8647 link_all_deplibs=no
8648 else
8649 # not using gcc
8650 if test "$host_cpu" = ia64; then
8651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8652 # chokes on -Wl,-G. The following line is correct:
8653 shared_flag='-G'
8654 else
8655 if test "$aix_use_runtimelinking" = yes; then
8656 shared_flag='${wl}-G'
8657 else
8658 shared_flag='${wl}-bM:SRE'
8659 fi
8660 fi
8661 fi
8662
8663 export_dynamic_flag_spec='${wl}-bexpall'
8664 # It seems that -bexpall does not export symbols beginning with
8665 # underscore (_), so it is better to generate a list of symbols to export.
8666 always_export_symbols=yes
8667 if test "$aix_use_runtimelinking" = yes; then
8668 # Warning - without using the other runtime loading flags (-brtl),
8669 # -berok will link without error, but may produce a broken library.
8670 allow_undefined_flag='-berok'
8671 # Determine the default libpath from the value encoded in an
8672 # empty executable.
8673 cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h. */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h. */
8679
8680int
8681main ()
8682{
8683
8684 ;
8685 return 0;
8686}
8687_ACEOF
8688rm -f conftest.$ac_objext conftest$ac_exeext
8689if { (ac_try="$ac_link"
8690case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8695$as_echo "$ac_try_echo") >&5
8696 (eval "$ac_link") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest$ac_exeext && {
8706 test "$cross_compiling" = yes ||
8707 $as_test_x conftest$ac_exeext
8708 }; then
8709
8710lt_aix_libpath_sed='
8711 /Import File Strings/,/^$/ {
8712 /^0/ {
8713 s/^0 *\(.*\)$/\1/
8714 p
8715 }
8716 }'
8717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8718# Check for a 64-bit object if we didn't find anything.
8719if test -z "$aix_libpath"; then
8720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8721fi
8722else
8723 $as_echo "$as_me: failed program was:" >&5
8724sed 's/^/| /' conftest.$ac_ext >&5
8725
8726
8727fi
8728
8729rm -rf conftest.dSYM
8730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8731 conftest$ac_exeext conftest.$ac_ext
8732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8733
8734 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8735 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"
8736 else
8737 if test "$host_cpu" = ia64; then
8738 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8739 allow_undefined_flag="-z nodefs"
8740 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"
8741 else
8742 # Determine the default libpath from the value encoded in an
8743 # empty executable.
8744 cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h. */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h. */
8750
8751int
8752main ()
8753{
8754
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext conftest$ac_exeext
8760if { (ac_try="$ac_link"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8766$as_echo "$ac_try_echo") >&5
8767 (eval "$ac_link") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest$ac_exeext && {
8777 test "$cross_compiling" = yes ||
8778 $as_test_x conftest$ac_exeext
8779 }; then
8780
8781lt_aix_libpath_sed='
8782 /Import File Strings/,/^$/ {
8783 /^0/ {
8784 s/^0 *\(.*\)$/\1/
8785 p
8786 }
8787 }'
8788aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8789# Check for a 64-bit object if we didn't find anything.
8790if test -z "$aix_libpath"; then
8791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8792fi
8793else
8794 $as_echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797
8798fi
8799
8800rm -rf conftest.dSYM
8801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802 conftest$ac_exeext conftest.$ac_ext
8803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8804
8805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8806 # Warning - without using the other run time loading flags,
8807 # -berok will link without error, but may produce a broken library.
8808 no_undefined_flag=' ${wl}-bernotok'
8809 allow_undefined_flag=' ${wl}-berok'
8810 # Exported symbols can be pulled into shared objects from archives
8811 whole_archive_flag_spec='$convenience'
8812 archive_cmds_need_lc=yes
8813 # This is similar to how AIX traditionally builds its shared libraries.
8814 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'
8815 fi
8816 fi
8817 ;;
8818
8819 amigaos*)
8820 case $host_cpu in
8821 powerpc)
8822 # see comment about AmigaOS4 .so support
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds=''
8825 ;;
8826 m68k)
8827 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)'
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_minus_L=yes
8830 ;;
8831 esac
8832 ;;
8833
8834 bsdi[45]*)
8835 export_dynamic_flag_spec=-rdynamic
8836 ;;
8837
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # When not using gcc, we currently assume that we are using
8840 # Microsoft Visual C++.
8841 # hardcode_libdir_flag_spec is actually meaningless, as there is
8842 # no search path for DLLs.
8843 hardcode_libdir_flag_spec=' '
8844 allow_undefined_flag=unsupported
8845 # Tell ltmain to make .lib files, not .a files.
8846 libext=lib
8847 # Tell ltmain to make .dll files, not .so files.
8848 shrext_cmds=".dll"
8849 # FIXME: Setting linknames here is a bad hack.
8850 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8851 # The linker will automatically build a .lib file if we build a DLL.
8852 old_archive_from_new_cmds='true'
8853 # FIXME: Should let the user specify the lib program.
8854 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8855 fix_srcfile_path='`cygpath -w "$srcfile"`'
8856 enable_shared_with_static_runtimes=yes
8857 ;;
8858
8859 darwin* | rhapsody*)
8860
8861
8862 archive_cmds_need_lc=no
8863 hardcode_direct=no
8864 hardcode_automatic=yes
8865 hardcode_shlibpath_var=unsupported
8866 whole_archive_flag_spec=''
8867 link_all_deplibs=yes
8868 allow_undefined_flag="$_lt_dar_allow_undefined"
8869 case $cc_basename in
8870 ifort*) _lt_dar_can_shared=yes ;;
8871 *) _lt_dar_can_shared=$GCC ;;
8872 esac
8873 if test "$_lt_dar_can_shared" = "yes"; then
8874 output_verbose_link_cmd=echo
8875 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8876 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8877 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}"
8878 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}"
8879
8880 else
8881 ld_shlibs=no
8882 fi
8883
8884 ;;
8885
8886 dgux*)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_shlibpath_var=no
8890 ;;
8891
8892 freebsd1*)
8893 ld_shlibs=no
8894 ;;
8895
8896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8897 # support. Future versions do this automatically, but an explicit c++rt0.o
8898 # does not break anything, and helps significantly (at the cost of a little
8899 # extra space).
8900 freebsd2.2*)
8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8902 hardcode_libdir_flag_spec='-R$libdir'
8903 hardcode_direct=yes
8904 hardcode_shlibpath_var=no
8905 ;;
8906
8907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8908 freebsd2*)
8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_direct=yes
8911 hardcode_minus_L=yes
8912 hardcode_shlibpath_var=no
8913 ;;
8914
8915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8916 freebsd* | dragonfly*)
8917 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8918 hardcode_libdir_flag_spec='-R$libdir'
8919 hardcode_direct=yes
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 hpux9*)
8924 if test "$GCC" = yes; then
8925 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'
8926 else
8927 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'
8928 fi
8929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 hardcode_direct=yes
8932
8933 # hardcode_minus_L: Not really in the search PATH,
8934 # but as the default location of the library.
8935 hardcode_minus_L=yes
8936 export_dynamic_flag_spec='${wl}-E'
8937 ;;
8938
8939 hpux10*)
8940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942 else
8943 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8944 fi
8945 if test "$with_gnu_ld" = no; then
8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947 hardcode_libdir_flag_spec_ld='+b $libdir'
8948 hardcode_libdir_separator=:
8949 hardcode_direct=yes
8950 hardcode_direct_absolute=yes
8951 export_dynamic_flag_spec='${wl}-E'
8952 # hardcode_minus_L: Not really in the search PATH,
8953 # but as the default location of the library.
8954 hardcode_minus_L=yes
8955 fi
8956 ;;
8957
8958 hpux11*)
8959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8960 case $host_cpu in
8961 hppa*64*)
8962 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 ;;
8964 ia64*)
8965 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8966 ;;
8967 *)
8968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8969 ;;
8970 esac
8971 else
8972 case $host_cpu in
8973 hppa*64*)
8974 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 ;;
8976 ia64*)
8977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8978 ;;
8979 *)
8980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8981 ;;
8982 esac
8983 fi
8984 if test "$with_gnu_ld" = no; then
8985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986 hardcode_libdir_separator=:
8987
8988 case $host_cpu in
8989 hppa*64*|ia64*)
8990 hardcode_direct=no
8991 hardcode_shlibpath_var=no
8992 ;;
8993 *)
8994 hardcode_direct=yes
8995 hardcode_direct_absolute=yes
8996 export_dynamic_flag_spec='${wl}-E'
8997
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L=yes
9001 ;;
9002 esac
9003 fi
9004 ;;
9005
9006 irix5* | irix6* | nonstopux*)
9007 if test "$GCC" = yes; then
9008 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'
9009 # Try to use the -exported_symbol ld option, if it does not
9010 # work, assume that -exports_file does not work either and
9011 # implicitly export all symbols.
9012 save_LDFLAGS="$LDFLAGS"
9013 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9014 cat >conftest.$ac_ext <<_ACEOF
9015int foo(void) {}
9016_ACEOF
9017rm -f conftest.$ac_objext conftest$ac_exeext
9018if { (ac_try="$ac_link"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024$as_echo "$ac_try_echo") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9037 }; then
9038 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'
9039
9040else
9041 $as_echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
9044
9045fi
9046
9047rm -rf conftest.dSYM
9048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LDFLAGS="$save_LDFLAGS"
9051 else
9052 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'
9053 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'
9054 fi
9055 archive_cmds_need_lc='no'
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 hardcode_libdir_separator=:
9058 inherit_rpath=yes
9059 link_all_deplibs=yes
9060 ;;
9061
9062 netbsd* | netbsdelf*-gnu)
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9065 else
9066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9067 fi
9068 hardcode_libdir_flag_spec='-R$libdir'
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 newsos6)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=yes
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 *nto* | *qnx*)
9082 ;;
9083
9084 openbsd*)
9085 if test -f /usr/libexec/ld.so; then
9086 hardcode_direct=yes
9087 hardcode_shlibpath_var=no
9088 hardcode_direct_absolute=yes
9089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093 export_dynamic_flag_spec='${wl}-E'
9094 else
9095 case $host_os in
9096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 ;;
9100 *)
9101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103 ;;
9104 esac
9105 fi
9106 else
9107 ld_shlibs=no
9108 fi
9109 ;;
9110
9111 os2*)
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 allow_undefined_flag=unsupported
9115 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'
9116 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9117 ;;
9118
9119 osf3*)
9120 if test "$GCC" = yes; then
9121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9122 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'
9123 else
9124 allow_undefined_flag=' -expect_unresolved \*'
9125 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'
9126 fi
9127 archive_cmds_need_lc='no'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 hardcode_libdir_separator=:
9130 ;;
9131
9132 osf4* | osf5*) # as osf3* with the addition of -msym flag
9133 if test "$GCC" = yes; then
9134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135 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'
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137 else
9138 allow_undefined_flag=' -expect_unresolved \*'
9139 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'
9140 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~
9141 $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'
9142
9143 # Both c and cxx compiler support -rpath directly
9144 hardcode_libdir_flag_spec='-rpath $libdir'
9145 fi
9146 archive_cmds_need_lc='no'
9147 hardcode_libdir_separator=:
9148 ;;
9149
9150 solaris*)
9151 no_undefined_flag=' -z defs'
9152 if test "$GCC" = yes; then
9153 wlarc='${wl}'
9154 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9156 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9157 else
9158 case `$CC -V 2>&1` in
9159 *"Compilers 5.0"*)
9160 wlarc=''
9161 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9164 ;;
9165 *)
9166 wlarc='${wl}'
9167 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9169 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9170 ;;
9171 esac
9172 fi
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 hardcode_shlibpath_var=no
9175 case $host_os in
9176 solaris2.[0-5] | solaris2.[0-5].*) ;;
9177 *)
9178 # The compiler driver will combine and reorder linker options,
9179 # but understands `-z linker_flag'. GCC discards it without `$wl',
9180 # but is careful enough not to reorder.
9181 # Supported since Solaris 2.6 (maybe 2.5.1?)
9182 if test "$GCC" = yes; then
9183 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9184 else
9185 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9186 fi
9187 ;;
9188 esac
9189 link_all_deplibs=yes
9190 ;;
9191
9192 sunos4*)
9193 if test "x$host_vendor" = xsequent; then
9194 # Use $CC to link under sequent, because it throws in some extra .o
9195 # files that make .init and .fini sections work.
9196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9197 else
9198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9199 fi
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_direct=yes
9202 hardcode_minus_L=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 sysv4)
9207 case $host_vendor in
9208 sni)
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct=yes # is this really true???
9211 ;;
9212 siemens)
9213 ## LD is ld it makes a PLAMLIB
9214 ## CC just makes a GrossModule.
9215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9216 reload_cmds='$CC -r -o $output$reload_objs'
9217 hardcode_direct=no
9218 ;;
9219 motorola)
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9222 ;;
9223 esac
9224 runpath_var='LD_RUN_PATH'
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 sysv4.3*)
9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_shlibpath_var=no
9231 export_dynamic_flag_spec='-Bexport'
9232 ;;
9233
9234 sysv4*MP*)
9235 if test -d /usr/nec; then
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 runpath_var=LD_RUN_PATH
9239 hardcode_runpath_var=yes
9240 ld_shlibs=yes
9241 fi
9242 ;;
9243
9244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9245 no_undefined_flag='${wl}-z,text'
9246 archive_cmds_need_lc=no
9247 hardcode_shlibpath_var=no
9248 runpath_var='LD_RUN_PATH'
9249
9250 if test "$GCC" = yes; then
9251 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 else
9254 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9256 fi
9257 ;;
9258
9259 sysv5* | sco3.2v5* | sco5v6*)
9260 # Note: We can NOT use -z defs as we might desire, because we do not
9261 # link with -lc, and that would cause any symbols used from libc to
9262 # always be unresolved, which means just about no library would
9263 # ever link correctly. If we're not using GNU ld we use -z text
9264 # though, which does catch some bad symbols but isn't as heavy-handed
9265 # as -z defs.
9266 no_undefined_flag='${wl}-z,text'
9267 allow_undefined_flag='${wl}-z,nodefs'
9268 archive_cmds_need_lc=no
9269 hardcode_shlibpath_var=no
9270 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9273 export_dynamic_flag_spec='${wl}-Bexport'
9274 runpath_var='LD_RUN_PATH'
9275
9276 if test "$GCC" = yes; then
9277 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279 else
9280 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 fi
9283 ;;
9284
9285 uts4*)
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 *)
9292 ld_shlibs=no
9293 ;;
9294 esac
9295
9296 if test x$host_vendor = xsni; then
9297 case $host in
9298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9299 export_dynamic_flag_spec='${wl}-Blargedynsym'
9300 ;;
9301 esac
9302 fi
9303 fi
9304
9305{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9306$as_echo "$ld_shlibs" >&6; }
9307test "$ld_shlibs" = no && can_build_shared=no
9308
9309with_gnu_ld=$with_gnu_ld
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325#
9326# Do we need to explicitly link libc?
9327#
9328case "x$archive_cmds_need_lc" in
9329x|xyes)
9330 # Assume -lc should be added
9331 archive_cmds_need_lc=yes
9332
9333 if test "$enable_shared" = yes && test "$GCC" = yes; then
9334 case $archive_cmds in
9335 *'~'*)
9336 # FIXME: we may have to deal with multi-command sequences.
9337 ;;
9338 '$CC '*)
9339 # Test whether the compiler implicitly links with -lc since on some
9340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9341 # to ld, don't add -lc before -lgcc.
9342 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9343$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9344 $RM conftest*
9345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9346
9347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9348 (eval $ac_compile) 2>&5
9349 ac_status=$?
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } 2>conftest.err; then
9352 soname=conftest
9353 lib=conftest
9354 libobjs=conftest.$ac_objext
9355 deplibs=
9356 wl=$lt_prog_compiler_wl
9357 pic_flag=$lt_prog_compiler_pic
9358 compiler_flags=-v
9359 linker_flags=-v
9360 verstring=
9361 output_objdir=.
9362 libname=conftest
9363 lt_save_allow_undefined_flag=$allow_undefined_flag
9364 allow_undefined_flag=
9365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9366 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9367 ac_status=$?
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }
9370 then
9371 archive_cmds_need_lc=no
9372 else
9373 archive_cmds_need_lc=yes
9374 fi
9375 allow_undefined_flag=$lt_save_allow_undefined_flag
9376 else
9377 cat conftest.err 1>&5
9378 fi
9379 $RM conftest*
9380 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9381$as_echo "$archive_cmds_need_lc" >&6; }
9382 ;;
9383 esac
9384 fi
9385 ;;
9386esac
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9545$as_echo_n "checking dynamic linker characteristics... " >&6; }
9546
9547if test "$GCC" = yes; then
9548 case $host_os in
9549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9550 *) lt_awk_arg="/^libraries:/" ;;
9551 esac
9552 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9553 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9554 # if the path contains ";" then we assume it to be the separator
9555 # otherwise default to the standard path separator (i.e. ":") - it is
9556 # assumed that no part of a normal pathname contains ";" but that should
9557 # okay in the real world where ";" in dirpaths is itself problematic.
9558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9559 else
9560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9561 fi
9562 # Ok, now we have the path, separated by spaces, we can step through it
9563 # and add multilib dir if necessary.
9564 lt_tmp_lt_search_path_spec=
9565 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9566 for lt_sys_path in $lt_search_path_spec; do
9567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9569 else
9570 test -d "$lt_sys_path" && \
9571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9572 fi
9573 done
9574 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9575BEGIN {RS=" "; FS="/|\n";} {
9576 lt_foo="";
9577 lt_count=0;
9578 for (lt_i = NF; lt_i > 0; lt_i--) {
9579 if ($lt_i != "" && $lt_i != ".") {
9580 if ($lt_i == "..") {
9581 lt_count++;
9582 } else {
9583 if (lt_count == 0) {
9584 lt_foo="/" $lt_i lt_foo;
9585 } else {
9586 lt_count--;
9587 }
9588 }
9589 }
9590 }
9591 if (lt_foo != "") { lt_freq[lt_foo]++; }
9592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9593}'`
9594 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9595else
9596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9597fi
9598library_names_spec=
9599libname_spec='lib$name'
9600soname_spec=
9601shrext_cmds=".so"
9602postinstall_cmds=
9603postuninstall_cmds=
9604finish_cmds=
9605finish_eval=
9606shlibpath_var=
9607shlibpath_overrides_runpath=unknown
9608version_type=none
9609dynamic_linker="$host_os ld.so"
9610sys_lib_dlsearch_path_spec="/lib /usr/lib"
9611need_lib_prefix=unknown
9612hardcode_into_libs=no
9613
9614# when you set need_version to no, make sure it does not cause -set_version
9615# flags to be left without arguments
9616need_version=unknown
9617
9618case $host_os in
9619aix3*)
9620 version_type=linux
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9622 shlibpath_var=LIBPATH
9623
9624 # AIX 3 has no versioning support, so we append a major version to the name.
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 ;;
9627
9628aix[4-9]*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 hardcode_into_libs=yes
9633 if test "$host_cpu" = ia64; then
9634 # AIX 5 supports IA64
9635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 else
9638 # With GCC up to 2.95.x, collect2 would create an import file
9639 # for dependence libraries. The import file would start with
9640 # the line `#! .'. This would cause the generated library to
9641 # depend on `.', always an invalid library. This was fixed in
9642 # development snapshots of GCC prior to 3.0.
9643 case $host_os in
9644 aix4 | aix4.[01] | aix4.[01].*)
9645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9646 echo ' yes '
9647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9648 :
9649 else
9650 can_build_shared=no
9651 fi
9652 ;;
9653 esac
9654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9655 # soname into executable. Probably we can add versioning support to
9656 # collect2, so additional links can be useful in future.
9657 if test "$aix_use_runtimelinking" = yes; then
9658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9659 # instead of lib<name>.a to let people know that these are not
9660 # typical AIX shared libraries.
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 else
9663 # We preserve .a as extension for shared libraries through AIX4.2
9664 # and later when we are not doing run time linking.
9665 library_names_spec='${libname}${release}.a $libname.a'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 fi
9668 shlibpath_var=LIBPATH
9669 fi
9670 ;;
9671
9672amigaos*)
9673 case $host_cpu in
9674 powerpc)
9675 # Since July 2007 AmigaOS4 officially supports .so libraries.
9676 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 ;;
9679 m68k)
9680 library_names_spec='$libname.ixlibrary $libname.a'
9681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9682 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'
9683 ;;
9684 esac
9685 ;;
9686
9687beos*)
9688 library_names_spec='${libname}${shared_ext}'
9689 dynamic_linker="$host_os ld.so"
9690 shlibpath_var=LIBRARY_PATH
9691 ;;
9692
9693bsdi[45]*)
9694 version_type=linux
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9702 # the default ld.so.conf also contains /usr/contrib/lib and
9703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9704 # libtool to hard-code these into programs
9705 ;;
9706
9707cygwin* | mingw* | pw32* | cegcc*)
9708 version_type=windows
9709 shrext_cmds=".dll"
9710 need_version=no
9711 need_lib_prefix=no
9712
9713 case $GCC,$host_os in
9714 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9715 library_names_spec='$libname.dll.a'
9716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9717 postinstall_cmds='base_file=`basename \${file}`~
9718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9719 dldir=$destdir/`dirname \$dlpath`~
9720 test -d \$dldir || mkdir -p \$dldir~
9721 $install_prog $dir/$dlname \$dldir/$dlname~
9722 chmod a+x \$dldir/$dlname~
9723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9725 fi'
9726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9727 dlpath=$dir/\$dldll~
9728 $RM \$dlpath'
9729 shlibpath_overrides_runpath=yes
9730
9731 case $host_os in
9732 cygwin*)
9733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9736 ;;
9737 mingw* | cegcc*)
9738 # MinGW DLLs use traditional 'lib' prefix
9739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9740 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9742 # It is most probably a Windows format PATH printed by
9743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9744 # path with ; separators, and with drive letters. We can handle the
9745 # drive letters (cygwin fileutils understands them), so leave them,
9746 # especially as we might pass files found there to a mingw objdump,
9747 # which wouldn't understand a cygwinified path. Ahh.
9748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9749 else
9750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9751 fi
9752 ;;
9753 pw32*)
9754 # pw32 DLLs use 'pw' prefix rather than 'lib'
9755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9756 ;;
9757 esac
9758 ;;
9759
9760 *)
9761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9762 ;;
9763 esac
9764 dynamic_linker='Win32 ld.exe'
9765 # FIXME: first we should search . and the directory the executable is in
9766 shlibpath_var=PATH
9767 ;;
9768
9769darwin* | rhapsody*)
9770 dynamic_linker="$host_os dyld"
9771 version_type=darwin
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9775 soname_spec='${libname}${release}${major}$shared_ext'
9776 shlibpath_overrides_runpath=yes
9777 shlibpath_var=DYLD_LIBRARY_PATH
9778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9779
9780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9782 ;;
9783
9784dgux*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 ;;
9792
9793freebsd1*)
9794 dynamic_linker=no
9795 ;;
9796
9797freebsd* | dragonfly*)
9798 # DragonFly does not have aout. When/if they implement a new
9799 # versioning mechanism, adjust this.
9800 if test -x /usr/bin/objformat; then
9801 objformat=`/usr/bin/objformat`
9802 else
9803 case $host_os in
9804 freebsd[123]*) objformat=aout ;;
9805 *) objformat=elf ;;
9806 esac
9807 fi
9808 version_type=freebsd-$objformat
9809 case $version_type in
9810 freebsd-elf*)
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812 need_version=no
9813 need_lib_prefix=no
9814 ;;
9815 freebsd-*)
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9817 need_version=yes
9818 ;;
9819 esac
9820 shlibpath_var=LD_LIBRARY_PATH
9821 case $host_os in
9822 freebsd2*)
9823 shlibpath_overrides_runpath=yes
9824 ;;
9825 freebsd3.[01]* | freebsdelf3.[01]*)
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9831 shlibpath_overrides_runpath=no
9832 hardcode_into_libs=yes
9833 ;;
9834 *) # from 4.6 on, and DragonFly
9835 shlibpath_overrides_runpath=yes
9836 hardcode_into_libs=yes
9837 ;;
9838 esac
9839 ;;
9840
9841gnu*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 hardcode_into_libs=yes
9849 ;;
9850
9851hpux9* | hpux10* | hpux11*)
9852 # Give a soname corresponding to the major version so that dld.sl refuses to
9853 # link against other versions.
9854 version_type=sunos
9855 need_lib_prefix=no
9856 need_version=no
9857 case $host_cpu in
9858 ia64*)
9859 shrext_cmds='.so'
9860 hardcode_into_libs=yes
9861 dynamic_linker="$host_os dld.so"
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 if test "X$HPUX_IA64_MODE" = X32; then
9867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868 else
9869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870 fi
9871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872 ;;
9873 hppa*64*)
9874 shrext_cmds='.sl'
9875 hardcode_into_libs=yes
9876 dynamic_linker="$host_os dld.sl"
9877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883 ;;
9884 *)
9885 shrext_cmds='.sl'
9886 dynamic_linker="$host_os dld.sl"
9887 shlibpath_var=SHLIB_PATH
9888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 ;;
9892 esac
9893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894 postinstall_cmds='chmod 555 $lib'
9895 ;;
9896
9897interix[3-9]*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=no
9906 hardcode_into_libs=yes
9907 ;;
9908
9909irix5* | irix6* | nonstopux*)
9910 case $host_os in
9911 nonstopux*) version_type=nonstopux ;;
9912 *)
9913 if test "$lt_cv_prog_gnu_ld" = yes; then
9914 version_type=linux
9915 else
9916 version_type=irix
9917 fi ;;
9918 esac
9919 need_lib_prefix=no
9920 need_version=no
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9923 case $host_os in
9924 irix5* | nonstopux*)
9925 libsuff= shlibsuff=
9926 ;;
9927 *)
9928 case $LD in # libtool.m4 will add one of these switches to LD
9929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930 libsuff= shlibsuff= libmagic=32-bit;;
9931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932 libsuff=32 shlibsuff=N32 libmagic=N32;;
9933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9935 *) libsuff= shlibsuff= libmagic=never-match;;
9936 esac
9937 ;;
9938 esac
9939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9943 hardcode_into_libs=yes
9944 ;;
9945
9946# No shared lib support for Linux oldld, aout, or coff.
9947linux*oldld* | linux*aout* | linux*coff*)
9948 dynamic_linker=no
9949 ;;
9950
9951# This must be Linux ELF.
9952linux* | k*bsd*-gnu)
9953 version_type=linux
9954 need_lib_prefix=no
9955 need_version=no
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 # Some binutils ld are patched to set DT_RUNPATH
9962 save_LDFLAGS=$LDFLAGS
9963 save_libdir=$libdir
9964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972
9973int
9974main ()
9975{
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (ac_try="$ac_link"
9983case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988$as_echo "$ac_try_echo") >&5
9989 (eval "$ac_link") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest$ac_exeext && {
9999 test "$cross_compiling" = yes ||
10000 $as_test_x conftest$ac_exeext
10001 }; then
10002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10003 shlibpath_overrides_runpath=yes
10004fi
10005
10006else
10007 $as_echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010
10011fi
10012
10013rm -rf conftest.dSYM
10014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS=$save_LDFLAGS
10017 libdir=$save_libdir
10018
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10023
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
10026 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' ' '`
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10028 fi
10029
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10037 ;;
10038
10039netbsdelf*-gnu)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10048 dynamic_linker='NetBSD ld.elf_so'
10049 ;;
10050
10051netbsd*)
10052 version_type=sunos
10053 need_lib_prefix=no
10054 need_version=no
10055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10058 dynamic_linker='NetBSD (a.out) ld.so'
10059 else
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 dynamic_linker='NetBSD ld.elf_so'
10063 fi
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10067 ;;
10068
10069newsos6)
10070 version_type=linux
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10074 ;;
10075
10076*nto* | *qnx*)
10077 version_type=qnx
10078 need_lib_prefix=no
10079 need_version=no
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 dynamic_linker='ldqnx.so'
10086 ;;
10087
10088openbsd*)
10089 version_type=sunos
10090 sys_lib_dlsearch_path_spec="/usr/lib"
10091 need_lib_prefix=no
10092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10093 case $host_os in
10094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10095 *) need_version=no ;;
10096 esac
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10101 case $host_os in
10102 openbsd2.[89] | openbsd2.[89].*)
10103 shlibpath_overrides_runpath=no
10104 ;;
10105 *)
10106 shlibpath_overrides_runpath=yes
10107 ;;
10108 esac
10109 else
10110 shlibpath_overrides_runpath=yes
10111 fi
10112 ;;
10113
10114os2*)
10115 libname_spec='$name'
10116 shrext_cmds=".dll"
10117 need_lib_prefix=no
10118 library_names_spec='$libname${shared_ext} $libname.a'
10119 dynamic_linker='OS/2 ld.exe'
10120 shlibpath_var=LIBPATH
10121 ;;
10122
10123osf3* | osf4* | osf5*)
10124 version_type=osf
10125 need_lib_prefix=no
10126 need_version=no
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10132 ;;
10133
10134rdos*)
10135 dynamic_linker=no
10136 ;;
10137
10138solaris*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes
10146 hardcode_into_libs=yes
10147 # ldd complains unless libraries are executable
10148 postinstall_cmds='chmod +x $lib'
10149 ;;
10150
10151sunos4*)
10152 version_type=sunos
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 if test "$with_gnu_ld" = yes; then
10158 need_lib_prefix=no
10159 fi
10160 need_version=yes
10161 ;;
10162
10163sysv4 | sysv4.3*)
10164 version_type=linux
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 case $host_vendor in
10169 sni)
10170 shlibpath_overrides_runpath=no
10171 need_lib_prefix=no
10172 runpath_var=LD_RUN_PATH
10173 ;;
10174 siemens)
10175 need_lib_prefix=no
10176 ;;
10177 motorola)
10178 need_lib_prefix=no
10179 need_version=no
10180 shlibpath_overrides_runpath=no
10181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10182 ;;
10183 esac
10184 ;;
10185
10186sysv4*MP*)
10187 if test -d /usr/nec ;then
10188 version_type=linux
10189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10190 soname_spec='$libname${shared_ext}.$major'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 fi
10193 ;;
10194
10195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10196 version_type=freebsd-elf
10197 need_lib_prefix=no
10198 need_version=no
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=yes
10203 hardcode_into_libs=yes
10204 if test "$with_gnu_ld" = yes; then
10205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10206 else
10207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10208 case $host_os in
10209 sco3.2v5*)
10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10211 ;;
10212 esac
10213 fi
10214 sys_lib_dlsearch_path_spec='/usr/lib'
10215 ;;
10216
10217tpf*)
10218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10219 version_type=linux
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=no
10225 hardcode_into_libs=yes
10226 ;;
10227
10228uts4*)
10229 version_type=linux
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 ;;
10234
10235*)
10236 dynamic_linker=no
10237 ;;
10238esac
10239{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10240$as_echo "$dynamic_linker" >&6; }
10241test "$dynamic_linker" = no && can_build_shared=no
10242
10243variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10244if test "$GCC" = yes; then
10245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10246fi
10247
10248if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10249 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10250fi
10251if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10252 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10253fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10342$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10343hardcode_action=
10344if test -n "$hardcode_libdir_flag_spec" ||
10345 test -n "$runpath_var" ||
10346 test "X$hardcode_automatic" = "Xyes" ; then
10347
10348 # We can hardcode non-existent directories.
10349 if test "$hardcode_direct" != no &&
10350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10351 # have to relink, otherwise we might link with an installed library
10352 # when we should be linking with a yet-to-be-installed one
10353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10354 test "$hardcode_minus_L" != no; then
10355 # Linking always hardcodes the temporary library directory.
10356 hardcode_action=relink
10357 else
10358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10359 hardcode_action=immediate
10360 fi
10361else
10362 # We cannot hardcode anything, or else we can only hardcode existing
10363 # directories.
10364 hardcode_action=unsupported
10365fi
10366{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10367$as_echo "$hardcode_action" >&6; }
10368
10369if test "$hardcode_action" = relink ||
10370 test "$inherit_rpath" = yes; then
10371 # Fast installation is not supported
10372 enable_fast_install=no
10373elif test "$shlibpath_overrides_runpath" = yes ||
10374 test "$enable_shared" = no; then
10375 # Fast installation is not necessary
10376 enable_fast_install=needless
10377fi
10378
10379
10380
10381
10382
10383
10384 if test "x$enable_dlopen" != xyes; then
10385 enable_dlopen=unknown
10386 enable_dlopen_self=unknown
10387 enable_dlopen_self_static=unknown
10388else
10389 lt_cv_dlopen=no
10390 lt_cv_dlopen_libs=
10391
10392 case $host_os in
10393 beos*)
10394 lt_cv_dlopen="load_add_on"
10395 lt_cv_dlopen_libs=
10396 lt_cv_dlopen_self=yes
10397 ;;
10398
10399 mingw* | pw32* | cegcc*)
10400 lt_cv_dlopen="LoadLibrary"
10401 lt_cv_dlopen_libs=
10402 ;;
10403
10404 cygwin*)
10405 lt_cv_dlopen="dlopen"
10406 lt_cv_dlopen_libs=
10407 ;;
10408
10409 darwin*)
10410 # if libdl is installed we need to link against it
10411 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10412$as_echo_n "checking for dlopen in -ldl... " >&6; }
10413if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10414 $as_echo_n "(cached) " >&6
10415else
10416 ac_check_lib_save_LIBS=$LIBS
10417LIBS="-ldl $LIBS"
10418cat >conftest.$ac_ext <<_ACEOF
10419/* confdefs.h. */
10420_ACEOF
10421cat confdefs.h >>conftest.$ac_ext
10422cat >>conftest.$ac_ext <<_ACEOF
10423/* end confdefs.h. */
10424
10425/* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10428#ifdef __cplusplus
10429extern "C"
10430#endif
10431char dlopen ();
10432int
10433main ()
10434{
10435return dlopen ();
10436 ;
10437 return 0;
10438}
10439_ACEOF
10440rm -f conftest.$ac_objext conftest$ac_exeext
10441if { (ac_try="$ac_link"
10442case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447$as_echo "$ac_try_echo") >&5
10448 (eval "$ac_link") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest$ac_exeext && {
10458 test "$cross_compiling" = yes ||
10459 $as_test_x conftest$ac_exeext
10460 }; then
10461 ac_cv_lib_dl_dlopen=yes
10462else
10463 $as_echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_lib_dl_dlopen=no
10467fi
10468
10469rm -rf conftest.dSYM
10470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472LIBS=$ac_check_lib_save_LIBS
10473fi
10474{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10475$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10476if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10478else
10479
10480 lt_cv_dlopen="dyld"
10481 lt_cv_dlopen_libs=
10482 lt_cv_dlopen_self=yes
10483
10484fi
10485
10486 ;;
10487
10488 *)
10489 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10490$as_echo_n "checking for shl_load... " >&6; }
10491if test "${ac_cv_func_shl_load+set}" = set; then
10492 $as_echo_n "(cached) " >&6
10493else
10494 cat >conftest.$ac_ext <<_ACEOF
10495/* confdefs.h. */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h. */
10500/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10502#define shl_load innocuous_shl_load
10503
10504/* System header to define __stub macros and hopefully few prototypes,
10505 which can conflict with char shl_load (); below.
10506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507 <limits.h> exists even on freestanding compilers. */
10508
10509#ifdef __STDC__
10510# include <limits.h>
10511#else
10512# include <assert.h>
10513#endif
10514
10515#undef shl_load
10516
10517/* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10520#ifdef __cplusplus
10521extern "C"
10522#endif
10523char shl_load ();
10524/* The GNU C library defines this for functions which it implements
10525 to always fail with ENOSYS. Some functions are actually named
10526 something starting with __ and the normal name is an alias. */
10527#if defined __stub_shl_load || defined __stub___shl_load
10528choke me
10529#endif
10530
10531int
10532main ()
10533{
10534return shl_load ();
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext conftest$ac_exeext
10540if { (ac_try="$ac_link"
10541case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
10545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546$as_echo "$ac_try_echo") >&5
10547 (eval "$ac_link") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest$ac_exeext && {
10557 test "$cross_compiling" = yes ||
10558 $as_test_x conftest$ac_exeext
10559 }; then
10560 ac_cv_func_shl_load=yes
10561else
10562 $as_echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_func_shl_load=no
10566fi
10567
10568rm -rf conftest.dSYM
10569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10571fi
10572{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10573$as_echo "$ac_cv_func_shl_load" >&6; }
10574if test "x$ac_cv_func_shl_load" = x""yes; then
10575 lt_cv_dlopen="shl_load"
10576else
10577 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10578$as_echo_n "checking for shl_load in -ldld... " >&6; }
10579if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10580 $as_echo_n "(cached) " >&6
10581else
10582 ac_check_lib_save_LIBS=$LIBS
10583LIBS="-ldld $LIBS"
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590
10591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char shl_load ();
10598int
10599main ()
10600{
10601return shl_load ();
10602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
10607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613$as_echo "$ac_try_echo") >&5
10614 (eval "$ac_link") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext && {
10624 test "$cross_compiling" = yes ||
10625 $as_test_x conftest$ac_exeext
10626 }; then
10627 ac_cv_lib_dld_shl_load=yes
10628else
10629 $as_echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_cv_lib_dld_shl_load=no
10633fi
10634
10635rm -rf conftest.dSYM
10636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10638LIBS=$ac_check_lib_save_LIBS
10639fi
10640{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10641$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10642if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10643 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10644else
10645 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10646$as_echo_n "checking for dlopen... " >&6; }
10647if test "${ac_cv_func_dlopen+set}" = set; then
10648 $as_echo_n "(cached) " >&6
10649else
10650 cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10658#define dlopen innocuous_dlopen
10659
10660/* System header to define __stub macros and hopefully few prototypes,
10661 which can conflict with char dlopen (); below.
10662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663 <limits.h> exists even on freestanding compilers. */
10664
10665#ifdef __STDC__
10666# include <limits.h>
10667#else
10668# include <assert.h>
10669#endif
10670
10671#undef dlopen
10672
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
10679char dlopen ();
10680/* The GNU C library defines this for functions which it implements
10681 to always fail with ENOSYS. Some functions are actually named
10682 something starting with __ and the normal name is an alias. */
10683#if defined __stub_dlopen || defined __stub___dlopen
10684choke me
10685#endif
10686
10687int
10688main ()
10689{
10690return dlopen ();
10691 ;
10692 return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext conftest$ac_exeext
10696if { (ac_try="$ac_link"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702$as_echo "$ac_try_echo") >&5
10703 (eval "$ac_link") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && {
10710 test -z "$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 } && test -s conftest$ac_exeext && {
10713 test "$cross_compiling" = yes ||
10714 $as_test_x conftest$ac_exeext
10715 }; then
10716 ac_cv_func_dlopen=yes
10717else
10718 $as_echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_cv_func_dlopen=no
10722fi
10723
10724rm -rf conftest.dSYM
10725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10726 conftest$ac_exeext conftest.$ac_ext
10727fi
10728{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10729$as_echo "$ac_cv_func_dlopen" >&6; }
10730if test "x$ac_cv_func_dlopen" = x""yes; then
10731 lt_cv_dlopen="dlopen"
10732else
10733 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10734$as_echo_n "checking for dlopen in -ldl... " >&6; }
10735if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10736 $as_echo_n "(cached) " >&6
10737else
10738 ac_check_lib_save_LIBS=$LIBS
10739LIBS="-ldl $LIBS"
10740cat >conftest.$ac_ext <<_ACEOF
10741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
10746
10747/* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750#ifdef __cplusplus
10751extern "C"
10752#endif
10753char dlopen ();
10754int
10755main ()
10756{
10757return dlopen ();
10758 ;
10759 return 0;
10760}
10761_ACEOF
10762rm -f conftest.$ac_objext conftest$ac_exeext
10763if { (ac_try="$ac_link"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10769$as_echo "$ac_try_echo") >&5
10770 (eval "$ac_link") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest$ac_exeext && {
10780 test "$cross_compiling" = yes ||
10781 $as_test_x conftest$ac_exeext
10782 }; then
10783 ac_cv_lib_dl_dlopen=yes
10784else
10785 $as_echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ac_cv_lib_dl_dlopen=no
10789fi
10790
10791rm -rf conftest.dSYM
10792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10793 conftest$ac_exeext conftest.$ac_ext
10794LIBS=$ac_check_lib_save_LIBS
10795fi
10796{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10797$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10798if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10800else
10801 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10802$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10803if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10804 $as_echo_n "(cached) " >&6
10805else
10806 ac_check_lib_save_LIBS=$LIBS
10807LIBS="-lsvld $LIBS"
10808cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char dlopen ();
10822int
10823main ()
10824{
10825return dlopen ();
10826 ;
10827 return 0;
10828}
10829_ACEOF
10830rm -f conftest.$ac_objext conftest$ac_exeext
10831if { (ac_try="$ac_link"
10832case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835esac
10836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10837$as_echo "$ac_try_echo") >&5
10838 (eval "$ac_link") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext && {
10848 test "$cross_compiling" = yes ||
10849 $as_test_x conftest$ac_exeext
10850 }; then
10851 ac_cv_lib_svld_dlopen=yes
10852else
10853 $as_echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 ac_cv_lib_svld_dlopen=no
10857fi
10858
10859rm -rf conftest.dSYM
10860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10861 conftest$ac_exeext conftest.$ac_ext
10862LIBS=$ac_check_lib_save_LIBS
10863fi
10864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10865$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10866if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10868else
10869 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10870$as_echo_n "checking for dld_link in -ldld... " >&6; }
10871if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10872 $as_echo_n "(cached) " >&6
10873else
10874 ac_check_lib_save_LIBS=$LIBS
10875LIBS="-ldld $LIBS"
10876cat >conftest.$ac_ext <<_ACEOF
10877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
10882
10883/* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889char dld_link ();
10890int
10891main ()
10892{
10893return dld_link ();
10894 ;
10895 return 0;
10896}
10897_ACEOF
10898rm -f conftest.$ac_objext conftest$ac_exeext
10899if { (ac_try="$ac_link"
10900case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10905$as_echo "$ac_try_echo") >&5
10906 (eval "$ac_link") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext && {
10916 test "$cross_compiling" = yes ||
10917 $as_test_x conftest$ac_exeext
10918 }; then
10919 ac_cv_lib_dld_dld_link=yes
10920else
10921 $as_echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_lib_dld_dld_link=no
10925fi
10926
10927rm -rf conftest.dSYM
10928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10930LIBS=$ac_check_lib_save_LIBS
10931fi
10932{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10933$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10934if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10935 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10936fi
10937
10938
10939fi
10940
10941
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950
10951fi
10952
10953 ;;
10954 esac
10955
10956 if test "x$lt_cv_dlopen" != xno; then
10957 enable_dlopen=yes
10958 else
10959 enable_dlopen=no
10960 fi
10961
10962 case $lt_cv_dlopen in
10963 dlopen)
10964 save_CPPFLAGS="$CPPFLAGS"
10965 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10966
10967 save_LDFLAGS="$LDFLAGS"
10968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10969
10970 save_LIBS="$LIBS"
10971 LIBS="$lt_cv_dlopen_libs $LIBS"
10972
10973 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10974$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10975if test "${lt_cv_dlopen_self+set}" = set; then
10976 $as_echo_n "(cached) " >&6
10977else
10978 if test "$cross_compiling" = yes; then :
10979 lt_cv_dlopen_self=cross
10980else
10981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10982 lt_status=$lt_dlunknown
10983 cat > conftest.$ac_ext <<_LT_EOF
10984#line 10984 "configure"
10985#include "confdefs.h"
10986
10987#if HAVE_DLFCN_H
10988#include <dlfcn.h>
10989#endif
10990
10991#include <stdio.h>
10992
10993#ifdef RTLD_GLOBAL
10994# define LT_DLGLOBAL RTLD_GLOBAL
10995#else
10996# ifdef DL_GLOBAL
10997# define LT_DLGLOBAL DL_GLOBAL
10998# else
10999# define LT_DLGLOBAL 0
11000# endif
11001#endif
11002
11003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11004 find out it does not work in some platform. */
11005#ifndef LT_DLLAZY_OR_NOW
11006# ifdef RTLD_LAZY
11007# define LT_DLLAZY_OR_NOW RTLD_LAZY
11008# else
11009# ifdef DL_LAZY
11010# define LT_DLLAZY_OR_NOW DL_LAZY
11011# else
11012# ifdef RTLD_NOW
11013# define LT_DLLAZY_OR_NOW RTLD_NOW
11014# else
11015# ifdef DL_NOW
11016# define LT_DLLAZY_OR_NOW DL_NOW
11017# else
11018# define LT_DLLAZY_OR_NOW 0
11019# endif
11020# endif
11021# endif
11022# endif
11023#endif
11024
11025void fnord() { int i=42;}
11026int main ()
11027{
11028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11029 int status = $lt_dlunknown;
11030
11031 if (self)
11032 {
11033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11035 /* dlclose (self); */
11036 }
11037 else
11038 puts (dlerror ());
11039
11040 return status;
11041}
11042_LT_EOF
11043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11044 (eval $ac_link) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11048 (./conftest; exit; ) >&5 2>/dev/null
11049 lt_status=$?
11050 case x$lt_status in
11051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 esac
11055 else :
11056 # compilation failed
11057 lt_cv_dlopen_self=no
11058 fi
11059fi
11060rm -fr conftest*
11061
11062
11063fi
11064{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11065$as_echo "$lt_cv_dlopen_self" >&6; }
11066
11067 if test "x$lt_cv_dlopen_self" = xyes; then
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11070$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071if test "${lt_cv_dlopen_self_static+set}" = set; then
11072 $as_echo_n "(cached) " >&6
11073else
11074 if test "$cross_compiling" = yes; then :
11075 lt_cv_dlopen_self_static=cross
11076else
11077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078 lt_status=$lt_dlunknown
11079 cat > conftest.$ac_ext <<_LT_EOF
11080#line 11080 "configure"
11081#include "confdefs.h"
11082
11083#if HAVE_DLFCN_H
11084#include <dlfcn.h>
11085#endif
11086
11087#include <stdio.h>
11088
11089#ifdef RTLD_GLOBAL
11090# define LT_DLGLOBAL RTLD_GLOBAL
11091#else
11092# ifdef DL_GLOBAL
11093# define LT_DLGLOBAL DL_GLOBAL
11094# else
11095# define LT_DLGLOBAL 0
11096# endif
11097#endif
11098
11099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100 find out it does not work in some platform. */
11101#ifndef LT_DLLAZY_OR_NOW
11102# ifdef RTLD_LAZY
11103# define LT_DLLAZY_OR_NOW RTLD_LAZY
11104# else
11105# ifdef DL_LAZY
11106# define LT_DLLAZY_OR_NOW DL_LAZY
11107# else
11108# ifdef RTLD_NOW
11109# define LT_DLLAZY_OR_NOW RTLD_NOW
11110# else
11111# ifdef DL_NOW
11112# define LT_DLLAZY_OR_NOW DL_NOW
11113# else
11114# define LT_DLLAZY_OR_NOW 0
11115# endif
11116# endif
11117# endif
11118# endif
11119#endif
11120
11121void fnord() { int i=42;}
11122int main ()
11123{
11124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11125 int status = $lt_dlunknown;
11126
11127 if (self)
11128 {
11129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11131 /* dlclose (self); */
11132 }
11133 else
11134 puts (dlerror ());
11135
11136 return status;
11137}
11138_LT_EOF
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>&5
11141 ac_status=$?
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11144 (./conftest; exit; ) >&5 2>/dev/null
11145 lt_status=$?
11146 case x$lt_status in
11147 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11148 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11149 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11150 esac
11151 else :
11152 # compilation failed
11153 lt_cv_dlopen_self_static=no
11154 fi
11155fi
11156rm -fr conftest*
11157
11158
11159fi
11160{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11161$as_echo "$lt_cv_dlopen_self_static" >&6; }
11162 fi
11163
11164 CPPFLAGS="$save_CPPFLAGS"
11165 LDFLAGS="$save_LDFLAGS"
11166 LIBS="$save_LIBS"
11167 ;;
11168 esac
11169
11170 case $lt_cv_dlopen_self in
11171 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11172 *) enable_dlopen_self=unknown ;;
11173 esac
11174
11175 case $lt_cv_dlopen_self_static in
11176 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11177 *) enable_dlopen_self_static=unknown ;;
11178 esac
11179fi
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197striplib=
11198old_striplib=
11199{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11200$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11201if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11202 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11203 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11204 { $as_echo "$as_me:$LINENO: result: yes" >&5
11205$as_echo "yes" >&6; }
11206else
11207# FIXME - insert some real tests, host_os isn't really good enough
11208 case $host_os in
11209 darwin*)
11210 if test -n "$STRIP" ; then
11211 striplib="$STRIP -x"
11212 old_striplib="$STRIP -S"
11213 { $as_echo "$as_me:$LINENO: result: yes" >&5
11214$as_echo "yes" >&6; }
11215 else
11216 { $as_echo "$as_me:$LINENO: result: no" >&5
11217$as_echo "no" >&6; }
11218 fi
11219 ;;
11220 *)
11221 { $as_echo "$as_me:$LINENO: result: no" >&5
11222$as_echo "no" >&6; }
11223 ;;
11224 esac
11225fi
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238 # Report which library types will actually be built
11239 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11240$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11241 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11242$as_echo "$can_build_shared" >&6; }
11243
11244 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11245$as_echo_n "checking whether to build shared libraries... " >&6; }
11246 test "$can_build_shared" = "no" && enable_shared=no
11247
11248 # On AIX, shared libraries and static libraries use the same namespace, and
11249 # are all built from PIC.
11250 case $host_os in
11251 aix3*)
11252 test "$enable_shared" = yes && enable_static=no
11253 if test -n "$RANLIB"; then
11254 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11255 postinstall_cmds='$RANLIB $lib'
11256 fi
11257 ;;
11258
11259 aix[4-9]*)
11260 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11261 test "$enable_shared" = yes && enable_static=no
11262 fi
11263 ;;
11264 esac
11265 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11266$as_echo "$enable_shared" >&6; }
11267
11268 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11269$as_echo_n "checking whether to build static libraries... " >&6; }
11270 # Make sure either enable_shared or enable_static is yes.
11271 test "$enable_shared" = yes || enable_static=yes
11272 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11273$as_echo "$enable_static" >&6; }
11274
11275
11276
11277
11278fi
11279ac_ext=c
11280ac_cpp='$CPP $CPPFLAGS'
11281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283ac_compiler_gnu=$ac_cv_c_compiler_gnu
11284
11285CC="$lt_save_CC"
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299 ac_config_commands="$ac_config_commands libtool"
11300
11301
11302
11303
11304# Only expand once:
11305
11306
11307# Find a good install program. We prefer a C program (faster),
11308# so one script is as good as another. But avoid the broken or
11309# incompatible versions:
11310# SysV /etc/install, /usr/sbin/install
11311# SunOS /usr/etc/install
11312# IRIX /sbin/install
11313# AIX /bin/install
11314# AmigaOS /C/install, which installs bootblocks on floppy discs
11315# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11316# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11317# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11318# OS/2's system install, which has a completely different semantic
11319# ./install, which can be erroneously created by make from ./install.sh.
11320# Reject install programs that cannot install multiple files.
11321{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11322$as_echo_n "checking for a BSD-compatible install... " >&6; }
11323if test -z "$INSTALL"; then
11324if test "${ac_cv_path_install+set}" = set; then
11325 $as_echo_n "(cached) " >&6
11326else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 # Account for people who put trailing slashes in PATH elements.
11333case $as_dir/ in
11334 ./ | .// | /cC/* | \
11335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11337 /usr/ucb/* ) ;;
11338 *)
11339 # OSF1 and SCO ODT 3.0 have their own names for install.
11340 # Don't use installbsd from OSF since it installs stuff as root
11341 # by default.
11342 for ac_prog in ginstall scoinst install; do
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11345 if test $ac_prog = install &&
11346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11347 # AIX install. It has an incompatible calling convention.
11348 :
11349 elif test $ac_prog = install &&
11350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11351 # program-specific install script used by HP pwplus--don't use.
11352 :
11353 else
11354 rm -rf conftest.one conftest.two conftest.dir
11355 echo one > conftest.one
11356 echo two > conftest.two
11357 mkdir conftest.dir
11358 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11359 test -s conftest.one && test -s conftest.two &&
11360 test -s conftest.dir/conftest.one &&
11361 test -s conftest.dir/conftest.two
11362 then
11363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11364 break 3
11365 fi
11366 fi
11367 fi
11368 done
11369 done
11370 ;;
11371esac
11372
11373done
11374IFS=$as_save_IFS
11375
11376rm -rf conftest.one conftest.two conftest.dir
11377
11378fi
11379 if test "${ac_cv_path_install+set}" = set; then
11380 INSTALL=$ac_cv_path_install
11381 else
11382 # As a last resort, use the slow shell script. Don't cache a
11383 # value for INSTALL within a source directory, because that will
11384 # break other packages using the cache if that directory is
11385 # removed, or if the value is a relative name.
11386 INSTALL=$ac_install_sh
11387 fi
11388fi
11389{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11390$as_echo "$INSTALL" >&6; }
11391
11392# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11393# It thinks the first close brace ends the variable substitution.
11394test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11395
11396test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11397
11398test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11399
11400{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11401$as_echo_n "checking for ANSI C header files... " >&6; }
11402if test "${ac_cv_header_stdc+set}" = set; then
11403 $as_echo_n "(cached) " >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411#include <stdlib.h>
11412#include <stdarg.h>
11413#include <string.h>
11414#include <float.h>
11415
11416int
11417main ()
11418{
11419
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext
11425if { (ac_try="$ac_compile"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11431$as_echo "$ac_try_echo") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && {
11439 test -z "$ac_c_werror_flag" ||
11440 test ! -s conftest.err
11441 } && test -s conftest.$ac_objext; then
11442 ac_cv_header_stdc=yes
11443else
11444 $as_echo "$as_me: failed program was:" >&5
11445sed 's/^/| /' conftest.$ac_ext >&5
11446
11447 ac_cv_header_stdc=no
11448fi
11449
11450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451
11452if test $ac_cv_header_stdc = yes; then
11453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11454 cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460#include <string.h>
11461
11462_ACEOF
11463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11464 $EGREP "memchr" >/dev/null 2>&1; then
11465 :
11466else
11467 ac_cv_header_stdc=no
11468fi
11469rm -f conftest*
11470
11471fi
11472
11473if test $ac_cv_header_stdc = yes; then
11474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11475 cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
11481#include <stdlib.h>
11482
11483_ACEOF
11484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11485 $EGREP "free" >/dev/null 2>&1; then
11486 :
11487else
11488 ac_cv_header_stdc=no
11489fi
11490rm -f conftest*
11491
11492fi
11493
11494if test $ac_cv_header_stdc = yes; then
11495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11496 if test "$cross_compiling" = yes; then
11497 :
11498else
11499 cat >conftest.$ac_ext <<_ACEOF
11500/* confdefs.h. */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h. */
11505#include <ctype.h>
11506#include <stdlib.h>
11507#if ((' ' & 0x0FF) == 0x020)
11508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11510#else
11511# define ISLOWER(c) \
11512 (('a' <= (c) && (c) <= 'i') \
11513 || ('j' <= (c) && (c) <= 'r') \
11514 || ('s' <= (c) && (c) <= 'z'))
11515# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11516#endif
11517
11518#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11519int
11520main ()
11521{
11522 int i;
11523 for (i = 0; i < 256; i++)
11524 if (XOR (islower (i), ISLOWER (i))
11525 || toupper (i) != TOUPPER (i))
11526 return 2;
11527 return 0;
11528}
11529_ACEOF
11530rm -f conftest$ac_exeext
11531if { (ac_try="$ac_link"
11532case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535esac
11536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537$as_echo "$ac_try_echo") >&5
11538 (eval "$ac_link") 2>&5
11539 ac_status=$?
11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11547$as_echo "$ac_try_echo") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 :
11553else
11554 $as_echo "$as_me: program exited with status $ac_status" >&5
11555$as_echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
11558( exit $ac_status )
11559ac_cv_header_stdc=no
11560fi
11561rm -rf conftest.dSYM
11562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11563fi
11564
11565
11566fi
11567fi
11568{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11569$as_echo "$ac_cv_header_stdc" >&6; }
11570if test $ac_cv_header_stdc = yes; then
11571
11572cat >>confdefs.h <<\_ACEOF
11573#define STDC_HEADERS 1
11574_ACEOF
11575
11576fi
11577
11578# By default we simply use the C compiler to build assembly code.
11579
11580test "${CCAS+set}" = set || CCAS=$CC
11581test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11582
11583
11584
11585depcc="$CCAS" am_compiler_list=
11586
11587{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11588$as_echo_n "checking dependency style of $depcc... " >&6; }
11589if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11590 $as_echo_n "(cached) " >&6
11591else
11592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11593 # We make a subdir and do the tests there. Otherwise we can end up
11594 # making bogus files that we don't know about and never remove. For
11595 # instance it was reported that on HP-UX the gcc test will end up
11596 # making a dummy file named `D' -- because `-MD' means `put the output
11597 # in D'.
11598 mkdir conftest.dir
11599 # Copy depcomp to subdir because otherwise we won't find it if we're
11600 # using a relative directory.
11601 cp "$am_depcomp" conftest.dir
11602 cd conftest.dir
11603 # We will build objects and dependencies in a subdirectory because
11604 # it helps to detect inapplicable dependency modes. For instance
11605 # both Tru64's cc and ICC support -MD to output dependencies as a
11606 # side effect of compilation, but ICC will put the dependencies in
11607 # the current directory while Tru64 will put them in the object
11608 # directory.
11609 mkdir sub
11610
11611 am_cv_CCAS_dependencies_compiler_type=none
11612 if test "$am_compiler_list" = ""; then
11613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11614 fi
11615 for depmode in $am_compiler_list; do
11616 # Setup a source with many dependencies, because some compilers
11617 # like to wrap large dependency lists on column 80 (with \), and
11618 # we should not choose a depcomp mode which is confused by this.
11619 #
11620 # We need to recreate these files for each test, as the compiler may
11621 # overwrite some of them when testing with obscure command lines.
11622 # This happens at least with the AIX C compiler.
11623 : > sub/conftest.c
11624 for i in 1 2 3 4 5 6; do
11625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11626 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11627 # Solaris 8's {/usr,}/bin/sh.
11628 touch sub/conftst$i.h
11629 done
11630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11631
11632 case $depmode in
11633 nosideeffect)
11634 # after this tag, mechanisms are not by side-effect, so they'll
11635 # only be used when explicitly requested
11636 if test "x$enable_dependency_tracking" = xyes; then
11637 continue
11638 else
11639 break
11640 fi
11641 ;;
11642 none) break ;;
11643 esac
11644 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11645 # mode. It turns out that the SunPro C++ compiler does not properly
11646 # handle `-M -o', and we need to detect this.
11647 if depmode=$depmode \
11648 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11649 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11650 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11651 >/dev/null 2>conftest.err &&
11652 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11653 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11654 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11655 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11656 # icc doesn't choke on unknown options, it will just issue warnings
11657 # or remarks (even with -Werror). So we grep stderr for any message
11658 # that says an option was ignored or not supported.
11659 # When given -MP, icc 7.0 and 7.1 complain thusly:
11660 # icc: Command line warning: ignoring option '-M'; no argument required
11661 # The diagnosis changed in icc 8.0:
11662 # icc: Command line remark: option '-MP' not supported
11663 if (grep 'ignoring option' conftest.err ||
11664 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11665 am_cv_CCAS_dependencies_compiler_type=$depmode
11666 break
11667 fi
11668 fi
11669 done
11670
11671 cd ..
11672 rm -rf conftest.dir
11673else
11674 am_cv_CCAS_dependencies_compiler_type=none
11675fi
11676
11677fi
11678{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11679$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11680CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11681
11682 if
11683 test "x$enable_dependency_tracking" != xno \
11684 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11685 am__fastdepCCAS_TRUE=
11686 am__fastdepCCAS_FALSE='#'
11687else
11688 am__fastdepCCAS_TRUE='#'
11689 am__fastdepCCAS_FALSE=
11690fi
11691
11692
11693
11694
11695 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11696$as_echo_n "checking whether NLS is requested... " >&6; }
11697 # Check whether --enable-nls was given.
11698if test "${enable_nls+set}" = set; then
11699 enableval=$enable_nls; USE_NLS=$enableval
11700else
11701 USE_NLS=yes
11702fi
11703
11704 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11705$as_echo "$USE_NLS" >&6; }
11706
11707
11708
11709
11710 GETTEXT_MACRO_VERSION=0.17
11711
11712
11713
11714
11715# Prepare PATH_SEPARATOR.
11716# The user is always right.
11717if test "${PATH_SEPARATOR+set}" != set; then
11718 echo "#! /bin/sh" >conf$$.sh
11719 echo "exit 0" >>conf$$.sh
11720 chmod +x conf$$.sh
11721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11722 PATH_SEPARATOR=';'
11723 else
11724 PATH_SEPARATOR=:
11725 fi
11726 rm -f conf$$.sh
11727fi
11728
11729# Find out how to test for executable files. Don't use a zero-byte file,
11730# as systems may use methods other than mode bits to determine executability.
11731cat >conf$$.file <<_ASEOF
11732#! /bin/sh
11733exit 0
11734_ASEOF
11735chmod +x conf$$.file
11736if test -x conf$$.file >/dev/null 2>&1; then
11737 ac_executable_p="test -x"
11738else
11739 ac_executable_p="test -f"
11740fi
11741rm -f conf$$.file
11742
11743# Extract the first word of "msgfmt", so it can be a program name with args.
11744set dummy msgfmt; ac_word=$2
11745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11746$as_echo_n "checking for $ac_word... " >&6; }
11747if test "${ac_cv_path_MSGFMT+set}" = set; then
11748 $as_echo_n "(cached) " >&6
11749else
11750 case "$MSGFMT" in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11753 ;;
11754 *)
11755 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11756 for ac_dir in $PATH; do
11757 IFS="$ac_save_IFS"
11758 test -z "$ac_dir" && ac_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11761 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11762 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11763 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11764 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11765 break 2
11766 fi
11767 fi
11768 done
11769 done
11770 IFS="$ac_save_IFS"
11771 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11772 ;;
11773esac
11774fi
11775MSGFMT="$ac_cv_path_MSGFMT"
11776if test "$MSGFMT" != ":"; then
11777 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11778$as_echo "$MSGFMT" >&6; }
11779else
11780 { $as_echo "$as_me:$LINENO: result: no" >&5
11781$as_echo "no" >&6; }
11782fi
11783
11784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11785set dummy gmsgfmt; ac_word=$2
11786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
11788if test "${ac_cv_path_GMSGFMT+set}" = set; then
11789 $as_echo_n "(cached) " >&6
11790else
11791 case $GMSGFMT in
11792 [\\/]* | ?:[\\/]*)
11793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11794 ;;
11795 *)
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808done
11809IFS=$as_save_IFS
11810
11811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11812 ;;
11813esac
11814fi
11815GMSGFMT=$ac_cv_path_GMSGFMT
11816if test -n "$GMSGFMT"; then
11817 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11818$as_echo "$GMSGFMT" >&6; }
11819else
11820 { $as_echo "$as_me:$LINENO: result: no" >&5
11821$as_echo "no" >&6; }
11822fi
11823
11824
11825
11826 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11827 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11828 *) MSGFMT_015=$MSGFMT ;;
11829 esac
11830
11831 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11832 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11833 *) GMSGFMT_015=$GMSGFMT ;;
11834 esac
11835
11836
11837
11838# Prepare PATH_SEPARATOR.
11839# The user is always right.
11840if test "${PATH_SEPARATOR+set}" != set; then
11841 echo "#! /bin/sh" >conf$$.sh
11842 echo "exit 0" >>conf$$.sh
11843 chmod +x conf$$.sh
11844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11845 PATH_SEPARATOR=';'
11846 else
11847 PATH_SEPARATOR=:
11848 fi
11849 rm -f conf$$.sh
11850fi
11851
11852# Find out how to test for executable files. Don't use a zero-byte file,
11853# as systems may use methods other than mode bits to determine executability.
11854cat >conf$$.file <<_ASEOF
11855#! /bin/sh
11856exit 0
11857_ASEOF
11858chmod +x conf$$.file
11859if test -x conf$$.file >/dev/null 2>&1; then
11860 ac_executable_p="test -x"
11861else
11862 ac_executable_p="test -f"
11863fi
11864rm -f conf$$.file
11865
11866# Extract the first word of "xgettext", so it can be a program name with args.
11867set dummy xgettext; ac_word=$2
11868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11869$as_echo_n "checking for $ac_word... " >&6; }
11870if test "${ac_cv_path_XGETTEXT+set}" = set; then
11871 $as_echo_n "(cached) " >&6
11872else
11873 case "$XGETTEXT" in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11876 ;;
11877 *)
11878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11879 for ac_dir in $PATH; do
11880 IFS="$ac_save_IFS"
11881 test -z "$ac_dir" && ac_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11884 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11885 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11886 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11887 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11888 break 2
11889 fi
11890 fi
11891 done
11892 done
11893 IFS="$ac_save_IFS"
11894 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11895 ;;
11896esac
11897fi
11898XGETTEXT="$ac_cv_path_XGETTEXT"
11899if test "$XGETTEXT" != ":"; then
11900 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11901$as_echo "$XGETTEXT" >&6; }
11902else
11903 { $as_echo "$as_me:$LINENO: result: no" >&5
11904$as_echo "no" >&6; }
11905fi
11906
11907 rm -f messages.po
11908
11909 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11910 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11911 *) XGETTEXT_015=$XGETTEXT ;;
11912 esac
11913
11914
11915
11916# Prepare PATH_SEPARATOR.
11917# The user is always right.
11918if test "${PATH_SEPARATOR+set}" != set; then
11919 echo "#! /bin/sh" >conf$$.sh
11920 echo "exit 0" >>conf$$.sh
11921 chmod +x conf$$.sh
11922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11923 PATH_SEPARATOR=';'
11924 else
11925 PATH_SEPARATOR=:
11926 fi
11927 rm -f conf$$.sh
11928fi
11929
11930# Find out how to test for executable files. Don't use a zero-byte file,
11931# as systems may use methods other than mode bits to determine executability.
11932cat >conf$$.file <<_ASEOF
11933#! /bin/sh
11934exit 0
11935_ASEOF
11936chmod +x conf$$.file
11937if test -x conf$$.file >/dev/null 2>&1; then
11938 ac_executable_p="test -x"
11939else
11940 ac_executable_p="test -f"
11941fi
11942rm -f conf$$.file
11943
11944# Extract the first word of "msgmerge", so it can be a program name with args.
11945set dummy msgmerge; ac_word=$2
11946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
11948if test "${ac_cv_path_MSGMERGE+set}" = set; then
11949 $as_echo_n "(cached) " >&6
11950else
11951 case "$MSGMERGE" in
11952 [\\/]* | ?:[\\/]*)
11953 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11954 ;;
11955 *)
11956 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11957 for ac_dir in $PATH; do
11958 IFS="$ac_save_IFS"
11959 test -z "$ac_dir" && ac_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11962 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11963 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11964 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11965 break 2
11966 fi
11967 fi
11968 done
11969 done
11970 IFS="$ac_save_IFS"
11971 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11972 ;;
11973esac
11974fi
11975MSGMERGE="$ac_cv_path_MSGMERGE"
11976if test "$MSGMERGE" != ":"; then
11977 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11978$as_echo "$MSGMERGE" >&6; }
11979else
11980 { $as_echo "$as_me:$LINENO: result: no" >&5
11981$as_echo "no" >&6; }
11982fi
11983
11984
11985 test -n "$localedir" || localedir='${datadir}/locale'
11986
11987
11988 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11989
11990
11991 ac_config_commands="$ac_config_commands po-directories"
11992
11993
11994
11995 if test "X$prefix" = "XNONE"; then
11996 acl_final_prefix="$ac_default_prefix"
11997 else
11998 acl_final_prefix="$prefix"
11999 fi
12000 if test "X$exec_prefix" = "XNONE"; then
12001 acl_final_exec_prefix='${prefix}'
12002 else
12003 acl_final_exec_prefix="$exec_prefix"
12004 fi
12005 acl_save_prefix="$prefix"
12006 prefix="$acl_final_prefix"
12007 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12008 prefix="$acl_save_prefix"
12009
12010
12011# Check whether --with-gnu-ld was given.
12012if test "${with_gnu_ld+set}" = set; then
12013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12014else
12015 with_gnu_ld=no
12016fi
12017
12018# Prepare PATH_SEPARATOR.
12019# The user is always right.
12020if test "${PATH_SEPARATOR+set}" != set; then
12021 echo "#! /bin/sh" >conf$$.sh
12022 echo "exit 0" >>conf$$.sh
12023 chmod +x conf$$.sh
12024 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12025 PATH_SEPARATOR=';'
12026 else
12027 PATH_SEPARATOR=:
12028 fi
12029 rm -f conf$$.sh
12030fi
12031ac_prog=ld
12032if test "$GCC" = yes; then
12033 # Check if gcc -print-prog-name=ld gives a path.
12034 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12035$as_echo_n "checking for ld used by GCC... " >&6; }
12036 case $host in
12037 *-*-mingw*)
12038 # gcc leaves a trailing carriage return which upsets mingw
12039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12040 *)
12041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12042 esac
12043 case $ac_prog in
12044 # Accept absolute paths.
12045 [\\/]* | [A-Za-z]:[\\/]*)
12046 re_direlt='/[^/][^/]*/\.\./'
12047 # Canonicalize the path of ld
12048 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12049 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12050 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12051 done
12052 test -z "$LD" && LD="$ac_prog"
12053 ;;
12054 "")
12055 # If it fails, then pretend we aren't using GCC.
12056 ac_prog=ld
12057 ;;
12058 *)
12059 # If it is relative, then search for the first ld in PATH.
12060 with_gnu_ld=unknown
12061 ;;
12062 esac
12063elif test "$with_gnu_ld" = yes; then
12064 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12065$as_echo_n "checking for GNU ld... " >&6; }
12066else
12067 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12068$as_echo_n "checking for non-GNU ld... " >&6; }
12069fi
12070if test "${acl_cv_path_LD+set}" = set; then
12071 $as_echo_n "(cached) " >&6
12072else
12073 if test -z "$LD"; then
12074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12075 for ac_dir in $PATH; do
12076 test -z "$ac_dir" && ac_dir=.
12077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12078 acl_cv_path_LD="$ac_dir/$ac_prog"
12079 # Check to see if the program is GNU ld. I'd rather use --version,
12080 # but apparently some GNU ld's only accept -v.
12081 # Break only if it was the GNU/non-GNU ld that we prefer.
12082 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12083 *GNU* | *'with BFD'*)
12084 test "$with_gnu_ld" != no && break ;;
12085 *)
12086 test "$with_gnu_ld" != yes && break ;;
12087 esac
12088 fi
12089 done
12090 IFS="$ac_save_ifs"
12091else
12092 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12093fi
12094fi
12095
12096LD="$acl_cv_path_LD"
12097if test -n "$LD"; then
12098 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12099$as_echo "$LD" >&6; }
12100else
12101 { $as_echo "$as_me:$LINENO: result: no" >&5
12102$as_echo "no" >&6; }
12103fi
12104test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12105$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12106 { (exit 1); exit 1; }; }
12107{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12108$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12109if test "${acl_cv_prog_gnu_ld+set}" = set; then
12110 $as_echo_n "(cached) " >&6
12111else
12112 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12113case `$LD -v 2>&1 </dev/null` in
12114*GNU* | *'with BFD'*)
12115 acl_cv_prog_gnu_ld=yes ;;
12116*)
12117 acl_cv_prog_gnu_ld=no ;;
12118esac
12119fi
12120{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12121$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12122with_gnu_ld=$acl_cv_prog_gnu_ld
12123
12124
12125
12126
12127 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12128$as_echo_n "checking for shared library run path origin... " >&6; }
12129if test "${acl_cv_rpath+set}" = set; then
12130 $as_echo_n "(cached) " >&6
12131else
12132
12133 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12134 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12135 . ./conftest.sh
12136 rm -f ./conftest.sh
12137 acl_cv_rpath=done
12138
12139fi
12140{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12141$as_echo "$acl_cv_rpath" >&6; }
12142 wl="$acl_cv_wl"
12143 acl_libext="$acl_cv_libext"
12144 acl_shlibext="$acl_cv_shlibext"
12145 acl_libname_spec="$acl_cv_libname_spec"
12146 acl_library_names_spec="$acl_cv_library_names_spec"
12147 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12148 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12149 acl_hardcode_direct="$acl_cv_hardcode_direct"
12150 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12151 # Check whether --enable-rpath was given.
12152if test "${enable_rpath+set}" = set; then
12153 enableval=$enable_rpath; :
12154else
12155 enable_rpath=yes
12156fi
12157
12158
12159
12160 acl_libdirstem=lib
12161 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12162 if test -n "$searchpath"; then
12163 acl_save_IFS="${IFS= }"; IFS=":"
12164 for searchdir in $searchpath; do
12165 if test -d "$searchdir"; then
12166 case "$searchdir" in
12167 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12168 *) searchdir=`cd "$searchdir" && pwd`
12169 case "$searchdir" in
12170 */lib64 ) acl_libdirstem=lib64 ;;
12171 esac ;;
12172 esac
12173 fi
12174 done
12175 IFS="$acl_save_IFS"
12176 fi
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 use_additional=yes
12187
12188 acl_save_prefix="$prefix"
12189 prefix="$acl_final_prefix"
12190 acl_save_exec_prefix="$exec_prefix"
12191 exec_prefix="$acl_final_exec_prefix"
12192
12193 eval additional_includedir=\"$includedir\"
12194 eval additional_libdir=\"$libdir\"
12195
12196 exec_prefix="$acl_save_exec_prefix"
12197 prefix="$acl_save_prefix"
12198
12199
12200# Check whether --with-libiconv-prefix was given.
12201if test "${with_libiconv_prefix+set}" = set; then
12202 withval=$with_libiconv_prefix;
12203 if test "X$withval" = "Xno"; then
12204 use_additional=no
12205 else
12206 if test "X$withval" = "X"; then
12207
12208 acl_save_prefix="$prefix"
12209 prefix="$acl_final_prefix"
12210 acl_save_exec_prefix="$exec_prefix"
12211 exec_prefix="$acl_final_exec_prefix"
12212
12213 eval additional_includedir=\"$includedir\"
12214 eval additional_libdir=\"$libdir\"
12215
12216 exec_prefix="$acl_save_exec_prefix"
12217 prefix="$acl_save_prefix"
12218
12219 else
12220 additional_includedir="$withval/include"
12221 additional_libdir="$withval/$acl_libdirstem"
12222 fi
12223 fi
12224
12225fi
12226
12227 LIBICONV=
12228 LTLIBICONV=
12229 INCICONV=
12230 LIBICONV_PREFIX=
12231 rpathdirs=
12232 ltrpathdirs=
12233 names_already_handled=
12234 names_next_round='iconv '
12235 while test -n "$names_next_round"; do
12236 names_this_round="$names_next_round"
12237 names_next_round=
12238 for name in $names_this_round; do
12239 already_handled=
12240 for n in $names_already_handled; do
12241 if test "$n" = "$name"; then
12242 already_handled=yes
12243 break
12244 fi
12245 done
12246 if test -z "$already_handled"; then
12247 names_already_handled="$names_already_handled $name"
12248 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12249 eval value=\"\$HAVE_LIB$uppername\"
12250 if test -n "$value"; then
12251 if test "$value" = yes; then
12252 eval value=\"\$LIB$uppername\"
12253 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12254 eval value=\"\$LTLIB$uppername\"
12255 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12256 else
12257 :
12258 fi
12259 else
12260 found_dir=
12261 found_la=
12262 found_so=
12263 found_a=
12264 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12265 if test -n "$acl_shlibext"; then
12266 shrext=".$acl_shlibext" # typically: shrext=.so
12267 else
12268 shrext=
12269 fi
12270 if test $use_additional = yes; then
12271 dir="$additional_libdir"
12272 if test -n "$acl_shlibext"; then
12273 if test -f "$dir/$libname$shrext"; then
12274 found_dir="$dir"
12275 found_so="$dir/$libname$shrext"
12276 else
12277 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12278 ver=`(cd "$dir" && \
12279 for f in "$libname$shrext".*; do echo "$f"; done \
12280 | sed -e "s,^$libname$shrext\\\\.,," \
12281 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12282 | sed 1q ) 2>/dev/null`
12283 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12284 found_dir="$dir"
12285 found_so="$dir/$libname$shrext.$ver"
12286 fi
12287 else
12288 eval library_names=\"$acl_library_names_spec\"
12289 for f in $library_names; do
12290 if test -f "$dir/$f"; then
12291 found_dir="$dir"
12292 found_so="$dir/$f"
12293 break
12294 fi
12295 done
12296 fi
12297 fi
12298 fi
12299 if test "X$found_dir" = "X"; then
12300 if test -f "$dir/$libname.$acl_libext"; then
12301 found_dir="$dir"
12302 found_a="$dir/$libname.$acl_libext"
12303 fi
12304 fi
12305 if test "X$found_dir" != "X"; then
12306 if test -f "$dir/$libname.la"; then
12307 found_la="$dir/$libname.la"
12308 fi
12309 fi
12310 fi
12311 if test "X$found_dir" = "X"; then
12312 for x in $LDFLAGS $LTLIBICONV; do
12313
12314 acl_save_prefix="$prefix"
12315 prefix="$acl_final_prefix"
12316 acl_save_exec_prefix="$exec_prefix"
12317 exec_prefix="$acl_final_exec_prefix"
12318 eval x=\"$x\"
12319 exec_prefix="$acl_save_exec_prefix"
12320 prefix="$acl_save_prefix"
12321
12322 case "$x" in
12323 -L*)
12324 dir=`echo "X$x" | sed -e 's/^X-L//'`
12325 if test -n "$acl_shlibext"; then
12326 if test -f "$dir/$libname$shrext"; then
12327 found_dir="$dir"
12328 found_so="$dir/$libname$shrext"
12329 else
12330 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12331 ver=`(cd "$dir" && \
12332 for f in "$libname$shrext".*; do echo "$f"; done \
12333 | sed -e "s,^$libname$shrext\\\\.,," \
12334 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12335 | sed 1q ) 2>/dev/null`
12336 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12337 found_dir="$dir"
12338 found_so="$dir/$libname$shrext.$ver"
12339 fi
12340 else
12341 eval library_names=\"$acl_library_names_spec\"
12342 for f in $library_names; do
12343 if test -f "$dir/$f"; then
12344 found_dir="$dir"
12345 found_so="$dir/$f"
12346 break
12347 fi
12348 done
12349 fi
12350 fi
12351 fi
12352 if test "X$found_dir" = "X"; then
12353 if test -f "$dir/$libname.$acl_libext"; then
12354 found_dir="$dir"
12355 found_a="$dir/$libname.$acl_libext"
12356 fi
12357 fi
12358 if test "X$found_dir" != "X"; then
12359 if test -f "$dir/$libname.la"; then
12360 found_la="$dir/$libname.la"
12361 fi
12362 fi
12363 ;;
12364 esac
12365 if test "X$found_dir" != "X"; then
12366 break
12367 fi
12368 done
12369 fi
12370 if test "X$found_dir" != "X"; then
12371 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12372 if test "X$found_so" != "X"; then
12373 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12374 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12375 else
12376 haveit=
12377 for x in $ltrpathdirs; do
12378 if test "X$x" = "X$found_dir"; then
12379 haveit=yes
12380 break
12381 fi
12382 done
12383 if test -z "$haveit"; then
12384 ltrpathdirs="$ltrpathdirs $found_dir"
12385 fi
12386 if test "$acl_hardcode_direct" = yes; then
12387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12388 else
12389 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12391 haveit=
12392 for x in $rpathdirs; do
12393 if test "X$x" = "X$found_dir"; then
12394 haveit=yes
12395 break
12396 fi
12397 done
12398 if test -z "$haveit"; then
12399 rpathdirs="$rpathdirs $found_dir"
12400 fi
12401 else
12402 haveit=
12403 for x in $LDFLAGS $LIBICONV; do
12404
12405 acl_save_prefix="$prefix"
12406 prefix="$acl_final_prefix"
12407 acl_save_exec_prefix="$exec_prefix"
12408 exec_prefix="$acl_final_exec_prefix"
12409 eval x=\"$x\"
12410 exec_prefix="$acl_save_exec_prefix"
12411 prefix="$acl_save_prefix"
12412
12413 if test "X$x" = "X-L$found_dir"; then
12414 haveit=yes
12415 break
12416 fi
12417 done
12418 if test -z "$haveit"; then
12419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12420 fi
12421 if test "$acl_hardcode_minus_L" != no; then
12422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12423 else
12424 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12425 fi
12426 fi
12427 fi
12428 fi
12429 else
12430 if test "X$found_a" != "X"; then
12431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12432 else
12433 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12434 fi
12435 fi
12436 additional_includedir=
12437 case "$found_dir" in
12438 */$acl_libdirstem | */$acl_libdirstem/)
12439 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12440 LIBICONV_PREFIX="$basedir"
12441 additional_includedir="$basedir/include"
12442 ;;
12443 esac
12444 if test "X$additional_includedir" != "X"; then
12445 if test "X$additional_includedir" != "X/usr/include"; then
12446 haveit=
12447 if test "X$additional_includedir" = "X/usr/local/include"; then
12448 if test -n "$GCC"; then
12449 case $host_os in
12450 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12451 esac
12452 fi
12453 fi
12454 if test -z "$haveit"; then
12455 for x in $CPPFLAGS $INCICONV; do
12456
12457 acl_save_prefix="$prefix"
12458 prefix="$acl_final_prefix"
12459 acl_save_exec_prefix="$exec_prefix"
12460 exec_prefix="$acl_final_exec_prefix"
12461 eval x=\"$x\"
12462 exec_prefix="$acl_save_exec_prefix"
12463 prefix="$acl_save_prefix"
12464
12465 if test "X$x" = "X-I$additional_includedir"; then
12466 haveit=yes
12467 break
12468 fi
12469 done
12470 if test -z "$haveit"; then
12471 if test -d "$additional_includedir"; then
12472 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12473 fi
12474 fi
12475 fi
12476 fi
12477 fi
12478 if test -n "$found_la"; then
12479 save_libdir="$libdir"
12480 case "$found_la" in
12481 */* | *\\*) . "$found_la" ;;
12482 *) . "./$found_la" ;;
12483 esac
12484 libdir="$save_libdir"
12485 for dep in $dependency_libs; do
12486 case "$dep" in
12487 -L*)
12488 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12489 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12490 haveit=
12491 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12492 if test -n "$GCC"; then
12493 case $host_os in
12494 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12495 esac
12496 fi
12497 fi
12498 if test -z "$haveit"; then
12499 haveit=
12500 for x in $LDFLAGS $LIBICONV; do
12501
12502 acl_save_prefix="$prefix"
12503 prefix="$acl_final_prefix"
12504 acl_save_exec_prefix="$exec_prefix"
12505 exec_prefix="$acl_final_exec_prefix"
12506 eval x=\"$x\"
12507 exec_prefix="$acl_save_exec_prefix"
12508 prefix="$acl_save_prefix"
12509
12510 if test "X$x" = "X-L$additional_libdir"; then
12511 haveit=yes
12512 break
12513 fi
12514 done
12515 if test -z "$haveit"; then
12516 if test -d "$additional_libdir"; then
12517 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12518 fi
12519 fi
12520 haveit=
12521 for x in $LDFLAGS $LTLIBICONV; do
12522
12523 acl_save_prefix="$prefix"
12524 prefix="$acl_final_prefix"
12525 acl_save_exec_prefix="$exec_prefix"
12526 exec_prefix="$acl_final_exec_prefix"
12527 eval x=\"$x\"
12528 exec_prefix="$acl_save_exec_prefix"
12529 prefix="$acl_save_prefix"
12530
12531 if test "X$x" = "X-L$additional_libdir"; then
12532 haveit=yes
12533 break
12534 fi
12535 done
12536 if test -z "$haveit"; then
12537 if test -d "$additional_libdir"; then
12538 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12539 fi
12540 fi
12541 fi
12542 fi
12543 ;;
12544 -R*)
12545 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12546 if test "$enable_rpath" != no; then
12547 haveit=
12548 for x in $rpathdirs; do
12549 if test "X$x" = "X$dir"; then
12550 haveit=yes
12551 break
12552 fi
12553 done
12554 if test -z "$haveit"; then
12555 rpathdirs="$rpathdirs $dir"
12556 fi
12557 haveit=
12558 for x in $ltrpathdirs; do
12559 if test "X$x" = "X$dir"; then
12560 haveit=yes
12561 break
12562 fi
12563 done
12564 if test -z "$haveit"; then
12565 ltrpathdirs="$ltrpathdirs $dir"
12566 fi
12567 fi
12568 ;;
12569 -l*)
12570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12571 ;;
12572 *.la)
12573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12574 ;;
12575 *)
12576 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12578 ;;
12579 esac
12580 done
12581 fi
12582 else
12583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12585 fi
12586 fi
12587 fi
12588 done
12589 done
12590 if test "X$rpathdirs" != "X"; then
12591 if test -n "$acl_hardcode_libdir_separator"; then
12592 alldirs=
12593 for found_dir in $rpathdirs; do
12594 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12595 done
12596 acl_save_libdir="$libdir"
12597 libdir="$alldirs"
12598 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12599 libdir="$acl_save_libdir"
12600 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12601 else
12602 for found_dir in $rpathdirs; do
12603 acl_save_libdir="$libdir"
12604 libdir="$found_dir"
12605 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12606 libdir="$acl_save_libdir"
12607 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12608 done
12609 fi
12610 fi
12611 if test "X$ltrpathdirs" != "X"; then
12612 for found_dir in $ltrpathdirs; do
12613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12614 done
12615 fi
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12642$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12643if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12644 $as_echo_n "(cached) " >&6
12645else
12646 gt_save_LIBS="$LIBS"
12647 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654#include <CoreFoundation/CFPreferences.h>
12655int
12656main ()
12657{
12658CFPreferencesCopyAppValue(NULL, NULL)
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (ac_try="$ac_link"
12665case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12670$as_echo "$ac_try_echo") >&5
12671 (eval "$ac_link") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_c_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest$ac_exeext && {
12681 test "$cross_compiling" = yes ||
12682 $as_test_x conftest$ac_exeext
12683 }; then
12684 gt_cv_func_CFPreferencesCopyAppValue=yes
12685else
12686 $as_echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 gt_cv_func_CFPreferencesCopyAppValue=no
12690fi
12691
12692rm -rf conftest.dSYM
12693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS="$gt_save_LIBS"
12696fi
12697{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12698$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12699 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12700
12701cat >>confdefs.h <<\_ACEOF
12702#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12703_ACEOF
12704
12705 fi
12706 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12707$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12708if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12709 $as_echo_n "(cached) " >&6
12710else
12711 gt_save_LIBS="$LIBS"
12712 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719#include <CoreFoundation/CFLocale.h>
12720int
12721main ()
12722{
12723CFLocaleCopyCurrent();
12724 ;
12725 return 0;
12726}
12727_ACEOF
12728rm -f conftest.$ac_objext conftest$ac_exeext
12729if { (ac_try="$ac_link"
12730case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733esac
12734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735$as_echo "$ac_try_echo") >&5
12736 (eval "$ac_link") 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest$ac_exeext && {
12746 test "$cross_compiling" = yes ||
12747 $as_test_x conftest$ac_exeext
12748 }; then
12749 gt_cv_func_CFLocaleCopyCurrent=yes
12750else
12751 $as_echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 gt_cv_func_CFLocaleCopyCurrent=no
12755fi
12756
12757rm -rf conftest.dSYM
12758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS="$gt_save_LIBS"
12761fi
12762{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12763$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12764 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12765
12766cat >>confdefs.h <<\_ACEOF
12767#define HAVE_CFLOCALECOPYCURRENT 1
12768_ACEOF
12769
12770 fi
12771 INTL_MACOSX_LIBS=
12772 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12773 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12774 fi
12775
12776
12777
12778
12779
12780
12781 LIBINTL=
12782 LTLIBINTL=
12783 POSUB=
12784
12785 case " $gt_needs " in
12786 *" need-formatstring-macros "*) gt_api_version=3 ;;
12787 *" need-ngettext "*) gt_api_version=2 ;;
12788 *) gt_api_version=1 ;;
12789 esac
12790 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12791 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12792
12793 if test "$USE_NLS" = "yes"; then
12794 gt_use_preinstalled_gnugettext=no
12795
12796
12797 if test $gt_api_version -ge 3; then
12798 gt_revision_test_code='
12799#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12800#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12801#endif
12802typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12803'
12804 else
12805 gt_revision_test_code=
12806 fi
12807 if test $gt_api_version -ge 2; then
12808 gt_expression_test_code=' + * ngettext ("", "", 0)'
12809 else
12810 gt_expression_test_code=
12811 fi
12812
12813 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12814$as_echo_n "checking for GNU gettext in libc... " >&6; }
12815if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
12816 $as_echo_n "(cached) " >&6
12817else
12818 cat >conftest.$ac_ext <<_ACEOF
12819/* confdefs.h. */
12820_ACEOF
12821cat confdefs.h >>conftest.$ac_ext
12822cat >>conftest.$ac_ext <<_ACEOF
12823/* end confdefs.h. */
12824#include <libintl.h>
12825$gt_revision_test_code
12826extern int _nl_msg_cat_cntr;
12827extern int *_nl_domain_bindings;
12828int
12829main ()
12830{
12831bindtextdomain ("", "");
12832return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext conftest$ac_exeext
12838if { (ac_try="$ac_link"
12839case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12842esac
12843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844$as_echo "$ac_try_echo") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest$ac_exeext && {
12855 test "$cross_compiling" = yes ||
12856 $as_test_x conftest$ac_exeext
12857 }; then
12858 eval "$gt_func_gnugettext_libc=yes"
12859else
12860 $as_echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 eval "$gt_func_gnugettext_libc=no"
12864fi
12865
12866rm -rf conftest.dSYM
12867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 conftest$ac_exeext conftest.$ac_ext
12869fi
12870ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
12871 $as_echo "$as_val"'`
12872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12873$as_echo "$ac_res" >&6; }
12874
12875 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12876
12877
12878
12879
12880
12881 am_save_CPPFLAGS="$CPPFLAGS"
12882
12883 for element in $INCICONV; do
12884 haveit=
12885 for x in $CPPFLAGS; do
12886
12887 acl_save_prefix="$prefix"
12888 prefix="$acl_final_prefix"
12889 acl_save_exec_prefix="$exec_prefix"
12890 exec_prefix="$acl_final_exec_prefix"
12891 eval x=\"$x\"
12892 exec_prefix="$acl_save_exec_prefix"
12893 prefix="$acl_save_prefix"
12894
12895 if test "X$x" = "X$element"; then
12896 haveit=yes
12897 break
12898 fi
12899 done
12900 if test -z "$haveit"; then
12901 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12902 fi
12903 done
12904
12905
12906 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
12907$as_echo_n "checking for iconv... " >&6; }
12908if test "${am_cv_func_iconv+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12910else
12911
12912 am_cv_func_iconv="no, consider installing GNU libiconv"
12913 am_cv_lib_iconv=no
12914 cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
12920#include <stdlib.h>
12921#include <iconv.h>
12922int
12923main ()
12924{
12925iconv_t cd = iconv_open("","");
12926 iconv(cd,NULL,NULL,NULL,NULL);
12927 iconv_close(cd);
12928 ;
12929 return 0;
12930}
12931_ACEOF
12932rm -f conftest.$ac_objext conftest$ac_exeext
12933if { (ac_try="$ac_link"
12934case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937esac
12938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939$as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext && {
12950 test "$cross_compiling" = yes ||
12951 $as_test_x conftest$ac_exeext
12952 }; then
12953 am_cv_func_iconv=yes
12954else
12955 $as_echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
12958
12959fi
12960
12961rm -rf conftest.dSYM
12962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
12964 if test "$am_cv_func_iconv" != yes; then
12965 am_save_LIBS="$LIBS"
12966 LIBS="$LIBS $LIBICONV"
12967 cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973#include <stdlib.h>
12974#include <iconv.h>
12975int
12976main ()
12977{
12978iconv_t cd = iconv_open("","");
12979 iconv(cd,NULL,NULL,NULL,NULL);
12980 iconv_close(cd);
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (ac_try="$ac_link"
12987case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12992$as_echo "$ac_try_echo") >&5
12993 (eval "$ac_link") 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } && {
13000 test -z "$ac_c_werror_flag" ||
13001 test ! -s conftest.err
13002 } && test -s conftest$ac_exeext && {
13003 test "$cross_compiling" = yes ||
13004 $as_test_x conftest$ac_exeext
13005 }; then
13006 am_cv_lib_iconv=yes
13007 am_cv_func_iconv=yes
13008else
13009 $as_echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012
13013fi
13014
13015rm -rf conftest.dSYM
13016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13017 conftest$ac_exeext conftest.$ac_ext
13018 LIBS="$am_save_LIBS"
13019 fi
13020
13021fi
13022{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13023$as_echo "$am_cv_func_iconv" >&6; }
13024 if test "$am_cv_func_iconv" = yes; then
13025 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
13026$as_echo_n "checking for working iconv... " >&6; }
13027if test "${am_cv_func_iconv_works+set}" = set; then
13028 $as_echo_n "(cached) " >&6
13029else
13030
13031 am_save_LIBS="$LIBS"
13032 if test $am_cv_lib_iconv = yes; then
13033 LIBS="$LIBS $LIBICONV"
13034 fi
13035 if test "$cross_compiling" = yes; then
13036 case "$host_os" in
13037 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13038 *) am_cv_func_iconv_works="guessing yes" ;;
13039 esac
13040else
13041 cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047
13048#include <iconv.h>
13049#include <string.h>
13050int main ()
13051{
13052 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13053 returns. */
13054 {
13055 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13056 if (cd_utf8_to_88591 != (iconv_t)(-1))
13057 {
13058 static const char input[] = "\342\202\254"; /* EURO SIGN */
13059 char buf[10];
13060 const char *inptr = input;
13061 size_t inbytesleft = strlen (input);
13062 char *outptr = buf;
13063 size_t outbytesleft = sizeof (buf);
13064 size_t res = iconv (cd_utf8_to_88591,
13065 (char **) &inptr, &inbytesleft,
13066 &outptr, &outbytesleft);
13067 if (res == 0)
13068 return 1;
13069 }
13070 }
13071#if 0 /* This bug could be worked around by the caller. */
13072 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13073 {
13074 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13075 if (cd_88591_to_utf8 != (iconv_t)(-1))
13076 {
13077 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13078 char buf[50];
13079 const char *inptr = input;
13080 size_t inbytesleft = strlen (input);
13081 char *outptr = buf;
13082 size_t outbytesleft = sizeof (buf);
13083 size_t res = iconv (cd_88591_to_utf8,
13084 (char **) &inptr, &inbytesleft,
13085 &outptr, &outbytesleft);
13086 if ((int)res > 0)
13087 return 1;
13088 }
13089 }
13090#endif
13091 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13092 provided. */
13093 if (/* Try standardized names. */
13094 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13095 /* Try IRIX, OSF/1 names. */
13096 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13097 /* Try AIX names. */
13098 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13099 /* Try HP-UX names. */
13100 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13101 return 1;
13102 return 0;
13103}
13104_ACEOF
13105rm -f conftest$ac_exeext
13106if { (ac_try="$ac_link"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13112$as_echo "$ac_try_echo") >&5
13113 (eval "$ac_link") 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13122$as_echo "$ac_try_echo") >&5
13123 (eval "$ac_try") 2>&5
13124 ac_status=$?
13125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 am_cv_func_iconv_works=yes
13128else
13129 $as_echo "$as_me: program exited with status $ac_status" >&5
13130$as_echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
13133( exit $ac_status )
13134am_cv_func_iconv_works=no
13135fi
13136rm -rf conftest.dSYM
13137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13138fi
13139
13140
13141 LIBS="$am_save_LIBS"
13142
13143fi
13144{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
13145$as_echo "$am_cv_func_iconv_works" >&6; }
13146 case "$am_cv_func_iconv_works" in
13147 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13148 *) am_func_iconv=yes ;;
13149 esac
13150 else
13151 am_func_iconv=no am_cv_lib_iconv=no
13152 fi
13153 if test "$am_func_iconv" = yes; then
13154
13155cat >>confdefs.h <<\_ACEOF
13156#define HAVE_ICONV 1
13157_ACEOF
13158
13159 fi
13160 if test "$am_cv_lib_iconv" = yes; then
13161 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13162$as_echo_n "checking how to link with libiconv... " >&6; }
13163 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
13164$as_echo "$LIBICONV" >&6; }
13165 else
13166 CPPFLAGS="$am_save_CPPFLAGS"
13167 LIBICONV=
13168 LTLIBICONV=
13169 fi
13170
13171
13172
13173
13174
13175
13176
13177
13178 use_additional=yes
13179
13180 acl_save_prefix="$prefix"
13181 prefix="$acl_final_prefix"
13182 acl_save_exec_prefix="$exec_prefix"
13183 exec_prefix="$acl_final_exec_prefix"
13184
13185 eval additional_includedir=\"$includedir\"
13186 eval additional_libdir=\"$libdir\"
13187
13188 exec_prefix="$acl_save_exec_prefix"
13189 prefix="$acl_save_prefix"
13190
13191
13192# Check whether --with-libintl-prefix was given.
13193if test "${with_libintl_prefix+set}" = set; then
13194 withval=$with_libintl_prefix;
13195 if test "X$withval" = "Xno"; then
13196 use_additional=no
13197 else
13198 if test "X$withval" = "X"; then
13199
13200 acl_save_prefix="$prefix"
13201 prefix="$acl_final_prefix"
13202 acl_save_exec_prefix="$exec_prefix"
13203 exec_prefix="$acl_final_exec_prefix"
13204
13205 eval additional_includedir=\"$includedir\"
13206 eval additional_libdir=\"$libdir\"
13207
13208 exec_prefix="$acl_save_exec_prefix"
13209 prefix="$acl_save_prefix"
13210
13211 else
13212 additional_includedir="$withval/include"
13213 additional_libdir="$withval/$acl_libdirstem"
13214 fi
13215 fi
13216
13217fi
13218
13219 LIBINTL=
13220 LTLIBINTL=
13221 INCINTL=
13222 LIBINTL_PREFIX=
13223 rpathdirs=
13224 ltrpathdirs=
13225 names_already_handled=
13226 names_next_round='intl '
13227 while test -n "$names_next_round"; do
13228 names_this_round="$names_next_round"
13229 names_next_round=
13230 for name in $names_this_round; do
13231 already_handled=
13232 for n in $names_already_handled; do
13233 if test "$n" = "$name"; then
13234 already_handled=yes
13235 break
13236 fi
13237 done
13238 if test -z "$already_handled"; then
13239 names_already_handled="$names_already_handled $name"
13240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13241 eval value=\"\$HAVE_LIB$uppername\"
13242 if test -n "$value"; then
13243 if test "$value" = yes; then
13244 eval value=\"\$LIB$uppername\"
13245 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13246 eval value=\"\$LTLIB$uppername\"
13247 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13248 else
13249 :
13250 fi
13251 else
13252 found_dir=
13253 found_la=
13254 found_so=
13255 found_a=
13256 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13257 if test -n "$acl_shlibext"; then
13258 shrext=".$acl_shlibext" # typically: shrext=.so
13259 else
13260 shrext=
13261 fi
13262 if test $use_additional = yes; then
13263 dir="$additional_libdir"
13264 if test -n "$acl_shlibext"; then
13265 if test -f "$dir/$libname$shrext"; then
13266 found_dir="$dir"
13267 found_so="$dir/$libname$shrext"
13268 else
13269 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13270 ver=`(cd "$dir" && \
13271 for f in "$libname$shrext".*; do echo "$f"; done \
13272 | sed -e "s,^$libname$shrext\\\\.,," \
13273 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13274 | sed 1q ) 2>/dev/null`
13275 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13276 found_dir="$dir"
13277 found_so="$dir/$libname$shrext.$ver"
13278 fi
13279 else
13280 eval library_names=\"$acl_library_names_spec\"
13281 for f in $library_names; do
13282 if test -f "$dir/$f"; then
13283 found_dir="$dir"
13284 found_so="$dir/$f"
13285 break
13286 fi
13287 done
13288 fi
13289 fi
13290 fi
13291 if test "X$found_dir" = "X"; then
13292 if test -f "$dir/$libname.$acl_libext"; then
13293 found_dir="$dir"
13294 found_a="$dir/$libname.$acl_libext"
13295 fi
13296 fi
13297 if test "X$found_dir" != "X"; then
13298 if test -f "$dir/$libname.la"; then
13299 found_la="$dir/$libname.la"
13300 fi
13301 fi
13302 fi
13303 if test "X$found_dir" = "X"; then
13304 for x in $LDFLAGS $LTLIBINTL; do
13305
13306 acl_save_prefix="$prefix"
13307 prefix="$acl_final_prefix"
13308 acl_save_exec_prefix="$exec_prefix"
13309 exec_prefix="$acl_final_exec_prefix"
13310 eval x=\"$x\"
13311 exec_prefix="$acl_save_exec_prefix"
13312 prefix="$acl_save_prefix"
13313
13314 case "$x" in
13315 -L*)
13316 dir=`echo "X$x" | sed -e 's/^X-L//'`
13317 if test -n "$acl_shlibext"; then
13318 if test -f "$dir/$libname$shrext"; then
13319 found_dir="$dir"
13320 found_so="$dir/$libname$shrext"
13321 else
13322 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13323 ver=`(cd "$dir" && \
13324 for f in "$libname$shrext".*; do echo "$f"; done \
13325 | sed -e "s,^$libname$shrext\\\\.,," \
13326 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13327 | sed 1q ) 2>/dev/null`
13328 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13329 found_dir="$dir"
13330 found_so="$dir/$libname$shrext.$ver"
13331 fi
13332 else
13333 eval library_names=\"$acl_library_names_spec\"
13334 for f in $library_names; do
13335 if test -f "$dir/$f"; then
13336 found_dir="$dir"
13337 found_so="$dir/$f"
13338 break
13339 fi
13340 done
13341 fi
13342 fi
13343 fi
13344 if test "X$found_dir" = "X"; then
13345 if test -f "$dir/$libname.$acl_libext"; then
13346 found_dir="$dir"
13347 found_a="$dir/$libname.$acl_libext"
13348 fi
13349 fi
13350 if test "X$found_dir" != "X"; then
13351 if test -f "$dir/$libname.la"; then
13352 found_la="$dir/$libname.la"
13353 fi
13354 fi
13355 ;;
13356 esac
13357 if test "X$found_dir" != "X"; then
13358 break
13359 fi
13360 done
13361 fi
13362 if test "X$found_dir" != "X"; then
13363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13364 if test "X$found_so" != "X"; then
13365 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13366 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13367 else
13368 haveit=
13369 for x in $ltrpathdirs; do
13370 if test "X$x" = "X$found_dir"; then
13371 haveit=yes
13372 break
13373 fi
13374 done
13375 if test -z "$haveit"; then
13376 ltrpathdirs="$ltrpathdirs $found_dir"
13377 fi
13378 if test "$acl_hardcode_direct" = yes; then
13379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13380 else
13381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13383 haveit=
13384 for x in $rpathdirs; do
13385 if test "X$x" = "X$found_dir"; then
13386 haveit=yes
13387 break
13388 fi
13389 done
13390 if test -z "$haveit"; then
13391 rpathdirs="$rpathdirs $found_dir"
13392 fi
13393 else
13394 haveit=
13395 for x in $LDFLAGS $LIBINTL; do
13396
13397 acl_save_prefix="$prefix"
13398 prefix="$acl_final_prefix"
13399 acl_save_exec_prefix="$exec_prefix"
13400 exec_prefix="$acl_final_exec_prefix"
13401 eval x=\"$x\"
13402 exec_prefix="$acl_save_exec_prefix"
13403 prefix="$acl_save_prefix"
13404
13405 if test "X$x" = "X-L$found_dir"; then
13406 haveit=yes
13407 break
13408 fi
13409 done
13410 if test -z "$haveit"; then
13411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13412 fi
13413 if test "$acl_hardcode_minus_L" != no; then
13414 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13415 else
13416 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13417 fi
13418 fi
13419 fi
13420 fi
13421 else
13422 if test "X$found_a" != "X"; then
13423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13424 else
13425 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13426 fi
13427 fi
13428 additional_includedir=
13429 case "$found_dir" in
13430 */$acl_libdirstem | */$acl_libdirstem/)
13431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13432 LIBINTL_PREFIX="$basedir"
13433 additional_includedir="$basedir/include"
13434 ;;
13435 esac
13436 if test "X$additional_includedir" != "X"; then
13437 if test "X$additional_includedir" != "X/usr/include"; then
13438 haveit=
13439 if test "X$additional_includedir" = "X/usr/local/include"; then
13440 if test -n "$GCC"; then
13441 case $host_os in
13442 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13443 esac
13444 fi
13445 fi
13446 if test -z "$haveit"; then
13447 for x in $CPPFLAGS $INCINTL; do
13448
13449 acl_save_prefix="$prefix"
13450 prefix="$acl_final_prefix"
13451 acl_save_exec_prefix="$exec_prefix"
13452 exec_prefix="$acl_final_exec_prefix"
13453 eval x=\"$x\"
13454 exec_prefix="$acl_save_exec_prefix"
13455 prefix="$acl_save_prefix"
13456
13457 if test "X$x" = "X-I$additional_includedir"; then
13458 haveit=yes
13459 break
13460 fi
13461 done
13462 if test -z "$haveit"; then
13463 if test -d "$additional_includedir"; then
13464 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13465 fi
13466 fi
13467 fi
13468 fi
13469 fi
13470 if test -n "$found_la"; then
13471 save_libdir="$libdir"
13472 case "$found_la" in
13473 */* | *\\*) . "$found_la" ;;
13474 *) . "./$found_la" ;;
13475 esac
13476 libdir="$save_libdir"
13477 for dep in $dependency_libs; do
13478 case "$dep" in
13479 -L*)
13480 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13481 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13482 haveit=
13483 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13484 if test -n "$GCC"; then
13485 case $host_os in
13486 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13487 esac
13488 fi
13489 fi
13490 if test -z "$haveit"; then
13491 haveit=
13492 for x in $LDFLAGS $LIBINTL; do
13493
13494 acl_save_prefix="$prefix"
13495 prefix="$acl_final_prefix"
13496 acl_save_exec_prefix="$exec_prefix"
13497 exec_prefix="$acl_final_exec_prefix"
13498 eval x=\"$x\"
13499 exec_prefix="$acl_save_exec_prefix"
13500 prefix="$acl_save_prefix"
13501
13502 if test "X$x" = "X-L$additional_libdir"; then
13503 haveit=yes
13504 break
13505 fi
13506 done
13507 if test -z "$haveit"; then
13508 if test -d "$additional_libdir"; then
13509 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13510 fi
13511 fi
13512 haveit=
13513 for x in $LDFLAGS $LTLIBINTL; do
13514
13515 acl_save_prefix="$prefix"
13516 prefix="$acl_final_prefix"
13517 acl_save_exec_prefix="$exec_prefix"
13518 exec_prefix="$acl_final_exec_prefix"
13519 eval x=\"$x\"
13520 exec_prefix="$acl_save_exec_prefix"
13521 prefix="$acl_save_prefix"
13522
13523 if test "X$x" = "X-L$additional_libdir"; then
13524 haveit=yes
13525 break
13526 fi
13527 done
13528 if test -z "$haveit"; then
13529 if test -d "$additional_libdir"; then
13530 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13531 fi
13532 fi
13533 fi
13534 fi
13535 ;;
13536 -R*)
13537 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13538 if test "$enable_rpath" != no; then
13539 haveit=
13540 for x in $rpathdirs; do
13541 if test "X$x" = "X$dir"; then
13542 haveit=yes
13543 break
13544 fi
13545 done
13546 if test -z "$haveit"; then
13547 rpathdirs="$rpathdirs $dir"
13548 fi
13549 haveit=
13550 for x in $ltrpathdirs; do
13551 if test "X$x" = "X$dir"; then
13552 haveit=yes
13553 break
13554 fi
13555 done
13556 if test -z "$haveit"; then
13557 ltrpathdirs="$ltrpathdirs $dir"
13558 fi
13559 fi
13560 ;;
13561 -l*)
13562 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13563 ;;
13564 *.la)
13565 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13566 ;;
13567 *)
13568 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13570 ;;
13571 esac
13572 done
13573 fi
13574 else
13575 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13576 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13577 fi
13578 fi
13579 fi
13580 done
13581 done
13582 if test "X$rpathdirs" != "X"; then
13583 if test -n "$acl_hardcode_libdir_separator"; then
13584 alldirs=
13585 for found_dir in $rpathdirs; do
13586 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13587 done
13588 acl_save_libdir="$libdir"
13589 libdir="$alldirs"
13590 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13591 libdir="$acl_save_libdir"
13592 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13593 else
13594 for found_dir in $rpathdirs; do
13595 acl_save_libdir="$libdir"
13596 libdir="$found_dir"
13597 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13598 libdir="$acl_save_libdir"
13599 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13600 done
13601 fi
13602 fi
13603 if test "X$ltrpathdirs" != "X"; then
13604 for found_dir in $ltrpathdirs; do
13605 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13606 done
13607 fi
13608
13609 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13610$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13611if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
13612 $as_echo_n "(cached) " >&6
13613else
13614 gt_save_CPPFLAGS="$CPPFLAGS"
13615 CPPFLAGS="$CPPFLAGS $INCINTL"
13616 gt_save_LIBS="$LIBS"
13617 LIBS="$LIBS $LIBINTL"
13618 cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624#include <libintl.h>
13625$gt_revision_test_code
13626extern int _nl_msg_cat_cntr;
13627extern
13628#ifdef __cplusplus
13629"C"
13630#endif
13631const char *_nl_expand_alias (const char *);
13632int
13633main ()
13634{
13635bindtextdomain ("", "");
13636return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13637 ;
13638 return 0;
13639}
13640_ACEOF
13641rm -f conftest.$ac_objext conftest$ac_exeext
13642if { (ac_try="$ac_link"
13643case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646esac
13647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648$as_echo "$ac_try_echo") >&5
13649 (eval "$ac_link") 2>conftest.er1
13650 ac_status=$?
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest$ac_exeext && {
13659 test "$cross_compiling" = yes ||
13660 $as_test_x conftest$ac_exeext
13661 }; then
13662 eval "$gt_func_gnugettext_libintl=yes"
13663else
13664 $as_echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 eval "$gt_func_gnugettext_libintl=no"
13668fi
13669
13670rm -rf conftest.dSYM
13671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13672 conftest$ac_exeext conftest.$ac_ext
13673 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13674 LIBS="$LIBS $LIBICONV"
13675 cat >conftest.$ac_ext <<_ACEOF
13676/* confdefs.h. */
13677_ACEOF
13678cat confdefs.h >>conftest.$ac_ext
13679cat >>conftest.$ac_ext <<_ACEOF
13680/* end confdefs.h. */
13681#include <libintl.h>
13682$gt_revision_test_code
13683extern int _nl_msg_cat_cntr;
13684extern
13685#ifdef __cplusplus
13686"C"
13687#endif
13688const char *_nl_expand_alias (const char *);
13689int
13690main ()
13691{
13692bindtextdomain ("", "");
13693return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext conftest$ac_exeext
13699if { (ac_try="$ac_link"
13700case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705$as_echo "$ac_try_echo") >&5
13706 (eval "$ac_link") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest$ac_exeext && {
13716 test "$cross_compiling" = yes ||
13717 $as_test_x conftest$ac_exeext
13718 }; then
13719 LIBINTL="$LIBINTL $LIBICONV"
13720 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13721 eval "$gt_func_gnugettext_libintl=yes"
13722
13723else
13724 $as_echo "$as_me: failed program was:" >&5
13725sed 's/^/| /' conftest.$ac_ext >&5
13726
13727
13728fi
13729
13730rm -rf conftest.dSYM
13731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13732 conftest$ac_exeext conftest.$ac_ext
13733 fi
13734 CPPFLAGS="$gt_save_CPPFLAGS"
13735 LIBS="$gt_save_LIBS"
13736fi
13737ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
13738 $as_echo "$as_val"'`
13739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13740$as_echo "$ac_res" >&6; }
13741 fi
13742
13743 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13744 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13745 && test "$PACKAGE" != gettext-runtime \
13746 && test "$PACKAGE" != gettext-tools; }; then
13747 gt_use_preinstalled_gnugettext=yes
13748 else
13749 LIBINTL=
13750 LTLIBINTL=
13751 INCINTL=
13752 fi
13753
13754
13755
13756 if test -n "$INTL_MACOSX_LIBS"; then
13757 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13758 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13759 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13760 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13761 fi
13762 fi
13763
13764 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13765 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13766
13767cat >>confdefs.h <<\_ACEOF
13768#define ENABLE_NLS 1
13769_ACEOF
13770
13771 else
13772 USE_NLS=no
13773 fi
13774 fi
13775
13776 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
13777$as_echo_n "checking whether to use NLS... " >&6; }
13778 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
13779$as_echo "$USE_NLS" >&6; }
13780 if test "$USE_NLS" = "yes"; then
13781 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13782$as_echo_n "checking where the gettext function comes from... " >&6; }
13783 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13784 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13785 gt_source="external libintl"
13786 else
13787 gt_source="libc"
13788 fi
13789 else
13790 gt_source="included intl directory"
13791 fi
13792 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
13793$as_echo "$gt_source" >&6; }
13794 fi
13795
13796 if test "$USE_NLS" = "yes"; then
13797
13798 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13799 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13800 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
13801$as_echo_n "checking how to link with libintl... " >&6; }
13802 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
13803$as_echo "$LIBINTL" >&6; }
13804
13805 for element in $INCINTL; do
13806 haveit=
13807 for x in $CPPFLAGS; do
13808
13809 acl_save_prefix="$prefix"
13810 prefix="$acl_final_prefix"
13811 acl_save_exec_prefix="$exec_prefix"
13812 exec_prefix="$acl_final_exec_prefix"
13813 eval x=\"$x\"
13814 exec_prefix="$acl_save_exec_prefix"
13815 prefix="$acl_save_prefix"
13816
13817 if test "X$x" = "X$element"; then
13818 haveit=yes
13819 break
13820 fi
13821 done
13822 if test -z "$haveit"; then
13823 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13824 fi
13825 done
13826
13827 fi
13828
13829
13830cat >>confdefs.h <<\_ACEOF
13831#define HAVE_GETTEXT 1
13832_ACEOF
13833
13834
13835cat >>confdefs.h <<\_ACEOF
13836#define HAVE_DCGETTEXT 1
13837_ACEOF
13838
13839 fi
13840
13841 POSUB=po
13842 fi
13843
13844
13845
13846 INTLLIBS="$LIBINTL"
13847
13848
13849
13850
13851
13852
13853
13854GETTEXT_PACKAGE=pcsx
13855
13856
13857cat >>confdefs.h <<_ACEOF
13858#define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
13859_ACEOF
13860
13861
13862
13863
13864if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13869$as_echo_n "checking for $ac_word... " >&6; }
13870if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13871 $as_echo_n "(cached) " >&6
13872else
13873 case $PKG_CONFIG in
13874 [\\/]* | ?:[\\/]*)
13875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13876 ;;
13877 *)
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879for as_dir in $PATH
13880do
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13888 fi
13889done
13890done
13891IFS=$as_save_IFS
13892
13893 ;;
13894esac
13895fi
13896PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13897if test -n "$PKG_CONFIG"; then
13898 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13899$as_echo "$PKG_CONFIG" >&6; }
13900else
13901 { $as_echo "$as_me:$LINENO: result: no" >&5
13902$as_echo "no" >&6; }
13903fi
13904
13905
13906fi
13907if test -z "$ac_cv_path_PKG_CONFIG"; then
13908 ac_pt_PKG_CONFIG=$PKG_CONFIG
13909 # Extract the first word of "pkg-config", so it can be a program name with args.
13910set dummy pkg-config; ac_word=$2
13911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13912$as_echo_n "checking for $ac_word... " >&6; }
13913if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13914 $as_echo_n "(cached) " >&6
13915else
13916 case $ac_pt_PKG_CONFIG in
13917 [\\/]* | ?:[\\/]*)
13918 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13919 ;;
13920 *)
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922for as_dir in $PATH
13923do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932done
13933done
13934IFS=$as_save_IFS
13935
13936 ;;
13937esac
13938fi
13939ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13940if test -n "$ac_pt_PKG_CONFIG"; then
13941 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13942$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13943else
13944 { $as_echo "$as_me:$LINENO: result: no" >&5
13945$as_echo "no" >&6; }
13946fi
13947
13948 if test "x$ac_pt_PKG_CONFIG" = x; then
13949 PKG_CONFIG=""
13950 else
13951 case $cross_compiling:$ac_tool_warned in
13952yes:)
13953{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13955ac_tool_warned=yes ;;
13956esac
13957 PKG_CONFIG=$ac_pt_PKG_CONFIG
13958 fi
13959else
13960 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13961fi
13962
13963fi
13964if test -n "$PKG_CONFIG"; then
13965 _pkg_min_version=0.9.0
13966 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13967$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13968 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970$as_echo "yes" >&6; }
13971 else
13972 { $as_echo "$as_me:$LINENO: result: no" >&5
13973$as_echo "no" >&6; }
13974 PKG_CONFIG=""
13975 fi
13976
13977fi
13978
13979pkg_failed=no
13980{ $as_echo "$as_me:$LINENO: checking for GLIB2" >&5
13981$as_echo_n "checking for GLIB2... " >&6; }
13982
13983if test -n "$PKG_CONFIG"; then
13984 if test -n "$GLIB2_CFLAGS"; then
13985 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
13986 else
13987 if test -n "$PKG_CONFIG" && \
13988 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
13989 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
13990 ac_status=$?
13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; then
13993 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
13994else
13995 pkg_failed=yes
13996fi
13997 fi
13998else
13999 pkg_failed=untried
14000fi
14001if test -n "$PKG_CONFIG"; then
14002 if test -n "$GLIB2_LIBS"; then
14003 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
14004 else
14005 if test -n "$PKG_CONFIG" && \
14006 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
14007 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
14008 ac_status=$?
14009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; then
14011 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
14012else
14013 pkg_failed=yes
14014fi
14015 fi
14016else
14017 pkg_failed=untried
14018fi
14019
14020
14021
14022if test $pkg_failed = yes; then
14023
14024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14025 _pkg_short_errors_supported=yes
14026else
14027 _pkg_short_errors_supported=no
14028fi
14029 if test $_pkg_short_errors_supported = yes; then
14030 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
14031 else
14032 GLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
14033 fi
14034 # Put the nasty error message in config.log where it belongs
14035 echo "$GLIB2_PKG_ERRORS" >&5
14036
14037 { $as_echo "$as_me:$LINENO: result: no" >&5
14038$as_echo "no" >&6; }
14039 { { $as_echo "$as_me:$LINENO: error: *** glib2 not found!" >&5
14040$as_echo "$as_me: error: *** glib2 not found!" >&2;}
14041 { (exit 1); exit 1; }; }
14042elif test $pkg_failed = untried; then
14043 { { $as_echo "$as_me:$LINENO: error: *** glib2 not found!" >&5
14044$as_echo "$as_me: error: *** glib2 not found!" >&2;}
14045 { (exit 1); exit 1; }; }
14046else
14047 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
14048 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
14049 { $as_echo "$as_me:$LINENO: result: yes" >&5
14050$as_echo "yes" >&6; }
14051 :
14052fi
14053
14054pkg_failed=no
14055{ $as_echo "$as_me:$LINENO: checking for GTK2" >&5
14056$as_echo_n "checking for GTK2... " >&6; }
14057
14058if test -n "$PKG_CONFIG"; then
14059 if test -n "$GTK2_CFLAGS"; then
14060 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
14061 else
14062 if test -n "$PKG_CONFIG" && \
14063 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14064 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14065 ac_status=$?
14066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; then
14068 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
14069else
14070 pkg_failed=yes
14071fi
14072 fi
14073else
14074 pkg_failed=untried
14075fi
14076if test -n "$PKG_CONFIG"; then
14077 if test -n "$GTK2_LIBS"; then
14078 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
14079 else
14080 if test -n "$PKG_CONFIG" && \
14081 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14082 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14083 ac_status=$?
14084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; then
14086 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
14087else
14088 pkg_failed=yes
14089fi
14090 fi
14091else
14092 pkg_failed=untried
14093fi
14094
14095
14096
14097if test $pkg_failed = yes; then
14098
14099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14100 _pkg_short_errors_supported=yes
14101else
14102 _pkg_short_errors_supported=no
14103fi
14104 if test $_pkg_short_errors_supported = yes; then
14105 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
14106 else
14107 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
14108 fi
14109 # Put the nasty error message in config.log where it belongs
14110 echo "$GTK2_PKG_ERRORS" >&5
14111
14112 { $as_echo "$as_me:$LINENO: result: no" >&5
14113$as_echo "no" >&6; }
14114 { { $as_echo "$as_me:$LINENO: error: *** libgtk2 not found!" >&5
14115$as_echo "$as_me: error: *** libgtk2 not found!" >&2;}
14116 { (exit 1); exit 1; }; }
14117elif test $pkg_failed = untried; then
14118 { { $as_echo "$as_me:$LINENO: error: *** libgtk2 not found!" >&5
14119$as_echo "$as_me: error: *** libgtk2 not found!" >&2;}
14120 { (exit 1); exit 1; }; }
14121else
14122 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
14123 GTK2_LIBS=$pkg_cv_GTK2_LIBS
14124 { $as_echo "$as_me:$LINENO: result: yes" >&5
14125$as_echo "yes" >&6; }
14126 :
14127fi
14128
14129pkg_failed=no
14130{ $as_echo "$as_me:$LINENO: checking for GLADE2" >&5
14131$as_echo_n "checking for GLADE2... " >&6; }
14132
14133if test -n "$PKG_CONFIG"; then
14134 if test -n "$GLADE2_CFLAGS"; then
14135 pkg_cv_GLADE2_CFLAGS="$GLADE2_CFLAGS"
14136 else
14137 if test -n "$PKG_CONFIG" && \
14138 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
14139 ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
14140 ac_status=$?
14141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; then
14143 pkg_cv_GLADE2_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0" 2>/dev/null`
14144else
14145 pkg_failed=yes
14146fi
14147 fi
14148else
14149 pkg_failed=untried
14150fi
14151if test -n "$PKG_CONFIG"; then
14152 if test -n "$GLADE2_LIBS"; then
14153 pkg_cv_GLADE2_LIBS="$GLADE2_LIBS"
14154 else
14155 if test -n "$PKG_CONFIG" && \
14156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\"") >&5
14157 ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
14158 ac_status=$?
14159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; then
14161 pkg_cv_GLADE2_LIBS=`$PKG_CONFIG --libs "libglade-2.0" 2>/dev/null`
14162else
14163 pkg_failed=yes
14164fi
14165 fi
14166else
14167 pkg_failed=untried
14168fi
14169
14170
14171
14172if test $pkg_failed = yes; then
14173
14174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14175 _pkg_short_errors_supported=yes
14176else
14177 _pkg_short_errors_supported=no
14178fi
14179 if test $_pkg_short_errors_supported = yes; then
14180 GLADE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglade-2.0"`
14181 else
14182 GLADE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0"`
14183 fi
14184 # Put the nasty error message in config.log where it belongs
14185 echo "$GLADE2_PKG_ERRORS" >&5
14186
14187 { $as_echo "$as_me:$LINENO: result: no" >&5
14188$as_echo "no" >&6; }
14189 { { $as_echo "$as_me:$LINENO: error: *** libglade2 not found!" >&5
14190$as_echo "$as_me: error: *** libglade2 not found!" >&2;}
14191 { (exit 1); exit 1; }; }
14192elif test $pkg_failed = untried; then
14193 { { $as_echo "$as_me:$LINENO: error: *** libglade2 not found!" >&5
14194$as_echo "$as_me: error: *** libglade2 not found!" >&2;}
14195 { (exit 1); exit 1; }; }
14196else
14197 GLADE2_CFLAGS=$pkg_cv_GLADE2_CFLAGS
14198 GLADE2_LIBS=$pkg_cv_GLADE2_LIBS
14199 { $as_echo "$as_me:$LINENO: result: yes" >&5
14200$as_echo "yes" >&6; }
14201 :
14202fi
14203
14204
14205# Check whether --with-sdl-prefix was given.
14206if test "${with_sdl_prefix+set}" = set; then
14207 withval=$with_sdl_prefix; sdl_prefix="$withval"
14208else
14209 sdl_prefix=""
14210fi
14211
14212
14213# Check whether --with-sdl-exec-prefix was given.
14214if test "${with_sdl_exec_prefix+set}" = set; then
14215 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14216else
14217 sdl_exec_prefix=""
14218fi
14219
14220# Check whether --enable-sdltest was given.
14221if test "${enable_sdltest+set}" = set; then
14222 enableval=$enable_sdltest;
14223else
14224 enable_sdltest=yes
14225fi
14226
14227
14228 if test x$sdl_exec_prefix != x ; then
14229 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14230 if test x${SDL_CONFIG+set} != xset ; then
14231 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14232 fi
14233 fi
14234 if test x$sdl_prefix != x ; then
14235 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14236 if test x${SDL_CONFIG+set} != xset ; then
14237 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14238 fi
14239 fi
14240
14241 if test "x$prefix" != xNONE; then
14242 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14243 fi
14244 # Extract the first word of "sdl-config", so it can be a program name with args.
14245set dummy sdl-config; ac_word=$2
14246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14247$as_echo_n "checking for $ac_word... " >&6; }
14248if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
14249 $as_echo_n "(cached) " >&6
14250else
14251 case $SDL_CONFIG in
14252 [\\/]* | ?:[\\/]*)
14253 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14254 ;;
14255 *)
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257for as_dir in $PATH
14258do
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14266 fi
14267done
14268done
14269IFS=$as_save_IFS
14270
14271 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14272 ;;
14273esac
14274fi
14275SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14276if test -n "$SDL_CONFIG"; then
14277 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
14278$as_echo "$SDL_CONFIG" >&6; }
14279else
14280 { $as_echo "$as_me:$LINENO: result: no" >&5
14281$as_echo "no" >&6; }
14282fi
14283
14284
14285 min_sdl_version=1.2.0
14286 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
14287$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14288 no_sdl=""
14289 if test "$SDL_CONFIG" = "no" ; then
14290 no_sdl=yes
14291 else
14292 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14293 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14294
14295 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14297 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14299 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14301 if test "x$enable_sdltest" = "xyes" ; then
14302 ac_save_CFLAGS="$CFLAGS"
14303 ac_save_CXXFLAGS="$CXXFLAGS"
14304 ac_save_LIBS="$LIBS"
14305 CFLAGS="$CFLAGS $SDL_CFLAGS"
14306 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14307 LIBS="$LIBS $SDL_LIBS"
14308 rm -f conf.sdltest
14309 if test "$cross_compiling" = yes; then
14310 echo $ac_n "cross compiling; assumed OK... $ac_c"
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318
14319#include <stdio.h>
14320#include <stdlib.h>
14321#include <string.h>
14322#include "SDL.h"
14323
14324char*
14325my_strdup (char *str)
14326{
14327 char *new_str;
14328
14329 if (str)
14330 {
14331 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14332 strcpy (new_str, str);
14333 }
14334 else
14335 new_str = NULL;
14336
14337 return new_str;
14338}
14339
14340int main (int argc, char *argv[])
14341{
14342 int major, minor, micro;
14343 char *tmp_version;
14344
14345 /* This hangs on some systems (?)
14346 system ("touch conf.sdltest");
14347 */
14348 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14349
14350 /* HP/UX 9 (%@#!) writes to sscanf strings */
14351 tmp_version = my_strdup("$min_sdl_version");
14352 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14353 printf("%s, bad version string\n", "$min_sdl_version");
14354 exit(1);
14355 }
14356
14357 if (($sdl_major_version > major) ||
14358 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14359 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14360 {
14361 return 0;
14362 }
14363 else
14364 {
14365 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14366 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14367 printf("*** best to upgrade to the required version.\n");
14368 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14369 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14370 printf("*** config.cache before re-running configure\n");
14371 return 1;
14372 }
14373}
14374
14375
14376_ACEOF
14377rm -f conftest$ac_exeext
14378if { (ac_try="$ac_link"
14379case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384$as_echo "$ac_try_echo") >&5
14385 (eval "$ac_link") 2>&5
14386 ac_status=$?
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394$as_echo "$ac_try_echo") >&5
14395 (eval "$ac_try") 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 :
14400else
14401 $as_echo "$as_me: program exited with status $ac_status" >&5
14402$as_echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405( exit $ac_status )
14406no_sdl=yes
14407fi
14408rm -rf conftest.dSYM
14409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14410fi
14411
14412
14413 CFLAGS="$ac_save_CFLAGS"
14414 CXXFLAGS="$ac_save_CXXFLAGS"
14415 LIBS="$ac_save_LIBS"
14416 fi
14417 fi
14418 if test "x$no_sdl" = x ; then
14419 { $as_echo "$as_me:$LINENO: result: yes" >&5
14420$as_echo "yes" >&6; }
14421 :
14422 else
14423 { $as_echo "$as_me:$LINENO: result: no" >&5
14424$as_echo "no" >&6; }
14425 if test "$SDL_CONFIG" = "no" ; then
14426 echo "*** The sdl-config script installed by SDL could not be found"
14427 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14428 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14429 echo "*** full path to sdl-config."
14430 else
14431 if test -f conf.sdltest ; then
14432 :
14433 else
14434 echo "*** Could not run SDL test program, checking why..."
14435 CFLAGS="$CFLAGS $SDL_CFLAGS"
14436 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14437 LIBS="$LIBS $SDL_LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
14444
14445#include <stdio.h>
14446#include "SDL.h"
14447
14448int main(int argc, char *argv[])
14449{ return 0; }
14450#undef main
14451#define main K_and_R_C_main
14452
14453int
14454main ()
14455{
14456 return 0;
14457 ;
14458 return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext conftest$ac_exeext
14462if { (ac_try="$ac_link"
14463case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468$as_echo "$ac_try_echo") >&5
14469 (eval "$ac_link") 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest$ac_exeext && {
14479 test "$cross_compiling" = yes ||
14480 $as_test_x conftest$ac_exeext
14481 }; then
14482 echo "*** The test program compiled, but did not run. This usually means"
14483 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14484 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14485 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14486 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14487 echo "*** is required on your system"
14488 echo "***"
14489 echo "*** If you have an old version installed, it is best to remove it, although"
14490 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14491else
14492 $as_echo "$as_me: failed program was:" >&5
14493sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 echo "*** The test program failed to compile or link. See the file config.log for the"
14496 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14497 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14498 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14499fi
14500
14501rm -rf conftest.dSYM
14502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14503 conftest$ac_exeext conftest.$ac_ext
14504 CFLAGS="$ac_save_CFLAGS"
14505 CXXFLAGS="$ac_save_CXXFLAGS"
14506 LIBS="$ac_save_LIBS"
14507 fi
14508 fi
14509 SDL_CFLAGS=""
14510 SDL_LIBS=""
14511 { { $as_echo "$as_me:$LINENO: error: *** SDL not found!" >&5
14512$as_echo "$as_me: error: *** SDL not found!" >&2;}
14513 { (exit 1); exit 1; }; }
14514 fi
14515
14516
14517 rm -f conf.sdltest
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile libpcsxcore/Makefile gui/Makefile plugins/dfinput/Makefile plugins/dfsound/Makefile plugins/dfxvideo/Makefile plugins/dfcdrom/Makefile plugins/dfnet/Makefile pixmaps/Makefile po/Makefile.in"
14528
14529
14530{ $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
14531$as_echo_n "checking for dlsym in -ldl... " >&6; }
14532if test "${ac_cv_lib_dl_dlsym+set}" = set; then
14533 $as_echo_n "(cached) " >&6
14534else
14535 ac_check_lib_save_LIBS=$LIBS
14536LIBS="-ldl $LIBS"
14537cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543
14544/* Override any GCC internal prototype to avoid an error.
14545 Use char because int might match the return type of a GCC
14546 builtin and then its argument prototype would still apply. */
14547#ifdef __cplusplus
14548extern "C"
14549#endif
14550char dlsym ();
14551int
14552main ()
14553{
14554return dlsym ();
14555 ;
14556 return 0;
14557}
14558_ACEOF
14559rm -f conftest.$ac_objext conftest$ac_exeext
14560if { (ac_try="$ac_link"
14561case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14566$as_echo "$ac_try_echo") >&5
14567 (eval "$ac_link") 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && {
14574 test -z "$ac_c_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest$ac_exeext && {
14577 test "$cross_compiling" = yes ||
14578 $as_test_x conftest$ac_exeext
14579 }; then
14580 ac_cv_lib_dl_dlsym=yes
14581else
14582 $as_echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_cv_lib_dl_dlsym=no
14586fi
14587
14588rm -rf conftest.dSYM
14589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14590 conftest$ac_exeext conftest.$ac_ext
14591LIBS=$ac_check_lib_save_LIBS
14592fi
14593{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
14594$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14595if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
14596 LDFLAGS="$LDFLAGS -ldl"
14597fi
14598
14599{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14600$as_echo_n "checking for socket in -lsocket... " >&6; }
14601if test "${ac_cv_lib_socket_socket+set}" = set; then
14602 $as_echo_n "(cached) " >&6
14603else
14604 ac_check_lib_save_LIBS=$LIBS
14605LIBS="-lsocket $LIBS"
14606cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612
14613/* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14616#ifdef __cplusplus
14617extern "C"
14618#endif
14619char socket ();
14620int
14621main ()
14622{
14623return socket ();
14624 ;
14625 return 0;
14626}
14627_ACEOF
14628rm -f conftest.$ac_objext conftest$ac_exeext
14629if { (ac_try="$ac_link"
14630case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
14634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635$as_echo "$ac_try_echo") >&5
14636 (eval "$ac_link") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest$ac_exeext && {
14646 test "$cross_compiling" = yes ||
14647 $as_test_x conftest$ac_exeext
14648 }; then
14649 ac_cv_lib_socket_socket=yes
14650else
14651 $as_echo "$as_me: failed program was:" >&5
14652sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_cv_lib_socket_socket=no
14655fi
14656
14657rm -rf conftest.dSYM
14658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14659 conftest$ac_exeext conftest.$ac_ext
14660LIBS=$ac_check_lib_save_LIBS
14661fi
14662{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14663$as_echo "$ac_cv_lib_socket_socket" >&6; }
14664if test "x$ac_cv_lib_socket_socket" = x""yes; then
14665 LDFLAGS="$LDFLAGS -lsocket"
14666fi
14667
14668{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
14669$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14670if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
14671 $as_echo_n "(cached) " >&6
14672else
14673 ac_check_lib_save_LIBS=$LIBS
14674LIBS="-lnsl $LIBS"
14675cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681
14682/* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685#ifdef __cplusplus
14686extern "C"
14687#endif
14688char gethostbyname ();
14689int
14690main ()
14691{
14692return gethostbyname ();
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697rm -f conftest.$ac_objext conftest$ac_exeext
14698if { (ac_try="$ac_link"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14704$as_echo "$ac_try_echo") >&5
14705 (eval "$ac_link") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext && {
14715 test "$cross_compiling" = yes ||
14716 $as_test_x conftest$ac_exeext
14717 }; then
14718 ac_cv_lib_nsl_gethostbyname=yes
14719else
14720 $as_echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_lib_nsl_gethostbyname=no
14724fi
14725
14726rm -rf conftest.dSYM
14727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729LIBS=$ac_check_lib_save_LIBS
14730fi
14731{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
14732$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14733if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
14734 LDFLAGS="$LDFLAGS -lnsl"
14735fi
14736
14737{ $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
14738$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
14739if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
14740 $as_echo_n "(cached) " >&6
14741else
14742 ac_check_lib_save_LIBS=$LIBS
14743LIBS="-lumem $LIBS"
14744cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
14750
14751/* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply. */
14754#ifdef __cplusplus
14755extern "C"
14756#endif
14757char umem_alloc ();
14758int
14759main ()
14760{
14761return umem_alloc ();
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext conftest$ac_exeext
14767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771esac
14772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773$as_echo "$ac_try_echo") >&5
14774 (eval "$ac_link") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext && {
14784 test "$cross_compiling" = yes ||
14785 $as_test_x conftest$ac_exeext
14786 }; then
14787 ac_cv_lib_umem_umem_alloc=yes
14788else
14789 $as_echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792 ac_cv_lib_umem_umem_alloc=no
14793fi
14794
14795rm -rf conftest.dSYM
14796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
14798LIBS=$ac_check_lib_save_LIBS
14799fi
14800{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
14801$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
14802if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
14803 LDFLAGS="$LDFLAGS -lumem"
14804fi
14805
14806
14807 if false; then
14808 SOUND_OSS_TRUE=
14809 SOUND_OSS_FALSE='#'
14810else
14811 SOUND_OSS_TRUE='#'
14812 SOUND_OSS_FALSE=
14813fi
14814
14815 if false; then
14816 SOUND_SDL_TRUE=
14817 SOUND_SDL_FALSE='#'
14818else
14819 SOUND_SDL_TRUE='#'
14820 SOUND_SDL_FALSE=
14821fi
14822
14823 if false; then
14824 SOUND_NULL_TRUE=
14825 SOUND_NULL_FALSE='#'
14826else
14827 SOUND_NULL_TRUE='#'
14828 SOUND_NULL_FALSE=
14829fi
14830
14831
14832
14833# Check whether --enable-sound was given.
14834if test "${enable_sound+set}" = set; then
14835 enableval=$enable_sound; SOUND="$enableval"
14836else
14837 SOUND="sdl"
14838fi
14839
14840
14841if test "x$SOUND" = xalsa; then
14842
14843pkg_failed=no
14844{ $as_echo "$as_me:$LINENO: checking for ALSA" >&5
14845$as_echo_n "checking for ALSA... " >&6; }
14846
14847if test -n "$PKG_CONFIG"; then
14848 if test -n "$ALSA_CFLAGS"; then
14849 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
14850 else
14851 if test -n "$PKG_CONFIG" && \
14852 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5
14853 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
14854 ac_status=$?
14855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; then
14857 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.0" 2>/dev/null`
14858else
14859 pkg_failed=yes
14860fi
14861 fi
14862else
14863 pkg_failed=untried
14864fi
14865if test -n "$PKG_CONFIG"; then
14866 if test -n "$ALSA_LIBS"; then
14867 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
14868 else
14869 if test -n "$PKG_CONFIG" && \
14870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5
14871 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
14872 ac_status=$?
14873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; then
14875 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.0" 2>/dev/null`
14876else
14877 pkg_failed=yes
14878fi
14879 fi
14880else
14881 pkg_failed=untried
14882fi
14883
14884
14885
14886if test $pkg_failed = yes; then
14887
14888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14889 _pkg_short_errors_supported=yes
14890else
14891 _pkg_short_errors_supported=no
14892fi
14893 if test $_pkg_short_errors_supported = yes; then
14894 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 1.0.0"`
14895 else
14896 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 1.0.0"`
14897 fi
14898 # Put the nasty error message in config.log where it belongs
14899 echo "$ALSA_PKG_ERRORS" >&5
14900
14901 { $as_echo "$as_me:$LINENO: result: no" >&5
14902$as_echo "no" >&6; }
14903 have_alsa=no
14904elif test $pkg_failed = untried; then
14905 have_alsa=no
14906else
14907 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
14908 ALSA_LIBS=$pkg_cv_ALSA_LIBS
14909 { $as_echo "$as_me:$LINENO: result: yes" >&5
14910$as_echo "yes" >&6; }
14911 have_alsa=yes
14912fi
14913elif test "x$SOUND" = xpulseaudio; then
14914
14915pkg_failed=no
14916{ $as_echo "$as_me:$LINENO: checking for PULSEAUDIO" >&5
14917$as_echo_n "checking for PULSEAUDIO... " >&6; }
14918
14919if test -n "$PKG_CONFIG"; then
14920 if test -n "$PULSEAUDIO_CFLAGS"; then
14921 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
14922 else
14923 if test -n "$PKG_CONFIG" && \
14924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.16\"") >&5
14925 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.16") 2>&5
14926 ac_status=$?
14927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; then
14929 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.16" 2>/dev/null`
14930else
14931 pkg_failed=yes
14932fi
14933 fi
14934else
14935 pkg_failed=untried
14936fi
14937if test -n "$PKG_CONFIG"; then
14938 if test -n "$PULSEAUDIO_LIBS"; then
14939 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
14940 else
14941 if test -n "$PKG_CONFIG" && \
14942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.16\"") >&5
14943 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.16") 2>&5
14944 ac_status=$?
14945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; then
14947 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.16" 2>/dev/null`
14948else
14949 pkg_failed=yes
14950fi
14951 fi
14952else
14953 pkg_failed=untried
14954fi
14955
14956
14957
14958if test $pkg_failed = yes; then
14959
14960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14961 _pkg_short_errors_supported=yes
14962else
14963 _pkg_short_errors_supported=no
14964fi
14965 if test $_pkg_short_errors_supported = yes; then
14966 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse >= 0.9.16"`
14967 else
14968 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse >= 0.9.16"`
14969 fi
14970 # Put the nasty error message in config.log where it belongs
14971 echo "$PULSEAUDIO_PKG_ERRORS" >&5
14972
14973 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpulse >= 0.9.16) were not met:
14974
14975$PULSEAUDIO_PKG_ERRORS
14976
14977Consider adjusting the PKG_CONFIG_PATH environment variable if you
14978installed software in a non-standard prefix.
14979
14980Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
14981and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
14982See the pkg-config man page for more details.
14983" >&5
14984$as_echo "$as_me: error: Package requirements (libpulse >= 0.9.16) were not met:
14985
14986$PULSEAUDIO_PKG_ERRORS
14987
14988Consider adjusting the PKG_CONFIG_PATH environment variable if you
14989installed software in a non-standard prefix.
14990
14991Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
14992and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
14993See the pkg-config man page for more details.
14994" >&2;}
14995 { (exit 1); exit 1; }; }
14996elif test $pkg_failed = untried; then
14997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14999{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
15000is in your PATH or set the PKG_CONFIG environment variable to the full
15001path to pkg-config.
15002
15003Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
15004and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
15005See the pkg-config man page for more details.
15006
15007To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15008See \`config.log' for more details." >&5
15009$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
15010is in your PATH or set the PKG_CONFIG environment variable to the full
15011path to pkg-config.
15012
15013Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
15014and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
15015See the pkg-config man page for more details.
15016
15017To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15018See \`config.log' for more details." >&2;}
15019 { (exit 1); exit 1; }; }; }
15020else
15021 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
15022 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
15023 { $as_echo "$as_me:$LINENO: result: yes" >&5
15024$as_echo "yes" >&6; }
15025 have_pulseaudio=yes
15026fi
15027elif test "x$SOUND" = xoss; then
15028 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15029 { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15030$as_echo_n "checking for sys/soundcard.h... " >&6; }
15031if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15032 $as_echo_n "(cached) " >&6
15033fi
15034{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15035$as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
15036else
15037 # Is the header compilable?
15038{ $as_echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
15039$as_echo_n "checking sys/soundcard.h usability... " >&6; }
15040cat >conftest.$ac_ext <<_ACEOF
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046$ac_includes_default
15047#include <sys/soundcard.h>
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (ac_try="$ac_compile"
15051case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054esac
15055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15056$as_echo "$ac_try_echo") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15068else
15069 $as_echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_compiler=no
15073fi
15074
15075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077$as_echo "$ac_header_compiler" >&6; }
15078
15079# Is the header present?
15080{ $as_echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
15081$as_echo_n "checking sys/soundcard.h presence... " >&6; }
15082cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088#include <sys/soundcard.h>
15089_ACEOF
15090if { (ac_try="$ac_cpp conftest.$ac_ext"
15091case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096$as_echo "$ac_try_echo") >&5
15097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } >/dev/null && {
15104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 }; then
15107 ac_header_preproc=yes
15108else
15109 $as_echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_header_preproc=no
15113fi
15114
15115rm -f conftest.err conftest.$ac_ext
15116{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15117$as_echo "$ac_header_preproc" >&6; }
15118
15119# So? What about this header?
15120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 yes:no: )
15122 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
15123$as_echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
15125$as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
15126 ac_header_preproc=yes
15127 ;;
15128 no:yes:* )
15129 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
15130$as_echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
15131 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
15132$as_echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
15133 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
15134$as_echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
15135 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
15136$as_echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
15138$as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
15139 { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
15140$as_echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
15141
15142 ;;
15143esac
15144{ $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
15145$as_echo_n "checking for sys/soundcard.h... " >&6; }
15146if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
15147 $as_echo_n "(cached) " >&6
15148else
15149 ac_cv_header_sys_soundcard_h=$ac_header_preproc
15150fi
15151{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
15152$as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
15153
15154fi
15155if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then
15156 have_oss=yes
15157else
15158 have_oss=no
15159fi
15160
15161
15162 if test "x$have_oss" = xno; then
15163 { { $as_echo "$as_me:$LINENO: error: sys/soundcard.h not found!" >&5
15164$as_echo "$as_me: error: sys/soundcard.h not found!" >&2;}
15165 { (exit 1); exit 1; }; }
15166 else
15167 if true; then
15168 SOUND_OSS_TRUE=
15169 SOUND_OSS_FALSE='#'
15170else
15171 SOUND_OSS_TRUE='#'
15172 SOUND_OSS_FALSE=
15173fi
15174
15175 fi
15176elif test "x$SOUND" = xno; then
15177 if true; then
15178 SOUND_NULL_TRUE=
15179 SOUND_NULL_FALSE='#'
15180else
15181 SOUND_NULL_TRUE='#'
15182 SOUND_NULL_FALSE=
15183fi
15184
15185elif test "x$SOUND" = xnull; then
15186 if true; then
15187 SOUND_NULL_TRUE=
15188 SOUND_NULL_FALSE='#'
15189else
15190 SOUND_NULL_TRUE='#'
15191 SOUND_NULL_FALSE=
15192fi
15193
15194else
15195 if true; then
15196 SOUND_SDL_TRUE=
15197 SOUND_SDL_FALSE='#'
15198else
15199 SOUND_SDL_TRUE='#'
15200 SOUND_SDL_FALSE=
15201fi
15202
15203fi
15204
15205 if test "x$have_alsa" = xyes; then
15206 SOUND_ALSA_TRUE=
15207 SOUND_ALSA_FALSE='#'
15208else
15209 SOUND_ALSA_TRUE='#'
15210 SOUND_ALSA_FALSE=
15211fi
15212
15213
15214 if test "x$have_pulseaudio" = xyes; then
15215 SOUND_PULSEAUDIO_TRUE=
15216 SOUND_PULSEAUDIO_FALSE='#'
15217else
15218 SOUND_PULSEAUDIO_TRUE='#'
15219 SOUND_PULSEAUDIO_FALSE=
15220fi
15221
15222
15223
15224
15225if test "${ac_cv_header_zlib_h+set}" = set; then
15226 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15227$as_echo_n "checking for zlib.h... " >&6; }
15228if test "${ac_cv_header_zlib_h+set}" = set; then
15229 $as_echo_n "(cached) " >&6
15230fi
15231{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15232$as_echo "$ac_cv_header_zlib_h" >&6; }
15233else
15234 # Is the header compilable?
15235{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
15236$as_echo_n "checking zlib.h usability... " >&6; }
15237cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
15243$ac_includes_default
15244#include <zlib.h>
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (ac_try="$ac_compile"
15248case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15253$as_echo "$ac_try_echo") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest.$ac_objext; then
15264 ac_header_compiler=yes
15265else
15266 $as_echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_header_compiler=no
15270fi
15271
15272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15274$as_echo "$ac_header_compiler" >&6; }
15275
15276# Is the header present?
15277{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
15278$as_echo_n "checking zlib.h presence... " >&6; }
15279cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285#include <zlib.h>
15286_ACEOF
15287if { (ac_try="$ac_cpp conftest.$ac_ext"
15288case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291esac
15292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15293$as_echo "$ac_try_echo") >&5
15294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } >/dev/null && {
15301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 }; then
15304 ac_header_preproc=yes
15305else
15306 $as_echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_header_preproc=no
15310fi
15311
15312rm -f conftest.err conftest.$ac_ext
15313{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15314$as_echo "$ac_header_preproc" >&6; }
15315
15316# So? What about this header?
15317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15318 yes:no: )
15319 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15320$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15321 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15322$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15323 ac_header_preproc=yes
15324 ;;
15325 no:yes:* )
15326 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15327$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15329$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15331$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15332 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15333$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15335$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15337$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15338
15339 ;;
15340esac
15341{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15342$as_echo_n "checking for zlib.h... " >&6; }
15343if test "${ac_cv_header_zlib_h+set}" = set; then
15344 $as_echo_n "(cached) " >&6
15345else
15346 ac_cv_header_zlib_h=$ac_header_preproc
15347fi
15348{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15349$as_echo "$ac_cv_header_zlib_h" >&6; }
15350
15351fi
15352if test "x$ac_cv_header_zlib_h" = x""yes; then
15353 have_zlib=yes
15354else
15355 have_zlib=no
15356fi
15357
15358
15359if test "x$have_zlib" = xno; then
15360 { { $as_echo "$as_me:$LINENO: error: unable to find libz headers" >&5
15361$as_echo "$as_me: error: unable to find libz headers" >&2;}
15362 { (exit 1); exit 1; }; }
15363fi
15364if test "${ac_cv_header_X11_extensions_Xv_h+set}" = set; then
15365 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xv.h" >&5
15366$as_echo_n "checking for X11/extensions/Xv.h... " >&6; }
15367if test "${ac_cv_header_X11_extensions_Xv_h+set}" = set; then
15368 $as_echo_n "(cached) " >&6
15369fi
15370{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xv_h" >&5
15371$as_echo "$ac_cv_header_X11_extensions_Xv_h" >&6; }
15372else
15373 # Is the header compilable?
15374{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xv.h usability" >&5
15375$as_echo_n "checking X11/extensions/Xv.h usability... " >&6; }
15376cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382$ac_includes_default
15383#include <X11/extensions/Xv.h>
15384_ACEOF
15385rm -f conftest.$ac_objext
15386if { (ac_try="$ac_compile"
15387case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390esac
15391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15392$as_echo "$ac_try_echo") >&5
15393 (eval "$ac_compile") 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } && {
15400 test -z "$ac_c_werror_flag" ||
15401 test ! -s conftest.err
15402 } && test -s conftest.$ac_objext; then
15403 ac_header_compiler=yes
15404else
15405 $as_echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_header_compiler=no
15409fi
15410
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413$as_echo "$ac_header_compiler" >&6; }
15414
15415# Is the header present?
15416{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xv.h presence" >&5
15417$as_echo_n "checking X11/extensions/Xv.h presence... " >&6; }
15418cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424#include <X11/extensions/Xv.h>
15425_ACEOF
15426if { (ac_try="$ac_cpp conftest.$ac_ext"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15432$as_echo "$ac_try_echo") >&5
15433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } >/dev/null && {
15440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 }; then
15443 ac_header_preproc=yes
15444else
15445 $as_echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 ac_header_preproc=no
15449fi
15450
15451rm -f conftest.err conftest.$ac_ext
15452{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15453$as_echo "$ac_header_preproc" >&6; }
15454
15455# So? What about this header?
15456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15457 yes:no: )
15458 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15459$as_echo "$as_me: WARNING: X11/extensions/Xv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15460 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: proceeding with the compiler's result" >&5
15461$as_echo "$as_me: WARNING: X11/extensions/Xv.h: proceeding with the compiler's result" >&2;}
15462 ac_header_preproc=yes
15463 ;;
15464 no:yes:* )
15465 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: present but cannot be compiled" >&5
15466$as_echo "$as_me: WARNING: X11/extensions/Xv.h: present but cannot be compiled" >&2;}
15467 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: check for missing prerequisite headers?" >&5
15468$as_echo "$as_me: WARNING: X11/extensions/Xv.h: check for missing prerequisite headers?" >&2;}
15469 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: see the Autoconf documentation" >&5
15470$as_echo "$as_me: WARNING: X11/extensions/Xv.h: see the Autoconf documentation" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: section \"Present But Cannot Be Compiled\"" >&5
15472$as_echo "$as_me: WARNING: X11/extensions/Xv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15473 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: proceeding with the preprocessor's result" >&5
15474$as_echo "$as_me: WARNING: X11/extensions/Xv.h: proceeding with the preprocessor's result" >&2;}
15475 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xv.h: in the future, the compiler will take precedence" >&5
15476$as_echo "$as_me: WARNING: X11/extensions/Xv.h: in the future, the compiler will take precedence" >&2;}
15477
15478 ;;
15479esac
15480{ $as_echo "$as_me:$LINENO: checking for X11/extensions/Xv.h" >&5
15481$as_echo_n "checking for X11/extensions/Xv.h... " >&6; }
15482if test "${ac_cv_header_X11_extensions_Xv_h+set}" = set; then
15483 $as_echo_n "(cached) " >&6
15484else
15485 ac_cv_header_X11_extensions_Xv_h=$ac_header_preproc
15486fi
15487{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xv_h" >&5
15488$as_echo "$ac_cv_header_X11_extensions_Xv_h" >&6; }
15489
15490fi
15491if test "x$ac_cv_header_X11_extensions_Xv_h" = x""yes; then
15492 have_xv=yes
15493else
15494 have_xv=no
15495fi
15496
15497
15498if test "x$have_xv" = xno; then
15499 { { $as_echo "$as_me:$LINENO: error: unable to find xv headers" >&5
15500$as_echo "$as_me: error: unable to find xv headers" >&2;}
15501 { (exit 1); exit 1; }; }
15502fi
15503if test "${ac_cv_header_X11_extensions_XTest_h+set}" = set; then
15504 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XTest.h" >&5
15505$as_echo_n "checking for X11/extensions/XTest.h... " >&6; }
15506if test "${ac_cv_header_X11_extensions_XTest_h+set}" = set; then
15507 $as_echo_n "(cached) " >&6
15508fi
15509{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XTest_h" >&5
15510$as_echo "$ac_cv_header_X11_extensions_XTest_h" >&6; }
15511else
15512 # Is the header compilable?
15513{ $as_echo "$as_me:$LINENO: checking X11/extensions/XTest.h usability" >&5
15514$as_echo_n "checking X11/extensions/XTest.h usability... " >&6; }
15515cat >conftest.$ac_ext <<_ACEOF
15516/* confdefs.h. */
15517_ACEOF
15518cat confdefs.h >>conftest.$ac_ext
15519cat >>conftest.$ac_ext <<_ACEOF
15520/* end confdefs.h. */
15521$ac_includes_default
15522#include <X11/extensions/XTest.h>
15523_ACEOF
15524rm -f conftest.$ac_objext
15525if { (ac_try="$ac_compile"
15526case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529esac
15530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15531$as_echo "$ac_try_echo") >&5
15532 (eval "$ac_compile") 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } && {
15539 test -z "$ac_c_werror_flag" ||
15540 test ! -s conftest.err
15541 } && test -s conftest.$ac_objext; then
15542 ac_header_compiler=yes
15543else
15544 $as_echo "$as_me: failed program was:" >&5
15545sed 's/^/| /' conftest.$ac_ext >&5
15546
15547 ac_header_compiler=no
15548fi
15549
15550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15552$as_echo "$ac_header_compiler" >&6; }
15553
15554# Is the header present?
15555{ $as_echo "$as_me:$LINENO: checking X11/extensions/XTest.h presence" >&5
15556$as_echo_n "checking X11/extensions/XTest.h presence... " >&6; }
15557cat >conftest.$ac_ext <<_ACEOF
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563#include <X11/extensions/XTest.h>
15564_ACEOF
15565if { (ac_try="$ac_cpp conftest.$ac_ext"
15566case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569esac
15570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571$as_echo "$ac_try_echo") >&5
15572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } >/dev/null && {
15579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 }; then
15582 ac_header_preproc=yes
15583else
15584 $as_echo "$as_me: failed program was:" >&5
15585sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 ac_header_preproc=no
15588fi
15589
15590rm -f conftest.err conftest.$ac_ext
15591{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15592$as_echo "$ac_header_preproc" >&6; }
15593
15594# So? What about this header?
15595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15596 yes:no: )
15597 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: accepted by the compiler, rejected by the preprocessor!" >&5
15598$as_echo "$as_me: WARNING: X11/extensions/XTest.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15599 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: proceeding with the compiler's result" >&5
15600$as_echo "$as_me: WARNING: X11/extensions/XTest.h: proceeding with the compiler's result" >&2;}
15601 ac_header_preproc=yes
15602 ;;
15603 no:yes:* )
15604 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: present but cannot be compiled" >&5
15605$as_echo "$as_me: WARNING: X11/extensions/XTest.h: present but cannot be compiled" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: check for missing prerequisite headers?" >&5
15607$as_echo "$as_me: WARNING: X11/extensions/XTest.h: check for missing prerequisite headers?" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: see the Autoconf documentation" >&5
15609$as_echo "$as_me: WARNING: X11/extensions/XTest.h: see the Autoconf documentation" >&2;}
15610 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: section \"Present But Cannot Be Compiled\"" >&5
15611$as_echo "$as_me: WARNING: X11/extensions/XTest.h: section \"Present But Cannot Be Compiled\"" >&2;}
15612 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: proceeding with the preprocessor's result" >&5
15613$as_echo "$as_me: WARNING: X11/extensions/XTest.h: proceeding with the preprocessor's result" >&2;}
15614 { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/XTest.h: in the future, the compiler will take precedence" >&5
15615$as_echo "$as_me: WARNING: X11/extensions/XTest.h: in the future, the compiler will take precedence" >&2;}
15616
15617 ;;
15618esac
15619{ $as_echo "$as_me:$LINENO: checking for X11/extensions/XTest.h" >&5
15620$as_echo_n "checking for X11/extensions/XTest.h... " >&6; }
15621if test "${ac_cv_header_X11_extensions_XTest_h+set}" = set; then
15622 $as_echo_n "(cached) " >&6
15623else
15624 ac_cv_header_X11_extensions_XTest_h=$ac_header_preproc
15625fi
15626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XTest_h" >&5
15627$as_echo "$ac_cv_header_X11_extensions_XTest_h" >&6; }
15628
15629fi
15630if test "x$ac_cv_header_X11_extensions_XTest_h" = x""yes; then
15631 have_xtest=yes
15632else
15633 have_xtest=no
15634fi
15635
15636
15637if test "x$have_xtest" = xno; then
15638 { { $as_echo "$as_me:$LINENO: error: unable to find xtest headers" >&5
15639$as_echo "$as_me: error: unable to find xtest headers" >&2;}
15640 { (exit 1); exit 1; }; }
15641fi
15642
15643 if false; then
15644 USE_LIBCDIO_TRUE=
15645 USE_LIBCDIO_FALSE='#'
15646else
15647 USE_LIBCDIO_TRUE='#'
15648 USE_LIBCDIO_FALSE=
15649fi
15650
15651
15652# Check whether --enable-libcdio was given.
15653if test "${enable_libcdio+set}" = set; then
15654 enableval=$enable_libcdio; BUILD_LIBCDIO="$enableval"
15655else
15656 BUILD_LIBCDIO="no"
15657fi
15658
15659
15660if test "$BUILD_LIBCDIO" = "yes"; then
15661
15662pkg_failed=no
15663{ $as_echo "$as_me:$LINENO: checking for LIBCDIO" >&5
15664$as_echo_n "checking for LIBCDIO... " >&6; }
15665
15666if test -n "$PKG_CONFIG"; then
15667 if test -n "$LIBCDIO_CFLAGS"; then
15668 pkg_cv_LIBCDIO_CFLAGS="$LIBCDIO_CFLAGS"
15669 else
15670 if test -n "$PKG_CONFIG" && \
15671 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio\"") >&5
15672 ($PKG_CONFIG --exists --print-errors "libcdio") 2>&5
15673 ac_status=$?
15674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; then
15676 pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libcdio" 2>/dev/null`
15677else
15678 pkg_failed=yes
15679fi
15680 fi
15681else
15682 pkg_failed=untried
15683fi
15684if test -n "$PKG_CONFIG"; then
15685 if test -n "$LIBCDIO_LIBS"; then
15686 pkg_cv_LIBCDIO_LIBS="$LIBCDIO_LIBS"
15687 else
15688 if test -n "$PKG_CONFIG" && \
15689 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcdio\"") >&5
15690 ($PKG_CONFIG --exists --print-errors "libcdio") 2>&5
15691 ac_status=$?
15692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; then
15694 pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libcdio" 2>/dev/null`
15695else
15696 pkg_failed=yes
15697fi
15698 fi
15699else
15700 pkg_failed=untried
15701fi
15702
15703
15704
15705if test $pkg_failed = yes; then
15706
15707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15708 _pkg_short_errors_supported=yes
15709else
15710 _pkg_short_errors_supported=no
15711fi
15712 if test $_pkg_short_errors_supported = yes; then
15713 LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcdio"`
15714 else
15715 LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcdio"`
15716 fi
15717 # Put the nasty error message in config.log where it belongs
15718 echo "$LIBCDIO_PKG_ERRORS" >&5
15719
15720 { $as_echo "$as_me:$LINENO: result: no" >&5
15721$as_echo "no" >&6; }
15722 { { $as_echo "$as_me:$LINENO: error: *** libcdio not found!" >&5
15723$as_echo "$as_me: error: *** libcdio not found!" >&2;}
15724 { (exit 1); exit 1; }; }
15725elif test $pkg_failed = untried; then
15726 { { $as_echo "$as_me:$LINENO: error: *** libcdio not found!" >&5
15727$as_echo "$as_me: error: *** libcdio not found!" >&2;}
15728 { (exit 1); exit 1; }; }
15729else
15730 LIBCDIO_CFLAGS=$pkg_cv_LIBCDIO_CFLAGS
15731 LIBCDIO_LIBS=$pkg_cv_LIBCDIO_LIBS
15732 { $as_echo "$as_me:$LINENO: result: yes" >&5
15733$as_echo "yes" >&6; }
15734 :
15735fi
15736 if true; then
15737 USE_LIBCDIO_TRUE=
15738 USE_LIBCDIO_FALSE='#'
15739else
15740 USE_LIBCDIO_TRUE='#'
15741 USE_LIBCDIO_FALSE=
15742fi
15743
15744fi
15745
15746
15747
15748
15749# Check whether --enable-opengl was given.
15750if test "${enable_opengl+set}" = set; then
15751 enableval=$enable_opengl; BUILD_OPENGL="$enableval"
15752else
15753 BUILD_OPENGL="no"
15754fi
15755
15756
15757PEOPSXGL=""
15758
15759if test "$BUILD_OPENGL" = "yes"; then
15760 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15761 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15762$as_echo_n "checking for GL/gl.h... " >&6; }
15763if test "${ac_cv_header_GL_gl_h+set}" = set; then
15764 $as_echo_n "(cached) " >&6
15765fi
15766{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15767$as_echo "$ac_cv_header_GL_gl_h" >&6; }
15768else
15769 # Is the header compilable?
15770{ $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15771$as_echo_n "checking GL/gl.h usability... " >&6; }
15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779#include <GL/gl.h>
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (ac_try="$ac_compile"
15783case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15788$as_echo "$ac_try_echo") >&5
15789 (eval "$ac_compile") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest.$ac_objext; then
15799 ac_header_compiler=yes
15800else
15801 $as_echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_header_compiler=no
15805fi
15806
15807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809$as_echo "$ac_header_compiler" >&6; }
15810
15811# Is the header present?
15812{ $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15813$as_echo_n "checking GL/gl.h presence... " >&6; }
15814cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820#include <GL/gl.h>
15821_ACEOF
15822if { (ac_try="$ac_cpp conftest.$ac_ext"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15828$as_echo "$ac_try_echo") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null && {
15836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 }; then
15839 ac_header_preproc=yes
15840else
15841 $as_echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844 ac_header_preproc=no
15845fi
15846
15847rm -f conftest.err conftest.$ac_ext
15848{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849$as_echo "$ac_header_preproc" >&6; }
15850
15851# So? What about this header?
15852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15853 yes:no: )
15854 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15855$as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15857$as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15859 ;;
15860 no:yes:* )
15861 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15862$as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15863 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15864$as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15865 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15866$as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15867 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15868$as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15870$as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15871 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15872$as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15873
15874 ;;
15875esac
15876{ $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15877$as_echo_n "checking for GL/gl.h... " >&6; }
15878if test "${ac_cv_header_GL_gl_h+set}" = set; then
15879 $as_echo_n "(cached) " >&6
15880else
15881 ac_cv_header_GL_gl_h=$ac_header_preproc
15882fi
15883{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15884$as_echo "$ac_cv_header_GL_gl_h" >&6; }
15885
15886fi
15887if test "x$ac_cv_header_GL_gl_h" = x""yes; then
15888 have_gl=yes
15889else
15890 have_gl=no
15891fi
15892
15893
15894 if test "x$have_gl" = xno; then
15895 { { $as_echo "$as_me:$LINENO: error: unable to find OpenGL headers" >&5
15896$as_echo "$as_me: error: unable to find OpenGL headers" >&2;}
15897 { (exit 1); exit 1; }; }
15898 fi
15899 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15900 { $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15901$as_echo_n "checking for GL/glx.h... " >&6; }
15902if test "${ac_cv_header_GL_glx_h+set}" = set; then
15903 $as_echo_n "(cached) " >&6
15904fi
15905{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15906$as_echo "$ac_cv_header_GL_glx_h" >&6; }
15907else
15908 # Is the header compilable?
15909{ $as_echo "$as_me:$LINENO: checking GL/glx.h usability" >&5
15910$as_echo_n "checking GL/glx.h usability... " >&6; }
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918#include <GL/glx.h>
15919_ACEOF
15920rm -f conftest.$ac_objext
15921if { (ac_try="$ac_compile"
15922case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15925esac
15926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927$as_echo "$ac_try_echo") >&5
15928 (eval "$ac_compile") 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } && {
15935 test -z "$ac_c_werror_flag" ||
15936 test ! -s conftest.err
15937 } && test -s conftest.$ac_objext; then
15938 ac_header_compiler=yes
15939else
15940 $as_echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_header_compiler=no
15944fi
15945
15946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948$as_echo "$ac_header_compiler" >&6; }
15949
15950# Is the header present?
15951{ $as_echo "$as_me:$LINENO: checking GL/glx.h presence" >&5
15952$as_echo_n "checking GL/glx.h presence... " >&6; }
15953cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959#include <GL/glx.h>
15960_ACEOF
15961if { (ac_try="$ac_cpp conftest.$ac_ext"
15962case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
15966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15967$as_echo "$ac_try_echo") >&5
15968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } >/dev/null && {
15975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 }; then
15978 ac_header_preproc=yes
15979else
15980 $as_echo "$as_me: failed program was:" >&5
15981sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 ac_header_preproc=no
15984fi
15985
15986rm -f conftest.err conftest.$ac_ext
15987{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15988$as_echo "$ac_header_preproc" >&6; }
15989
15990# So? What about this header?
15991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15992 yes:no: )
15993 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: accepted by the compiler, rejected by the preprocessor!" >&5
15994$as_echo "$as_me: WARNING: GL/glx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15995 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: proceeding with the compiler's result" >&5
15996$as_echo "$as_me: WARNING: GL/glx.h: proceeding with the compiler's result" >&2;}
15997 ac_header_preproc=yes
15998 ;;
15999 no:yes:* )
16000 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: present but cannot be compiled" >&5
16001$as_echo "$as_me: WARNING: GL/glx.h: present but cannot be compiled" >&2;}
16002 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: check for missing prerequisite headers?" >&5
16003$as_echo "$as_me: WARNING: GL/glx.h: check for missing prerequisite headers?" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: see the Autoconf documentation" >&5
16005$as_echo "$as_me: WARNING: GL/glx.h: see the Autoconf documentation" >&2;}
16006 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: section \"Present But Cannot Be Compiled\"" >&5
16007$as_echo "$as_me: WARNING: GL/glx.h: section \"Present But Cannot Be Compiled\"" >&2;}
16008 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&5
16009$as_echo "$as_me: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&2;}
16010 { $as_echo "$as_me:$LINENO: WARNING: GL/glx.h: in the future, the compiler will take precedence" >&5
16011$as_echo "$as_me: WARNING: GL/glx.h: in the future, the compiler will take precedence" >&2;}
16012
16013 ;;
16014esac
16015{ $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16016$as_echo_n "checking for GL/glx.h... " >&6; }
16017if test "${ac_cv_header_GL_glx_h+set}" = set; then
16018 $as_echo_n "(cached) " >&6
16019else
16020 ac_cv_header_GL_glx_h=$ac_header_preproc
16021fi
16022{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16023$as_echo "$ac_cv_header_GL_glx_h" >&6; }
16024
16025fi
16026if test "x$ac_cv_header_GL_glx_h" = x""yes; then
16027 have_glx=yes
16028else
16029 have_glx=no
16030fi
16031
16032
16033 if test "x$have_glx" = xno; then
16034 { { $as_echo "$as_me:$LINENO: error: unable to find GLX headers" >&5
16035$as_echo "$as_me: error: unable to find GLX headers" >&2;}
16036 { (exit 1); exit 1; }; }
16037 fi
16038 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
16039$as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
16040if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
16041 $as_echo_n "(cached) " >&6
16042else
16043 cat >conftest.$ac_ext <<_ACEOF
16044/* confdefs.h. */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h. */
16049#include <GL/gl.h>
16050 #include <GL/glx.h>
16051
16052
16053#include <X11/extensions/xf86vmode.h>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062$as_echo "$ac_try_echo") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16073 ac_cv_header_X11_extensions_xf86vmode_h=yes
16074else
16075 $as_echo "$as_me: failed program was:" >&5
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 ac_cv_header_X11_extensions_xf86vmode_h=no
16079fi
16080
16081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082fi
16083{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
16084$as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
16085if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
16086 have_vmode=yes
16087else
16088 have_vmode=no
16089fi
16090
16091
16092 if test "x$have_vmode" = xno; then
16093 { { $as_echo "$as_me:$LINENO: error: unable to find xf86vmode headers" >&5
16094$as_echo "$as_me: error: unable to find xf86vmode headers" >&2;}
16095 { (exit 1); exit 1; }; }
16096 fi
16097 PEOPSXGL="plugins/peopsxgl"
16098
16099 ac_config_files="$ac_config_files plugins/peopsxgl/Makefile"
16100
16101fi
16102
16103 if false; then
16104 X86_NASM_TRUE=
16105 X86_NASM_FALSE='#'
16106else
16107 X86_NASM_TRUE='#'
16108 X86_NASM_FALSE=
16109fi
16110
16111
16112if expr x"$target_cpu" : 'xi.86' > /dev/null; then
16113 if expr x"$target_os" : 'x.*linux.*' > /dev/null; then
16114 # Extract the first word of "nasm", so it can be a program name with args.
16115set dummy nasm; ac_word=$2
16116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16117$as_echo_n "checking for $ac_word... " >&6; }
16118if test "${ac_cv_path_NASM+set}" = set; then
16119 $as_echo_n "(cached) " >&6
16120else
16121 case $NASM in
16122 [\\/]* | ?:[\\/]*)
16123 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
16124 ;;
16125 *)
16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127for as_dir in $PATH
16128do
16129 IFS=$as_save_IFS
16130 test -z "$as_dir" && as_dir=.
16131 for ac_exec_ext in '' $ac_executable_extensions; do
16132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16133 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
16134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16135 break 2
16136 fi
16137done
16138done
16139IFS=$as_save_IFS
16140
16141 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="missing"
16142 ;;
16143esac
16144fi
16145NASM=$ac_cv_path_NASM
16146if test -n "$NASM"; then
16147 { $as_echo "$as_me:$LINENO: result: $NASM" >&5
16148$as_echo "$NASM" >&6; }
16149else
16150 { $as_echo "$as_me:$LINENO: result: no" >&5
16151$as_echo "no" >&6; }
16152fi
16153
16154
16155 if test "$NASM" = "missing"; then
16156 { $as_echo "$as_me:$LINENO: WARNING: unable to find nasm, needed to build dfx11video" >&5
16157$as_echo "$as_me: WARNING: unable to find nasm, needed to build dfx11video" >&2;}
16158 if false; then
16159 X86_NASM_TRUE=
16160 X86_NASM_FALSE='#'
16161else
16162 X86_NASM_TRUE='#'
16163 X86_NASM_FALSE=
16164fi
16165
16166 else
16167 if true; then
16168 X86_NASM_TRUE=
16169 X86_NASM_FALSE='#'
16170else
16171 X86_NASM_TRUE='#'
16172 X86_NASM_FALSE=
16173fi
16174
16175 fi
16176 fi
16177fi
16178
16179 if false; then
16180 ARCH_X86_TRUE=
16181 ARCH_X86_FALSE='#'
16182else
16183 ARCH_X86_TRUE='#'
16184 ARCH_X86_FALSE=
16185fi
16186
16187 if false; then
16188 ARCH_X86_64_TRUE=
16189 ARCH_X86_64_FALSE='#'
16190else
16191 ARCH_X86_64_TRUE='#'
16192 ARCH_X86_64_FALSE=
16193fi
16194
16195 if false; then
16196 ARCH_PPC_TRUE=
16197 ARCH_PPC_FALSE='#'
16198else
16199 ARCH_PPC_TRUE='#'
16200 ARCH_PPC_FALSE=
16201fi
16202
16203
16204# Check whether --enable-dynarec was given.
16205if test "${enable_dynarec+set}" = set; then
16206 enableval=$enable_dynarec; DYNAREC="$enableval"
16207else
16208 DYNAREC="auto"
16209fi
16210
16211
16212if test "x$DYNAREC" = xauto; then
16213 DYNARECSEL="auto"
16214else if test "x$DYNAREC" = xx86; then
16215 DYNARECSEL="x86"
16216else if test "x$DYNAREC" = xx86_64; then
16217 DYNARECSEL="x86_64"
16218else if test "x$DYNAREC" = xppc; then
16219 DYNARECSEL="ppc"
16220else if test "x$DYNAREC" = xno; then
16221 DYNARECSEL="no"
16222else
16223 { $as_echo "$as_me:$LINENO: WARNING: Dynamic Recompiler \"$DYNAREC\" not found. Autodetecting..." >&5
16224$as_echo "$as_me: WARNING: Dynamic Recompiler \"$DYNAREC\" not found. Autodetecting..." >&2;}
16225 DYNARECSEL="auto"
16226fi
16227fi
16228fi
16229fi
16230fi
16231
16232if test "x$DYNARECSEL" = xauto; then
16233 if expr x"$target_cpu" : 'xi.86' > /dev/null; then
16234 DYNARECSEL="x86"
16235 fi
16236
16237 if expr x"$target_cpu" : 'xx86_64' > /dev/null; then
16238 DYNARECSEL="x86_64"
16239 fi
16240
16241 if expr x"$target_cpu" : 'xpowerpc' > /dev/null; then
16242 DYNARECSEL="ppc"
16243 fi
16244fi
16245
16246if test "x$DYNARECSEL" = xno; then
16247
16248cat >>confdefs.h <<\_ACEOF
16249#define NOPSXREC 1
16250_ACEOF
16251
16252fi
16253
16254if test "x$DYNARECSEL" = xx86; then
16255
16256cat >>confdefs.h <<\_ACEOF
16257#define __i386__ 1
16258_ACEOF
16259
16260 if true; then
16261 ARCH_X86_TRUE=
16262 ARCH_X86_FALSE='#'
16263else
16264 ARCH_X86_TRUE='#'
16265 ARCH_X86_FALSE=
16266fi
16267
16268
16269 { $as_echo "$as_me:$LINENO: result: Dynamic Recompiler selected: x86" >&5
16270$as_echo "Dynamic Recompiler selected: x86" >&6; }
16271fi
16272
16273if test "x$DYNARECSEL" = xx86_64; then
16274
16275cat >>confdefs.h <<\_ACEOF
16276#define __x86_64__ 1
16277_ACEOF
16278
16279 if true; then
16280 ARCH_X86_64_TRUE=
16281 ARCH_X86_64_FALSE='#'
16282else
16283 ARCH_X86_64_TRUE='#'
16284 ARCH_X86_64_FALSE=
16285fi
16286
16287 { $as_echo "$as_me:$LINENO: result: Dynamic Recompiler selected: x86_64" >&5
16288$as_echo "Dynamic Recompiler selected: x86_64" >&6; }
16289fi
16290
16291if test "x$DYNARECSEL" = xppc; then
16292
16293cat >>confdefs.h <<\_ACEOF
16294#define __ppc__ 1
16295_ACEOF
16296
16297 if true; then
16298 ARCH_PPC_TRUE=
16299 ARCH_PPC_FALSE='#'
16300else
16301 ARCH_PPC_TRUE='#'
16302 ARCH_PPC_FALSE=
16303fi
16304
16305 { $as_echo "$as_me:$LINENO: result: Dynamic Recompiler selected: ppc" >&5
16306$as_echo "Dynamic Recompiler selected: ppc" >&6; }
16307fi
16308
16309
16310 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16311$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16312if test "${ac_cv_c_bigendian+set}" = set; then
16313 $as_echo_n "(cached) " >&6
16314else
16315 ac_cv_c_bigendian=unknown
16316 # See if we're dealing with a universal compiler.
16317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323#ifndef __APPLE_CC__
16324 not a universal capable compiler
16325 #endif
16326 typedef int dummy;
16327
16328_ACEOF
16329rm -f conftest.$ac_objext
16330if { (ac_try="$ac_compile"
16331case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334esac
16335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336$as_echo "$ac_try_echo") >&5
16337 (eval "$ac_compile") 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } && {
16344 test -z "$ac_c_werror_flag" ||
16345 test ! -s conftest.err
16346 } && test -s conftest.$ac_objext; then
16347
16348 # Check for potential -arch flags. It is not universal unless
16349 # there are some -arch flags. Note that *ppc* also matches
16350 # ppc64. This check is also rather less than ideal.
16351 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
16352 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
16353 esac
16354else
16355 $as_echo "$as_me: failed program was:" >&5
16356sed 's/^/| /' conftest.$ac_ext >&5
16357
16358
16359fi
16360
16361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 if test $ac_cv_c_bigendian = unknown; then
16363 # See if sys/param.h defines the BYTE_ORDER macro.
16364 cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370#include <sys/types.h>
16371 #include <sys/param.h>
16372
16373int
16374main ()
16375{
16376#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16378 && LITTLE_ENDIAN)
16379 bogus endian macros
16380 #endif
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (ac_try="$ac_compile"
16388case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391esac
16392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16393$as_echo "$ac_try_echo") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && {
16401 test -z "$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 } && test -s conftest.$ac_objext; then
16404 # It does; now see whether it defined to BIG_ENDIAN or not.
16405 cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411#include <sys/types.h>
16412 #include <sys/param.h>
16413
16414int
16415main ()
16416{
16417#if BYTE_ORDER != BIG_ENDIAN
16418 not big endian
16419 #endif
16420
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (ac_try="$ac_compile"
16427case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432$as_echo "$ac_try_echo") >&5
16433 (eval "$ac_compile") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest.$ac_objext; then
16443 ac_cv_c_bigendian=yes
16444else
16445 $as_echo "$as_me: failed program was:" >&5
16446sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 ac_cv_c_bigendian=no
16449fi
16450
16451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452else
16453 $as_echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456
16457fi
16458
16459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 fi
16461 if test $ac_cv_c_bigendian = unknown; then
16462 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16463 cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469#include <limits.h>
16470
16471int
16472main ()
16473{
16474#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16475 bogus endian macros
16476 #endif
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (ac_try="$ac_compile"
16484case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16489$as_echo "$ac_try_echo") >&5
16490 (eval "$ac_compile") 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && {
16497 test -z "$ac_c_werror_flag" ||
16498 test ! -s conftest.err
16499 } && test -s conftest.$ac_objext; then
16500 # It does; now see whether it defined to _BIG_ENDIAN or not.
16501 cat >conftest.$ac_ext <<_ACEOF
16502/* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
16507#include <limits.h>
16508
16509int
16510main ()
16511{
16512#ifndef _BIG_ENDIAN
16513 not big endian
16514 #endif
16515
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (ac_try="$ac_compile"
16522case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16527$as_echo "$ac_try_echo") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest.$ac_objext; then
16538 ac_cv_c_bigendian=yes
16539else
16540 $as_echo "$as_me: failed program was:" >&5
16541sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_cv_c_bigendian=no
16544fi
16545
16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547else
16548 $as_echo "$as_me: failed program was:" >&5
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
16551
16552fi
16553
16554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 if test $ac_cv_c_bigendian = unknown; then
16557 # Compile a test program.
16558 if test "$cross_compiling" = yes; then
16559 # Try to guess by grepping values from an object file.
16560 cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566short int ascii_mm[] =
16567 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16568 short int ascii_ii[] =
16569 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16570 int use_ascii (int i) {
16571 return ascii_mm[i] + ascii_ii[i];
16572 }
16573 short int ebcdic_ii[] =
16574 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16575 short int ebcdic_mm[] =
16576 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16577 int use_ebcdic (int i) {
16578 return ebcdic_mm[i] + ebcdic_ii[i];
16579 }
16580 extern int foo;
16581
16582int
16583main ()
16584{
16585return use_ascii (foo) == use_ebcdic (foo);
16586 ;
16587 return 0;
16588}
16589_ACEOF
16590rm -f conftest.$ac_objext
16591if { (ac_try="$ac_compile"
16592case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595esac
16596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16597$as_echo "$ac_try_echo") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest.$ac_objext; then
16608 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16609 ac_cv_c_bigendian=yes
16610 fi
16611 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16612 if test "$ac_cv_c_bigendian" = unknown; then
16613 ac_cv_c_bigendian=no
16614 else
16615 # finding both strings is unlikely to happen, but who knows?
16616 ac_cv_c_bigendian=unknown
16617 fi
16618 fi
16619else
16620 $as_echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623
16624fi
16625
16626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627else
16628 cat >conftest.$ac_ext <<_ACEOF
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634$ac_includes_default
16635int
16636main ()
16637{
16638
16639 /* Are we little or big endian? From Harbison&Steele. */
16640 union
16641 {
16642 long int l;
16643 char c[sizeof (long int)];
16644 } u;
16645 u.l = 1;
16646 return u.c[sizeof (long int) - 1] == 1;
16647
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest$ac_exeext
16653if { (ac_try="$ac_link"
16654case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16659$as_echo "$ac_try_echo") >&5
16660 (eval "$ac_link") 2>&5
16661 ac_status=$?
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
16668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16669$as_echo "$ac_try_echo") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_c_bigendian=no
16675else
16676 $as_echo "$as_me: program exited with status $ac_status" >&5
16677$as_echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680( exit $ac_status )
16681ac_cv_c_bigendian=yes
16682fi
16683rm -rf conftest.dSYM
16684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16685fi
16686
16687
16688 fi
16689fi
16690{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16691$as_echo "$ac_cv_c_bigendian" >&6; }
16692 case $ac_cv_c_bigendian in #(
16693 yes)
16694
16695cat >>confdefs.h <<\_ACEOF
16696#define __BIGENDIAN__ /**/
16697_ACEOF
16698;; #(
16699 no)
16700 ;; #(
16701 universal)
16702
16703cat >>confdefs.h <<\_ACEOF
16704#define AC_APPLE_UNIVERSAL_BUILD 1
16705_ACEOF
16706
16707 ;; #(
16708 *)
16709 { { $as_echo "$as_me:$LINENO: error: unknown endianness
16710 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16711$as_echo "$as_me: error: unknown endianness
16712 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16713 { (exit 1); exit 1; }; } ;;
16714 esac
16715
16716
16717
16718cat >>confdefs.h <<\_ACEOF
16719#define __LINUX__ 1
16720_ACEOF
16721
16722
16723cat >>confdefs.h <<\_ACEOF
16724#define MAXPATHLEN 4096
16725_ACEOF
16726
16727
16728cat >confcache <<\_ACEOF
16729# This file is a shell script that caches the results of configure
16730# tests run on this system so they can be shared between configure
16731# scripts and configure runs, see configure's option --config-cache.
16732# It is not useful on other systems. If it contains results you don't
16733# want to keep, you may remove or edit it.
16734#
16735# config.status only pays attention to the cache file if you give it
16736# the --recheck option to rerun configure.
16737#
16738# `ac_cv_env_foo' variables (set or unset) will be overridden when
16739# loading this file, other *unset* `ac_cv_foo' will be assigned the
16740# following values.
16741
16742_ACEOF
16743
16744# The following way of writing the cache mishandles newlines in values,
16745# but we know of no workaround that is simple, portable, and efficient.
16746# So, we kill variables containing newlines.
16747# Ultrix sh set writes to stderr and can't be redirected directly,
16748# and sets the high bit in the cache file unless we assign to the vars.
16749(
16750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16751 eval ac_val=\$$ac_var
16752 case $ac_val in #(
16753 *${as_nl}*)
16754 case $ac_var in #(
16755 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16757 esac
16758 case $ac_var in #(
16759 _ | IFS | as_nl) ;; #(
16760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16761 *) $as_unset $ac_var ;;
16762 esac ;;
16763 esac
16764 done
16765
16766 (set) 2>&1 |
16767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16768 *${as_nl}ac_space=\ *)
16769 # `set' does not quote correctly, so add quotes (double-quote
16770 # substitution turns \\\\ into \\, and sed turns \\ into \).
16771 sed -n \
16772 "s/'/'\\\\''/g;
16773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16774 ;; #(
16775 *)
16776 # `set' quotes correctly as required by POSIX, so do not add quotes.
16777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16778 ;;
16779 esac |
16780 sort
16781) |
16782 sed '
16783 /^ac_cv_env_/b end
16784 t clear
16785 :clear
16786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16787 t end
16788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16789 :end' >>confcache
16790if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16791 if test -w "$cache_file"; then
16792 test "x$cache_file" != "x/dev/null" &&
16793 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16794$as_echo "$as_me: updating cache $cache_file" >&6;}
16795 cat confcache >$cache_file
16796 else
16797 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16798$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16799 fi
16800fi
16801rm -f confcache
16802
16803test "x$prefix" = xNONE && prefix=$ac_default_prefix
16804# Let make expand exec_prefix.
16805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16806
16807DEFS=-DHAVE_CONFIG_H
16808
16809ac_libobjs=
16810ac_ltlibobjs=
16811for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16812 # 1. Remove the extension, and $U if already installed.
16813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16816 # will be set to the directory where LIBOBJS objects are built.
16817 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16818 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16819done
16820LIBOBJS=$ac_libobjs
16821
16822LTLIBOBJS=$ac_ltlibobjs
16823
16824
16825if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16826 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16827Usually this means the macro was only invoked conditionally." >&5
16828$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16829Usually this means the macro was only invoked conditionally." >&2;}
16830 { (exit 1); exit 1; }; }
16831fi
16832if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16833 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16834Usually this means the macro was only invoked conditionally." >&5
16835$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16836Usually this means the macro was only invoked conditionally." >&2;}
16837 { (exit 1); exit 1; }; }
16838fi
16839if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16840 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16841Usually this means the macro was only invoked conditionally." >&5
16842$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16843Usually this means the macro was only invoked conditionally." >&2;}
16844 { (exit 1); exit 1; }; }
16845fi
16846if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16847 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
16848Usually this means the macro was only invoked conditionally." >&5
16849$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
16850Usually this means the macro was only invoked conditionally." >&2;}
16851 { (exit 1); exit 1; }; }
16852fi
16853if test -z "${SOUND_OSS_TRUE}" && test -z "${SOUND_OSS_FALSE}"; then
16854 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_OSS\" was never defined.
16855Usually this means the macro was only invoked conditionally." >&5
16856$as_echo "$as_me: error: conditional \"SOUND_OSS\" was never defined.
16857Usually this means the macro was only invoked conditionally." >&2;}
16858 { (exit 1); exit 1; }; }
16859fi
16860if test -z "${SOUND_SDL_TRUE}" && test -z "${SOUND_SDL_FALSE}"; then
16861 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_SDL\" was never defined.
16862Usually this means the macro was only invoked conditionally." >&5
16863$as_echo "$as_me: error: conditional \"SOUND_SDL\" was never defined.
16864Usually this means the macro was only invoked conditionally." >&2;}
16865 { (exit 1); exit 1; }; }
16866fi
16867if test -z "${SOUND_NULL_TRUE}" && test -z "${SOUND_NULL_FALSE}"; then
16868 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_NULL\" was never defined.
16869Usually this means the macro was only invoked conditionally." >&5
16870$as_echo "$as_me: error: conditional \"SOUND_NULL\" was never defined.
16871Usually this means the macro was only invoked conditionally." >&2;}
16872 { (exit 1); exit 1; }; }
16873fi
16874if test -z "${SOUND_OSS_TRUE}" && test -z "${SOUND_OSS_FALSE}"; then
16875 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_OSS\" was never defined.
16876Usually this means the macro was only invoked conditionally." >&5
16877$as_echo "$as_me: error: conditional \"SOUND_OSS\" was never defined.
16878Usually this means the macro was only invoked conditionally." >&2;}
16879 { (exit 1); exit 1; }; }
16880fi
16881if test -z "${SOUND_NULL_TRUE}" && test -z "${SOUND_NULL_FALSE}"; then
16882 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_NULL\" was never defined.
16883Usually this means the macro was only invoked conditionally." >&5
16884$as_echo "$as_me: error: conditional \"SOUND_NULL\" was never defined.
16885Usually this means the macro was only invoked conditionally." >&2;}
16886 { (exit 1); exit 1; }; }
16887fi
16888if test -z "${SOUND_NULL_TRUE}" && test -z "${SOUND_NULL_FALSE}"; then
16889 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_NULL\" was never defined.
16890Usually this means the macro was only invoked conditionally." >&5
16891$as_echo "$as_me: error: conditional \"SOUND_NULL\" was never defined.
16892Usually this means the macro was only invoked conditionally." >&2;}
16893 { (exit 1); exit 1; }; }
16894fi
16895if test -z "${SOUND_SDL_TRUE}" && test -z "${SOUND_SDL_FALSE}"; then
16896 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_SDL\" was never defined.
16897Usually this means the macro was only invoked conditionally." >&5
16898$as_echo "$as_me: error: conditional \"SOUND_SDL\" was never defined.
16899Usually this means the macro was only invoked conditionally." >&2;}
16900 { (exit 1); exit 1; }; }
16901fi
16902if test -z "${SOUND_ALSA_TRUE}" && test -z "${SOUND_ALSA_FALSE}"; then
16903 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_ALSA\" was never defined.
16904Usually this means the macro was only invoked conditionally." >&5
16905$as_echo "$as_me: error: conditional \"SOUND_ALSA\" was never defined.
16906Usually this means the macro was only invoked conditionally." >&2;}
16907 { (exit 1); exit 1; }; }
16908fi
16909if test -z "${SOUND_PULSEAUDIO_TRUE}" && test -z "${SOUND_PULSEAUDIO_FALSE}"; then
16910 { { $as_echo "$as_me:$LINENO: error: conditional \"SOUND_PULSEAUDIO\" was never defined.
16911Usually this means the macro was only invoked conditionally." >&5
16912$as_echo "$as_me: error: conditional \"SOUND_PULSEAUDIO\" was never defined.
16913Usually this means the macro was only invoked conditionally." >&2;}
16914 { (exit 1); exit 1; }; }
16915fi
16916if test -z "${USE_LIBCDIO_TRUE}" && test -z "${USE_LIBCDIO_FALSE}"; then
16917 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBCDIO\" was never defined.
16918Usually this means the macro was only invoked conditionally." >&5
16919$as_echo "$as_me: error: conditional \"USE_LIBCDIO\" was never defined.
16920Usually this means the macro was only invoked conditionally." >&2;}
16921 { (exit 1); exit 1; }; }
16922fi
16923if test -z "${USE_LIBCDIO_TRUE}" && test -z "${USE_LIBCDIO_FALSE}"; then
16924 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBCDIO\" was never defined.
16925Usually this means the macro was only invoked conditionally." >&5
16926$as_echo "$as_me: error: conditional \"USE_LIBCDIO\" was never defined.
16927Usually this means the macro was only invoked conditionally." >&2;}
16928 { (exit 1); exit 1; }; }
16929fi
16930if test -z "${X86_NASM_TRUE}" && test -z "${X86_NASM_FALSE}"; then
16931 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_NASM\" was never defined.
16932Usually this means the macro was only invoked conditionally." >&5
16933$as_echo "$as_me: error: conditional \"X86_NASM\" was never defined.
16934Usually this means the macro was only invoked conditionally." >&2;}
16935 { (exit 1); exit 1; }; }
16936fi
16937if test -z "${X86_NASM_TRUE}" && test -z "${X86_NASM_FALSE}"; then
16938 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_NASM\" was never defined.
16939Usually this means the macro was only invoked conditionally." >&5
16940$as_echo "$as_me: error: conditional \"X86_NASM\" was never defined.
16941Usually this means the macro was only invoked conditionally." >&2;}
16942 { (exit 1); exit 1; }; }
16943fi
16944if test -z "${X86_NASM_TRUE}" && test -z "${X86_NASM_FALSE}"; then
16945 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_NASM\" was never defined.
16946Usually this means the macro was only invoked conditionally." >&5
16947$as_echo "$as_me: error: conditional \"X86_NASM\" was never defined.
16948Usually this means the macro was only invoked conditionally." >&2;}
16949 { (exit 1); exit 1; }; }
16950fi
16951if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
16952 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
16953Usually this means the macro was only invoked conditionally." >&5
16954$as_echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
16955Usually this means the macro was only invoked conditionally." >&2;}
16956 { (exit 1); exit 1; }; }
16957fi
16958if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
16959 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86_64\" was never defined.
16960Usually this means the macro was only invoked conditionally." >&5
16961$as_echo "$as_me: error: conditional \"ARCH_X86_64\" was never defined.
16962Usually this means the macro was only invoked conditionally." >&2;}
16963 { (exit 1); exit 1; }; }
16964fi
16965if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
16966 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
16967Usually this means the macro was only invoked conditionally." >&5
16968$as_echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
16969Usually this means the macro was only invoked conditionally." >&2;}
16970 { (exit 1); exit 1; }; }
16971fi
16972if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
16973 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
16974Usually this means the macro was only invoked conditionally." >&5
16975$as_echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
16976Usually this means the macro was only invoked conditionally." >&2;}
16977 { (exit 1); exit 1; }; }
16978fi
16979if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
16980 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86_64\" was never defined.
16981Usually this means the macro was only invoked conditionally." >&5
16982$as_echo "$as_me: error: conditional \"ARCH_X86_64\" was never defined.
16983Usually this means the macro was only invoked conditionally." >&2;}
16984 { (exit 1); exit 1; }; }
16985fi
16986if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
16987 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
16988Usually this means the macro was only invoked conditionally." >&5
16989$as_echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
16990Usually this means the macro was only invoked conditionally." >&2;}
16991 { (exit 1); exit 1; }; }
16992fi
16993
16994
16995: ${CONFIG_STATUS=./config.status}
16996ac_write_fail=0
16997ac_clean_files_save=$ac_clean_files
16998ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16999{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17000$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17001cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17002#! $SHELL
17003# Generated by $as_me.
17004# Run this file to recreate the current configuration.
17005# Compiler output produced by configure, useful for debugging
17006# configure, is in config.log if it exists.
17007
17008debug=false
17009ac_cs_recheck=false
17010ac_cs_silent=false
17011SHELL=\${CONFIG_SHELL-$SHELL}
17012_ACEOF
17013
17014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17015## --------------------- ##
17016## M4sh Initialization. ##
17017## --------------------- ##
17018
17019# Be more Bourne compatible
17020DUALCASE=1; export DUALCASE # for MKS sh
17021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17022 emulate sh
17023 NULLCMD=:
17024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17025 # is contrary to our usage. Disable this feature.
17026 alias -g '${1+"$@"}'='"$@"'
17027 setopt NO_GLOB_SUBST
17028else
17029 case `(set -o) 2>/dev/null` in
17030 *posix*) set -o posix ;;
17031esac
17032
17033fi
17034
17035
17036
17037
17038# PATH needs CR
17039# Avoid depending upon Character Ranges.
17040as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17041as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17042as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17043as_cr_digits='0123456789'
17044as_cr_alnum=$as_cr_Letters$as_cr_digits
17045
17046as_nl='
17047'
17048export as_nl
17049# Printing a long string crashes Solaris 7 /usr/bin/printf.
17050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17053if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17054 as_echo='printf %s\n'
17055 as_echo_n='printf %s'
17056else
17057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17059 as_echo_n='/usr/ucb/echo -n'
17060 else
17061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17062 as_echo_n_body='eval
17063 arg=$1;
17064 case $arg in
17065 *"$as_nl"*)
17066 expr "X$arg" : "X\\(.*\\)$as_nl";
17067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17068 esac;
17069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17070 '
17071 export as_echo_n_body
17072 as_echo_n='sh -c $as_echo_n_body as_echo'
17073 fi
17074 export as_echo_body
17075 as_echo='sh -c $as_echo_body as_echo'
17076fi
17077
17078# The user is always right.
17079if test "${PATH_SEPARATOR+set}" != set; then
17080 PATH_SEPARATOR=:
17081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17083 PATH_SEPARATOR=';'
17084 }
17085fi
17086
17087# Support unset when possible.
17088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17089 as_unset=unset
17090else
17091 as_unset=false
17092fi
17093
17094
17095# IFS
17096# We need space, tab and new line, in precisely that order. Quoting is
17097# there to prevent editors from complaining about space-tab.
17098# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17099# splitting by setting IFS to empty value.)
17100IFS=" "" $as_nl"
17101
17102# Find who we are. Look in the path if we contain no directory separator.
17103case $0 in
17104 *[\\/]* ) as_myself=$0 ;;
17105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106for as_dir in $PATH
17107do
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
17110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17111done
17112IFS=$as_save_IFS
17113
17114 ;;
17115esac
17116# We did not find ourselves, most probably we were run as `sh COMMAND'
17117# in which case we are not to be found in the path.
17118if test "x$as_myself" = x; then
17119 as_myself=$0
17120fi
17121if test ! -f "$as_myself"; then
17122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17123 { (exit 1); exit 1; }
17124fi
17125
17126# Work around bugs in pre-3.0 UWIN ksh.
17127for as_var in ENV MAIL MAILPATH
17128do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17129done
17130PS1='$ '
17131PS2='> '
17132PS4='+ '
17133
17134# NLS nuisances.
17135LC_ALL=C
17136export LC_ALL
17137LANGUAGE=C
17138export LANGUAGE
17139
17140# Required to use basename.
17141if expr a : '\(a\)' >/dev/null 2>&1 &&
17142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17143 as_expr=expr
17144else
17145 as_expr=false
17146fi
17147
17148if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17149 as_basename=basename
17150else
17151 as_basename=false
17152fi
17153
17154
17155# Name of the executable.
17156as_me=`$as_basename -- "$0" ||
17157$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17158 X"$0" : 'X\(//\)$' \| \
17159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17160$as_echo X/"$0" |
17161 sed '/^.*\/\([^/][^/]*\)\/*$/{
17162 s//\1/
17163 q
17164 }
17165 /^X\/\(\/\/\)$/{
17166 s//\1/
17167 q
17168 }
17169 /^X\/\(\/\).*/{
17170 s//\1/
17171 q
17172 }
17173 s/.*/./; q'`
17174
17175# CDPATH.
17176$as_unset CDPATH
17177
17178
17179
17180 as_lineno_1=$LINENO
17181 as_lineno_2=$LINENO
17182 test "x$as_lineno_1" != "x$as_lineno_2" &&
17183 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17184
17185 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17186 # uniformly replaced by the line number. The first 'sed' inserts a
17187 # line-number line after each line using $LINENO; the second 'sed'
17188 # does the real work. The second script uses 'N' to pair each
17189 # line-number line with the line containing $LINENO, and appends
17190 # trailing '-' during substitution so that $LINENO is not a special
17191 # case at line end.
17192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17193 # scripts with optimization help from Paolo Bonzini. Blame Lee
17194 # E. McMahon (1931-1989) for sed's syntax. :-)
17195 sed -n '
17196 p
17197 /[$]LINENO/=
17198 ' <$as_myself |
17199 sed '
17200 s/[$]LINENO.*/&-/
17201 t lineno
17202 b
17203 :lineno
17204 N
17205 :loop
17206 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17207 t loop
17208 s/-\n.*//
17209 ' >$as_me.lineno &&
17210 chmod +x "$as_me.lineno" ||
17211 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17212 { (exit 1); exit 1; }; }
17213
17214 # Don't try to exec as it changes $[0], causing all sort of problems
17215 # (the dirname of $[0] is not the place where we might find the
17216 # original and so on. Autoconf is especially sensitive to this).
17217 . "./$as_me.lineno"
17218 # Exit status is that of the last command.
17219 exit
17220}
17221
17222
17223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17224 as_dirname=dirname
17225else
17226 as_dirname=false
17227fi
17228
17229ECHO_C= ECHO_N= ECHO_T=
17230case `echo -n x` in
17231-n*)
17232 case `echo 'x\c'` in
17233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17234 *) ECHO_C='\c';;
17235 esac;;
17236*)
17237 ECHO_N='-n';;
17238esac
17239if expr a : '\(a\)' >/dev/null 2>&1 &&
17240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17241 as_expr=expr
17242else
17243 as_expr=false
17244fi
17245
17246rm -f conf$$ conf$$.exe conf$$.file
17247if test -d conf$$.dir; then
17248 rm -f conf$$.dir/conf$$.file
17249else
17250 rm -f conf$$.dir
17251 mkdir conf$$.dir 2>/dev/null
17252fi
17253if (echo >conf$$.file) 2>/dev/null; then
17254 if ln -s conf$$.file conf$$ 2>/dev/null; then
17255 as_ln_s='ln -s'
17256 # ... but there are two gotchas:
17257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17259 # In both cases, we have to default to `cp -p'.
17260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17261 as_ln_s='cp -p'
17262 elif ln conf$$.file conf$$ 2>/dev/null; then
17263 as_ln_s=ln
17264 else
17265 as_ln_s='cp -p'
17266 fi
17267else
17268 as_ln_s='cp -p'
17269fi
17270rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17271rmdir conf$$.dir 2>/dev/null
17272
17273if mkdir -p . 2>/dev/null; then
17274 as_mkdir_p=:
17275else
17276 test -d ./-p && rmdir ./-p
17277 as_mkdir_p=false
17278fi
17279
17280if test -x / >/dev/null 2>&1; then
17281 as_test_x='test -x'
17282else
17283 if ls -dL / >/dev/null 2>&1; then
17284 as_ls_L_option=L
17285 else
17286 as_ls_L_option=
17287 fi
17288 as_test_x='
17289 eval sh -c '\''
17290 if test -d "$1"; then
17291 test -d "$1/.";
17292 else
17293 case $1 in
17294 -*)set "./$1";;
17295 esac;
17296 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17297 ???[sx]*):;;*)false;;esac;fi
17298 '\'' sh
17299 '
17300fi
17301as_executable_p=$as_test_x
17302
17303# Sed expression to map a string onto a valid CPP name.
17304as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17305
17306# Sed expression to map a string onto a valid variable name.
17307as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17308
17309
17310exec 6>&1
17311
17312# Save the log message, to keep $[0] and so on meaningful, and to
17313# report actual input values of CONFIG_FILES etc. instead of their
17314# values after options handling.
17315ac_log="
17316This file was extended by pcsx $as_me 1.9, which was
17317generated by GNU Autoconf 2.63. Invocation command line was
17318
17319 CONFIG_FILES = $CONFIG_FILES
17320 CONFIG_HEADERS = $CONFIG_HEADERS
17321 CONFIG_LINKS = $CONFIG_LINKS
17322 CONFIG_COMMANDS = $CONFIG_COMMANDS
17323 $ $0 $@
17324
17325on `(hostname || uname -n) 2>/dev/null | sed 1q`
17326"
17327
17328_ACEOF
17329
17330case $ac_config_files in *"
17331"*) set x $ac_config_files; shift; ac_config_files=$*;;
17332esac
17333
17334case $ac_config_headers in *"
17335"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17336esac
17337
17338
17339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340# Files that config.status was made for.
17341config_files="$ac_config_files"
17342config_headers="$ac_config_headers"
17343config_commands="$ac_config_commands"
17344
17345_ACEOF
17346
17347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348ac_cs_usage="\
17349\`$as_me' instantiates files from templates according to the
17350current configuration.
17351
17352Usage: $0 [OPTION]... [FILE]...
17353
17354 -h, --help print this help, then exit
17355 -V, --version print version number and configuration settings, then exit
17356 -q, --quiet, --silent
17357 do not print progress messages
17358 -d, --debug don't remove temporary files
17359 --recheck update $as_me by reconfiguring in the same conditions
17360 --file=FILE[:TEMPLATE]
17361 instantiate the configuration file FILE
17362 --header=FILE[:TEMPLATE]
17363 instantiate the configuration header FILE
17364
17365Configuration files:
17366$config_files
17367
17368Configuration headers:
17369$config_headers
17370
17371Configuration commands:
17372$config_commands
17373
17374Report bugs to <bug-autoconf@gnu.org>."
17375
17376_ACEOF
17377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378ac_cs_version="\\
17379pcsx config.status 1.9
17380configured by $0, generated by GNU Autoconf 2.63,
17381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17382
17383Copyright (C) 2008 Free Software Foundation, Inc.
17384This config.status script is free software; the Free Software Foundation
17385gives unlimited permission to copy, distribute and modify it."
17386
17387ac_pwd='$ac_pwd'
17388srcdir='$srcdir'
17389INSTALL='$INSTALL'
17390MKDIR_P='$MKDIR_P'
17391AWK='$AWK'
17392test -n "\$AWK" || AWK=awk
17393_ACEOF
17394
17395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396# The default lists apply if the user does not specify any file.
17397ac_need_defaults=:
17398while test $# != 0
17399do
17400 case $1 in
17401 --*=*)
17402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17404 ac_shift=:
17405 ;;
17406 *)
17407 ac_option=$1
17408 ac_optarg=$2
17409 ac_shift=shift
17410 ;;
17411 esac
17412
17413 case $ac_option in
17414 # Handling of the options.
17415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17416 ac_cs_recheck=: ;;
17417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17418 $as_echo "$ac_cs_version"; exit ;;
17419 --debug | --debu | --deb | --de | --d | -d )
17420 debug=: ;;
17421 --file | --fil | --fi | --f )
17422 $ac_shift
17423 case $ac_optarg in
17424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17425 esac
17426 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17427 ac_need_defaults=false;;
17428 --header | --heade | --head | --hea )
17429 $ac_shift
17430 case $ac_optarg in
17431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17432 esac
17433 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17434 ac_need_defaults=false;;
17435 --he | --h)
17436 # Conflict between --help and --header
17437 { $as_echo "$as_me: error: ambiguous option: $1
17438Try \`$0 --help' for more information." >&2
17439 { (exit 1); exit 1; }; };;
17440 --help | --hel | -h )
17441 $as_echo "$ac_cs_usage"; exit ;;
17442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17444 ac_cs_silent=: ;;
17445
17446 # This is an error.
17447 -*) { $as_echo "$as_me: error: unrecognized option: $1
17448Try \`$0 --help' for more information." >&2
17449 { (exit 1); exit 1; }; } ;;
17450
17451 *) ac_config_targets="$ac_config_targets $1"
17452 ac_need_defaults=false ;;
17453
17454 esac
17455 shift
17456done
17457
17458ac_configure_extra_args=
17459
17460if $ac_cs_silent; then
17461 exec 6>/dev/null
17462 ac_configure_extra_args="$ac_configure_extra_args --silent"
17463fi
17464
17465_ACEOF
17466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17467if \$ac_cs_recheck; then
17468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17469 shift
17470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17471 CONFIG_SHELL='$SHELL'
17472 export CONFIG_SHELL
17473 exec "\$@"
17474fi
17475
17476_ACEOF
17477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478exec 5>>config.log
17479{
17480 echo
17481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17482## Running $as_me. ##
17483_ASBOX
17484 $as_echo "$ac_log"
17485} >&5
17486
17487_ACEOF
17488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17489#
17490# INIT-COMMANDS
17491#
17492AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17493
17494
17495# The HP-UX ksh and POSIX shell print the target directory to stdout
17496# if CDPATH is set.
17497(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17498
17499sed_quote_subst='$sed_quote_subst'
17500double_quote_subst='$double_quote_subst'
17501delay_variable_subst='$delay_variable_subst'
17502enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17503macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17504macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17505enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17506pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17507enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17508host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17509host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17510host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17511build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17512build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17513build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17514SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17515Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17516GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17517EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17518FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17519LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17520NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17521LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17522max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17523ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17524exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17525lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17526lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17527lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17528reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17529reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17530OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17531deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17532file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17533AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17534AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17535STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17536RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17537old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17538old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17539old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17540CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17541CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17542compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17543GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17544lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17545lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17546lt_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"`'
17547lt_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"`'
17548objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17549SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17550ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17551MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17552lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17553lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17554lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17555lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17556lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17557need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17558DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17559NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17560LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17561OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17562OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17563libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17564shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17565extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17566archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17567enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17568export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17569whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17570compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17571old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17572old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17573archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17574archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17575module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17576module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17577with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17578allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17579no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17580hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17581hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17582hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17583hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17584hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17585hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17586hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17587hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17588inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17589link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17590fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17591always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17592export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17593exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17594include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17595prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17596file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17597variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17598need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17599need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17600version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17601runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17602shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17603shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17604libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17605library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17606soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17607postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17608postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17609finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17610finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17611hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17612sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17613sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17614hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17615enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17616enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17617enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17618old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17619striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17620
17621LTCC='$LTCC'
17622LTCFLAGS='$LTCFLAGS'
17623compiler='$compiler_DEFAULT'
17624
17625# Quote evaled strings.
17626for var in SED \
17627GREP \
17628EGREP \
17629FGREP \
17630LD \
17631NM \
17632LN_S \
17633lt_SP2NL \
17634lt_NL2SP \
17635reload_flag \
17636OBJDUMP \
17637deplibs_check_method \
17638file_magic_cmd \
17639AR \
17640AR_FLAGS \
17641STRIP \
17642RANLIB \
17643CC \
17644CFLAGS \
17645compiler \
17646lt_cv_sys_global_symbol_pipe \
17647lt_cv_sys_global_symbol_to_cdecl \
17648lt_cv_sys_global_symbol_to_c_name_address \
17649lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17650SHELL \
17651ECHO \
17652lt_prog_compiler_no_builtin_flag \
17653lt_prog_compiler_wl \
17654lt_prog_compiler_pic \
17655lt_prog_compiler_static \
17656lt_cv_prog_compiler_c_o \
17657need_locks \
17658DSYMUTIL \
17659NMEDIT \
17660LIPO \
17661OTOOL \
17662OTOOL64 \
17663shrext_cmds \
17664export_dynamic_flag_spec \
17665whole_archive_flag_spec \
17666compiler_needs_object \
17667with_gnu_ld \
17668allow_undefined_flag \
17669no_undefined_flag \
17670hardcode_libdir_flag_spec \
17671hardcode_libdir_flag_spec_ld \
17672hardcode_libdir_separator \
17673fix_srcfile_path \
17674exclude_expsyms \
17675include_expsyms \
17676file_list_spec \
17677variables_saved_for_relink \
17678libname_spec \
17679library_names_spec \
17680soname_spec \
17681finish_eval \
17682old_striplib \
17683striplib; do
17684 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17685 *[\\\\\\\`\\"\\\$]*)
17686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17687 ;;
17688 *)
17689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17690 ;;
17691 esac
17692done
17693
17694# Double-quote double-evaled strings.
17695for var in reload_cmds \
17696old_postinstall_cmds \
17697old_postuninstall_cmds \
17698old_archive_cmds \
17699extract_expsyms_cmds \
17700old_archive_from_new_cmds \
17701old_archive_from_expsyms_cmds \
17702archive_cmds \
17703archive_expsym_cmds \
17704module_cmds \
17705module_expsym_cmds \
17706export_symbols_cmds \
17707prelink_cmds \
17708postinstall_cmds \
17709postuninstall_cmds \
17710finish_cmds \
17711sys_lib_search_path_spec \
17712sys_lib_dlsearch_path_spec; do
17713 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17714 *[\\\\\\\`\\"\\\$]*)
17715 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17716 ;;
17717 *)
17718 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17719 ;;
17720 esac
17721done
17722
17723# Fix-up fallback echo if it was mangled by the above quoting rules.
17724case \$lt_ECHO in
17725*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17726 ;;
17727esac
17728
17729ac_aux_dir='$ac_aux_dir'
17730xsi_shell='$xsi_shell'
17731lt_shell_append='$lt_shell_append'
17732
17733# See if we are running on zsh, and set the options which allow our
17734# commands through without removal of \ escapes INIT.
17735if test -n "\${ZSH_VERSION+set}" ; then
17736 setopt NO_GLOB_SUBST
17737fi
17738
17739
17740 PACKAGE='$PACKAGE'
17741 VERSION='$VERSION'
17742 TIMESTAMP='$TIMESTAMP'
17743 RM='$RM'
17744 ofile='$ofile'
17745
17746
17747
17748# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17749 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17750 # from automake < 1.5.
17751 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17752 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17753 LINGUAS="${LINGUAS-%UNSET%}"
17754
17755
17756_ACEOF
17757
17758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759
17760# Handling of arguments.
17761for ac_config_target in $ac_config_targets
17762do
17763 case $ac_config_target in
17764 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:include/config.h.in" ;;
17765 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17766 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17767 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17769 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17770 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17771 "libpcsxcore/Makefile") CONFIG_FILES="$CONFIG_FILES libpcsxcore/Makefile" ;;
17772 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
17773 "plugins/dfinput/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfinput/Makefile" ;;
17774 "plugins/dfsound/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfsound/Makefile" ;;
17775 "plugins/dfxvideo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfxvideo/Makefile" ;;
17776 "plugins/dfcdrom/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfcdrom/Makefile" ;;
17777 "plugins/dfnet/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfnet/Makefile" ;;
17778 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
17779 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17780 "plugins/peopsxgl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/peopsxgl/Makefile" ;;
17781
17782 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17783$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17784 { (exit 1); exit 1; }; };;
17785 esac
17786done
17787
17788
17789# If the user did not use the arguments to specify the items to instantiate,
17790# then the envvar interface is used. Set only those that are not.
17791# We use the long form for the default assignment because of an extremely
17792# bizarre bug on SunOS 4.1.3.
17793if $ac_need_defaults; then
17794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17797fi
17798
17799# Have a temporary directory for convenience. Make it in the build tree
17800# simply because there is no reason against having it here, and in addition,
17801# creating and moving files from /tmp can sometimes cause problems.
17802# Hook for its removal unless debugging.
17803# Note that there is a small window in which the directory will not be cleaned:
17804# after its creation but before its name has been assigned to `$tmp'.
17805$debug ||
17806{
17807 tmp=
17808 trap 'exit_status=$?
17809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17810' 0
17811 trap '{ (exit 1); exit 1; }' 1 2 13 15
17812}
17813# Create a (secure) tmp directory for tmp files.
17814
17815{
17816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17817 test -n "$tmp" && test -d "$tmp"
17818} ||
17819{
17820 tmp=./conf$$-$RANDOM
17821 (umask 077 && mkdir "$tmp")
17822} ||
17823{
17824 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17825 { (exit 1); exit 1; }
17826}
17827
17828# Set up the scripts for CONFIG_FILES section.
17829# No need to generate them if there are no CONFIG_FILES.
17830# This happens for instance with `./config.status config.h'.
17831if test -n "$CONFIG_FILES"; then
17832
17833
17834ac_cr='\r'
17835ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17836if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17837 ac_cs_awk_cr='\\r'
17838else
17839 ac_cs_awk_cr=$ac_cr
17840fi
17841
17842echo 'BEGIN {' >"$tmp/subs1.awk" &&
17843_ACEOF
17844
17845
17846{
17847 echo "cat >conf$$subs.awk <<_ACEOF" &&
17848 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17849 echo "_ACEOF"
17850} >conf$$subs.sh ||
17851 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17852$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17853 { (exit 1); exit 1; }; }
17854ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17855ac_delim='%!_!# '
17856for ac_last_try in false false false false false :; do
17857 . ./conf$$subs.sh ||
17858 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17859$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17860 { (exit 1); exit 1; }; }
17861
17862 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17863 if test $ac_delim_n = $ac_delim_num; then
17864 break
17865 elif $ac_last_try; then
17866 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17867$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17868 { (exit 1); exit 1; }; }
17869 else
17870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17871 fi
17872done
17873rm -f conf$$subs.sh
17874
17875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17877_ACEOF
17878sed -n '
17879h
17880s/^/S["/; s/!.*/"]=/
17881p
17882g
17883s/^[^!]*!//
17884:repl
17885t repl
17886s/'"$ac_delim"'$//
17887t delim
17888:nl
17889h
17890s/\(.\{148\}\).*/\1/
17891t more1
17892s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17893p
17894n
17895b repl
17896:more1
17897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17898p
17899g
17900s/.\{148\}//
17901t nl
17902:delim
17903h
17904s/\(.\{148\}\).*/\1/
17905t more2
17906s/["\\]/\\&/g; s/^/"/; s/$/"/
17907p
17908b
17909:more2
17910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17911p
17912g
17913s/.\{148\}//
17914t delim
17915' <conf$$subs.awk | sed '
17916/^[^""]/{
17917 N
17918 s/\n//
17919}
17920' >>$CONFIG_STATUS || ac_write_fail=1
17921rm -f conf$$subs.awk
17922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923_ACAWK
17924cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17925 for (key in S) S_is_set[key] = 1
17926 FS = "\a"
17927
17928}
17929{
17930 line = $ 0
17931 nfields = split(line, field, "@")
17932 substed = 0
17933 len = length(field[1])
17934 for (i = 2; i < nfields; i++) {
17935 key = field[i]
17936 keylen = length(key)
17937 if (S_is_set[key]) {
17938 value = S[key]
17939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17940 len += length(value) + length(field[++i])
17941 substed = 1
17942 } else
17943 len += 1 + keylen
17944 }
17945
17946 print line
17947}
17948
17949_ACAWK
17950_ACEOF
17951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17954else
17955 cat
17956fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17957 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17958$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17959 { (exit 1); exit 1; }; }
17960_ACEOF
17961
17962# VPATH may cause trouble with some makes, so we remove $(srcdir),
17963# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17964# trailing colons and then remove the whole line if VPATH becomes empty
17965# (actually we leave an empty line to preserve line numbers).
17966if test "x$srcdir" = x.; then
17967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17968s/:*\$(srcdir):*/:/
17969s/:*\${srcdir}:*/:/
17970s/:*@srcdir@:*/:/
17971s/^\([^=]*=[ ]*\):*/\1/
17972s/:*$//
17973s/^[^=]*=[ ]*$//
17974}'
17975fi
17976
17977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978fi # test -n "$CONFIG_FILES"
17979
17980# Set up the scripts for CONFIG_HEADERS section.
17981# No need to generate them if there are no CONFIG_HEADERS.
17982# This happens for instance with `./config.status Makefile'.
17983if test -n "$CONFIG_HEADERS"; then
17984cat >"$tmp/defines.awk" <<\_ACAWK ||
17985BEGIN {
17986_ACEOF
17987
17988# Transform confdefs.h into an awk script `defines.awk', embedded as
17989# here-document in config.status, that substitutes the proper values into
17990# config.h.in to produce config.h.
17991
17992# Create a delimiter string that does not exist in confdefs.h, to ease
17993# handling of long lines.
17994ac_delim='%!_!# '
17995for ac_last_try in false false :; do
17996 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17997 if test -z "$ac_t"; then
17998 break
17999 elif $ac_last_try; then
18000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18001$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18002 { (exit 1); exit 1; }; }
18003 else
18004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18005 fi
18006done
18007
18008# For the awk script, D is an array of macro values keyed by name,
18009# likewise P contains macro parameters if any. Preserve backslash
18010# newline sequences.
18011
18012ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18013sed -n '
18014s/.\{148\}/&'"$ac_delim"'/g
18015t rset
18016:rset
18017s/^[ ]*#[ ]*define[ ][ ]*/ /
18018t def
18019d
18020:def
18021s/\\$//
18022t bsnl
18023s/["\\]/\\&/g
18024s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18025D["\1"]=" \3"/p
18026s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18027d
18028:bsnl
18029s/["\\]/\\&/g
18030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18031D["\1"]=" \3\\\\\\n"\\/p
18032t cont
18033s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18034t cont
18035d
18036:cont
18037n
18038s/.\{148\}/&'"$ac_delim"'/g
18039t clear
18040:clear
18041s/\\$//
18042t bsnlc
18043s/["\\]/\\&/g; s/^/"/; s/$/"/p
18044d
18045:bsnlc
18046s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18047b cont
18048' <confdefs.h | sed '
18049s/'"$ac_delim"'/"\\\
18050"/g' >>$CONFIG_STATUS || ac_write_fail=1
18051
18052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 for (key in D) D_is_set[key] = 1
18054 FS = "\a"
18055}
18056/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18057 line = \$ 0
18058 split(line, arg, " ")
18059 if (arg[1] == "#") {
18060 defundef = arg[2]
18061 mac1 = arg[3]
18062 } else {
18063 defundef = substr(arg[1], 2)
18064 mac1 = arg[2]
18065 }
18066 split(mac1, mac2, "(") #)
18067 macro = mac2[1]
18068 prefix = substr(line, 1, index(line, defundef) - 1)
18069 if (D_is_set[macro]) {
18070 # Preserve the white space surrounding the "#".
18071 print prefix "define", macro P[macro] D[macro]
18072 next
18073 } else {
18074 # Replace #undef with comments. This is necessary, for example,
18075 # in the case of _POSIX_SOURCE, which is predefined and required
18076 # on some systems where configure will not decide to define it.
18077 if (defundef == "undef") {
18078 print "/*", prefix defundef, macro, "*/"
18079 next
18080 }
18081 }
18082}
18083{ print }
18084_ACAWK
18085_ACEOF
18086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18088$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18089 { (exit 1); exit 1; }; }
18090fi # test -n "$CONFIG_HEADERS"
18091
18092
18093eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18094shift
18095for ac_tag
18096do
18097 case $ac_tag in
18098 :[FHLC]) ac_mode=$ac_tag; continue;;
18099 esac
18100 case $ac_mode$ac_tag in
18101 :[FHL]*:*);;
18102 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18103$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18104 { (exit 1); exit 1; }; };;
18105 :[FH]-) ac_tag=-:-;;
18106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18107 esac
18108 ac_save_IFS=$IFS
18109 IFS=:
18110 set x $ac_tag
18111 IFS=$ac_save_IFS
18112 shift
18113 ac_file=$1
18114 shift
18115
18116 case $ac_mode in
18117 :L) ac_source=$1;;
18118 :[FH])
18119 ac_file_inputs=
18120 for ac_f
18121 do
18122 case $ac_f in
18123 -) ac_f="$tmp/stdin";;
18124 *) # Look for the file first in the build tree, then in the source tree
18125 # (if the path is not absolute). The absolute path cannot be DOS-style,
18126 # because $ac_f cannot contain `:'.
18127 test -f "$ac_f" ||
18128 case $ac_f in
18129 [\\/$]*) false;;
18130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18131 esac ||
18132 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18133$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18134 { (exit 1); exit 1; }; };;
18135 esac
18136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18137 ac_file_inputs="$ac_file_inputs '$ac_f'"
18138 done
18139
18140 # Let's still pretend it is `configure' which instantiates (i.e., don't
18141 # use $as_me), people would be surprised to read:
18142 # /* config.h. Generated by config.status. */
18143 configure_input='Generated from '`
18144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18145 `' by configure.'
18146 if test x"$ac_file" != x-; then
18147 configure_input="$ac_file. $configure_input"
18148 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18149$as_echo "$as_me: creating $ac_file" >&6;}
18150 fi
18151 # Neutralize special characters interpreted by sed in replacement strings.
18152 case $configure_input in #(
18153 *\&* | *\|* | *\\* )
18154 ac_sed_conf_input=`$as_echo "$configure_input" |
18155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18156 *) ac_sed_conf_input=$configure_input;;
18157 esac
18158
18159 case $ac_tag in
18160 *:-:* | *:-) cat >"$tmp/stdin" \
18161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18162$as_echo "$as_me: error: could not create $ac_file" >&2;}
18163 { (exit 1); exit 1; }; } ;;
18164 esac
18165 ;;
18166 esac
18167
18168 ac_dir=`$as_dirname -- "$ac_file" ||
18169$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18170 X"$ac_file" : 'X\(//\)[^/]' \| \
18171 X"$ac_file" : 'X\(//\)$' \| \
18172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18173$as_echo X"$ac_file" |
18174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18175 s//\1/
18176 q
18177 }
18178 /^X\(\/\/\)[^/].*/{
18179 s//\1/
18180 q
18181 }
18182 /^X\(\/\/\)$/{
18183 s//\1/
18184 q
18185 }
18186 /^X\(\/\).*/{
18187 s//\1/
18188 q
18189 }
18190 s/.*/./; q'`
18191 { as_dir="$ac_dir"
18192 case $as_dir in #(
18193 -*) as_dir=./$as_dir;;
18194 esac
18195 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18196 as_dirs=
18197 while :; do
18198 case $as_dir in #(
18199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18200 *) as_qdir=$as_dir;;
18201 esac
18202 as_dirs="'$as_qdir' $as_dirs"
18203 as_dir=`$as_dirname -- "$as_dir" ||
18204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18205 X"$as_dir" : 'X\(//\)[^/]' \| \
18206 X"$as_dir" : 'X\(//\)$' \| \
18207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18208$as_echo X"$as_dir" |
18209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18210 s//\1/
18211 q
18212 }
18213 /^X\(\/\/\)[^/].*/{
18214 s//\1/
18215 q
18216 }
18217 /^X\(\/\/\)$/{
18218 s//\1/
18219 q
18220 }
18221 /^X\(\/\).*/{
18222 s//\1/
18223 q
18224 }
18225 s/.*/./; q'`
18226 test -d "$as_dir" && break
18227 done
18228 test -z "$as_dirs" || eval "mkdir $as_dirs"
18229 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18230$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18231 { (exit 1); exit 1; }; }; }
18232 ac_builddir=.
18233
18234case "$ac_dir" in
18235.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18236*)
18237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18238 # A ".." for each directory in $ac_dir_suffix.
18239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18240 case $ac_top_builddir_sub in
18241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18243 esac ;;
18244esac
18245ac_abs_top_builddir=$ac_pwd
18246ac_abs_builddir=$ac_pwd$ac_dir_suffix
18247# for backward compatibility:
18248ac_top_builddir=$ac_top_build_prefix
18249
18250case $srcdir in
18251 .) # We are building in place.
18252 ac_srcdir=.
18253 ac_top_srcdir=$ac_top_builddir_sub
18254 ac_abs_top_srcdir=$ac_pwd ;;
18255 [\\/]* | ?:[\\/]* ) # Absolute name.
18256 ac_srcdir=$srcdir$ac_dir_suffix;
18257 ac_top_srcdir=$srcdir
18258 ac_abs_top_srcdir=$srcdir ;;
18259 *) # Relative name.
18260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18261 ac_top_srcdir=$ac_top_build_prefix$srcdir
18262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18263esac
18264ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18265
18266
18267 case $ac_mode in
18268 :F)
18269 #
18270 # CONFIG_FILE
18271 #
18272
18273 case $INSTALL in
18274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18276 esac
18277 ac_MKDIR_P=$MKDIR_P
18278 case $MKDIR_P in
18279 [\\/$]* | ?:[\\/]* ) ;;
18280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18281 esac
18282_ACEOF
18283
18284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18285# If the template does not know about datarootdir, expand it.
18286# FIXME: This hack should be removed a few years after 2.60.
18287ac_datarootdir_hack=; ac_datarootdir_seen=
18288
18289ac_sed_dataroot='
18290/datarootdir/ {
18291 p
18292 q
18293}
18294/@datadir@/p
18295/@docdir@/p
18296/@infodir@/p
18297/@localedir@/p
18298/@mandir@/p
18299'
18300case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18301*datarootdir*) ac_datarootdir_seen=yes;;
18302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18303 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18304$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18305_ACEOF
18306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307 ac_datarootdir_hack='
18308 s&@datadir@&$datadir&g
18309 s&@docdir@&$docdir&g
18310 s&@infodir@&$infodir&g
18311 s&@localedir@&$localedir&g
18312 s&@mandir@&$mandir&g
18313 s&\\\${datarootdir}&$datarootdir&g' ;;
18314esac
18315_ACEOF
18316
18317# Neutralize VPATH when `$srcdir' = `.'.
18318# Shell code in configure.ac might set extrasub.
18319# FIXME: do we really want to maintain this feature?
18320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18321ac_sed_extra="$ac_vpsub
18322$extrasub
18323_ACEOF
18324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18325:t
18326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18327s|@configure_input@|$ac_sed_conf_input|;t t
18328s&@top_builddir@&$ac_top_builddir_sub&;t t
18329s&@top_build_prefix@&$ac_top_build_prefix&;t t
18330s&@srcdir@&$ac_srcdir&;t t
18331s&@abs_srcdir@&$ac_abs_srcdir&;t t
18332s&@top_srcdir@&$ac_top_srcdir&;t t
18333s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18334s&@builddir@&$ac_builddir&;t t
18335s&@abs_builddir@&$ac_abs_builddir&;t t
18336s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18337s&@INSTALL@&$ac_INSTALL&;t t
18338s&@MKDIR_P@&$ac_MKDIR_P&;t t
18339$ac_datarootdir_hack
18340"
18341eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18343$as_echo "$as_me: error: could not create $ac_file" >&2;}
18344 { (exit 1); exit 1; }; }
18345
18346test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18349 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18350which seems to be undefined. Please make sure it is defined." >&5
18351$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18352which seems to be undefined. Please make sure it is defined." >&2;}
18353
18354 rm -f "$tmp/stdin"
18355 case $ac_file in
18356 -) cat "$tmp/out" && rm -f "$tmp/out";;
18357 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18358 esac \
18359 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18360$as_echo "$as_me: error: could not create $ac_file" >&2;}
18361 { (exit 1); exit 1; }; }
18362 ;;
18363 :H)
18364 #
18365 # CONFIG_HEADER
18366 #
18367 if test x"$ac_file" != x-; then
18368 {
18369 $as_echo "/* $configure_input */" \
18370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18371 } >"$tmp/config.h" \
18372 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18373$as_echo "$as_me: error: could not create $ac_file" >&2;}
18374 { (exit 1); exit 1; }; }
18375 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18376 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18377$as_echo "$as_me: $ac_file is unchanged" >&6;}
18378 else
18379 rm -f "$ac_file"
18380 mv "$tmp/config.h" "$ac_file" \
18381 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18382$as_echo "$as_me: error: could not create $ac_file" >&2;}
18383 { (exit 1); exit 1; }; }
18384 fi
18385 else
18386 $as_echo "/* $configure_input */" \
18387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18388 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18389$as_echo "$as_me: error: could not create -" >&2;}
18390 { (exit 1); exit 1; }; }
18391 fi
18392# Compute "$ac_file"'s index in $config_headers.
18393_am_arg="$ac_file"
18394_am_stamp_count=1
18395for _am_header in $config_headers :; do
18396 case $_am_header in
18397 $_am_arg | $_am_arg:* )
18398 break ;;
18399 * )
18400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18401 esac
18402done
18403echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18404$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405 X"$_am_arg" : 'X\(//\)[^/]' \| \
18406 X"$_am_arg" : 'X\(//\)$' \| \
18407 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18408$as_echo X"$_am_arg" |
18409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18410 s//\1/
18411 q
18412 }
18413 /^X\(\/\/\)[^/].*/{
18414 s//\1/
18415 q
18416 }
18417 /^X\(\/\/\)$/{
18418 s//\1/
18419 q
18420 }
18421 /^X\(\/\).*/{
18422 s//\1/
18423 q
18424 }
18425 s/.*/./; q'`/stamp-h$_am_stamp_count
18426 ;;
18427
18428 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18429$as_echo "$as_me: executing $ac_file commands" >&6;}
18430 ;;
18431 esac
18432
18433
18434 case $ac_file$ac_mode in
18435 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
18436# are listed without --file. Let's play safe and only enable the eval
18437# if we detect the quoting.
18438case $CONFIG_FILES in
18439*\'*) eval set x "$CONFIG_FILES" ;;
18440*) set x $CONFIG_FILES ;;
18441esac
18442shift
18443for mf
18444do
18445 # Strip MF so we end up with the name of the file.
18446 mf=`echo "$mf" | sed -e 's/:.*$//'`
18447 # Check whether this is an Automake generated Makefile or not.
18448 # We used to match only the files named `Makefile.in', but
18449 # some people rename them; so instead we look at the file content.
18450 # Grep'ing the first line is not enough: some people post-process
18451 # each Makefile.in and add a new line on top of each file to say so.
18452 # Grep'ing the whole file is not good either: AIX grep has a line
18453 # limit of 2048, but all sed's we know have understand at least 4000.
18454 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18455 dirpart=`$as_dirname -- "$mf" ||
18456$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18457 X"$mf" : 'X\(//\)[^/]' \| \
18458 X"$mf" : 'X\(//\)$' \| \
18459 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18460$as_echo X"$mf" |
18461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18462 s//\1/
18463 q
18464 }
18465 /^X\(\/\/\)[^/].*/{
18466 s//\1/
18467 q
18468 }
18469 /^X\(\/\/\)$/{
18470 s//\1/
18471 q
18472 }
18473 /^X\(\/\).*/{
18474 s//\1/
18475 q
18476 }
18477 s/.*/./; q'`
18478 else
18479 continue
18480 fi
18481 # Extract the definition of DEPDIR, am__include, and am__quote
18482 # from the Makefile without running `make'.
18483 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18484 test -z "$DEPDIR" && continue
18485 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18486 test -z "am__include" && continue
18487 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18488 # When using ansi2knr, U may be empty or an underscore; expand it
18489 U=`sed -n 's/^U = //p' < "$mf"`
18490 # Find all dependency output files, they are included files with
18491 # $(DEPDIR) in their names. We invoke sed twice because it is the
18492 # simplest approach to changing $(DEPDIR) to its actual value in the
18493 # expansion.
18494 for file in `sed -n "
18495 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18496 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18497 # Make sure the directory exists.
18498 test -f "$dirpart/$file" && continue
18499 fdir=`$as_dirname -- "$file" ||
18500$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18501 X"$file" : 'X\(//\)[^/]' \| \
18502 X"$file" : 'X\(//\)$' \| \
18503 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18504$as_echo X"$file" |
18505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18506 s//\1/
18507 q
18508 }
18509 /^X\(\/\/\)[^/].*/{
18510 s//\1/
18511 q
18512 }
18513 /^X\(\/\/\)$/{
18514 s//\1/
18515 q
18516 }
18517 /^X\(\/\).*/{
18518 s//\1/
18519 q
18520 }
18521 s/.*/./; q'`
18522 { as_dir=$dirpart/$fdir
18523 case $as_dir in #(
18524 -*) as_dir=./$as_dir;;
18525 esac
18526 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18527 as_dirs=
18528 while :; do
18529 case $as_dir in #(
18530 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18531 *) as_qdir=$as_dir;;
18532 esac
18533 as_dirs="'$as_qdir' $as_dirs"
18534 as_dir=`$as_dirname -- "$as_dir" ||
18535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18536 X"$as_dir" : 'X\(//\)[^/]' \| \
18537 X"$as_dir" : 'X\(//\)$' \| \
18538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18539$as_echo X"$as_dir" |
18540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18541 s//\1/
18542 q
18543 }
18544 /^X\(\/\/\)[^/].*/{
18545 s//\1/
18546 q
18547 }
18548 /^X\(\/\/\)$/{
18549 s//\1/
18550 q
18551 }
18552 /^X\(\/\).*/{
18553 s//\1/
18554 q
18555 }
18556 s/.*/./; q'`
18557 test -d "$as_dir" && break
18558 done
18559 test -z "$as_dirs" || eval "mkdir $as_dirs"
18560 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18561$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18562 { (exit 1); exit 1; }; }; }
18563 # echo "creating $dirpart/$file"
18564 echo '# dummy' > "$dirpart/$file"
18565 done
18566done
18567 ;;
18568 "libtool":C)
18569
18570 # See if we are running on zsh, and set the options which allow our
18571 # commands through without removal of \ escapes.
18572 if test -n "${ZSH_VERSION+set}" ; then
18573 setopt NO_GLOB_SUBST
18574 fi
18575
18576 cfgfile="${ofile}T"
18577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18578 $RM "$cfgfile"
18579
18580 cat <<_LT_EOF >> "$cfgfile"
18581#! $SHELL
18582
18583# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18584# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18585# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18586# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18587#
18588# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18589# 2006, 2007, 2008 Free Software Foundation, Inc.
18590# Written by Gordon Matzigkeit, 1996
18591#
18592# This file is part of GNU Libtool.
18593#
18594# GNU Libtool is free software; you can redistribute it and/or
18595# modify it under the terms of the GNU General Public License as
18596# published by the Free Software Foundation; either version 2 of
18597# the License, or (at your option) any later version.
18598#
18599# As a special exception to the GNU General Public License,
18600# if you distribute this file as part of a program or library that
18601# is built using GNU Libtool, you may include this file under the
18602# same distribution terms that you use for the rest of that program.
18603#
18604# GNU Libtool is distributed in the hope that it will be useful,
18605# but WITHOUT ANY WARRANTY; without even the implied warranty of
18606# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18607# GNU General Public License for more details.
18608#
18609# You should have received a copy of the GNU General Public License
18610# along with GNU Libtool; see the file COPYING. If not, a copy
18611# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18612# obtained by writing to the Free Software Foundation, Inc.,
18613# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18614
18615
18616# The names of the tagged configurations supported by this script.
18617available_tags=""
18618
18619# ### BEGIN LIBTOOL CONFIG
18620
18621# Whether or not to build static libraries.
18622build_old_libs=$enable_static
18623
18624# Which release of libtool.m4 was used?
18625macro_version=$macro_version
18626macro_revision=$macro_revision
18627
18628# Whether or not to build shared libraries.
18629build_libtool_libs=$enable_shared
18630
18631# What type of objects to build.
18632pic_mode=$pic_mode
18633
18634# Whether or not to optimize for fast installation.
18635fast_install=$enable_fast_install
18636
18637# The host system.
18638host_alias=$host_alias
18639host=$host
18640host_os=$host_os
18641
18642# The build system.
18643build_alias=$build_alias
18644build=$build
18645build_os=$build_os
18646
18647# A sed program that does not truncate output.
18648SED=$lt_SED
18649
18650# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18651Xsed="\$SED -e 1s/^X//"
18652
18653# A grep program that handles long lines.
18654GREP=$lt_GREP
18655
18656# An ERE matcher.
18657EGREP=$lt_EGREP
18658
18659# A literal string matcher.
18660FGREP=$lt_FGREP
18661
18662# A BSD- or MS-compatible name lister.
18663NM=$lt_NM
18664
18665# Whether we need soft or hard links.
18666LN_S=$lt_LN_S
18667
18668# What is the maximum length of a command?
18669max_cmd_len=$max_cmd_len
18670
18671# Object file suffix (normally "o").
18672objext=$ac_objext
18673
18674# Executable file suffix (normally "").
18675exeext=$exeext
18676
18677# whether the shell understands "unset".
18678lt_unset=$lt_unset
18679
18680# turn spaces into newlines.
18681SP2NL=$lt_lt_SP2NL
18682
18683# turn newlines into spaces.
18684NL2SP=$lt_lt_NL2SP
18685
18686# How to create reloadable object files.
18687reload_flag=$lt_reload_flag
18688reload_cmds=$lt_reload_cmds
18689
18690# An object symbol dumper.
18691OBJDUMP=$lt_OBJDUMP
18692
18693# Method to check whether dependent libraries are shared objects.
18694deplibs_check_method=$lt_deplibs_check_method
18695
18696# Command to use when deplibs_check_method == "file_magic".
18697file_magic_cmd=$lt_file_magic_cmd
18698
18699# The archiver.
18700AR=$lt_AR
18701AR_FLAGS=$lt_AR_FLAGS
18702
18703# A symbol stripping program.
18704STRIP=$lt_STRIP
18705
18706# Commands used to install an old-style archive.
18707RANLIB=$lt_RANLIB
18708old_postinstall_cmds=$lt_old_postinstall_cmds
18709old_postuninstall_cmds=$lt_old_postuninstall_cmds
18710
18711# A C compiler.
18712LTCC=$lt_CC
18713
18714# LTCC compiler flags.
18715LTCFLAGS=$lt_CFLAGS
18716
18717# Take the output of nm and produce a listing of raw symbols and C names.
18718global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18719
18720# Transform the output of nm in a proper C declaration.
18721global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18722
18723# Transform the output of nm in a C name address pair.
18724global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18725
18726# Transform the output of nm in a C name address pair when lib prefix is needed.
18727global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18728
18729# The name of the directory that contains temporary libtool files.
18730objdir=$objdir
18731
18732# Shell to use when invoking shell scripts.
18733SHELL=$lt_SHELL
18734
18735# An echo program that does not interpret backslashes.
18736ECHO=$lt_ECHO
18737
18738# Used to examine libraries when file_magic_cmd begins with "file".
18739MAGIC_CMD=$MAGIC_CMD
18740
18741# Must we lock files when doing compilation?
18742need_locks=$lt_need_locks
18743
18744# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18745DSYMUTIL=$lt_DSYMUTIL
18746
18747# Tool to change global to local symbols on Mac OS X.
18748NMEDIT=$lt_NMEDIT
18749
18750# Tool to manipulate fat objects and archives on Mac OS X.
18751LIPO=$lt_LIPO
18752
18753# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18754OTOOL=$lt_OTOOL
18755
18756# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18757OTOOL64=$lt_OTOOL64
18758
18759# Old archive suffix (normally "a").
18760libext=$libext
18761
18762# Shared library suffix (normally ".so").
18763shrext_cmds=$lt_shrext_cmds
18764
18765# The commands to extract the exported symbol list from a shared archive.
18766extract_expsyms_cmds=$lt_extract_expsyms_cmds
18767
18768# Variables whose values should be saved in libtool wrapper scripts and
18769# restored at link time.
18770variables_saved_for_relink=$lt_variables_saved_for_relink
18771
18772# Do we need the "lib" prefix for modules?
18773need_lib_prefix=$need_lib_prefix
18774
18775# Do we need a version for libraries?
18776need_version=$need_version
18777
18778# Library versioning type.
18779version_type=$version_type
18780
18781# Shared library runtime path variable.
18782runpath_var=$runpath_var
18783
18784# Shared library path variable.
18785shlibpath_var=$shlibpath_var
18786
18787# Is shlibpath searched before the hard-coded library search path?
18788shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18789
18790# Format of library name prefix.
18791libname_spec=$lt_libname_spec
18792
18793# List of archive names. First name is the real one, the rest are links.
18794# The last name is the one that the linker finds with -lNAME
18795library_names_spec=$lt_library_names_spec
18796
18797# The coded name of the library, if different from the real name.
18798soname_spec=$lt_soname_spec
18799
18800# Command to use after installation of a shared archive.
18801postinstall_cmds=$lt_postinstall_cmds
18802
18803# Command to use after uninstallation of a shared archive.
18804postuninstall_cmds=$lt_postuninstall_cmds
18805
18806# Commands used to finish a libtool library installation in a directory.
18807finish_cmds=$lt_finish_cmds
18808
18809# As "finish_cmds", except a single script fragment to be evaled but
18810# not shown.
18811finish_eval=$lt_finish_eval
18812
18813# Whether we should hardcode library paths into libraries.
18814hardcode_into_libs=$hardcode_into_libs
18815
18816# Compile-time system search path for libraries.
18817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18818
18819# Run-time system search path for libraries.
18820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18821
18822# Whether dlopen is supported.
18823dlopen_support=$enable_dlopen
18824
18825# Whether dlopen of programs is supported.
18826dlopen_self=$enable_dlopen_self
18827
18828# Whether dlopen of statically linked programs is supported.
18829dlopen_self_static=$enable_dlopen_self_static
18830
18831# Commands to strip libraries.
18832old_striplib=$lt_old_striplib
18833striplib=$lt_striplib
18834
18835
18836# The linker used to build libraries.
18837LD=$lt_LD
18838
18839# Commands used to build an old-style archive.
18840old_archive_cmds=$lt_old_archive_cmds
18841
18842# A language specific compiler.
18843CC=$lt_compiler
18844
18845# Is the compiler the GNU compiler?
18846with_gcc=$GCC
18847
18848# Compiler flag to turn off builtin functions.
18849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18850
18851# How to pass a linker flag through the compiler.
18852wl=$lt_lt_prog_compiler_wl
18853
18854# Additional compiler flags for building library objects.
18855pic_flag=$lt_lt_prog_compiler_pic
18856
18857# Compiler flag to prevent dynamic linking.
18858link_static_flag=$lt_lt_prog_compiler_static
18859
18860# Does compiler simultaneously support -c and -o options?
18861compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18862
18863# Whether or not to add -lc for building shared libraries.
18864build_libtool_need_lc=$archive_cmds_need_lc
18865
18866# Whether or not to disallow shared libs when runtime libs are static.
18867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18868
18869# Compiler flag to allow reflexive dlopens.
18870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18871
18872# Compiler flag to generate shared objects directly from archives.
18873whole_archive_flag_spec=$lt_whole_archive_flag_spec
18874
18875# Whether the compiler copes with passing no objects directly.
18876compiler_needs_object=$lt_compiler_needs_object
18877
18878# Create an old-style archive from a shared archive.
18879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18880
18881# Create a temporary old-style archive to link instead of a shared archive.
18882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18883
18884# Commands used to build a shared archive.
18885archive_cmds=$lt_archive_cmds
18886archive_expsym_cmds=$lt_archive_expsym_cmds
18887
18888# Commands used to build a loadable module if different from building
18889# a shared archive.
18890module_cmds=$lt_module_cmds
18891module_expsym_cmds=$lt_module_expsym_cmds
18892
18893# Whether we are building with GNU ld or not.
18894with_gnu_ld=$lt_with_gnu_ld
18895
18896# Flag that allows shared libraries with undefined symbols to be built.
18897allow_undefined_flag=$lt_allow_undefined_flag
18898
18899# Flag that enforces no undefined symbols.
18900no_undefined_flag=$lt_no_undefined_flag
18901
18902# Flag to hardcode \$libdir into a binary during linking.
18903# This must work even if \$libdir does not exist
18904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18905
18906# If ld is used when linking, flag to hardcode \$libdir into a binary
18907# during linking. This must work even if \$libdir does not exist.
18908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18909
18910# Whether we need a single "-rpath" flag with a separated argument.
18911hardcode_libdir_separator=$lt_hardcode_libdir_separator
18912
18913# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18914# DIR into the resulting binary.
18915hardcode_direct=$hardcode_direct
18916
18917# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18918# DIR into the resulting binary and the resulting library dependency is
18919# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18920# library is relocated.
18921hardcode_direct_absolute=$hardcode_direct_absolute
18922
18923# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18924# into the resulting binary.
18925hardcode_minus_L=$hardcode_minus_L
18926
18927# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18928# into the resulting binary.
18929hardcode_shlibpath_var=$hardcode_shlibpath_var
18930
18931# Set to "yes" if building a shared library automatically hardcodes DIR
18932# into the library and all subsequent libraries and executables linked
18933# against it.
18934hardcode_automatic=$hardcode_automatic
18935
18936# Set to yes if linker adds runtime paths of dependent libraries
18937# to runtime path list.
18938inherit_rpath=$inherit_rpath
18939
18940# Whether libtool must link a program against all its dependency libraries.
18941link_all_deplibs=$link_all_deplibs
18942
18943# Fix the shell variable \$srcfile for the compiler.
18944fix_srcfile_path=$lt_fix_srcfile_path
18945
18946# Set to "yes" if exported symbols are required.
18947always_export_symbols=$always_export_symbols
18948
18949# The commands to list exported symbols.
18950export_symbols_cmds=$lt_export_symbols_cmds
18951
18952# Symbols that should not be listed in the preloaded symbols.
18953exclude_expsyms=$lt_exclude_expsyms
18954
18955# Symbols that must always be exported.
18956include_expsyms=$lt_include_expsyms
18957
18958# Commands necessary for linking programs (against libraries) with templates.
18959prelink_cmds=$lt_prelink_cmds
18960
18961# Specify filename containing input files.
18962file_list_spec=$lt_file_list_spec
18963
18964# How to hardcode a shared library path into an executable.
18965hardcode_action=$hardcode_action
18966
18967# ### END LIBTOOL CONFIG
18968
18969_LT_EOF
18970
18971 case $host_os in
18972 aix3*)
18973 cat <<\_LT_EOF >> "$cfgfile"
18974# AIX sometimes has problems with the GCC collect2 program. For some
18975# reason, if we set the COLLECT_NAMES environment variable, the problems
18976# vanish in a puff of smoke.
18977if test "X${COLLECT_NAMES+set}" != Xset; then
18978 COLLECT_NAMES=
18979 export COLLECT_NAMES
18980fi
18981_LT_EOF
18982 ;;
18983 esac
18984
18985
18986ltmain="$ac_aux_dir/ltmain.sh"
18987
18988
18989 # We use sed instead of cat because bash on DJGPP gets confused if
18990 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18991 # text mode, it properly converts lines to CR/LF. This bash problem
18992 # is reportedly fixed, but why not run on old versions too?
18993 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18994 || (rm -f "$cfgfile"; exit 1)
18995
18996 case $xsi_shell in
18997 yes)
18998 cat << \_LT_EOF >> "$cfgfile"
18999
19000# func_dirname file append nondir_replacement
19001# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19002# otherwise set result to NONDIR_REPLACEMENT.
19003func_dirname ()
19004{
19005 case ${1} in
19006 */*) func_dirname_result="${1%/*}${2}" ;;
19007 * ) func_dirname_result="${3}" ;;
19008 esac
19009}
19010
19011# func_basename file
19012func_basename ()
19013{
19014 func_basename_result="${1##*/}"
19015}
19016
19017# func_dirname_and_basename file append nondir_replacement
19018# perform func_basename and func_dirname in a single function
19019# call:
19020# dirname: Compute the dirname of FILE. If nonempty,
19021# add APPEND to the result, otherwise set result
19022# to NONDIR_REPLACEMENT.
19023# value returned in "$func_dirname_result"
19024# basename: Compute filename of FILE.
19025# value retuned in "$func_basename_result"
19026# Implementation must be kept synchronized with func_dirname
19027# and func_basename. For efficiency, we do not delegate to
19028# those functions but instead duplicate the functionality here.
19029func_dirname_and_basename ()
19030{
19031 case ${1} in
19032 */*) func_dirname_result="${1%/*}${2}" ;;
19033 * ) func_dirname_result="${3}" ;;
19034 esac
19035 func_basename_result="${1##*/}"
19036}
19037
19038# func_stripname prefix suffix name
19039# strip PREFIX and SUFFIX off of NAME.
19040# PREFIX and SUFFIX must not contain globbing or regex special
19041# characters, hashes, percent signs, but SUFFIX may contain a leading
19042# dot (in which case that matches only a dot).
19043func_stripname ()
19044{
19045 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19046 # positional parameters, so assign one to ordinary parameter first.
19047 func_stripname_result=${3}
19048 func_stripname_result=${func_stripname_result#"${1}"}
19049 func_stripname_result=${func_stripname_result%"${2}"}
19050}
19051
19052# func_opt_split
19053func_opt_split ()
19054{
19055 func_opt_split_opt=${1%%=*}
19056 func_opt_split_arg=${1#*=}
19057}
19058
19059# func_lo2o object
19060func_lo2o ()
19061{
19062 case ${1} in
19063 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19064 *) func_lo2o_result=${1} ;;
19065 esac
19066}
19067
19068# func_xform libobj-or-source
19069func_xform ()
19070{
19071 func_xform_result=${1%.*}.lo
19072}
19073
19074# func_arith arithmetic-term...
19075func_arith ()
19076{
19077 func_arith_result=$(( $* ))
19078}
19079
19080# func_len string
19081# STRING may not start with a hyphen.
19082func_len ()
19083{
19084 func_len_result=${#1}
19085}
19086
19087_LT_EOF
19088 ;;
19089 *) # Bourne compatible functions.
19090 cat << \_LT_EOF >> "$cfgfile"
19091
19092# func_dirname file append nondir_replacement
19093# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19094# otherwise set result to NONDIR_REPLACEMENT.
19095func_dirname ()
19096{
19097 # Extract subdirectory from the argument.
19098 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19099 if test "X$func_dirname_result" = "X${1}"; then
19100 func_dirname_result="${3}"
19101 else
19102 func_dirname_result="$func_dirname_result${2}"
19103 fi
19104}
19105
19106# func_basename file
19107func_basename ()
19108{
19109 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19110}
19111
19112
19113# func_stripname prefix suffix name
19114# strip PREFIX and SUFFIX off of NAME.
19115# PREFIX and SUFFIX must not contain globbing or regex special
19116# characters, hashes, percent signs, but SUFFIX may contain a leading
19117# dot (in which case that matches only a dot).
19118# func_strip_suffix prefix name
19119func_stripname ()
19120{
19121 case ${2} in
19122 .*) func_stripname_result=`$ECHO "X${3}" \
19123 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19124 *) func_stripname_result=`$ECHO "X${3}" \
19125 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19126 esac
19127}
19128
19129# sed scripts:
19130my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19131my_sed_long_arg='1s/^-[^=]*=//'
19132
19133# func_opt_split
19134func_opt_split ()
19135{
19136 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19137 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19138}
19139
19140# func_lo2o object
19141func_lo2o ()
19142{
19143 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19144}
19145
19146# func_xform libobj-or-source
19147func_xform ()
19148{
19149 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19150}
19151
19152# func_arith arithmetic-term...
19153func_arith ()
19154{
19155 func_arith_result=`expr "$@"`
19156}
19157
19158# func_len string
19159# STRING may not start with a hyphen.
19160func_len ()
19161{
19162 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19163}
19164
19165_LT_EOF
19166esac
19167
19168case $lt_shell_append in
19169 yes)
19170 cat << \_LT_EOF >> "$cfgfile"
19171
19172# func_append var value
19173# Append VALUE to the end of shell variable VAR.
19174func_append ()
19175{
19176 eval "$1+=\$2"
19177}
19178_LT_EOF
19179 ;;
19180 *)
19181 cat << \_LT_EOF >> "$cfgfile"
19182
19183# func_append var value
19184# Append VALUE to the end of shell variable VAR.
19185func_append ()
19186{
19187 eval "$1=\$$1\$2"
19188}
19189
19190_LT_EOF
19191 ;;
19192 esac
19193
19194
19195 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19196 || (rm -f "$cfgfile"; exit 1)
19197
19198 mv -f "$cfgfile" "$ofile" ||
19199 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19200 chmod +x "$ofile"
19201
19202 ;;
19203 "po-directories":C)
19204 for ac_file in $CONFIG_FILES; do
19205 # Support "outfile[:infile[:infile...]]"
19206 case "$ac_file" in
19207 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19208 esac
19209 # PO directories have a Makefile.in generated from Makefile.in.in.
19210 case "$ac_file" in */Makefile.in)
19211 # Adjust a relative srcdir.
19212 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19213 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19214 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19215 # In autoconf-2.13 it is called $ac_given_srcdir.
19216 # In autoconf-2.50 it is called $srcdir.
19217 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19218 case "$ac_given_srcdir" in
19219 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19220 /*) top_srcdir="$ac_given_srcdir" ;;
19221 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19222 esac
19223 # Treat a directory as a PO directory if and only if it has a
19224 # POTFILES.in file. This allows packages to have multiple PO
19225 # directories under different names or in different locations.
19226 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19227 rm -f "$ac_dir/POTFILES"
19228 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19229 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19230 POMAKEFILEDEPS="POTFILES.in"
19231 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19232 # on $ac_dir but don't depend on user-specified configuration
19233 # parameters.
19234 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19235 # The LINGUAS file contains the set of available languages.
19236 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19237 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19238 fi
19239 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19240 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19241 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19242 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19243 else
19244 # The set of available languages was given in configure.in.
19245 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19246 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19247 fi
19248 # Compute POFILES
19249 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19250 # Compute UPDATEPOFILES
19251 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19252 # Compute DUMMYPOFILES
19253 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19254 # Compute GMOFILES
19255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19256 case "$ac_given_srcdir" in
19257 .) srcdirpre= ;;
19258 *) srcdirpre='$(srcdir)/' ;;
19259 esac
19260 POFILES=
19261 UPDATEPOFILES=
19262 DUMMYPOFILES=
19263 GMOFILES=
19264 for lang in $ALL_LINGUAS; do
19265 POFILES="$POFILES $srcdirpre$lang.po"
19266 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19267 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19268 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19269 done
19270 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19271 # environment variable.
19272 INST_LINGUAS=
19273 if test -n "$ALL_LINGUAS"; then
19274 for presentlang in $ALL_LINGUAS; do
19275 useit=no
19276 if test "%UNSET%" != "$LINGUAS"; then
19277 desiredlanguages="$LINGUAS"
19278 else
19279 desiredlanguages="$ALL_LINGUAS"
19280 fi
19281 for desiredlang in $desiredlanguages; do
19282 # Use the presentlang catalog if desiredlang is
19283 # a. equal to presentlang, or
19284 # b. a variant of presentlang (because in this case,
19285 # presentlang can be used as a fallback for messages
19286 # which are not translated in the desiredlang catalog).
19287 case "$desiredlang" in
19288 "$presentlang"*) useit=yes;;
19289 esac
19290 done
19291 if test $useit = yes; then
19292 INST_LINGUAS="$INST_LINGUAS $presentlang"
19293 fi
19294 done
19295 fi
19296 CATALOGS=
19297 if test -n "$INST_LINGUAS"; then
19298 for lang in $INST_LINGUAS; do
19299 CATALOGS="$CATALOGS $lang.gmo"
19300 done
19301 fi
19302 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19303 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19304 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19305 if test -f "$f"; then
19306 case "$f" in
19307 *.orig | *.bak | *~) ;;
19308 *) cat "$f" >> "$ac_dir/Makefile" ;;
19309 esac
19310 fi
19311 done
19312 fi
19313 ;;
19314 esac
19315 done ;;
19316
19317 esac
19318done # for ac_tag
19319
19320
19321{ (exit 0); exit 0; }
19322_ACEOF
19323chmod +x $CONFIG_STATUS
19324ac_clean_files=$ac_clean_files_save
19325
19326test $ac_write_fail = 0 ||
19327 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19328$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19329 { (exit 1); exit 1; }; }
19330
19331
19332# configure is writing to config.log, and then calls config.status.
19333# config.status does its own redirection, appending to config.log.
19334# Unfortunately, on DOS this fails, as config.log is still kept open
19335# by configure, so config.status won't be able to write to it; its
19336# output is simply discarded. So we exec the FD to /dev/null,
19337# effectively closing config.log, so it can be properly (re)opened and
19338# appended to by config.status. When coming back to configure, we
19339# need to make the FD available again.
19340if test "$no_create" != yes; then
19341 ac_cs_success=:
19342 ac_config_status_args=
19343 test "$silent" = yes &&
19344 ac_config_status_args="$ac_config_status_args --quiet"
19345 exec 5>/dev/null
19346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19347 exec 5>>config.log
19348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19349 # would make configure fail if this is the last instruction.
19350 $ac_cs_success || { (exit 1); exit 1; }
19351fi
19352if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19353 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19354$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19355fi
19356