Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for dopewars 1.6.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='dopewars'
620 PACKAGE_TARNAME='dopewars'
621 PACKAGE_VERSION='1.6.2'
622 PACKAGE_STRING='dopewars 1.6.2'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="src/dopewars.c"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 gt_needs=
660 ac_subst_vars='am__EXEEXT_FALSE
661 am__EXEEXT_TRUE
662 LTLIBOBJS
663 SOUND_LIBS
664 SOUND_CFLAGS
665 CURSESPORTLIB
666 CURSESPORT_FALSE
667 CURSESPORT_TRUE
668 GTKPORTLIB
669 GTKPORT_FALSE
670 GTKPORT_TRUE
671 CURSESLIB
672 CURSES_CLIENT_FALSE
673 CURSES_CLIENT_TRUE
674 GUILIB
675 GUI_CLIENT_FALSE
676 GUI_CLIENT_TRUE
677 DPDATADIR
678 DPSCOREDIR
679 PLUGINS_FALSE
680 PLUGINS_TRUE
681 PLUGOBJS
682 PLUGLIBS
683 plugindir
684 LIBOBJS
685 POSUB
686 LTLIBINTL
687 LIBINTL
688 INTLLIBS
689 LTLIBICONV
690 LIBICONV
691 INTL_MACOSX_LIBS
692 CPP
693 XGETTEXT_EXTRA_OPTIONS
694 MSGMERGE_FOR_MSGFMT_OPTION
695 MSGMERGE
696 XGETTEXT_015
697 XGETTEXT
698 GMSGFMT_015
699 GMSGFMT
700 MSGFMT
701 GETTEXT_MACRO_VERSION
702 USE_NLS
703 COCOA_FALSE
704 COCOA_TRUE
705 SDL_FALSE
706 SDL_TRUE
707 ESD_FALSE
708 ESD_TRUE
709 am__fastdepOBJC_FALSE
710 am__fastdepOBJC_TRUE
711 OBJCDEPMODE
712 ac_ct_OBJC
713 OBJCFLAGS
714 OBJC
715 SDL_CONFIG
716 SDL2_CONFIG
717 SDL_LIBS
718 SDL_CFLAGS
719 ESD_LIBS
720 ESD_CFLAGS
721 ESD_CONFIG
722 GTK_LIBS
723 GTK_CFLAGS
724 WNDRES
725 LIBCURL
726 LIBCURL_CPPFLAGS
727 _libcurl_config
728 GLIB_COMPILE_RESOURCES
729 GLIB_MKENUMS
730 GOBJECT_QUERY
731 GLIB_GENMARSHAL
732 GLIB_LIBS
733 GLIB_CFLAGS
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 WINDRES
738 APPLE_FALSE
739 APPLE_TRUE
740 OTOOL64
741 OTOOL
742 LIPO
743 NMEDIT
744 DSYMUTIL
745 MANIFEST_TOOL
746 RANLIB
747 ac_ct_AR
748 AR
749 DLLTOOL
750 OBJDUMP
751 LN_S
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 EGREP
758 GREP
759 SED
760 LIBTOOL
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 CSCOPE
766 ETAGS
767 CTAGS
768 am__fastdepCC_FALSE
769 am__fastdepCC_TRUE
770 CCDEPMODE
771 am__nodep
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__include
776 DEPDIR
777 am__untar
778 am__tar
779 AMTAR
780 am__leading_dot
781 SET_MAKE
782 AWK
783 mkdir_p
784 MKDIR_P
785 INSTALL_STRIP_PROGRAM
786 STRIP
787 install_sh
788 MAKEINFO
789 AUTOHEADER
790 AUTOMAKE
791 AUTOCONF
792 ACLOCAL
793 VERSION
794 PACKAGE
795 CYGPATH_W
796 am__isrc
797 INSTALL_DATA
798 INSTALL_SCRIPT
799 INSTALL_PROGRAM
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 runstatedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL
858 am__quote'
859 ac_subst_files=''
860 ac_user_opts='
861 enable_option_checking
862 enable_dependency_tracking
863 enable_silent_rules
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_gnu_ld
869 with_sysroot
870 enable_libtool_lock
871 enable_gui_client
872 enable_curses_client
873 enable_gui_server
874 enable_gtk4
875 enable_gtk3
876 with_esd
877 with_sdl
878 with_cocoa
879 enable_nativewin32
880 enable_glibtest
881 with_libcurl
882 enable_gtktest
883 with_esd_prefix
884 with_esd_exec_prefix
885 enable_esdtest
886 with_sdl_prefix
887 with_sdl_exec_prefix
888 enable_sdltest
889 enable_nls
890 enable_rpath
891 with_libiconv_prefix
892 with_libintl_prefix
893 enable_plugins
894 enable_networking
895 enable_strict
896 '
897 ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 PKG_CONFIG
906 PKG_CONFIG_PATH
907 PKG_CONFIG_LIBDIR
908 GLIB_CFLAGS
909 GLIB_LIBS
910 GLIB_GENMARSHAL
911 GOBJECT_QUERY
912 GLIB_MKENUMS
913 GLIB_COMPILE_RESOURCES
914 GTK_CFLAGS
915 GTK_LIBS
916 SDL_CFLAGS
917 SDL_LIBS
918 OBJC
919 OBJCFLAGS
920 CPP'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 runstatedir='${localstatedir}/run'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
981 fi
982
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -runstatedir | --runstatedir | --runstatedi | --runstated \
1211 | --runstate | --runstat | --runsta | --runst | --runs \
1212 | --run | --ru | --r)
1213 ac_prev=runstatedir ;;
1214 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1215 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1216 | --run=* | --ru=* | --r=*)
1217 runstatedir=$ac_optarg ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: \`$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1279
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: \`$ac_useropt'"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 ;;
1335
1336 esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1342 fi
1343
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350 fi
1351
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir runstatedir
1357 do
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1372
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 printf "%s\n" X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434 else
1435 ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures dopewars 1.6.2 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/dopewars]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523 _ACEOF
1524
1525 cat <<\_ACEOF
1526
1527 Program names:
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of dopewars 1.6.2:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545 Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-dependency-tracking
1550 do not reject slow dependency extractors
1551 --disable-dependency-tracking
1552 speeds up one-time build
1553 --enable-silent-rules less verbose build output (undo: "make V=1")
1554 --disable-silent-rules verbose build output (undo: "make V=0")
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --enable-gui-client include graphical client (GTK+/Win32)
1561 --enable-curses-client include curses client
1562 --enable-gui-server use a simple GTK+/Win32 GUI for the server
1563 --enable-gtk4 use GTK 4 if available (experimental)
1564 --disable-gtk3 use GTK+ 2.x, even if 3.x is found
1565 --enable-nativewin32 build a native Win32 binary under Cygwin
1566 --disable-glibtest do not try to compile and run a test GLIB program
1567 --disable-gtktest do not try to compile and run a test GTK+ program
1568 --disable-esdtest Do not try to compile and run a test ESD program
1569 --disable-sdltest Do not try to compile and run a test SDL program
1570 --disable-nls do not use Native Language Support
1571 --disable-rpath do not hardcode runtime library paths
1572 --enable-plugins use dynamically-loaded sound modules
1573 --enable-networking dopewars will use TCP/IP to connect to servers
1574 --enable-strict if using gcc, enable extra warnings above -Wall
1575
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-sysroot=DIR Search for dependent libraries within DIR
1583 (or the compiler's sysroot if not specified).
1584 --without-esd do not support ESD sound output
1585 --without-sdl do not support SDL sound output
1586 --without-cocoa do not support Cocoa (Mac) sound output
1587 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
1588 in PREFIX/include
1589 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1590 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1591 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1592 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1595 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1596 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1597 --without-libintl-prefix don't search for libintl in includedir and libdir
1598
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 PKG_CONFIG path to pkg-config utility
1608 PKG_CONFIG_PATH
1609 directories to add to pkg-config's search path
1610 PKG_CONFIG_LIBDIR
1611 path overriding pkg-config's built-in search path
1612 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1613 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1614 GLIB_GENMARSHAL
1615 value of glib_genmarshal for glib-2.0, overriding pkg-config
1616 GOBJECT_QUERY
1617 value of gobject_query for glib-2.0, overriding pkg-config
1618 GLIB_MKENUMS
1619 value of glib_mkenums for glib-2.0, overriding pkg-config
1620 GLIB_COMPILE_RESOURCES
1621 value of glib_compile_resources for gio-2.0, overriding
1622 pkg-config
1623 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1624 GTK_LIBS linker flags for GTK, overriding pkg-config
1625 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1626 SDL_LIBS linker flags for SDL, overriding pkg-config
1627 OBJC Objective C compiler command
1628 OBJCFLAGS Objective C compiler flags
1629 CPP C preprocessor
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to the package provider.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for configure.gnu first; this name is used for a wrapper for
1681 # Metaconfig's "Configure" on case-insensitive file systems.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 dopewars configure 1.6.2
1699 generated by GNU Autoconf 2.71
1700
1701 Copyright (C) 2021 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest.beam
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 printf "%s\n" "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext
1738 then :
1739 ac_retval=0
1740 else $as_nop
1741 printf "%s\n" "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745 fi
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_compile
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 printf %s "checking for $2... " >&6; }
1760 if eval test \${$3+y}
1761 then :
1762 printf %s "(cached) " >&6
1763 else $as_nop
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"
1770 then :
1771 eval "$3=yes"
1772 else $as_nop
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 printf "%s\n" "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_header_compile
1783
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_link ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 printf "%s\n" "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 test -x conftest$ac_exeext
1812 }
1813 then :
1814 ac_retval=0
1815 else $as_nop
1816 printf "%s\n" "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 printf %s "checking for $2... " >&6; }
1839 if eval test \${$3+y}
1840 then :
1841 printf %s "(cached) " >&6
1842 else $as_nop
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1848
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below. */
1851
1852 #include <limits.h>
1853 #undef $2
1854
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1868
1869 int
1870 main (void)
1871 {
1872 return $2 ();
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"
1878 then :
1879 eval "$3=yes"
1880 else $as_nop
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 printf "%s\n" "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_c_try_run LINENO
1894 # ----------------------
1895 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1896 # executables *can* be run.
1897 ac_fn_c_try_run ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 printf "%s\n" "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>&5
1908 ac_status=$?
1909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1911 { { case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917 (eval "$ac_try") 2>&5
1918 ac_status=$?
1919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; }; }
1921 then :
1922 ac_retval=0
1923 else $as_nop
1924 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1925 printf "%s\n" "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=$ac_status
1929 fi
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1933
1934 } # ac_fn_c_try_run
1935
1936 # ac_fn_objc_try_compile LINENO
1937 # -----------------------------
1938 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_objc_try_compile ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest.beam
1943 if { { ac_try="$ac_compile"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 printf "%s\n" "$ac_try_echo"; } >&5
1950 (eval "$ac_compile") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_objc_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest.$ac_objext
1962 then :
1963 ac_retval=0
1964 else $as_nop
1965 printf "%s\n" "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_objc_try_compile
1974
1975 # ac_fn_c_try_cpp LINENO
1976 # ----------------------
1977 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_c_try_cpp ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_cpp conftest.$ac_ext"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 printf "%s\n" "$ac_try_echo"; } >&5
1988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } > conftest.i && {
1997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 }
2000 then :
2001 ac_retval=0
2002 else $as_nop
2003 printf "%s\n" "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_c_try_cpp
2012
2013 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014 # --------------------------------------------
2015 # Tries to find the compile-time value of EXPR in a program that includes
2016 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 # computed
2018 ac_fn_c_compute_int ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main (void)
2028 {
2029 static int test_array [1 - 2 * !(($2) >= 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"
2038 then :
2039 ac_lo=0 ac_mid=0
2040 while :; do
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 $4
2044 int
2045 main (void)
2046 {
2047 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2048 test_array [0] = 0;
2049 return test_array [0];
2050
2051 ;
2052 return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"
2056 then :
2057 ac_hi=$ac_mid; break
2058 else $as_nop
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2061 ac_lo= ac_hi=
2062 break
2063 fi
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 done
2068 else $as_nop
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main (void)
2074 {
2075 static int test_array [1 - 2 * !(($2) < 0)];
2076 test_array [0] = 0;
2077 return test_array [0];
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"
2084 then :
2085 ac_hi=-1 ac_mid=-1
2086 while :; do
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main (void)
2092 {
2093 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2094 test_array [0] = 0;
2095 return test_array [0];
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"
2102 then :
2103 ac_lo=$ac_mid; break
2104 else $as_nop
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2109 fi
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2113 done
2114 else $as_nop
2115 ac_lo= ac_hi=
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main (void)
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0;
2131 return test_array [0];
2132
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"
2138 then :
2139 ac_hi=$ac_mid
2140 else $as_nop
2141 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 done
2145 case $ac_lo in #((
2146 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2147 '') ac_retval=1 ;;
2148 esac
2149 else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 static long int longval (void) { return $2; }
2154 static unsigned long int ulongval (void) { return $2; }
2155 #include <stdio.h>
2156 #include <stdlib.h>
2157 int
2158 main (void)
2159 {
2160
2161 FILE *f = fopen ("conftest.val", "w");
2162 if (! f)
2163 return 1;
2164 if (($2) < 0)
2165 {
2166 long int i = longval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%ld", i);
2170 }
2171 else
2172 {
2173 unsigned long int i = ulongval ();
2174 if (i != ($2))
2175 return 1;
2176 fprintf (f, "%lu", i);
2177 }
2178 /* Do not output a trailing newline, as this causes \r\n confusion
2179 on some platforms. */
2180 return ferror (f) || fclose (f) != 0;
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_run "$LINENO"
2187 then :
2188 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2189 else $as_nop
2190 ac_retval=1
2191 fi
2192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2193 conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 rm -f conftest.val
2195
2196 fi
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 as_fn_set_status $ac_retval
2199
2200 } # ac_fn_c_compute_int
2201 ac_configure_args_raw=
2202 for ac_arg
2203 do
2204 case $ac_arg in
2205 *\'*)
2206 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 esac
2208 as_fn_append ac_configure_args_raw " '$ac_arg'"
2209 done
2210
2211 case $ac_configure_args_raw in
2212 *$as_nl*)
2213 ac_safe_unquote= ;;
2214 *)
2215 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2216 ac_unsafe_a="$ac_unsafe_z#~"
2217 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2218 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2219 esac
2220
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2224
2225 It was created by dopewars $as_me 1.6.2, which was
2226 generated by GNU Autoconf 2.71. Invocation command line was
2227
2228 $ $0$ac_configure_args_raw
2229
2230 _ACEOF
2231 exec 5>>config.log
2232 {
2233 cat <<_ASUNAME
2234 ## --------- ##
2235 ## Platform. ##
2236 ## --------- ##
2237
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2254
2255 _ASUNAME
2256
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 case $as_dir in #(((
2262 '') as_dir=./ ;;
2263 */) ;;
2264 *) as_dir=$as_dir/ ;;
2265 esac
2266 printf "%s\n" "PATH: $as_dir"
2267 done
2268 IFS=$as_save_IFS
2269
2270 } >&5
2271
2272 cat >&5 <<_ACEOF
2273
2274
2275 ## ----------- ##
2276 ## Core tests. ##
2277 ## ----------- ##
2278
2279 _ACEOF
2280
2281
2282 # Keep a trace of the command line.
2283 # Strip out --no-create and --no-recursion so they do not pile up.
2284 # Strip out --silent because we don't want to record it for future runs.
2285 # Also quote any args containing shell meta-characters.
2286 # Make two passes to allow for proper duplicate-argument suppression.
2287 ac_configure_args=
2288 ac_configure_args0=
2289 ac_configure_args1=
2290 ac_must_keep_next=false
2291 for ac_pass in 1 2
2292 do
2293 for ac_arg
2294 do
2295 case $ac_arg in
2296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298 | -silent | --silent | --silen | --sile | --sil)
2299 continue ;;
2300 *\'*)
2301 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 esac
2303 case $ac_pass in
2304 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305 2)
2306 as_fn_append ac_configure_args1 " '$ac_arg'"
2307 if test $ac_must_keep_next = true; then
2308 ac_must_keep_next=false # Got value, back to normal.
2309 else
2310 case $ac_arg in
2311 *=* | --config-cache | -C | -disable-* | --disable-* \
2312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314 | -with-* | --with-* | -without-* | --without-* | --x)
2315 case "$ac_configure_args0 " in
2316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317 esac
2318 ;;
2319 -* ) ac_must_keep_next=true ;;
2320 esac
2321 fi
2322 as_fn_append ac_configure_args " '$ac_arg'"
2323 ;;
2324 esac
2325 done
2326 done
2327 { ac_configure_args0=; unset ac_configure_args0;}
2328 { ac_configure_args1=; unset ac_configure_args1;}
2329
2330 # When interrupted or exit'd, cleanup temporary files, and complete
2331 # config.log. We remove comments because anyway the quotes in there
2332 # would cause problems or look ugly.
2333 # WARNING: Use '\'' to represent an apostrophe within the trap.
2334 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335 trap 'exit_status=$?
2336 # Sanitize IFS.
2337 IFS=" "" $as_nl"
2338 # Save into config.log some information that might help in debugging.
2339 {
2340 echo
2341
2342 printf "%s\n" "## ---------------- ##
2343 ## Cache variables. ##
2344 ## ---------------- ##"
2345 echo
2346 # The following way of writing the cache mishandles newlines in values,
2347 (
2348 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in #(
2351 *${as_nl}*)
2352 case $ac_var in #(
2353 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2354 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2355 esac
2356 case $ac_var in #(
2357 _ | IFS | as_nl) ;; #(
2358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2359 *) { eval $ac_var=; unset $ac_var;} ;;
2360 esac ;;
2361 esac
2362 done
2363 (set) 2>&1 |
2364 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2365 *${as_nl}ac_space=\ *)
2366 sed -n \
2367 "s/'\''/'\''\\\\'\'''\''/g;
2368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2369 ;; #(
2370 *)
2371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372 ;;
2373 esac |
2374 sort
2375 )
2376 echo
2377
2378 printf "%s\n" "## ----------------- ##
2379 ## Output variables. ##
2380 ## ----------------- ##"
2381 echo
2382 for ac_var in $ac_subst_vars
2383 do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in
2386 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387 esac
2388 printf "%s\n" "$ac_var='\''$ac_val'\''"
2389 done | sort
2390 echo
2391
2392 if test -n "$ac_subst_files"; then
2393 printf "%s\n" "## ------------------- ##
2394 ## File substitutions. ##
2395 ## ------------------- ##"
2396 echo
2397 for ac_var in $ac_subst_files
2398 do
2399 eval ac_val=\$$ac_var
2400 case $ac_val in
2401 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac
2403 printf "%s\n" "$ac_var='\''$ac_val'\''"
2404 done | sort
2405 echo
2406 fi
2407
2408 if test -s confdefs.h; then
2409 printf "%s\n" "## ----------- ##
2410 ## confdefs.h. ##
2411 ## ----------- ##"
2412 echo
2413 cat confdefs.h
2414 echo
2415 fi
2416 test "$ac_signal" != 0 &&
2417 printf "%s\n" "$as_me: caught signal $ac_signal"
2418 printf "%s\n" "$as_me: exit $exit_status"
2419 } >&5
2420 rm -f core *.core core.conftest.* &&
2421 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2422 exit $exit_status
2423 ' 0
2424 for ac_signal in 1 2 13 15; do
2425 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2426 done
2427 ac_signal=0
2428
2429 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2430 rm -f -r conftest* confdefs.h
2431
2432 printf "%s\n" "/* confdefs.h */" > confdefs.h
2433
2434 # Predefined preprocessor variables.
2435
2436 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2437
2438 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2439
2440 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2441
2442 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2443
2444 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2445
2446 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2447
2448
2449 # Let the site file select an alternate cache file if it wants to.
2450 # Prefer an explicitly selected file to automatically selected ones.
2451 if test -n "$CONFIG_SITE"; then
2452 ac_site_files="$CONFIG_SITE"
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2455 else
2456 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2457 fi
2458
2459 for ac_site_file in $ac_site_files
2460 do
2461 case $ac_site_file in #(
2462 */*) :
2463 ;; #(
2464 *) :
2465 ac_site_file=./$ac_site_file ;;
2466 esac
2467 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2469 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2470 sed 's/^/| /' "$ac_site_file" >&5
2471 . "$ac_site_file" \
2472 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2474 as_fn_error $? "failed to load site script $ac_site_file
2475 See \`config.log' for more details" "$LINENO" 5; }
2476 fi
2477 done
2478
2479 if test -r "$cache_file"; then
2480 # Some versions of bash will fail to source /dev/null (special files
2481 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2482 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2484 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2485 case $cache_file in
2486 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2487 *) . "./$cache_file";;
2488 esac
2489 fi
2490 else
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2492 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2493 >$cache_file
2494 fi
2495
2496 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2497 # Test code for whether the C compiler supports C89 (global declarations)
2498 ac_c_conftest_c89_globals='
2499 /* Does the compiler advertise C89 conformance?
2500 Do not test the value of __STDC__, because some compilers set it to 0
2501 while being otherwise adequately conformant. */
2502 #if !defined __STDC__
2503 # error "Compiler does not advertise C89 conformance"
2504 #endif
2505
2506 #include <stddef.h>
2507 #include <stdarg.h>
2508 struct stat;
2509 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2510 struct buf { int x; };
2511 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2513 char **p;
2514 int i;
2515 {
2516 return p[i];
2517 }
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2519 {
2520 char *s;
2521 va_list v;
2522 va_start (v,p);
2523 s = g (p, va_arg (v,int));
2524 va_end (v);
2525 return s;
2526 }
2527
2528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2529 function prototypes and stuff, but not \xHH hex character constants.
2530 These do not provoke an error unfortunately, instead are silently treated
2531 as an "x". The following induces an error, until -std is added to get
2532 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2533 array size at least. It is necessary to write \x00 == 0 to get something
2534 that is true only with -std. */
2535 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2536
2537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2538 inside strings and character constants. */
2539 #define FOO(x) '\''x'\''
2540 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2541
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2545 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2546 int, int);'
2547
2548 # Test code for whether the C compiler supports C89 (body of main).
2549 ac_c_conftest_c89_main='
2550 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2551 '
2552
2553 # Test code for whether the C compiler supports C99 (global declarations)
2554 ac_c_conftest_c99_globals='
2555 // Does the compiler advertise C99 conformance?
2556 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2557 # error "Compiler does not advertise C99 conformance"
2558 #endif
2559
2560 #include <stdbool.h>
2561 extern int puts (const char *);
2562 extern int printf (const char *, ...);
2563 extern int dprintf (int, const char *, ...);
2564 extern void *malloc (size_t);
2565
2566 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2567 // dprintf is used instead of fprintf to avoid needing to declare
2568 // FILE and stderr.
2569 #define debug(...) dprintf (2, __VA_ARGS__)
2570 #define showlist(...) puts (#__VA_ARGS__)
2571 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2572 static void
2573 test_varargs_macros (void)
2574 {
2575 int x = 1234;
2576 int y = 5678;
2577 debug ("Flag");
2578 debug ("X = %d\n", x);
2579 showlist (The first, second, and third items.);
2580 report (x>y, "x is %d but y is %d", x, y);
2581 }
2582
2583 // Check long long types.
2584 #define BIG64 18446744073709551615ull
2585 #define BIG32 4294967295ul
2586 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2587 #if !BIG_OK
2588 #error "your preprocessor is broken"
2589 #endif
2590 #if BIG_OK
2591 #else
2592 #error "your preprocessor is broken"
2593 #endif
2594 static long long int bignum = -9223372036854775807LL;
2595 static unsigned long long int ubignum = BIG64;
2596
2597 struct incomplete_array
2598 {
2599 int datasize;
2600 double data[];
2601 };
2602
2603 struct named_init {
2604 int number;
2605 const wchar_t *name;
2606 double average;
2607 };
2608
2609 typedef const char *ccp;
2610
2611 static inline int
2612 test_restrict (ccp restrict text)
2613 {
2614 // See if C++-style comments work.
2615 // Iterate through items via the restricted pointer.
2616 // Also check for declarations in for loops.
2617 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618 continue;
2619 return 0;
2620 }
2621
2622 // Check varargs and va_copy.
2623 static bool
2624 test_varargs (const char *format, ...)
2625 {
2626 va_list args;
2627 va_start (args, format);
2628 va_list args_copy;
2629 va_copy (args_copy, args);
2630
2631 const char *str = "";
2632 int number = 0;
2633 float fnumber = 0;
2634
2635 while (*format)
2636 {
2637 switch (*format++)
2638 {
2639 case '\''s'\'': // string
2640 str = va_arg (args_copy, const char *);
2641 break;
2642 case '\''d'\'': // int
2643 number = va_arg (args_copy, int);
2644 break;
2645 case '\''f'\'': // float
2646 fnumber = va_arg (args_copy, double);
2647 break;
2648 default:
2649 break;
2650 }
2651 }
2652 va_end (args_copy);
2653 va_end (args);
2654
2655 return *str && number && fnumber;
2656 }
2657 '
2658
2659 # Test code for whether the C compiler supports C99 (body of main).
2660 ac_c_conftest_c99_main='
2661 // Check bool.
2662 _Bool success = false;
2663 success |= (argc != 0);
2664
2665 // Check restrict.
2666 if (test_restrict ("String literal") == 0)
2667 success = true;
2668 char *restrict newvar = "Another string";
2669
2670 // Check varargs.
2671 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672 test_varargs_macros ();
2673
2674 // Check flexible array members.
2675 struct incomplete_array *ia =
2676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677 ia->datasize = 10;
2678 for (int i = 0; i < ia->datasize; ++i)
2679 ia->data[i] = i * 1.234;
2680
2681 // Check named initializers.
2682 struct named_init ni = {
2683 .number = 34,
2684 .name = L"Test wide string",
2685 .average = 543.34343,
2686 };
2687
2688 ni.number = 58;
2689
2690 int dynamic_array[ni.number];
2691 dynamic_array[0] = argv[0][0];
2692 dynamic_array[ni.number - 1] = 543;
2693
2694 // work around unused variable warnings
2695 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2696 || dynamic_array[ni.number - 1] != 543);
2697 '
2698
2699 # Test code for whether the C compiler supports C11 (global declarations)
2700 ac_c_conftest_c11_globals='
2701 // Does the compiler advertise C11 conformance?
2702 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2703 # error "Compiler does not advertise C11 conformance"
2704 #endif
2705
2706 // Check _Alignas.
2707 char _Alignas (double) aligned_as_double;
2708 char _Alignas (0) no_special_alignment;
2709 extern char aligned_as_int;
2710 char _Alignas (0) _Alignas (int) aligned_as_int;
2711
2712 // Check _Alignof.
2713 enum
2714 {
2715 int_alignment = _Alignof (int),
2716 int_array_alignment = _Alignof (int[100]),
2717 char_alignment = _Alignof (char)
2718 };
2719 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2720
2721 // Check _Noreturn.
2722 int _Noreturn does_not_return (void) { for (;;) continue; }
2723
2724 // Check _Static_assert.
2725 struct test_static_assert
2726 {
2727 int x;
2728 _Static_assert (sizeof (int) <= sizeof (long int),
2729 "_Static_assert does not work in struct");
2730 long int y;
2731 };
2732
2733 // Check UTF-8 literals.
2734 #define u8 syntax error!
2735 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2736
2737 // Check duplicate typedefs.
2738 typedef long *long_ptr;
2739 typedef long int *long_ptr;
2740 typedef long_ptr long_ptr;
2741
2742 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2743 struct anonymous
2744 {
2745 union {
2746 struct { int i; int j; };
2747 struct { int k; long int l; } w;
2748 };
2749 int m;
2750 } v1;
2751 '
2752
2753 # Test code for whether the C compiler supports C11 (body of main).
2754 ac_c_conftest_c11_main='
2755 _Static_assert ((offsetof (struct anonymous, i)
2756 == offsetof (struct anonymous, w.k)),
2757 "Anonymous union alignment botch");
2758 v1.i = 2;
2759 v1.w.k = 5;
2760 ok |= v1.i != 5;
2761 '
2762
2763 # Test code for whether the C compiler supports C11 (complete).
2764 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2765 ${ac_c_conftest_c99_globals}
2766 ${ac_c_conftest_c11_globals}
2767
2768 int
2769 main (int argc, char **argv)
2770 {
2771 int ok = 0;
2772 ${ac_c_conftest_c89_main}
2773 ${ac_c_conftest_c99_main}
2774 ${ac_c_conftest_c11_main}
2775 return ok;
2776 }
2777 "
2778
2779 # Test code for whether the C compiler supports C99 (complete).
2780 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2781 ${ac_c_conftest_c99_globals}
2782
2783 int
2784 main (int argc, char **argv)
2785 {
2786 int ok = 0;
2787 ${ac_c_conftest_c89_main}
2788 ${ac_c_conftest_c99_main}
2789 return ok;
2790 }
2791 "
2792
2793 # Test code for whether the C compiler supports C89 (complete).
2794 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799 int ok = 0;
2800 ${ac_c_conftest_c89_main}
2801 return ok;
2802 }
2803 "
2804
2805 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2806 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2807 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2808 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2809 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2810 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2811 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2812 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2813 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2814 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2815 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2816 gt_needs="$gt_needs "
2817
2818 # Auxiliary files required by this configure script.
2819 ac_aux_files="config.rpath ltmain.sh missing install-sh compile config.guess config.sub"
2820
2821 # Locations in which to look for auxiliary files.
2822 ac_aux_dir_candidates="${srcdir}/auxbuild"
2823
2824 # Search for a directory containing all of the required auxiliary files,
2825 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2826 # If we don't find one directory that contains all the files we need,
2827 # we report the set of missing files from the *first* directory in
2828 # $ac_aux_dir_candidates and give up.
2829 ac_missing_aux_files=""
2830 ac_first_candidate=:
2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 as_found=false
2834 for as_dir in $ac_aux_dir_candidates
2835 do
2836 IFS=$as_save_IFS
2837 case $as_dir in #(((
2838 '') as_dir=./ ;;
2839 */) ;;
2840 *) as_dir=$as_dir/ ;;
2841 esac
2842 as_found=:
2843
2844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2845 ac_aux_dir_found=yes
2846 ac_install_sh=
2847 for ac_aux in $ac_aux_files
2848 do
2849 # As a special case, if "install-sh" is required, that requirement
2850 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2851 # and $ac_install_sh is set appropriately for whichever one is found.
2852 if test x"$ac_aux" = x"install-sh"
2853 then
2854 if test -f "${as_dir}install-sh"; then
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2856 ac_install_sh="${as_dir}install-sh -c"
2857 elif test -f "${as_dir}install.sh"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2859 ac_install_sh="${as_dir}install.sh -c"
2860 elif test -f "${as_dir}shtool"; then
2861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2862 ac_install_sh="${as_dir}shtool install -c"
2863 else
2864 ac_aux_dir_found=no
2865 if $ac_first_candidate; then
2866 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2867 else
2868 break
2869 fi
2870 fi
2871 else
2872 if test -f "${as_dir}${ac_aux}"; then
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2874 else
2875 ac_aux_dir_found=no
2876 if $ac_first_candidate; then
2877 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2878 else
2879 break
2880 fi
2881 fi
2882 fi
2883 done
2884 if test "$ac_aux_dir_found" = yes; then
2885 ac_aux_dir="$as_dir"
2886 break
2887 fi
2888 ac_first_candidate=false
2889
2890 as_found=false
2891 done
2892 IFS=$as_save_IFS
2893 if $as_found
2894 then :
2895
2896 else $as_nop
2897 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2898 fi
2899
2900
2901 # These three variables are undocumented and unsupported,
2902 # and are intended to be withdrawn in a future Autoconf release.
2903 # They can cause serious problems if a builder's source tree is in a directory
2904 # whose full name contains unusual characters.
2905 if test -f "${ac_aux_dir}config.guess"; then
2906 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2907 fi
2908 if test -f "${ac_aux_dir}config.sub"; then
2909 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2910 fi
2911 if test -f "$ac_aux_dir/configure"; then
2912 ac_configure="$SHELL ${ac_aux_dir}configure"
2913 fi
2914
2915 # Check that the precious variables saved in the cache have kept the same
2916 # value.
2917 ac_cache_corrupted=false
2918 for ac_var in $ac_precious_vars; do
2919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2920 eval ac_new_set=\$ac_env_${ac_var}_set
2921 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2922 eval ac_new_val=\$ac_env_${ac_var}_value
2923 case $ac_old_set,$ac_new_set in
2924 set,)
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2926 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2927 ac_cache_corrupted=: ;;
2928 ,set)
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2930 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2931 ac_cache_corrupted=: ;;
2932 ,);;
2933 *)
2934 if test "x$ac_old_val" != "x$ac_new_val"; then
2935 # differences in whitespace do not lead to failure.
2936 ac_old_val_w=`echo x $ac_old_val`
2937 ac_new_val_w=`echo x $ac_new_val`
2938 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2940 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2941 ac_cache_corrupted=:
2942 else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2944 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2945 eval $ac_var=\$ac_old_val
2946 fi
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2948 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2950 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2951 fi;;
2952 esac
2953 # Pass precious variables to config.status.
2954 if test "$ac_new_set" = set; then
2955 case $ac_new_val in
2956 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2957 *) ac_arg=$ac_var=$ac_new_val ;;
2958 esac
2959 case " $ac_configure_args " in
2960 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2961 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2962 esac
2963 fi
2964 done
2965 if $ac_cache_corrupted; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2969 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2970 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2971 and start over" "$LINENO" 5
2972 fi
2973 ## -------------------- ##
2974 ## Main body of script. ##
2975 ## -------------------- ##
2976
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992 # Make sure we can run config.sub.
2993 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2994 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2995
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2997 printf %s "checking build system type... " >&6; }
2998 if test ${ac_cv_build+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else $as_nop
3002 ac_build_alias=$build_alias
3003 test "x$ac_build_alias" = x &&
3004 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3005 test "x$ac_build_alias" = x &&
3006 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3007 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3008 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3009
3010 fi
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3012 printf "%s\n" "$ac_cv_build" >&6; }
3013 case $ac_cv_build in
3014 *-*-*) ;;
3015 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3016 esac
3017 build=$ac_cv_build
3018 ac_save_IFS=$IFS; IFS='-'
3019 set x $ac_cv_build
3020 shift
3021 build_cpu=$1
3022 build_vendor=$2
3023 shift; shift
3024 # Remember, the first character of IFS is used to create $*,
3025 # except with old shells:
3026 build_os=$*
3027 IFS=$ac_save_IFS
3028 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3029
3030
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3032 printf %s "checking host system type... " >&6; }
3033 if test ${ac_cv_host+y}
3034 then :
3035 printf %s "(cached) " >&6
3036 else $as_nop
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3039 else
3040 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3041 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3042 fi
3043
3044 fi
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 printf "%s\n" "$ac_cv_host" >&6; }
3047 case $ac_cv_host in
3048 *-*-*) ;;
3049 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3050 esac
3051 host=$ac_cv_host
3052 ac_save_IFS=$IFS; IFS='-'
3053 set x $ac_cv_host
3054 shift
3055 host_cpu=$1
3056 host_vendor=$2
3057 shift; shift
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3060 host_os=$*
3061 IFS=$ac_save_IFS
3062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3063
3064
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 printf %s "checking target system type... " >&6; }
3067 if test ${ac_cv_target+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else $as_nop
3071 if test "x$target_alias" = x; then
3072 ac_cv_target=$ac_cv_host
3073 else
3074 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3075 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3076 fi
3077
3078 fi
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3080 printf "%s\n" "$ac_cv_target" >&6; }
3081 case $ac_cv_target in
3082 *-*-*) ;;
3083 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3084 esac
3085 target=$ac_cv_target
3086 ac_save_IFS=$IFS; IFS='-'
3087 set x $ac_cv_target
3088 shift
3089 target_cpu=$1
3090 target_vendor=$2
3091 shift; shift
3092 # Remember, the first character of IFS is used to create $*,
3093 # except with old shells:
3094 target_os=$*
3095 IFS=$ac_save_IFS
3096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3097
3098
3099 # The aliases save the names the user supplied, while $host etc.
3100 # will get canonicalized.
3101 test -n "$target_alias" &&
3102 test "$program_prefix$program_suffix$program_transform_name" = \
3103 NONENONEs,x,x, &&
3104 program_prefix=${target_alias}-
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115 # Expand $ac_aux_dir to an absolute path.
3116 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 printf %s "checking for $ac_word... " >&6; }
3128 if test ${ac_cv_prog_CC+y}
3129 then :
3130 printf %s "(cached) " >&6
3131 else $as_nop
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 case $as_dir in #(((
3140 '') as_dir=./ ;;
3141 */) ;;
3142 *) as_dir=$as_dir/ ;;
3143 esac
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 printf "%s\n" "$CC" >&6; }
3160 else
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 printf "%s\n" "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 if test -z "$ac_cv_prog_CC"; then
3168 ac_ct_CC=$CC
3169 # Extract the first word of "gcc", so it can be a program name with args.
3170 set dummy gcc; ac_word=$2
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 printf %s "checking for $ac_word... " >&6; }
3173 if test ${ac_cv_prog_ac_ct_CC+y}
3174 then :
3175 printf %s "(cached) " >&6
3176 else $as_nop
3177 if test -n "$ac_ct_CC"; then
3178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 case $as_dir in #(((
3185 '') as_dir=./ ;;
3186 */) ;;
3187 *) as_dir=$as_dir/ ;;
3188 esac
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_CC="gcc"
3192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3204 printf "%s\n" "$ac_ct_CC" >&6; }
3205 else
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 printf "%s\n" "no" >&6; }
3208 fi
3209
3210 if test "x$ac_ct_CC" = x; then
3211 CC=""
3212 else
3213 case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219 CC=$ac_ct_CC
3220 fi
3221 else
3222 CC="$ac_cv_prog_CC"
3223 fi
3224
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}cc; ac_word=$2
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 printf %s "checking for $ac_word... " >&6; }
3231 if test ${ac_cv_prog_CC+y}
3232 then :
3233 printf %s "(cached) " >&6
3234 else $as_nop
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 case $as_dir in #(((
3243 '') as_dir=./ ;;
3244 */) ;;
3245 *) as_dir=$as_dir/ ;;
3246 esac
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_CC="${ac_tool_prefix}cc"
3250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 printf "%s\n" "$CC" >&6; }
3263 else
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 printf "%s\n" "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 fi
3271 if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273 set dummy cc; ac_word=$2
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 printf %s "checking for $ac_word... " >&6; }
3276 if test ${ac_cv_prog_CC+y}
3277 then :
3278 printf %s "(cached) " >&6
3279 else $as_nop
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 case $as_dir in #(((
3289 '') as_dir=./ ;;
3290 */) ;;
3291 *) as_dir=$as_dir/ ;;
3292 esac
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3295 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296 ac_prog_rejected=yes
3297 continue
3298 fi
3299 ac_cv_prog_CC="cc"
3300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3310 shift
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3315 shift
3316 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3317 fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 printf "%s\n" "$CC" >&6; }
3325 else
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 printf "%s\n" "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in cl.exe
3335 do
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 printf %s "checking for $ac_word... " >&6; }
3340 if test ${ac_cv_prog_CC+y}
3341 then :
3342 printf %s "(cached) " >&6
3343 else $as_nop
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350 IFS=$as_save_IFS
3351 case $as_dir in #(((
3352 '') as_dir=./ ;;
3353 */) ;;
3354 *) as_dir=$as_dir/ ;;
3355 esac
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 printf "%s\n" "$CC" >&6; }
3372 else
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 printf "%s\n" "no" >&6; }
3375 fi
3376
3377
3378 test -n "$CC" && break
3379 done
3380 fi
3381 if test -z "$CC"; then
3382 ac_ct_CC=$CC
3383 for ac_prog in cl.exe
3384 do
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 printf %s "checking for $ac_word... " >&6; }
3389 if test ${ac_cv_prog_ac_ct_CC+y}
3390 then :
3391 printf %s "(cached) " >&6
3392 else $as_nop
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399 IFS=$as_save_IFS
3400 case $as_dir in #(((
3401 '') as_dir=./ ;;
3402 */) ;;
3403 *) as_dir=$as_dir/ ;;
3404 esac
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 printf "%s\n" "$ac_ct_CC" >&6; }
3421 else
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 printf "%s\n" "no" >&6; }
3424 fi
3425
3426
3427 test -n "$ac_ct_CC" && break
3428 done
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3440 fi
3441 fi
3442
3443 fi
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}clang; ac_word=$2
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 printf %s "checking for $ac_word... " >&6; }
3450 if test ${ac_cv_prog_CC+y}
3451 then :
3452 printf %s "(cached) " >&6
3453 else $as_nop
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460 IFS=$as_save_IFS
3461 case $as_dir in #(((
3462 '') as_dir=./ ;;
3463 */) ;;
3464 *) as_dir=$as_dir/ ;;
3465 esac
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_CC="${ac_tool_prefix}clang"
3469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 printf "%s\n" "$CC" >&6; }
3482 else
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 printf "%s\n" "no" >&6; }
3485 fi
3486
3487
3488 fi
3489 if test -z "$ac_cv_prog_CC"; then
3490 ac_ct_CC=$CC
3491 # Extract the first word of "clang", so it can be a program name with args.
3492 set dummy clang; ac_word=$2
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 printf %s "checking for $ac_word... " >&6; }
3495 if test ${ac_cv_prog_ac_ct_CC+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_CC="clang"
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 printf "%s\n" "$ac_ct_CC" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532 if test "x$ac_ct_CC" = x; then
3533 CC=""
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 CC=$ac_ct_CC
3542 fi
3543 else
3544 CC="$ac_cv_prog_CC"
3545 fi
3546
3547 fi
3548
3549
3550 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details" "$LINENO" 5; }
3554
3555 # Provide some information about the compiler.
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3557 set X $ac_compile
3558 ac_compiler=$2
3559 for ac_option in --version -v -V -qversion -version; do
3560 { { ac_try="$ac_compiler $ac_option >&5"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 printf "%s\n" "$ac_try_echo"; } >&5
3567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3568 ac_status=$?
3569 if test -s conftest.err; then
3570 sed '10a\
3571 ... rest of stderr output deleted ...
3572 10q' conftest.err >conftest.er1
3573 cat conftest.er1 >&5
3574 fi
3575 rm -f conftest.er1 conftest.err
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3578 done
3579
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main (void)
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3595 # of exeext.
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3597 printf %s "checking whether the C compiler works... " >&6; }
3598 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3599
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3602
3603 ac_rmfiles=
3604 for ac_file in $ac_files
3605 do
3606 case $ac_file in
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609 esac
3610 done
3611 rm -f $ac_rmfiles
3612
3613 if { { ac_try="$ac_link_default"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 printf "%s\n" "$ac_try_echo"; } >&5
3620 (eval "$ac_link_default") 2>&5
3621 ac_status=$?
3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 then :
3625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3628 # so that the user can short-circuit this test for compilers unknown to
3629 # Autoconf.
3630 for ac_file in $ac_files ''
3631 do
3632 test -f "$ac_file" || continue
3633 case $ac_file in
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635 ;;
3636 [ab].out )
3637 # We found the default executable, but exeext='' is most
3638 # certainly right.
3639 break;;
3640 *.* )
3641 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3642 then :; else
3643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 fi
3645 # We set ac_cv_exeext here because the later test for it is not
3646 # safe: cross compilers may not add the suffix if given an `-o'
3647 # argument, so we may need to know it at that point already.
3648 # Even if this section looks crufty: it has the advantage of
3649 # actually working.
3650 break;;
3651 * )
3652 break;;
3653 esac
3654 done
3655 test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657 else $as_nop
3658 ac_file=''
3659 fi
3660 if test -z "$ac_file"
3661 then :
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 printf "%s\n" "no" >&6; }
3664 printf "%s\n" "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error 77 "C compiler cannot create executables
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 else $as_nop
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 printf "%s\n" "yes" >&6; }
3674 fi
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3676 printf %s "checking for C compiler default output file name... " >&6; }
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678 printf "%s\n" "$ac_file" >&6; }
3679 ac_exeext=$ac_cv_exeext
3680
3681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3682 ac_clean_files=$ac_clean_files_save
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 printf %s "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 printf "%s\n" "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3696 then :
3697 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3699 # work properly (i.e., refer to `conftest.exe'), while it won't with
3700 # `rm'.
3701 for ac_file in conftest.exe conftest conftest.*; do
3702 test -f "$ac_file" || continue
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 break;;
3707 * ) break;;
3708 esac
3709 done
3710 else $as_nop
3711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3714 See \`config.log' for more details" "$LINENO" 5; }
3715 fi
3716 rm -f conftest conftest$ac_cv_exeext
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718 printf "%s\n" "$ac_cv_exeext" >&6; }
3719
3720 rm -f conftest.$ac_ext
3721 EXEEXT=$ac_cv_exeext
3722 ac_exeext=$EXEEXT
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <stdio.h>
3726 int
3727 main (void)
3728 {
3729 FILE *f = fopen ("conftest.out", "w");
3730 return ferror (f) || fclose (f) != 0;
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 ac_clean_files="$ac_clean_files conftest.out"
3737 # Check that the compiler produces executables we can run. If not, either
3738 # the compiler is broken, or we cross compile.
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3740 printf %s "checking whether we are cross compiling... " >&6; }
3741 if test "$cross_compiling" != yes; then
3742 { { ac_try="$ac_link"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 printf "%s\n" "$ac_try_echo"; } >&5
3749 (eval "$ac_link") 2>&5
3750 ac_status=$?
3751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }
3753 if { ac_try='./conftest$ac_cv_exeext'
3754 { { case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 printf "%s\n" "$ac_try_echo"; } >&5
3760 (eval "$ac_try") 2>&5
3761 ac_status=$?
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; }; then
3764 cross_compiling=no
3765 else
3766 if test "$cross_compiling" = maybe; then
3767 cross_compiling=yes
3768 else
3769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error 77 "cannot run C compiled programs.
3772 If you meant to cross compile, use \`--host'.
3773 See \`config.log' for more details" "$LINENO" 5; }
3774 fi
3775 fi
3776 fi
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3778 printf "%s\n" "$cross_compiling" >&6; }
3779
3780 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3781 ac_clean_files=$ac_clean_files_save
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783 printf %s "checking for suffix of object files... " >&6; }
3784 if test ${ac_cv_objext+y}
3785 then :
3786 printf %s "(cached) " >&6
3787 else $as_nop
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main (void)
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try="$ac_compile"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 printf "%s\n" "$ac_try_echo"; } >&5
3807 (eval "$ac_compile") 2>&5
3808 ac_status=$?
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 then :
3812 for ac_file in conftest.o conftest.obj conftest.*; do
3813 test -f "$ac_file" || continue;
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817 break;;
3818 esac
3819 done
3820 else $as_nop
3821 printf "%s\n" "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error $? "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details" "$LINENO" 5; }
3828 fi
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 fi
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 printf "%s\n" "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3834 ac_objext=$OBJEXT
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3836 printf %s "checking whether the compiler supports GNU C... " >&6; }
3837 if test ${ac_cv_c_compiler_gnu+y}
3838 then :
3839 printf %s "(cached) " >&6
3840 else $as_nop
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main (void)
3846 {
3847 #ifndef __GNUC__
3848 choke me
3849 #endif
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"
3856 then :
3857 ac_compiler_gnu=yes
3858 else $as_nop
3859 ac_compiler_gnu=no
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863
3864 fi
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3866 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869 if test $ac_compiler_gnu = yes; then
3870 GCC=yes
3871 else
3872 GCC=
3873 fi
3874 ac_test_CFLAGS=${CFLAGS+y}
3875 ac_save_CFLAGS=$CFLAGS
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3877 printf %s "checking whether $CC accepts -g... " >&6; }
3878 if test ${ac_cv_prog_cc_g+y}
3879 then :
3880 printf %s "(cached) " >&6
3881 else $as_nop
3882 ac_save_c_werror_flag=$ac_c_werror_flag
3883 ac_c_werror_flag=yes
3884 ac_cv_prog_cc_g=no
3885 CFLAGS="-g"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main (void)
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"
3898 then :
3899 ac_cv_prog_cc_g=yes
3900 else $as_nop
3901 CFLAGS=""
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main (void)
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"
3914 then :
3915
3916 else $as_nop
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main (void)
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"
3931 then :
3932 ac_cv_prog_cc_g=yes
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3940 fi
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3943 if test $ac_test_CFLAGS; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3947 CFLAGS="-g -O2"
3948 else
3949 CFLAGS="-g"
3950 fi
3951 else
3952 if test "$GCC" = yes; then
3953 CFLAGS="-O2"
3954 else
3955 CFLAGS=
3956 fi
3957 fi
3958 ac_prog_cc_stdc=no
3959 if test x$ac_prog_cc_stdc = xno
3960 then :
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3962 printf %s "checking for $CC option to enable C11 features... " >&6; }
3963 if test ${ac_cv_prog_cc_c11+y}
3964 then :
3965 printf %s "(cached) " >&6
3966 else $as_nop
3967 ac_cv_prog_cc_c11=no
3968 ac_save_CC=$CC
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 $ac_c_conftest_c11_program
3972 _ACEOF
3973 for ac_arg in '' -std=gnu11
3974 do
3975 CC="$ac_save_CC $ac_arg"
3976 if ac_fn_c_try_compile "$LINENO"
3977 then :
3978 ac_cv_prog_cc_c11=$ac_arg
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.beam
3981 test "x$ac_cv_prog_cc_c11" != "xno" && break
3982 done
3983 rm -f conftest.$ac_ext
3984 CC=$ac_save_CC
3985 fi
3986
3987 if test "x$ac_cv_prog_cc_c11" = xno
3988 then :
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3990 printf "%s\n" "unsupported" >&6; }
3991 else $as_nop
3992 if test "x$ac_cv_prog_cc_c11" = x
3993 then :
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995 printf "%s\n" "none needed" >&6; }
3996 else $as_nop
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3998 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3999 CC="$CC $ac_cv_prog_cc_c11"
4000 fi
4001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4002 ac_prog_cc_stdc=c11
4003 fi
4004 fi
4005 if test x$ac_prog_cc_stdc = xno
4006 then :
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4008 printf %s "checking for $CC option to enable C99 features... " >&6; }
4009 if test ${ac_cv_prog_cc_c99+y}
4010 then :
4011 printf %s "(cached) " >&6
4012 else $as_nop
4013 ac_cv_prog_cc_c99=no
4014 ac_save_CC=$CC
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 $ac_c_conftest_c99_program
4018 _ACEOF
4019 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4020 do
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"
4023 then :
4024 ac_cv_prog_cc_c99=$ac_arg
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.beam
4027 test "x$ac_cv_prog_cc_c99" != "xno" && break
4028 done
4029 rm -f conftest.$ac_ext
4030 CC=$ac_save_CC
4031 fi
4032
4033 if test "x$ac_cv_prog_cc_c99" = xno
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036 printf "%s\n" "unsupported" >&6; }
4037 else $as_nop
4038 if test "x$ac_cv_prog_cc_c99" = x
4039 then :
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 printf "%s\n" "none needed" >&6; }
4042 else $as_nop
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4044 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4045 CC="$CC $ac_cv_prog_cc_c99"
4046 fi
4047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4048 ac_prog_cc_stdc=c99
4049 fi
4050 fi
4051 if test x$ac_prog_cc_stdc = xno
4052 then :
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4054 printf %s "checking for $CC option to enable C89 features... " >&6; }
4055 if test ${ac_cv_prog_cc_c89+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
4059 ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 $ac_c_conftest_c89_program
4064 _ACEOF
4065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066 do
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070 ac_cv_prog_cc_c89=$ac_arg
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.beam
4073 test "x$ac_cv_prog_cc_c89" != "xno" && break
4074 done
4075 rm -f conftest.$ac_ext
4076 CC=$ac_save_CC
4077 fi
4078
4079 if test "x$ac_cv_prog_cc_c89" = xno
4080 then :
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082 printf "%s\n" "unsupported" >&6; }
4083 else $as_nop
4084 if test "x$ac_cv_prog_cc_c89" = x
4085 then :
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4087 printf "%s\n" "none needed" >&6; }
4088 else $as_nop
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4090 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4091 CC="$CC $ac_cv_prog_cc_c89"
4092 fi
4093 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4094 ac_prog_cc_stdc=c89
4095 fi
4096 fi
4097
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4111 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4112 if test ${am_cv_prog_cc_c_o+y}
4113 then :
4114 printf %s "(cached) " >&6
4115 else $as_nop
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118
4119 int
4120 main (void)
4121 {
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 # Make sure it works both with $CC and with simple cc.
4128 # Following AC_PROG_CC_C_O, we do the test twice because some
4129 # compilers refuse to overwrite an existing .o file with -o,
4130 # though they will create one.
4131 am_cv_prog_cc_c_o=yes
4132 for am_i in 1 2; do
4133 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4134 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } \
4138 && test -f conftest2.$ac_objext; then
4139 : OK
4140 else
4141 am_cv_prog_cc_c_o=no
4142 break
4143 fi
4144 done
4145 rm -f core conftest*
4146 unset am_i
4147 fi
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4149 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4150 if test "$am_cv_prog_cc_c_o" != yes; then
4151 # Losing compiler, so override with the script.
4152 # FIXME: It is wrong to rewrite CC.
4153 # But if we don't then we get into trouble of one sort or another.
4154 # A longer-term fix would be to have automake use am__CC in this case,
4155 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4156 CC="$am_aux_dir/compile $CC"
4157 fi
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163
4164
4165
4166 ac_header= ac_cache=
4167 for ac_item in $ac_header_c_list
4168 do
4169 if test $ac_cache; then
4170 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4171 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4172 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4173 fi
4174 ac_header= ac_cache=
4175 elif test $ac_header; then
4176 ac_cache=$ac_item
4177 else
4178 ac_header=$ac_item
4179 fi
4180 done
4181
4182
4183
4184
4185
4186
4187
4188
4189 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4190 then :
4191
4192 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4193
4194 fi
4195
4196
4197
4198
4199
4200
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4202 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4203 if test ${ac_cv_safe_to_define___extensions__+y}
4204 then :
4205 printf %s "(cached) " >&6
4206 else $as_nop
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 # define __EXTENSIONS__ 1
4211 $ac_includes_default
4212 int
4213 main (void)
4214 {
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"
4221 then :
4222 ac_cv_safe_to_define___extensions__=yes
4223 else $as_nop
4224 ac_cv_safe_to_define___extensions__=no
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4227 fi
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4229 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4230
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4232 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4233 if test ${ac_cv_should_define__xopen_source+y}
4234 then :
4235 printf %s "(cached) " >&6
4236 else $as_nop
4237 ac_cv_should_define__xopen_source=no
4238 if test $ac_cv_header_wchar_h = yes
4239 then :
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242
4243 #include <wchar.h>
4244 mbstate_t x;
4245 int
4246 main (void)
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255
4256 else $as_nop
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259
4260 #define _XOPEN_SOURCE 500
4261 #include <wchar.h>
4262 mbstate_t x;
4263 int
4264 main (void)
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"
4272 then :
4273 ac_cv_should_define__xopen_source=yes
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278 fi
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4281 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4282
4283 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4284
4285 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4286
4287 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4288
4289 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4290
4291 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4292
4293 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4294
4295 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4296
4297 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4298
4299 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4300
4301 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4302
4303 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4304
4305 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4306
4307 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4308
4309 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4310
4311 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4312
4313 if test $ac_cv_header_minix_config_h = yes
4314 then :
4315 MINIX=yes
4316 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4317
4318 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4319
4320 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4321
4322 else $as_nop
4323 MINIX=
4324 fi
4325 if test $ac_cv_safe_to_define___extensions__ = yes
4326 then :
4327 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4328
4329 fi
4330 if test $ac_cv_should_define__xopen_source = yes
4331 then :
4332 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4333
4334 fi
4335
4336
4337 am__api_version='1.16'
4338
4339
4340 # Find a good install program. We prefer a C program (faster),
4341 # so one script is as good as another. But avoid the broken or
4342 # incompatible versions:
4343 # SysV /etc/install, /usr/sbin/install
4344 # SunOS /usr/etc/install
4345 # IRIX /sbin/install
4346 # AIX /bin/install
4347 # AmigaOS /C/install, which installs bootblocks on floppy discs
4348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4351 # OS/2's system install, which has a completely different semantic
4352 # ./install, which can be erroneously created by make from ./install.sh.
4353 # Reject install programs that cannot install multiple files.
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4355 printf %s "checking for a BSD-compatible install... " >&6; }
4356 if test -z "$INSTALL"; then
4357 if test ${ac_cv_path_install+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 case $as_dir in #(((
4366 '') as_dir=./ ;;
4367 */) ;;
4368 *) as_dir=$as_dir/ ;;
4369 esac
4370 # Account for fact that we put trailing slashes in our PATH walk.
4371 case $as_dir in #((
4372 ./ | /[cC]/* | \
4373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4375 /usr/ucb/* ) ;;
4376 *)
4377 # OSF1 and SCO ODT 3.0 have their own names for install.
4378 # Don't use installbsd from OSF since it installs stuff as root
4379 # by default.
4380 for ac_prog in ginstall scoinst install; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4383 if test $ac_prog = install &&
4384 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385 # AIX install. It has an incompatible calling convention.
4386 :
4387 elif test $ac_prog = install &&
4388 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389 # program-specific install script used by HP pwplus--don't use.
4390 :
4391 else
4392 rm -rf conftest.one conftest.two conftest.dir
4393 echo one > conftest.one
4394 echo two > conftest.two
4395 mkdir conftest.dir
4396 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4397 test -s conftest.one && test -s conftest.two &&
4398 test -s conftest.dir/conftest.one &&
4399 test -s conftest.dir/conftest.two
4400 then
4401 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4402 break 3
4403 fi
4404 fi
4405 fi
4406 done
4407 done
4408 ;;
4409 esac
4410
4411 done
4412 IFS=$as_save_IFS
4413
4414 rm -rf conftest.one conftest.two conftest.dir
4415
4416 fi
4417 if test ${ac_cv_path_install+y}; then
4418 INSTALL=$ac_cv_path_install
4419 else
4420 # As a last resort, use the slow shell script. Don't cache a
4421 # value for INSTALL within a source directory, because that will
4422 # break other packages using the cache if that directory is
4423 # removed, or if the value is a relative name.
4424 INSTALL=$ac_install_sh
4425 fi
4426 fi
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4428 printf "%s\n" "$INSTALL" >&6; }
4429
4430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4431 # It thinks the first close brace ends the variable substitution.
4432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4433
4434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4435
4436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4437
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4439 printf %s "checking whether build environment is sane... " >&6; }
4440 # Reject unsafe characters in $srcdir or the absolute working directory
4441 # name. Accept space and tab only in the latter.
4442 am_lf='
4443 '
4444 case `pwd` in
4445 *[\\\"\#\$\&\'\`$am_lf]*)
4446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4447 esac
4448 case $srcdir in
4449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4450 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4451 esac
4452
4453 # Do 'set' in a subshell so we don't clobber the current shell's
4454 # arguments. Must try -L first in case configure is actually a
4455 # symlink; some systems play weird games with the mod time of symlinks
4456 # (eg FreeBSD returns the mod time of the symlink's containing
4457 # directory).
4458 if (
4459 am_has_slept=no
4460 for am_try in 1 2; do
4461 echo "timestamp, slept: $am_has_slept" > conftest.file
4462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4463 if test "$*" = "X"; then
4464 # -L didn't work.
4465 set X `ls -t "$srcdir/configure" conftest.file`
4466 fi
4467 if test "$*" != "X $srcdir/configure conftest.file" \
4468 && test "$*" != "X conftest.file $srcdir/configure"; then
4469
4470 # If neither matched, then we have a broken ls. This can happen
4471 # if, for instance, CONFIG_SHELL is bash and it inherits a
4472 # broken ls alias from the environment. This has actually
4473 # happened. Such a system could not be considered "sane".
4474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4475 alias in your environment" "$LINENO" 5
4476 fi
4477 if test "$2" = conftest.file || test $am_try -eq 2; then
4478 break
4479 fi
4480 # Just in case.
4481 sleep 1
4482 am_has_slept=yes
4483 done
4484 test "$2" = conftest.file
4485 )
4486 then
4487 # Ok.
4488 :
4489 else
4490 as_fn_error $? "newly created file is older than distributed files!
4491 Check your system clock" "$LINENO" 5
4492 fi
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 printf "%s\n" "yes" >&6; }
4495 # If we didn't sleep, we still need to ensure time stamps of config.status and
4496 # generated files are strictly newer.
4497 am_sleep_pid=
4498 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4499 ( sleep 1 ) &
4500 am_sleep_pid=$!
4501 fi
4502
4503 rm -f conftest.file
4504
4505 test "$program_prefix" != NONE &&
4506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4507 # Use a double $ so make ignores it.
4508 test "$program_suffix" != NONE &&
4509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4510 # Double any \ or $.
4511 # By default was `s,x,x', remove it if useless.
4512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4513 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4514
4515
4516 if test x"${MISSING+set}" != xset; then
4517 MISSING="\${SHELL} '$am_aux_dir/missing'"
4518 fi
4519 # Use eval to expand $SHELL
4520 if eval "$MISSING --is-lightweight"; then
4521 am_missing_run="$MISSING "
4522 else
4523 am_missing_run=
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4525 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4526 fi
4527
4528 if test x"${install_sh+set}" != xset; then
4529 case $am_aux_dir in
4530 *\ * | *\ *)
4531 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4532 *)
4533 install_sh="\${SHELL} $am_aux_dir/install-sh"
4534 esac
4535 fi
4536
4537 # Installed binaries are usually stripped using 'strip' when the user
4538 # run "make install-strip". However 'strip' might not be the right
4539 # tool to use in cross-compilation environments, therefore Automake
4540 # will honor the 'STRIP' environment variable to overrule this program.
4541 if test "$cross_compiling" != no; then
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}strip; ac_word=$2
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 printf %s "checking for $ac_word... " >&6; }
4547 if test ${ac_cv_prog_STRIP+y}
4548 then :
4549 printf %s "(cached) " >&6
4550 else $as_nop
4551 if test -n "$STRIP"; then
4552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 case $as_dir in #(((
4559 '') as_dir=./ ;;
4560 */) ;;
4561 *) as_dir=$as_dir/ ;;
4562 esac
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569 done
4570 done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 STRIP=$ac_cv_prog_STRIP
4576 if test -n "$STRIP"; then
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4578 printf "%s\n" "$STRIP" >&6; }
4579 else
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 printf "%s\n" "no" >&6; }
4582 fi
4583
4584
4585 fi
4586 if test -z "$ac_cv_prog_STRIP"; then
4587 ac_ct_STRIP=$STRIP
4588 # Extract the first word of "strip", so it can be a program name with args.
4589 set dummy strip; ac_word=$2
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 printf %s "checking for $ac_word... " >&6; }
4592 if test ${ac_cv_prog_ac_ct_STRIP+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else $as_nop
4596 if test -n "$ac_ct_STRIP"; then
4597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 case $as_dir in #(((
4604 '') as_dir=./ ;;
4605 */) ;;
4606 *) as_dir=$as_dir/ ;;
4607 esac
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_STRIP="strip"
4611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4621 if test -n "$ac_ct_STRIP"; then
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4623 printf "%s\n" "$ac_ct_STRIP" >&6; }
4624 else
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 printf "%s\n" "no" >&6; }
4627 fi
4628
4629 if test "x$ac_ct_STRIP" = x; then
4630 STRIP=":"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 STRIP=$ac_ct_STRIP
4639 fi
4640 else
4641 STRIP="$ac_cv_prog_STRIP"
4642 fi
4643
4644 fi
4645 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4646
4647
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4649 printf %s "checking for a race-free mkdir -p... " >&6; }
4650 if test -z "$MKDIR_P"; then
4651 if test ${ac_cv_path_mkdir+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else $as_nop
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4657 do
4658 IFS=$as_save_IFS
4659 case $as_dir in #(((
4660 '') as_dir=./ ;;
4661 */) ;;
4662 *) as_dir=$as_dir/ ;;
4663 esac
4664 for ac_prog in mkdir gmkdir; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4667 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4668 'mkdir ('*'coreutils) '* | \
4669 'BusyBox '* | \
4670 'mkdir (fileutils) '4.1*)
4671 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4672 break 3;;
4673 esac
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679 fi
4680
4681 test -d ./--version && rmdir ./--version
4682 if test ${ac_cv_path_mkdir+y}; then
4683 MKDIR_P="$ac_cv_path_mkdir -p"
4684 else
4685 # As a last resort, use the slow shell script. Don't cache a
4686 # value for MKDIR_P within a source directory, because that will
4687 # break other packages using the cache if that directory is
4688 # removed, or if the value is a relative name.
4689 MKDIR_P="$ac_install_sh -d"
4690 fi
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4693 printf "%s\n" "$MKDIR_P" >&6; }
4694
4695 for ac_prog in gawk mawk nawk awk
4696 do
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 printf %s "checking for $ac_word... " >&6; }
4701 if test ${ac_cv_prog_AWK+y}
4702 then :
4703 printf %s "(cached) " >&6
4704 else $as_nop
4705 if test -n "$AWK"; then
4706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711 IFS=$as_save_IFS
4712 case $as_dir in #(((
4713 '') as_dir=./ ;;
4714 */) ;;
4715 *) as_dir=$as_dir/ ;;
4716 esac
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4719 ac_cv_prog_AWK="$ac_prog"
4720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4721 break 2
4722 fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4726
4727 fi
4728 fi
4729 AWK=$ac_cv_prog_AWK
4730 if test -n "$AWK"; then
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4732 printf "%s\n" "$AWK" >&6; }
4733 else
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 printf "%s\n" "no" >&6; }
4736 fi
4737
4738
4739 test -n "$AWK" && break
4740 done
4741
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4743 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4744 set x ${MAKE-make}
4745 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4746 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else $as_nop
4750 cat >conftest.make <<\_ACEOF
4751 SHELL = /bin/sh
4752 all:
4753 @echo '@@@%%%=$(MAKE)=@@@%%%'
4754 _ACEOF
4755 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4756 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4757 *@@@%%%=?*=@@@%%%*)
4758 eval ac_cv_prog_make_${ac_make}_set=yes;;
4759 *)
4760 eval ac_cv_prog_make_${ac_make}_set=no;;
4761 esac
4762 rm -f conftest.make
4763 fi
4764 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4766 printf "%s\n" "yes" >&6; }
4767 SET_MAKE=
4768 else
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 printf "%s\n" "no" >&6; }
4771 SET_MAKE="MAKE=${MAKE-make}"
4772 fi
4773
4774 rm -rf .tst 2>/dev/null
4775 mkdir .tst 2>/dev/null
4776 if test -d .tst; then
4777 am__leading_dot=.
4778 else
4779 am__leading_dot=_
4780 fi
4781 rmdir .tst 2>/dev/null
4782
4783 DEPDIR="${am__leading_dot}deps"
4784
4785 ac_config_commands="$ac_config_commands depfiles"
4786
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4788 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4789 cat > confinc.mk << 'END'
4790 am__doit:
4791 @echo this is the am__doit target >confinc.out
4792 .PHONY: am__doit
4793 END
4794 am__include="#"
4795 am__quote=
4796 # BSD make does it like this.
4797 echo '.include "confinc.mk" # ignored' > confmf.BSD
4798 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4799 echo 'include confinc.mk # ignored' > confmf.GNU
4800 _am_result=no
4801 for s in GNU BSD; do
4802 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4803 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }
4807 case $?:`cat confinc.out 2>/dev/null` in #(
4808 '0:this is the am__doit target') :
4809 case $s in #(
4810 BSD) :
4811 am__include='.include' am__quote='"' ;; #(
4812 *) :
4813 am__include='include' am__quote='' ;;
4814 esac ;; #(
4815 *) :
4816 ;;
4817 esac
4818 if test "$am__include" != "#"; then
4819 _am_result="yes ($s style)"
4820 break
4821 fi
4822 done
4823 rm -f confinc.* confmf.*
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4825 printf "%s\n" "${_am_result}" >&6; }
4826
4827 # Check whether --enable-dependency-tracking was given.
4828 if test ${enable_dependency_tracking+y}
4829 then :
4830 enableval=$enable_dependency_tracking;
4831 fi
4832
4833 if test "x$enable_dependency_tracking" != xno; then
4834 am_depcomp="$ac_aux_dir/depcomp"
4835 AMDEPBACKSLASH='\'
4836 am__nodep='_no'
4837 fi
4838 if test "x$enable_dependency_tracking" != xno; then
4839 AMDEP_TRUE=
4840 AMDEP_FALSE='#'
4841 else
4842 AMDEP_TRUE='#'
4843 AMDEP_FALSE=
4844 fi
4845
4846
4847 # Check whether --enable-silent-rules was given.
4848 if test ${enable_silent_rules+y}
4849 then :
4850 enableval=$enable_silent_rules;
4851 fi
4852
4853 case $enable_silent_rules in # (((
4854 yes) AM_DEFAULT_VERBOSITY=0;;
4855 no) AM_DEFAULT_VERBOSITY=1;;
4856 *) AM_DEFAULT_VERBOSITY=1;;
4857 esac
4858 am_make=${MAKE-make}
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4860 printf %s "checking whether $am_make supports nested variables... " >&6; }
4861 if test ${am_cv_make_support_nested_variables+y}
4862 then :
4863 printf %s "(cached) " >&6
4864 else $as_nop
4865 if printf "%s\n" 'TRUE=$(BAR$(V))
4866 BAR0=false
4867 BAR1=true
4868 V=1
4869 am__doit:
4870 @$(TRUE)
4871 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4872 am_cv_make_support_nested_variables=yes
4873 else
4874 am_cv_make_support_nested_variables=no
4875 fi
4876 fi
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4878 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4879 if test $am_cv_make_support_nested_variables = yes; then
4880 AM_V='$(V)'
4881 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4882 else
4883 AM_V=$AM_DEFAULT_VERBOSITY
4884 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4885 fi
4886 AM_BACKSLASH='\'
4887
4888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4890 # is not polluted with repeated "-I."
4891 am__isrc=' -I$(srcdir)'
4892 # test to see if srcdir already configured
4893 if test -f $srcdir/config.status; then
4894 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4895 fi
4896 fi
4897
4898 # test whether we have cygpath
4899 if test -z "$CYGPATH_W"; then
4900 if (cygpath --version) >/dev/null 2>/dev/null; then
4901 CYGPATH_W='cygpath -w'
4902 else
4903 CYGPATH_W=echo
4904 fi
4905 fi
4906
4907
4908 # Define the identity of the package.
4909 PACKAGE='dopewars'
4910 VERSION='1.6.2'
4911
4912
4913 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4914
4915
4916 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4917
4918 # Some tools Automake needs.
4919
4920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4921
4922
4923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4924
4925
4926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4927
4928
4929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4930
4931
4932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4933
4934 # For better backward compatibility. To be removed once Automake 1.9.x
4935 # dies out for good. For more background, see:
4936 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4937 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4938 mkdir_p='$(MKDIR_P)'
4939
4940 # We need awk for the "check" target (and possibly the TAP driver). The
4941 # system "awk" is bad on some platforms.
4942 # Always define AMTAR for backward compatibility. Yes, it's still used
4943 # in the wild :-( We should find a proper way to deprecate it ...
4944 AMTAR='$${TAR-tar}'
4945
4946
4947 # We'll loop over all known methods to create a tar archive until one works.
4948 _am_tools='gnutar pax cpio none'
4949
4950 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4951
4952
4953
4954
4955
4956 depcc="$CC" am_compiler_list=
4957
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959 printf %s "checking dependency style of $depcc... " >&6; }
4960 if test ${am_cv_CC_dependencies_compiler_type+y}
4961 then :
4962 printf %s "(cached) " >&6
4963 else $as_nop
4964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4965 # We make a subdir and do the tests there. Otherwise we can end up
4966 # making bogus files that we don't know about and never remove. For
4967 # instance it was reported that on HP-UX the gcc test will end up
4968 # making a dummy file named 'D' -- because '-MD' means "put the output
4969 # in D".
4970 rm -rf conftest.dir
4971 mkdir conftest.dir
4972 # Copy depcomp to subdir because otherwise we won't find it if we're
4973 # using a relative directory.
4974 cp "$am_depcomp" conftest.dir
4975 cd conftest.dir
4976 # We will build objects and dependencies in a subdirectory because
4977 # it helps to detect inapplicable dependency modes. For instance
4978 # both Tru64's cc and ICC support -MD to output dependencies as a
4979 # side effect of compilation, but ICC will put the dependencies in
4980 # the current directory while Tru64 will put them in the object
4981 # directory.
4982 mkdir sub
4983
4984 am_cv_CC_dependencies_compiler_type=none
4985 if test "$am_compiler_list" = ""; then
4986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4987 fi
4988 am__universal=false
4989 case " $depcc " in #(
4990 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4991 esac
4992
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4997 #
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5009
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5020 ;;
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5028 fi
5029 ;;
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5036 ;;
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_CC_dependencies_compiler_type=$depmode
5058 break
5059 fi
5060 fi
5061 done
5062
5063 cd ..
5064 rm -rf conftest.dir
5065 else
5066 am_cv_CC_dependencies_compiler_type=none
5067 fi
5068
5069 fi
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5071 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5073
5074 if
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5077 am__fastdepCC_TRUE=
5078 am__fastdepCC_FALSE='#'
5079 else
5080 am__fastdepCC_TRUE='#'
5081 am__fastdepCC_FALSE=
5082 fi
5083
5084
5085 # Variables for tags utilities; see am/tags.am
5086 if test -z "$CTAGS"; then
5087 CTAGS=ctags
5088 fi
5089
5090 if test -z "$ETAGS"; then
5091 ETAGS=etags
5092 fi
5093
5094 if test -z "$CSCOPE"; then
5095 CSCOPE=cscope
5096 fi
5097
5098
5099
5100 # POSIX will say in a future version that running "rm -f" with no argument
5101 # is OK; and we want to be able to make that assumption in our Makefile
5102 # recipes. So use an aggressive probe to check that the usage we want is
5103 # actually supported "in the wild" to an acceptable degree.
5104 # See automake bug#10828.
5105 # To make any issue more visible, cause the running configure to be aborted
5106 # by default if the 'rm' program in use doesn't match our expectations; the
5107 # user can still override this though.
5108 if rm -f && rm -fr && rm -rf; then : OK; else
5109 cat >&2 <<'END'
5110 Oops!
5111
5112 Your 'rm' program seems unable to run without file operands specified
5113 on the command line, even when the '-f' option is present. This is contrary
5114 to the behaviour of most rm programs out there, and not conforming with
5115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5116
5117 Please tell [email protected] about your system, including the value
5118 of your $PATH and any error possibly output before this message. This
5119 can help us improve future automake versions.
5120
5121 END
5122 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5123 echo 'Configuration will proceed anyway, since you have set the' >&2
5124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5125 echo >&2
5126 else
5127 cat >&2 <<'END'
5128 Aborting the configuration process, to ensure you take notice of the issue.
5129
5130 You can download and install GNU coreutils to get an 'rm' implementation
5131 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5132
5133 If you want to complete the configuration process using your problematic
5134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5135 to "yes", and re-run configure.
5136
5137 END
5138 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5139 fi
5140 fi
5141
5142
5143 ac_config_headers="$ac_config_headers src/config.h"
5144
5145
5146
5147
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 printf %s "checking for $ac_word... " >&6; }
5158 if test ${ac_cv_prog_CC+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 if test -n "$CC"; then
5163 ac_cv_prog_CC="$CC" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 case $as_dir in #(((
5170 '') as_dir=./ ;;
5171 */) ;;
5172 *) as_dir=$as_dir/ ;;
5173 esac
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 CC=$ac_cv_prog_CC
5187 if test -n "$CC"; then
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5189 printf "%s\n" "$CC" >&6; }
5190 else
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 printf "%s\n" "no" >&6; }
5193 fi
5194
5195
5196 fi
5197 if test -z "$ac_cv_prog_CC"; then
5198 ac_ct_CC=$CC
5199 # Extract the first word of "gcc", so it can be a program name with args.
5200 set dummy gcc; ac_word=$2
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 printf %s "checking for $ac_word... " >&6; }
5203 if test ${ac_cv_prog_ac_ct_CC+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else $as_nop
5207 if test -n "$ac_ct_CC"; then
5208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 case $as_dir in #(((
5215 '') as_dir=./ ;;
5216 */) ;;
5217 *) as_dir=$as_dir/ ;;
5218 esac
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_CC="gcc"
5222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 fi
5230 fi
5231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5232 if test -n "$ac_ct_CC"; then
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5234 printf "%s\n" "$ac_ct_CC" >&6; }
5235 else
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 printf "%s\n" "no" >&6; }
5238 fi
5239
5240 if test "x$ac_ct_CC" = x; then
5241 CC=""
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 CC=$ac_ct_CC
5250 fi
5251 else
5252 CC="$ac_cv_prog_CC"
5253 fi
5254
5255 if test -z "$CC"; then
5256 if test -n "$ac_tool_prefix"; then
5257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5258 set dummy ${ac_tool_prefix}cc; ac_word=$2
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 printf %s "checking for $ac_word... " >&6; }
5261 if test ${ac_cv_prog_CC+y}
5262 then :
5263 printf %s "(cached) " >&6
5264 else $as_nop
5265 if test -n "$CC"; then
5266 ac_cv_prog_CC="$CC" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 case $as_dir in #(((
5273 '') as_dir=./ ;;
5274 */) ;;
5275 *) as_dir=$as_dir/ ;;
5276 esac
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_CC="${ac_tool_prefix}cc"
5280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 CC=$ac_cv_prog_CC
5290 if test -n "$CC"; then
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5292 printf "%s\n" "$CC" >&6; }
5293 else
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 printf "%s\n" "no" >&6; }
5296 fi
5297
5298
5299 fi
5300 fi
5301 if test -z "$CC"; then
5302 # Extract the first word of "cc", so it can be a program name with args.
5303 set dummy cc; ac_word=$2
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 printf %s "checking for $ac_word... " >&6; }
5306 if test ${ac_cv_prog_CC+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else $as_nop
5310 if test -n "$CC"; then
5311 ac_cv_prog_CC="$CC" # Let the user override the test.
5312 else
5313 ac_prog_rejected=no
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 case $as_dir in #(((
5319 '') as_dir=./ ;;
5320 */) ;;
5321 *) as_dir=$as_dir/ ;;
5322 esac
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5325 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5326 ac_prog_rejected=yes
5327 continue
5328 fi
5329 ac_cv_prog_CC="cc"
5330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 if test $ac_prog_rejected = yes; then
5338 # We found a bogon in the path, so make sure we never use it.
5339 set dummy $ac_cv_prog_CC
5340 shift
5341 if test $# != 0; then
5342 # We chose a different compiler from the bogus one.
5343 # However, it has the same basename, so the bogon will be chosen
5344 # first if we set CC to just the basename; use the full file name.
5345 shift
5346 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5347 fi
5348 fi
5349 fi
5350 fi
5351 CC=$ac_cv_prog_CC
5352 if test -n "$CC"; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5354 printf "%s\n" "$CC" >&6; }
5355 else
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5358 fi
5359
5360
5361 fi
5362 if test -z "$CC"; then
5363 if test -n "$ac_tool_prefix"; then
5364 for ac_prog in cl.exe
5365 do
5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 printf %s "checking for $ac_word... " >&6; }
5370 if test ${ac_cv_prog_CC+y}
5371 then :
5372 printf %s "(cached) " >&6
5373 else $as_nop
5374 if test -n "$CC"; then
5375 ac_cv_prog_CC="$CC" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 case $as_dir in #(((
5382 '') as_dir=./ ;;
5383 */) ;;
5384 *) as_dir=$as_dir/ ;;
5385 esac
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 CC=$ac_cv_prog_CC
5399 if test -n "$CC"; then
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5401 printf "%s\n" "$CC" >&6; }
5402 else
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405 fi
5406
5407
5408 test -n "$CC" && break
5409 done
5410 fi
5411 if test -z "$CC"; then
5412 ac_ct_CC=$CC
5413 for ac_prog in cl.exe
5414 do
5415 # Extract the first word of "$ac_prog", so it can be a program name with args.
5416 set dummy $ac_prog; ac_word=$2
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 printf %s "checking for $ac_word... " >&6; }
5419 if test ${ac_cv_prog_ac_ct_CC+y}
5420 then :
5421 printf %s "(cached) " >&6
5422 else $as_nop
5423 if test -n "$ac_ct_CC"; then
5424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 case $as_dir in #(((
5431 '') as_dir=./ ;;
5432 */) ;;
5433 *) as_dir=$as_dir/ ;;
5434 esac
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_ac_ct_CC="$ac_prog"
5438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5448 if test -n "$ac_ct_CC"; then
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5450 printf "%s\n" "$ac_ct_CC" >&6; }
5451 else
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 printf "%s\n" "no" >&6; }
5454 fi
5455
5456
5457 test -n "$ac_ct_CC" && break
5458 done
5459
5460 if test "x$ac_ct_CC" = x; then
5461 CC=""
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469 CC=$ac_ct_CC
5470 fi
5471 fi
5472
5473 fi
5474 if test -z "$CC"; then
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}clang; ac_word=$2
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 printf %s "checking for $ac_word... " >&6; }
5480 if test ${ac_cv_prog_CC+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else $as_nop
5484 if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490 IFS=$as_save_IFS
5491 case $as_dir in #(((
5492 '') as_dir=./ ;;
5493 */) ;;
5494 *) as_dir=$as_dir/ ;;
5495 esac
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_CC="${ac_tool_prefix}clang"
5499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 CC=$ac_cv_prog_CC
5509 if test -n "$CC"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5511 printf "%s\n" "$CC" >&6; }
5512 else
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5515 fi
5516
5517
5518 fi
5519 if test -z "$ac_cv_prog_CC"; then
5520 ac_ct_CC=$CC
5521 # Extract the first word of "clang", so it can be a program name with args.
5522 set dummy clang; ac_word=$2
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 printf %s "checking for $ac_word... " >&6; }
5525 if test ${ac_cv_prog_ac_ct_CC+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 if test -n "$ac_ct_CC"; then
5530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535 IFS=$as_save_IFS
5536 case $as_dir in #(((
5537 '') as_dir=./ ;;
5538 */) ;;
5539 *) as_dir=$as_dir/ ;;
5540 esac
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_ac_ct_CC="clang"
5544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5554 if test -n "$ac_ct_CC"; then
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5556 printf "%s\n" "$ac_ct_CC" >&6; }
5557 else
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 printf "%s\n" "no" >&6; }
5560 fi
5561
5562 if test "x$ac_ct_CC" = x; then
5563 CC=""
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 CC=$ac_ct_CC
5572 fi
5573 else
5574 CC="$ac_cv_prog_CC"
5575 fi
5576
5577 fi
5578
5579
5580 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5582 as_fn_error $? "no acceptable C compiler found in \$PATH
5583 See \`config.log' for more details" "$LINENO" 5; }
5584
5585 # Provide some information about the compiler.
5586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5587 set X $ac_compile
5588 ac_compiler=$2
5589 for ac_option in --version -v -V -qversion -version; do
5590 { { ac_try="$ac_compiler $ac_option >&5"
5591 case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5596 printf "%s\n" "$ac_try_echo"; } >&5
5597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5598 ac_status=$?
5599 if test -s conftest.err; then
5600 sed '10a\
5601 ... rest of stderr output deleted ...
5602 10q' conftest.err >conftest.er1
5603 cat conftest.er1 >&5
5604 fi
5605 rm -f conftest.er1 conftest.err
5606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607 test $ac_status = 0; }
5608 done
5609
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5611 printf %s "checking whether the compiler supports GNU C... " >&6; }
5612 if test ${ac_cv_c_compiler_gnu+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else $as_nop
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618
5619 int
5620 main (void)
5621 {
5622 #ifndef __GNUC__
5623 choke me
5624 #endif
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"
5631 then :
5632 ac_compiler_gnu=yes
5633 else $as_nop
5634 ac_compiler_gnu=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5638
5639 fi
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5641 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
5644 if test $ac_compiler_gnu = yes; then
5645 GCC=yes
5646 else
5647 GCC=
5648 fi
5649 ac_test_CFLAGS=${CFLAGS+y}
5650 ac_save_CFLAGS=$CFLAGS
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5652 printf %s "checking whether $CC accepts -g... " >&6; }
5653 if test ${ac_cv_prog_cc_g+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else $as_nop
5657 ac_save_c_werror_flag=$ac_c_werror_flag
5658 ac_c_werror_flag=yes
5659 ac_cv_prog_cc_g=no
5660 CFLAGS="-g"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663
5664 int
5665 main (void)
5666 {
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"
5673 then :
5674 ac_cv_prog_cc_g=yes
5675 else $as_nop
5676 CFLAGS=""
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679
5680 int
5681 main (void)
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"
5689 then :
5690
5691 else $as_nop
5692 ac_c_werror_flag=$ac_save_c_werror_flag
5693 CFLAGS="-g"
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696
5697 int
5698 main (void)
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"
5706 then :
5707 ac_cv_prog_cc_g=yes
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5714 ac_c_werror_flag=$ac_save_c_werror_flag
5715 fi
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5717 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5718 if test $ac_test_CFLAGS; then
5719 CFLAGS=$ac_save_CFLAGS
5720 elif test $ac_cv_prog_cc_g = yes; then
5721 if test "$GCC" = yes; then
5722 CFLAGS="-g -O2"
5723 else
5724 CFLAGS="-g"
5725 fi
5726 else
5727 if test "$GCC" = yes; then
5728 CFLAGS="-O2"
5729 else
5730 CFLAGS=
5731 fi
5732 fi
5733 ac_prog_cc_stdc=no
5734 if test x$ac_prog_cc_stdc = xno
5735 then :
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5737 printf %s "checking for $CC option to enable C11 features... " >&6; }
5738 if test ${ac_cv_prog_cc_c11+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 ac_cv_prog_cc_c11=no
5743 ac_save_CC=$CC
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 $ac_c_conftest_c11_program
5747 _ACEOF
5748 for ac_arg in '' -std=gnu11
5749 do
5750 CC="$ac_save_CC $ac_arg"
5751 if ac_fn_c_try_compile "$LINENO"
5752 then :
5753 ac_cv_prog_cc_c11=$ac_arg
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.beam
5756 test "x$ac_cv_prog_cc_c11" != "xno" && break
5757 done
5758 rm -f conftest.$ac_ext
5759 CC=$ac_save_CC
5760 fi
5761
5762 if test "x$ac_cv_prog_cc_c11" = xno
5763 then :
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5765 printf "%s\n" "unsupported" >&6; }
5766 else $as_nop
5767 if test "x$ac_cv_prog_cc_c11" = x
5768 then :
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5770 printf "%s\n" "none needed" >&6; }
5771 else $as_nop
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5773 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5774 CC="$CC $ac_cv_prog_cc_c11"
5775 fi
5776 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5777 ac_prog_cc_stdc=c11
5778 fi
5779 fi
5780 if test x$ac_prog_cc_stdc = xno
5781 then :
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5783 printf %s "checking for $CC option to enable C99 features... " >&6; }
5784 if test ${ac_cv_prog_cc_c99+y}
5785 then :
5786 printf %s "(cached) " >&6
5787 else $as_nop
5788 ac_cv_prog_cc_c99=no
5789 ac_save_CC=$CC
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 $ac_c_conftest_c99_program
5793 _ACEOF
5794 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5795 do
5796 CC="$ac_save_CC $ac_arg"
5797 if ac_fn_c_try_compile "$LINENO"
5798 then :
5799 ac_cv_prog_cc_c99=$ac_arg
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.beam
5802 test "x$ac_cv_prog_cc_c99" != "xno" && break
5803 done
5804 rm -f conftest.$ac_ext
5805 CC=$ac_save_CC
5806 fi
5807
5808 if test "x$ac_cv_prog_cc_c99" = xno
5809 then :
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5811 printf "%s\n" "unsupported" >&6; }
5812 else $as_nop
5813 if test "x$ac_cv_prog_cc_c99" = x
5814 then :
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5816 printf "%s\n" "none needed" >&6; }
5817 else $as_nop
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5819 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5820 CC="$CC $ac_cv_prog_cc_c99"
5821 fi
5822 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5823 ac_prog_cc_stdc=c99
5824 fi
5825 fi
5826 if test x$ac_prog_cc_stdc = xno
5827 then :
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5829 printf %s "checking for $CC option to enable C89 features... " >&6; }
5830 if test ${ac_cv_prog_cc_c89+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 ac_cv_prog_cc_c89=no
5835 ac_save_CC=$CC
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 $ac_c_conftest_c89_program
5839 _ACEOF
5840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5841 do
5842 CC="$ac_save_CC $ac_arg"
5843 if ac_fn_c_try_compile "$LINENO"
5844 then :
5845 ac_cv_prog_cc_c89=$ac_arg
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam
5848 test "x$ac_cv_prog_cc_c89" != "xno" && break
5849 done
5850 rm -f conftest.$ac_ext
5851 CC=$ac_save_CC
5852 fi
5853
5854 if test "x$ac_cv_prog_cc_c89" = xno
5855 then :
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5857 printf "%s\n" "unsupported" >&6; }
5858 else $as_nop
5859 if test "x$ac_cv_prog_cc_c89" = x
5860 then :
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5862 printf "%s\n" "none needed" >&6; }
5863 else $as_nop
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5865 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5866 CC="$CC $ac_cv_prog_cc_c89"
5867 fi
5868 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5869 ac_prog_cc_stdc=c89
5870 fi
5871 fi
5872
5873 ac_ext=c
5874 ac_cpp='$CPP $CPPFLAGS'
5875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878
5879
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5886 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5887 if test ${am_cv_prog_cc_c_o+y}
5888 then :
5889 printf %s "(cached) " >&6
5890 else $as_nop
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893
5894 int
5895 main (void)
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 # Make sure it works both with $CC and with simple cc.
5903 # Following AC_PROG_CC_C_O, we do the test twice because some
5904 # compilers refuse to overwrite an existing .o file with -o,
5905 # though they will create one.
5906 am_cv_prog_cc_c_o=yes
5907 for am_i in 1 2; do
5908 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5909 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } \
5913 && test -f conftest2.$ac_objext; then
5914 : OK
5915 else
5916 am_cv_prog_cc_c_o=no
5917 break
5918 fi
5919 done
5920 rm -f core conftest*
5921 unset am_i
5922 fi
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5924 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5925 if test "$am_cv_prog_cc_c_o" != yes; then
5926 # Losing compiler, so override with the script.
5927 # FIXME: It is wrong to rewrite CC.
5928 # But if we don't then we get into trouble of one sort or another.
5929 # A longer-term fix would be to have automake use am__CC in this case,
5930 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5931 CC="$am_aux_dir/compile $CC"
5932 fi
5933 ac_ext=c
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5941 printf %s "checking for library containing strerror... " >&6; }
5942 if test ${ac_cv_search_strerror+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else $as_nop
5946 ac_func_search_save_LIBS=$LIBS
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5953 char strerror ();
5954 int
5955 main (void)
5956 {
5957 return strerror ();
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 for ac_lib in '' cposix
5963 do
5964 if test -z "$ac_lib"; then
5965 ac_res="none required"
5966 else
5967 ac_res=-l$ac_lib
5968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5969 fi
5970 if ac_fn_c_try_link "$LINENO"
5971 then :
5972 ac_cv_search_strerror=$ac_res
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5975 conftest$ac_exeext
5976 if test ${ac_cv_search_strerror+y}
5977 then :
5978 break
5979 fi
5980 done
5981 if test ${ac_cv_search_strerror+y}
5982 then :
5983
5984 else $as_nop
5985 ac_cv_search_strerror=no
5986 fi
5987 rm conftest.$ac_ext
5988 LIBS=$ac_func_search_save_LIBS
5989 fi
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5991 printf "%s\n" "$ac_cv_search_strerror" >&6; }
5992 ac_res=$ac_cv_search_strerror
5993 if test "$ac_res" != no
5994 then :
5995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5996
5997 fi
5998
5999
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6001 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6002 set x ${MAKE-make}
6003 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6004 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 cat >conftest.make <<\_ACEOF
6009 SHELL = /bin/sh
6010 all:
6011 @echo '@@@%%%=$(MAKE)=@@@%%%'
6012 _ACEOF
6013 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6014 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6015 *@@@%%%=?*=@@@%%%*)
6016 eval ac_cv_prog_make_${ac_make}_set=yes;;
6017 *)
6018 eval ac_cv_prog_make_${ac_make}_set=no;;
6019 esac
6020 rm -f conftest.make
6021 fi
6022 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6024 printf "%s\n" "yes" >&6; }
6025 SET_MAKE=
6026 else
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 printf "%s\n" "no" >&6; }
6029 SET_MAKE="MAKE=${MAKE-make}"
6030 fi
6031
6032 case `pwd` in
6033 *\ * | *\ *)
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6035 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6036 esac
6037
6038
6039
6040 macro_version='2.4.2'
6041 macro_revision='1.3337'
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 ltmain="$ac_aux_dir/ltmain.sh"
6057
6058 # Backslashify metacharacters that are still active within
6059 # double-quoted strings.
6060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6061
6062 # Same as above, but do not quote variable references.
6063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6064
6065 # Sed substitution to delay expansion of an escaped shell variable in a
6066 # double_quote_subst'ed string.
6067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6068
6069 # Sed substitution to delay expansion of an escaped single quote.
6070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6071
6072 # Sed substitution to avoid accidental globbing in evaled expressions
6073 no_glob_subst='s/\*/\\\*/g'
6074
6075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6078
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6080 printf %s "checking how to print strings... " >&6; }
6081 # Test print first, because it will be a builtin if present.
6082 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6083 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6084 ECHO='print -r --'
6085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6086 ECHO='printf %s\n'
6087 else
6088 # Use this function as a fallback that always works.
6089 func_fallback_echo ()
6090 {
6091 eval 'cat <<_LTECHO_EOF
6092 $1
6093 _LTECHO_EOF'
6094 }
6095 ECHO='func_fallback_echo'
6096 fi
6097
6098 # func_echo_all arg...
6099 # Invoke $ECHO with all args, space-separated.
6100 func_echo_all ()
6101 {
6102 $ECHO ""
6103 }
6104
6105 case "$ECHO" in
6106 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6107 printf "%s\n" "printf" >&6; } ;;
6108 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6109 printf "%s\n" "print -r" >&6; } ;;
6110 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6111 printf "%s\n" "cat" >&6; } ;;
6112 esac
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6128 printf %s "checking for a sed that does not truncate output... " >&6; }
6129 if test ${ac_cv_path_SED+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6134 for ac_i in 1 2 3 4 5 6 7; do
6135 ac_script="$ac_script$as_nl$ac_script"
6136 done
6137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6138 { ac_script=; unset ac_script;}
6139 if test -z "$SED"; then
6140 ac_path_SED_found=false
6141 # Loop through the user's path and test for each of PROGNAME-LIST
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145 IFS=$as_save_IFS
6146 case $as_dir in #(((
6147 '') as_dir=./ ;;
6148 */) ;;
6149 *) as_dir=$as_dir/ ;;
6150 esac
6151 for ac_prog in sed gsed
6152 do
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6155 as_fn_executable_p "$ac_path_SED" || continue
6156 # Check for GNU ac_path_SED and select it if it is found.
6157 # Check for GNU $ac_path_SED
6158 case `"$ac_path_SED" --version 2>&1` in
6159 *GNU*)
6160 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6161 *)
6162 ac_count=0
6163 printf %s 0123456789 >"conftest.in"
6164 while :
6165 do
6166 cat "conftest.in" "conftest.in" >"conftest.tmp"
6167 mv "conftest.tmp" "conftest.in"
6168 cp "conftest.in" "conftest.nl"
6169 printf "%s\n" '' >> "conftest.nl"
6170 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6172 as_fn_arith $ac_count + 1 && ac_count=$as_val
6173 if test $ac_count -gt ${ac_path_SED_max-0}; then
6174 # Best one so far, save it but keep looking for a better one
6175 ac_cv_path_SED="$ac_path_SED"
6176 ac_path_SED_max=$ac_count
6177 fi
6178 # 10*(2^10) chars as input seems more than enough
6179 test $ac_count -gt 10 && break
6180 done
6181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6182 esac
6183
6184 $ac_path_SED_found && break 3
6185 done
6186 done
6187 done
6188 IFS=$as_save_IFS
6189 if test -z "$ac_cv_path_SED"; then
6190 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6191 fi
6192 else
6193 ac_cv_path_SED=$SED
6194 fi
6195
6196 fi
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6198 printf "%s\n" "$ac_cv_path_SED" >&6; }
6199 SED="$ac_cv_path_SED"
6200 rm -f conftest.sed
6201
6202 test -z "$SED" && SED=sed
6203 Xsed="$SED -e 1s/^X//"
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6216 printf %s "checking for grep that handles long lines and -e... " >&6; }
6217 if test ${ac_cv_path_GREP+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else $as_nop
6221 if test -z "$GREP"; then
6222 ac_path_GREP_found=false
6223 # Loop through the user's path and test for each of PROGNAME-LIST
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6226 do
6227 IFS=$as_save_IFS
6228 case $as_dir in #(((
6229 '') as_dir=./ ;;
6230 */) ;;
6231 *) as_dir=$as_dir/ ;;
6232 esac
6233 for ac_prog in grep ggrep
6234 do
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6237 as_fn_executable_p "$ac_path_GREP" || continue
6238 # Check for GNU ac_path_GREP and select it if it is found.
6239 # Check for GNU $ac_path_GREP
6240 case `"$ac_path_GREP" --version 2>&1` in
6241 *GNU*)
6242 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6243 *)
6244 ac_count=0
6245 printf %s 0123456789 >"conftest.in"
6246 while :
6247 do
6248 cat "conftest.in" "conftest.in" >"conftest.tmp"
6249 mv "conftest.tmp" "conftest.in"
6250 cp "conftest.in" "conftest.nl"
6251 printf "%s\n" 'GREP' >> "conftest.nl"
6252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254 as_fn_arith $ac_count + 1 && ac_count=$as_val
6255 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6256 # Best one so far, save it but keep looking for a better one
6257 ac_cv_path_GREP="$ac_path_GREP"
6258 ac_path_GREP_max=$ac_count
6259 fi
6260 # 10*(2^10) chars as input seems more than enough
6261 test $ac_count -gt 10 && break
6262 done
6263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6264 esac
6265
6266 $ac_path_GREP_found && break 3
6267 done
6268 done
6269 done
6270 IFS=$as_save_IFS
6271 if test -z "$ac_cv_path_GREP"; then
6272 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6273 fi
6274 else
6275 ac_cv_path_GREP=$GREP
6276 fi
6277
6278 fi
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6280 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6281 GREP="$ac_cv_path_GREP"
6282
6283
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6285 printf %s "checking for egrep... " >&6; }
6286 if test ${ac_cv_path_EGREP+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else $as_nop
6290 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6291 then ac_cv_path_EGREP="$GREP -E"
6292 else
6293 if test -z "$EGREP"; then
6294 ac_path_EGREP_found=false
6295 # Loop through the user's path and test for each of PROGNAME-LIST
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6298 do
6299 IFS=$as_save_IFS
6300 case $as_dir in #(((
6301 '') as_dir=./ ;;
6302 */) ;;
6303 *) as_dir=$as_dir/ ;;
6304 esac
6305 for ac_prog in egrep
6306 do
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6309 as_fn_executable_p "$ac_path_EGREP" || continue
6310 # Check for GNU ac_path_EGREP and select it if it is found.
6311 # Check for GNU $ac_path_EGREP
6312 case `"$ac_path_EGREP" --version 2>&1` in
6313 *GNU*)
6314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6315 *)
6316 ac_count=0
6317 printf %s 0123456789 >"conftest.in"
6318 while :
6319 do
6320 cat "conftest.in" "conftest.in" >"conftest.tmp"
6321 mv "conftest.tmp" "conftest.in"
6322 cp "conftest.in" "conftest.nl"
6323 printf "%s\n" 'EGREP' >> "conftest.nl"
6324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6326 as_fn_arith $ac_count + 1 && ac_count=$as_val
6327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6328 # Best one so far, save it but keep looking for a better one
6329 ac_cv_path_EGREP="$ac_path_EGREP"
6330 ac_path_EGREP_max=$ac_count
6331 fi
6332 # 10*(2^10) chars as input seems more than enough
6333 test $ac_count -gt 10 && break
6334 done
6335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6336 esac
6337
6338 $ac_path_EGREP_found && break 3
6339 done
6340 done
6341 done
6342 IFS=$as_save_IFS
6343 if test -z "$ac_cv_path_EGREP"; then
6344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6345 fi
6346 else
6347 ac_cv_path_EGREP=$EGREP
6348 fi
6349
6350 fi
6351 fi
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6353 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6354 EGREP="$ac_cv_path_EGREP"
6355
6356
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6358 printf %s "checking for fgrep... " >&6; }
6359 if test ${ac_cv_path_FGREP+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else $as_nop
6363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6364 then ac_cv_path_FGREP="$GREP -F"
6365 else
6366 if test -z "$FGREP"; then
6367 ac_path_FGREP_found=false
6368 # Loop through the user's path and test for each of PROGNAME-LIST
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6371 do
6372 IFS=$as_save_IFS
6373 case $as_dir in #(((
6374 '') as_dir=./ ;;
6375 */) ;;
6376 *) as_dir=$as_dir/ ;;
6377 esac
6378 for ac_prog in fgrep
6379 do
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6382 as_fn_executable_p "$ac_path_FGREP" || continue
6383 # Check for GNU ac_path_FGREP and select it if it is found.
6384 # Check for GNU $ac_path_FGREP
6385 case `"$ac_path_FGREP" --version 2>&1` in
6386 *GNU*)
6387 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6388 *)
6389 ac_count=0
6390 printf %s 0123456789 >"conftest.in"
6391 while :
6392 do
6393 cat "conftest.in" "conftest.in" >"conftest.tmp"
6394 mv "conftest.tmp" "conftest.in"
6395 cp "conftest.in" "conftest.nl"
6396 printf "%s\n" 'FGREP' >> "conftest.nl"
6397 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6399 as_fn_arith $ac_count + 1 && ac_count=$as_val
6400 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6401 # Best one so far, save it but keep looking for a better one
6402 ac_cv_path_FGREP="$ac_path_FGREP"
6403 ac_path_FGREP_max=$ac_count
6404 fi
6405 # 10*(2^10) chars as input seems more than enough
6406 test $ac_count -gt 10 && break
6407 done
6408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6409 esac
6410
6411 $ac_path_FGREP_found && break 3
6412 done
6413 done
6414 done
6415 IFS=$as_save_IFS
6416 if test -z "$ac_cv_path_FGREP"; then
6417 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6418 fi
6419 else
6420 ac_cv_path_FGREP=$FGREP
6421 fi
6422
6423 fi
6424 fi
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6426 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6427 FGREP="$ac_cv_path_FGREP"
6428
6429
6430 test -z "$GREP" && GREP=grep
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 # Check whether --with-gnu-ld was given.
6451 if test ${with_gnu_ld+y}
6452 then :
6453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6454 else $as_nop
6455 with_gnu_ld=no
6456 fi
6457
6458 ac_prog=ld
6459 if test "$GCC" = yes; then
6460 # Check if gcc -print-prog-name=ld gives a path.
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6462 printf %s "checking for ld used by $CC... " >&6; }
6463 case $host in
6464 *-*-mingw*)
6465 # gcc leaves a trailing carriage return which upsets mingw
6466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6467 *)
6468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6469 esac
6470 case $ac_prog in
6471 # Accept absolute paths.
6472 [\\/]* | ?:[\\/]*)
6473 re_direlt='/[^/][^/]*/\.\./'
6474 # Canonicalize the pathname of ld
6475 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6476 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6477 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6478 done
6479 test -z "$LD" && LD="$ac_prog"
6480 ;;
6481 "")
6482 # If it fails, then pretend we aren't using GCC.
6483 ac_prog=ld
6484 ;;
6485 *)
6486 # If it is relative, then search for the first ld in PATH.
6487 with_gnu_ld=unknown
6488 ;;
6489 esac
6490 elif test "$with_gnu_ld" = yes; then
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6492 printf %s "checking for GNU ld... " >&6; }
6493 else
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6495 printf %s "checking for non-GNU ld... " >&6; }
6496 fi
6497 if test ${lt_cv_path_LD+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else $as_nop
6501 if test -z "$LD"; then
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 for ac_dir in $PATH; do
6504 IFS="$lt_save_ifs"
6505 test -z "$ac_dir" && ac_dir=.
6506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6507 lt_cv_path_LD="$ac_dir/$ac_prog"
6508 # Check to see if the program is GNU ld. I'd rather use --version,
6509 # but apparently some variants of GNU ld only accept -v.
6510 # Break only if it was the GNU/non-GNU ld that we prefer.
6511 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6512 *GNU* | *'with BFD'*)
6513 test "$with_gnu_ld" != no && break
6514 ;;
6515 *)
6516 test "$with_gnu_ld" != yes && break
6517 ;;
6518 esac
6519 fi
6520 done
6521 IFS="$lt_save_ifs"
6522 else
6523 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6524 fi
6525 fi
6526
6527 LD="$lt_cv_path_LD"
6528 if test -n "$LD"; then
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6530 printf "%s\n" "$LD" >&6; }
6531 else
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 printf "%s\n" "no" >&6; }
6534 fi
6535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6537 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6538 if test ${lt_cv_prog_gnu_ld+y}
6539 then :
6540 printf %s "(cached) " >&6
6541 else $as_nop
6542 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6543 case `$LD -v 2>&1 </dev/null` in
6544 *GNU* | *'with BFD'*)
6545 lt_cv_prog_gnu_ld=yes
6546 ;;
6547 *)
6548 lt_cv_prog_gnu_ld=no
6549 ;;
6550 esac
6551 fi
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6553 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6554 with_gnu_ld=$lt_cv_prog_gnu_ld
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6565 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6566 if test ${lt_cv_path_NM+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else $as_nop
6570 if test -n "$NM"; then
6571 # Let the user override the test.
6572 lt_cv_path_NM="$NM"
6573 else
6574 lt_nm_to_check="${ac_tool_prefix}nm"
6575 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6576 lt_nm_to_check="$lt_nm_to_check nm"
6577 fi
6578 for lt_tmp_nm in $lt_nm_to_check; do
6579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6580 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6581 IFS="$lt_save_ifs"
6582 test -z "$ac_dir" && ac_dir=.
6583 tmp_nm="$ac_dir/$lt_tmp_nm"
6584 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6585 # Check to see if the nm accepts a BSD-compat flag.
6586 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6587 # nm: unknown option "B" ignored
6588 # Tru64's nm complains that /dev/null is an invalid object file
6589 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6590 */dev/null* | *'Invalid file or object type'*)
6591 lt_cv_path_NM="$tmp_nm -B"
6592 break
6593 ;;
6594 *)
6595 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6596 */dev/null*)
6597 lt_cv_path_NM="$tmp_nm -p"
6598 break
6599 ;;
6600 *)
6601 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6602 continue # so that we can try to find one that supports BSD flags
6603 ;;
6604 esac
6605 ;;
6606 esac
6607 fi
6608 done
6609 IFS="$lt_save_ifs"
6610 done
6611 : ${lt_cv_path_NM=no}
6612 fi
6613 fi
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6615 printf "%s\n" "$lt_cv_path_NM" >&6; }
6616 if test "$lt_cv_path_NM" != "no"; then
6617 NM="$lt_cv_path_NM"
6618 else
6619 # Didn't find any BSD compatible name lister, look for dumpbin.
6620 if test -n "$DUMPBIN"; then :
6621 # Let the user override the test.
6622 else
6623 if test -n "$ac_tool_prefix"; then
6624 for ac_prog in dumpbin "link -dump"
6625 do
6626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 printf %s "checking for $ac_word... " >&6; }
6630 if test ${ac_cv_prog_DUMPBIN+y}
6631 then :
6632 printf %s "(cached) " >&6
6633 else $as_nop
6634 if test -n "$DUMPBIN"; then
6635 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 case $as_dir in #(((
6642 '') as_dir=./ ;;
6643 */) ;;
6644 *) as_dir=$as_dir/ ;;
6645 esac
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 DUMPBIN=$ac_cv_prog_DUMPBIN
6659 if test -n "$DUMPBIN"; then
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6661 printf "%s\n" "$DUMPBIN" >&6; }
6662 else
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 printf "%s\n" "no" >&6; }
6665 fi
6666
6667
6668 test -n "$DUMPBIN" && break
6669 done
6670 fi
6671 if test -z "$DUMPBIN"; then
6672 ac_ct_DUMPBIN=$DUMPBIN
6673 for ac_prog in dumpbin "link -dump"
6674 do
6675 # Extract the first word of "$ac_prog", so it can be a program name with args.
6676 set dummy $ac_prog; ac_word=$2
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 printf %s "checking for $ac_word... " >&6; }
6679 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6680 then :
6681 printf %s "(cached) " >&6
6682 else $as_nop
6683 if test -n "$ac_ct_DUMPBIN"; then
6684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 case $as_dir in #(((
6691 '') as_dir=./ ;;
6692 */) ;;
6693 *) as_dir=$as_dir/ ;;
6694 esac
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6708 if test -n "$ac_ct_DUMPBIN"; then
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6710 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6711 else
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6714 fi
6715
6716
6717 test -n "$ac_ct_DUMPBIN" && break
6718 done
6719
6720 if test "x$ac_ct_DUMPBIN" = x; then
6721 DUMPBIN=":"
6722 else
6723 case $cross_compiling:$ac_tool_warned in
6724 yes:)
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729 DUMPBIN=$ac_ct_DUMPBIN
6730 fi
6731 fi
6732
6733 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6734 *COFF*)
6735 DUMPBIN="$DUMPBIN -symbols"
6736 ;;
6737 *)
6738 DUMPBIN=:
6739 ;;
6740 esac
6741 fi
6742
6743 if test "$DUMPBIN" != ":"; then
6744 NM="$DUMPBIN"
6745 fi
6746 fi
6747 test -z "$NM" && NM=nm
6748
6749
6750
6751
6752
6753
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6755 printf %s "checking the name lister ($NM) interface... " >&6; }
6756 if test ${lt_cv_nm_interface+y}
6757 then :
6758 printf %s "(cached) " >&6
6759 else $as_nop
6760 lt_cv_nm_interface="BSD nm"
6761 echo "int some_variable = 0;" > conftest.$ac_ext
6762 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6763 (eval "$ac_compile" 2>conftest.err)
6764 cat conftest.err >&5
6765 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6767 cat conftest.err >&5
6768 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6769 cat conftest.out >&5
6770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6771 lt_cv_nm_interface="MS dumpbin"
6772 fi
6773 rm -f conftest*
6774 fi
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6776 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6777
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6779 printf %s "checking whether ln -s works... " >&6; }
6780 LN_S=$as_ln_s
6781 if test "$LN_S" = "ln -s"; then
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6783 printf "%s\n" "yes" >&6; }
6784 else
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6786 printf "%s\n" "no, using $LN_S" >&6; }
6787 fi
6788
6789 # find the maximum length of command line arguments
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6791 printf %s "checking the maximum length of command line arguments... " >&6; }
6792 if test ${lt_cv_sys_max_cmd_len+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else $as_nop
6796 i=0
6797 teststring="ABCD"
6798
6799 case $build_os in
6800 msdosdjgpp*)
6801 # On DJGPP, this test can blow up pretty badly due to problems in libc
6802 # (any single argument exceeding 2000 bytes causes a buffer overrun
6803 # during glob expansion). Even if it were fixed, the result of this
6804 # check would be larger than it should be.
6805 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6806 ;;
6807
6808 gnu*)
6809 # Under GNU Hurd, this test is not required because there is
6810 # no limit to the length of command line arguments.
6811 # Libtool will interpret -1 as no limit whatsoever
6812 lt_cv_sys_max_cmd_len=-1;
6813 ;;
6814
6815 cygwin* | mingw* | cegcc*)
6816 # On Win9x/ME, this test blows up -- it succeeds, but takes
6817 # about 5 minutes as the teststring grows exponentially.
6818 # Worse, since 9x/ME are not pre-emptively multitasking,
6819 # you end up with a "frozen" computer, even though with patience
6820 # the test eventually succeeds (with a max line length of 256k).
6821 # Instead, let's just punt: use the minimum linelength reported by
6822 # all of the supported platforms: 8192 (on NT/2K/XP).
6823 lt_cv_sys_max_cmd_len=8192;
6824 ;;
6825
6826 mint*)
6827 # On MiNT this can take a long time and run out of memory.
6828 lt_cv_sys_max_cmd_len=8192;
6829 ;;
6830
6831 amigaos*)
6832 # On AmigaOS with pdksh, this test takes hours, literally.
6833 # So we just punt and use a minimum line length of 8192.
6834 lt_cv_sys_max_cmd_len=8192;
6835 ;;
6836
6837 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6838 # This has been around since 386BSD, at least. Likely further.
6839 if test -x /sbin/sysctl; then
6840 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6841 elif test -x /usr/sbin/sysctl; then
6842 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6843 else
6844 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6845 fi
6846 # And add a safety zone
6847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6849 ;;
6850
6851 interix*)
6852 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6853 lt_cv_sys_max_cmd_len=196608
6854 ;;
6855
6856 os2*)
6857 # The test takes a long time on OS/2.
6858 lt_cv_sys_max_cmd_len=8192
6859 ;;
6860
6861 osf*)
6862 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6863 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6864 # nice to cause kernel panics so lets avoid the loop below.
6865 # First set a reasonable default.
6866 lt_cv_sys_max_cmd_len=16384
6867 #
6868 if test -x /sbin/sysconfig; then
6869 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6870 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6871 esac
6872 fi
6873 ;;
6874 sco3.2v5*)
6875 lt_cv_sys_max_cmd_len=102400
6876 ;;
6877 sysv5* | sco5v6* | sysv4.2uw2*)
6878 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6879 if test -n "$kargmax"; then
6880 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6881 else
6882 lt_cv_sys_max_cmd_len=32768
6883 fi
6884 ;;
6885 *)
6886 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6887 if test -n "$lt_cv_sys_max_cmd_len"; then
6888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6890 else
6891 # Make teststring a little bigger before we do anything with it.
6892 # a 1K string should be a reasonable start.
6893 for i in 1 2 3 4 5 6 7 8 ; do
6894 teststring=$teststring$teststring
6895 done
6896 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6897 # If test is not a shell built-in, we'll probably end up computing a
6898 # maximum length that is only half of the actual maximum length, but
6899 # we can't tell.
6900 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6901 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6902 test $i != 17 # 1/2 MB should be enough
6903 do
6904 i=`expr $i + 1`
6905 teststring=$teststring$teststring
6906 done
6907 # Only check the string length outside the loop.
6908 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6909 teststring=
6910 # Add a significant safety factor because C++ compilers can tack on
6911 # massive amounts of additional arguments before passing them to the
6912 # linker. It appears as though 1/2 is a usable value.
6913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6914 fi
6915 ;;
6916 esac
6917
6918 fi
6919
6920 if test -n $lt_cv_sys_max_cmd_len ; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6922 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6923 else
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6925 printf "%s\n" "none" >&6; }
6926 fi
6927 max_cmd_len=$lt_cv_sys_max_cmd_len
6928
6929
6930
6931
6932
6933
6934 : ${CP="cp -f"}
6935 : ${MV="mv -f"}
6936 : ${RM="rm -f"}
6937
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6939 printf %s "checking whether the shell understands some XSI constructs... " >&6; }
6940 # Try some XSI features
6941 xsi_shell=no
6942 ( _lt_dummy="a/b/c"
6943 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6944 = c,a/b,b/c, \
6945 && eval 'test $(( 1 + 1 )) -eq 2 \
6946 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6947 && xsi_shell=yes
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6949 printf "%s\n" "$xsi_shell" >&6; }
6950
6951
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6953 printf %s "checking whether the shell understands \"+=\"... " >&6; }
6954 lt_shell_append=no
6955 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6956 >/dev/null 2>&1 \
6957 && lt_shell_append=yes
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6959 printf "%s\n" "$lt_shell_append" >&6; }
6960
6961
6962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6963 lt_unset=unset
6964 else
6965 lt_unset=false
6966 fi
6967
6968
6969
6970
6971
6972 # test EBCDIC or ASCII
6973 case `echo X|tr X '\101'` in
6974 A) # ASCII based system
6975 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6976 lt_SP2NL='tr \040 \012'
6977 lt_NL2SP='tr \015\012 \040\040'
6978 ;;
6979 *) # EBCDIC based system
6980 lt_SP2NL='tr \100 \n'
6981 lt_NL2SP='tr \r\n \100\100'
6982 ;;
6983 esac
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6994 printf %s "checking how to convert $build file names to $host format... " >&6; }
6995 if test ${lt_cv_to_host_file_cmd+y}
6996 then :
6997 printf %s "(cached) " >&6
6998 else $as_nop
6999 case $host in
7000 *-*-mingw* )
7001 case $build in
7002 *-*-mingw* ) # actually msys
7003 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7004 ;;
7005 *-*-cygwin* )
7006 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7007 ;;
7008 * ) # otherwise, assume *nix
7009 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7010 ;;
7011 esac
7012 ;;
7013 *-*-cygwin* )
7014 case $build in
7015 *-*-mingw* ) # actually msys
7016 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7017 ;;
7018 *-*-cygwin* )
7019 lt_cv_to_host_file_cmd=func_convert_file_noop
7020 ;;
7021 * ) # otherwise, assume *nix
7022 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7023 ;;
7024 esac
7025 ;;
7026 * ) # unhandled hosts (and "normal" native builds)
7027 lt_cv_to_host_file_cmd=func_convert_file_noop
7028 ;;
7029 esac
7030
7031 fi
7032
7033 to_host_file_cmd=$lt_cv_to_host_file_cmd
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7035 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7036
7037
7038
7039
7040
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7042 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7043 if test ${lt_cv_to_tool_file_cmd+y}
7044 then :
7045 printf %s "(cached) " >&6
7046 else $as_nop
7047 #assume ordinary cross tools, or native build.
7048 lt_cv_to_tool_file_cmd=func_convert_file_noop
7049 case $host in
7050 *-*-mingw* )
7051 case $build in
7052 *-*-mingw* ) # actually msys
7053 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7054 ;;
7055 esac
7056 ;;
7057 esac
7058
7059 fi
7060
7061 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7063 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7064
7065
7066
7067
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7070 printf %s "checking for $LD option to reload object files... " >&6; }
7071 if test ${lt_cv_ld_reload_flag+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else $as_nop
7075 lt_cv_ld_reload_flag='-r'
7076 fi
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7078 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7079 reload_flag=$lt_cv_ld_reload_flag
7080 case $reload_flag in
7081 "" | " "*) ;;
7082 *) reload_flag=" $reload_flag" ;;
7083 esac
7084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7085 case $host_os in
7086 cygwin* | mingw* | pw32* | cegcc*)
7087 if test "$GCC" != yes; then
7088 reload_cmds=false
7089 fi
7090 ;;
7091 darwin*)
7092 if test "$GCC" = yes; then
7093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7094 else
7095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7096 fi
7097 ;;
7098 esac
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 printf %s "checking for $ac_word... " >&6; }
7113 if test ${ac_cv_prog_OBJDUMP+y}
7114 then :
7115 printf %s "(cached) " >&6
7116 else $as_nop
7117 if test -n "$OBJDUMP"; then
7118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 case $as_dir in #(((
7125 '') as_dir=./ ;;
7126 */) ;;
7127 *) as_dir=$as_dir/ ;;
7128 esac
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 OBJDUMP=$ac_cv_prog_OBJDUMP
7142 if test -n "$OBJDUMP"; then
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7144 printf "%s\n" "$OBJDUMP" >&6; }
7145 else
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 printf "%s\n" "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_OBJDUMP"; then
7153 ac_ct_OBJDUMP=$OBJDUMP
7154 # Extract the first word of "objdump", so it can be a program name with args.
7155 set dummy objdump; ac_word=$2
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 printf %s "checking for $ac_word... " >&6; }
7158 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7159 then :
7160 printf %s "(cached) " >&6
7161 else $as_nop
7162 if test -n "$ac_ct_OBJDUMP"; then
7163 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168 IFS=$as_save_IFS
7169 case $as_dir in #(((
7170 '') as_dir=./ ;;
7171 */) ;;
7172 *) as_dir=$as_dir/ ;;
7173 esac
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7187 if test -n "$ac_ct_OBJDUMP"; then
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7189 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7190 else
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 printf "%s\n" "no" >&6; }
7193 fi
7194
7195 if test "x$ac_ct_OBJDUMP" = x; then
7196 OBJDUMP="false"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 OBJDUMP=$ac_ct_OBJDUMP
7205 fi
7206 else
7207 OBJDUMP="$ac_cv_prog_OBJDUMP"
7208 fi
7209
7210 test -z "$OBJDUMP" && OBJDUMP=objdump
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7221 printf %s "checking how to recognize dependent libraries... " >&6; }
7222 if test ${lt_cv_deplibs_check_method+y}
7223 then :
7224 printf %s "(cached) " >&6
7225 else $as_nop
7226 lt_cv_file_magic_cmd='$MAGIC_CMD'
7227 lt_cv_file_magic_test_file=
7228 lt_cv_deplibs_check_method='unknown'
7229 # Need to set the preceding variable on all platforms that support
7230 # interlibrary dependencies.
7231 # 'none' -- dependencies not supported.
7232 # `unknown' -- same as none, but documents that we really don't know.
7233 # 'pass_all' -- all dependencies passed with no checks.
7234 # 'test_compile' -- check by making test program.
7235 # 'file_magic [[regex]]' -- check by looking for files in library path
7236 # which responds to the $file_magic_cmd with a given extended regex.
7237 # If you have `file' or equivalent on your system and you're not sure
7238 # whether `pass_all' will *always* work, you probably want this one.
7239
7240 case $host_os in
7241 aix[4-9]*)
7242 lt_cv_deplibs_check_method=pass_all
7243 ;;
7244
7245 beos*)
7246 lt_cv_deplibs_check_method=pass_all
7247 ;;
7248
7249 bsdi[45]*)
7250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7251 lt_cv_file_magic_cmd='/usr/bin/file -L'
7252 lt_cv_file_magic_test_file=/shlib/libc.so
7253 ;;
7254
7255 cygwin*)
7256 # func_win32_libid is a shell function defined in ltmain.sh
7257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7258 lt_cv_file_magic_cmd='func_win32_libid'
7259 ;;
7260
7261 mingw* | pw32*)
7262 # Base MSYS/MinGW do not provide the 'file' command needed by
7263 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7264 # unless we find 'file', for example because we are cross-compiling.
7265 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7266 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7268 lt_cv_file_magic_cmd='func_win32_libid'
7269 else
7270 # Keep this pattern in sync with the one in func_win32_libid.
7271 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7272 lt_cv_file_magic_cmd='$OBJDUMP -f'
7273 fi
7274 ;;
7275
7276 cegcc*)
7277 # use the weaker test based on 'objdump'. See mingw*.
7278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7279 lt_cv_file_magic_cmd='$OBJDUMP -f'
7280 ;;
7281
7282 darwin* | rhapsody*)
7283 lt_cv_deplibs_check_method=pass_all
7284 ;;
7285
7286 freebsd* | dragonfly*)
7287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7288 case $host_cpu in
7289 i*86 )
7290 # Not sure whether the presence of OpenBSD here was a mistake.
7291 # Let's accept both of them until this is cleared up.
7292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7293 lt_cv_file_magic_cmd=/usr/bin/file
7294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7295 ;;
7296 esac
7297 else
7298 lt_cv_deplibs_check_method=pass_all
7299 fi
7300 ;;
7301
7302 gnu*)
7303 lt_cv_deplibs_check_method=pass_all
7304 ;;
7305
7306 haiku*)
7307 lt_cv_deplibs_check_method=pass_all
7308 ;;
7309
7310 hpux10.20* | hpux11*)
7311 lt_cv_file_magic_cmd=/usr/bin/file
7312 case $host_cpu in
7313 ia64*)
7314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7316 ;;
7317 hppa*64*)
7318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7320 ;;
7321 *)
7322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7324 ;;
7325 esac
7326 ;;
7327
7328 interix[3-9]*)
7329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7331 ;;
7332
7333 irix5* | irix6* | nonstopux*)
7334 case $LD in
7335 *-32|*"-32 ") libmagic=32-bit;;
7336 *-n32|*"-n32 ") libmagic=N32;;
7337 *-64|*"-64 ") libmagic=64-bit;;
7338 *) libmagic=never-match;;
7339 esac
7340 lt_cv_deplibs_check_method=pass_all
7341 ;;
7342
7343 # This must be glibc/ELF.
7344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7345 lt_cv_deplibs_check_method=pass_all
7346 ;;
7347
7348 netbsd*)
7349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7351 else
7352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7353 fi
7354 ;;
7355
7356 newos6*)
7357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7358 lt_cv_file_magic_cmd=/usr/bin/file
7359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7360 ;;
7361
7362 *nto* | *qnx*)
7363 lt_cv_deplibs_check_method=pass_all
7364 ;;
7365
7366 openbsd*)
7367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7369 else
7370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7371 fi
7372 ;;
7373
7374 osf3* | osf4* | osf5*)
7375 lt_cv_deplibs_check_method=pass_all
7376 ;;
7377
7378 rdos*)
7379 lt_cv_deplibs_check_method=pass_all
7380 ;;
7381
7382 solaris*)
7383 lt_cv_deplibs_check_method=pass_all
7384 ;;
7385
7386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7387 lt_cv_deplibs_check_method=pass_all
7388 ;;
7389
7390 sysv4 | sysv4.3*)
7391 case $host_vendor in
7392 motorola)
7393 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]'
7394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7395 ;;
7396 ncr)
7397 lt_cv_deplibs_check_method=pass_all
7398 ;;
7399 sequent)
7400 lt_cv_file_magic_cmd='/bin/file'
7401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7402 ;;
7403 sni)
7404 lt_cv_file_magic_cmd='/bin/file'
7405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7406 lt_cv_file_magic_test_file=/lib/libc.so
7407 ;;
7408 siemens)
7409 lt_cv_deplibs_check_method=pass_all
7410 ;;
7411 pc)
7412 lt_cv_deplibs_check_method=pass_all
7413 ;;
7414 esac
7415 ;;
7416
7417 tpf*)
7418 lt_cv_deplibs_check_method=pass_all
7419 ;;
7420 esac
7421
7422 fi
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7424 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7425
7426 file_magic_glob=
7427 want_nocaseglob=no
7428 if test "$build" = "$host"; then
7429 case $host_os in
7430 mingw* | pw32*)
7431 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7432 want_nocaseglob=yes
7433 else
7434 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7435 fi
7436 ;;
7437 esac
7438 fi
7439
7440 file_magic_cmd=$lt_cv_file_magic_cmd
7441 deplibs_check_method=$lt_cv_deplibs_check_method
7442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7467 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 printf %s "checking for $ac_word... " >&6; }
7470 if test ${ac_cv_prog_DLLTOOL+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else $as_nop
7474 if test -n "$DLLTOOL"; then
7475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 case $as_dir in #(((
7482 '') as_dir=./ ;;
7483 */) ;;
7484 *) as_dir=$as_dir/ ;;
7485 esac
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 DLLTOOL=$ac_cv_prog_DLLTOOL
7499 if test -n "$DLLTOOL"; then
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7501 printf "%s\n" "$DLLTOOL" >&6; }
7502 else
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 printf "%s\n" "no" >&6; }
7505 fi
7506
7507
7508 fi
7509 if test -z "$ac_cv_prog_DLLTOOL"; then
7510 ac_ct_DLLTOOL=$DLLTOOL
7511 # Extract the first word of "dlltool", so it can be a program name with args.
7512 set dummy dlltool; ac_word=$2
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 printf %s "checking for $ac_word... " >&6; }
7515 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7516 then :
7517 printf %s "(cached) " >&6
7518 else $as_nop
7519 if test -n "$ac_ct_DLLTOOL"; then
7520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 case $as_dir in #(((
7527 '') as_dir=./ ;;
7528 */) ;;
7529 *) as_dir=$as_dir/ ;;
7530 esac
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7544 if test -n "$ac_ct_DLLTOOL"; then
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7546 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7547 else
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 printf "%s\n" "no" >&6; }
7550 fi
7551
7552 if test "x$ac_ct_DLLTOOL" = x; then
7553 DLLTOOL="false"
7554 else
7555 case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561 DLLTOOL=$ac_ct_DLLTOOL
7562 fi
7563 else
7564 DLLTOOL="$ac_cv_prog_DLLTOOL"
7565 fi
7566
7567 test -z "$DLLTOOL" && DLLTOOL=dlltool
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7579 printf %s "checking how to associate runtime and link libraries... " >&6; }
7580 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else $as_nop
7584 lt_cv_sharedlib_from_linklib_cmd='unknown'
7585
7586 case $host_os in
7587 cygwin* | mingw* | pw32* | cegcc*)
7588 # two different shell functions defined in ltmain.sh
7589 # decide which to use based on capabilities of $DLLTOOL
7590 case `$DLLTOOL --help 2>&1` in
7591 *--identify-strict*)
7592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7593 ;;
7594 *)
7595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7596 ;;
7597 esac
7598 ;;
7599 *)
7600 # fallback: assume linklib IS sharedlib
7601 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7602 ;;
7603 esac
7604
7605 fi
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7607 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7608 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7609 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7610
7611
7612
7613
7614
7615
7616
7617 if test -n "$ac_tool_prefix"; then
7618 for ac_prog in ar
7619 do
7620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 printf %s "checking for $ac_word... " >&6; }
7624 if test ${ac_cv_prog_AR+y}
7625 then :
7626 printf %s "(cached) " >&6
7627 else $as_nop
7628 if test -n "$AR"; then
7629 ac_cv_prog_AR="$AR" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 case $as_dir in #(((
7636 '') as_dir=./ ;;
7637 */) ;;
7638 *) as_dir=$as_dir/ ;;
7639 esac
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 AR=$ac_cv_prog_AR
7653 if test -n "$AR"; then
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7655 printf "%s\n" "$AR" >&6; }
7656 else
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 printf "%s\n" "no" >&6; }
7659 fi
7660
7661
7662 test -n "$AR" && break
7663 done
7664 fi
7665 if test -z "$AR"; then
7666 ac_ct_AR=$AR
7667 for ac_prog in ar
7668 do
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 printf %s "checking for $ac_word... " >&6; }
7673 if test ${ac_cv_prog_ac_ct_AR+y}
7674 then :
7675 printf %s "(cached) " >&6
7676 else $as_nop
7677 if test -n "$ac_ct_AR"; then
7678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683 IFS=$as_save_IFS
7684 case $as_dir in #(((
7685 '') as_dir=./ ;;
7686 */) ;;
7687 *) as_dir=$as_dir/ ;;
7688 esac
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_AR="$ac_prog"
7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7702 if test -n "$ac_ct_AR"; then
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7704 printf "%s\n" "$ac_ct_AR" >&6; }
7705 else
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 printf "%s\n" "no" >&6; }
7708 fi
7709
7710
7711 test -n "$ac_ct_AR" && break
7712 done
7713
7714 if test "x$ac_ct_AR" = x; then
7715 AR="false"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723 AR=$ac_ct_AR
7724 fi
7725 fi
7726
7727 : ${AR=ar}
7728 : ${AR_FLAGS=cru}
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7741 printf %s "checking for archiver @FILE support... " >&6; }
7742 if test ${lt_cv_ar_at_file+y}
7743 then :
7744 printf %s "(cached) " >&6
7745 else $as_nop
7746 lt_cv_ar_at_file=no
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749
7750 int
7751 main (void)
7752 {
7753
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"
7759 then :
7760 echo conftest.$ac_objext > conftest.lst
7761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7763 (eval $lt_ar_try) 2>&5
7764 ac_status=$?
7765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; }
7767 if test "$ac_status" -eq 0; then
7768 # Ensure the archiver fails upon bogus file names.
7769 rm -f conftest.$ac_objext libconftest.a
7770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7771 (eval $lt_ar_try) 2>&5
7772 ac_status=$?
7773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }
7775 if test "$ac_status" -ne 0; then
7776 lt_cv_ar_at_file=@
7777 fi
7778 fi
7779 rm -f conftest.* libconftest.a
7780
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7783
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7786 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7787
7788 if test "x$lt_cv_ar_at_file" = xno; then
7789 archiver_list_spec=
7790 else
7791 archiver_list_spec=$lt_cv_ar_at_file
7792 fi
7793
7794
7795
7796
7797
7798
7799
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}strip; ac_word=$2
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 printf %s "checking for $ac_word... " >&6; }
7805 if test ${ac_cv_prog_STRIP+y}
7806 then :
7807 printf %s "(cached) " >&6
7808 else $as_nop
7809 if test -n "$STRIP"; then
7810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 case $as_dir in #(((
7817 '') as_dir=./ ;;
7818 */) ;;
7819 *) as_dir=$as_dir/ ;;
7820 esac
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 STRIP=$ac_cv_prog_STRIP
7834 if test -n "$STRIP"; then
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7836 printf "%s\n" "$STRIP" >&6; }
7837 else
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 printf "%s\n" "no" >&6; }
7840 fi
7841
7842
7843 fi
7844 if test -z "$ac_cv_prog_STRIP"; then
7845 ac_ct_STRIP=$STRIP
7846 # Extract the first word of "strip", so it can be a program name with args.
7847 set dummy strip; ac_word=$2
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 printf %s "checking for $ac_word... " >&6; }
7850 if test ${ac_cv_prog_ac_ct_STRIP+y}
7851 then :
7852 printf %s "(cached) " >&6
7853 else $as_nop
7854 if test -n "$ac_ct_STRIP"; then
7855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 case $as_dir in #(((
7862 '') as_dir=./ ;;
7863 */) ;;
7864 *) as_dir=$as_dir/ ;;
7865 esac
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_ac_ct_STRIP="strip"
7869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872 done
7873 done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7879 if test -n "$ac_ct_STRIP"; then
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7881 printf "%s\n" "$ac_ct_STRIP" >&6; }
7882 else
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 printf "%s\n" "no" >&6; }
7885 fi
7886
7887 if test "x$ac_ct_STRIP" = x; then
7888 STRIP=":"
7889 else
7890 case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7895 esac
7896 STRIP=$ac_ct_STRIP
7897 fi
7898 else
7899 STRIP="$ac_cv_prog_STRIP"
7900 fi
7901
7902 test -z "$STRIP" && STRIP=:
7903
7904
7905
7906
7907
7908
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 printf %s "checking for $ac_word... " >&6; }
7914 if test ${ac_cv_prog_RANLIB+y}
7915 then :
7916 printf %s "(cached) " >&6
7917 else $as_nop
7918 if test -n "$RANLIB"; then
7919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 case $as_dir in #(((
7926 '') as_dir=./ ;;
7927 */) ;;
7928 *) as_dir=$as_dir/ ;;
7929 esac
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 RANLIB=$ac_cv_prog_RANLIB
7943 if test -n "$RANLIB"; then
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7945 printf "%s\n" "$RANLIB" >&6; }
7946 else
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 printf "%s\n" "no" >&6; }
7949 fi
7950
7951
7952 fi
7953 if test -z "$ac_cv_prog_RANLIB"; then
7954 ac_ct_RANLIB=$RANLIB
7955 # Extract the first word of "ranlib", so it can be a program name with args.
7956 set dummy ranlib; ac_word=$2
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 printf %s "checking for $ac_word... " >&6; }
7959 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7960 then :
7961 printf %s "(cached) " >&6
7962 else $as_nop
7963 if test -n "$ac_ct_RANLIB"; then
7964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969 IFS=$as_save_IFS
7970 case $as_dir in #(((
7971 '') as_dir=./ ;;
7972 */) ;;
7973 *) as_dir=$as_dir/ ;;
7974 esac
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_ac_ct_RANLIB="ranlib"
7978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7988 if test -n "$ac_ct_RANLIB"; then
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7990 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7991 else
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 printf "%s\n" "no" >&6; }
7994 fi
7995
7996 if test "x$ac_ct_RANLIB" = x; then
7997 RANLIB=":"
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000 yes:)
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 RANLIB=$ac_ct_RANLIB
8006 fi
8007 else
8008 RANLIB="$ac_cv_prog_RANLIB"
8009 fi
8010
8011 test -z "$RANLIB" && RANLIB=:
8012
8013
8014
8015
8016
8017
8018 # Determine commands to create old-style static archives.
8019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8020 old_postinstall_cmds='chmod 644 $oldlib'
8021 old_postuninstall_cmds=
8022
8023 if test -n "$RANLIB"; then
8024 case $host_os in
8025 openbsd*)
8026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8027 ;;
8028 *)
8029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8030 ;;
8031 esac
8032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8033 fi
8034
8035 case $host_os in
8036 darwin*)
8037 lock_old_archive_extraction=yes ;;
8038 *)
8039 lock_old_archive_extraction=no ;;
8040 esac
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8082
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8085
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8088
8089
8090 # Check for command to grab the raw symbol name followed by C symbol from nm.
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8092 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8093 if test ${lt_cv_sys_global_symbol_pipe+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else $as_nop
8097
8098 # These are sane defaults that work on at least a few old systems.
8099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8100
8101 # Character class describing NM global symbol codes.
8102 symcode='[BCDEGRST]'
8103
8104 # Regexp to match symbols that can be accessed directly from C.
8105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8106
8107 # Define system-specific variables.
8108 case $host_os in
8109 aix*)
8110 symcode='[BCDT]'
8111 ;;
8112 cygwin* | mingw* | pw32* | cegcc*)
8113 symcode='[ABCDGISTW]'
8114 ;;
8115 hpux*)
8116 if test "$host_cpu" = ia64; then
8117 symcode='[ABCDEGRST]'
8118 fi
8119 ;;
8120 irix* | nonstopux*)
8121 symcode='[BCDEGRST]'
8122 ;;
8123 osf*)
8124 symcode='[BCDEGQRST]'
8125 ;;
8126 solaris*)
8127 symcode='[BDRT]'
8128 ;;
8129 sco3.2v5*)
8130 symcode='[DT]'
8131 ;;
8132 sysv4.2uw2*)
8133 symcode='[DT]'
8134 ;;
8135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8136 symcode='[ABDT]'
8137 ;;
8138 sysv4)
8139 symcode='[DFNSTU]'
8140 ;;
8141 esac
8142
8143 # If we're using GNU nm, then use its standard symbol codes.
8144 case `$NM -V 2>&1` in
8145 *GNU* | *'with BFD'*)
8146 symcode='[ABCDGIRSTW]' ;;
8147 esac
8148
8149 # Transform an extracted symbol line into a proper C declaration.
8150 # Some systems (esp. on ia64) link data and code symbols differently,
8151 # so use this general approach.
8152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8153
8154 # Transform an extracted symbol line into symbol name and symbol address
8155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8157
8158 # Handle CRLF in mingw tool chain
8159 opt_cr=
8160 case $build_os in
8161 mingw*)
8162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8163 ;;
8164 esac
8165
8166 # Try without a prefix underscore, then with it.
8167 for ac_symprfx in "" "_"; do
8168
8169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8170 symxfrm="\\1 $ac_symprfx\\2 \\2"
8171
8172 # Write the raw and C identifiers.
8173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8174 # Fake it for dumpbin and say T for any non-static function
8175 # and D for any global variable.
8176 # Also find C++ and __fastcall symbols from MSVC++,
8177 # which start with @ or ?.
8178 lt_cv_sys_global_symbol_pipe="$AWK '"\
8179 " {last_section=section; section=\$ 3};"\
8180 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8181 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8182 " \$ 0!~/External *\|/{next};"\
8183 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8184 " {if(hide[section]) next};"\
8185 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8186 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8187 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8188 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8189 " ' prfx=^$ac_symprfx"
8190 else
8191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8192 fi
8193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8194
8195 # Check to see that the pipe works correctly.
8196 pipe_works=no
8197
8198 rm -f conftest*
8199 cat > conftest.$ac_ext <<_LT_EOF
8200 #ifdef __cplusplus
8201 extern "C" {
8202 #endif
8203 char nm_test_var;
8204 void nm_test_func(void);
8205 void nm_test_func(void){}
8206 #ifdef __cplusplus
8207 }
8208 #endif
8209 int main(){nm_test_var='a';nm_test_func();return(0);}
8210 _LT_EOF
8211
8212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8213 (eval $ac_compile) 2>&5
8214 ac_status=$?
8215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8216 test $ac_status = 0; }; then
8217 # Now try to grab the symbols.
8218 nlist=conftest.nm
8219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8221 ac_status=$?
8222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8223 test $ac_status = 0; } && test -s "$nlist"; then
8224 # Try sorting and uniquifying the output.
8225 if sort "$nlist" | uniq > "$nlist"T; then
8226 mv -f "$nlist"T "$nlist"
8227 else
8228 rm -f "$nlist"T
8229 fi
8230
8231 # Make sure that we snagged all the symbols we need.
8232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8234 cat <<_LT_EOF > conftest.$ac_ext
8235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8238 relocations are performed -- see ld's documentation on pseudo-relocs. */
8239 # define LT_DLSYM_CONST
8240 #elif defined(__osf__)
8241 /* This system does not cope well with relocations in const data. */
8242 # define LT_DLSYM_CONST
8243 #else
8244 # define LT_DLSYM_CONST const
8245 #endif
8246
8247 #ifdef __cplusplus
8248 extern "C" {
8249 #endif
8250
8251 _LT_EOF
8252 # Now generate the symbol file.
8253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8254
8255 cat <<_LT_EOF >> conftest.$ac_ext
8256
8257 /* The mapping between symbol names and symbols. */
8258 LT_DLSYM_CONST struct {
8259 const char *name;
8260 void *address;
8261 }
8262 lt__PROGRAM__LTX_preloaded_symbols[] =
8263 {
8264 { "@PROGRAM@", (void *) 0 },
8265 _LT_EOF
8266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8267 cat <<\_LT_EOF >> conftest.$ac_ext
8268 {0, (void *) 0}
8269 };
8270
8271 /* This works around a problem in FreeBSD linker */
8272 #ifdef FREEBSD_WORKAROUND
8273 static const void *lt_preloaded_setup() {
8274 return lt__PROGRAM__LTX_preloaded_symbols;
8275 }
8276 #endif
8277
8278 #ifdef __cplusplus
8279 }
8280 #endif
8281 _LT_EOF
8282 # Now try linking the two files.
8283 mv conftest.$ac_objext conftstm.$ac_objext
8284 lt_globsym_save_LIBS=$LIBS
8285 lt_globsym_save_CFLAGS=$CFLAGS
8286 LIBS="conftstm.$ac_objext"
8287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8289 (eval $ac_link) 2>&5
8290 ac_status=$?
8291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8293 pipe_works=yes
8294 fi
8295 LIBS=$lt_globsym_save_LIBS
8296 CFLAGS=$lt_globsym_save_CFLAGS
8297 else
8298 echo "cannot find nm_test_func in $nlist" >&5
8299 fi
8300 else
8301 echo "cannot find nm_test_var in $nlist" >&5
8302 fi
8303 else
8304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8305 fi
8306 else
8307 echo "$progname: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 fi
8310 rm -rf conftest* conftst*
8311
8312 # Do not use the global_symbol_pipe unless it works.
8313 if test "$pipe_works" = yes; then
8314 break
8315 else
8316 lt_cv_sys_global_symbol_pipe=
8317 fi
8318 done
8319
8320 fi
8321
8322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8323 lt_cv_sys_global_symbol_to_cdecl=
8324 fi
8325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8327 printf "%s\n" "failed" >&6; }
8328 else
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8330 printf "%s\n" "ok" >&6; }
8331 fi
8332
8333 # Response file support.
8334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8335 nm_file_list_spec='@'
8336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8337 nm_file_list_spec='@'
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8367 printf %s "checking for sysroot... " >&6; }
8368
8369 # Check whether --with-sysroot was given.
8370 if test ${with_sysroot+y}
8371 then :
8372 withval=$with_sysroot;
8373 else $as_nop
8374 with_sysroot=no
8375 fi
8376
8377
8378 lt_sysroot=
8379 case ${with_sysroot} in #(
8380 yes)
8381 if test "$GCC" = yes; then
8382 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8383 fi
8384 ;; #(
8385 /*)
8386 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8387 ;; #(
8388 no|'')
8389 ;; #(
8390 *)
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8392 printf "%s\n" "${with_sysroot}" >&6; }
8393 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8394 ;;
8395 esac
8396
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8398 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8399
8400
8401
8402
8403
8404 # Check whether --enable-libtool-lock was given.
8405 if test ${enable_libtool_lock+y}
8406 then :
8407 enableval=$enable_libtool_lock;
8408 fi
8409
8410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8411
8412 # Some flags need to be propagated to the compiler or linker for good
8413 # libtool support.
8414 case $host in
8415 ia64-*-hpux*)
8416 # Find out which ABI we are using.
8417 echo 'int i;' > conftest.$ac_ext
8418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8419 (eval $ac_compile) 2>&5
8420 ac_status=$?
8421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8422 test $ac_status = 0; }; then
8423 case `/usr/bin/file conftest.$ac_objext` in
8424 *ELF-32*)
8425 HPUX_IA64_MODE="32"
8426 ;;
8427 *ELF-64*)
8428 HPUX_IA64_MODE="64"
8429 ;;
8430 esac
8431 fi
8432 rm -rf conftest*
8433 ;;
8434 *-*-irix6*)
8435 # Find out which ABI we are using.
8436 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8438 (eval $ac_compile) 2>&5
8439 ac_status=$?
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8441 test $ac_status = 0; }; then
8442 if test "$lt_cv_prog_gnu_ld" = yes; then
8443 case `/usr/bin/file conftest.$ac_objext` in
8444 *32-bit*)
8445 LD="${LD-ld} -melf32bsmip"
8446 ;;
8447 *N32*)
8448 LD="${LD-ld} -melf32bmipn32"
8449 ;;
8450 *64-bit*)
8451 LD="${LD-ld} -melf64bmip"
8452 ;;
8453 esac
8454 else
8455 case `/usr/bin/file conftest.$ac_objext` in
8456 *32-bit*)
8457 LD="${LD-ld} -32"
8458 ;;
8459 *N32*)
8460 LD="${LD-ld} -n32"
8461 ;;
8462 *64-bit*)
8463 LD="${LD-ld} -64"
8464 ;;
8465 esac
8466 fi
8467 fi
8468 rm -rf conftest*
8469 ;;
8470
8471 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8472 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8473 # Find out which ABI we are using.
8474 echo 'int i;' > conftest.$ac_ext
8475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8476 (eval $ac_compile) 2>&5
8477 ac_status=$?
8478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479 test $ac_status = 0; }; then
8480 case `/usr/bin/file conftest.o` in
8481 *32-bit*)
8482 case $host in
8483 x86_64-*kfreebsd*-gnu)
8484 LD="${LD-ld} -m elf_i386_fbsd"
8485 ;;
8486 x86_64-*linux*)
8487 LD="${LD-ld} -m elf_i386"
8488 ;;
8489 ppc64-*linux*|powerpc64-*linux*)
8490 LD="${LD-ld} -m elf32ppclinux"
8491 ;;
8492 s390x-*linux*)
8493 LD="${LD-ld} -m elf_s390"
8494 ;;
8495 sparc64-*linux*)
8496 LD="${LD-ld} -m elf32_sparc"
8497 ;;
8498 esac
8499 ;;
8500 *64-bit*)
8501 case $host in
8502 x86_64-*kfreebsd*-gnu)
8503 LD="${LD-ld} -m elf_x86_64_fbsd"
8504 ;;
8505 x86_64-*linux*)
8506 LD="${LD-ld} -m elf_x86_64"
8507 ;;
8508 ppc*-*linux*|powerpc*-*linux*)
8509 LD="${LD-ld} -m elf64ppc"
8510 ;;
8511 s390*-*linux*|s390*-*tpf*)
8512 LD="${LD-ld} -m elf64_s390"
8513 ;;
8514 sparc*-*linux*)
8515 LD="${LD-ld} -m elf64_sparc"
8516 ;;
8517 esac
8518 ;;
8519 esac
8520 fi
8521 rm -rf conftest*
8522 ;;
8523
8524 *-*-sco3.2v5*)
8525 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8526 SAVE_CFLAGS="$CFLAGS"
8527 CFLAGS="$CFLAGS -belf"
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8529 printf %s "checking whether the C compiler needs -belf... " >&6; }
8530 if test ${lt_cv_cc_needs_belf+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else $as_nop
8534 ac_ext=c
8535 ac_cpp='$CPP $CPPFLAGS'
8536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542
8543 int
8544 main (void)
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_link "$LINENO"
8552 then :
8553 lt_cv_cc_needs_belf=yes
8554 else $as_nop
8555 lt_cv_cc_needs_belf=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8558 conftest$ac_exeext conftest.$ac_ext
8559 ac_ext=c
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565 fi
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8567 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8568 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8569 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8570 CFLAGS="$SAVE_CFLAGS"
8571 fi
8572 ;;
8573 *-*solaris*)
8574 # Find out which ABI we are using.
8575 echo 'int i;' > conftest.$ac_ext
8576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8577 (eval $ac_compile) 2>&5
8578 ac_status=$?
8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580 test $ac_status = 0; }; then
8581 case `/usr/bin/file conftest.o` in
8582 *64-bit*)
8583 case $lt_cv_prog_gnu_ld in
8584 yes*)
8585 case $host in
8586 i?86-*-solaris*)
8587 LD="${LD-ld} -m elf_x86_64"
8588 ;;
8589 sparc*-*-solaris*)
8590 LD="${LD-ld} -m elf64_sparc"
8591 ;;
8592 esac
8593 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8594 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8595 LD="${LD-ld}_sol2"
8596 fi
8597 ;;
8598 *)
8599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8600 LD="${LD-ld} -64"
8601 fi
8602 ;;
8603 esac
8604 ;;
8605 esac
8606 fi
8607 rm -rf conftest*
8608 ;;
8609 esac
8610
8611 need_locks="$enable_libtool_lock"
8612
8613 if test -n "$ac_tool_prefix"; then
8614 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8615 set dummy ${ac_tool_prefix}mt; ac_word=$2
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 printf %s "checking for $ac_word... " >&6; }
8618 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else $as_nop
8622 if test -n "$MANIFEST_TOOL"; then
8623 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628 IFS=$as_save_IFS
8629 case $as_dir in #(((
8630 '') as_dir=./ ;;
8631 */) ;;
8632 *) as_dir=$as_dir/ ;;
8633 esac
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8638 break 2
8639 fi
8640 done
8641 done
8642 IFS=$as_save_IFS
8643
8644 fi
8645 fi
8646 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8647 if test -n "$MANIFEST_TOOL"; then
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8649 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8650 else
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 printf "%s\n" "no" >&6; }
8653 fi
8654
8655
8656 fi
8657 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8658 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8659 # Extract the first word of "mt", so it can be a program name with args.
8660 set dummy mt; ac_word=$2
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 printf %s "checking for $ac_word... " >&6; }
8663 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8664 then :
8665 printf %s "(cached) " >&6
8666 else $as_nop
8667 if test -n "$ac_ct_MANIFEST_TOOL"; then
8668 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 case $as_dir in #(((
8675 '') as_dir=./ ;;
8676 */) ;;
8677 *) as_dir=$as_dir/ ;;
8678 esac
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 fi
8690 fi
8691 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8692 if test -n "$ac_ct_MANIFEST_TOOL"; then
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8694 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8695 else
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 printf "%s\n" "no" >&6; }
8698 fi
8699
8700 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8701 MANIFEST_TOOL=":"
8702 else
8703 case $cross_compiling:$ac_tool_warned in
8704 yes:)
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8707 ac_tool_warned=yes ;;
8708 esac
8709 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8710 fi
8711 else
8712 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8713 fi
8714
8715 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8717 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8718 if test ${lt_cv_path_mainfest_tool+y}
8719 then :
8720 printf %s "(cached) " >&6
8721 else $as_nop
8722 lt_cv_path_mainfest_tool=no
8723 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8724 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8725 cat conftest.err >&5
8726 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8727 lt_cv_path_mainfest_tool=yes
8728 fi
8729 rm -f conftest*
8730 fi
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8732 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8733 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8734 MANIFEST_TOOL=:
8735 fi
8736
8737
8738
8739
8740
8741
8742 case $host_os in
8743 rhapsody* | darwin*)
8744 if test -n "$ac_tool_prefix"; then
8745 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8746 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 printf %s "checking for $ac_word... " >&6; }
8749 if test ${ac_cv_prog_DSYMUTIL+y}
8750 then :
8751 printf %s "(cached) " >&6
8752 else $as_nop
8753 if test -n "$DSYMUTIL"; then
8754 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759 IFS=$as_save_IFS
8760 case $as_dir in #(((
8761 '') as_dir=./ ;;
8762 */) ;;
8763 *) as_dir=$as_dir/ ;;
8764 esac
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8769 break 2
8770 fi
8771 done
8772 done
8773 IFS=$as_save_IFS
8774
8775 fi
8776 fi
8777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8778 if test -n "$DSYMUTIL"; then
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8780 printf "%s\n" "$DSYMUTIL" >&6; }
8781 else
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 printf "%s\n" "no" >&6; }
8784 fi
8785
8786
8787 fi
8788 if test -z "$ac_cv_prog_DSYMUTIL"; then
8789 ac_ct_DSYMUTIL=$DSYMUTIL
8790 # Extract the first word of "dsymutil", so it can be a program name with args.
8791 set dummy dsymutil; ac_word=$2
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 printf %s "checking for $ac_word... " >&6; }
8794 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8795 then :
8796 printf %s "(cached) " >&6
8797 else $as_nop
8798 if test -n "$ac_ct_DSYMUTIL"; then
8799 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804 IFS=$as_save_IFS
8805 case $as_dir in #(((
8806 '') as_dir=./ ;;
8807 */) ;;
8808 *) as_dir=$as_dir/ ;;
8809 esac
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8812 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816 done
8817 done
8818 IFS=$as_save_IFS
8819
8820 fi
8821 fi
8822 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8823 if test -n "$ac_ct_DSYMUTIL"; then
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8825 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8826 else
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 printf "%s\n" "no" >&6; }
8829 fi
8830
8831 if test "x$ac_ct_DSYMUTIL" = x; then
8832 DSYMUTIL=":"
8833 else
8834 case $cross_compiling:$ac_tool_warned in
8835 yes:)
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8839 esac
8840 DSYMUTIL=$ac_ct_DSYMUTIL
8841 fi
8842 else
8843 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8844 fi
8845
8846 if test -n "$ac_tool_prefix"; then
8847 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 printf %s "checking for $ac_word... " >&6; }
8851 if test ${ac_cv_prog_NMEDIT+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else $as_nop
8855 if test -n "$NMEDIT"; then
8856 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861 IFS=$as_save_IFS
8862 case $as_dir in #(((
8863 '') as_dir=./ ;;
8864 */) ;;
8865 *) as_dir=$as_dir/ ;;
8866 esac
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8869 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8871 break 2
8872 fi
8873 done
8874 done
8875 IFS=$as_save_IFS
8876
8877 fi
8878 fi
8879 NMEDIT=$ac_cv_prog_NMEDIT
8880 if test -n "$NMEDIT"; then
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8882 printf "%s\n" "$NMEDIT" >&6; }
8883 else
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 printf "%s\n" "no" >&6; }
8886 fi
8887
8888
8889 fi
8890 if test -z "$ac_cv_prog_NMEDIT"; then
8891 ac_ct_NMEDIT=$NMEDIT
8892 # Extract the first word of "nmedit", so it can be a program name with args.
8893 set dummy nmedit; ac_word=$2
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 printf %s "checking for $ac_word... " >&6; }
8896 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else $as_nop
8900 if test -n "$ac_ct_NMEDIT"; then
8901 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 case $as_dir in #(((
8908 '') as_dir=./ ;;
8909 */) ;;
8910 *) as_dir=$as_dir/ ;;
8911 esac
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8916 break 2
8917 fi
8918 done
8919 done
8920 IFS=$as_save_IFS
8921
8922 fi
8923 fi
8924 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8925 if test -n "$ac_ct_NMEDIT"; then
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8927 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8928 else
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 printf "%s\n" "no" >&6; }
8931 fi
8932
8933 if test "x$ac_ct_NMEDIT" = x; then
8934 NMEDIT=":"
8935 else
8936 case $cross_compiling:$ac_tool_warned in
8937 yes:)
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8940 ac_tool_warned=yes ;;
8941 esac
8942 NMEDIT=$ac_ct_NMEDIT
8943 fi
8944 else
8945 NMEDIT="$ac_cv_prog_NMEDIT"
8946 fi
8947
8948 if test -n "$ac_tool_prefix"; then
8949 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8950 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 printf %s "checking for $ac_word... " >&6; }
8953 if test ${ac_cv_prog_LIPO+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else $as_nop
8957 if test -n "$LIPO"; then
8958 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963 IFS=$as_save_IFS
8964 case $as_dir in #(((
8965 '') as_dir=./ ;;
8966 */) ;;
8967 *) as_dir=$as_dir/ ;;
8968 esac
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977 IFS=$as_save_IFS
8978
8979 fi
8980 fi
8981 LIPO=$ac_cv_prog_LIPO
8982 if test -n "$LIPO"; then
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8984 printf "%s\n" "$LIPO" >&6; }
8985 else
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 printf "%s\n" "no" >&6; }
8988 fi
8989
8990
8991 fi
8992 if test -z "$ac_cv_prog_LIPO"; then
8993 ac_ct_LIPO=$LIPO
8994 # Extract the first word of "lipo", so it can be a program name with args.
8995 set dummy lipo; ac_word=$2
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 printf %s "checking for $ac_word... " >&6; }
8998 if test ${ac_cv_prog_ac_ct_LIPO+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else $as_nop
9002 if test -n "$ac_ct_LIPO"; then
9003 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008 IFS=$as_save_IFS
9009 case $as_dir in #(((
9010 '') as_dir=./ ;;
9011 */) ;;
9012 *) as_dir=$as_dir/ ;;
9013 esac
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_ac_ct_LIPO="lipo"
9017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020 done
9021 done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9027 if test -n "$ac_ct_LIPO"; then
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9029 printf "%s\n" "$ac_ct_LIPO" >&6; }
9030 else
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 printf "%s\n" "no" >&6; }
9033 fi
9034
9035 if test "x$ac_ct_LIPO" = x; then
9036 LIPO=":"
9037 else
9038 case $cross_compiling:$ac_tool_warned in
9039 yes:)
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9042 ac_tool_warned=yes ;;
9043 esac
9044 LIPO=$ac_ct_LIPO
9045 fi
9046 else
9047 LIPO="$ac_cv_prog_LIPO"
9048 fi
9049
9050 if test -n "$ac_tool_prefix"; then
9051 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9052 set dummy ${ac_tool_prefix}otool; ac_word=$2
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 printf %s "checking for $ac_word... " >&6; }
9055 if test ${ac_cv_prog_OTOOL+y}
9056 then :
9057 printf %s "(cached) " >&6
9058 else $as_nop
9059 if test -n "$OTOOL"; then
9060 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9061 else
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
9064 do
9065 IFS=$as_save_IFS
9066 case $as_dir in #(((
9067 '') as_dir=./ ;;
9068 */) ;;
9069 *) as_dir=$as_dir/ ;;
9070 esac
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9075 break 2
9076 fi
9077 done
9078 done
9079 IFS=$as_save_IFS
9080
9081 fi
9082 fi
9083 OTOOL=$ac_cv_prog_OTOOL
9084 if test -n "$OTOOL"; then
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9086 printf "%s\n" "$OTOOL" >&6; }
9087 else
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 printf "%s\n" "no" >&6; }
9090 fi
9091
9092
9093 fi
9094 if test -z "$ac_cv_prog_OTOOL"; then
9095 ac_ct_OTOOL=$OTOOL
9096 # Extract the first word of "otool", so it can be a program name with args.
9097 set dummy otool; ac_word=$2
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 printf %s "checking for $ac_word... " >&6; }
9100 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else $as_nop
9104 if test -n "$ac_ct_OTOOL"; then
9105 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 case $as_dir in #(((
9112 '') as_dir=./ ;;
9113 */) ;;
9114 *) as_dir=$as_dir/ ;;
9115 esac
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_ac_ct_OTOOL="otool"
9119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9129 if test -n "$ac_ct_OTOOL"; then
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9131 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9132 else
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 printf "%s\n" "no" >&6; }
9135 fi
9136
9137 if test "x$ac_ct_OTOOL" = x; then
9138 OTOOL=":"
9139 else
9140 case $cross_compiling:$ac_tool_warned in
9141 yes:)
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9143 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9144 ac_tool_warned=yes ;;
9145 esac
9146 OTOOL=$ac_ct_OTOOL
9147 fi
9148 else
9149 OTOOL="$ac_cv_prog_OTOOL"
9150 fi
9151
9152 if test -n "$ac_tool_prefix"; then
9153 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9154 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 printf %s "checking for $ac_word... " >&6; }
9157 if test ${ac_cv_prog_OTOOL64+y}
9158 then :
9159 printf %s "(cached) " >&6
9160 else $as_nop
9161 if test -n "$OTOOL64"; then
9162 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 case $as_dir in #(((
9169 '') as_dir=./ ;;
9170 */) ;;
9171 *) as_dir=$as_dir/ ;;
9172 esac
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179 done
9180 done
9181 IFS=$as_save_IFS
9182
9183 fi
9184 fi
9185 OTOOL64=$ac_cv_prog_OTOOL64
9186 if test -n "$OTOOL64"; then
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9188 printf "%s\n" "$OTOOL64" >&6; }
9189 else
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 printf "%s\n" "no" >&6; }
9192 fi
9193
9194
9195 fi
9196 if test -z "$ac_cv_prog_OTOOL64"; then
9197 ac_ct_OTOOL64=$OTOOL64
9198 # Extract the first word of "otool64", so it can be a program name with args.
9199 set dummy otool64; ac_word=$2
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 printf %s "checking for $ac_word... " >&6; }
9202 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else $as_nop
9206 if test -n "$ac_ct_OTOOL64"; then
9207 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212 IFS=$as_save_IFS
9213 case $as_dir in #(((
9214 '') as_dir=./ ;;
9215 */) ;;
9216 *) as_dir=$as_dir/ ;;
9217 esac
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_ac_ct_OTOOL64="otool64"
9221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224 done
9225 done
9226 IFS=$as_save_IFS
9227
9228 fi
9229 fi
9230 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9231 if test -n "$ac_ct_OTOOL64"; then
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9233 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9234 else
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 printf "%s\n" "no" >&6; }
9237 fi
9238
9239 if test "x$ac_ct_OTOOL64" = x; then
9240 OTOOL64=":"
9241 else
9242 case $cross_compiling:$ac_tool_warned in
9243 yes:)
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9245 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9246 ac_tool_warned=yes ;;
9247 esac
9248 OTOOL64=$ac_ct_OTOOL64
9249 fi
9250 else
9251 OTOOL64="$ac_cv_prog_OTOOL64"
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9281 printf %s "checking for -single_module linker flag... " >&6; }
9282 if test ${lt_cv_apple_cc_single_mod+y}
9283 then :
9284 printf %s "(cached) " >&6
9285 else $as_nop
9286 lt_cv_apple_cc_single_mod=no
9287 if test -z "${LT_MULTI_MODULE}"; then
9288 # By default we will add the -single_module flag. You can override
9289 # by either setting the environment variable LT_MULTI_MODULE
9290 # non-empty at configure time, or by adding -multi_module to the
9291 # link flags.
9292 rm -rf libconftest.dylib*
9293 echo "int foo(void){return 1;}" > conftest.c
9294 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9295 -dynamiclib -Wl,-single_module conftest.c" >&5
9296 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9297 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9298 _lt_result=$?
9299 # If there is a non-empty error log, and "single_module"
9300 # appears in it, assume the flag caused a linker warning
9301 if test -s conftest.err && $GREP single_module conftest.err; then
9302 cat conftest.err >&5
9303 # Otherwise, if the output was created with a 0 exit code from
9304 # the compiler, it worked.
9305 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9306 lt_cv_apple_cc_single_mod=yes
9307 else
9308 cat conftest.err >&5
9309 fi
9310 rm -rf libconftest.dylib*
9311 rm -f conftest.*
9312 fi
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9315 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9316
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9318 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9319 if test ${lt_cv_ld_exported_symbols_list+y}
9320 then :
9321 printf %s "(cached) " >&6
9322 else $as_nop
9323 lt_cv_ld_exported_symbols_list=no
9324 save_LDFLAGS=$LDFLAGS
9325 echo "_main" > conftest.sym
9326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329
9330 int
9331 main (void)
9332 {
9333
9334 ;
9335 return 0;
9336 }
9337 _ACEOF
9338 if ac_fn_c_try_link "$LINENO"
9339 then :
9340 lt_cv_ld_exported_symbols_list=yes
9341 else $as_nop
9342 lt_cv_ld_exported_symbols_list=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LDFLAGS="$save_LDFLAGS"
9347
9348 fi
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9350 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9351
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9353 printf %s "checking for -force_load linker flag... " >&6; }
9354 if test ${lt_cv_ld_force_load+y}
9355 then :
9356 printf %s "(cached) " >&6
9357 else $as_nop
9358 lt_cv_ld_force_load=no
9359 cat > conftest.c << _LT_EOF
9360 int forced_loaded() { return 2;}
9361 _LT_EOF
9362 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9363 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9364 echo "$AR cru libconftest.a conftest.o" >&5
9365 $AR cru libconftest.a conftest.o 2>&5
9366 echo "$RANLIB libconftest.a" >&5
9367 $RANLIB libconftest.a 2>&5
9368 cat > conftest.c << _LT_EOF
9369 int main() { return 0;}
9370 _LT_EOF
9371 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9372 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9373 _lt_result=$?
9374 if test -s conftest.err && $GREP force_load conftest.err; then
9375 cat conftest.err >&5
9376 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9377 lt_cv_ld_force_load=yes
9378 else
9379 cat conftest.err >&5
9380 fi
9381 rm -f conftest.err libconftest.a conftest conftest.c
9382 rm -rf conftest.dSYM
9383
9384 fi
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9386 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9387 case $host_os in
9388 rhapsody* | darwin1.[012])
9389 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9390 darwin1.*)
9391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9392 darwin*) # darwin 5.x on
9393 # if running on 10.5 or later, the deployment target defaults
9394 # to the OS version, if on x86, and 10.4, the deployment
9395 # target defaults to 10.4. Don't you love it?
9396 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9397 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9398 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9399 10.[012]*)
9400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9401 10.*)
9402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9403 esac
9404 ;;
9405 esac
9406 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9407 _lt_dar_single_mod='$single_module'
9408 fi
9409 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9410 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9411 else
9412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9413 fi
9414 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9415 _lt_dsymutil='~$DSYMUTIL $lib || :'
9416 else
9417 _lt_dsymutil=
9418 fi
9419 ;;
9420 esac
9421
9422 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9423 "
9424 if test "x$ac_cv_header_dlfcn_h" = xyes
9425 then :
9426 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9427
9428 fi
9429
9430
9431
9432
9433
9434 # Set options
9435
9436
9437
9438 enable_dlopen=no
9439
9440
9441 enable_win32_dll=no
9442
9443
9444 # Check whether --enable-shared was given.
9445 if test ${enable_shared+y}
9446 then :
9447 enableval=$enable_shared; p=${PACKAGE-default}
9448 case $enableval in
9449 yes) enable_shared=yes ;;
9450 no) enable_shared=no ;;
9451 *)
9452 enable_shared=no
9453 # Look at the argument we got. We use all the common list separators.
9454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9455 for pkg in $enableval; do
9456 IFS="$lt_save_ifs"
9457 if test "X$pkg" = "X$p"; then
9458 enable_shared=yes
9459 fi
9460 done
9461 IFS="$lt_save_ifs"
9462 ;;
9463 esac
9464 else $as_nop
9465 enable_shared=yes
9466 fi
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476 # Check whether --enable-static was given.
9477 if test ${enable_static+y}
9478 then :
9479 enableval=$enable_static; p=${PACKAGE-default}
9480 case $enableval in
9481 yes) enable_static=yes ;;
9482 no) enable_static=no ;;
9483 *)
9484 enable_static=no
9485 # Look at the argument we got. We use all the common list separators.
9486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9487 for pkg in $enableval; do
9488 IFS="$lt_save_ifs"
9489 if test "X$pkg" = "X$p"; then
9490 enable_static=yes
9491 fi
9492 done
9493 IFS="$lt_save_ifs"
9494 ;;
9495 esac
9496 else $as_nop
9497 enable_static=yes
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 # Check whether --with-pic was given.
9510 if test ${with_pic+y}
9511 then :
9512 withval=$with_pic; lt_p=${PACKAGE-default}
9513 case $withval in
9514 yes|no) pic_mode=$withval ;;
9515 *)
9516 pic_mode=default
9517 # Look at the argument we got. We use all the common list separators.
9518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9519 for lt_pkg in $withval; do
9520 IFS="$lt_save_ifs"
9521 if test "X$lt_pkg" = "X$lt_p"; then
9522 pic_mode=yes
9523 fi
9524 done
9525 IFS="$lt_save_ifs"
9526 ;;
9527 esac
9528 else $as_nop
9529 pic_mode=default
9530 fi
9531
9532
9533 test -z "$pic_mode" && pic_mode=default
9534
9535
9536
9537
9538
9539
9540
9541 # Check whether --enable-fast-install was given.
9542 if test ${enable_fast_install+y}
9543 then :
9544 enableval=$enable_fast_install; p=${PACKAGE-default}
9545 case $enableval in
9546 yes) enable_fast_install=yes ;;
9547 no) enable_fast_install=no ;;
9548 *)
9549 enable_fast_install=no
9550 # Look at the argument we got. We use all the common list separators.
9551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9552 for pkg in $enableval; do
9553 IFS="$lt_save_ifs"
9554 if test "X$pkg" = "X$p"; then
9555 enable_fast_install=yes
9556 fi
9557 done
9558 IFS="$lt_save_ifs"
9559 ;;
9560 esac
9561 else $as_nop
9562 enable_fast_install=yes
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 # This can be used to rebuild libtool when needed
9576 LIBTOOL_DEPS="$ltmain"
9577
9578 # Always use our own libtool.
9579 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 test -z "$LN_S" && LN_S="ln -s"
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625 if test -n "${ZSH_VERSION+set}" ; then
9626 setopt NO_GLOB_SUBST
9627 fi
9628
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9630 printf %s "checking for objdir... " >&6; }
9631 if test ${lt_cv_objdir+y}
9632 then :
9633 printf %s "(cached) " >&6
9634 else $as_nop
9635 rm -f .libs 2>/dev/null
9636 mkdir .libs 2>/dev/null
9637 if test -d .libs; then
9638 lt_cv_objdir=.libs
9639 else
9640 # MS-DOS does not allow filenames that begin with a dot.
9641 lt_cv_objdir=_libs
9642 fi
9643 rmdir .libs 2>/dev/null
9644 fi
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9646 printf "%s\n" "$lt_cv_objdir" >&6; }
9647 objdir=$lt_cv_objdir
9648
9649
9650
9651
9652
9653 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9654
9655
9656
9657
9658 case $host_os in
9659 aix3*)
9660 # AIX sometimes has problems with the GCC collect2 program. For some
9661 # reason, if we set the COLLECT_NAMES environment variable, the problems
9662 # vanish in a puff of smoke.
9663 if test "X${COLLECT_NAMES+set}" != Xset; then
9664 COLLECT_NAMES=
9665 export COLLECT_NAMES
9666 fi
9667 ;;
9668 esac
9669
9670 # Global variables:
9671 ofile=libtool
9672 can_build_shared=yes
9673
9674 # All known linkers require a `.a' archive for static linking (except MSVC,
9675 # which needs '.lib').
9676 libext=a
9677
9678 with_gnu_ld="$lt_cv_prog_gnu_ld"
9679
9680 old_CC="$CC"
9681 old_CFLAGS="$CFLAGS"
9682
9683 # Set sane defaults for various variables
9684 test -z "$CC" && CC=cc
9685 test -z "$LTCC" && LTCC=$CC
9686 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9687 test -z "$LD" && LD=ld
9688 test -z "$ac_objext" && ac_objext=o
9689
9690 for cc_temp in $compiler""; do
9691 case $cc_temp in
9692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9694 \-*) ;;
9695 *) break;;
9696 esac
9697 done
9698 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9699
9700
9701 # Only perform the check for file, if the check method requires it
9702 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9703 case $deplibs_check_method in
9704 file_magic*)
9705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9707 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9708 if test ${lt_cv_path_MAGIC_CMD+y}
9709 then :
9710 printf %s "(cached) " >&6
9711 else $as_nop
9712 case $MAGIC_CMD in
9713 [\\/*] | ?:[\\/]*)
9714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9715 ;;
9716 *)
9717 lt_save_MAGIC_CMD="$MAGIC_CMD"
9718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9720 for ac_dir in $ac_dummy; do
9721 IFS="$lt_save_ifs"
9722 test -z "$ac_dir" && ac_dir=.
9723 if test -f $ac_dir/${ac_tool_prefix}file; then
9724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9725 if test -n "$file_magic_test_file"; then
9726 case $deplibs_check_method in
9727 "file_magic "*)
9728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9731 $EGREP "$file_magic_regex" > /dev/null; then
9732 :
9733 else
9734 cat <<_LT_EOF 1>&2
9735
9736 *** Warning: the command libtool uses to detect shared libraries,
9737 *** $file_magic_cmd, produces output that libtool cannot recognize.
9738 *** The result is that libtool may fail to recognize shared libraries
9739 *** as such. This will affect the creation of libtool libraries that
9740 *** depend on shared libraries, but programs linked with such libtool
9741 *** libraries will work regardless of this problem. Nevertheless, you
9742 *** may want to report the problem to your system manager and/or to
9743 *** [email protected]
9744
9745 _LT_EOF
9746 fi ;;
9747 esac
9748 fi
9749 break
9750 fi
9751 done
9752 IFS="$lt_save_ifs"
9753 MAGIC_CMD="$lt_save_MAGIC_CMD"
9754 ;;
9755 esac
9756 fi
9757
9758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9759 if test -n "$MAGIC_CMD"; then
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9761 printf "%s\n" "$MAGIC_CMD" >&6; }
9762 else
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 printf "%s\n" "no" >&6; }
9765 fi
9766
9767
9768
9769
9770
9771 if test -z "$lt_cv_path_MAGIC_CMD"; then
9772 if test -n "$ac_tool_prefix"; then
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9774 printf %s "checking for file... " >&6; }
9775 if test ${lt_cv_path_MAGIC_CMD+y}
9776 then :
9777 printf %s "(cached) " >&6
9778 else $as_nop
9779 case $MAGIC_CMD in
9780 [\\/*] | ?:[\\/]*)
9781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9782 ;;
9783 *)
9784 lt_save_MAGIC_CMD="$MAGIC_CMD"
9785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9787 for ac_dir in $ac_dummy; do
9788 IFS="$lt_save_ifs"
9789 test -z "$ac_dir" && ac_dir=.
9790 if test -f $ac_dir/file; then
9791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9792 if test -n "$file_magic_test_file"; then
9793 case $deplibs_check_method in
9794 "file_magic "*)
9795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9798 $EGREP "$file_magic_regex" > /dev/null; then
9799 :
9800 else
9801 cat <<_LT_EOF 1>&2
9802
9803 *** Warning: the command libtool uses to detect shared libraries,
9804 *** $file_magic_cmd, produces output that libtool cannot recognize.
9805 *** The result is that libtool may fail to recognize shared libraries
9806 *** as such. This will affect the creation of libtool libraries that
9807 *** depend on shared libraries, but programs linked with such libtool
9808 *** libraries will work regardless of this problem. Nevertheless, you
9809 *** may want to report the problem to your system manager and/or to
9810 *** [email protected]
9811
9812 _LT_EOF
9813 fi ;;
9814 esac
9815 fi
9816 break
9817 fi
9818 done
9819 IFS="$lt_save_ifs"
9820 MAGIC_CMD="$lt_save_MAGIC_CMD"
9821 ;;
9822 esac
9823 fi
9824
9825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9826 if test -n "$MAGIC_CMD"; then
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9828 printf "%s\n" "$MAGIC_CMD" >&6; }
9829 else
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 printf "%s\n" "no" >&6; }
9832 fi
9833
9834
9835 else
9836 MAGIC_CMD=:
9837 fi
9838 fi
9839
9840 fi
9841 ;;
9842 esac
9843
9844 # Use C for the default configuration in the libtool script
9845
9846 lt_save_CC="$CC"
9847 ac_ext=c
9848 ac_cpp='$CPP $CPPFLAGS'
9849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852
9853
9854 # Source file extension for C test sources.
9855 ac_ext=c
9856
9857 # Object file extension for compiled C test sources.
9858 objext=o
9859 objext=$objext
9860
9861 # Code to be used in simple compile tests
9862 lt_simple_compile_test_code="int some_variable = 0;"
9863
9864 # Code to be used in simple link tests
9865 lt_simple_link_test_code='int main(){return(0);}'
9866
9867
9868
9869
9870
9871
9872
9873 # If no C compiler was specified, use CC.
9874 LTCC=${LTCC-"$CC"}
9875
9876 # If no C compiler flags were specified, use CFLAGS.
9877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9878
9879 # Allow CC to be a program name with arguments.
9880 compiler=$CC
9881
9882 # Save the default compiler, since it gets overwritten when the other
9883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9884 compiler_DEFAULT=$CC
9885
9886 # save warnings/boilerplate of simple test code
9887 ac_outfile=conftest.$ac_objext
9888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9890 _lt_compiler_boilerplate=`cat conftest.err`
9891 $RM conftest*
9892
9893 ac_outfile=conftest.$ac_objext
9894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9896 _lt_linker_boilerplate=`cat conftest.err`
9897 $RM -r conftest*
9898
9899
9900 ## CAVEAT EMPTOR:
9901 ## There is no encapsulation within the following macros, do not change
9902 ## the running order or otherwise move them around unless you know exactly
9903 ## what you are doing...
9904 if test -n "$compiler"; then
9905
9906 lt_prog_compiler_no_builtin_flag=
9907
9908 if test "$GCC" = yes; then
9909 case $cc_basename in
9910 nvcc*)
9911 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9912 *)
9913 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9914 esac
9915
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9917 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9918 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else $as_nop
9922 lt_cv_prog_compiler_rtti_exceptions=no
9923 ac_outfile=conftest.$ac_objext
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925 lt_compiler_flag="-fno-rtti -fno-exceptions"
9926 # Insert the option either (1) after the last *FLAGS variable, or
9927 # (2) before a word containing "conftest.", or (3) at the end.
9928 # Note that $ac_compile itself does not contain backslashes and begins
9929 # with a dollar sign (not a hyphen), so the echo should work correctly.
9930 # The option is referenced via a variable to avoid confusing sed.
9931 lt_compile=`echo "$ac_compile" | $SED \
9932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934 -e 's:$: $lt_compiler_flag:'`
9935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9936 (eval "$lt_compile" 2>conftest.err)
9937 ac_status=$?
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 if (exit $ac_status) && test -s "$ac_outfile"; then
9941 # The compiler can only warn and ignore the option if not recognized
9942 # So say no if there are warnings other than the usual output.
9943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9946 lt_cv_prog_compiler_rtti_exceptions=yes
9947 fi
9948 fi
9949 $RM conftest*
9950
9951 fi
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9953 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9954
9955 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9956 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9957 else
9958 :
9959 fi
9960
9961 fi
9962
9963
9964
9965
9966
9967
9968 lt_prog_compiler_wl=
9969 lt_prog_compiler_pic=
9970 lt_prog_compiler_static=
9971
9972
9973 if test "$GCC" = yes; then
9974 lt_prog_compiler_wl='-Wl,'
9975 lt_prog_compiler_static='-static'
9976
9977 case $host_os in
9978 aix*)
9979 # All AIX code is PIC.
9980 if test "$host_cpu" = ia64; then
9981 # AIX 5 now supports IA64 processor
9982 lt_prog_compiler_static='-Bstatic'
9983 fi
9984 ;;
9985
9986 amigaos*)
9987 case $host_cpu in
9988 powerpc)
9989 # see comment about AmigaOS4 .so support
9990 lt_prog_compiler_pic='-fPIC'
9991 ;;
9992 m68k)
9993 # FIXME: we need at least 68020 code to build shared libraries, but
9994 # adding the `-m68020' flag to GCC prevents building anything better,
9995 # like `-m68040'.
9996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9997 ;;
9998 esac
9999 ;;
10000
10001 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10002 # PIC is the default for these OSes.
10003 ;;
10004
10005 mingw* | cygwin* | pw32* | os2* | cegcc*)
10006 # This hack is so that the source file can tell whether it is being
10007 # built for inclusion in a dll (and should export symbols for example).
10008 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10009 # (--disable-auto-import) libraries
10010 lt_prog_compiler_pic='-DDLL_EXPORT'
10011 ;;
10012
10013 darwin* | rhapsody*)
10014 # PIC is the default on this platform
10015 # Common symbols not allowed in MH_DYLIB files
10016 lt_prog_compiler_pic='-fno-common'
10017 ;;
10018
10019 haiku*)
10020 # PIC is the default for Haiku.
10021 # The "-static" flag exists, but is broken.
10022 lt_prog_compiler_static=
10023 ;;
10024
10025 hpux*)
10026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10028 # sets the default TLS model and affects inlining.
10029 case $host_cpu in
10030 hppa*64*)
10031 # +Z the default
10032 ;;
10033 *)
10034 lt_prog_compiler_pic='-fPIC'
10035 ;;
10036 esac
10037 ;;
10038
10039 interix[3-9]*)
10040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10041 # Instead, we relocate shared libraries at runtime.
10042 ;;
10043
10044 msdosdjgpp*)
10045 # Just because we use GCC doesn't mean we suddenly get shared libraries
10046 # on systems that don't support them.
10047 lt_prog_compiler_can_build_shared=no
10048 enable_shared=no
10049 ;;
10050
10051 *nto* | *qnx*)
10052 # QNX uses GNU C++, but need to define -shared option too, otherwise
10053 # it will coredump.
10054 lt_prog_compiler_pic='-fPIC -shared'
10055 ;;
10056
10057 sysv4*MP*)
10058 if test -d /usr/nec; then
10059 lt_prog_compiler_pic=-Kconform_pic
10060 fi
10061 ;;
10062
10063 *)
10064 lt_prog_compiler_pic='-fPIC'
10065 ;;
10066 esac
10067
10068 case $cc_basename in
10069 nvcc*) # Cuda Compiler Driver 2.2
10070 lt_prog_compiler_wl='-Xlinker '
10071 if test -n "$lt_prog_compiler_pic"; then
10072 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10073 fi
10074 ;;
10075 esac
10076 else
10077 # PORTME Check for flag to pass linker flags through the system compiler.
10078 case $host_os in
10079 aix*)
10080 lt_prog_compiler_wl='-Wl,'
10081 if test "$host_cpu" = ia64; then
10082 # AIX 5 now supports IA64 processor
10083 lt_prog_compiler_static='-Bstatic'
10084 else
10085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10086 fi
10087 ;;
10088
10089 mingw* | cygwin* | pw32* | os2* | cegcc*)
10090 # This hack is so that the source file can tell whether it is being
10091 # built for inclusion in a dll (and should export symbols for example).
10092 lt_prog_compiler_pic='-DDLL_EXPORT'
10093 ;;
10094
10095 hpux9* | hpux10* | hpux11*)
10096 lt_prog_compiler_wl='-Wl,'
10097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10098 # not for PA HP-UX.
10099 case $host_cpu in
10100 hppa*64*|ia64*)
10101 # +Z the default
10102 ;;
10103 *)
10104 lt_prog_compiler_pic='+Z'
10105 ;;
10106 esac
10107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10108 lt_prog_compiler_static='${wl}-a ${wl}archive'
10109 ;;
10110
10111 irix5* | irix6* | nonstopux*)
10112 lt_prog_compiler_wl='-Wl,'
10113 # PIC (with -KPIC) is the default.
10114 lt_prog_compiler_static='-non_shared'
10115 ;;
10116
10117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10118 case $cc_basename in
10119 # old Intel for x86_64 which still supported -KPIC.
10120 ecc*)
10121 lt_prog_compiler_wl='-Wl,'
10122 lt_prog_compiler_pic='-KPIC'
10123 lt_prog_compiler_static='-static'
10124 ;;
10125 # icc used to be incompatible with GCC.
10126 # ICC 10 doesn't accept -KPIC any more.
10127 icc* | ifort*)
10128 lt_prog_compiler_wl='-Wl,'
10129 lt_prog_compiler_pic='-fPIC'
10130 lt_prog_compiler_static='-static'
10131 ;;
10132 # Lahey Fortran 8.1.
10133 lf95*)
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='--shared'
10136 lt_prog_compiler_static='--static'
10137 ;;
10138 nagfor*)
10139 # NAG Fortran compiler
10140 lt_prog_compiler_wl='-Wl,-Wl,,'
10141 lt_prog_compiler_pic='-PIC'
10142 lt_prog_compiler_static='-Bstatic'
10143 ;;
10144 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10145 # Portland Group compilers (*not* the Pentium gcc compiler,
10146 # which looks to be a dead project)
10147 lt_prog_compiler_wl='-Wl,'
10148 lt_prog_compiler_pic='-fpic'
10149 lt_prog_compiler_static='-Bstatic'
10150 ;;
10151 ccc*)
10152 lt_prog_compiler_wl='-Wl,'
10153 # All Alpha code is PIC.
10154 lt_prog_compiler_static='-non_shared'
10155 ;;
10156 xl* | bgxl* | bgf* | mpixl*)
10157 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10158 lt_prog_compiler_wl='-Wl,'
10159 lt_prog_compiler_pic='-qpic'
10160 lt_prog_compiler_static='-qstaticlink'
10161 ;;
10162 *)
10163 case `$CC -V 2>&1 | sed 5q` in
10164 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10165 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10166 lt_prog_compiler_pic='-KPIC'
10167 lt_prog_compiler_static='-Bstatic'
10168 lt_prog_compiler_wl=''
10169 ;;
10170 *Sun\ F* | *Sun*Fortran*)
10171 lt_prog_compiler_pic='-KPIC'
10172 lt_prog_compiler_static='-Bstatic'
10173 lt_prog_compiler_wl='-Qoption ld '
10174 ;;
10175 *Sun\ C*)
10176 # Sun C 5.9
10177 lt_prog_compiler_pic='-KPIC'
10178 lt_prog_compiler_static='-Bstatic'
10179 lt_prog_compiler_wl='-Wl,'
10180 ;;
10181 *Intel*\ [CF]*Compiler*)
10182 lt_prog_compiler_wl='-Wl,'
10183 lt_prog_compiler_pic='-fPIC'
10184 lt_prog_compiler_static='-static'
10185 ;;
10186 *Portland\ Group*)
10187 lt_prog_compiler_wl='-Wl,'
10188 lt_prog_compiler_pic='-fpic'
10189 lt_prog_compiler_static='-Bstatic'
10190 ;;
10191 esac
10192 ;;
10193 esac
10194 ;;
10195
10196 newsos6)
10197 lt_prog_compiler_pic='-KPIC'
10198 lt_prog_compiler_static='-Bstatic'
10199 ;;
10200
10201 *nto* | *qnx*)
10202 # QNX uses GNU C++, but need to define -shared option too, otherwise
10203 # it will coredump.
10204 lt_prog_compiler_pic='-fPIC -shared'
10205 ;;
10206
10207 osf3* | osf4* | osf5*)
10208 lt_prog_compiler_wl='-Wl,'
10209 # All OSF/1 code is PIC.
10210 lt_prog_compiler_static='-non_shared'
10211 ;;
10212
10213 rdos*)
10214 lt_prog_compiler_static='-non_shared'
10215 ;;
10216
10217 solaris*)
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-Bstatic'
10220 case $cc_basename in
10221 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10222 lt_prog_compiler_wl='-Qoption ld ';;
10223 *)
10224 lt_prog_compiler_wl='-Wl,';;
10225 esac
10226 ;;
10227
10228 sunos4*)
10229 lt_prog_compiler_wl='-Qoption ld '
10230 lt_prog_compiler_pic='-PIC'
10231 lt_prog_compiler_static='-Bstatic'
10232 ;;
10233
10234 sysv4 | sysv4.2uw2* | sysv4.3*)
10235 lt_prog_compiler_wl='-Wl,'
10236 lt_prog_compiler_pic='-KPIC'
10237 lt_prog_compiler_static='-Bstatic'
10238 ;;
10239
10240 sysv4*MP*)
10241 if test -d /usr/nec ;then
10242 lt_prog_compiler_pic='-Kconform_pic'
10243 lt_prog_compiler_static='-Bstatic'
10244 fi
10245 ;;
10246
10247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10248 lt_prog_compiler_wl='-Wl,'
10249 lt_prog_compiler_pic='-KPIC'
10250 lt_prog_compiler_static='-Bstatic'
10251 ;;
10252
10253 unicos*)
10254 lt_prog_compiler_wl='-Wl,'
10255 lt_prog_compiler_can_build_shared=no
10256 ;;
10257
10258 uts4*)
10259 lt_prog_compiler_pic='-pic'
10260 lt_prog_compiler_static='-Bstatic'
10261 ;;
10262
10263 *)
10264 lt_prog_compiler_can_build_shared=no
10265 ;;
10266 esac
10267 fi
10268
10269 case $host_os in
10270 # For platforms which do not support PIC, -DPIC is meaningless:
10271 *djgpp*)
10272 lt_prog_compiler_pic=
10273 ;;
10274 *)
10275 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10276 ;;
10277 esac
10278
10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10280 printf %s "checking for $compiler option to produce PIC... " >&6; }
10281 if test ${lt_cv_prog_compiler_pic+y}
10282 then :
10283 printf %s "(cached) " >&6
10284 else $as_nop
10285 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10286 fi
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10288 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10289 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10290
10291 #
10292 # Check to make sure the PIC flag actually works.
10293 #
10294 if test -n "$lt_prog_compiler_pic"; then
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10296 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10297 if test ${lt_cv_prog_compiler_pic_works+y}
10298 then :
10299 printf %s "(cached) " >&6
10300 else $as_nop
10301 lt_cv_prog_compiler_pic_works=no
10302 ac_outfile=conftest.$ac_objext
10303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10305 # Insert the option either (1) after the last *FLAGS variable, or
10306 # (2) before a word containing "conftest.", or (3) at the end.
10307 # Note that $ac_compile itself does not contain backslashes and begins
10308 # with a dollar sign (not a hyphen), so the echo should work correctly.
10309 # The option is referenced via a variable to avoid confusing sed.
10310 lt_compile=`echo "$ac_compile" | $SED \
10311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10313 -e 's:$: $lt_compiler_flag:'`
10314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10315 (eval "$lt_compile" 2>conftest.err)
10316 ac_status=$?
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 if (exit $ac_status) && test -s "$ac_outfile"; then
10320 # The compiler can only warn and ignore the option if not recognized
10321 # So say no if there are warnings other than the usual output.
10322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10325 lt_cv_prog_compiler_pic_works=yes
10326 fi
10327 fi
10328 $RM conftest*
10329
10330 fi
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10332 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10333
10334 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10335 case $lt_prog_compiler_pic in
10336 "" | " "*) ;;
10337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10338 esac
10339 else
10340 lt_prog_compiler_pic=
10341 lt_prog_compiler_can_build_shared=no
10342 fi
10343
10344 fi
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 #
10357 # Check to make sure the static flag actually works.
10358 #
10359 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10361 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10362 if test ${lt_cv_prog_compiler_static_works+y}
10363 then :
10364 printf %s "(cached) " >&6
10365 else $as_nop
10366 lt_cv_prog_compiler_static_works=no
10367 save_LDFLAGS="$LDFLAGS"
10368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371 # The linker can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 if test -s conftest.err; then
10374 # Append any errors to the config.log.
10375 cat conftest.err 1>&5
10376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler_static_works=yes
10380 fi
10381 else
10382 lt_cv_prog_compiler_static_works=yes
10383 fi
10384 fi
10385 $RM -r conftest*
10386 LDFLAGS="$save_LDFLAGS"
10387
10388 fi
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10391
10392 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10393 :
10394 else
10395 lt_prog_compiler_static=
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406 if test ${lt_cv_prog_compiler_c_o+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else $as_nop
10410 lt_cv_prog_compiler_c_o=no
10411 $RM -r conftest 2>/dev/null
10412 mkdir conftest
10413 cd conftest
10414 mkdir out
10415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416
10417 lt_compiler_flag="-o out/conftest2.$ac_objext"
10418 # Insert the option either (1) after the last *FLAGS variable, or
10419 # (2) before a word containing "conftest.", or (3) at the end.
10420 # Note that $ac_compile itself does not contain backslashes and begins
10421 # with a dollar sign (not a hyphen), so the echo should work correctly.
10422 lt_compile=`echo "$ac_compile" | $SED \
10423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425 -e 's:$: $lt_compiler_flag:'`
10426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10427 (eval "$lt_compile" 2>out/conftest.err)
10428 ac_status=$?
10429 cat out/conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10432 then
10433 # The compiler can only warn and ignore the option if not recognized
10434 # So say no if there are warnings
10435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10438 lt_cv_prog_compiler_c_o=yes
10439 fi
10440 fi
10441 chmod u+w . 2>&5
10442 $RM conftest*
10443 # SGI C++ compiler will create directory out/ii_files/ for
10444 # template instantiation
10445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10446 $RM out/* && rmdir out
10447 cd ..
10448 $RM -r conftest
10449 $RM conftest*
10450
10451 fi
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10453 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10454
10455
10456
10457
10458
10459
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10461 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10462 if test ${lt_cv_prog_compiler_c_o+y}
10463 then :
10464 printf %s "(cached) " >&6
10465 else $as_nop
10466 lt_cv_prog_compiler_c_o=no
10467 $RM -r conftest 2>/dev/null
10468 mkdir conftest
10469 cd conftest
10470 mkdir out
10471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10472
10473 lt_compiler_flag="-o out/conftest2.$ac_objext"
10474 # Insert the option either (1) after the last *FLAGS variable, or
10475 # (2) before a word containing "conftest.", or (3) at the end.
10476 # Note that $ac_compile itself does not contain backslashes and begins
10477 # with a dollar sign (not a hyphen), so the echo should work correctly.
10478 lt_compile=`echo "$ac_compile" | $SED \
10479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10481 -e 's:$: $lt_compiler_flag:'`
10482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10483 (eval "$lt_compile" 2>out/conftest.err)
10484 ac_status=$?
10485 cat out/conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10488 then
10489 # The compiler can only warn and ignore the option if not recognized
10490 # So say no if there are warnings
10491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10494 lt_cv_prog_compiler_c_o=yes
10495 fi
10496 fi
10497 chmod u+w . 2>&5
10498 $RM conftest*
10499 # SGI C++ compiler will create directory out/ii_files/ for
10500 # template instantiation
10501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10502 $RM out/* && rmdir out
10503 cd ..
10504 $RM -r conftest
10505 $RM conftest*
10506
10507 fi
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10509 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10510
10511
10512
10513
10514 hard_links="nottested"
10515 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10516 # do not overwrite the value of need_locks provided by the user
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10518 printf %s "checking if we can lock with hard links... " >&6; }
10519 hard_links=yes
10520 $RM conftest*
10521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10522 touch conftest.a
10523 ln conftest.a conftest.b 2>&5 || hard_links=no
10524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10526 printf "%s\n" "$hard_links" >&6; }
10527 if test "$hard_links" = no; then
10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10529 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10530 need_locks=warn
10531 fi
10532 else
10533 need_locks=no
10534 fi
10535
10536
10537
10538
10539
10540
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10542 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10543
10544 runpath_var=
10545 allow_undefined_flag=
10546 always_export_symbols=no
10547 archive_cmds=
10548 archive_expsym_cmds=
10549 compiler_needs_object=no
10550 enable_shared_with_static_runtimes=no
10551 export_dynamic_flag_spec=
10552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10553 hardcode_automatic=no
10554 hardcode_direct=no
10555 hardcode_direct_absolute=no
10556 hardcode_libdir_flag_spec=
10557 hardcode_libdir_separator=
10558 hardcode_minus_L=no
10559 hardcode_shlibpath_var=unsupported
10560 inherit_rpath=no
10561 link_all_deplibs=unknown
10562 module_cmds=
10563 module_expsym_cmds=
10564 old_archive_from_new_cmds=
10565 old_archive_from_expsyms_cmds=
10566 thread_safe_flag_spec=
10567 whole_archive_flag_spec=
10568 # include_expsyms should be a list of space-separated symbols to be *always*
10569 # included in the symbol list
10570 include_expsyms=
10571 # exclude_expsyms can be an extended regexp of symbols to exclude
10572 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10574 # as well as any symbol that contains `d'.
10575 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10577 # platforms (ab)use it in PIC code, but their linkers get confused if
10578 # the symbol is explicitly referenced. Since portable code cannot
10579 # rely on this symbol name, it's probably fine to never include it in
10580 # preloaded symbol tables.
10581 # Exclude shared library initialization/finalization symbols.
10582 extract_expsyms_cmds=
10583
10584 case $host_os in
10585 cygwin* | mingw* | pw32* | cegcc*)
10586 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10587 # When not using gcc, we currently assume that we are using
10588 # Microsoft Visual C++.
10589 if test "$GCC" != yes; then
10590 with_gnu_ld=no
10591 fi
10592 ;;
10593 interix*)
10594 # we just hope/assume this is gcc and not c89 (= MSVC++)
10595 with_gnu_ld=yes
10596 ;;
10597 openbsd*)
10598 with_gnu_ld=no
10599 ;;
10600 esac
10601
10602 ld_shlibs=yes
10603
10604 # On some targets, GNU ld is compatible enough with the native linker
10605 # that we're better off using the native interface for both.
10606 lt_use_gnu_ld_interface=no
10607 if test "$with_gnu_ld" = yes; then
10608 case $host_os in
10609 aix*)
10610 # The AIX port of GNU ld has always aspired to compatibility
10611 # with the native linker. However, as the warning in the GNU ld
10612 # block says, versions before 2.19.5* couldn't really create working
10613 # shared libraries, regardless of the interface used.
10614 case `$LD -v 2>&1` in
10615 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10616 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10617 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10618 *)
10619 lt_use_gnu_ld_interface=yes
10620 ;;
10621 esac
10622 ;;
10623 *)
10624 lt_use_gnu_ld_interface=yes
10625 ;;
10626 esac
10627 fi
10628
10629 if test "$lt_use_gnu_ld_interface" = yes; then
10630 # If archive_cmds runs LD, not CC, wlarc should be empty
10631 wlarc='${wl}'
10632
10633 # Set some defaults for GNU ld with shared library support. These
10634 # are reset later if shared libraries are not supported. Putting them
10635 # here allows them to be overridden if necessary.
10636 runpath_var=LD_RUN_PATH
10637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638 export_dynamic_flag_spec='${wl}--export-dynamic'
10639 # ancient GNU ld didn't support --whole-archive et. al.
10640 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10641 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10642 else
10643 whole_archive_flag_spec=
10644 fi
10645 supports_anon_versioning=no
10646 case `$LD -v 2>&1` in
10647 *GNU\ gold*) supports_anon_versioning=yes ;;
10648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10651 *\ 2.11.*) ;; # other 2.11 versions
10652 *) supports_anon_versioning=yes ;;
10653 esac
10654
10655 # See if GNU ld supports shared libraries.
10656 case $host_os in
10657 aix[3-9]*)
10658 # On AIX/PPC, the GNU linker is very broken
10659 if test "$host_cpu" != ia64; then
10660 ld_shlibs=no
10661 cat <<_LT_EOF 1>&2
10662
10663 *** Warning: the GNU linker, at least up to release 2.19, is reported
10664 *** to be unable to reliably create shared libraries on AIX.
10665 *** Therefore, libtool is disabling shared libraries support. If you
10666 *** really care for shared libraries, you may want to install binutils
10667 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10668 *** You will then need to restart the configuration process.
10669
10670 _LT_EOF
10671 fi
10672 ;;
10673
10674 amigaos*)
10675 case $host_cpu in
10676 powerpc)
10677 # see comment about AmigaOS4 .so support
10678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10679 archive_expsym_cmds=''
10680 ;;
10681 m68k)
10682 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)'
10683 hardcode_libdir_flag_spec='-L$libdir'
10684 hardcode_minus_L=yes
10685 ;;
10686 esac
10687 ;;
10688
10689 beos*)
10690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10691 allow_undefined_flag=unsupported
10692 # Joseph Beckenbach <[email protected]> says some releases of gcc
10693 # support --undefined. This deserves some investigation. FIXME
10694 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10695 else
10696 ld_shlibs=no
10697 fi
10698 ;;
10699
10700 cygwin* | mingw* | pw32* | cegcc*)
10701 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10702 # as there is no search path for DLLs.
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 export_dynamic_flag_spec='${wl}--export-all-symbols'
10705 allow_undefined_flag=unsupported
10706 always_export_symbols=no
10707 enable_shared_with_static_runtimes=yes
10708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10709 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10710
10711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10713 # If the export-symbols file already is a .def file (1st line
10714 # is EXPORTS), use it as is; otherwise, prepend...
10715 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10716 cp $export_symbols $output_objdir/$soname.def;
10717 else
10718 echo EXPORTS > $output_objdir/$soname.def;
10719 cat $export_symbols >> $output_objdir/$soname.def;
10720 fi~
10721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10722 else
10723 ld_shlibs=no
10724 fi
10725 ;;
10726
10727 haiku*)
10728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10729 link_all_deplibs=yes
10730 ;;
10731
10732 interix[3-9]*)
10733 hardcode_direct=no
10734 hardcode_shlibpath_var=no
10735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10736 export_dynamic_flag_spec='${wl}-E'
10737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10738 # Instead, shared libraries are loaded at an image base (0x10000000 by
10739 # default) and relocated if they conflict, which is a slow very memory
10740 # consuming and fragmenting process. To avoid this, we pick a random,
10741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10744 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'
10745 ;;
10746
10747 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10748 tmp_diet=no
10749 if test "$host_os" = linux-dietlibc; then
10750 case $cc_basename in
10751 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10752 esac
10753 fi
10754 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10755 && test "$tmp_diet" = no
10756 then
10757 tmp_addflag=' $pic_flag'
10758 tmp_sharedflag='-shared'
10759 case $cc_basename,$host_cpu in
10760 pgcc*) # Portland Group C compiler
10761 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10762 tmp_addflag=' $pic_flag'
10763 ;;
10764 pgf77* | pgf90* | pgf95* | pgfortran*)
10765 # Portland Group f77 and f90 compilers
10766 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10767 tmp_addflag=' $pic_flag -Mnomain' ;;
10768 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10769 tmp_addflag=' -i_dynamic' ;;
10770 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10771 tmp_addflag=' -i_dynamic -nofor_main' ;;
10772 ifc* | ifort*) # Intel Fortran compiler
10773 tmp_addflag=' -nofor_main' ;;
10774 lf95*) # Lahey Fortran 8.1
10775 whole_archive_flag_spec=
10776 tmp_sharedflag='--shared' ;;
10777 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10778 tmp_sharedflag='-qmkshrobj'
10779 tmp_addflag= ;;
10780 nvcc*) # Cuda Compiler Driver 2.2
10781 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10782 compiler_needs_object=yes
10783 ;;
10784 esac
10785 case `$CC -V 2>&1 | sed 5q` in
10786 *Sun\ C*) # Sun C 5.9
10787 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10788 compiler_needs_object=yes
10789 tmp_sharedflag='-G' ;;
10790 *Sun\ F*) # Sun Fortran 8.3
10791 tmp_sharedflag='-G' ;;
10792 esac
10793 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10794
10795 if test "x$supports_anon_versioning" = xyes; then
10796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10798 echo "local: *; };" >> $output_objdir/$libname.ver~
10799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10800 fi
10801
10802 case $cc_basename in
10803 xlf* | bgf* | bgxlf* | mpixlf*)
10804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10808 if test "x$supports_anon_versioning" = xyes; then
10809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10811 echo "local: *; };" >> $output_objdir/$libname.ver~
10812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10813 fi
10814 ;;
10815 esac
10816 else
10817 ld_shlibs=no
10818 fi
10819 ;;
10820
10821 netbsd*)
10822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10824 wlarc=
10825 else
10826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10828 fi
10829 ;;
10830
10831 solaris*)
10832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10833 ld_shlibs=no
10834 cat <<_LT_EOF 1>&2
10835
10836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10837 *** create shared libraries on Solaris systems. Therefore, libtool
10838 *** is disabling shared libraries support. We urge you to upgrade GNU
10839 *** binutils to release 2.9.1 or newer. Another option is to modify
10840 *** your PATH or compiler configuration so that the native linker is
10841 *** used, and then restart.
10842
10843 _LT_EOF
10844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10847 else
10848 ld_shlibs=no
10849 fi
10850 ;;
10851
10852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10853 case `$LD -v 2>&1` in
10854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10855 ld_shlibs=no
10856 cat <<_LT_EOF 1>&2
10857
10858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10859 *** reliably create shared libraries on SCO systems. Therefore, libtool
10860 *** is disabling shared libraries support. We urge you to upgrade GNU
10861 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10862 *** your PATH or compiler configuration so that the native linker is
10863 *** used, and then restart.
10864
10865 _LT_EOF
10866 ;;
10867 *)
10868 # For security reasons, it is highly recommended that you always
10869 # use absolute paths for naming shared libraries, and exclude the
10870 # DT_RUNPATH tag from executables and libraries. But doing so
10871 # requires that you compile everything twice, which is a pain.
10872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10876 else
10877 ld_shlibs=no
10878 fi
10879 ;;
10880 esac
10881 ;;
10882
10883 sunos4*)
10884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10885 wlarc=
10886 hardcode_direct=yes
10887 hardcode_shlibpath_var=no
10888 ;;
10889
10890 *)
10891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10894 else
10895 ld_shlibs=no
10896 fi
10897 ;;
10898 esac
10899
10900 if test "$ld_shlibs" = no; then
10901 runpath_var=
10902 hardcode_libdir_flag_spec=
10903 export_dynamic_flag_spec=
10904 whole_archive_flag_spec=
10905 fi
10906 else
10907 # PORTME fill in a description of your system's linker (not GNU ld)
10908 case $host_os in
10909 aix3*)
10910 allow_undefined_flag=unsupported
10911 always_export_symbols=yes
10912 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'
10913 # Note: this linker hardcodes the directories in LIBPATH if there
10914 # are no directories specified by -L.
10915 hardcode_minus_L=yes
10916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10917 # Neither direct hardcoding nor static linking is supported with a
10918 # broken collect2.
10919 hardcode_direct=unsupported
10920 fi
10921 ;;
10922
10923 aix[4-9]*)
10924 if test "$host_cpu" = ia64; then
10925 # On IA64, the linker does run time linking by default, so we don't
10926 # have to do anything special.
10927 aix_use_runtimelinking=no
10928 exp_sym_flag='-Bexport'
10929 no_entry_flag=""
10930 else
10931 # If we're using GNU nm, then we don't want the "-C" option.
10932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10933 # Also, AIX nm treats weak defined symbols like other global
10934 # defined symbols, whereas GNU nm marks them as "W".
10935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10936 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10937 else
10938 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'
10939 fi
10940 aix_use_runtimelinking=no
10941
10942 # Test if we are trying to use run time linking or normal
10943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10944 # need to do runtime linking.
10945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10946 for ld_flag in $LDFLAGS; do
10947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10948 aix_use_runtimelinking=yes
10949 break
10950 fi
10951 done
10952 ;;
10953 esac
10954
10955 exp_sym_flag='-bexport'
10956 no_entry_flag='-bnoentry'
10957 fi
10958
10959 # When large executables or shared objects are built, AIX ld can
10960 # have problems creating the table of contents. If linking a library
10961 # or program results in "error TOC overflow" add -mminimal-toc to
10962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10964
10965 archive_cmds=''
10966 hardcode_direct=yes
10967 hardcode_direct_absolute=yes
10968 hardcode_libdir_separator=':'
10969 link_all_deplibs=yes
10970 file_list_spec='${wl}-f,'
10971
10972 if test "$GCC" = yes; then
10973 case $host_os in aix4.[012]|aix4.[012].*)
10974 # We only want to do this on AIX 4.2 and lower, the check
10975 # below for broken collect2 doesn't work under 4.3+
10976 collect2name=`${CC} -print-prog-name=collect2`
10977 if test -f "$collect2name" &&
10978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10979 then
10980 # We have reworked collect2
10981 :
10982 else
10983 # We have old collect2
10984 hardcode_direct=unsupported
10985 # It fails to find uninstalled libraries when the uninstalled
10986 # path is not listed in the libpath. Setting hardcode_minus_L
10987 # to unsupported forces relinking
10988 hardcode_minus_L=yes
10989 hardcode_libdir_flag_spec='-L$libdir'
10990 hardcode_libdir_separator=
10991 fi
10992 ;;
10993 esac
10994 shared_flag='-shared'
10995 if test "$aix_use_runtimelinking" = yes; then
10996 shared_flag="$shared_flag "'${wl}-G'
10997 fi
10998 else
10999 # not using gcc
11000 if test "$host_cpu" = ia64; then
11001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11002 # chokes on -Wl,-G. The following line is correct:
11003 shared_flag='-G'
11004 else
11005 if test "$aix_use_runtimelinking" = yes; then
11006 shared_flag='${wl}-G'
11007 else
11008 shared_flag='${wl}-bM:SRE'
11009 fi
11010 fi
11011 fi
11012
11013 export_dynamic_flag_spec='${wl}-bexpall'
11014 # It seems that -bexpall does not export symbols beginning with
11015 # underscore (_), so it is better to generate a list of symbols to export.
11016 always_export_symbols=yes
11017 if test "$aix_use_runtimelinking" = yes; then
11018 # Warning - without using the other runtime loading flags (-brtl),
11019 # -berok will link without error, but may produce a broken library.
11020 allow_undefined_flag='-berok'
11021 # Determine the default libpath from the value encoded in an
11022 # empty executable.
11023 if test "${lt_cv_aix_libpath+set}" = set; then
11024 aix_libpath=$lt_cv_aix_libpath
11025 else
11026 if test ${lt_cv_aix_libpath_+y}
11027 then :
11028 printf %s "(cached) " >&6
11029 else $as_nop
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 int
11034 main (void)
11035 {
11036
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"
11042 then :
11043
11044 lt_aix_libpath_sed='
11045 /Import File Strings/,/^$/ {
11046 /^0/ {
11047 s/^0 *\([^ ]*\) *$/\1/
11048 p
11049 }
11050 }'
11051 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052 # Check for a 64-bit object if we didn't find anything.
11053 if test -z "$lt_cv_aix_libpath_"; then
11054 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11055 fi
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11058 conftest$ac_exeext conftest.$ac_ext
11059 if test -z "$lt_cv_aix_libpath_"; then
11060 lt_cv_aix_libpath_="/usr/lib:/lib"
11061 fi
11062
11063 fi
11064
11065 aix_libpath=$lt_cv_aix_libpath_
11066 fi
11067
11068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11069 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11070 else
11071 if test "$host_cpu" = ia64; then
11072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11073 allow_undefined_flag="-z nodefs"
11074 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"
11075 else
11076 # Determine the default libpath from the value encoded in an
11077 # empty executable.
11078 if test "${lt_cv_aix_libpath+set}" = set; then
11079 aix_libpath=$lt_cv_aix_libpath
11080 else
11081 if test ${lt_cv_aix_libpath_+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else $as_nop
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087
11088 int
11089 main (void)
11090 {
11091
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_link "$LINENO"
11097 then :
11098
11099 lt_aix_libpath_sed='
11100 /Import File Strings/,/^$/ {
11101 /^0/ {
11102 s/^0 *\([^ ]*\) *$/\1/
11103 p
11104 }
11105 }'
11106 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11107 # Check for a 64-bit object if we didn't find anything.
11108 if test -z "$lt_cv_aix_libpath_"; then
11109 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11110 fi
11111 fi
11112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11113 conftest$ac_exeext conftest.$ac_ext
11114 if test -z "$lt_cv_aix_libpath_"; then
11115 lt_cv_aix_libpath_="/usr/lib:/lib"
11116 fi
11117
11118 fi
11119
11120 aix_libpath=$lt_cv_aix_libpath_
11121 fi
11122
11123 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11124 # Warning - without using the other run time loading flags,
11125 # -berok will link without error, but may produce a broken library.
11126 no_undefined_flag=' ${wl}-bernotok'
11127 allow_undefined_flag=' ${wl}-berok'
11128 if test "$with_gnu_ld" = yes; then
11129 # We only use this code for GNU lds that support --whole-archive.
11130 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11131 else
11132 # Exported symbols can be pulled into shared objects from archives
11133 whole_archive_flag_spec='$convenience'
11134 fi
11135 archive_cmds_need_lc=yes
11136 # This is similar to how AIX traditionally builds its shared libraries.
11137 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'
11138 fi
11139 fi
11140 ;;
11141
11142 amigaos*)
11143 case $host_cpu in
11144 powerpc)
11145 # see comment about AmigaOS4 .so support
11146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11147 archive_expsym_cmds=''
11148 ;;
11149 m68k)
11150 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)'
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 hardcode_minus_L=yes
11153 ;;
11154 esac
11155 ;;
11156
11157 bsdi[45]*)
11158 export_dynamic_flag_spec=-rdynamic
11159 ;;
11160
11161 cygwin* | mingw* | pw32* | cegcc*)
11162 # When not using gcc, we currently assume that we are using
11163 # Microsoft Visual C++.
11164 # hardcode_libdir_flag_spec is actually meaningless, as there is
11165 # no search path for DLLs.
11166 case $cc_basename in
11167 cl*)
11168 # Native MSVC
11169 hardcode_libdir_flag_spec=' '
11170 allow_undefined_flag=unsupported
11171 always_export_symbols=yes
11172 file_list_spec='@'
11173 # Tell ltmain to make .lib files, not .a files.
11174 libext=lib
11175 # Tell ltmain to make .dll files, not .so files.
11176 shrext_cmds=".dll"
11177 # FIXME: Setting linknames here is a bad hack.
11178 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11179 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11180 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11181 else
11182 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11183 fi~
11184 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11185 linknames='
11186 # The linker will not automatically build a static lib if we build a DLL.
11187 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11188 enable_shared_with_static_runtimes=yes
11189 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11190 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11191 # Don't use ranlib
11192 old_postinstall_cmds='chmod 644 $oldlib'
11193 postlink_cmds='lt_outputfile="@OUTPUT@"~
11194 lt_tool_outputfile="@TOOL_OUTPUT@"~
11195 case $lt_outputfile in
11196 *.exe|*.EXE) ;;
11197 *)
11198 lt_outputfile="$lt_outputfile.exe"
11199 lt_tool_outputfile="$lt_tool_outputfile.exe"
11200 ;;
11201 esac~
11202 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11203 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11204 $RM "$lt_outputfile.manifest";
11205 fi'
11206 ;;
11207 *)
11208 # Assume MSVC wrapper
11209 hardcode_libdir_flag_spec=' '
11210 allow_undefined_flag=unsupported
11211 # Tell ltmain to make .lib files, not .a files.
11212 libext=lib
11213 # Tell ltmain to make .dll files, not .so files.
11214 shrext_cmds=".dll"
11215 # FIXME: Setting linknames here is a bad hack.
11216 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11217 # The linker will automatically build a .lib file if we build a DLL.
11218 old_archive_from_new_cmds='true'
11219 # FIXME: Should let the user specify the lib program.
11220 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11221 enable_shared_with_static_runtimes=yes
11222 ;;
11223 esac
11224 ;;
11225
11226 darwin* | rhapsody*)
11227
11228
11229 archive_cmds_need_lc=no
11230 hardcode_direct=no
11231 hardcode_automatic=yes
11232 hardcode_shlibpath_var=unsupported
11233 if test "$lt_cv_ld_force_load" = "yes"; then
11234 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11235
11236 else
11237 whole_archive_flag_spec=''
11238 fi
11239 link_all_deplibs=yes
11240 allow_undefined_flag="$_lt_dar_allow_undefined"
11241 case $cc_basename in
11242 ifort*) _lt_dar_can_shared=yes ;;
11243 *) _lt_dar_can_shared=$GCC ;;
11244 esac
11245 if test "$_lt_dar_can_shared" = "yes"; then
11246 output_verbose_link_cmd=func_echo_all
11247 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11248 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11249 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}"
11250 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}"
11251
11252 else
11253 ld_shlibs=no
11254 fi
11255
11256 ;;
11257
11258 dgux*)
11259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11260 hardcode_libdir_flag_spec='-L$libdir'
11261 hardcode_shlibpath_var=no
11262 ;;
11263
11264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11265 # support. Future versions do this automatically, but an explicit c++rt0.o
11266 # does not break anything, and helps significantly (at the cost of a little
11267 # extra space).
11268 freebsd2.2*)
11269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11270 hardcode_libdir_flag_spec='-R$libdir'
11271 hardcode_direct=yes
11272 hardcode_shlibpath_var=no
11273 ;;
11274
11275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11276 freebsd2.*)
11277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_direct=yes
11279 hardcode_minus_L=yes
11280 hardcode_shlibpath_var=no
11281 ;;
11282
11283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11284 freebsd* | dragonfly*)
11285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286 hardcode_libdir_flag_spec='-R$libdir'
11287 hardcode_direct=yes
11288 hardcode_shlibpath_var=no
11289 ;;
11290
11291 hpux9*)
11292 if test "$GCC" = yes; then
11293 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11294 else
11295 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'
11296 fi
11297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11298 hardcode_libdir_separator=:
11299 hardcode_direct=yes
11300
11301 # hardcode_minus_L: Not really in the search PATH,
11302 # but as the default location of the library.
11303 hardcode_minus_L=yes
11304 export_dynamic_flag_spec='${wl}-E'
11305 ;;
11306
11307 hpux10*)
11308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11310 else
11311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11312 fi
11313 if test "$with_gnu_ld" = no; then
11314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_separator=:
11316 hardcode_direct=yes
11317 hardcode_direct_absolute=yes
11318 export_dynamic_flag_spec='${wl}-E'
11319 # hardcode_minus_L: Not really in the search PATH,
11320 # but as the default location of the library.
11321 hardcode_minus_L=yes
11322 fi
11323 ;;
11324
11325 hpux11*)
11326 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11327 case $host_cpu in
11328 hppa*64*)
11329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 ;;
11331 ia64*)
11332 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11333 ;;
11334 *)
11335 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11336 ;;
11337 esac
11338 else
11339 case $host_cpu in
11340 hppa*64*)
11341 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 ;;
11343 ia64*)
11344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11345 ;;
11346 *)
11347
11348 # Older versions of the 11.00 compiler do not understand -b yet
11349 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11351 printf %s "checking if $CC understands -b... " >&6; }
11352 if test ${lt_cv_prog_compiler__b+y}
11353 then :
11354 printf %s "(cached) " >&6
11355 else $as_nop
11356 lt_cv_prog_compiler__b=no
11357 save_LDFLAGS="$LDFLAGS"
11358 LDFLAGS="$LDFLAGS -b"
11359 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11361 # The linker can only warn and ignore the option if not recognized
11362 # So say no if there are warnings
11363 if test -s conftest.err; then
11364 # Append any errors to the config.log.
11365 cat conftest.err 1>&5
11366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11368 if diff conftest.exp conftest.er2 >/dev/null; then
11369 lt_cv_prog_compiler__b=yes
11370 fi
11371 else
11372 lt_cv_prog_compiler__b=yes
11373 fi
11374 fi
11375 $RM -r conftest*
11376 LDFLAGS="$save_LDFLAGS"
11377
11378 fi
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11380 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11381
11382 if test x"$lt_cv_prog_compiler__b" = xyes; then
11383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11384 else
11385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11386 fi
11387
11388 ;;
11389 esac
11390 fi
11391 if test "$with_gnu_ld" = no; then
11392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11393 hardcode_libdir_separator=:
11394
11395 case $host_cpu in
11396 hppa*64*|ia64*)
11397 hardcode_direct=no
11398 hardcode_shlibpath_var=no
11399 ;;
11400 *)
11401 hardcode_direct=yes
11402 hardcode_direct_absolute=yes
11403 export_dynamic_flag_spec='${wl}-E'
11404
11405 # hardcode_minus_L: Not really in the search PATH,
11406 # but as the default location of the library.
11407 hardcode_minus_L=yes
11408 ;;
11409 esac
11410 fi
11411 ;;
11412
11413 irix5* | irix6* | nonstopux*)
11414 if test "$GCC" = yes; then
11415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11416 # Try to use the -exported_symbol ld option, if it does not
11417 # work, assume that -exports_file does not work either and
11418 # implicitly export all symbols.
11419 # This should be the same for all languages, so no per-tag cache variable.
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11421 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11422 if test ${lt_cv_irix_exported_symbol+y}
11423 then :
11424 printf %s "(cached) " >&6
11425 else $as_nop
11426 save_LDFLAGS="$LDFLAGS"
11427 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 int foo (void) { return 0; }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"
11433 then :
11434 lt_cv_irix_exported_symbol=yes
11435 else $as_nop
11436 lt_cv_irix_exported_symbol=no
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LDFLAGS="$save_LDFLAGS"
11441 fi
11442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11443 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11444 if test "$lt_cv_irix_exported_symbol" = yes; then
11445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11446 fi
11447 else
11448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11450 fi
11451 archive_cmds_need_lc='no'
11452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11453 hardcode_libdir_separator=:
11454 inherit_rpath=yes
11455 link_all_deplibs=yes
11456 ;;
11457
11458 netbsd*)
11459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11461 else
11462 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11463 fi
11464 hardcode_libdir_flag_spec='-R$libdir'
11465 hardcode_direct=yes
11466 hardcode_shlibpath_var=no
11467 ;;
11468
11469 newsos6)
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_direct=yes
11472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11473 hardcode_libdir_separator=:
11474 hardcode_shlibpath_var=no
11475 ;;
11476
11477 *nto* | *qnx*)
11478 ;;
11479
11480 openbsd*)
11481 if test -f /usr/libexec/ld.so; then
11482 hardcode_direct=yes
11483 hardcode_shlibpath_var=no
11484 hardcode_direct_absolute=yes
11485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11489 export_dynamic_flag_spec='${wl}-E'
11490 else
11491 case $host_os in
11492 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11494 hardcode_libdir_flag_spec='-R$libdir'
11495 ;;
11496 *)
11497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11499 ;;
11500 esac
11501 fi
11502 else
11503 ld_shlibs=no
11504 fi
11505 ;;
11506
11507 os2*)
11508 hardcode_libdir_flag_spec='-L$libdir'
11509 hardcode_minus_L=yes
11510 allow_undefined_flag=unsupported
11511 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'
11512 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11513 ;;
11514
11515 osf3*)
11516 if test "$GCC" = yes; then
11517 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11518 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11519 else
11520 allow_undefined_flag=' -expect_unresolved \*'
11521 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11522 fi
11523 archive_cmds_need_lc='no'
11524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11525 hardcode_libdir_separator=:
11526 ;;
11527
11528 osf4* | osf5*) # as osf3* with the addition of -msym flag
11529 if test "$GCC" = yes; then
11530 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11531 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11533 else
11534 allow_undefined_flag=' -expect_unresolved \*'
11535 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11536 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~
11537 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11538
11539 # Both c and cxx compiler support -rpath directly
11540 hardcode_libdir_flag_spec='-rpath $libdir'
11541 fi
11542 archive_cmds_need_lc='no'
11543 hardcode_libdir_separator=:
11544 ;;
11545
11546 solaris*)
11547 no_undefined_flag=' -z defs'
11548 if test "$GCC" = yes; then
11549 wlarc='${wl}'
11550 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11552 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11553 else
11554 case `$CC -V 2>&1` in
11555 *"Compilers 5.0"*)
11556 wlarc=''
11557 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11560 ;;
11561 *)
11562 wlarc='${wl}'
11563 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11565 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11566 ;;
11567 esac
11568 fi
11569 hardcode_libdir_flag_spec='-R$libdir'
11570 hardcode_shlibpath_var=no
11571 case $host_os in
11572 solaris2.[0-5] | solaris2.[0-5].*) ;;
11573 *)
11574 # The compiler driver will combine and reorder linker options,
11575 # but understands `-z linker_flag'. GCC discards it without `$wl',
11576 # but is careful enough not to reorder.
11577 # Supported since Solaris 2.6 (maybe 2.5.1?)
11578 if test "$GCC" = yes; then
11579 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11580 else
11581 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11582 fi
11583 ;;
11584 esac
11585 link_all_deplibs=yes
11586 ;;
11587
11588 sunos4*)
11589 if test "x$host_vendor" = xsequent; then
11590 # Use $CC to link under sequent, because it throws in some extra .o
11591 # files that make .init and .fini sections work.
11592 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11593 else
11594 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11595 fi
11596 hardcode_libdir_flag_spec='-L$libdir'
11597 hardcode_direct=yes
11598 hardcode_minus_L=yes
11599 hardcode_shlibpath_var=no
11600 ;;
11601
11602 sysv4)
11603 case $host_vendor in
11604 sni)
11605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11606 hardcode_direct=yes # is this really true???
11607 ;;
11608 siemens)
11609 ## LD is ld it makes a PLAMLIB
11610 ## CC just makes a GrossModule.
11611 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11612 reload_cmds='$CC -r -o $output$reload_objs'
11613 hardcode_direct=no
11614 ;;
11615 motorola)
11616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11617 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11618 ;;
11619 esac
11620 runpath_var='LD_RUN_PATH'
11621 hardcode_shlibpath_var=no
11622 ;;
11623
11624 sysv4.3*)
11625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11626 hardcode_shlibpath_var=no
11627 export_dynamic_flag_spec='-Bexport'
11628 ;;
11629
11630 sysv4*MP*)
11631 if test -d /usr/nec; then
11632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633 hardcode_shlibpath_var=no
11634 runpath_var=LD_RUN_PATH
11635 hardcode_runpath_var=yes
11636 ld_shlibs=yes
11637 fi
11638 ;;
11639
11640 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11641 no_undefined_flag='${wl}-z,text'
11642 archive_cmds_need_lc=no
11643 hardcode_shlibpath_var=no
11644 runpath_var='LD_RUN_PATH'
11645
11646 if test "$GCC" = yes; then
11647 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 else
11650 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11652 fi
11653 ;;
11654
11655 sysv5* | sco3.2v5* | sco5v6*)
11656 # Note: We can NOT use -z defs as we might desire, because we do not
11657 # link with -lc, and that would cause any symbols used from libc to
11658 # always be unresolved, which means just about no library would
11659 # ever link correctly. If we're not using GNU ld we use -z text
11660 # though, which does catch some bad symbols but isn't as heavy-handed
11661 # as -z defs.
11662 no_undefined_flag='${wl}-z,text'
11663 allow_undefined_flag='${wl}-z,nodefs'
11664 archive_cmds_need_lc=no
11665 hardcode_shlibpath_var=no
11666 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11667 hardcode_libdir_separator=':'
11668 link_all_deplibs=yes
11669 export_dynamic_flag_spec='${wl}-Bexport'
11670 runpath_var='LD_RUN_PATH'
11671
11672 if test "$GCC" = yes; then
11673 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 else
11676 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11678 fi
11679 ;;
11680
11681 uts4*)
11682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11683 hardcode_libdir_flag_spec='-L$libdir'
11684 hardcode_shlibpath_var=no
11685 ;;
11686
11687 *)
11688 ld_shlibs=no
11689 ;;
11690 esac
11691
11692 if test x$host_vendor = xsni; then
11693 case $host in
11694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11695 export_dynamic_flag_spec='${wl}-Blargedynsym'
11696 ;;
11697 esac
11698 fi
11699 fi
11700
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11702 printf "%s\n" "$ld_shlibs" >&6; }
11703 test "$ld_shlibs" = no && can_build_shared=no
11704
11705 with_gnu_ld=$with_gnu_ld
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721 #
11722 # Do we need to explicitly link libc?
11723 #
11724 case "x$archive_cmds_need_lc" in
11725 x|xyes)
11726 # Assume -lc should be added
11727 archive_cmds_need_lc=yes
11728
11729 if test "$enable_shared" = yes && test "$GCC" = yes; then
11730 case $archive_cmds in
11731 *'~'*)
11732 # FIXME: we may have to deal with multi-command sequences.
11733 ;;
11734 '$CC '*)
11735 # Test whether the compiler implicitly links with -lc since on some
11736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11737 # to ld, don't add -lc before -lgcc.
11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11739 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11740 if test ${lt_cv_archive_cmds_need_lc+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else $as_nop
11744 $RM conftest*
11745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11746
11747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11748 (eval $ac_compile) 2>&5
11749 ac_status=$?
11750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11751 test $ac_status = 0; } 2>conftest.err; then
11752 soname=conftest
11753 lib=conftest
11754 libobjs=conftest.$ac_objext
11755 deplibs=
11756 wl=$lt_prog_compiler_wl
11757 pic_flag=$lt_prog_compiler_pic
11758 compiler_flags=-v
11759 linker_flags=-v
11760 verstring=
11761 output_objdir=.
11762 libname=conftest
11763 lt_save_allow_undefined_flag=$allow_undefined_flag
11764 allow_undefined_flag=
11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11767 ac_status=$?
11768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769 test $ac_status = 0; }
11770 then
11771 lt_cv_archive_cmds_need_lc=no
11772 else
11773 lt_cv_archive_cmds_need_lc=yes
11774 fi
11775 allow_undefined_flag=$lt_save_allow_undefined_flag
11776 else
11777 cat conftest.err 1>&5
11778 fi
11779 $RM conftest*
11780
11781 fi
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11783 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11784 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11785 ;;
11786 esac
11787 fi
11788 ;;
11789 esac
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11943 printf %s "checking dynamic linker characteristics... " >&6; }
11944
11945 if test "$GCC" = yes; then
11946 case $host_os in
11947 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11948 *) lt_awk_arg="/^libraries:/" ;;
11949 esac
11950 case $host_os in
11951 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11952 *) lt_sed_strip_eq="s,=/,/,g" ;;
11953 esac
11954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11955 case $lt_search_path_spec in
11956 *\;*)
11957 # if the path contains ";" then we assume it to be the separator
11958 # otherwise default to the standard path separator (i.e. ":") - it is
11959 # assumed that no part of a normal pathname contains ";" but that should
11960 # okay in the real world where ";" in dirpaths is itself problematic.
11961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11962 ;;
11963 *)
11964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11965 ;;
11966 esac
11967 # Ok, now we have the path, separated by spaces, we can step through it
11968 # and add multilib dir if necessary.
11969 lt_tmp_lt_search_path_spec=
11970 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11971 for lt_sys_path in $lt_search_path_spec; do
11972 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11974 else
11975 test -d "$lt_sys_path" && \
11976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11977 fi
11978 done
11979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11980 BEGIN {RS=" "; FS="/|\n";} {
11981 lt_foo="";
11982 lt_count=0;
11983 for (lt_i = NF; lt_i > 0; lt_i--) {
11984 if ($lt_i != "" && $lt_i != ".") {
11985 if ($lt_i == "..") {
11986 lt_count++;
11987 } else {
11988 if (lt_count == 0) {
11989 lt_foo="/" $lt_i lt_foo;
11990 } else {
11991 lt_count--;
11992 }
11993 }
11994 }
11995 }
11996 if (lt_foo != "") { lt_freq[lt_foo]++; }
11997 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11998 }'`
11999 # AWK program above erroneously prepends '/' to C:/dos/paths
12000 # for these hosts.
12001 case $host_os in
12002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12003 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12004 esac
12005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12006 else
12007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12008 fi
12009 library_names_spec=
12010 libname_spec='lib$name'
12011 soname_spec=
12012 shrext_cmds=".so"
12013 postinstall_cmds=
12014 postuninstall_cmds=
12015 finish_cmds=
12016 finish_eval=
12017 shlibpath_var=
12018 shlibpath_overrides_runpath=unknown
12019 version_type=none
12020 dynamic_linker="$host_os ld.so"
12021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12022 need_lib_prefix=unknown
12023 hardcode_into_libs=no
12024
12025 # when you set need_version to no, make sure it does not cause -set_version
12026 # flags to be left without arguments
12027 need_version=unknown
12028
12029 case $host_os in
12030 aix3*)
12031 version_type=linux # correct to gnu/linux during the next big refactor
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12033 shlibpath_var=LIBPATH
12034
12035 # AIX 3 has no versioning support, so we append a major version to the name.
12036 soname_spec='${libname}${release}${shared_ext}$major'
12037 ;;
12038
12039 aix[4-9]*)
12040 version_type=linux # correct to gnu/linux during the next big refactor
12041 need_lib_prefix=no
12042 need_version=no
12043 hardcode_into_libs=yes
12044 if test "$host_cpu" = ia64; then
12045 # AIX 5 supports IA64
12046 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 else
12049 # With GCC up to 2.95.x, collect2 would create an import file
12050 # for dependence libraries. The import file would start with
12051 # the line `#! .'. This would cause the generated library to
12052 # depend on `.', always an invalid library. This was fixed in
12053 # development snapshots of GCC prior to 3.0.
12054 case $host_os in
12055 aix4 | aix4.[01] | aix4.[01].*)
12056 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12057 echo ' yes '
12058 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12059 :
12060 else
12061 can_build_shared=no
12062 fi
12063 ;;
12064 esac
12065 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12066 # soname into executable. Probably we can add versioning support to
12067 # collect2, so additional links can be useful in future.
12068 if test "$aix_use_runtimelinking" = yes; then
12069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12070 # instead of lib<name>.a to let people know that these are not
12071 # typical AIX shared libraries.
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 else
12074 # We preserve .a as extension for shared libraries through AIX4.2
12075 # and later when we are not doing run time linking.
12076 library_names_spec='${libname}${release}.a $libname.a'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 fi
12079 shlibpath_var=LIBPATH
12080 fi
12081 ;;
12082
12083 amigaos*)
12084 case $host_cpu in
12085 powerpc)
12086 # Since July 2007 AmigaOS4 officially supports .so libraries.
12087 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 ;;
12090 m68k)
12091 library_names_spec='$libname.ixlibrary $libname.a'
12092 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12093 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12094 ;;
12095 esac
12096 ;;
12097
12098 beos*)
12099 library_names_spec='${libname}${shared_ext}'
12100 dynamic_linker="$host_os ld.so"
12101 shlibpath_var=LIBRARY_PATH
12102 ;;
12103
12104 bsdi[45]*)
12105 version_type=linux # correct to gnu/linux during the next big refactor
12106 need_version=no
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12113 # the default ld.so.conf also contains /usr/contrib/lib and
12114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12115 # libtool to hard-code these into programs
12116 ;;
12117
12118 cygwin* | mingw* | pw32* | cegcc*)
12119 version_type=windows
12120 shrext_cmds=".dll"
12121 need_version=no
12122 need_lib_prefix=no
12123
12124 case $GCC,$cc_basename in
12125 yes,*)
12126 # gcc
12127 library_names_spec='$libname.dll.a'
12128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12129 postinstall_cmds='base_file=`basename \${file}`~
12130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12131 dldir=$destdir/`dirname \$dlpath`~
12132 test -d \$dldir || mkdir -p \$dldir~
12133 $install_prog $dir/$dlname \$dldir/$dlname~
12134 chmod a+x \$dldir/$dlname~
12135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12137 fi'
12138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12139 dlpath=$dir/\$dldll~
12140 $RM \$dlpath'
12141 shlibpath_overrides_runpath=yes
12142
12143 case $host_os in
12144 cygwin*)
12145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12147
12148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12149 ;;
12150 mingw* | cegcc*)
12151 # MinGW DLLs use traditional 'lib' prefix
12152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12153 ;;
12154 pw32*)
12155 # pw32 DLLs use 'pw' prefix rather than 'lib'
12156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157 ;;
12158 esac
12159 dynamic_linker='Win32 ld.exe'
12160 ;;
12161
12162 *,cl*)
12163 # Native MSVC
12164 libname_spec='$name'
12165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12166 library_names_spec='${libname}.dll.lib'
12167
12168 case $build_os in
12169 mingw*)
12170 sys_lib_search_path_spec=
12171 lt_save_ifs=$IFS
12172 IFS=';'
12173 for lt_path in $LIB
12174 do
12175 IFS=$lt_save_ifs
12176 # Let DOS variable expansion print the short 8.3 style file name.
12177 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12178 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12179 done
12180 IFS=$lt_save_ifs
12181 # Convert to MSYS style.
12182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12183 ;;
12184 cygwin*)
12185 # Convert to unix form, then to dos form, then back to unix form
12186 # but this time dos style (no spaces!) so that the unix form looks
12187 # like /cygdrive/c/PROGRA~1:/cygdr...
12188 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12189 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12190 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12191 ;;
12192 *)
12193 sys_lib_search_path_spec="$LIB"
12194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12195 # It is most probably a Windows format PATH.
12196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12197 else
12198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12199 fi
12200 # FIXME: find the short name or the path components, as spaces are
12201 # common. (e.g. "Program Files" -> "PROGRA~1")
12202 ;;
12203 esac
12204
12205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12206 postinstall_cmds='base_file=`basename \${file}`~
12207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12208 dldir=$destdir/`dirname \$dlpath`~
12209 test -d \$dldir || mkdir -p \$dldir~
12210 $install_prog $dir/$dlname \$dldir/$dlname'
12211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12212 dlpath=$dir/\$dldll~
12213 $RM \$dlpath'
12214 shlibpath_overrides_runpath=yes
12215 dynamic_linker='Win32 link.exe'
12216 ;;
12217
12218 *)
12219 # Assume MSVC wrapper
12220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12221 dynamic_linker='Win32 ld.exe'
12222 ;;
12223 esac
12224 # FIXME: first we should search . and the directory the executable is in
12225 shlibpath_var=PATH
12226 ;;
12227
12228 darwin* | rhapsody*)
12229 dynamic_linker="$host_os dyld"
12230 version_type=darwin
12231 need_lib_prefix=no
12232 need_version=no
12233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12234 soname_spec='${libname}${release}${major}$shared_ext'
12235 shlibpath_overrides_runpath=yes
12236 shlibpath_var=DYLD_LIBRARY_PATH
12237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12238
12239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12241 ;;
12242
12243 dgux*)
12244 version_type=linux # correct to gnu/linux during the next big refactor
12245 need_lib_prefix=no
12246 need_version=no
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 ;;
12251
12252 freebsd* | dragonfly*)
12253 # DragonFly does not have aout. When/if they implement a new
12254 # versioning mechanism, adjust this.
12255 if test -x /usr/bin/objformat; then
12256 objformat=`/usr/bin/objformat`
12257 else
12258 case $host_os in
12259 freebsd[23].*) objformat=aout ;;
12260 *) objformat=elf ;;
12261 esac
12262 fi
12263 version_type=freebsd-$objformat
12264 case $version_type in
12265 freebsd-elf*)
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12267 need_version=no
12268 need_lib_prefix=no
12269 ;;
12270 freebsd-*)
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12272 need_version=yes
12273 ;;
12274 esac
12275 shlibpath_var=LD_LIBRARY_PATH
12276 case $host_os in
12277 freebsd2.*)
12278 shlibpath_overrides_runpath=yes
12279 ;;
12280 freebsd3.[01]* | freebsdelf3.[01]*)
12281 shlibpath_overrides_runpath=yes
12282 hardcode_into_libs=yes
12283 ;;
12284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12286 shlibpath_overrides_runpath=no
12287 hardcode_into_libs=yes
12288 ;;
12289 *) # from 4.6 on, and DragonFly
12290 shlibpath_overrides_runpath=yes
12291 hardcode_into_libs=yes
12292 ;;
12293 esac
12294 ;;
12295
12296 gnu*)
12297 version_type=linux # correct to gnu/linux during the next big refactor
12298 need_lib_prefix=no
12299 need_version=no
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=no
12304 hardcode_into_libs=yes
12305 ;;
12306
12307 haiku*)
12308 version_type=linux # correct to gnu/linux during the next big refactor
12309 need_lib_prefix=no
12310 need_version=no
12311 dynamic_linker="$host_os runtime_loader"
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12313 soname_spec='${libname}${release}${shared_ext}$major'
12314 shlibpath_var=LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes
12316 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12317 hardcode_into_libs=yes
12318 ;;
12319
12320 hpux9* | hpux10* | hpux11*)
12321 # Give a soname corresponding to the major version so that dld.sl refuses to
12322 # link against other versions.
12323 version_type=sunos
12324 need_lib_prefix=no
12325 need_version=no
12326 case $host_cpu in
12327 ia64*)
12328 shrext_cmds='.so'
12329 hardcode_into_libs=yes
12330 dynamic_linker="$host_os dld.so"
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 if test "X$HPUX_IA64_MODE" = X32; then
12336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12337 else
12338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12339 fi
12340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12341 ;;
12342 hppa*64*)
12343 shrext_cmds='.sl'
12344 hardcode_into_libs=yes
12345 dynamic_linker="$host_os dld.sl"
12346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12352 ;;
12353 *)
12354 shrext_cmds='.sl'
12355 dynamic_linker="$host_os dld.sl"
12356 shlibpath_var=SHLIB_PATH
12357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359 soname_spec='${libname}${release}${shared_ext}$major'
12360 ;;
12361 esac
12362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12363 postinstall_cmds='chmod 555 $lib'
12364 # or fails outright, so override atomically:
12365 install_override_mode=555
12366 ;;
12367
12368 interix[3-9]*)
12369 version_type=linux # correct to gnu/linux during the next big refactor
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=no
12377 hardcode_into_libs=yes
12378 ;;
12379
12380 irix5* | irix6* | nonstopux*)
12381 case $host_os in
12382 nonstopux*) version_type=nonstopux ;;
12383 *)
12384 if test "$lt_cv_prog_gnu_ld" = yes; then
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 else
12387 version_type=irix
12388 fi ;;
12389 esac
12390 need_lib_prefix=no
12391 need_version=no
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12394 case $host_os in
12395 irix5* | nonstopux*)
12396 libsuff= shlibsuff=
12397 ;;
12398 *)
12399 case $LD in # libtool.m4 will add one of these switches to LD
12400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12401 libsuff= shlibsuff= libmagic=32-bit;;
12402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12403 libsuff=32 shlibsuff=N32 libmagic=N32;;
12404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12406 *) libsuff= shlibsuff= libmagic=never-match;;
12407 esac
12408 ;;
12409 esac
12410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12411 shlibpath_overrides_runpath=no
12412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12414 hardcode_into_libs=yes
12415 ;;
12416
12417 # No shared lib support for Linux oldld, aout, or coff.
12418 linux*oldld* | linux*aout* | linux*coff*)
12419 dynamic_linker=no
12420 ;;
12421
12422 # This must be glibc/ELF.
12423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12424 version_type=linux # correct to gnu/linux during the next big refactor
12425 need_lib_prefix=no
12426 need_version=no
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12430 shlibpath_var=LD_LIBRARY_PATH
12431 shlibpath_overrides_runpath=no
12432
12433 # Some binutils ld are patched to set DT_RUNPATH
12434 if test ${lt_cv_shlibpath_overrides_runpath+y}
12435 then :
12436 printf %s "(cached) " >&6
12437 else $as_nop
12438 lt_cv_shlibpath_overrides_runpath=no
12439 save_LDFLAGS=$LDFLAGS
12440 save_libdir=$libdir
12441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445
12446 int
12447 main (void)
12448 {
12449
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"
12455 then :
12456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12457 then :
12458 lt_cv_shlibpath_overrides_runpath=yes
12459 fi
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LDFLAGS=$save_LDFLAGS
12464 libdir=$save_libdir
12465
12466 fi
12467
12468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12469
12470 # This implies no fast_install, which is unacceptable.
12471 # Some rework will be needed to allow for fast_install
12472 # before this can be enabled.
12473 hardcode_into_libs=yes
12474
12475 # Add ABI-specific directories to the system library path.
12476 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12477
12478 # Append ld.so.conf contents to the search path
12479 if test -f /etc/ld.so.conf; then
12480 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12481 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12482
12483 fi
12484
12485 # We used to test for /lib/ld.so.1 and disable shared libraries on
12486 # powerpc, because MkLinux only supported shared libraries with the
12487 # GNU dynamic linker. Since this was broken with cross compilers,
12488 # most powerpc-linux boxes support dynamic linking these days and
12489 # people can always --disable-shared, the test was removed, and we
12490 # assume the GNU/Linux dynamic linker is in use.
12491 dynamic_linker='GNU/Linux ld.so'
12492 ;;
12493
12494 netbsd*)
12495 version_type=sunos
12496 need_lib_prefix=no
12497 need_version=no
12498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12501 dynamic_linker='NetBSD (a.out) ld.so'
12502 else
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12504 soname_spec='${libname}${release}${shared_ext}$major'
12505 dynamic_linker='NetBSD ld.elf_so'
12506 fi
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=yes
12509 hardcode_into_libs=yes
12510 ;;
12511
12512 newsos6)
12513 version_type=linux # correct to gnu/linux during the next big refactor
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 ;;
12518
12519 *nto* | *qnx*)
12520 version_type=qnx
12521 need_lib_prefix=no
12522 need_version=no
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 hardcode_into_libs=yes
12528 dynamic_linker='ldqnx.so'
12529 ;;
12530
12531 openbsd*)
12532 version_type=sunos
12533 sys_lib_dlsearch_path_spec="/usr/lib"
12534 need_lib_prefix=no
12535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12536 case $host_os in
12537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12538 *) need_version=no ;;
12539 esac
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12542 shlibpath_var=LD_LIBRARY_PATH
12543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12544 case $host_os in
12545 openbsd2.[89] | openbsd2.[89].*)
12546 shlibpath_overrides_runpath=no
12547 ;;
12548 *)
12549 shlibpath_overrides_runpath=yes
12550 ;;
12551 esac
12552 else
12553 shlibpath_overrides_runpath=yes
12554 fi
12555 ;;
12556
12557 os2*)
12558 libname_spec='$name'
12559 shrext_cmds=".dll"
12560 need_lib_prefix=no
12561 library_names_spec='$libname${shared_ext} $libname.a'
12562 dynamic_linker='OS/2 ld.exe'
12563 shlibpath_var=LIBPATH
12564 ;;
12565
12566 osf3* | osf4* | osf5*)
12567 version_type=osf
12568 need_lib_prefix=no
12569 need_version=no
12570 soname_spec='${libname}${release}${shared_ext}$major'
12571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12575 ;;
12576
12577 rdos*)
12578 dynamic_linker=no
12579 ;;
12580
12581 solaris*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 need_lib_prefix=no
12584 need_version=no
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 shlibpath_overrides_runpath=yes
12589 hardcode_into_libs=yes
12590 # ldd complains unless libraries are executable
12591 postinstall_cmds='chmod +x $lib'
12592 ;;
12593
12594 sunos4*)
12595 version_type=sunos
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=yes
12600 if test "$with_gnu_ld" = yes; then
12601 need_lib_prefix=no
12602 fi
12603 need_version=yes
12604 ;;
12605
12606 sysv4 | sysv4.3*)
12607 version_type=linux # correct to gnu/linux during the next big refactor
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609 soname_spec='${libname}${release}${shared_ext}$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 case $host_vendor in
12612 sni)
12613 shlibpath_overrides_runpath=no
12614 need_lib_prefix=no
12615 runpath_var=LD_RUN_PATH
12616 ;;
12617 siemens)
12618 need_lib_prefix=no
12619 ;;
12620 motorola)
12621 need_lib_prefix=no
12622 need_version=no
12623 shlibpath_overrides_runpath=no
12624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12625 ;;
12626 esac
12627 ;;
12628
12629 sysv4*MP*)
12630 if test -d /usr/nec ;then
12631 version_type=linux # correct to gnu/linux during the next big refactor
12632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12633 soname_spec='$libname${shared_ext}.$major'
12634 shlibpath_var=LD_LIBRARY_PATH
12635 fi
12636 ;;
12637
12638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12639 version_type=freebsd-elf
12640 need_lib_prefix=no
12641 need_version=no
12642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12643 soname_spec='${libname}${release}${shared_ext}$major'
12644 shlibpath_var=LD_LIBRARY_PATH
12645 shlibpath_overrides_runpath=yes
12646 hardcode_into_libs=yes
12647 if test "$with_gnu_ld" = yes; then
12648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12649 else
12650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12651 case $host_os in
12652 sco3.2v5*)
12653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12654 ;;
12655 esac
12656 fi
12657 sys_lib_dlsearch_path_spec='/usr/lib'
12658 ;;
12659
12660 tpf*)
12661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12662 version_type=linux # correct to gnu/linux during the next big refactor
12663 need_lib_prefix=no
12664 need_version=no
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 shlibpath_overrides_runpath=no
12668 hardcode_into_libs=yes
12669 ;;
12670
12671 uts4*)
12672 version_type=linux # correct to gnu/linux during the next big refactor
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12674 soname_spec='${libname}${release}${shared_ext}$major'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 ;;
12677
12678 *)
12679 dynamic_linker=no
12680 ;;
12681 esac
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12683 printf "%s\n" "$dynamic_linker" >&6; }
12684 test "$dynamic_linker" = no && can_build_shared=no
12685
12686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12687 if test "$GCC" = yes; then
12688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12689 fi
12690
12691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12693 fi
12694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12696 fi
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12790 printf %s "checking how to hardcode library paths into programs... " >&6; }
12791 hardcode_action=
12792 if test -n "$hardcode_libdir_flag_spec" ||
12793 test -n "$runpath_var" ||
12794 test "X$hardcode_automatic" = "Xyes" ; then
12795
12796 # We can hardcode non-existent directories.
12797 if test "$hardcode_direct" != no &&
12798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12799 # have to relink, otherwise we might link with an installed library
12800 # when we should be linking with a yet-to-be-installed one
12801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12802 test "$hardcode_minus_L" != no; then
12803 # Linking always hardcodes the temporary library directory.
12804 hardcode_action=relink
12805 else
12806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12807 hardcode_action=immediate
12808 fi
12809 else
12810 # We cannot hardcode anything, or else we can only hardcode existing
12811 # directories.
12812 hardcode_action=unsupported
12813 fi
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12815 printf "%s\n" "$hardcode_action" >&6; }
12816
12817 if test "$hardcode_action" = relink ||
12818 test "$inherit_rpath" = yes; then
12819 # Fast installation is not supported
12820 enable_fast_install=no
12821 elif test "$shlibpath_overrides_runpath" = yes ||
12822 test "$enable_shared" = no; then
12823 # Fast installation is not necessary
12824 enable_fast_install=needless
12825 fi
12826
12827
12828
12829
12830
12831
12832 if test "x$enable_dlopen" != xyes; then
12833 enable_dlopen=unknown
12834 enable_dlopen_self=unknown
12835 enable_dlopen_self_static=unknown
12836 else
12837 lt_cv_dlopen=no
12838 lt_cv_dlopen_libs=
12839
12840 case $host_os in
12841 beos*)
12842 lt_cv_dlopen="load_add_on"
12843 lt_cv_dlopen_libs=
12844 lt_cv_dlopen_self=yes
12845 ;;
12846
12847 mingw* | pw32* | cegcc*)
12848 lt_cv_dlopen="LoadLibrary"
12849 lt_cv_dlopen_libs=
12850 ;;
12851
12852 cygwin*)
12853 lt_cv_dlopen="dlopen"
12854 lt_cv_dlopen_libs=
12855 ;;
12856
12857 darwin*)
12858 # if libdl is installed we need to link against it
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12860 printf %s "checking for dlopen in -ldl... " >&6; }
12861 if test ${ac_cv_lib_dl_dlopen+y}
12862 then :
12863 printf %s "(cached) " >&6
12864 else $as_nop
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-ldl $LIBS"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 char dlopen ();
12874 int
12875 main (void)
12876 {
12877 return dlopen ();
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"
12883 then :
12884 ac_cv_lib_dl_dlopen=yes
12885 else $as_nop
12886 ac_cv_lib_dl_dlopen=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12893 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12894 if test "x$ac_cv_lib_dl_dlopen" = xyes
12895 then :
12896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12897 else $as_nop
12898
12899 lt_cv_dlopen="dyld"
12900 lt_cv_dlopen_libs=
12901 lt_cv_dlopen_self=yes
12902
12903 fi
12904
12905 ;;
12906
12907 *)
12908 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12909 if test "x$ac_cv_func_shl_load" = xyes
12910 then :
12911 lt_cv_dlopen="shl_load"
12912 else $as_nop
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12914 printf %s "checking for shl_load in -ldld... " >&6; }
12915 if test ${ac_cv_lib_dld_shl_load+y}
12916 then :
12917 printf %s "(cached) " >&6
12918 else $as_nop
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-ldld $LIBS"
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12927 char shl_load ();
12928 int
12929 main (void)
12930 {
12931 return shl_load ();
12932 ;
12933 return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"
12937 then :
12938 ac_cv_lib_dld_shl_load=yes
12939 else $as_nop
12940 ac_cv_lib_dld_shl_load=no
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12943 conftest$ac_exeext conftest.$ac_ext
12944 LIBS=$ac_check_lib_save_LIBS
12945 fi
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12947 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12948 if test "x$ac_cv_lib_dld_shl_load" = xyes
12949 then :
12950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12951 else $as_nop
12952 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12953 if test "x$ac_cv_func_dlopen" = xyes
12954 then :
12955 lt_cv_dlopen="dlopen"
12956 else $as_nop
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12958 printf %s "checking for dlopen in -ldl... " >&6; }
12959 if test ${ac_cv_lib_dl_dlopen+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else $as_nop
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-ldl $LIBS"
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 char dlopen ();
12972 int
12973 main (void)
12974 {
12975 return dlopen ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"
12981 then :
12982 ac_cv_lib_dl_dlopen=yes
12983 else $as_nop
12984 ac_cv_lib_dl_dlopen=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12989 fi
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12991 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12992 if test "x$ac_cv_lib_dl_dlopen" = xyes
12993 then :
12994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12995 else $as_nop
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12997 printf %s "checking for dlopen in -lsvld... " >&6; }
12998 if test ${ac_cv_lib_svld_dlopen+y}
12999 then :
13000 printf %s "(cached) " >&6
13001 else $as_nop
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lsvld $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010 char dlopen ();
13011 int
13012 main (void)
13013 {
13014 return dlopen ();
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"
13020 then :
13021 ac_cv_lib_svld_dlopen=yes
13022 else $as_nop
13023 ac_cv_lib_svld_dlopen=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13028 fi
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13030 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13031 if test "x$ac_cv_lib_svld_dlopen" = xyes
13032 then :
13033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13034 else $as_nop
13035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13036 printf %s "checking for dld_link in -ldld... " >&6; }
13037 if test ${ac_cv_lib_dld_dld_link+y}
13038 then :
13039 printf %s "(cached) " >&6
13040 else $as_nop
13041 ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-ldld $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13049 char dld_link ();
13050 int
13051 main (void)
13052 {
13053 return dld_link ();
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"
13059 then :
13060 ac_cv_lib_dld_dld_link=yes
13061 else $as_nop
13062 ac_cv_lib_dld_dld_link=no
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13065 conftest$ac_exeext conftest.$ac_ext
13066 LIBS=$ac_check_lib_save_LIBS
13067 fi
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13069 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13070 if test "x$ac_cv_lib_dld_dld_link" = xyes
13071 then :
13072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13073 fi
13074
13075
13076 fi
13077
13078
13079 fi
13080
13081
13082 fi
13083
13084
13085 fi
13086
13087
13088 fi
13089
13090 ;;
13091 esac
13092
13093 if test "x$lt_cv_dlopen" != xno; then
13094 enable_dlopen=yes
13095 else
13096 enable_dlopen=no
13097 fi
13098
13099 case $lt_cv_dlopen in
13100 dlopen)
13101 save_CPPFLAGS="$CPPFLAGS"
13102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13103
13104 save_LDFLAGS="$LDFLAGS"
13105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13106
13107 save_LIBS="$LIBS"
13108 LIBS="$lt_cv_dlopen_libs $LIBS"
13109
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13111 printf %s "checking whether a program can dlopen itself... " >&6; }
13112 if test ${lt_cv_dlopen_self+y}
13113 then :
13114 printf %s "(cached) " >&6
13115 else $as_nop
13116 if test "$cross_compiling" = yes; then :
13117 lt_cv_dlopen_self=cross
13118 else
13119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13120 lt_status=$lt_dlunknown
13121 cat > conftest.$ac_ext <<_LT_EOF
13122 #line $LINENO "configure"
13123 #include "confdefs.h"
13124
13125 #if HAVE_DLFCN_H
13126 #include <dlfcn.h>
13127 #endif
13128
13129 #include <stdio.h>
13130
13131 #ifdef RTLD_GLOBAL
13132 # define LT_DLGLOBAL RTLD_GLOBAL
13133 #else
13134 # ifdef DL_GLOBAL
13135 # define LT_DLGLOBAL DL_GLOBAL
13136 # else
13137 # define LT_DLGLOBAL 0
13138 # endif
13139 #endif
13140
13141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13142 find out it does not work in some platform. */
13143 #ifndef LT_DLLAZY_OR_NOW
13144 # ifdef RTLD_LAZY
13145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13146 # else
13147 # ifdef DL_LAZY
13148 # define LT_DLLAZY_OR_NOW DL_LAZY
13149 # else
13150 # ifdef RTLD_NOW
13151 # define LT_DLLAZY_OR_NOW RTLD_NOW
13152 # else
13153 # ifdef DL_NOW
13154 # define LT_DLLAZY_OR_NOW DL_NOW
13155 # else
13156 # define LT_DLLAZY_OR_NOW 0
13157 # endif
13158 # endif
13159 # endif
13160 # endif
13161 #endif
13162
13163 /* When -fvisbility=hidden is used, assume the code has been annotated
13164 correspondingly for the symbols needed. */
13165 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13166 int fnord () __attribute__((visibility("default")));
13167 #endif
13168
13169 int fnord () { return 42; }
13170 int main ()
13171 {
13172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13173 int status = $lt_dlunknown;
13174
13175 if (self)
13176 {
13177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13178 else
13179 {
13180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13181 else puts (dlerror ());
13182 }
13183 /* dlclose (self); */
13184 }
13185 else
13186 puts (dlerror ());
13187
13188 return status;
13189 }
13190 _LT_EOF
13191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13192 (eval $ac_link) 2>&5
13193 ac_status=$?
13194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13196 (./conftest; exit; ) >&5 2>/dev/null
13197 lt_status=$?
13198 case x$lt_status in
13199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13201 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13202 esac
13203 else :
13204 # compilation failed
13205 lt_cv_dlopen_self=no
13206 fi
13207 fi
13208 rm -fr conftest*
13209
13210
13211 fi
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13213 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13214
13215 if test "x$lt_cv_dlopen_self" = xyes; then
13216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13218 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13219 if test ${lt_cv_dlopen_self_static+y}
13220 then :
13221 printf %s "(cached) " >&6
13222 else $as_nop
13223 if test "$cross_compiling" = yes; then :
13224 lt_cv_dlopen_self_static=cross
13225 else
13226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13227 lt_status=$lt_dlunknown
13228 cat > conftest.$ac_ext <<_LT_EOF
13229 #line $LINENO "configure"
13230 #include "confdefs.h"
13231
13232 #if HAVE_DLFCN_H
13233 #include <dlfcn.h>
13234 #endif
13235
13236 #include <stdio.h>
13237
13238 #ifdef RTLD_GLOBAL
13239 # define LT_DLGLOBAL RTLD_GLOBAL
13240 #else
13241 # ifdef DL_GLOBAL
13242 # define LT_DLGLOBAL DL_GLOBAL
13243 # else
13244 # define LT_DLGLOBAL 0
13245 # endif
13246 #endif
13247
13248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13249 find out it does not work in some platform. */
13250 #ifndef LT_DLLAZY_OR_NOW
13251 # ifdef RTLD_LAZY
13252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13253 # else
13254 # ifdef DL_LAZY
13255 # define LT_DLLAZY_OR_NOW DL_LAZY
13256 # else
13257 # ifdef RTLD_NOW
13258 # define LT_DLLAZY_OR_NOW RTLD_NOW
13259 # else
13260 # ifdef DL_NOW
13261 # define LT_DLLAZY_OR_NOW DL_NOW
13262 # else
13263 # define LT_DLLAZY_OR_NOW 0
13264 # endif
13265 # endif
13266 # endif
13267 # endif
13268 #endif
13269
13270 /* When -fvisbility=hidden is used, assume the code has been annotated
13271 correspondingly for the symbols needed. */
13272 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13273 int fnord () __attribute__((visibility("default")));
13274 #endif
13275
13276 int fnord () { return 42; }
13277 int main ()
13278 {
13279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13280 int status = $lt_dlunknown;
13281
13282 if (self)
13283 {
13284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13285 else
13286 {
13287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13288 else puts (dlerror ());
13289 }
13290 /* dlclose (self); */
13291 }
13292 else
13293 puts (dlerror ());
13294
13295 return status;
13296 }
13297 _LT_EOF
13298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13303 (./conftest; exit; ) >&5 2>/dev/null
13304 lt_status=$?
13305 case x$lt_status in
13306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13308 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13309 esac
13310 else :
13311 # compilation failed
13312 lt_cv_dlopen_self_static=no
13313 fi
13314 fi
13315 rm -fr conftest*
13316
13317
13318 fi
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13320 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13321 fi
13322
13323 CPPFLAGS="$save_CPPFLAGS"
13324 LDFLAGS="$save_LDFLAGS"
13325 LIBS="$save_LIBS"
13326 ;;
13327 esac
13328
13329 case $lt_cv_dlopen_self in
13330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13331 *) enable_dlopen_self=unknown ;;
13332 esac
13333
13334 case $lt_cv_dlopen_self_static in
13335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13336 *) enable_dlopen_self_static=unknown ;;
13337 esac
13338 fi
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356 striplib=
13357 old_striplib=
13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13359 printf %s "checking whether stripping libraries is possible... " >&6; }
13360 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364 printf "%s\n" "yes" >&6; }
13365 else
13366 # FIXME - insert some real tests, host_os isn't really good enough
13367 case $host_os in
13368 darwin*)
13369 if test -n "$STRIP" ; then
13370 striplib="$STRIP -x"
13371 old_striplib="$STRIP -S"
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 printf "%s\n" "yes" >&6; }
13374 else
13375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 printf "%s\n" "no" >&6; }
13377 fi
13378 ;;
13379 *)
13380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 printf "%s\n" "no" >&6; }
13382 ;;
13383 esac
13384 fi
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 # Report which library types will actually be built
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13399 printf %s "checking if libtool supports shared libraries... " >&6; }
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13401 printf "%s\n" "$can_build_shared" >&6; }
13402
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13404 printf %s "checking whether to build shared libraries... " >&6; }
13405 test "$can_build_shared" = "no" && enable_shared=no
13406
13407 # On AIX, shared libraries and static libraries use the same namespace, and
13408 # are all built from PIC.
13409 case $host_os in
13410 aix3*)
13411 test "$enable_shared" = yes && enable_static=no
13412 if test -n "$RANLIB"; then
13413 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13414 postinstall_cmds='$RANLIB $lib'
13415 fi
13416 ;;
13417
13418 aix[4-9]*)
13419 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13420 test "$enable_shared" = yes && enable_static=no
13421 fi
13422 ;;
13423 esac
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13425 printf "%s\n" "$enable_shared" >&6; }
13426
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13428 printf %s "checking whether to build static libraries... " >&6; }
13429 # Make sure either enable_shared or enable_static is yes.
13430 test "$enable_shared" = yes || enable_static=yes
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13432 printf "%s\n" "$enable_static" >&6; }
13433
13434
13435
13436
13437 fi
13438 ac_ext=c
13439 ac_cpp='$CPP $CPPFLAGS'
13440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13443
13444 CC="$lt_save_CC"
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460 ac_config_commands="$ac_config_commands libtool"
13461
13462
13463
13464
13465 # Only expand once:
13466
13467
13468
13469 # Autoupdate added the next two lines to ensure that your configure
13470 # script's behavior did not change. They are probably safe to remove.
13471
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13473 printf %s "checking for egrep... " >&6; }
13474 if test ${ac_cv_path_EGREP+y}
13475 then :
13476 printf %s "(cached) " >&6
13477 else $as_nop
13478 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13479 then ac_cv_path_EGREP="$GREP -E"
13480 else
13481 if test -z "$EGREP"; then
13482 ac_path_EGREP_found=false
13483 # Loop through the user's path and test for each of PROGNAME-LIST
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13486 do
13487 IFS=$as_save_IFS
13488 case $as_dir in #(((
13489 '') as_dir=./ ;;
13490 */) ;;
13491 *) as_dir=$as_dir/ ;;
13492 esac
13493 for ac_prog in egrep
13494 do
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13497 as_fn_executable_p "$ac_path_EGREP" || continue
13498 # Check for GNU ac_path_EGREP and select it if it is found.
13499 # Check for GNU $ac_path_EGREP
13500 case `"$ac_path_EGREP" --version 2>&1` in
13501 *GNU*)
13502 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13503 *)
13504 ac_count=0
13505 printf %s 0123456789 >"conftest.in"
13506 while :
13507 do
13508 cat "conftest.in" "conftest.in" >"conftest.tmp"
13509 mv "conftest.tmp" "conftest.in"
13510 cp "conftest.in" "conftest.nl"
13511 printf "%s\n" 'EGREP' >> "conftest.nl"
13512 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13514 as_fn_arith $ac_count + 1 && ac_count=$as_val
13515 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13516 # Best one so far, save it but keep looking for a better one
13517 ac_cv_path_EGREP="$ac_path_EGREP"
13518 ac_path_EGREP_max=$ac_count
13519 fi
13520 # 10*(2^10) chars as input seems more than enough
13521 test $ac_count -gt 10 && break
13522 done
13523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13524 esac
13525
13526 $ac_path_EGREP_found && break 3
13527 done
13528 done
13529 done
13530 IFS=$as_save_IFS
13531 if test -z "$ac_cv_path_EGREP"; then
13532 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13533 fi
13534 else
13535 ac_cv_path_EGREP=$EGREP
13536 fi
13537
13538 fi
13539 fi
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13541 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13542 EGREP="$ac_cv_path_EGREP"
13543
13544
13545
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13547 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13548 if test ${ac_cv_header_sys_wait_h+y}
13549 then :
13550 printf %s "(cached) " >&6
13551 else $as_nop
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 #include <sys/types.h>
13555 #include <sys/wait.h>
13556 #ifndef WEXITSTATUS
13557 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13558 #endif
13559 #ifndef WIFEXITED
13560 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13561 #endif
13562
13563 int
13564 main (void)
13565 {
13566 int s;
13567 wait (&s);
13568 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_compile "$LINENO"
13574 then :
13575 ac_cv_header_sys_wait_h=yes
13576 else $as_nop
13577 ac_cv_header_sys_wait_h=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13580 fi
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13582 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13583 if test $ac_cv_header_sys_wait_h = yes; then
13584
13585 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13586
13587 fi
13588
13589 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13590 if test "x$ac_cv_header_fcntl_h" = xyes
13591 then :
13592 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13593
13594 fi
13595 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13596 if test "x$ac_cv_header_sys_time_h" = xyes
13597 then :
13598 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13599
13600 fi
13601 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_unistd_h" = xyes
13603 then :
13604 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13605
13606 fi
13607 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13608 if test "x$ac_cv_header_stdlib_h" = xyes
13609 then :
13610 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13611
13612 fi
13613
13614
13615
13616
13617 # Obsolete code to be removed.
13618 if test $ac_cv_header_sys_time_h = yes; then
13619
13620 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13621
13622 fi
13623 # End of obsolete code.
13624
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13626 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13627 if test ${ac_cv_struct_tm+y}
13628 then :
13629 printf %s "(cached) " >&6
13630 else $as_nop
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 #include <sys/types.h>
13634 #include <time.h>
13635
13636 int
13637 main (void)
13638 {
13639 struct tm tm;
13640 int *p = &tm.tm_sec;
13641 return !p;
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"
13647 then :
13648 ac_cv_struct_tm=time.h
13649 else $as_nop
13650 ac_cv_struct_tm=sys/time.h
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13653 fi
13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13655 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13656 if test $ac_cv_struct_tm = sys/time.h; then
13657
13658 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13659
13660 fi
13661
13662
13663 case "$host_os" in darwin*)
13664 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
13665 esac
13666
13667 # Check whether --enable-gui-client was given.
13668 if test ${enable_gui_client+y}
13669 then :
13670 enableval=$enable_gui_client; GUI_CLIENT="$enableval"
13671 else $as_nop
13672 GUI_CLIENT="probe"
13673 fi
13674
13675
13676 # Check whether --enable-curses-client was given.
13677 if test ${enable_curses_client+y}
13678 then :
13679 enableval=$enable_curses_client; CURSES_CLIENT="$enableval"
13680 else $as_nop
13681 CURSES_CLIENT="probe"
13682 fi
13683
13684
13685 # Check whether --enable-gui-server was given.
13686 if test ${enable_gui_server+y}
13687 then :
13688 enableval=$enable_gui_server; GUI_SERVER="$enableval"
13689 else $as_nop
13690 GUI_SERVER="probe"
13691 fi
13692
13693
13694 # Check whether --enable-gtk4 was given.
13695 if test ${enable_gtk4+y}
13696 then :
13697 enableval=$enable_gtk4; USE_GTK4="$enableval"
13698 else $as_nop
13699 USE_GTK4="no"
13700 fi
13701
13702
13703 # Check whether --enable-gtk3 was given.
13704 if test ${enable_gtk3+y}
13705 then :
13706 enableval=$enable_gtk3; USE_GTK3="$enableval"
13707 else $as_nop
13708 USE_GTK3="yes"
13709 fi
13710
13711
13712
13713 # Check whether --with-esd was given.
13714 if test ${with_esd+y}
13715 then :
13716 withval=$with_esd; USE_ESD="$withval"
13717 else $as_nop
13718 USE_ESD="probe"
13719 fi
13720
13721
13722
13723 # Check whether --with-sdl was given.
13724 if test ${with_sdl+y}
13725 then :
13726 withval=$with_sdl; USE_SDL="$withval"
13727 else $as_nop
13728 USE_SDL="probe"
13729 fi
13730
13731
13732 if test "$host_vendor" = "apple" ; then
13733 APPLE=yes
13734
13735 printf "%s\n" "#define APPLE 1" >>confdefs.h
13736
13737 default_cocoa="yes"
13738 else
13739 APPLE=no
13740 default_cocoa="no"
13741 fi
13742 if test "$APPLE" = "yes"; then
13743 APPLE_TRUE=
13744 APPLE_FALSE='#'
13745 else
13746 APPLE_TRUE='#'
13747 APPLE_FALSE=
13748 fi
13749
13750
13751
13752 # Check whether --with-cocoa was given.
13753 if test ${with_cocoa+y}
13754 then :
13755 withval=$with_cocoa; USE_COCOA="$withval"
13756 else $as_nop
13757 USE_COCOA="${default_cocoa}"
13758 fi
13759
13760
13761 ESD=no
13762 SDL=no
13763 COCOA=no
13764
13765
13766 case $host_os in
13767 *cygwin* ) CYGWIN=yes;;
13768 * ) CYGWIN=no;;
13769 esac
13770
13771 # Check whether --enable-nativewin32 was given.
13772 if test ${enable_nativewin32+y}
13773 then :
13774 enableval=$enable_nativewin32; CYGWIN="$enableval"
13775 fi
13776
13777
13778 if test "$CYGWIN" = "yes" ; then
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Configuring for native Win32 binary under Cygwin" >&5
13780 printf "%s\n" "Configuring for native Win32 binary under Cygwin" >&6; }
13781
13782 printf "%s\n" "#define CYGWIN 1" >>confdefs.h
13783
13784
13785 am__fastdepOBJC_TRUE='#'
13786 am__fastdepOBJC_FALSE=
13787
13788 if test -n "$ac_tool_prefix"; then
13789 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13790 set dummy ${ac_tool_prefix}windres; ac_word=$2
13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 printf %s "checking for $ac_word... " >&6; }
13793 if test ${ac_cv_prog_WINDRES+y}
13794 then :
13795 printf %s "(cached) " >&6
13796 else $as_nop
13797 if test -n "$WINDRES"; then
13798 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13802 do
13803 IFS=$as_save_IFS
13804 case $as_dir in #(((
13805 '') as_dir=./ ;;
13806 */) ;;
13807 *) as_dir=$as_dir/ ;;
13808 esac
13809 for ac_exec_ext in '' $ac_executable_extensions; do
13810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13811 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
13812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13813 break 2
13814 fi
13815 done
13816 done
13817 IFS=$as_save_IFS
13818
13819 fi
13820 fi
13821 WINDRES=$ac_cv_prog_WINDRES
13822 if test -n "$WINDRES"; then
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13824 printf "%s\n" "$WINDRES" >&6; }
13825 else
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 printf "%s\n" "no" >&6; }
13828 fi
13829
13830
13831 fi
13832 if test -z "$ac_cv_prog_WINDRES"; then
13833 ac_ct_WINDRES=$WINDRES
13834 # Extract the first word of "windres", so it can be a program name with args.
13835 set dummy windres; ac_word=$2
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13837 printf %s "checking for $ac_word... " >&6; }
13838 if test ${ac_cv_prog_ac_ct_WINDRES+y}
13839 then :
13840 printf %s "(cached) " >&6
13841 else $as_nop
13842 if test -n "$ac_ct_WINDRES"; then
13843 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
13844 else
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13847 do
13848 IFS=$as_save_IFS
13849 case $as_dir in #(((
13850 '') as_dir=./ ;;
13851 */) ;;
13852 *) as_dir=$as_dir/ ;;
13853 esac
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_ac_ct_WINDRES="windres"
13857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864 fi
13865 fi
13866 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
13867 if test -n "$ac_ct_WINDRES"; then
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
13869 printf "%s\n" "$ac_ct_WINDRES" >&6; }
13870 else
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 printf "%s\n" "no" >&6; }
13873 fi
13874
13875 if test "x$ac_ct_WINDRES" = x; then
13876 WINDRES="windres"
13877 else
13878 case $cross_compiling:$ac_tool_warned in
13879 yes:)
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13882 ac_tool_warned=yes ;;
13883 esac
13884 WINDRES=$ac_ct_WINDRES
13885 fi
13886 else
13887 WINDRES="$ac_cv_prog_WINDRES"
13888 fi
13889
13890 bkp_CFLAGS="$CFLAGS"
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler MSVC compatibility flag" >&5
13892 printf %s "checking for compiler MSVC compatibility flag... " >&6; }
13893 CFLAGS="$CFLAGS -mms-bitfields"
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896
13897 int
13898 main (void)
13899 {
13900
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"
13906 then :
13907 mscompat="-mms-bitfields"
13908 else $as_nop
13909 mscompat="-fnative-struct"
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mscompat" >&5
13913 printf "%s\n" "$mscompat" >&6; }
13914 CFLAGS="$bkp_CFLAGS"
13915
13916 bkp_CFLAGS="$CFLAGS"
13917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for no-Cygwin flag" >&5
13918 printf %s "checking for no-Cygwin flag... " >&6; }
13919 CFLAGS="$CFLAGS -no-cygwin"
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922
13923 int
13924 main (void)
13925 {
13926
13927 ;
13928 return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_compile "$LINENO"
13932 then :
13933 nocyg="-no-cygwin"
13934 else $as_nop
13935 nocyg=""
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nocyg" >&5
13939 printf "%s\n" "$nocyg" >&6; }
13940 CFLAGS="$bkp_CFLAGS"
13941
13942 CFLAGS="$CFLAGS -mwindows $mscompat $nocyg"
13943 CPPFLAGS="$CPPFLAGS $nocyg"
13944 LIBS="$LIBS -lwsock32 -lcomctl32 -luxtheme -lmpr"
13945 LDFLAGS="$LDFLAGS $nocyg"
13946
13947
13948
13949
13950 # Check whether --enable-glibtest was given.
13951 if test ${enable_glibtest+y}
13952 then :
13953 enableval=$enable_glibtest;
13954 else $as_nop
13955 enable_glibtest=yes
13956 fi
13957
13958
13959 min_glib_version=2.0.0
13960 pkg_config_args="glib-2.0 >= $min_glib_version"
13961 for module in .
13962 do
13963 case "$module" in
13964 gmodule)
13965 pkg_config_args="$pkg_config_args gmodule-2.0"
13966 ;;
13967 gmodule-no-export)
13968 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13969 ;;
13970 gobject)
13971 pkg_config_args="$pkg_config_args gobject-2.0"
13972 ;;
13973 gthread)
13974 pkg_config_args="$pkg_config_args gthread-2.0"
13975 ;;
13976 gio*)
13977 pkg_config_args="$pkg_config_args $module-2.0"
13978 ;;
13979 esac
13980 done
13981
13982
13983
13984
13985
13986
13987
13988
13989 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13990 if test -n "$ac_tool_prefix"; then
13991 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13992 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994 printf %s "checking for $ac_word... " >&6; }
13995 if test ${ac_cv_path_PKG_CONFIG+y}
13996 then :
13997 printf %s "(cached) " >&6
13998 else $as_nop
13999 case $PKG_CONFIG in
14000 [\\/]* | ?:[\\/]*)
14001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14002 ;;
14003 *)
14004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005 for as_dir in $PATH
14006 do
14007 IFS=$as_save_IFS
14008 case $as_dir in #(((
14009 '') as_dir=./ ;;
14010 */) ;;
14011 *) as_dir=$as_dir/ ;;
14012 esac
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14015 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14017 break 2
14018 fi
14019 done
14020 done
14021 IFS=$as_save_IFS
14022
14023 ;;
14024 esac
14025 fi
14026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14027 if test -n "$PKG_CONFIG"; then
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14029 printf "%s\n" "$PKG_CONFIG" >&6; }
14030 else
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 printf "%s\n" "no" >&6; }
14033 fi
14034
14035
14036 fi
14037 if test -z "$ac_cv_path_PKG_CONFIG"; then
14038 ac_pt_PKG_CONFIG=$PKG_CONFIG
14039 # Extract the first word of "pkg-config", so it can be a program name with args.
14040 set dummy pkg-config; ac_word=$2
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042 printf %s "checking for $ac_word... " >&6; }
14043 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14044 then :
14045 printf %s "(cached) " >&6
14046 else $as_nop
14047 case $ac_pt_PKG_CONFIG in
14048 [\\/]* | ?:[\\/]*)
14049 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14050 ;;
14051 *)
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14054 do
14055 IFS=$as_save_IFS
14056 case $as_dir in #(((
14057 '') as_dir=./ ;;
14058 */) ;;
14059 *) as_dir=$as_dir/ ;;
14060 esac
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067 done
14068 done
14069 IFS=$as_save_IFS
14070
14071 ;;
14072 esac
14073 fi
14074 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14075 if test -n "$ac_pt_PKG_CONFIG"; then
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14077 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14078 else
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 printf "%s\n" "no" >&6; }
14081 fi
14082
14083 if test "x$ac_pt_PKG_CONFIG" = x; then
14084 PKG_CONFIG=""
14085 else
14086 case $cross_compiling:$ac_tool_warned in
14087 yes:)
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14090 ac_tool_warned=yes ;;
14091 esac
14092 PKG_CONFIG=$ac_pt_PKG_CONFIG
14093 fi
14094 else
14095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14096 fi
14097
14098 fi
14099 if test -n "$PKG_CONFIG"; then
14100 _pkg_min_version=0.16
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14102 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14103 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14105 printf "%s\n" "yes" >&6; }
14106 else
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 printf "%s\n" "no" >&6; }
14109 PKG_CONFIG=""
14110 fi
14111 fi
14112
14113 no_glib=""
14114
14115 if test "x$PKG_CONFIG" = x ; then
14116 no_glib=yes
14117 PKG_CONFIG=no
14118 fi
14119
14120
14121 pkg_failed=no
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
14123 printf %s "checking for GLIB... " >&6; }
14124
14125 if test -n "$GLIB_CFLAGS"; then
14126 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
14127 elif test -n "$PKG_CONFIG"; then
14128 if test -n "$PKG_CONFIG" && \
14129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5
14130 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5
14131 ac_status=$?
14132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14133 test $ac_status = 0; }; then
14134 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$pkg_config_args" 2>/dev/null`
14135 test "x$?" != "x0" && pkg_failed=yes
14136 else
14137 pkg_failed=yes
14138 fi
14139 else
14140 pkg_failed=untried
14141 fi
14142 if test -n "$GLIB_LIBS"; then
14143 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
14144 elif test -n "$PKG_CONFIG"; then
14145 if test -n "$PKG_CONFIG" && \
14146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5
14147 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5
14148 ac_status=$?
14149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150 test $ac_status = 0; }; then
14151 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$pkg_config_args" 2>/dev/null`
14152 test "x$?" != "x0" && pkg_failed=yes
14153 else
14154 pkg_failed=yes
14155 fi
14156 else
14157 pkg_failed=untried
14158 fi
14159
14160
14161
14162 if test $pkg_failed = yes; then
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164 printf "%s\n" "no" >&6; }
14165
14166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14167 _pkg_short_errors_supported=yes
14168 else
14169 _pkg_short_errors_supported=no
14170 fi
14171 if test $_pkg_short_errors_supported = yes; then
14172 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_config_args" 2>&1`
14173 else
14174 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_config_args" 2>&1`
14175 fi
14176 # Put the nasty error message in config.log where it belongs
14177 echo "$GLIB_PKG_ERRORS" >&5
14178
14179 :
14180 elif test $pkg_failed = untried; then
14181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 printf "%s\n" "no" >&6; }
14183 :
14184 else
14185 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
14186 GLIB_LIBS=$pkg_cv_GLIB_LIBS
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14188 printf "%s\n" "yes" >&6; }
14189 :
14190 fi
14191
14192
14193 if test -n "$GLIB_GENMARSHAL"; then
14194 pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL"
14195 elif test -n "$PKG_CONFIG"; then
14196 if test -n "$PKG_CONFIG" && \
14197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
14198 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
14199 ac_status=$?
14200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14201 test $ac_status = 0; }; then
14202 pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null`
14203 test "x$?" != "x0" && pkg_failed=yes
14204 else
14205 pkg_failed=yes
14206 fi
14207 else
14208 pkg_failed=untried
14209 fi
14210 GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL
14211
14212 if test "x$GLIB_GENMARSHAL" = x""
14213 then :
14214
14215 fi
14216
14217 if test -n "$GOBJECT_QUERY"; then
14218 pkg_cv_GOBJECT_QUERY="$GOBJECT_QUERY"
14219 elif test -n "$PKG_CONFIG"; then
14220 if test -n "$PKG_CONFIG" && \
14221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
14222 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
14223 ac_status=$?
14224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 pkg_cv_GOBJECT_QUERY=`$PKG_CONFIG --variable="gobject_query" "glib-2.0" 2>/dev/null`
14227 test "x$?" != "x0" && pkg_failed=yes
14228 else
14229 pkg_failed=yes
14230 fi
14231 else
14232 pkg_failed=untried
14233 fi
14234 GOBJECT_QUERY=$pkg_cv_GOBJECT_QUERY
14235
14236 if test "x$GOBJECT_QUERY" = x""
14237 then :
14238
14239 fi
14240
14241 if test -n "$GLIB_MKENUMS"; then
14242 pkg_cv_GLIB_MKENUMS="$GLIB_MKENUMS"
14243 elif test -n "$PKG_CONFIG"; then
14244 if test -n "$PKG_CONFIG" && \
14245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
14246 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
14247 ac_status=$?
14248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }; then
14250 pkg_cv_GLIB_MKENUMS=`$PKG_CONFIG --variable="glib_mkenums" "glib-2.0" 2>/dev/null`
14251 test "x$?" != "x0" && pkg_failed=yes
14252 else
14253 pkg_failed=yes
14254 fi
14255 else
14256 pkg_failed=untried
14257 fi
14258 GLIB_MKENUMS=$pkg_cv_GLIB_MKENUMS
14259
14260 if test "x$GLIB_MKENUMS" = x""
14261 then :
14262
14263 fi
14264
14265 if test -n "$GLIB_COMPILE_RESOURCES"; then
14266 pkg_cv_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES"
14267 elif test -n "$PKG_CONFIG"; then
14268 if test -n "$PKG_CONFIG" && \
14269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
14270 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
14271 ac_status=$?
14272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14273 test $ac_status = 0; }; then
14274 pkg_cv_GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable="glib_compile_resources" "gio-2.0" 2>/dev/null`
14275 test "x$?" != "x0" && pkg_failed=yes
14276 else
14277 pkg_failed=yes
14278 fi
14279 else
14280 pkg_failed=untried
14281 fi
14282 GLIB_COMPILE_RESOURCES=$pkg_cv_GLIB_COMPILE_RESOURCES
14283
14284 if test "x$GLIB_COMPILE_RESOURCES" = x""
14285 then :
14286
14287 fi
14288
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
14290 printf %s "checking for GLIB - version >= $min_glib_version... " >&6; }
14291
14292 if test x$PKG_CONFIG != xno ; then
14293 ## don't try to run the test against uninstalled libtool libs
14294 if $PKG_CONFIG --uninstalled $pkg_config_args; then
14295 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
14296 enable_glibtest=no
14297 fi
14298
14299 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
14300 :
14301 else
14302 no_glib=yes
14303 fi
14304 fi
14305
14306 if test x"$no_glib" = x ; then
14307 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
14308 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14309 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
14310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14311 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
14312 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14313 if test "x$enable_glibtest" = "xyes" ; then
14314 ac_save_CFLAGS="$CFLAGS"
14315 ac_save_LIBS="$LIBS"
14316 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14317 LIBS="$GLIB_LIBS $LIBS"
14318 rm -f conf.glibtest
14319 if test "$cross_compiling" = yes
14320 then :
14321 echo $ac_n "cross compiling; assumed OK... $ac_c"
14322 else $as_nop
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 #include <glib.h>
14327 #include <stdio.h>
14328 #include <stdlib.h>
14329
14330 int
14331 main (void)
14332 {
14333 unsigned int major, minor, micro;
14334
14335 fclose (fopen ("conf.glibtest", "w"));
14336
14337 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
14338 printf("%s, bad version string\n", "$min_glib_version");
14339 exit(1);
14340 }
14341
14342 if ((glib_major_version != $glib_config_major_version) ||
14343 (glib_minor_version != $glib_config_minor_version) ||
14344 (glib_micro_version != $glib_config_micro_version))
14345 {
14346 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
14347 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
14348 glib_major_version, glib_minor_version, glib_micro_version);
14349 printf ("*** was found! If pkg-config was correct, then it is best\n");
14350 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
14351 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14352 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14353 printf("*** required on your system.\n");
14354 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14355 printf("*** to point to the correct configuration files\n");
14356 }
14357 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
14358 (glib_minor_version != GLIB_MINOR_VERSION) ||
14359 (glib_micro_version != GLIB_MICRO_VERSION))
14360 {
14361 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
14362 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
14363 printf("*** library (version %d.%d.%d)\n",
14364 glib_major_version, glib_minor_version, glib_micro_version);
14365 }
14366 else
14367 {
14368 if ((glib_major_version > major) ||
14369 ((glib_major_version == major) && (glib_minor_version > minor)) ||
14370 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
14371 {
14372 return 0;
14373 }
14374 else
14375 {
14376 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
14377 glib_major_version, glib_minor_version, glib_micro_version);
14378 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
14379 major, minor, micro);
14380 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
14381 printf("***\n");
14382 printf("*** If you have already installed a sufficiently new version, this error\n");
14383 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14384 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14385 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
14386 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14387 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14388 printf("*** so that the correct libraries are found at run-time))\n");
14389 }
14390 }
14391 return 1;
14392 }
14393
14394 _ACEOF
14395 if ac_fn_c_try_run "$LINENO"
14396 then :
14397
14398 else $as_nop
14399 no_glib=yes
14400 fi
14401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14402 conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 fi
14404
14405 CFLAGS="$ac_save_CFLAGS"
14406 LIBS="$ac_save_LIBS"
14407 fi
14408 fi
14409 if test "x$no_glib" = x ; then
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
14411 printf "%s\n" "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
14412 :
14413 else
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 printf "%s\n" "no" >&6; }
14416 if test "$PKG_CONFIG" = "no" ; then
14417 echo "*** A new enough version of pkg-config was not found."
14418 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
14419 else
14420 if test -f conf.glibtest ; then
14421 :
14422 else
14423 echo "*** Could not run GLIB test program, checking why..."
14424 ac_save_CFLAGS="$CFLAGS"
14425 ac_save_LIBS="$LIBS"
14426 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14427 LIBS="$LIBS $GLIB_LIBS"
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 #include <glib.h>
14432 #include <stdio.h>
14433
14434 int
14435 main (void)
14436 {
14437 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14438 ;
14439 return 0;
14440 }
14441 _ACEOF
14442 if ac_fn_c_try_link "$LINENO"
14443 then :
14444 echo "*** The test program compiled, but did not run. This usually means"
14445 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14446 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14447 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14448 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14449 echo "*** is required on your system"
14450 echo "***"
14451 echo "*** If you have an old version installed, it is best to remove it, although"
14452 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14453 else $as_nop
14454 echo "*** The test program failed to compile or link. See the file config.log for the"
14455 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14458 conftest$ac_exeext conftest.$ac_ext
14459 CFLAGS="$ac_save_CFLAGS"
14460 LIBS="$ac_save_LIBS"
14461 fi
14462 fi
14463 GLIB_CFLAGS=""
14464 GLIB_LIBS=""
14465 GLIB_GENMARSHAL=""
14466 GOBJECT_QUERY=""
14467 GLIB_MKENUMS=""
14468 GLIB_COMPILE_RESOURCES=""
14469 as_fn_error $? "GLib is required" "$LINENO" 5
14470 fi
14471 rm -f conf.glibtest
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499 # Check whether --with-libcurl was given.
14500 if test ${with_libcurl+y}
14501 then :
14502 withval=$with_libcurl; _libcurl_with=$withval
14503 else $as_nop
14504 _libcurl_with=7.17.0
14505 fi
14506
14507
14508 if test "$_libcurl_with" != "no" ; then
14509
14510 for ac_prog in gawk mawk nawk awk
14511 do
14512 # Extract the first word of "$ac_prog", so it can be a program name with args.
14513 set dummy $ac_prog; ac_word=$2
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14515 printf %s "checking for $ac_word... " >&6; }
14516 if test ${ac_cv_prog_AWK+y}
14517 then :
14518 printf %s "(cached) " >&6
14519 else $as_nop
14520 if test -n "$AWK"; then
14521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526 IFS=$as_save_IFS
14527 case $as_dir in #(((
14528 '') as_dir=./ ;;
14529 */) ;;
14530 *) as_dir=$as_dir/ ;;
14531 esac
14532 for ac_exec_ext in '' $ac_executable_extensions; do
14533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14534 ac_cv_prog_AWK="$ac_prog"
14535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14536 break 2
14537 fi
14538 done
14539 done
14540 IFS=$as_save_IFS
14541
14542 fi
14543 fi
14544 AWK=$ac_cv_prog_AWK
14545 if test -n "$AWK"; then
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14547 printf "%s\n" "$AWK" >&6; }
14548 else
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14550 printf "%s\n" "no" >&6; }
14551 fi
14552
14553
14554 test -n "$AWK" && break
14555 done
14556
14557
14558 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
14559
14560 _libcurl_try_link=yes
14561
14562 if test -d "$_libcurl_with" ; then
14563 LIBCURL_CPPFLAGS="-I$withval/include"
14564 _libcurl_ldflags="-L$withval/lib"
14565 # Extract the first word of "curl-config", so it can be a program name with args.
14566 set dummy curl-config; ac_word=$2
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568 printf %s "checking for $ac_word... " >&6; }
14569 if test ${ac_cv_path__libcurl_config+y}
14570 then :
14571 printf %s "(cached) " >&6
14572 else $as_nop
14573 case $_libcurl_config in
14574 [\\/]* | ?:[\\/]*)
14575 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
14576 ;;
14577 *)
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in "$withval/bin"
14580 do
14581 IFS=$as_save_IFS
14582 case $as_dir in #(((
14583 '') as_dir=./ ;;
14584 */) ;;
14585 *) as_dir=$as_dir/ ;;
14586 esac
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14589 ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
14590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14591 break 2
14592 fi
14593 done
14594 done
14595 IFS=$as_save_IFS
14596
14597 ;;
14598 esac
14599 fi
14600 _libcurl_config=$ac_cv_path__libcurl_config
14601 if test -n "$_libcurl_config"; then
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
14603 printf "%s\n" "$_libcurl_config" >&6; }
14604 else
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14606 printf "%s\n" "no" >&6; }
14607 fi
14608
14609
14610 else
14611 # Extract the first word of "curl-config", so it can be a program name with args.
14612 set dummy curl-config; ac_word=$2
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 printf %s "checking for $ac_word... " >&6; }
14615 if test ${ac_cv_path__libcurl_config+y}
14616 then :
14617 printf %s "(cached) " >&6
14618 else $as_nop
14619 case $_libcurl_config in
14620 [\\/]* | ?:[\\/]*)
14621 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
14622 ;;
14623 *)
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 case $as_dir in #(((
14629 '') as_dir=./ ;;
14630 */) ;;
14631 *) as_dir=$as_dir/ ;;
14632 esac
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14635 ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
14636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14637 break 2
14638 fi
14639 done
14640 done
14641 IFS=$as_save_IFS
14642
14643 ;;
14644 esac
14645 fi
14646 _libcurl_config=$ac_cv_path__libcurl_config
14647 if test -n "$_libcurl_config"; then
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
14649 printf "%s\n" "$_libcurl_config" >&6; }
14650 else
14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14652 printf "%s\n" "no" >&6; }
14653 fi
14654
14655
14656 fi
14657
14658 if test x$_libcurl_config != "x" ; then
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
14660 printf %s "checking for the version of libcurl... " >&6; }
14661 if test ${libcurl_cv_lib_curl_version+y}
14662 then :
14663 printf %s "(cached) " >&6
14664 else $as_nop
14665 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
14666 fi
14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
14668 printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; }
14669
14670 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
14671 _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
14672
14673 if test $_libcurl_wanted -gt 0 ; then
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
14675 printf %s "checking for libcurl >= version ... " >&6; }
14676 if test ${libcurl_cv_lib_version_ok+y}
14677 then :
14678 printf %s "(cached) " >&6
14679 else $as_nop
14680
14681 if test $_libcurl_version -ge $_libcurl_wanted ; then
14682 libcurl_cv_lib_version_ok=yes
14683 else
14684 libcurl_cv_lib_version_ok=no
14685 fi
14686
14687 fi
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
14689 printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; }
14690 fi
14691
14692 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
14693 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
14694 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
14695 fi
14696 if test x"$LIBCURL" = "x" ; then
14697 LIBCURL=`$_libcurl_config --libs`
14698
14699 # This is so silly, but Apple actually has a bug in their
14700 # curl-config script. Fixed in Tiger, but there are still
14701 # lots of Panther installs around.
14702 case "${host}" in
14703 powerpc-apple-darwin7*)
14704 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
14705 ;;
14706 esac
14707 fi
14708
14709 # All curl-config scripts support --feature
14710 _libcurl_features=`$_libcurl_config --feature`
14711
14712 # Is it modern enough to have --protocols? (7.12.4)
14713 if test $_libcurl_version -ge 461828 ; then
14714 _libcurl_protocols=`$_libcurl_config --protocols`
14715 fi
14716 else
14717 _libcurl_try_link=no
14718 fi
14719
14720 unset _libcurl_wanted
14721 fi
14722
14723 if test $_libcurl_try_link = yes ; then
14724
14725 # we didn't find curl-config, so let's see if the user-supplied
14726 # link line (or failing that, "-lcurl") is enough.
14727 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
14728
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
14730 printf %s "checking whether libcurl is usable... " >&6; }
14731 if test ${libcurl_cv_lib_curl_usable+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else $as_nop
14735
14736 _libcurl_save_cppflags=$CPPFLAGS
14737 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
14738 _libcurl_save_libs=$LIBS
14739 LIBS="$LIBCURL $LIBS"
14740
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 #include <curl/curl.h>
14744 int
14745 main (void)
14746 {
14747
14748 /* Try and use a few common options to force a failure if we are
14749 missing symbols or can't link. */
14750 int x;
14751 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
14752 x=CURL_ERROR_SIZE;
14753 x=CURLOPT_WRITEFUNCTION;
14754 x=CURLOPT_WRITEDATA;
14755 x=CURLOPT_ERRORBUFFER;
14756 x=CURLOPT_STDERR;
14757 x=CURLOPT_VERBOSE;
14758 if (x) {;}
14759
14760 ;
14761 return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"
14765 then :
14766 libcurl_cv_lib_curl_usable=yes
14767 else $as_nop
14768 libcurl_cv_lib_curl_usable=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14771 conftest$ac_exeext conftest.$ac_ext
14772
14773 CPPFLAGS=$_libcurl_save_cppflags
14774 LIBS=$_libcurl_save_libs
14775 unset _libcurl_save_cppflags
14776 unset _libcurl_save_libs
14777
14778 fi
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
14780 printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; }
14781
14782 if test $libcurl_cv_lib_curl_usable = yes ; then
14783
14784 # Does curl_free() exist in this version of libcurl?
14785 # If not, fake it with free()
14786
14787 _libcurl_save_cppflags=$CPPFLAGS
14788 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
14789 _libcurl_save_libs=$LIBS
14790 LIBS="$LIBS $LIBCURL"
14791
14792 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
14793 if test "x$ac_cv_func_curl_free" = xyes
14794 then :
14795
14796 else $as_nop
14797
14798 printf "%s\n" "#define curl_free free" >>confdefs.h
14799
14800 fi
14801
14802
14803 CPPFLAGS=$_libcurl_save_cppflags
14804 LIBS=$_libcurl_save_libs
14805 unset _libcurl_save_cppflags
14806 unset _libcurl_save_libs
14807
14808
14809 printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h
14810
14811
14812
14813
14814 for _libcurl_feature in $_libcurl_features ; do
14815 cat >>confdefs.h <<_ACEOF
14816 #define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
14817 _ACEOF
14818
14819 eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
14820 done
14821
14822 if test "x$_libcurl_protocols" = "x" ; then
14823
14824 # We don't have --protocols, so just assume that all
14825 # protocols are available
14826 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
14827
14828 if test x$libcurl_feature_SSL = xyes ; then
14829 _libcurl_protocols="$_libcurl_protocols HTTPS"
14830
14831 # FTPS wasn't standards-compliant until version
14832 # 7.11.0 (0x070b00 == 461568)
14833 if test $_libcurl_version -ge 461568; then
14834 _libcurl_protocols="$_libcurl_protocols FTPS"
14835 fi
14836 fi
14837
14838 # RTSP, IMAP, POP3 and SMTP were added in
14839 # 7.20.0 (0x071400 == 463872)
14840 if test $_libcurl_version -ge 463872; then
14841 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
14842 fi
14843 fi
14844
14845 for _libcurl_protocol in $_libcurl_protocols ; do
14846 cat >>confdefs.h <<_ACEOF
14847 #define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
14848 _ACEOF
14849
14850 eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
14851 done
14852 else
14853 unset LIBCURL
14854 unset LIBCURL_CPPFLAGS
14855 fi
14856 fi
14857
14858 unset _libcurl_try_link
14859 unset _libcurl_version_parse
14860 unset _libcurl_config
14861 unset _libcurl_feature
14862 unset _libcurl_features
14863 unset _libcurl_protocol
14864 unset _libcurl_protocols
14865 unset _libcurl_version
14866 unset _libcurl_ldflags
14867 fi
14868
14869 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
14870 # This is the IF-NO path
14871 :
14872 else
14873 # This is the IF-YES path
14874 :
14875 fi
14876
14877 unset _libcurl_with
14878
14879
14880 WNDRES="dopewars.res"
14881
14882
14883 SOUND_LIBS="$SOUND_LIBS -lwinmm"
14884 PLUGOBJS="$PLUGOBJS plugins/sound_winmm.o"
14885
14886 printf "%s\n" "#define HAVE_WINMM 1" >>confdefs.h
14887
14888
14889 if test "$GUI_SERVER" = "probe"; then
14890 GUI_SERVER="yes"
14891 fi
14892
14893 datadir="."
14894 localstatedir="."
14895 else
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Configuring for Unix binary" >&5
14897 printf "%s\n" "Configuring for Unix binary" >&6; }
14898
14899 if test "$CURSES_CLIENT" != "no" ; then
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lncurses" >&5
14901 printf %s "checking for newterm in -lncurses... " >&6; }
14902 if test ${ac_cv_lib_ncurses_newterm+y}
14903 then :
14904 printf %s "(cached) " >&6
14905 else $as_nop
14906 ac_check_lib_save_LIBS=$LIBS
14907 LIBS="-lncurses $LIBS"
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910
14911 /* Override any GCC internal prototype to avoid an error.
14912 Use char because int might match the return type of a GCC
14913 builtin and then its argument prototype would still apply. */
14914 char newterm ();
14915 int
14916 main (void)
14917 {
14918 return newterm ();
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"
14924 then :
14925 ac_cv_lib_ncurses_newterm=yes
14926 else $as_nop
14927 ac_cv_lib_ncurses_newterm=no
14928 fi
14929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14932 fi
14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_newterm" >&5
14934 printf "%s\n" "$ac_cv_lib_ncurses_newterm" >&6; }
14935 if test "x$ac_cv_lib_ncurses_newterm" = xyes
14936 then :
14937 printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h
14938
14939 LIBS="-lncurses $LIBS"
14940
14941 fi
14942
14943 if test "$ac_cv_lib_ncurses_newterm" = "no" ; then
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lcurses" >&5
14945 printf %s "checking for newterm in -lcurses... " >&6; }
14946 if test ${ac_cv_lib_curses_newterm+y}
14947 then :
14948 printf %s "(cached) " >&6
14949 else $as_nop
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-lcurses $LIBS"
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 char newterm ();
14959 int
14960 main (void)
14961 {
14962 return newterm ();
14963 ;
14964 return 0;
14965 }
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"
14968 then :
14969 ac_cv_lib_curses_newterm=yes
14970 else $as_nop
14971 ac_cv_lib_curses_newterm=no
14972 fi
14973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14974 conftest$ac_exeext conftest.$ac_ext
14975 LIBS=$ac_check_lib_save_LIBS
14976 fi
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_newterm" >&5
14978 printf "%s\n" "$ac_cv_lib_curses_newterm" >&6; }
14979 if test "x$ac_cv_lib_curses_newterm" = xyes
14980 then :
14981 printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h
14982
14983 LIBS="-lcurses $LIBS"
14984
14985 fi
14986
14987 if test "$ac_cv_lib_curses_newterm" = "no" ; then
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lcur_colr" >&5
14989 printf %s "checking for newterm in -lcur_colr... " >&6; }
14990 if test ${ac_cv_lib_cur_colr_newterm+y}
14991 then :
14992 printf %s "(cached) " >&6
14993 else $as_nop
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lcur_colr $LIBS"
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998
14999 /* Override any GCC internal prototype to avoid an error.
15000 Use char because int might match the return type of a GCC
15001 builtin and then its argument prototype would still apply. */
15002 char newterm ();
15003 int
15004 main (void)
15005 {
15006 return newterm ();
15007 ;
15008 return 0;
15009 }
15010 _ACEOF
15011 if ac_fn_c_try_link "$LINENO"
15012 then :
15013 ac_cv_lib_cur_colr_newterm=yes
15014 else $as_nop
15015 ac_cv_lib_cur_colr_newterm=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15018 conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15020 fi
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_newterm" >&5
15022 printf "%s\n" "$ac_cv_lib_cur_colr_newterm" >&6; }
15023 if test "x$ac_cv_lib_cur_colr_newterm" = xyes
15024 then :
15025 printf "%s\n" "#define HAVE_LIBCUR_COLR 1" >>confdefs.h
15026
15027 LIBS="-lcur_colr $LIBS"
15028
15029 fi
15030
15031 if test "$ac_cv_lib_cur_colr_newterm" = "no" ; then
15032 if test "$CURSES_CLIENT" = "yes" ; then
15033 as_fn_error $? "Cannot find any curses-type library" "$LINENO" 5
15034 else
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any curses-type library" >&5
15036 printf "%s\n" "$as_me: WARNING: Cannot find any curses-type library" >&2;}
15037 CURSES_CLIENT="no"
15038 fi
15039 fi
15040 fi
15041 fi
15042 fi
15043
15044 gtk2_found="probe"
15045 if test "$GUI_CLIENT" != "no" -o "$GUI_SERVER" != "no"; then
15046
15047
15048
15049
15050
15051
15052
15053 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15054 if test -n "$ac_tool_prefix"; then
15055 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15056 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15058 printf %s "checking for $ac_word... " >&6; }
15059 if test ${ac_cv_path_PKG_CONFIG+y}
15060 then :
15061 printf %s "(cached) " >&6
15062 else $as_nop
15063 case $PKG_CONFIG in
15064 [\\/]* | ?:[\\/]*)
15065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15066 ;;
15067 *)
15068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15069 for as_dir in $PATH
15070 do
15071 IFS=$as_save_IFS
15072 case $as_dir in #(((
15073 '') as_dir=./ ;;
15074 */) ;;
15075 *) as_dir=$as_dir/ ;;
15076 esac
15077 for ac_exec_ext in '' $ac_executable_extensions; do
15078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15079 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15081 break 2
15082 fi
15083 done
15084 done
15085 IFS=$as_save_IFS
15086
15087 ;;
15088 esac
15089 fi
15090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15091 if test -n "$PKG_CONFIG"; then
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15093 printf "%s\n" "$PKG_CONFIG" >&6; }
15094 else
15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15096 printf "%s\n" "no" >&6; }
15097 fi
15098
15099
15100 fi
15101 if test -z "$ac_cv_path_PKG_CONFIG"; then
15102 ac_pt_PKG_CONFIG=$PKG_CONFIG
15103 # Extract the first word of "pkg-config", so it can be a program name with args.
15104 set dummy pkg-config; ac_word=$2
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 printf %s "checking for $ac_word... " >&6; }
15107 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15108 then :
15109 printf %s "(cached) " >&6
15110 else $as_nop
15111 case $ac_pt_PKG_CONFIG in
15112 [\\/]* | ?:[\\/]*)
15113 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15114 ;;
15115 *)
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15118 do
15119 IFS=$as_save_IFS
15120 case $as_dir in #(((
15121 '') as_dir=./ ;;
15122 */) ;;
15123 *) as_dir=$as_dir/ ;;
15124 esac
15125 for ac_exec_ext in '' $ac_executable_extensions; do
15126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15127 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15129 break 2
15130 fi
15131 done
15132 done
15133 IFS=$as_save_IFS
15134
15135 ;;
15136 esac
15137 fi
15138 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15139 if test -n "$ac_pt_PKG_CONFIG"; then
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15141 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15142 else
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 printf "%s\n" "no" >&6; }
15145 fi
15146
15147 if test "x$ac_pt_PKG_CONFIG" = x; then
15148 PKG_CONFIG=""
15149 else
15150 case $cross_compiling:$ac_tool_warned in
15151 yes:)
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15154 ac_tool_warned=yes ;;
15155 esac
15156 PKG_CONFIG=$ac_pt_PKG_CONFIG
15157 fi
15158 else
15159 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15160 fi
15161
15162 fi
15163 if test -n "$PKG_CONFIG"; then
15164 _pkg_min_version=0.9.0
15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15166 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15167 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15169 printf "%s\n" "yes" >&6; }
15170 else
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 printf "%s\n" "no" >&6; }
15173 PKG_CONFIG=""
15174 fi
15175 fi
15176 gtk4_found="no"
15177 if test "$USE_GTK4" = "yes" ; then
15178
15179 pkg_failed=no
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15181 printf %s "checking for GTK... " >&6; }
15182
15183 if test -n "$GTK_CFLAGS"; then
15184 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15185 elif test -n "$PKG_CONFIG"; then
15186 if test -n "$PKG_CONFIG" && \
15187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4\""; } >&5
15188 ($PKG_CONFIG --exists --print-errors "gtk4") 2>&5
15189 ac_status=$?
15190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 test $ac_status = 0; }; then
15192 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk4" 2>/dev/null`
15193 test "x$?" != "x0" && pkg_failed=yes
15194 else
15195 pkg_failed=yes
15196 fi
15197 else
15198 pkg_failed=untried
15199 fi
15200 if test -n "$GTK_LIBS"; then
15201 pkg_cv_GTK_LIBS="$GTK_LIBS"
15202 elif test -n "$PKG_CONFIG"; then
15203 if test -n "$PKG_CONFIG" && \
15204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4\""; } >&5
15205 ($PKG_CONFIG --exists --print-errors "gtk4") 2>&5
15206 ac_status=$?
15207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15208 test $ac_status = 0; }; then
15209 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk4" 2>/dev/null`
15210 test "x$?" != "x0" && pkg_failed=yes
15211 else
15212 pkg_failed=yes
15213 fi
15214 else
15215 pkg_failed=untried
15216 fi
15217
15218
15219
15220 if test $pkg_failed = yes; then
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 printf "%s\n" "no" >&6; }
15223
15224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15225 _pkg_short_errors_supported=yes
15226 else
15227 _pkg_short_errors_supported=no
15228 fi
15229 if test $_pkg_short_errors_supported = yes; then
15230 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk4" 2>&1`
15231 else
15232 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk4" 2>&1`
15233 fi
15234 # Put the nasty error message in config.log where it belongs
15235 echo "$GTK_PKG_ERRORS" >&5
15236
15237 gtk4_found="no"
15238 elif test $pkg_failed = untried; then
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 printf "%s\n" "no" >&6; }
15241 gtk4_found="no"
15242 else
15243 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15244 GTK_LIBS=$pkg_cv_GTK_LIBS
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15246 printf "%s\n" "yes" >&6; }
15247 gtk4_found="yes"
15248 fi
15249 fi
15250 if test "$gtk4_found" = "no" ; then
15251 gtk3_found="no"
15252 if test "$USE_GTK3" = "yes" ; then
15253
15254 pkg_failed=no
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15256 printf %s "checking for GTK... " >&6; }
15257
15258 if test -n "$GTK_CFLAGS"; then
15259 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15260 elif test -n "$PKG_CONFIG"; then
15261 if test -n "$PKG_CONFIG" && \
15262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
15263 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
15264 ac_status=$?
15265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 test $ac_status = 0; }; then
15267 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
15268 test "x$?" != "x0" && pkg_failed=yes
15269 else
15270 pkg_failed=yes
15271 fi
15272 else
15273 pkg_failed=untried
15274 fi
15275 if test -n "$GTK_LIBS"; then
15276 pkg_cv_GTK_LIBS="$GTK_LIBS"
15277 elif test -n "$PKG_CONFIG"; then
15278 if test -n "$PKG_CONFIG" && \
15279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
15280 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
15281 ac_status=$?
15282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15283 test $ac_status = 0; }; then
15284 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
15285 test "x$?" != "x0" && pkg_failed=yes
15286 else
15287 pkg_failed=yes
15288 fi
15289 else
15290 pkg_failed=untried
15291 fi
15292
15293
15294
15295 if test $pkg_failed = yes; then
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 printf "%s\n" "no" >&6; }
15298
15299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15300 _pkg_short_errors_supported=yes
15301 else
15302 _pkg_short_errors_supported=no
15303 fi
15304 if test $_pkg_short_errors_supported = yes; then
15305 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
15306 else
15307 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
15308 fi
15309 # Put the nasty error message in config.log where it belongs
15310 echo "$GTK_PKG_ERRORS" >&5
15311
15312 gtk3_found="no"
15313 elif test $pkg_failed = untried; then
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 printf "%s\n" "no" >&6; }
15316 gtk3_found="no"
15317 else
15318 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15319 GTK_LIBS=$pkg_cv_GTK_LIBS
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15321 printf "%s\n" "yes" >&6; }
15322 gtk3_found="yes"
15323 fi
15324 fi
15325 if test "$gtk3_found" = "no" ; then
15326 # Check whether --enable-gtktest was given.
15327 if test ${enable_gtktest+y}
15328 then :
15329 enableval=$enable_gtktest;
15330 else $as_nop
15331 enable_gtktest=yes
15332 fi
15333
15334
15335 pkg_config_args=gtk+-2.0
15336 for module in .
15337 do
15338 case "$module" in
15339 gthread)
15340 pkg_config_args="$pkg_config_args gthread-2.0"
15341 ;;
15342 esac
15343 done
15344
15345 no_gtk=""
15346
15347 # Extract the first word of "pkg-config", so it can be a program name with args.
15348 set dummy pkg-config; ac_word=$2
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15350 printf %s "checking for $ac_word... " >&6; }
15351 if test ${ac_cv_path_PKG_CONFIG+y}
15352 then :
15353 printf %s "(cached) " >&6
15354 else $as_nop
15355 case $PKG_CONFIG in
15356 [\\/]* | ?:[\\/]*)
15357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15358 ;;
15359 *)
15360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361 for as_dir in $PATH
15362 do
15363 IFS=$as_save_IFS
15364 case $as_dir in #(((
15365 '') as_dir=./ ;;
15366 */) ;;
15367 *) as_dir=$as_dir/ ;;
15368 esac
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15371 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15373 break 2
15374 fi
15375 done
15376 done
15377 IFS=$as_save_IFS
15378
15379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15380 ;;
15381 esac
15382 fi
15383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15384 if test -n "$PKG_CONFIG"; then
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15386 printf "%s\n" "$PKG_CONFIG" >&6; }
15387 else
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15389 printf "%s\n" "no" >&6; }
15390 fi
15391
15392
15393
15394 if test x$PKG_CONFIG != xno ; then
15395 if pkg-config --atleast-pkgconfig-version 0.7 ; then
15396 :
15397 else
15398 echo "*** pkg-config too old; version 0.7 or better required."
15399 no_gtk=yes
15400 PKG_CONFIG=no
15401 fi
15402 else
15403 no_gtk=yes
15404 fi
15405
15406 min_gtk_version=2.0.0
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
15408 printf %s "checking for GTK+ - version >= $min_gtk_version... " >&6; }
15409
15410 if test x$PKG_CONFIG != xno ; then
15411 ## don't try to run the test against uninstalled libtool libs
15412 if $PKG_CONFIG --uninstalled $pkg_config_args; then
15413 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
15414 enable_gtktest=no
15415 fi
15416
15417 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
15418 :
15419 else
15420 no_gtk=yes
15421 fi
15422 fi
15423
15424 if test x"$no_gtk" = x ; then
15425 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
15426 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
15427 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15428 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15429 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15430 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15431 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15432 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15433 if test "x$enable_gtktest" = "xyes" ; then
15434 ac_save_CFLAGS="$CFLAGS"
15435 ac_save_LIBS="$LIBS"
15436 CFLAGS="$CFLAGS $GTK_CFLAGS"
15437 LIBS="$GTK_LIBS $LIBS"
15438 rm -f conf.gtktest
15439 if test "$cross_compiling" = yes
15440 then :
15441 echo $ac_n "cross compiling; assumed OK... $ac_c"
15442 else $as_nop
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445
15446 #include <gtk/gtk.h>
15447 #include <stdio.h>
15448 #include <stdlib.h>
15449
15450 int
15451 main ()
15452 {
15453 int major, minor, micro;
15454 char *tmp_version;
15455
15456 system ("touch conf.gtktest");
15457
15458 /* HP/UX 9 (%@#!) writes to sscanf strings */
15459 tmp_version = g_strdup("$min_gtk_version");
15460 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15461 printf("%s, bad version string\n", "$min_gtk_version");
15462 exit(1);
15463 }
15464
15465 if ((gtk_major_version != $gtk_config_major_version) ||
15466 (gtk_minor_version != $gtk_config_minor_version) ||
15467 (gtk_micro_version != $gtk_config_micro_version))
15468 {
15469 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
15470 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15471 gtk_major_version, gtk_minor_version, gtk_micro_version);
15472 printf ("*** was found! If pkg-config was correct, then it is best\n");
15473 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15474 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15475 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15476 printf("*** required on your system.\n");
15477 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15478 printf("*** to point to the correct configuration files\n");
15479 }
15480 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15481 (gtk_minor_version != GTK_MINOR_VERSION) ||
15482 (gtk_micro_version != GTK_MICRO_VERSION))
15483 {
15484 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15485 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15486 printf("*** library (version %d.%d.%d)\n",
15487 gtk_major_version, gtk_minor_version, gtk_micro_version);
15488 }
15489 else
15490 {
15491 if ((gtk_major_version > major) ||
15492 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15493 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15494 {
15495 return 0;
15496 }
15497 else
15498 {
15499 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15500 gtk_major_version, gtk_minor_version, gtk_micro_version);
15501 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15502 major, minor, micro);
15503 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15504 printf("***\n");
15505 printf("*** If you have already installed a sufficiently new version, this error\n");
15506 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15507 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15508 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
15509 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15510 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15511 printf("*** so that the correct libraries are found at run-time))\n");
15512 }
15513 }
15514 return 1;
15515 }
15516
15517 _ACEOF
15518 if ac_fn_c_try_run "$LINENO"
15519 then :
15520
15521 else $as_nop
15522 no_gtk=yes
15523 fi
15524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15525 conftest.$ac_objext conftest.beam conftest.$ac_ext
15526 fi
15527
15528 CFLAGS="$ac_save_CFLAGS"
15529 LIBS="$ac_save_LIBS"
15530 fi
15531 fi
15532 if test "x$no_gtk" = x ; then
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
15534 printf "%s\n" "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
15535 gtk2_found="yes"
15536 else
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 printf "%s\n" "no" >&6; }
15539 if test "$PKG_CONFIG" = "no" ; then
15540 echo "*** A new enough version of pkg-config was not found."
15541 echo "*** See http://pkgconfig.sourceforge.net"
15542 else
15543 if test -f conf.gtktest ; then
15544 :
15545 else
15546 echo "*** Could not run GTK+ test program, checking why..."
15547 ac_save_CFLAGS="$CFLAGS"
15548 ac_save_LIBS="$LIBS"
15549 CFLAGS="$CFLAGS $GTK_CFLAGS"
15550 LIBS="$LIBS $GTK_LIBS"
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553
15554 #include <gtk/gtk.h>
15555 #include <stdio.h>
15556
15557 int
15558 main (void)
15559 {
15560 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15561 ;
15562 return 0;
15563 }
15564 _ACEOF
15565 if ac_fn_c_try_link "$LINENO"
15566 then :
15567 echo "*** The test program compiled, but did not run. This usually means"
15568 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
15569 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
15570 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15571 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15572 echo "*** is required on your system"
15573 echo "***"
15574 echo "*** If you have an old version installed, it is best to remove it, although"
15575 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15576 else $as_nop
15577 echo "*** The test program failed to compile or link. See the file config.log for the"
15578 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
15579 fi
15580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15581 conftest$ac_exeext conftest.$ac_ext
15582 CFLAGS="$ac_save_CFLAGS"
15583 LIBS="$ac_save_LIBS"
15584 fi
15585 fi
15586 GTK_CFLAGS=""
15587 GTK_LIBS=""
15588 gtk2_found="no"
15589 fi
15590
15591
15592 rm -f conf.gtktest
15593
15594 if test "$gtk2_found" = "no" ; then
15595 if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then
15596 as_fn_error $? "Cannot find GTK+" "$LINENO" 5
15597 else
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK+; not building GUI client or server" >&5
15599 printf "%s\n" "$as_me: WARNING: Cannot find GTK+; not building GUI client or server" >&2;}
15600 GUI_CLIENT="no"
15601 GUI_SERVER="no"
15602 fi
15603 fi
15604 fi
15605 fi
15606 fi
15607
15608
15609
15610
15611 # Check whether --enable-glibtest was given.
15612 if test ${enable_glibtest+y}
15613 then :
15614 enableval=$enable_glibtest;
15615 else $as_nop
15616 enable_glibtest=yes
15617 fi
15618
15619
15620 min_glib_version=2.0.0
15621 pkg_config_args="glib-2.0 >= $min_glib_version"
15622 for module in .
15623 do
15624 case "$module" in
15625 gmodule)
15626 pkg_config_args="$pkg_config_args gmodule-2.0"
15627 ;;
15628 gmodule-no-export)
15629 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
15630 ;;
15631 gobject)
15632 pkg_config_args="$pkg_config_args gobject-2.0"
15633 ;;
15634 gthread)
15635 pkg_config_args="$pkg_config_args gthread-2.0"
15636 ;;
15637 gio*)
15638 pkg_config_args="$pkg_config_args $module-2.0"
15639 ;;
15640 esac
15641 done
15642
15643
15644
15645
15646
15647
15648
15649
15650 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15651 if test -n "$ac_tool_prefix"; then
15652 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15653 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 printf %s "checking for $ac_word... " >&6; }
15656 if test ${ac_cv_path_PKG_CONFIG+y}
15657 then :
15658 printf %s "(cached) " >&6
15659 else $as_nop
15660 case $PKG_CONFIG in
15661 [\\/]* | ?:[\\/]*)
15662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15663 ;;
15664 *)
15665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666 for as_dir in $PATH
15667 do
15668 IFS=$as_save_IFS
15669 case $as_dir in #(((
15670 '') as_dir=./ ;;
15671 */) ;;
15672 *) as_dir=$as_dir/ ;;
15673 esac
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15676 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15678 break 2
15679 fi
15680 done
15681 done
15682 IFS=$as_save_IFS
15683
15684 ;;
15685 esac
15686 fi
15687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15688 if test -n "$PKG_CONFIG"; then
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15690 printf "%s\n" "$PKG_CONFIG" >&6; }
15691 else
15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15693 printf "%s\n" "no" >&6; }
15694 fi
15695
15696
15697 fi
15698 if test -z "$ac_cv_path_PKG_CONFIG"; then
15699 ac_pt_PKG_CONFIG=$PKG_CONFIG
15700 # Extract the first word of "pkg-config", so it can be a program name with args.
15701 set dummy pkg-config; ac_word=$2
15702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15703 printf %s "checking for $ac_word... " >&6; }
15704 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15705 then :
15706 printf %s "(cached) " >&6
15707 else $as_nop
15708 case $ac_pt_PKG_CONFIG in
15709 [\\/]* | ?:[\\/]*)
15710 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15711 ;;
15712 *)
15713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15714 for as_dir in $PATH
15715 do
15716 IFS=$as_save_IFS
15717 case $as_dir in #(((
15718 '') as_dir=./ ;;
15719 */) ;;
15720 *) as_dir=$as_dir/ ;;
15721 esac
15722 for ac_exec_ext in '' $ac_executable_extensions; do
15723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15724 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15726 break 2
15727 fi
15728 done
15729 done
15730 IFS=$as_save_IFS
15731
15732 ;;
15733 esac
15734 fi
15735 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15736 if test -n "$ac_pt_PKG_CONFIG"; then
15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15738 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15739 else
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 printf "%s\n" "no" >&6; }
15742 fi
15743
15744 if test "x$ac_pt_PKG_CONFIG" = x; then
15745 PKG_CONFIG=""
15746 else
15747 case $cross_compiling:$ac_tool_warned in
15748 yes:)
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15751 ac_tool_warned=yes ;;
15752 esac
15753 PKG_CONFIG=$ac_pt_PKG_CONFIG
15754 fi
15755 else
15756 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15757 fi
15758
15759 fi
15760 if test -n "$PKG_CONFIG"; then
15761 _pkg_min_version=0.16
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15763 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15766 printf "%s\n" "yes" >&6; }
15767 else
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 printf "%s\n" "no" >&6; }
15770 PKG_CONFIG=""
15771 fi
15772 fi
15773
15774 no_glib=""
15775
15776 if test "x$PKG_CONFIG" = x ; then
15777 no_glib=yes
15778 PKG_CONFIG=no
15779 fi
15780
15781
15782 pkg_failed=no
15783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
15784 printf %s "checking for GLIB... " >&6; }
15785
15786 if test -n "$GLIB_CFLAGS"; then
15787 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
15788 elif test -n "$PKG_CONFIG"; then
15789 if test -n "$PKG_CONFIG" && \
15790 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5
15791 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5
15792 ac_status=$?
15793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15794 test $ac_status = 0; }; then
15795 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$pkg_config_args" 2>/dev/null`
15796 test "x$?" != "x0" && pkg_failed=yes
15797 else
15798 pkg_failed=yes
15799 fi
15800 else
15801 pkg_failed=untried
15802 fi
15803 if test -n "$GLIB_LIBS"; then
15804 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
15805 elif test -n "$PKG_CONFIG"; then
15806 if test -n "$PKG_CONFIG" && \
15807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5
15808 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5
15809 ac_status=$?
15810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15811 test $ac_status = 0; }; then
15812 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$pkg_config_args" 2>/dev/null`
15813 test "x$?" != "x0" && pkg_failed=yes
15814 else
15815 pkg_failed=yes
15816 fi
15817 else
15818 pkg_failed=untried
15819 fi
15820
15821
15822
15823 if test $pkg_failed = yes; then
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 printf "%s\n" "no" >&6; }
15826
15827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15828 _pkg_short_errors_supported=yes
15829 else
15830 _pkg_short_errors_supported=no
15831 fi
15832 if test $_pkg_short_errors_supported = yes; then
15833 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_config_args" 2>&1`
15834 else
15835 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_config_args" 2>&1`
15836 fi
15837 # Put the nasty error message in config.log where it belongs
15838 echo "$GLIB_PKG_ERRORS" >&5
15839
15840 :
15841 elif test $pkg_failed = untried; then
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 printf "%s\n" "no" >&6; }
15844 :
15845 else
15846 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
15847 GLIB_LIBS=$pkg_cv_GLIB_LIBS
15848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15849 printf "%s\n" "yes" >&6; }
15850 :
15851 fi
15852
15853
15854 if test -n "$GLIB_GENMARSHAL"; then
15855 pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL"
15856 elif test -n "$PKG_CONFIG"; then
15857 if test -n "$PKG_CONFIG" && \
15858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15859 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15860 ac_status=$?
15861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862 test $ac_status = 0; }; then
15863 pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null`
15864 test "x$?" != "x0" && pkg_failed=yes
15865 else
15866 pkg_failed=yes
15867 fi
15868 else
15869 pkg_failed=untried
15870 fi
15871 GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL
15872
15873 if test "x$GLIB_GENMARSHAL" = x""
15874 then :
15875
15876 fi
15877
15878 if test -n "$GOBJECT_QUERY"; then
15879 pkg_cv_GOBJECT_QUERY="$GOBJECT_QUERY"
15880 elif test -n "$PKG_CONFIG"; then
15881 if test -n "$PKG_CONFIG" && \
15882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15883 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15884 ac_status=$?
15885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15886 test $ac_status = 0; }; then
15887 pkg_cv_GOBJECT_QUERY=`$PKG_CONFIG --variable="gobject_query" "glib-2.0" 2>/dev/null`
15888 test "x$?" != "x0" && pkg_failed=yes
15889 else
15890 pkg_failed=yes
15891 fi
15892 else
15893 pkg_failed=untried
15894 fi
15895 GOBJECT_QUERY=$pkg_cv_GOBJECT_QUERY
15896
15897 if test "x$GOBJECT_QUERY" = x""
15898 then :
15899
15900 fi
15901
15902 if test -n "$GLIB_MKENUMS"; then
15903 pkg_cv_GLIB_MKENUMS="$GLIB_MKENUMS"
15904 elif test -n "$PKG_CONFIG"; then
15905 if test -n "$PKG_CONFIG" && \
15906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15907 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15908 ac_status=$?
15909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 test $ac_status = 0; }; then
15911 pkg_cv_GLIB_MKENUMS=`$PKG_CONFIG --variable="glib_mkenums" "glib-2.0" 2>/dev/null`
15912 test "x$?" != "x0" && pkg_failed=yes
15913 else
15914 pkg_failed=yes
15915 fi
15916 else
15917 pkg_failed=untried
15918 fi
15919 GLIB_MKENUMS=$pkg_cv_GLIB_MKENUMS
15920
15921 if test "x$GLIB_MKENUMS" = x""
15922 then :
15923
15924 fi
15925
15926 if test -n "$GLIB_COMPILE_RESOURCES"; then
15927 pkg_cv_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES"
15928 elif test -n "$PKG_CONFIG"; then
15929 if test -n "$PKG_CONFIG" && \
15930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
15931 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
15932 ac_status=$?
15933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15934 test $ac_status = 0; }; then
15935 pkg_cv_GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable="glib_compile_resources" "gio-2.0" 2>/dev/null`
15936 test "x$?" != "x0" && pkg_failed=yes
15937 else
15938 pkg_failed=yes
15939 fi
15940 else
15941 pkg_failed=untried
15942 fi
15943 GLIB_COMPILE_RESOURCES=$pkg_cv_GLIB_COMPILE_RESOURCES
15944
15945 if test "x$GLIB_COMPILE_RESOURCES" = x""
15946 then :
15947
15948 fi
15949
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
15951 printf %s "checking for GLIB - version >= $min_glib_version... " >&6; }
15952
15953 if test x$PKG_CONFIG != xno ; then
15954 ## don't try to run the test against uninstalled libtool libs
15955 if $PKG_CONFIG --uninstalled $pkg_config_args; then
15956 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
15957 enable_glibtest=no
15958 fi
15959
15960 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
15961 :
15962 else
15963 no_glib=yes
15964 fi
15965 fi
15966
15967 if test x"$no_glib" = x ; then
15968 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
15969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15970 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
15971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15972 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
15973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15974 if test "x$enable_glibtest" = "xyes" ; then
15975 ac_save_CFLAGS="$CFLAGS"
15976 ac_save_LIBS="$LIBS"
15977 CFLAGS="$CFLAGS $GLIB_CFLAGS"
15978 LIBS="$GLIB_LIBS $LIBS"
15979 rm -f conf.glibtest
15980 if test "$cross_compiling" = yes
15981 then :
15982 echo $ac_n "cross compiling; assumed OK... $ac_c"
15983 else $as_nop
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986
15987 #include <glib.h>
15988 #include <stdio.h>
15989 #include <stdlib.h>
15990
15991 int
15992 main (void)
15993 {
15994 unsigned int major, minor, micro;
15995
15996 fclose (fopen ("conf.glibtest", "w"));
15997
15998 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
15999 printf("%s, bad version string\n", "$min_glib_version");
16000 exit(1);
16001 }
16002
16003 if ((glib_major_version != $glib_config_major_version) ||
16004 (glib_minor_version != $glib_config_minor_version) ||
16005 (glib_micro_version != $glib_config_micro_version))
16006 {
16007 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
16008 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
16009 glib_major_version, glib_minor_version, glib_micro_version);
16010 printf ("*** was found! If pkg-config was correct, then it is best\n");
16011 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
16012 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16013 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16014 printf("*** required on your system.\n");
16015 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
16016 printf("*** to point to the correct configuration files\n");
16017 }
16018 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
16019 (glib_minor_version != GLIB_MINOR_VERSION) ||
16020 (glib_micro_version != GLIB_MICRO_VERSION))
16021 {
16022 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
16023 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
16024 printf("*** library (version %d.%d.%d)\n",
16025 glib_major_version, glib_minor_version, glib_micro_version);
16026 }
16027 else
16028 {
16029 if ((glib_major_version > major) ||
16030 ((glib_major_version == major) && (glib_minor_version > minor)) ||
16031 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
16032 {
16033 return 0;
16034 }
16035 else
16036 {
16037 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
16038 glib_major_version, glib_minor_version, glib_micro_version);
16039 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
16040 major, minor, micro);
16041 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
16042 printf("***\n");
16043 printf("*** If you have already installed a sufficiently new version, this error\n");
16044 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
16045 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16046 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
16047 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
16048 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16049 printf("*** so that the correct libraries are found at run-time))\n");
16050 }
16051 }
16052 return 1;
16053 }
16054
16055 _ACEOF
16056 if ac_fn_c_try_run "$LINENO"
16057 then :
16058
16059 else $as_nop
16060 no_glib=yes
16061 fi
16062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16063 conftest.$ac_objext conftest.beam conftest.$ac_ext
16064 fi
16065
16066 CFLAGS="$ac_save_CFLAGS"
16067 LIBS="$ac_save_LIBS"
16068 fi
16069 fi
16070 if test "x$no_glib" = x ; then
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
16072 printf "%s\n" "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
16073 :
16074 else
16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 printf "%s\n" "no" >&6; }
16077 if test "$PKG_CONFIG" = "no" ; then
16078 echo "*** A new enough version of pkg-config was not found."
16079 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
16080 else
16081 if test -f conf.glibtest ; then
16082 :
16083 else
16084 echo "*** Could not run GLIB test program, checking why..."
16085 ac_save_CFLAGS="$CFLAGS"
16086 ac_save_LIBS="$LIBS"
16087 CFLAGS="$CFLAGS $GLIB_CFLAGS"
16088 LIBS="$LIBS $GLIB_LIBS"
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091
16092 #include <glib.h>
16093 #include <stdio.h>
16094
16095 int
16096 main (void)
16097 {
16098 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_link "$LINENO"
16104 then :
16105 echo "*** The test program compiled, but did not run. This usually means"
16106 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
16107 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
16108 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16109 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16110 echo "*** is required on your system"
16111 echo "***"
16112 echo "*** If you have an old version installed, it is best to remove it, although"
16113 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16114 else $as_nop
16115 echo "*** The test program failed to compile or link. See the file config.log for the"
16116 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16119 conftest$ac_exeext conftest.$ac_ext
16120 CFLAGS="$ac_save_CFLAGS"
16121 LIBS="$ac_save_LIBS"
16122 fi
16123 fi
16124 GLIB_CFLAGS=""
16125 GLIB_LIBS=""
16126 GLIB_GENMARSHAL=""
16127 GOBJECT_QUERY=""
16128 GLIB_MKENUMS=""
16129 GLIB_COMPILE_RESOURCES=""
16130 as_fn_error $? "GLib is required" "$LINENO" 5
16131 fi
16132 rm -f conf.glibtest
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160 # Check whether --with-libcurl was given.
16161 if test ${with_libcurl+y}
16162 then :
16163 withval=$with_libcurl; _libcurl_with=$withval
16164 else $as_nop
16165 _libcurl_with=7.17.0
16166 fi
16167
16168
16169 if test "$_libcurl_with" != "no" ; then
16170
16171 for ac_prog in gawk mawk nawk awk
16172 do
16173 # Extract the first word of "$ac_prog", so it can be a program name with args.
16174 set dummy $ac_prog; ac_word=$2
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176 printf %s "checking for $ac_word... " >&6; }
16177 if test ${ac_cv_prog_AWK+y}
16178 then :
16179 printf %s "(cached) " >&6
16180 else $as_nop
16181 if test -n "$AWK"; then
16182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16183 else
16184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16185 for as_dir in $PATH
16186 do
16187 IFS=$as_save_IFS
16188 case $as_dir in #(((
16189 '') as_dir=./ ;;
16190 */) ;;
16191 *) as_dir=$as_dir/ ;;
16192 esac
16193 for ac_exec_ext in '' $ac_executable_extensions; do
16194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16195 ac_cv_prog_AWK="$ac_prog"
16196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16197 break 2
16198 fi
16199 done
16200 done
16201 IFS=$as_save_IFS
16202
16203 fi
16204 fi
16205 AWK=$ac_cv_prog_AWK
16206 if test -n "$AWK"; then
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16208 printf "%s\n" "$AWK" >&6; }
16209 else
16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 printf "%s\n" "no" >&6; }
16212 fi
16213
16214
16215 test -n "$AWK" && break
16216 done
16217
16218
16219 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
16220
16221 _libcurl_try_link=yes
16222
16223 if test -d "$_libcurl_with" ; then
16224 LIBCURL_CPPFLAGS="-I$withval/include"
16225 _libcurl_ldflags="-L$withval/lib"
16226 # Extract the first word of "curl-config", so it can be a program name with args.
16227 set dummy curl-config; ac_word=$2
16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16229 printf %s "checking for $ac_word... " >&6; }
16230 if test ${ac_cv_path__libcurl_config+y}
16231 then :
16232 printf %s "(cached) " >&6
16233 else $as_nop
16234 case $_libcurl_config in
16235 [\\/]* | ?:[\\/]*)
16236 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
16237 ;;
16238 *)
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240 for as_dir in "$withval/bin"
16241 do
16242 IFS=$as_save_IFS
16243 case $as_dir in #(((
16244 '') as_dir=./ ;;
16245 */) ;;
16246 *) as_dir=$as_dir/ ;;
16247 esac
16248 for ac_exec_ext in '' $ac_executable_extensions; do
16249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16250 ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
16251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16252 break 2
16253 fi
16254 done
16255 done
16256 IFS=$as_save_IFS
16257
16258 ;;
16259 esac
16260 fi
16261 _libcurl_config=$ac_cv_path__libcurl_config
16262 if test -n "$_libcurl_config"; then
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
16264 printf "%s\n" "$_libcurl_config" >&6; }
16265 else
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 printf "%s\n" "no" >&6; }
16268 fi
16269
16270
16271 else
16272 # Extract the first word of "curl-config", so it can be a program name with args.
16273 set dummy curl-config; ac_word=$2
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 printf %s "checking for $ac_word... " >&6; }
16276 if test ${ac_cv_path__libcurl_config+y}
16277 then :
16278 printf %s "(cached) " >&6
16279 else $as_nop
16280 case $_libcurl_config in
16281 [\\/]* | ?:[\\/]*)
16282 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
16283 ;;
16284 *)
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16287 do
16288 IFS=$as_save_IFS
16289 case $as_dir in #(((
16290 '') as_dir=./ ;;
16291 */) ;;
16292 *) as_dir=$as_dir/ ;;
16293 esac
16294 for ac_exec_ext in '' $ac_executable_extensions; do
16295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16296 ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
16297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16298 break 2
16299 fi
16300 done
16301 done
16302 IFS=$as_save_IFS
16303
16304 ;;
16305 esac
16306 fi
16307 _libcurl_config=$ac_cv_path__libcurl_config
16308 if test -n "$_libcurl_config"; then
16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
16310 printf "%s\n" "$_libcurl_config" >&6; }
16311 else
16312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 printf "%s\n" "no" >&6; }
16314 fi
16315
16316
16317 fi
16318
16319 if test x$_libcurl_config != "x" ; then
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
16321 printf %s "checking for the version of libcurl... " >&6; }
16322 if test ${libcurl_cv_lib_curl_version+y}
16323 then :
16324 printf %s "(cached) " >&6
16325 else $as_nop
16326 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
16327 fi
16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
16329 printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; }
16330
16331 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
16332 _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
16333
16334 if test $_libcurl_wanted -gt 0 ; then
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
16336 printf %s "checking for libcurl >= version ... " >&6; }
16337 if test ${libcurl_cv_lib_version_ok+y}
16338 then :
16339 printf %s "(cached) " >&6
16340 else $as_nop
16341
16342 if test $_libcurl_version -ge $_libcurl_wanted ; then
16343 libcurl_cv_lib_version_ok=yes
16344 else
16345 libcurl_cv_lib_version_ok=no
16346 fi
16347
16348 fi
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
16350 printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; }
16351 fi
16352
16353 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
16354 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
16355 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
16356 fi
16357 if test x"$LIBCURL" = "x" ; then
16358 LIBCURL=`$_libcurl_config --libs`
16359
16360 # This is so silly, but Apple actually has a bug in their
16361 # curl-config script. Fixed in Tiger, but there are still
16362 # lots of Panther installs around.
16363 case "${host}" in
16364 powerpc-apple-darwin7*)
16365 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
16366 ;;
16367 esac
16368 fi
16369
16370 # All curl-config scripts support --feature
16371 _libcurl_features=`$_libcurl_config --feature`
16372
16373 # Is it modern enough to have --protocols? (7.12.4)
16374 if test $_libcurl_version -ge 461828 ; then
16375 _libcurl_protocols=`$_libcurl_config --protocols`
16376 fi
16377 else
16378 _libcurl_try_link=no
16379 fi
16380
16381 unset _libcurl_wanted
16382 fi
16383
16384 if test $_libcurl_try_link = yes ; then
16385
16386 # we didn't find curl-config, so let's see if the user-supplied
16387 # link line (or failing that, "-lcurl") is enough.
16388 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
16389
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
16391 printf %s "checking whether libcurl is usable... " >&6; }
16392 if test ${libcurl_cv_lib_curl_usable+y}
16393 then :
16394 printf %s "(cached) " >&6
16395 else $as_nop
16396
16397 _libcurl_save_cppflags=$CPPFLAGS
16398 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
16399 _libcurl_save_libs=$LIBS
16400 LIBS="$LIBCURL $LIBS"
16401
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 #include <curl/curl.h>
16405 int
16406 main (void)
16407 {
16408
16409 /* Try and use a few common options to force a failure if we are
16410 missing symbols or can't link. */
16411 int x;
16412 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
16413 x=CURL_ERROR_SIZE;
16414 x=CURLOPT_WRITEFUNCTION;
16415 x=CURLOPT_WRITEDATA;
16416 x=CURLOPT_ERRORBUFFER;
16417 x=CURLOPT_STDERR;
16418 x=CURLOPT_VERBOSE;
16419 if (x) {;}
16420
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_link "$LINENO"
16426 then :
16427 libcurl_cv_lib_curl_usable=yes
16428 else $as_nop
16429 libcurl_cv_lib_curl_usable=no
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16432 conftest$ac_exeext conftest.$ac_ext
16433
16434 CPPFLAGS=$_libcurl_save_cppflags
16435 LIBS=$_libcurl_save_libs
16436 unset _libcurl_save_cppflags
16437 unset _libcurl_save_libs
16438
16439 fi
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
16441 printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; }
16442
16443 if test $libcurl_cv_lib_curl_usable = yes ; then
16444
16445 # Does curl_free() exist in this version of libcurl?
16446 # If not, fake it with free()
16447
16448 _libcurl_save_cppflags=$CPPFLAGS
16449 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
16450 _libcurl_save_libs=$LIBS
16451 LIBS="$LIBS $LIBCURL"
16452
16453 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
16454 if test "x$ac_cv_func_curl_free" = xyes
16455 then :
16456
16457 else $as_nop
16458
16459 printf "%s\n" "#define curl_free free" >>confdefs.h
16460
16461 fi
16462
16463
16464 CPPFLAGS=$_libcurl_save_cppflags
16465 LIBS=$_libcurl_save_libs
16466 unset _libcurl_save_cppflags
16467 unset _libcurl_save_libs
16468
16469
16470 printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h
16471
16472
16473
16474
16475 for _libcurl_feature in $_libcurl_features ; do
16476 cat >>confdefs.h <<_ACEOF
16477 #define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
16478 _ACEOF
16479
16480 eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
16481 done
16482
16483 if test "x$_libcurl_protocols" = "x" ; then
16484
16485 # We don't have --protocols, so just assume that all
16486 # protocols are available
16487 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
16488
16489 if test x$libcurl_feature_SSL = xyes ; then
16490 _libcurl_protocols="$_libcurl_protocols HTTPS"
16491
16492 # FTPS wasn't standards-compliant until version
16493 # 7.11.0 (0x070b00 == 461568)
16494 if test $_libcurl_version -ge 461568; then
16495 _libcurl_protocols="$_libcurl_protocols FTPS"
16496 fi
16497 fi
16498
16499 # RTSP, IMAP, POP3 and SMTP were added in
16500 # 7.20.0 (0x071400 == 463872)
16501 if test $_libcurl_version -ge 463872; then
16502 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
16503 fi
16504 fi
16505
16506 for _libcurl_protocol in $_libcurl_protocols ; do
16507 cat >>confdefs.h <<_ACEOF
16508 #define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
16509 _ACEOF
16510
16511 eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
16512 done
16513 else
16514 unset LIBCURL
16515 unset LIBCURL_CPPFLAGS
16516 fi
16517 fi
16518
16519 unset _libcurl_try_link
16520 unset _libcurl_version_parse
16521 unset _libcurl_config
16522 unset _libcurl_feature
16523 unset _libcurl_features
16524 unset _libcurl_protocol
16525 unset _libcurl_protocols
16526 unset _libcurl_version
16527 unset _libcurl_ldflags
16528 fi
16529
16530 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
16531 # This is the IF-NO path
16532 :
16533 else
16534 # This is the IF-YES path
16535 :
16536 fi
16537
16538 unset _libcurl_with
16539
16540
16541 if test "$USE_ESD" != "no"; then
16542
16543 # Check whether --with-esd-prefix was given.
16544 if test ${with_esd_prefix+y}
16545 then :
16546 withval=$with_esd_prefix; esd_prefix="$withval"
16547 else $as_nop
16548 esd_prefix=""
16549 fi
16550
16551
16552 # Check whether --with-esd-exec-prefix was given.
16553 if test ${with_esd_exec_prefix+y}
16554 then :
16555 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
16556 else $as_nop
16557 esd_exec_prefix=""
16558 fi
16559
16560 # Check whether --enable-esdtest was given.
16561 if test ${enable_esdtest+y}
16562 then :
16563 enableval=$enable_esdtest;
16564 else $as_nop
16565 enable_esdtest=yes
16566 fi
16567
16568
16569 if test x$esd_exec_prefix != x ; then
16570 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
16571 if test x${ESD_CONFIG+set} != xset ; then
16572 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
16573 fi
16574 fi
16575 if test x$esd_prefix != x ; then
16576 esd_args="$esd_args --prefix=$esd_prefix"
16577 if test x${ESD_CONFIG+set} != xset ; then
16578 ESD_CONFIG=$esd_prefix/bin/esd-config
16579 fi
16580 fi
16581
16582 # Extract the first word of "esd-config", so it can be a program name with args.
16583 set dummy esd-config; ac_word=$2
16584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16585 printf %s "checking for $ac_word... " >&6; }
16586 if test ${ac_cv_path_ESD_CONFIG+y}
16587 then :
16588 printf %s "(cached) " >&6
16589 else $as_nop
16590 case $ESD_CONFIG in
16591 [\\/]* | ?:[\\/]*)
16592 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
16593 ;;
16594 *)
16595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16596 for as_dir in $PATH
16597 do
16598 IFS=$as_save_IFS
16599 case $as_dir in #(((
16600 '') as_dir=./ ;;
16601 */) ;;
16602 *) as_dir=$as_dir/ ;;
16603 esac
16604 for ac_exec_ext in '' $ac_executable_extensions; do
16605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16606 ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
16607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16608 break 2
16609 fi
16610 done
16611 done
16612 IFS=$as_save_IFS
16613
16614 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
16615 ;;
16616 esac
16617 fi
16618 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
16619 if test -n "$ESD_CONFIG"; then
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
16621 printf "%s\n" "$ESD_CONFIG" >&6; }
16622 else
16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16624 printf "%s\n" "no" >&6; }
16625 fi
16626
16627
16628 min_esd_version=0.0.20
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
16630 printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
16631 no_esd=""
16632 if test "$ESD_CONFIG" = "no" ; then
16633 no_esd=yes
16634 else
16635
16636 ac_ext=c
16637 ac_cpp='$CPP $CPPFLAGS'
16638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16641
16642 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
16643 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
16644
16645 esd_major_version=`$ESD_CONFIG $esd_args --version | \
16646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16647 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
16648 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16649 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
16650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16651 if test "x$enable_esdtest" = "xyes" ; then
16652 ac_save_CFLAGS="$CFLAGS"
16653 ac_save_LIBS="$LIBS"
16654 CFLAGS="$CFLAGS $ESD_CFLAGS"
16655 LIBS="$LIBS $ESD_LIBS"
16656 rm -f conf.esdtest
16657 if test "$cross_compiling" = yes
16658 then :
16659 echo $ac_n "cross compiling; assumed OK... $ac_c"
16660 else $as_nop
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663
16664 #include <stdio.h>
16665 #include <stdlib.h>
16666 #include <string.h>
16667 #include <esd.h>
16668
16669 char*
16670 my_strdup (char *str)
16671 {
16672 char *new_str;
16673
16674 if (str)
16675 {
16676 new_str = malloc ((strlen (str) + 1) * sizeof(char));
16677 strcpy (new_str, str);
16678 }
16679 else
16680 new_str = NULL;
16681
16682 return new_str;
16683 }
16684
16685 int main ()
16686 {
16687 int major, minor, micro;
16688 char *tmp_version;
16689
16690 system ("touch conf.esdtest");
16691
16692 /* HP/UX 9 (%@#!) writes to sscanf strings */
16693 tmp_version = my_strdup("$min_esd_version");
16694 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16695 printf("%s, bad version string\n", "$min_esd_version");
16696 exit(1);
16697 }
16698
16699 if (($esd_major_version > major) ||
16700 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
16701 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
16702 {
16703 return 0;
16704 }
16705 else
16706 {
16707 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
16708 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
16709 printf("*** best to upgrade to the required version.\n");
16710 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
16711 printf("*** to point to the correct copy of esd-config, and remove the file\n");
16712 printf("*** config.cache before re-running configure\n");
16713 return 1;
16714 }
16715 }
16716
16717
16718 _ACEOF
16719 if ac_fn_c_try_run "$LINENO"
16720 then :
16721
16722 else $as_nop
16723 no_esd=yes
16724 fi
16725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726 conftest.$ac_objext conftest.beam conftest.$ac_ext
16727 fi
16728
16729 CFLAGS="$ac_save_CFLAGS"
16730 LIBS="$ac_save_LIBS"
16731 ac_ext=c
16732 ac_cpp='$CPP $CPPFLAGS'
16733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736
16737 fi
16738 fi
16739 if test "x$no_esd" = x ; then
16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16741 printf "%s\n" "yes" >&6; }
16742 ESD=yes
16743 else
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 printf "%s\n" "no" >&6; }
16746 if test "$ESD_CONFIG" = "no" ; then
16747 echo "*** The esd-config script installed by ESD could not be found"
16748 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
16749 echo "*** your path, or set the ESD_CONFIG environment variable to the"
16750 echo "*** full path to esd-config."
16751 else
16752 if test -f conf.esdtest ; then
16753 :
16754 else
16755 echo "*** Could not run ESD test program, checking why..."
16756 CFLAGS="$CFLAGS $ESD_CFLAGS"
16757 LIBS="$LIBS $ESD_LIBS"
16758
16759 ac_ext=c
16760 ac_cpp='$CPP $CPPFLAGS'
16761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16764
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767
16768 #include <stdio.h>
16769 #include <esd.h>
16770
16771 int
16772 main (void)
16773 {
16774 return 0;
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"
16780 then :
16781 echo "*** The test program compiled, but did not run. This usually means"
16782 echo "*** that the run-time linker is not finding ESD or finding the wrong"
16783 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
16784 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16785 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16786 echo "*** is required on your system"
16787 echo "***"
16788 echo "*** If you have an old version installed, it is best to remove it, although"
16789 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16790 else $as_nop
16791 echo "*** The test program failed to compile or link. See the file config.log for the"
16792 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
16793 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
16794 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
16795 fi
16796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16797 conftest$ac_exeext conftest.$ac_ext
16798 CFLAGS="$ac_save_CFLAGS"
16799 LIBS="$ac_save_LIBS"
16800 ac_ext=c
16801 ac_cpp='$CPP $CPPFLAGS'
16802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16805
16806 fi
16807 fi
16808 ESD_CFLAGS=""
16809 ESD_LIBS=""
16810 :
16811 fi
16812
16813
16814 rm -f conf.esdtest
16815
16816 if test "$ESD" = "yes"; then
16817 SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS"
16818 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS"
16819 PLUGOBJS="$PLUGOBJS plugins/sound_esd.o"
16820
16821
16822 printf "%s\n" "#define HAVE_ESD 1" >>confdefs.h
16823
16824 elif test "$USE_ESD" = "yes"; then
16825 as_fn_error $? "Cannot find ESD library" "$LINENO" 5
16826 fi
16827 fi
16828
16829 if test "$USE_SDL" != "no"; then
16830 SDL_ALL=no
16831 SDL2=yes
16832
16833 # Check whether --with-sdl-prefix was given.
16834 if test ${with_sdl_prefix+y}
16835 then :
16836 withval=$with_sdl_prefix; sdl_prefix="$withval"
16837 else $as_nop
16838 sdl_prefix=""
16839 fi
16840
16841
16842 # Check whether --with-sdl-exec-prefix was given.
16843 if test ${with_sdl_exec_prefix+y}
16844 then :
16845 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
16846 else $as_nop
16847 sdl_exec_prefix=""
16848 fi
16849
16850 # Check whether --enable-sdltest was given.
16851 if test ${enable_sdltest+y}
16852 then :
16853 enableval=$enable_sdltest;
16854 else $as_nop
16855 enable_sdltest=yes
16856 fi
16857
16858
16859 min_sdl_version=2.0.0
16860
16861 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
16862
16863 pkg_failed=no
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
16865 printf %s "checking for SDL... " >&6; }
16866
16867 if test -n "$SDL_CFLAGS"; then
16868 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
16869 elif test -n "$PKG_CONFIG"; then
16870 if test -n "$PKG_CONFIG" && \
16871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
16872 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
16873 ac_status=$?
16874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16875 test $ac_status = 0; }; then
16876 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
16877 test "x$?" != "x0" && pkg_failed=yes
16878 else
16879 pkg_failed=yes
16880 fi
16881 else
16882 pkg_failed=untried
16883 fi
16884 if test -n "$SDL_LIBS"; then
16885 pkg_cv_SDL_LIBS="$SDL_LIBS"
16886 elif test -n "$PKG_CONFIG"; then
16887 if test -n "$PKG_CONFIG" && \
16888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
16889 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
16890 ac_status=$?
16891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16892 test $ac_status = 0; }; then
16893 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
16894 test "x$?" != "x0" && pkg_failed=yes
16895 else
16896 pkg_failed=yes
16897 fi
16898 else
16899 pkg_failed=untried
16900 fi
16901
16902
16903
16904 if test $pkg_failed = yes; then
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16906 printf "%s\n" "no" >&6; }
16907
16908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16909 _pkg_short_errors_supported=yes
16910 else
16911 _pkg_short_errors_supported=no
16912 fi
16913 if test $_pkg_short_errors_supported = yes; then
16914 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
16915 else
16916 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
16917 fi
16918 # Put the nasty error message in config.log where it belongs
16919 echo "$SDL_PKG_ERRORS" >&5
16920
16921 sdl_pc=no
16922 elif test $pkg_failed = untried; then
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 printf "%s\n" "no" >&6; }
16925 sdl_pc=no
16926 else
16927 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
16928 SDL_LIBS=$pkg_cv_SDL_LIBS
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16930 printf "%s\n" "yes" >&6; }
16931 sdl_pc=yes
16932 fi
16933 else
16934 sdl_pc=no
16935 if test x$sdl_exec_prefix != x ; then
16936 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
16937 if test x${SDL2_CONFIG+set} != xset ; then
16938 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
16939 fi
16940 fi
16941 if test x$sdl_prefix != x ; then
16942 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
16943 if test x${SDL2_CONFIG+set} != xset ; then
16944 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
16945 fi
16946 fi
16947 fi
16948
16949 if test "x$sdl_pc" = xyes ; then
16950 no_sdl=""
16951 SDL2_CONFIG="pkg-config sdl2"
16952 else
16953 as_save_PATH="$PATH"
16954 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
16955 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
16956 fi
16957 # Extract the first word of "sdl2-config", so it can be a program name with args.
16958 set dummy sdl2-config; ac_word=$2
16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16960 printf %s "checking for $ac_word... " >&6; }
16961 if test ${ac_cv_path_SDL2_CONFIG+y}
16962 then :
16963 printf %s "(cached) " >&6
16964 else $as_nop
16965 case $SDL2_CONFIG in
16966 [\\/]* | ?:[\\/]*)
16967 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
16968 ;;
16969 *)
16970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16971 for as_dir in $PATH
16972 do
16973 IFS=$as_save_IFS
16974 case $as_dir in #(((
16975 '') as_dir=./ ;;
16976 */) ;;
16977 *) as_dir=$as_dir/ ;;
16978 esac
16979 for ac_exec_ext in '' $ac_executable_extensions; do
16980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16981 ac_cv_path_SDL2_CONFIG="$as_dir$ac_word$ac_exec_ext"
16982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16983 break 2
16984 fi
16985 done
16986 done
16987 IFS=$as_save_IFS
16988
16989 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
16990 ;;
16991 esac
16992 fi
16993 SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
16994 if test -n "$SDL2_CONFIG"; then
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
16996 printf "%s\n" "$SDL2_CONFIG" >&6; }
16997 else
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16999 printf "%s\n" "no" >&6; }
17000 fi
17001
17002
17003 PATH="$as_save_PATH"
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
17005 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
17006 no_sdl=""
17007
17008 if test "$SDL2_CONFIG" = "no" ; then
17009 no_sdl=yes
17010 else
17011 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
17012 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
17013
17014 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
17015 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17016 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
17017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17018 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
17019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17020 if test "x$enable_sdltest" = "xyes" ; then
17021 ac_save_CFLAGS="$CFLAGS"
17022 ac_save_CXXFLAGS="$CXXFLAGS"
17023 ac_save_LIBS="$LIBS"
17024 CFLAGS="$CFLAGS $SDL_CFLAGS"
17025 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17026 LIBS="$LIBS $SDL_LIBS"
17027 rm -f conf.sdltest
17028 if test "$cross_compiling" = yes
17029 then :
17030 echo $ac_n "cross compiling; assumed OK... $ac_c"
17031 else $as_nop
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034
17035 #include <stdio.h>
17036 #include <stdlib.h>
17037 #include <string.h>
17038 #include "SDL.h"
17039
17040 char*
17041 my_strdup (char *str)
17042 {
17043 char *new_str;
17044
17045 if (str)
17046 {
17047 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
17048 strcpy (new_str, str);
17049 }
17050 else
17051 new_str = NULL;
17052
17053 return new_str;
17054 }
17055
17056 int main (int argc, char *argv[])
17057 {
17058 int major, minor, micro;
17059 char *tmp_version;
17060
17061 /* This hangs on some systems (?)
17062 system ("touch conf.sdltest");
17063 */
17064 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
17065
17066 /* HP/UX 9 (%@#!) writes to sscanf strings */
17067 tmp_version = my_strdup("$min_sdl_version");
17068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17069 printf("%s, bad version string\n", "$min_sdl_version");
17070 exit(1);
17071 }
17072
17073 if (($sdl_major_version > major) ||
17074 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
17075 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
17076 {
17077 return 0;
17078 }
17079 else
17080 {
17081 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
17082 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
17083 printf("*** best to upgrade to the required version.\n");
17084 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
17085 printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
17086 printf("*** config.cache before re-running configure\n");
17087 return 1;
17088 }
17089 }
17090
17091
17092 _ACEOF
17093 if ac_fn_c_try_run "$LINENO"
17094 then :
17095
17096 else $as_nop
17097 no_sdl=yes
17098 fi
17099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17100 conftest.$ac_objext conftest.beam conftest.$ac_ext
17101 fi
17102
17103 CFLAGS="$ac_save_CFLAGS"
17104 CXXFLAGS="$ac_save_CXXFLAGS"
17105 LIBS="$ac_save_LIBS"
17106 fi
17107 fi
17108 if test "x$no_sdl" = x ; then
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17110 printf "%s\n" "yes" >&6; }
17111 else
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17113 printf "%s\n" "no" >&6; }
17114 fi
17115 fi
17116 if test "x$no_sdl" = x ; then
17117 SDL=yes
17118 else
17119 if test "$SDL2_CONFIG" = "no" ; then
17120 echo "*** The sdl2-config script installed by SDL could not be found"
17121 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
17122 echo "*** your path, or set the SDL2_CONFIG environment variable to the"
17123 echo "*** full path to sdl2-config."
17124 else
17125 if test -f conf.sdltest ; then
17126 :
17127 else
17128 echo "*** Could not run SDL test program, checking why..."
17129 CFLAGS="$CFLAGS $SDL_CFLAGS"
17130 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17131 LIBS="$LIBS $SDL_LIBS"
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134
17135 #include <stdio.h>
17136 #include "SDL.h"
17137
17138 int main(int argc, char *argv[])
17139 { return 0; }
17140 #undef main
17141 #define main K_and_R_C_main
17142
17143 int
17144 main (void)
17145 {
17146 return 0;
17147 ;
17148 return 0;
17149 }
17150 _ACEOF
17151 if ac_fn_c_try_link "$LINENO"
17152 then :
17153 echo "*** The test program compiled, but did not run. This usually means"
17154 echo "*** that the run-time linker is not finding SDL or finding the wrong"
17155 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
17156 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17157 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17158 echo "*** is required on your system"
17159 echo "***"
17160 echo "*** If you have an old version installed, it is best to remove it, although"
17161 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17162 else $as_nop
17163 echo "*** The test program failed to compile or link. See the file config.log for the"
17164 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
17165 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
17166 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17169 conftest$ac_exeext conftest.$ac_ext
17170 CFLAGS="$ac_save_CFLAGS"
17171 CXXFLAGS="$ac_save_CXXFLAGS"
17172 LIBS="$ac_save_LIBS"
17173 fi
17174 fi
17175 SDL_CFLAGS=""
17176 SDL_LIBS=""
17177 :
17178 fi
17179
17180
17181 rm -f conf.sdltest
17182
17183 if test "$SDL" != "yes"; then
17184 SDL2=no
17185
17186 # Check whether --with-sdl-prefix was given.
17187 if test ${with_sdl_prefix+y}
17188 then :
17189 withval=$with_sdl_prefix; sdl_prefix="$withval"
17190 else $as_nop
17191 sdl_prefix=""
17192 fi
17193
17194
17195 # Check whether --with-sdl-exec-prefix was given.
17196 if test ${with_sdl_exec_prefix+y}
17197 then :
17198 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
17199 else $as_nop
17200 sdl_exec_prefix=""
17201 fi
17202
17203 # Check whether --enable-sdltest was given.
17204 if test ${enable_sdltest+y}
17205 then :
17206 enableval=$enable_sdltest;
17207 else $as_nop
17208 enable_sdltest=yes
17209 fi
17210
17211
17212 if test x$sdl_exec_prefix != x ; then
17213 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
17214 if test x${SDL_CONFIG+set} != xset ; then
17215 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
17216 fi
17217 fi
17218 if test x$sdl_prefix != x ; then
17219 sdl_args="$sdl_args --prefix=$sdl_prefix"
17220 if test x${SDL_CONFIG+set} != xset ; then
17221 SDL_CONFIG=$sdl_prefix/bin/sdl-config
17222 fi
17223 fi
17224
17225
17226 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
17227 # Extract the first word of "sdl-config", so it can be a program name with args.
17228 set dummy sdl-config; ac_word=$2
17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17230 printf %s "checking for $ac_word... " >&6; }
17231 if test ${ac_cv_path_SDL_CONFIG+y}
17232 then :
17233 printf %s "(cached) " >&6
17234 else $as_nop
17235 case $SDL_CONFIG in
17236 [\\/]* | ?:[\\/]*)
17237 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
17238 ;;
17239 *)
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17242 do
17243 IFS=$as_save_IFS
17244 case $as_dir in #(((
17245 '') as_dir=./ ;;
17246 */) ;;
17247 *) as_dir=$as_dir/ ;;
17248 esac
17249 for ac_exec_ext in '' $ac_executable_extensions; do
17250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17251 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
17252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17253 break 2
17254 fi
17255 done
17256 done
17257 IFS=$as_save_IFS
17258
17259 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
17260 ;;
17261 esac
17262 fi
17263 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
17264 if test -n "$SDL_CONFIG"; then
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
17266 printf "%s\n" "$SDL_CONFIG" >&6; }
17267 else
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17269 printf "%s\n" "no" >&6; }
17270 fi
17271
17272
17273 min_sdl_version=1.0.0
17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
17275 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
17276 no_sdl=""
17277 if test "$SDL_CONFIG" = "no" ; then
17278 no_sdl=yes
17279 else
17280 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
17281 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
17282
17283 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
17284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17285 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
17286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17287 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
17288 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17289 if test "x$enable_sdltest" = "xyes" ; then
17290 ac_save_CFLAGS="$CFLAGS"
17291 ac_save_CXXFLAGS="$CXXFLAGS"
17292 ac_save_LIBS="$LIBS"
17293 CFLAGS="$CFLAGS $SDL_CFLAGS"
17294 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17295 LIBS="$LIBS $SDL_LIBS"
17296 rm -f conf.sdltest
17297 if test "$cross_compiling" = yes
17298 then :
17299 echo $ac_n "cross compiling; assumed OK... $ac_c"
17300 else $as_nop
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303
17304 #include <stdio.h>
17305 #include <stdlib.h>
17306 #include <string.h>
17307 #include "SDL.h"
17308
17309 char*
17310 my_strdup (char *str)
17311 {
17312 char *new_str;
17313
17314 if (str)
17315 {
17316 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
17317 strcpy (new_str, str);
17318 }
17319 else
17320 new_str = NULL;
17321
17322 return new_str;
17323 }
17324
17325 int main (int argc, char *argv[])
17326 {
17327 int major, minor, micro;
17328 char *tmp_version;
17329
17330 /* This hangs on some systems (?)
17331 system ("touch conf.sdltest");
17332 */
17333 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
17334
17335 /* HP/UX 9 (%@#!) writes to sscanf strings */
17336 tmp_version = my_strdup("$min_sdl_version");
17337 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17338 printf("%s, bad version string\n", "$min_sdl_version");
17339 exit(1);
17340 }
17341
17342 if (($sdl_major_version > major) ||
17343 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
17344 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
17345 {
17346 return 0;
17347 }
17348 else
17349 {
17350 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
17351 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
17352 printf("*** best to upgrade to the required version.\n");
17353 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
17354 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
17355 printf("*** config.cache before re-running configure\n");
17356 return 1;
17357 }
17358 }
17359
17360
17361 _ACEOF
17362 if ac_fn_c_try_run "$LINENO"
17363 then :
17364
17365 else $as_nop
17366 no_sdl=yes
17367 fi
17368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17369 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370 fi
17371
17372 CFLAGS="$ac_save_CFLAGS"
17373 CXXFLAGS="$ac_save_CXXFLAGS"
17374 LIBS="$ac_save_LIBS"
17375 fi
17376 fi
17377 if test "x$no_sdl" = x ; then
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17379 printf "%s\n" "yes" >&6; }
17380 SDL=yes
17381 else
17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 printf "%s\n" "no" >&6; }
17384 if test "$SDL_CONFIG" = "no" ; then
17385 echo "*** The sdl-config script installed by SDL could not be found"
17386 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
17387 echo "*** your path, or set the SDL_CONFIG environment variable to the"
17388 echo "*** full path to sdl-config."
17389 else
17390 if test -f conf.sdltest ; then
17391 :
17392 else
17393 echo "*** Could not run SDL test program, checking why..."
17394 CFLAGS="$CFLAGS $SDL_CFLAGS"
17395 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17396 LIBS="$LIBS $SDL_LIBS"
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399
17400 #include <stdio.h>
17401 #include "SDL.h"
17402
17403 int main(int argc, char *argv[])
17404 { return 0; }
17405 #undef main
17406 #define main K_and_R_C_main
17407
17408 int
17409 main (void)
17410 {
17411 return 0;
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"
17417 then :
17418 echo "*** The test program compiled, but did not run. This usually means"
17419 echo "*** that the run-time linker is not finding SDL or finding the wrong"
17420 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
17421 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17422 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17423 echo "*** is required on your system"
17424 echo "***"
17425 echo "*** If you have an old version installed, it is best to remove it, although"
17426 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17427 else $as_nop
17428 echo "*** The test program failed to compile or link. See the file config.log for the"
17429 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
17430 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
17431 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
17432 fi
17433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17434 conftest$ac_exeext conftest.$ac_ext
17435 CFLAGS="$ac_save_CFLAGS"
17436 CXXFLAGS="$ac_save_CXXFLAGS"
17437 LIBS="$ac_save_LIBS"
17438 fi
17439 fi
17440 SDL_CFLAGS=""
17441 SDL_LIBS=""
17442 :
17443 fi
17444
17445
17446 rm -f conf.sdltest
17447
17448 fi
17449 if test "$SDL" = "yes"; then
17450 headers=no
17451 libs=no
17452 ORIG_CPPFLAGS="$CPPFLAGS"
17453 ORIG_LDFLAGS="$LDFLAGS"
17454 CPPFLAGS="$ORIG_CPPFLAGS $SDL_CFLAGS"
17455 LDLAGS="$ORIG_LDFLAGS $SDL_LIBS"
17456 ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default"
17457 if test "x$ac_cv_header_SDL_mixer_h" = xyes
17458 then :
17459 headers=yes
17460 fi
17461
17462 if test "$SDL2" = "yes"; then
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5
17464 printf %s "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; }
17465 if test ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+y}
17466 then :
17467 printf %s "(cached) " >&6
17468 else $as_nop
17469 ac_check_lib_save_LIBS=$LIBS
17470 LIBS="-lSDL2_mixer $LIBS"
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17477 char Mix_OpenAudio ();
17478 int
17479 main (void)
17480 {
17481 return Mix_OpenAudio ();
17482 ;
17483 return 0;
17484 }
17485 _ACEOF
17486 if ac_fn_c_try_link "$LINENO"
17487 then :
17488 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes
17489 else $as_nop
17490 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no
17491 fi
17492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17495 fi
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5
17497 printf "%s\n" "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; }
17498 if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes
17499 then :
17500 libs=yes
17501 fi
17502
17503 else
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
17505 printf %s "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
17506 if test ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+y}
17507 then :
17508 printf %s "(cached) " >&6
17509 else $as_nop
17510 ac_check_lib_save_LIBS=$LIBS
17511 LIBS="-lSDL_mixer $LIBS"
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514
17515 /* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17518 char Mix_OpenAudio ();
17519 int
17520 main (void)
17521 {
17522 return Mix_OpenAudio ();
17523 ;
17524 return 0;
17525 }
17526 _ACEOF
17527 if ac_fn_c_try_link "$LINENO"
17528 then :
17529 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
17530 else $as_nop
17531 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17534 conftest$ac_exeext conftest.$ac_ext
17535 LIBS=$ac_check_lib_save_LIBS
17536 fi
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
17538 printf "%s\n" "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
17539 if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes
17540 then :
17541 libs=yes
17542 fi
17543
17544 fi
17545 CPPFLAGS="$ORIG_CPPFLAGS"
17546 LDFLAGS="$ORIG_LDFLAGS"
17547 if test "$libs" = "yes"; then
17548 if test "$headers" = "yes"; then
17549 SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS"
17550 if test "$SDL2" = "yes"; then
17551 SDL_LIBS="$SDL_LIBS -lSDL2_mixer"
17552 else
17553 SDL_LIBS="$SDL_LIBS -lSDL_mixer"
17554 fi
17555 SOUND_LIBS="$SOUND_LIBS $SDL_LIBS"
17556 PLUGOBJS="$PLUGOBJS plugins/sound_sdl.o"
17557
17558
17559 printf "%s\n" "#define HAVE_SDL_MIXER 1" >>confdefs.h
17560
17561 SDL_ALL=yes
17562 if test "$APPLE" = "yes"; then
17563 SDL_LIBS="$SDL_LIBS -module"
17564 fi
17565 fi
17566 fi
17567 fi
17568 if test "$USE_SDL" = "yes" -a "$SDL_ALL" = "no"; then
17569 as_fn_error $? "Cannot find SDL library" "$LINENO" 5
17570 fi
17571 fi
17572
17573 if test "$USE_COCOA" != "no"; then
17574 ac_ext=m
17575 ac_cpp='$OBJCPP $CPPFLAGS'
17576 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
17579 if test -n "$ac_tool_prefix"; then
17580 for ac_prog in gcc objcc objc cc CC clang
17581 do
17582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17585 printf %s "checking for $ac_word... " >&6; }
17586 if test ${ac_cv_prog_OBJC+y}
17587 then :
17588 printf %s "(cached) " >&6
17589 else $as_nop
17590 if test -n "$OBJC"; then
17591 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
17592 else
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17595 do
17596 IFS=$as_save_IFS
17597 case $as_dir in #(((
17598 '') as_dir=./ ;;
17599 */) ;;
17600 *) as_dir=$as_dir/ ;;
17601 esac
17602 for ac_exec_ext in '' $ac_executable_extensions; do
17603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17604 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
17605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17606 break 2
17607 fi
17608 done
17609 done
17610 IFS=$as_save_IFS
17611
17612 fi
17613 fi
17614 OBJC=$ac_cv_prog_OBJC
17615 if test -n "$OBJC"; then
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
17617 printf "%s\n" "$OBJC" >&6; }
17618 else
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 printf "%s\n" "no" >&6; }
17621 fi
17622
17623
17624 test -n "$OBJC" && break
17625 done
17626 fi
17627 if test -z "$OBJC"; then
17628 ac_ct_OBJC=$OBJC
17629 for ac_prog in gcc objcc objc cc CC clang
17630 do
17631 # Extract the first word of "$ac_prog", so it can be a program name with args.
17632 set dummy $ac_prog; ac_word=$2
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17634 printf %s "checking for $ac_word... " >&6; }
17635 if test ${ac_cv_prog_ac_ct_OBJC+y}
17636 then :
17637 printf %s "(cached) " >&6
17638 else $as_nop
17639 if test -n "$ac_ct_OBJC"; then
17640 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
17641 else
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17644 do
17645 IFS=$as_save_IFS
17646 case $as_dir in #(((
17647 '') as_dir=./ ;;
17648 */) ;;
17649 *) as_dir=$as_dir/ ;;
17650 esac
17651 for ac_exec_ext in '' $ac_executable_extensions; do
17652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17653 ac_cv_prog_ac_ct_OBJC="$ac_prog"
17654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17655 break 2
17656 fi
17657 done
17658 done
17659 IFS=$as_save_IFS
17660
17661 fi
17662 fi
17663 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
17664 if test -n "$ac_ct_OBJC"; then
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
17666 printf "%s\n" "$ac_ct_OBJC" >&6; }
17667 else
17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 printf "%s\n" "no" >&6; }
17670 fi
17671
17672
17673 test -n "$ac_ct_OBJC" && break
17674 done
17675
17676 if test "x$ac_ct_OBJC" = x; then
17677 OBJC="gcc"
17678 else
17679 case $cross_compiling:$ac_tool_warned in
17680 yes:)
17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17683 ac_tool_warned=yes ;;
17684 esac
17685 OBJC=$ac_ct_OBJC
17686 fi
17687 fi
17688
17689 # Provide some information about the compiler.
17690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
17691 set X $ac_compile
17692 ac_compiler=$2
17693 for ac_option in --version -v -V -qversion; do
17694 { { ac_try="$ac_compiler $ac_option >&5"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17700 printf "%s\n" "$ac_try_echo"; } >&5
17701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17702 ac_status=$?
17703 if test -s conftest.err; then
17704 sed '10a\
17705 ... rest of stderr output deleted ...
17706 10q' conftest.err >conftest.er1
17707 cat conftest.er1 >&5
17708 fi
17709 rm -f conftest.er1 conftest.err
17710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17711 test $ac_status = 0; }
17712 done
17713
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Objective C" >&5
17715 printf %s "checking whether the compiler supports GNU Objective C... " >&6; }
17716 if test ${ac_cv_objc_compiler_gnu+y}
17717 then :
17718 printf %s "(cached) " >&6
17719 else $as_nop
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722
17723 int
17724 main (void)
17725 {
17726 #ifndef __GNUC__
17727 choke me
17728 #endif
17729
17730 ;
17731 return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_objc_try_compile "$LINENO"
17735 then :
17736 ac_compiler_gnu=yes
17737 else $as_nop
17738 ac_compiler_gnu=no
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17741 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
17742
17743 fi
17744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
17745 printf "%s\n" "$ac_cv_objc_compiler_gnu" >&6; }
17746 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
17747
17748 if test $ac_compiler_gnu = yes; then
17749 GOBJC=yes
17750 else
17751 GOBJC=
17752 fi
17753 ac_test_OBJCFLAGS=${OBJCFLAGS+y}
17754 ac_save_OBJCFLAGS=$OBJCFLAGS
17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
17756 printf %s "checking whether $OBJC accepts -g... " >&6; }
17757 if test ${ac_cv_prog_objc_g+y}
17758 then :
17759 printf %s "(cached) " >&6
17760 else $as_nop
17761 ac_save_objc_werror_flag=$ac_objc_werror_flag
17762 ac_objc_werror_flag=yes
17763 ac_cv_prog_objc_g=no
17764 OBJCFLAGS="-g"
17765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h. */
17767
17768 int
17769 main (void)
17770 {
17771
17772 ;
17773 return 0;
17774 }
17775 _ACEOF
17776 if ac_fn_objc_try_compile "$LINENO"
17777 then :
17778 ac_cv_prog_objc_g=yes
17779 else $as_nop
17780 OBJCFLAGS=""
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17783
17784 int
17785 main (void)
17786 {
17787
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 if ac_fn_objc_try_compile "$LINENO"
17793 then :
17794
17795 else $as_nop
17796 ac_objc_werror_flag=$ac_save_objc_werror_flag
17797 OBJCFLAGS="-g"
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800
17801 int
17802 main (void)
17803 {
17804
17805 ;
17806 return 0;
17807 }
17808 _ACEOF
17809 if ac_fn_objc_try_compile "$LINENO"
17810 then :
17811 ac_cv_prog_objc_g=yes
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17814 fi
17815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17818 ac_objc_werror_flag=$ac_save_objc_werror_flag
17819 fi
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
17821 printf "%s\n" "$ac_cv_prog_objc_g" >&6; }
17822 if test $ac_test_OBJCFLAGS; then
17823 OBJCFLAGS=$ac_save_OBJCFLAGS
17824 elif test $ac_cv_prog_objc_g = yes; then
17825 if test "$GOBJC" = yes; then
17826 OBJCFLAGS="-g -O2"
17827 else
17828 OBJCFLAGS="-g"
17829 fi
17830 else
17831 if test "$GOBJC" = yes; then
17832 OBJCFLAGS="-O2"
17833 else
17834 OBJCFLAGS=
17835 fi
17836 fi
17837 ac_ext=c
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17842
17843 depcc="$OBJC" am_compiler_list='gcc3 gcc'
17844
17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17846 printf %s "checking dependency style of $depcc... " >&6; }
17847 if test ${am_cv_OBJC_dependencies_compiler_type+y}
17848 then :
17849 printf %s "(cached) " >&6
17850 else $as_nop
17851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17852 # We make a subdir and do the tests there. Otherwise we can end up
17853 # making bogus files that we don't know about and never remove. For
17854 # instance it was reported that on HP-UX the gcc test will end up
17855 # making a dummy file named 'D' -- because '-MD' means "put the output
17856 # in D".
17857 rm -rf conftest.dir
17858 mkdir conftest.dir
17859 # Copy depcomp to subdir because otherwise we won't find it if we're
17860 # using a relative directory.
17861 cp "$am_depcomp" conftest.dir
17862 cd conftest.dir
17863 # We will build objects and dependencies in a subdirectory because
17864 # it helps to detect inapplicable dependency modes. For instance
17865 # both Tru64's cc and ICC support -MD to output dependencies as a
17866 # side effect of compilation, but ICC will put the dependencies in
17867 # the current directory while Tru64 will put them in the object
17868 # directory.
17869 mkdir sub
17870
17871 am_cv_OBJC_dependencies_compiler_type=none
17872 if test "$am_compiler_list" = ""; then
17873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17874 fi
17875 am__universal=false
17876
17877
17878 for depmode in $am_compiler_list; do
17879 # Setup a source with many dependencies, because some compilers
17880 # like to wrap large dependency lists on column 80 (with \), and
17881 # we should not choose a depcomp mode which is confused by this.
17882 #
17883 # We need to recreate these files for each test, as the compiler may
17884 # overwrite some of them when testing with obscure command lines.
17885 # This happens at least with the AIX C compiler.
17886 : > sub/conftest.c
17887 for i in 1 2 3 4 5 6; do
17888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17889 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17890 # Solaris 10 /bin/sh.
17891 echo '/* dummy */' > sub/conftst$i.h
17892 done
17893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17894
17895 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17896 # mode. It turns out that the SunPro C++ compiler does not properly
17897 # handle '-M -o', and we need to detect this. Also, some Intel
17898 # versions had trouble with output in subdirs.
17899 am__obj=sub/conftest.${OBJEXT-o}
17900 am__minus_obj="-o $am__obj"
17901 case $depmode in
17902 gcc)
17903 # This depmode causes a compiler race in universal mode.
17904 test "$am__universal" = false || continue
17905 ;;
17906 nosideeffect)
17907 # After this tag, mechanisms are not by side-effect, so they'll
17908 # only be used when explicitly requested.
17909 if test "x$enable_dependency_tracking" = xyes; then
17910 continue
17911 else
17912 break
17913 fi
17914 ;;
17915 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17916 # This compiler won't grok '-c -o', but also, the minuso test has
17917 # not run yet. These depmodes are late enough in the game, and
17918 # so weak that their functioning should not be impacted.
17919 am__obj=conftest.${OBJEXT-o}
17920 am__minus_obj=
17921 ;;
17922 none) break ;;
17923 esac
17924 if depmode=$depmode \
17925 source=sub/conftest.c object=$am__obj \
17926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17928 >/dev/null 2>conftest.err &&
17929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17933 # icc doesn't choke on unknown options, it will just issue warnings
17934 # or remarks (even with -Werror). So we grep stderr for any message
17935 # that says an option was ignored or not supported.
17936 # When given -MP, icc 7.0 and 7.1 complain thusly:
17937 # icc: Command line warning: ignoring option '-M'; no argument required
17938 # The diagnosis changed in icc 8.0:
17939 # icc: Command line remark: option '-MP' not supported
17940 if (grep 'ignoring option' conftest.err ||
17941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17942 am_cv_OBJC_dependencies_compiler_type=$depmode
17943 break
17944 fi
17945 fi
17946 done
17947
17948 cd ..
17949 rm -rf conftest.dir
17950 else
17951 am_cv_OBJC_dependencies_compiler_type=none
17952 fi
17953
17954 fi
17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
17956 printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; }
17957 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
17958
17959 if
17960 test "x$enable_dependency_tracking" != xno \
17961 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
17962 am__fastdepOBJC_TRUE=
17963 am__fastdepOBJC_FALSE='#'
17964 else
17965 am__fastdepOBJC_TRUE='#'
17966 am__fastdepOBJC_FALSE=
17967 fi
17968
17969
17970 COCOA="yes"
17971 PLUGOBJS="$PLUGOBJS plugins/sound_cocoa.o"
17972
17973 printf "%s\n" "#define HAVE_COCOA 1" >>confdefs.h
17974
17975 else
17976 am__fastdepOBJC_TRUE='#'
17977 am__fastdepOBJC_FALSE=
17978 fi
17979
17980 if test "$GUI_SERVER" = "probe"; then
17981 GUI_SERVER="no"
17982 fi
17983
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t data type" >&5
17985 printf %s "checking for socklen_t data type... " >&6; }
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988 #include <sys/types.h>
17989 #include <sys/socket.h>
17990 int
17991 main (void)
17992 {
17993 socklen_t val
17994 ;
17995 return 0;
17996 }
17997 _ACEOF
17998 if ac_fn_c_try_compile "$LINENO"
17999 then :
18000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18001 printf "%s\n" "yes" >&6; }
18002
18003 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
18004
18005 else $as_nop
18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007 printf "%s\n" "no" >&6; }
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18010 fi
18011
18012 if test "$ESD" = "yes"; then
18013 ESD_TRUE=
18014 ESD_FALSE='#'
18015 else
18016 ESD_TRUE='#'
18017 ESD_FALSE=
18018 fi
18019
18020 if test "$SDL" = "yes"; then
18021 SDL_TRUE=
18022 SDL_FALSE='#'
18023 else
18024 SDL_TRUE='#'
18025 SDL_FALSE=
18026 fi
18027
18028 if test "$COCOA" = "yes"; then
18029 COCOA_TRUE=
18030 COCOA_FALSE='#'
18031 else
18032 COCOA_TRUE='#'
18033 COCOA_FALSE=
18034 fi
18035
18036
18037 if test "$GUI_CLIENT" = "probe"; then
18038 GUI_CLIENT="yes"
18039 fi
18040 if test "$CURSES_CLIENT" = "probe"; then
18041 CURSES_CLIENT="yes"
18042 fi
18043
18044 ALL_LINGUAS="de pl pt_BR fr fr_CA nn es es_ES en_GB"
18045
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18047 printf %s "checking whether NLS is requested... " >&6; }
18048 # Check whether --enable-nls was given.
18049 if test ${enable_nls+y}
18050 then :
18051 enableval=$enable_nls; USE_NLS=$enableval
18052 else $as_nop
18053 USE_NLS=yes
18054 fi
18055
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18057 printf "%s\n" "$USE_NLS" >&6; }
18058
18059
18060
18061
18062 GETTEXT_MACRO_VERSION=0.20
18063
18064
18065
18066
18067 # Prepare PATH_SEPARATOR.
18068 # The user is always right.
18069 if test "${PATH_SEPARATOR+set}" != set; then
18070 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18071 # contains only /bin. Note that ksh looks also at the FPATH variable,
18072 # so we have to set that as well for the test.
18073 PATH_SEPARATOR=:
18074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18075 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18076 || PATH_SEPARATOR=';'
18077 }
18078 fi
18079
18080 # Find out how to test for executable files. Don't use a zero-byte file,
18081 # as systems may use methods other than mode bits to determine executability.
18082 cat >conf$$.file <<_ASEOF
18083 #! /bin/sh
18084 exit 0
18085 _ASEOF
18086 chmod +x conf$$.file
18087 if test -x conf$$.file >/dev/null 2>&1; then
18088 ac_executable_p="test -x"
18089 else
18090 ac_executable_p="test -f"
18091 fi
18092 rm -f conf$$.file
18093
18094 # Extract the first word of "msgfmt", so it can be a program name with args.
18095 set dummy msgfmt; ac_word=$2
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18097 printf %s "checking for $ac_word... " >&6; }
18098 if test ${ac_cv_path_MSGFMT+y}
18099 then :
18100 printf %s "(cached) " >&6
18101 else $as_nop
18102 case "$MSGFMT" in
18103 [\\/]* | ?:[\\/]*)
18104 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18105 ;;
18106 *)
18107 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18108 for ac_dir in $PATH; do
18109 IFS="$ac_save_IFS"
18110 test -z "$ac_dir" && ac_dir=.
18111 for ac_exec_ext in '' $ac_executable_extensions; do
18112 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18113 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18114 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18115 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18116 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18117 break 2
18118 fi
18119 fi
18120 done
18121 done
18122 IFS="$ac_save_IFS"
18123 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18124 ;;
18125 esac
18126 fi
18127 MSGFMT="$ac_cv_path_MSGFMT"
18128 if test "$MSGFMT" != ":"; then
18129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18130 printf "%s\n" "$MSGFMT" >&6; }
18131 else
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18133 printf "%s\n" "no" >&6; }
18134 fi
18135
18136 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18137 set dummy gmsgfmt; ac_word=$2
18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18139 printf %s "checking for $ac_word... " >&6; }
18140 if test ${ac_cv_path_GMSGFMT+y}
18141 then :
18142 printf %s "(cached) " >&6
18143 else $as_nop
18144 case $GMSGFMT in
18145 [\\/]* | ?:[\\/]*)
18146 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18147 ;;
18148 *)
18149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18150 for as_dir in $PATH
18151 do
18152 IFS=$as_save_IFS
18153 case $as_dir in #(((
18154 '') as_dir=./ ;;
18155 */) ;;
18156 *) as_dir=$as_dir/ ;;
18157 esac
18158 for ac_exec_ext in '' $ac_executable_extensions; do
18159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18160 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
18161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18162 break 2
18163 fi
18164 done
18165 done
18166 IFS=$as_save_IFS
18167
18168 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18169 ;;
18170 esac
18171 fi
18172 GMSGFMT=$ac_cv_path_GMSGFMT
18173 if test -n "$GMSGFMT"; then
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18175 printf "%s\n" "$GMSGFMT" >&6; }
18176 else
18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 printf "%s\n" "no" >&6; }
18179 fi
18180
18181
18182
18183 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18184 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18185 *) GMSGFMT_015=$GMSGFMT ;;
18186 esac
18187
18188
18189
18190 # Prepare PATH_SEPARATOR.
18191 # The user is always right.
18192 if test "${PATH_SEPARATOR+set}" != set; then
18193 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18194 # contains only /bin. Note that ksh looks also at the FPATH variable,
18195 # so we have to set that as well for the test.
18196 PATH_SEPARATOR=:
18197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18198 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18199 || PATH_SEPARATOR=';'
18200 }
18201 fi
18202
18203 # Find out how to test for executable files. Don't use a zero-byte file,
18204 # as systems may use methods other than mode bits to determine executability.
18205 cat >conf$$.file <<_ASEOF
18206 #! /bin/sh
18207 exit 0
18208 _ASEOF
18209 chmod +x conf$$.file
18210 if test -x conf$$.file >/dev/null 2>&1; then
18211 ac_executable_p="test -x"
18212 else
18213 ac_executable_p="test -f"
18214 fi
18215 rm -f conf$$.file
18216
18217 # Extract the first word of "xgettext", so it can be a program name with args.
18218 set dummy xgettext; ac_word=$2
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18220 printf %s "checking for $ac_word... " >&6; }
18221 if test ${ac_cv_path_XGETTEXT+y}
18222 then :
18223 printf %s "(cached) " >&6
18224 else $as_nop
18225 case "$XGETTEXT" in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18231 for ac_dir in $PATH; do
18232 IFS="$ac_save_IFS"
18233 test -z "$ac_dir" && ac_dir=.
18234 for ac_exec_ext in '' $ac_executable_extensions; do
18235 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18236 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18237 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18238 (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
18239 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18240 break 2
18241 fi
18242 fi
18243 done
18244 done
18245 IFS="$ac_save_IFS"
18246 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18247 ;;
18248 esac
18249 fi
18250 XGETTEXT="$ac_cv_path_XGETTEXT"
18251 if test "$XGETTEXT" != ":"; then
18252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18253 printf "%s\n" "$XGETTEXT" >&6; }
18254 else
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 printf "%s\n" "no" >&6; }
18257 fi
18258
18259 rm -f messages.po
18260
18261 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18262 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
18263 *) XGETTEXT_015=$XGETTEXT ;;
18264 esac
18265
18266
18267
18268 # Prepare PATH_SEPARATOR.
18269 # The user is always right.
18270 if test "${PATH_SEPARATOR+set}" != set; then
18271 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18272 # contains only /bin. Note that ksh looks also at the FPATH variable,
18273 # so we have to set that as well for the test.
18274 PATH_SEPARATOR=:
18275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18276 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18277 || PATH_SEPARATOR=';'
18278 }
18279 fi
18280
18281 # Find out how to test for executable files. Don't use a zero-byte file,
18282 # as systems may use methods other than mode bits to determine executability.
18283 cat >conf$$.file <<_ASEOF
18284 #! /bin/sh
18285 exit 0
18286 _ASEOF
18287 chmod +x conf$$.file
18288 if test -x conf$$.file >/dev/null 2>&1; then
18289 ac_executable_p="test -x"
18290 else
18291 ac_executable_p="test -f"
18292 fi
18293 rm -f conf$$.file
18294
18295 # Extract the first word of "msgmerge", so it can be a program name with args.
18296 set dummy msgmerge; ac_word=$2
18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18298 printf %s "checking for $ac_word... " >&6; }
18299 if test ${ac_cv_path_MSGMERGE+y}
18300 then :
18301 printf %s "(cached) " >&6
18302 else $as_nop
18303 case "$MSGMERGE" in
18304 [\\/]* | ?:[\\/]*)
18305 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18306 ;;
18307 *)
18308 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18309 for ac_dir in $PATH; do
18310 IFS="$ac_save_IFS"
18311 test -z "$ac_dir" && ac_dir=.
18312 for ac_exec_ext in '' $ac_executable_extensions; do
18313 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18314 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18315 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18316 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18317 break 2
18318 fi
18319 fi
18320 done
18321 done
18322 IFS="$ac_save_IFS"
18323 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18324 ;;
18325 esac
18326 fi
18327 MSGMERGE="$ac_cv_path_MSGMERGE"
18328 if test "$MSGMERGE" != ":"; then
18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18330 printf "%s\n" "$MSGMERGE" >&6; }
18331 else
18332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 printf "%s\n" "no" >&6; }
18334 fi
18335
18336
18337 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
18338 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
18339 else
18340 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
18341 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
18342 else
18343 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
18344 fi
18345 fi
18346
18347
18348 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18349
18350
18351 ac_config_commands="$ac_config_commands po-directories"
18352
18353
18354
18355 if test "X$prefix" = "XNONE"; then
18356 acl_final_prefix="$ac_default_prefix"
18357 else
18358 acl_final_prefix="$prefix"
18359 fi
18360 if test "X$exec_prefix" = "XNONE"; then
18361 acl_final_exec_prefix='${prefix}'
18362 else
18363 acl_final_exec_prefix="$exec_prefix"
18364 fi
18365 acl_save_prefix="$prefix"
18366 prefix="$acl_final_prefix"
18367 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18368 prefix="$acl_save_prefix"
18369
18370
18371
18372 # Check whether --with-gnu-ld was given.
18373 if test ${with_gnu_ld+y}
18374 then :
18375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18376 else $as_nop
18377 with_gnu_ld=no
18378 fi
18379
18380 # Prepare PATH_SEPARATOR.
18381 # The user is always right.
18382 if test "${PATH_SEPARATOR+set}" != set; then
18383 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18384 # contains only /bin. Note that ksh looks also at the FPATH variable,
18385 # so we have to set that as well for the test.
18386 PATH_SEPARATOR=:
18387 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18388 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18389 || PATH_SEPARATOR=';'
18390 }
18391 fi
18392
18393 if test -n "$LD"; then
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
18395 printf %s "checking for ld... " >&6; }
18396 elif test "$GCC" = yes; then
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18398 printf %s "checking for ld used by $CC... " >&6; }
18399 elif test "$with_gnu_ld" = yes; then
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18401 printf %s "checking for GNU ld... " >&6; }
18402 else
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18404 printf %s "checking for non-GNU ld... " >&6; }
18405 fi
18406 if test -n "$LD"; then
18407 # Let the user override the test with a path.
18408 :
18409 else
18410 if test ${acl_cv_path_LD+y}
18411 then :
18412 printf %s "(cached) " >&6
18413 else $as_nop
18414
18415 acl_cv_path_LD= # Final result of this test
18416 ac_prog=ld # Program to search in $PATH
18417 if test "$GCC" = yes; then
18418 # Check if gcc -print-prog-name=ld gives a path.
18419 case $host in
18420 *-*-mingw*)
18421 # gcc leaves a trailing carriage return which upsets mingw
18422 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18423 *)
18424 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
18425 esac
18426 case $acl_output in
18427 # Accept absolute paths.
18428 [\\/]* | ?:[\\/]*)
18429 re_direlt='/[^/][^/]*/\.\./'
18430 # Canonicalize the pathname of ld
18431 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
18432 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
18433 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
18434 done
18435 # Got the pathname. No search in PATH is needed.
18436 acl_cv_path_LD="$acl_output"
18437 ac_prog=
18438 ;;
18439 "")
18440 # If it fails, then pretend we aren't using GCC.
18441 ;;
18442 *)
18443 # If it is relative, then search for the first ld in PATH.
18444 with_gnu_ld=unknown
18445 ;;
18446 esac
18447 fi
18448 if test -n "$ac_prog"; then
18449 # Search for $ac_prog in $PATH.
18450 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18451 for ac_dir in $PATH; do
18452 IFS="$acl_save_ifs"
18453 test -z "$ac_dir" && ac_dir=.
18454 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18455 acl_cv_path_LD="$ac_dir/$ac_prog"
18456 # Check to see if the program is GNU ld. I'd rather use --version,
18457 # but apparently some variants of GNU ld only accept -v.
18458 # Break only if it was the GNU/non-GNU ld that we prefer.
18459 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18460 *GNU* | *'with BFD'*)
18461 test "$with_gnu_ld" != no && break
18462 ;;
18463 *)
18464 test "$with_gnu_ld" != yes && break
18465 ;;
18466 esac
18467 fi
18468 done
18469 IFS="$acl_save_ifs"
18470 fi
18471 case $host in
18472 *-*-aix*)
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18475 #if defined __powerpc64__ || defined _ARCH_PPC64
18476 int ok;
18477 #else
18478 error fail
18479 #endif
18480
18481 _ACEOF
18482 if ac_fn_c_try_compile "$LINENO"
18483 then :
18484 # The compiler produces 64-bit code. Add option '-b64' so that the
18485 # linker groks 64-bit object files.
18486 case "$acl_cv_path_LD " in
18487 *" -b64 "*) ;;
18488 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18489 esac
18490
18491 fi
18492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18493 ;;
18494 sparc64-*-netbsd*)
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497 #if defined __sparcv9 || defined __arch64__
18498 int ok;
18499 #else
18500 error fail
18501 #endif
18502
18503 _ACEOF
18504 if ac_fn_c_try_compile "$LINENO"
18505 then :
18506
18507 else $as_nop
18508 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18509 # so that the linker groks 32-bit object files.
18510 case "$acl_cv_path_LD " in
18511 *" -m elf32_sparc "*) ;;
18512 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18513 esac
18514
18515 fi
18516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18517 ;;
18518 esac
18519
18520 fi
18521
18522 LD="$acl_cv_path_LD"
18523 fi
18524 if test -n "$LD"; then
18525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18526 printf "%s\n" "$LD" >&6; }
18527 else
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18529 printf "%s\n" "no" >&6; }
18530 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18531 fi
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18533 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18534 if test ${acl_cv_prog_gnu_ld+y}
18535 then :
18536 printf %s "(cached) " >&6
18537 else $as_nop
18538 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18539 case `$LD -v 2>&1 </dev/null` in
18540 *GNU* | *'with BFD'*)
18541 acl_cv_prog_gnu_ld=yes
18542 ;;
18543 *)
18544 acl_cv_prog_gnu_ld=no
18545 ;;
18546 esac
18547 fi
18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18549 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
18550 with_gnu_ld=$acl_cv_prog_gnu_ld
18551
18552
18553
18554
18555
18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18557 printf %s "checking for shared library run path origin... " >&6; }
18558 if test ${acl_cv_rpath+y}
18559 then :
18560 printf %s "(cached) " >&6
18561 else $as_nop
18562
18563 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18564 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18565 . ./conftest.sh
18566 rm -f ./conftest.sh
18567 acl_cv_rpath=done
18568
18569 fi
18570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18571 printf "%s\n" "$acl_cv_rpath" >&6; }
18572 wl="$acl_cv_wl"
18573 acl_libext="$acl_cv_libext"
18574 acl_shlibext="$acl_cv_shlibext"
18575 acl_libname_spec="$acl_cv_libname_spec"
18576 acl_library_names_spec="$acl_cv_library_names_spec"
18577 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18578 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18579 acl_hardcode_direct="$acl_cv_hardcode_direct"
18580 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18581 # Check whether --enable-rpath was given.
18582 if test ${enable_rpath+y}
18583 then :
18584 enableval=$enable_rpath; :
18585 else $as_nop
18586 enable_rpath=yes
18587 fi
18588
18589
18590
18591
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18593 printf %s "checking 32-bit host C ABI... " >&6; }
18594 if test ${gl_cv_host_cpu_c_abi_32bit+y}
18595 then :
18596 printf %s "(cached) " >&6
18597 else $as_nop
18598 if test -n "$gl_cv_host_cpu_c_abi"; then
18599 case "$gl_cv_host_cpu_c_abi" in
18600 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18601 gl_cv_host_cpu_c_abi_32bit=yes ;;
18602 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
18603 gl_cv_host_cpu_c_abi_32bit=no ;;
18604 *)
18605 gl_cv_host_cpu_c_abi_32bit=unknown ;;
18606 esac
18607 else
18608 case "$host_cpu" in
18609
18610 # CPUs that only support a 32-bit ABI.
18611 arc \
18612 | bfin \
18613 | cris* \
18614 | csky \
18615 | epiphany \
18616 | ft32 \
18617 | h8300 \
18618 | m68k \
18619 | microblaze | microblazeel \
18620 | nds32 | nds32le | nds32be \
18621 | nios2 | nios2eb | nios2el \
18622 | or1k* \
18623 | or32 \
18624 | sh | sh1234 | sh1234elb \
18625 | tic6x \
18626 | xtensa* )
18627 gl_cv_host_cpu_c_abi_32bit=yes
18628 ;;
18629
18630 # CPUs that only support a 64-bit ABI.
18631 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
18632 | mmix )
18633 gl_cv_host_cpu_c_abi_32bit=no
18634 ;;
18635
18636 i[34567]86 )
18637 gl_cv_host_cpu_c_abi_32bit=yes
18638 ;;
18639
18640 x86_64 )
18641 # On x86_64 systems, the C compiler may be generating code in one of
18642 # these ABIs:
18643 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18644 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18645 # with native Windows (mingw, MSVC).
18646 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18647 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650 #if (defined __x86_64__ || defined __amd64__ \
18651 || defined _M_X64 || defined _M_AMD64) \
18652 && !(defined __ILP32__ || defined _ILP32)
18653 int ok;
18654 #else
18655 error fail
18656 #endif
18657
18658 _ACEOF
18659 if ac_fn_c_try_compile "$LINENO"
18660 then :
18661 gl_cv_host_cpu_c_abi_32bit=no
18662 else $as_nop
18663 gl_cv_host_cpu_c_abi_32bit=yes
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18666 ;;
18667
18668 arm* | aarch64 )
18669 # Assume arm with EABI.
18670 # On arm64 systems, the C compiler may be generating code in one of
18671 # these ABIs:
18672 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18673 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18674 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18678 int ok;
18679 #else
18680 error fail
18681 #endif
18682
18683 _ACEOF
18684 if ac_fn_c_try_compile "$LINENO"
18685 then :
18686 gl_cv_host_cpu_c_abi_32bit=no
18687 else $as_nop
18688 gl_cv_host_cpu_c_abi_32bit=yes
18689 fi
18690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18691 ;;
18692
18693 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18694 # On hppa, the C compiler may be generating 32-bit code or 64-bit
18695 # code. In the latter case, it defines _LP64 and __LP64__.
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698 #ifdef __LP64__
18699 int ok;
18700 #else
18701 error fail
18702 #endif
18703
18704 _ACEOF
18705 if ac_fn_c_try_compile "$LINENO"
18706 then :
18707 gl_cv_host_cpu_c_abi_32bit=no
18708 else $as_nop
18709 gl_cv_host_cpu_c_abi_32bit=yes
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18712 ;;
18713
18714 ia64* )
18715 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18716 # 32-bit code. In the latter case, it defines _ILP32.
18717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718 /* end confdefs.h. */
18719 #ifdef _ILP32
18720 int ok;
18721 #else
18722 error fail
18723 #endif
18724
18725 _ACEOF
18726 if ac_fn_c_try_compile "$LINENO"
18727 then :
18728 gl_cv_host_cpu_c_abi_32bit=yes
18729 else $as_nop
18730 gl_cv_host_cpu_c_abi_32bit=no
18731 fi
18732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18733 ;;
18734
18735 mips* )
18736 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18737 # at 32.
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18740 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18741 int ok;
18742 #else
18743 error fail
18744 #endif
18745
18746 _ACEOF
18747 if ac_fn_c_try_compile "$LINENO"
18748 then :
18749 gl_cv_host_cpu_c_abi_32bit=no
18750 else $as_nop
18751 gl_cv_host_cpu_c_abi_32bit=yes
18752 fi
18753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18754 ;;
18755
18756 powerpc* )
18757 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18758 # No need to distinguish them here; the caller may distinguish
18759 # them based on the OS.
18760 # On powerpc64 systems, the C compiler may still be generating
18761 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18762 # be generating 64-bit code.
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18765 #if defined __powerpc64__ || defined _ARCH_PPC64
18766 int ok;
18767 #else
18768 error fail
18769 #endif
18770
18771 _ACEOF
18772 if ac_fn_c_try_compile "$LINENO"
18773 then :
18774 gl_cv_host_cpu_c_abi_32bit=no
18775 else $as_nop
18776 gl_cv_host_cpu_c_abi_32bit=yes
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18779 ;;
18780
18781 rs6000 )
18782 gl_cv_host_cpu_c_abi_32bit=yes
18783 ;;
18784
18785 riscv32 | riscv64 )
18786 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18787 # Size of 'long' and 'void *':
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790 #if defined __LP64__
18791 int ok;
18792 #else
18793 error fail
18794 #endif
18795
18796 _ACEOF
18797 if ac_fn_c_try_compile "$LINENO"
18798 then :
18799 gl_cv_host_cpu_c_abi_32bit=no
18800 else $as_nop
18801 gl_cv_host_cpu_c_abi_32bit=yes
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18804 ;;
18805
18806 s390* )
18807 # On s390x, the C compiler may be generating 64-bit (= s390x) code
18808 # or 31-bit (= s390) code.
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18811 #if defined __LP64__ || defined __s390x__
18812 int ok;
18813 #else
18814 error fail
18815 #endif
18816
18817 _ACEOF
18818 if ac_fn_c_try_compile "$LINENO"
18819 then :
18820 gl_cv_host_cpu_c_abi_32bit=no
18821 else $as_nop
18822 gl_cv_host_cpu_c_abi_32bit=yes
18823 fi
18824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18825 ;;
18826
18827 sparc | sparc64 )
18828 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18829 # C compiler still generates 32-bit code.
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 #if defined __sparcv9 || defined __arch64__
18833 int ok;
18834 #else
18835 error fail
18836 #endif
18837
18838 _ACEOF
18839 if ac_fn_c_try_compile "$LINENO"
18840 then :
18841 gl_cv_host_cpu_c_abi_32bit=no
18842 else $as_nop
18843 gl_cv_host_cpu_c_abi_32bit=yes
18844 fi
18845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 ;;
18847
18848 *)
18849 gl_cv_host_cpu_c_abi_32bit=unknown
18850 ;;
18851 esac
18852 fi
18853
18854 fi
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18856 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18857
18858 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18859
18860 ac_ext=c
18861 ac_cpp='$CPP $CPPFLAGS'
18862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18866 printf %s "checking how to run the C preprocessor... " >&6; }
18867 # On Suns, sometimes $CPP names a directory.
18868 if test -n "$CPP" && test -d "$CPP"; then
18869 CPP=
18870 fi
18871 if test -z "$CPP"; then
18872 if test ${ac_cv_prog_CPP+y}
18873 then :
18874 printf %s "(cached) " >&6
18875 else $as_nop
18876 # Double quotes because $CC needs to be expanded
18877 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18878 do
18879 ac_preproc_ok=false
18880 for ac_c_preproc_warn_flag in '' yes
18881 do
18882 # Use a header file that comes with gcc, so configuring glibc
18883 # with a fresh cross-compiler works.
18884 # On the NeXT, cc -E runs the code through the compiler's parser,
18885 # not just through cpp. "Syntax error" is here to catch this case.
18886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887 /* end confdefs.h. */
18888 #include <limits.h>
18889 Syntax error
18890 _ACEOF
18891 if ac_fn_c_try_cpp "$LINENO"
18892 then :
18893
18894 else $as_nop
18895 # Broken: fails on valid input.
18896 continue
18897 fi
18898 rm -f conftest.err conftest.i conftest.$ac_ext
18899
18900 # OK, works on sane cases. Now check whether nonexistent headers
18901 # can be detected and how.
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904 #include <ac_nonexistent.h>
18905 _ACEOF
18906 if ac_fn_c_try_cpp "$LINENO"
18907 then :
18908 # Broken: success on invalid input.
18909 continue
18910 else $as_nop
18911 # Passes both tests.
18912 ac_preproc_ok=:
18913 break
18914 fi
18915 rm -f conftest.err conftest.i conftest.$ac_ext
18916
18917 done
18918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18919 rm -f conftest.i conftest.err conftest.$ac_ext
18920 if $ac_preproc_ok
18921 then :
18922 break
18923 fi
18924
18925 done
18926 ac_cv_prog_CPP=$CPP
18927
18928 fi
18929 CPP=$ac_cv_prog_CPP
18930 else
18931 ac_cv_prog_CPP=$CPP
18932 fi
18933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18934 printf "%s\n" "$CPP" >&6; }
18935 ac_preproc_ok=false
18936 for ac_c_preproc_warn_flag in '' yes
18937 do
18938 # Use a header file that comes with gcc, so configuring glibc
18939 # with a fresh cross-compiler works.
18940 # On the NeXT, cc -E runs the code through the compiler's parser,
18941 # not just through cpp. "Syntax error" is here to catch this case.
18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18944 #include <limits.h>
18945 Syntax error
18946 _ACEOF
18947 if ac_fn_c_try_cpp "$LINENO"
18948 then :
18949
18950 else $as_nop
18951 # Broken: fails on valid input.
18952 continue
18953 fi
18954 rm -f conftest.err conftest.i conftest.$ac_ext
18955
18956 # OK, works on sane cases. Now check whether nonexistent headers
18957 # can be detected and how.
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18960 #include <ac_nonexistent.h>
18961 _ACEOF
18962 if ac_fn_c_try_cpp "$LINENO"
18963 then :
18964 # Broken: success on invalid input.
18965 continue
18966 else $as_nop
18967 # Passes both tests.
18968 ac_preproc_ok=:
18969 break
18970 fi
18971 rm -f conftest.err conftest.i conftest.$ac_ext
18972
18973 done
18974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18975 rm -f conftest.i conftest.err conftest.$ac_ext
18976 if $ac_preproc_ok
18977 then :
18978
18979 else $as_nop
18980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18982 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18983 See \`config.log' for more details" "$LINENO" 5; }
18984 fi
18985
18986 ac_ext=c
18987 ac_cpp='$CPP $CPPFLAGS'
18988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991
18992
18993
18994
18995
18996
18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
18998 printf %s "checking for ELF binary format... " >&6; }
18999 if test ${gl_cv_elf+y}
19000 then :
19001 printf %s "(cached) " >&6
19002 else $as_nop
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 #ifdef __ELF__
19006 Extensible Linking Format
19007 #endif
19008
19009 _ACEOF
19010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19011 $EGREP "Extensible Linking Format" >/dev/null 2>&1
19012 then :
19013 gl_cv_elf=yes
19014 else $as_nop
19015 gl_cv_elf=no
19016 fi
19017 rm -rf conftest*
19018
19019
19020 fi
19021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
19022 printf "%s\n" "$gl_cv_elf" >&6; }
19023 if test $gl_cv_elf; then
19024 # Extract the ELF class of a file (5th byte) in decimal.
19025 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
19026 if od -A x < /dev/null >/dev/null 2>/dev/null; then
19027 # Use POSIX od.
19028 func_elfclass ()
19029 {
19030 od -A n -t d1 -j 4 -N 1
19031 }
19032 else
19033 # Use BSD hexdump.
19034 func_elfclass ()
19035 {
19036 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
19037 echo
19038 }
19039 fi
19040 case $HOST_CPU_C_ABI_32BIT in
19041 yes)
19042 # 32-bit ABI.
19043 acl_is_expected_elfclass ()
19044 {
19045 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
19046 }
19047 ;;
19048 no)
19049 # 64-bit ABI.
19050 acl_is_expected_elfclass ()
19051 {
19052 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
19053 }
19054 ;;
19055 *)
19056 # Unknown.
19057 acl_is_expected_elfclass ()
19058 {
19059 :
19060 }
19061 ;;
19062 esac
19063 else
19064 acl_is_expected_elfclass ()
19065 {
19066 :
19067 }
19068 fi
19069
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
19071 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
19072 if test ${acl_cv_libdirstems+y}
19073 then :
19074 printf %s "(cached) " >&6
19075 else $as_nop
19076 acl_libdirstem=lib
19077 acl_libdirstem2=
19078 acl_libdirstem3=
19079 case "$host_os" in
19080 solaris*)
19081 if test $HOST_CPU_C_ABI_32BIT = no; then
19082 acl_libdirstem2=lib/64
19083 case "$host_cpu" in
19084 sparc*) acl_libdirstem3=lib/sparcv9 ;;
19085 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
19086 esac
19087 fi
19088 ;;
19089 *)
19090 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
19091 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19092 if test $HOST_CPU_C_ABI_32BIT != no; then
19093 # 32-bit or unknown ABI.
19094 if test -d /usr/lib32; then
19095 acl_libdirstem2=lib32
19096 fi
19097 fi
19098 if test $HOST_CPU_C_ABI_32BIT != yes; then
19099 # 64-bit or unknown ABI.
19100 if test -d /usr/lib64; then
19101 acl_libdirstem3=lib64
19102 fi
19103 fi
19104 if test -n "$searchpath"; then
19105 acl_save_IFS="${IFS= }"; IFS=":"
19106 for searchdir in $searchpath; do
19107 if test -d "$searchdir"; then
19108 case "$searchdir" in
19109 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
19110 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
19111 */../ | */.. )
19112 # Better ignore directories of this form. They are misleading.
19113 ;;
19114 *) searchdir=`cd "$searchdir" && pwd`
19115 case "$searchdir" in
19116 */lib32 ) acl_libdirstem2=lib32 ;;
19117 */lib64 ) acl_libdirstem3=lib64 ;;
19118 esac ;;
19119 esac
19120 fi
19121 done
19122 IFS="$acl_save_IFS"
19123 if test $HOST_CPU_C_ABI_32BIT = yes; then
19124 # 32-bit ABI.
19125 acl_libdirstem3=
19126 fi
19127 if test $HOST_CPU_C_ABI_32BIT = no; then
19128 # 64-bit ABI.
19129 acl_libdirstem2=
19130 fi
19131 fi
19132 ;;
19133 esac
19134 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19135 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
19136 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
19137
19138 fi
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
19140 printf "%s\n" "$acl_cv_libdirstems" >&6; }
19141 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
19142 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
19143 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155 use_additional=yes
19156
19157 acl_save_prefix="$prefix"
19158 prefix="$acl_final_prefix"
19159 acl_save_exec_prefix="$exec_prefix"
19160 exec_prefix="$acl_final_exec_prefix"
19161
19162 eval additional_includedir=\"$includedir\"
19163 eval additional_libdir=\"$libdir\"
19164 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19165 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19166
19167 exec_prefix="$acl_save_exec_prefix"
19168 prefix="$acl_save_prefix"
19169
19170
19171 # Check whether --with-libiconv-prefix was given.
19172 if test ${with_libiconv_prefix+y}
19173 then :
19174 withval=$with_libiconv_prefix;
19175 if test "X$withval" = "Xno"; then
19176 use_additional=no
19177 else
19178 if test "X$withval" = "X"; then
19179
19180 acl_save_prefix="$prefix"
19181 prefix="$acl_final_prefix"
19182 acl_save_exec_prefix="$exec_prefix"
19183 exec_prefix="$acl_final_exec_prefix"
19184
19185 eval additional_includedir=\"$includedir\"
19186 eval additional_libdir=\"$libdir\"
19187 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19188 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19189
19190 exec_prefix="$acl_save_exec_prefix"
19191 prefix="$acl_save_prefix"
19192
19193 else
19194 additional_includedir="$withval/include"
19195 additional_libdir="$withval/$acl_libdirstem"
19196 additional_libdir2="$withval/$acl_libdirstem2"
19197 additional_libdir3="$withval/$acl_libdirstem3"
19198 fi
19199 fi
19200
19201 fi
19202
19203 if test "X$additional_libdir2" = "X$additional_libdir"; then
19204 additional_libdir2=
19205 fi
19206 if test "X$additional_libdir3" = "X$additional_libdir"; then
19207 additional_libdir3=
19208 fi
19209 LIBICONV=
19210 LTLIBICONV=
19211 INCICONV=
19212 LIBICONV_PREFIX=
19213 HAVE_LIBICONV=
19214 rpathdirs=
19215 ltrpathdirs=
19216 names_already_handled=
19217 names_next_round='iconv '
19218 while test -n "$names_next_round"; do
19219 names_this_round="$names_next_round"
19220 names_next_round=
19221 for name in $names_this_round; do
19222 already_handled=
19223 for n in $names_already_handled; do
19224 if test "$n" = "$name"; then
19225 already_handled=yes
19226 break
19227 fi
19228 done
19229 if test -z "$already_handled"; then
19230 names_already_handled="$names_already_handled $name"
19231 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19232 eval value=\"\$HAVE_LIB$uppername\"
19233 if test -n "$value"; then
19234 if test "$value" = yes; then
19235 eval value=\"\$LIB$uppername\"
19236 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19237 eval value=\"\$LTLIB$uppername\"
19238 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19239 else
19240 :
19241 fi
19242 else
19243 found_dir=
19244 found_la=
19245 found_so=
19246 found_a=
19247 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19248 if test -n "$acl_shlibext"; then
19249 shrext=".$acl_shlibext" # typically: shrext=.so
19250 else
19251 shrext=
19252 fi
19253 if test $use_additional = yes; then
19254 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
19255 if test "X$found_dir" = "X"; then
19256 eval dir=\$$additional_libdir_variable
19257 if test -n "$dir"; then
19258 if test -n "$acl_shlibext"; then
19259 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19260 found_dir="$dir"
19261 found_so="$dir/$libname$shrext"
19262 else
19263 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19264 ver=`(cd "$dir" && \
19265 for f in "$libname$shrext".*; do echo "$f"; done \
19266 | sed -e "s,^$libname$shrext\\\\.,," \
19267 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19268 | sed 1q ) 2>/dev/null`
19269 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19270 found_dir="$dir"
19271 found_so="$dir/$libname$shrext.$ver"
19272 fi
19273 else
19274 eval library_names=\"$acl_library_names_spec\"
19275 for f in $library_names; do
19276 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19277 found_dir="$dir"
19278 found_so="$dir/$f"
19279 break
19280 fi
19281 done
19282 fi
19283 fi
19284 fi
19285 if test "X$found_dir" = "X"; then
19286 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19287 found_dir="$dir"
19288 found_a="$dir/$libname.$acl_libext"
19289 fi
19290 fi
19291 if test "X$found_dir" != "X"; then
19292 if test -f "$dir/$libname.la"; then
19293 found_la="$dir/$libname.la"
19294 fi
19295 fi
19296 fi
19297 fi
19298 done
19299 fi
19300 if test "X$found_dir" = "X"; then
19301 for x in $LDFLAGS $LTLIBICONV; do
19302
19303 acl_save_prefix="$prefix"
19304 prefix="$acl_final_prefix"
19305 acl_save_exec_prefix="$exec_prefix"
19306 exec_prefix="$acl_final_exec_prefix"
19307 eval x=\"$x\"
19308 exec_prefix="$acl_save_exec_prefix"
19309 prefix="$acl_save_prefix"
19310
19311 case "$x" in
19312 -L*)
19313 dir=`echo "X$x" | sed -e 's/^X-L//'`
19314 if test -n "$acl_shlibext"; then
19315 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19316 found_dir="$dir"
19317 found_so="$dir/$libname$shrext"
19318 else
19319 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19320 ver=`(cd "$dir" && \
19321 for f in "$libname$shrext".*; do echo "$f"; done \
19322 | sed -e "s,^$libname$shrext\\\\.,," \
19323 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19324 | sed 1q ) 2>/dev/null`
19325 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19326 found_dir="$dir"
19327 found_so="$dir/$libname$shrext.$ver"
19328 fi
19329 else
19330 eval library_names=\"$acl_library_names_spec\"
19331 for f in $library_names; do
19332 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19333 found_dir="$dir"
19334 found_so="$dir/$f"
19335 break
19336 fi
19337 done
19338 fi
19339 fi
19340 fi
19341 if test "X$found_dir" = "X"; then
19342 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19343 found_dir="$dir"
19344 found_a="$dir/$libname.$acl_libext"
19345 fi
19346 fi
19347 if test "X$found_dir" != "X"; then
19348 if test -f "$dir/$libname.la"; then
19349 found_la="$dir/$libname.la"
19350 fi
19351 fi
19352 ;;
19353 esac
19354 if test "X$found_dir" != "X"; then
19355 break
19356 fi
19357 done
19358 fi
19359 if test "X$found_dir" != "X"; then
19360 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19361 if test "X$found_so" != "X"; then
19362 if test "$enable_rpath" = no \
19363 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19364 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
19365 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
19366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19367 else
19368 haveit=
19369 for x in $ltrpathdirs; do
19370 if test "X$x" = "X$found_dir"; then
19371 haveit=yes
19372 break
19373 fi
19374 done
19375 if test -z "$haveit"; then
19376 ltrpathdirs="$ltrpathdirs $found_dir"
19377 fi
19378 if test "$acl_hardcode_direct" = yes; then
19379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19380 else
19381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19383 haveit=
19384 for x in $rpathdirs; do
19385 if test "X$x" = "X$found_dir"; then
19386 haveit=yes
19387 break
19388 fi
19389 done
19390 if test -z "$haveit"; then
19391 rpathdirs="$rpathdirs $found_dir"
19392 fi
19393 else
19394 haveit=
19395 for x in $LDFLAGS $LIBICONV; do
19396
19397 acl_save_prefix="$prefix"
19398 prefix="$acl_final_prefix"
19399 acl_save_exec_prefix="$exec_prefix"
19400 exec_prefix="$acl_final_exec_prefix"
19401 eval x=\"$x\"
19402 exec_prefix="$acl_save_exec_prefix"
19403 prefix="$acl_save_prefix"
19404
19405 if test "X$x" = "X-L$found_dir"; then
19406 haveit=yes
19407 break
19408 fi
19409 done
19410 if test -z "$haveit"; then
19411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19412 fi
19413 if test "$acl_hardcode_minus_L" != no; then
19414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19415 else
19416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19417 fi
19418 fi
19419 fi
19420 fi
19421 else
19422 if test "X$found_a" != "X"; then
19423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19424 else
19425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19426 fi
19427 fi
19428 additional_includedir=
19429 case "$found_dir" in
19430 */$acl_libdirstem | */$acl_libdirstem/)
19431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19432 if test "$name" = 'iconv'; then
19433 LIBICONV_PREFIX="$basedir"
19434 fi
19435 additional_includedir="$basedir/include"
19436 ;;
19437 */$acl_libdirstem2 | */$acl_libdirstem2/)
19438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19439 if test "$name" = 'iconv'; then
19440 LIBICONV_PREFIX="$basedir"
19441 fi
19442 additional_includedir="$basedir/include"
19443 ;;
19444 */$acl_libdirstem3 | */$acl_libdirstem3/)
19445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
19446 if test "$name" = 'iconv'; then
19447 LIBICONV_PREFIX="$basedir"
19448 fi
19449 additional_includedir="$basedir/include"
19450 ;;
19451 esac
19452 if test "X$additional_includedir" != "X"; then
19453 if test "X$additional_includedir" != "X/usr/include"; then
19454 haveit=
19455 if test "X$additional_includedir" = "X/usr/local/include"; then
19456 if test -n "$GCC"; then
19457 case $host_os in
19458 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19459 esac
19460 fi
19461 fi
19462 if test -z "$haveit"; then
19463 for x in $CPPFLAGS $INCICONV; do
19464
19465 acl_save_prefix="$prefix"
19466 prefix="$acl_final_prefix"
19467 acl_save_exec_prefix="$exec_prefix"
19468 exec_prefix="$acl_final_exec_prefix"
19469 eval x=\"$x\"
19470 exec_prefix="$acl_save_exec_prefix"
19471 prefix="$acl_save_prefix"
19472
19473 if test "X$x" = "X-I$additional_includedir"; then
19474 haveit=yes
19475 break
19476 fi
19477 done
19478 if test -z "$haveit"; then
19479 if test -d "$additional_includedir"; then
19480 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19481 fi
19482 fi
19483 fi
19484 fi
19485 fi
19486 if test -n "$found_la"; then
19487 save_libdir="$libdir"
19488 case "$found_la" in
19489 */* | *\\*) . "$found_la" ;;
19490 *) . "./$found_la" ;;
19491 esac
19492 libdir="$save_libdir"
19493 for dep in $dependency_libs; do
19494 case "$dep" in
19495 -L*)
19496 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19497 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
19498 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
19499 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
19500 haveit=
19501 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
19502 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
19503 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
19504 if test -n "$GCC"; then
19505 case $host_os in
19506 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19507 esac
19508 fi
19509 fi
19510 if test -z "$haveit"; then
19511 haveit=
19512 for x in $LDFLAGS $LIBICONV; do
19513
19514 acl_save_prefix="$prefix"
19515 prefix="$acl_final_prefix"
19516 acl_save_exec_prefix="$exec_prefix"
19517 exec_prefix="$acl_final_exec_prefix"
19518 eval x=\"$x\"
19519 exec_prefix="$acl_save_exec_prefix"
19520 prefix="$acl_save_prefix"
19521
19522 if test "X$x" = "X-L$dependency_libdir"; then
19523 haveit=yes
19524 break
19525 fi
19526 done
19527 if test -z "$haveit"; then
19528 if test -d "$dependency_libdir"; then
19529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
19530 fi
19531 fi
19532 haveit=
19533 for x in $LDFLAGS $LTLIBICONV; do
19534
19535 acl_save_prefix="$prefix"
19536 prefix="$acl_final_prefix"
19537 acl_save_exec_prefix="$exec_prefix"
19538 exec_prefix="$acl_final_exec_prefix"
19539 eval x=\"$x\"
19540 exec_prefix="$acl_save_exec_prefix"
19541 prefix="$acl_save_prefix"
19542
19543 if test "X$x" = "X-L$dependency_libdir"; then
19544 haveit=yes
19545 break
19546 fi
19547 done
19548 if test -z "$haveit"; then
19549 if test -d "$dependency_libdir"; then
19550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
19551 fi
19552 fi
19553 fi
19554 fi
19555 ;;
19556 -R*)
19557 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19558 if test "$enable_rpath" != no; then
19559 haveit=
19560 for x in $rpathdirs; do
19561 if test "X$x" = "X$dir"; then
19562 haveit=yes
19563 break
19564 fi
19565 done
19566 if test -z "$haveit"; then
19567 rpathdirs="$rpathdirs $dir"
19568 fi
19569 haveit=
19570 for x in $ltrpathdirs; do
19571 if test "X$x" = "X$dir"; then
19572 haveit=yes
19573 break
19574 fi
19575 done
19576 if test -z "$haveit"; then
19577 ltrpathdirs="$ltrpathdirs $dir"
19578 fi
19579 fi
19580 ;;
19581 -l*)
19582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19583 ;;
19584 *.la)
19585 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19586 ;;
19587 *)
19588 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19590 ;;
19591 esac
19592 done
19593 fi
19594 else
19595 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19597 fi
19598 fi
19599 fi
19600 done
19601 done
19602 if test "X$rpathdirs" != "X"; then
19603 if test -n "$acl_hardcode_libdir_separator"; then
19604 alldirs=
19605 for found_dir in $rpathdirs; do
19606 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19607 done
19608 acl_save_libdir="$libdir"
19609 libdir="$alldirs"
19610 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19611 libdir="$acl_save_libdir"
19612 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19613 else
19614 for found_dir in $rpathdirs; do
19615 acl_save_libdir="$libdir"
19616 libdir="$found_dir"
19617 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19618 libdir="$acl_save_libdir"
19619 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19620 done
19621 fi
19622 fi
19623 if test "X$ltrpathdirs" != "X"; then
19624 for found_dir in $ltrpathdirs; do
19625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19626 done
19627 fi
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19658 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
19659 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
19660 then :
19661 printf %s "(cached) " >&6
19662 else $as_nop
19663 gt_save_LIBS="$LIBS"
19664 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19667 #include <CoreFoundation/CFPreferences.h>
19668 int
19669 main (void)
19670 {
19671 CFPreferencesCopyAppValue(NULL, NULL)
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 if ac_fn_c_try_link "$LINENO"
19677 then :
19678 gt_cv_func_CFPreferencesCopyAppValue=yes
19679 else $as_nop
19680 gt_cv_func_CFPreferencesCopyAppValue=no
19681 fi
19682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19683 conftest$ac_exeext conftest.$ac_ext
19684 LIBS="$gt_save_LIBS"
19685 fi
19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19687 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19688 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19689
19690 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19691
19692 fi
19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
19694 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
19695 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
19696 then :
19697 printf %s "(cached) " >&6
19698 else $as_nop
19699 gt_save_LIBS="$LIBS"
19700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h. */
19703 #include <CoreFoundation/CFLocale.h>
19704 int
19705 main (void)
19706 {
19707 CFLocaleCopyPreferredLanguages();
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 if ac_fn_c_try_link "$LINENO"
19713 then :
19714 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
19715 else $as_nop
19716 gt_cv_func_CFLocaleCopyPreferredLanguages=no
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS="$gt_save_LIBS"
19721 fi
19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
19723 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
19724 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
19725
19726 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
19727
19728 fi
19729 INTL_MACOSX_LIBS=
19730 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
19731 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
19732 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19733 fi
19734
19735
19736
19737
19738
19739
19740 LIBINTL=
19741 LTLIBINTL=
19742 POSUB=
19743
19744 case " $gt_needs " in
19745 *" need-formatstring-macros "*) gt_api_version=3 ;;
19746 *" need-ngettext "*) gt_api_version=2 ;;
19747 *) gt_api_version=1 ;;
19748 esac
19749 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19750 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19751
19752 if test "$USE_NLS" = "yes"; then
19753 gt_use_preinstalled_gnugettext=no
19754
19755
19756 if test $gt_api_version -ge 3; then
19757 gt_revision_test_code='
19758 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19759 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19760 #endif
19761 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19762 '
19763 else
19764 gt_revision_test_code=
19765 fi
19766 if test $gt_api_version -ge 2; then
19767 gt_expression_test_code=' + * ngettext ("", "", 0)'
19768 else
19769 gt_expression_test_code=
19770 fi
19771
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19773 printf %s "checking for GNU gettext in libc... " >&6; }
19774 if eval test \${$gt_func_gnugettext_libc+y}
19775 then :
19776 printf %s "(cached) " >&6
19777 else $as_nop
19778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19779 /* end confdefs.h. */
19780
19781 #include <libintl.h>
19782 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19783 extern int _nl_msg_cat_cntr;
19784 extern int *_nl_domain_bindings;
19785 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19786 #else
19787 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19788 #endif
19789 $gt_revision_test_code
19790
19791 int
19792 main (void)
19793 {
19794
19795 bindtextdomain ("", "");
19796 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19797
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 if ac_fn_c_try_link "$LINENO"
19803 then :
19804 eval "$gt_func_gnugettext_libc=yes"
19805 else $as_nop
19806 eval "$gt_func_gnugettext_libc=no"
19807 fi
19808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19809 conftest$ac_exeext conftest.$ac_ext
19810 fi
19811 eval ac_res=\$$gt_func_gnugettext_libc
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19813 printf "%s\n" "$ac_res" >&6; }
19814
19815 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19816
19817
19818
19819
19820
19821 am_save_CPPFLAGS="$CPPFLAGS"
19822
19823 for element in $INCICONV; do
19824 haveit=
19825 for x in $CPPFLAGS; do
19826
19827 acl_save_prefix="$prefix"
19828 prefix="$acl_final_prefix"
19829 acl_save_exec_prefix="$exec_prefix"
19830 exec_prefix="$acl_final_exec_prefix"
19831 eval x=\"$x\"
19832 exec_prefix="$acl_save_exec_prefix"
19833 prefix="$acl_save_prefix"
19834
19835 if test "X$x" = "X$element"; then
19836 haveit=yes
19837 break
19838 fi
19839 done
19840 if test -z "$haveit"; then
19841 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19842 fi
19843 done
19844
19845
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19847 printf %s "checking for iconv... " >&6; }
19848 if test ${am_cv_func_iconv+y}
19849 then :
19850 printf %s "(cached) " >&6
19851 else $as_nop
19852
19853 am_cv_func_iconv="no, consider installing GNU libiconv"
19854 am_cv_lib_iconv=no
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19857
19858 #include <stdlib.h>
19859 #include <iconv.h>
19860
19861 int
19862 main (void)
19863 {
19864 iconv_t cd = iconv_open("","");
19865 iconv(cd,NULL,NULL,NULL,NULL);
19866 iconv_close(cd);
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_link "$LINENO"
19872 then :
19873 am_cv_func_iconv=yes
19874 fi
19875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19876 conftest$ac_exeext conftest.$ac_ext
19877 if test "$am_cv_func_iconv" != yes; then
19878 am_save_LIBS="$LIBS"
19879 LIBS="$LIBS $LIBICONV"
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882
19883 #include <stdlib.h>
19884 #include <iconv.h>
19885
19886 int
19887 main (void)
19888 {
19889 iconv_t cd = iconv_open("","");
19890 iconv(cd,NULL,NULL,NULL,NULL);
19891 iconv_close(cd);
19892 ;
19893 return 0;
19894 }
19895 _ACEOF
19896 if ac_fn_c_try_link "$LINENO"
19897 then :
19898 am_cv_lib_iconv=yes
19899 am_cv_func_iconv=yes
19900 fi
19901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19902 conftest$ac_exeext conftest.$ac_ext
19903 LIBS="$am_save_LIBS"
19904 fi
19905
19906 fi
19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19908 printf "%s\n" "$am_cv_func_iconv" >&6; }
19909 if test "$am_cv_func_iconv" = yes; then
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19911 printf %s "checking for working iconv... " >&6; }
19912 if test ${am_cv_func_iconv_works+y}
19913 then :
19914 printf %s "(cached) " >&6
19915 else $as_nop
19916
19917 am_save_LIBS="$LIBS"
19918 if test $am_cv_lib_iconv = yes; then
19919 LIBS="$LIBS $LIBICONV"
19920 fi
19921 am_cv_func_iconv_works=no
19922 for ac_iconv_const in '' 'const'; do
19923 if test "$cross_compiling" = yes
19924 then :
19925 case "$host_os" in
19926 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19927 *) am_cv_func_iconv_works="guessing yes" ;;
19928 esac
19929 else $as_nop
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932
19933 #include <iconv.h>
19934 #include <string.h>
19935
19936 #ifndef ICONV_CONST
19937 # define ICONV_CONST $ac_iconv_const
19938 #endif
19939
19940 int
19941 main (void)
19942 {
19943 int result = 0;
19944 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19945 returns. */
19946 {
19947 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19948 if (cd_utf8_to_88591 != (iconv_t)(-1))
19949 {
19950 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
19951 char buf[10];
19952 ICONV_CONST char *inptr = input;
19953 size_t inbytesleft = strlen (input);
19954 char *outptr = buf;
19955 size_t outbytesleft = sizeof (buf);
19956 size_t res = iconv (cd_utf8_to_88591,
19957 &inptr, &inbytesleft,
19958 &outptr, &outbytesleft);
19959 if (res == 0)
19960 result |= 1;
19961 iconv_close (cd_utf8_to_88591);
19962 }
19963 }
19964 /* Test against Solaris 10 bug: Failures are not distinguishable from
19965 successful returns. */
19966 {
19967 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19968 if (cd_ascii_to_88591 != (iconv_t)(-1))
19969 {
19970 static ICONV_CONST char input[] = "\263";
19971 char buf[10];
19972 ICONV_CONST char *inptr = input;
19973 size_t inbytesleft = strlen (input);
19974 char *outptr = buf;
19975 size_t outbytesleft = sizeof (buf);
19976 size_t res = iconv (cd_ascii_to_88591,
19977 &inptr, &inbytesleft,
19978 &outptr, &outbytesleft);
19979 if (res == 0)
19980 result |= 2;
19981 iconv_close (cd_ascii_to_88591);
19982 }
19983 }
19984 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
19985 {
19986 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19987 if (cd_88591_to_utf8 != (iconv_t)(-1))
19988 {
19989 static ICONV_CONST char input[] = "\304";
19990 static char buf[2] = { (char)0xDE, (char)0xAD };
19991 ICONV_CONST char *inptr = input;
19992 size_t inbytesleft = 1;
19993 char *outptr = buf;
19994 size_t outbytesleft = 1;
19995 size_t res = iconv (cd_88591_to_utf8,
19996 &inptr, &inbytesleft,
19997 &outptr, &outbytesleft);
19998 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19999 result |= 4;
20000 iconv_close (cd_88591_to_utf8);
20001 }
20002 }
20003 #if 0 /* This bug could be worked around by the caller. */
20004 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20005 {
20006 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20007 if (cd_88591_to_utf8 != (iconv_t)(-1))
20008 {
20009 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20010 char buf[50];
20011 ICONV_CONST char *inptr = input;
20012 size_t inbytesleft = strlen (input);
20013 char *outptr = buf;
20014 size_t outbytesleft = sizeof (buf);
20015 size_t res = iconv (cd_88591_to_utf8,
20016 &inptr, &inbytesleft,
20017 &outptr, &outbytesleft);
20018 if ((int)res > 0)
20019 result |= 8;
20020 iconv_close (cd_88591_to_utf8);
20021 }
20022 }
20023 #endif
20024 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20025 provided. */
20026 {
20027 /* Try standardized names. */
20028 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
20029 /* Try IRIX, OSF/1 names. */
20030 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
20031 /* Try AIX names. */
20032 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
20033 /* Try HP-UX names. */
20034 iconv_t cd4 = iconv_open ("utf8", "eucJP");
20035 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
20036 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
20037 result |= 16;
20038 if (cd1 != (iconv_t)(-1))
20039 iconv_close (cd1);
20040 if (cd2 != (iconv_t)(-1))
20041 iconv_close (cd2);
20042 if (cd3 != (iconv_t)(-1))
20043 iconv_close (cd3);
20044 if (cd4 != (iconv_t)(-1))
20045 iconv_close (cd4);
20046 }
20047 return result;
20048
20049 ;
20050 return 0;
20051 }
20052 _ACEOF
20053 if ac_fn_c_try_run "$LINENO"
20054 then :
20055 am_cv_func_iconv_works=yes
20056 fi
20057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20058 conftest.$ac_objext conftest.beam conftest.$ac_ext
20059 fi
20060
20061 test "$am_cv_func_iconv_works" = no || break
20062 done
20063 LIBS="$am_save_LIBS"
20064
20065 fi
20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20067 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
20068 case "$am_cv_func_iconv_works" in
20069 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20070 *) am_func_iconv=yes ;;
20071 esac
20072 else
20073 am_func_iconv=no am_cv_lib_iconv=no
20074 fi
20075 if test "$am_func_iconv" = yes; then
20076
20077 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
20078
20079 fi
20080 if test "$am_cv_lib_iconv" = yes; then
20081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20082 printf %s "checking how to link with libiconv... " >&6; }
20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20084 printf "%s\n" "$LIBICONV" >&6; }
20085 else
20086 CPPFLAGS="$am_save_CPPFLAGS"
20087 LIBICONV=
20088 LTLIBICONV=
20089 fi
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100 use_additional=yes
20101
20102 acl_save_prefix="$prefix"
20103 prefix="$acl_final_prefix"
20104 acl_save_exec_prefix="$exec_prefix"
20105 exec_prefix="$acl_final_exec_prefix"
20106
20107 eval additional_includedir=\"$includedir\"
20108 eval additional_libdir=\"$libdir\"
20109 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
20110 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
20111
20112 exec_prefix="$acl_save_exec_prefix"
20113 prefix="$acl_save_prefix"
20114
20115
20116 # Check whether --with-libintl-prefix was given.
20117 if test ${with_libintl_prefix+y}
20118 then :
20119 withval=$with_libintl_prefix;
20120 if test "X$withval" = "Xno"; then
20121 use_additional=no
20122 else
20123 if test "X$withval" = "X"; then
20124
20125 acl_save_prefix="$prefix"
20126 prefix="$acl_final_prefix"
20127 acl_save_exec_prefix="$exec_prefix"
20128 exec_prefix="$acl_final_exec_prefix"
20129
20130 eval additional_includedir=\"$includedir\"
20131 eval additional_libdir=\"$libdir\"
20132 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
20133 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
20134
20135 exec_prefix="$acl_save_exec_prefix"
20136 prefix="$acl_save_prefix"
20137
20138 else
20139 additional_includedir="$withval/include"
20140 additional_libdir="$withval/$acl_libdirstem"
20141 additional_libdir2="$withval/$acl_libdirstem2"
20142 additional_libdir3="$withval/$acl_libdirstem3"
20143 fi
20144 fi
20145
20146 fi
20147
20148 if test "X$additional_libdir2" = "X$additional_libdir"; then
20149 additional_libdir2=
20150 fi
20151 if test "X$additional_libdir3" = "X$additional_libdir"; then
20152 additional_libdir3=
20153 fi
20154 LIBINTL=
20155 LTLIBINTL=
20156 INCINTL=
20157 LIBINTL_PREFIX=
20158 HAVE_LIBINTL=
20159 rpathdirs=
20160 ltrpathdirs=
20161 names_already_handled=
20162 names_next_round='intl '
20163 while test -n "$names_next_round"; do
20164 names_this_round="$names_next_round"
20165 names_next_round=
20166 for name in $names_this_round; do
20167 already_handled=
20168 for n in $names_already_handled; do
20169 if test "$n" = "$name"; then
20170 already_handled=yes
20171 break
20172 fi
20173 done
20174 if test -z "$already_handled"; then
20175 names_already_handled="$names_already_handled $name"
20176 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20177 eval value=\"\$HAVE_LIB$uppername\"
20178 if test -n "$value"; then
20179 if test "$value" = yes; then
20180 eval value=\"\$LIB$uppername\"
20181 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20182 eval value=\"\$LTLIB$uppername\"
20183 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20184 else
20185 :
20186 fi
20187 else
20188 found_dir=
20189 found_la=
20190 found_so=
20191 found_a=
20192 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20193 if test -n "$acl_shlibext"; then
20194 shrext=".$acl_shlibext" # typically: shrext=.so
20195 else
20196 shrext=
20197 fi
20198 if test $use_additional = yes; then
20199 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
20200 if test "X$found_dir" = "X"; then
20201 eval dir=\$$additional_libdir_variable
20202 if test -n "$dir"; then
20203 if test -n "$acl_shlibext"; then
20204 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
20205 found_dir="$dir"
20206 found_so="$dir/$libname$shrext"
20207 else
20208 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20209 ver=`(cd "$dir" && \
20210 for f in "$libname$shrext".*; do echo "$f"; done \
20211 | sed -e "s,^$libname$shrext\\\\.,," \
20212 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20213 | sed 1q ) 2>/dev/null`
20214 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20215 found_dir="$dir"
20216 found_so="$dir/$libname$shrext.$ver"
20217 fi
20218 else
20219 eval library_names=\"$acl_library_names_spec\"
20220 for f in $library_names; do
20221 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20222 found_dir="$dir"
20223 found_so="$dir/$f"
20224 break
20225 fi
20226 done
20227 fi
20228 fi
20229 fi
20230 if test "X$found_dir" = "X"; then
20231 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20232 found_dir="$dir"
20233 found_a="$dir/$libname.$acl_libext"
20234 fi
20235 fi
20236 if test "X$found_dir" != "X"; then
20237 if test -f "$dir/$libname.la"; then
20238 found_la="$dir/$libname.la"
20239 fi
20240 fi
20241 fi
20242 fi
20243 done
20244 fi
20245 if test "X$found_dir" = "X"; then
20246 for x in $LDFLAGS $LTLIBINTL; do
20247
20248 acl_save_prefix="$prefix"
20249 prefix="$acl_final_prefix"
20250 acl_save_exec_prefix="$exec_prefix"
20251 exec_prefix="$acl_final_exec_prefix"
20252 eval x=\"$x\"
20253 exec_prefix="$acl_save_exec_prefix"
20254 prefix="$acl_save_prefix"
20255
20256 case "$x" in
20257 -L*)
20258 dir=`echo "X$x" | sed -e 's/^X-L//'`
20259 if test -n "$acl_shlibext"; then
20260 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
20261 found_dir="$dir"
20262 found_so="$dir/$libname$shrext"
20263 else
20264 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20265 ver=`(cd "$dir" && \
20266 for f in "$libname$shrext".*; do echo "$f"; done \
20267 | sed -e "s,^$libname$shrext\\\\.,," \
20268 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20269 | sed 1q ) 2>/dev/null`
20270 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
20271 found_dir="$dir"
20272 found_so="$dir/$libname$shrext.$ver"
20273 fi
20274 else
20275 eval library_names=\"$acl_library_names_spec\"
20276 for f in $library_names; do
20277 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
20278 found_dir="$dir"
20279 found_so="$dir/$f"
20280 break
20281 fi
20282 done
20283 fi
20284 fi
20285 fi
20286 if test "X$found_dir" = "X"; then
20287 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
20288 found_dir="$dir"
20289 found_a="$dir/$libname.$acl_libext"
20290 fi
20291 fi
20292 if test "X$found_dir" != "X"; then
20293 if test -f "$dir/$libname.la"; then
20294 found_la="$dir/$libname.la"
20295 fi
20296 fi
20297 ;;
20298 esac
20299 if test "X$found_dir" != "X"; then
20300 break
20301 fi
20302 done
20303 fi
20304 if test "X$found_dir" != "X"; then
20305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20306 if test "X$found_so" != "X"; then
20307 if test "$enable_rpath" = no \
20308 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20309 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
20310 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
20311 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20312 else
20313 haveit=
20314 for x in $ltrpathdirs; do
20315 if test "X$x" = "X$found_dir"; then
20316 haveit=yes
20317 break
20318 fi
20319 done
20320 if test -z "$haveit"; then
20321 ltrpathdirs="$ltrpathdirs $found_dir"
20322 fi
20323 if test "$acl_hardcode_direct" = yes; then
20324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20325 else
20326 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20327 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20328 haveit=
20329 for x in $rpathdirs; do
20330 if test "X$x" = "X$found_dir"; then
20331 haveit=yes
20332 break
20333 fi
20334 done
20335 if test -z "$haveit"; then
20336 rpathdirs="$rpathdirs $found_dir"
20337 fi
20338 else
20339 haveit=
20340 for x in $LDFLAGS $LIBINTL; do
20341
20342 acl_save_prefix="$prefix"
20343 prefix="$acl_final_prefix"
20344 acl_save_exec_prefix="$exec_prefix"
20345 exec_prefix="$acl_final_exec_prefix"
20346 eval x=\"$x\"
20347 exec_prefix="$acl_save_exec_prefix"
20348 prefix="$acl_save_prefix"
20349
20350 if test "X$x" = "X-L$found_dir"; then
20351 haveit=yes
20352 break
20353 fi
20354 done
20355 if test -z "$haveit"; then
20356 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20357 fi
20358 if test "$acl_hardcode_minus_L" != no; then
20359 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20360 else
20361 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20362 fi
20363 fi
20364 fi
20365 fi
20366 else
20367 if test "X$found_a" != "X"; then
20368 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20369 else
20370 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20371 fi
20372 fi
20373 additional_includedir=
20374 case "$found_dir" in
20375 */$acl_libdirstem | */$acl_libdirstem/)
20376 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20377 if test "$name" = 'intl'; then
20378 LIBINTL_PREFIX="$basedir"
20379 fi
20380 additional_includedir="$basedir/include"
20381 ;;
20382 */$acl_libdirstem2 | */$acl_libdirstem2/)
20383 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20384 if test "$name" = 'intl'; then
20385 LIBINTL_PREFIX="$basedir"
20386 fi
20387 additional_includedir="$basedir/include"
20388 ;;
20389 */$acl_libdirstem3 | */$acl_libdirstem3/)
20390 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
20391 if test "$name" = 'intl'; then
20392 LIBINTL_PREFIX="$basedir"
20393 fi
20394 additional_includedir="$basedir/include"
20395 ;;
20396 esac
20397 if test "X$additional_includedir" != "X"; then
20398 if test "X$additional_includedir" != "X/usr/include"; then
20399 haveit=
20400 if test "X$additional_includedir" = "X/usr/local/include"; then
20401 if test -n "$GCC"; then
20402 case $host_os in
20403 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20404 esac
20405 fi
20406 fi
20407 if test -z "$haveit"; then
20408 for x in $CPPFLAGS $INCINTL; do
20409
20410 acl_save_prefix="$prefix"
20411 prefix="$acl_final_prefix"
20412 acl_save_exec_prefix="$exec_prefix"
20413 exec_prefix="$acl_final_exec_prefix"
20414 eval x=\"$x\"
20415 exec_prefix="$acl_save_exec_prefix"
20416 prefix="$acl_save_prefix"
20417
20418 if test "X$x" = "X-I$additional_includedir"; then
20419 haveit=yes
20420 break
20421 fi
20422 done
20423 if test -z "$haveit"; then
20424 if test -d "$additional_includedir"; then
20425 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20426 fi
20427 fi
20428 fi
20429 fi
20430 fi
20431 if test -n "$found_la"; then
20432 save_libdir="$libdir"
20433 case "$found_la" in
20434 */* | *\\*) . "$found_la" ;;
20435 *) . "./$found_la" ;;
20436 esac
20437 libdir="$save_libdir"
20438 for dep in $dependency_libs; do
20439 case "$dep" in
20440 -L*)
20441 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20442 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
20443 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
20444 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
20445 haveit=
20446 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
20447 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
20448 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
20449 if test -n "$GCC"; then
20450 case $host_os in
20451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20452 esac
20453 fi
20454 fi
20455 if test -z "$haveit"; then
20456 haveit=
20457 for x in $LDFLAGS $LIBINTL; do
20458
20459 acl_save_prefix="$prefix"
20460 prefix="$acl_final_prefix"
20461 acl_save_exec_prefix="$exec_prefix"
20462 exec_prefix="$acl_final_exec_prefix"
20463 eval x=\"$x\"
20464 exec_prefix="$acl_save_exec_prefix"
20465 prefix="$acl_save_prefix"
20466
20467 if test "X$x" = "X-L$dependency_libdir"; then
20468 haveit=yes
20469 break
20470 fi
20471 done
20472 if test -z "$haveit"; then
20473 if test -d "$dependency_libdir"; then
20474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
20475 fi
20476 fi
20477 haveit=
20478 for x in $LDFLAGS $LTLIBINTL; do
20479
20480 acl_save_prefix="$prefix"
20481 prefix="$acl_final_prefix"
20482 acl_save_exec_prefix="$exec_prefix"
20483 exec_prefix="$acl_final_exec_prefix"
20484 eval x=\"$x\"
20485 exec_prefix="$acl_save_exec_prefix"
20486 prefix="$acl_save_prefix"
20487
20488 if test "X$x" = "X-L$dependency_libdir"; then
20489 haveit=yes
20490 break
20491 fi
20492 done
20493 if test -z "$haveit"; then
20494 if test -d "$dependency_libdir"; then
20495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
20496 fi
20497 fi
20498 fi
20499 fi
20500 ;;
20501 -R*)
20502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20503 if test "$enable_rpath" != no; then
20504 haveit=
20505 for x in $rpathdirs; do
20506 if test "X$x" = "X$dir"; then
20507 haveit=yes
20508 break
20509 fi
20510 done
20511 if test -z "$haveit"; then
20512 rpathdirs="$rpathdirs $dir"
20513 fi
20514 haveit=
20515 for x in $ltrpathdirs; do
20516 if test "X$x" = "X$dir"; then
20517 haveit=yes
20518 break
20519 fi
20520 done
20521 if test -z "$haveit"; then
20522 ltrpathdirs="$ltrpathdirs $dir"
20523 fi
20524 fi
20525 ;;
20526 -l*)
20527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20528 ;;
20529 *.la)
20530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20531 ;;
20532 *)
20533 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20535 ;;
20536 esac
20537 done
20538 fi
20539 else
20540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20542 fi
20543 fi
20544 fi
20545 done
20546 done
20547 if test "X$rpathdirs" != "X"; then
20548 if test -n "$acl_hardcode_libdir_separator"; then
20549 alldirs=
20550 for found_dir in $rpathdirs; do
20551 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20552 done
20553 acl_save_libdir="$libdir"
20554 libdir="$alldirs"
20555 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20556 libdir="$acl_save_libdir"
20557 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20558 else
20559 for found_dir in $rpathdirs; do
20560 acl_save_libdir="$libdir"
20561 libdir="$found_dir"
20562 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20563 libdir="$acl_save_libdir"
20564 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20565 done
20566 fi
20567 fi
20568 if test "X$ltrpathdirs" != "X"; then
20569 for found_dir in $ltrpathdirs; do
20570 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20571 done
20572 fi
20573
20574
20575
20576
20577
20578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20579 printf %s "checking for GNU gettext in libintl... " >&6; }
20580 if eval test \${$gt_func_gnugettext_libintl+y}
20581 then :
20582 printf %s "(cached) " >&6
20583 else $as_nop
20584 gt_save_CPPFLAGS="$CPPFLAGS"
20585 CPPFLAGS="$CPPFLAGS $INCINTL"
20586 gt_save_LIBS="$LIBS"
20587 LIBS="$LIBS $LIBINTL"
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20590
20591 #include <libintl.h>
20592 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20593 extern int _nl_msg_cat_cntr;
20594 extern
20595 #ifdef __cplusplus
20596 "C"
20597 #endif
20598 const char *_nl_expand_alias (const char *);
20599 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20600 #else
20601 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20602 #endif
20603 $gt_revision_test_code
20604
20605 int
20606 main (void)
20607 {
20608
20609 bindtextdomain ("", "");
20610 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20611
20612 ;
20613 return 0;
20614 }
20615 _ACEOF
20616 if ac_fn_c_try_link "$LINENO"
20617 then :
20618 eval "$gt_func_gnugettext_libintl=yes"
20619 else $as_nop
20620 eval "$gt_func_gnugettext_libintl=no"
20621 fi
20622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20623 conftest$ac_exeext conftest.$ac_ext
20624 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20625 LIBS="$LIBS $LIBICONV"
20626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20627 /* end confdefs.h. */
20628
20629 #include <libintl.h>
20630 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20631 extern int _nl_msg_cat_cntr;
20632 extern
20633 #ifdef __cplusplus
20634 "C"
20635 #endif
20636 const char *_nl_expand_alias (const char *);
20637 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20638 #else
20639 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20640 #endif
20641 $gt_revision_test_code
20642
20643 int
20644 main (void)
20645 {
20646
20647 bindtextdomain ("", "");
20648 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20649
20650 ;
20651 return 0;
20652 }
20653 _ACEOF
20654 if ac_fn_c_try_link "$LINENO"
20655 then :
20656 LIBINTL="$LIBINTL $LIBICONV"
20657 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20658 eval "$gt_func_gnugettext_libintl=yes"
20659
20660 fi
20661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20662 conftest$ac_exeext conftest.$ac_ext
20663 fi
20664 CPPFLAGS="$gt_save_CPPFLAGS"
20665 LIBS="$gt_save_LIBS"
20666 fi
20667 eval ac_res=\$$gt_func_gnugettext_libintl
20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20669 printf "%s\n" "$ac_res" >&6; }
20670 fi
20671
20672 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20673 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20674 && test "$PACKAGE" != gettext-runtime \
20675 && test "$PACKAGE" != gettext-tools; }; then
20676 gt_use_preinstalled_gnugettext=yes
20677 else
20678 LIBINTL=
20679 LTLIBINTL=
20680 INCINTL=
20681 fi
20682
20683
20684
20685 if test -n "$INTL_MACOSX_LIBS"; then
20686 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20687 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20688 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20689 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20690 fi
20691 fi
20692
20693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20695
20696 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
20697
20698 else
20699 USE_NLS=no
20700 fi
20701 fi
20702
20703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20704 printf %s "checking whether to use NLS... " >&6; }
20705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20706 printf "%s\n" "$USE_NLS" >&6; }
20707 if test "$USE_NLS" = "yes"; then
20708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20709 printf %s "checking where the gettext function comes from... " >&6; }
20710 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20711 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20712 gt_source="external libintl"
20713 else
20714 gt_source="libc"
20715 fi
20716 else
20717 gt_source="included intl directory"
20718 fi
20719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20720 printf "%s\n" "$gt_source" >&6; }
20721 fi
20722
20723 if test "$USE_NLS" = "yes"; then
20724
20725 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20726 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20728 printf %s "checking how to link with libintl... " >&6; }
20729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20730 printf "%s\n" "$LIBINTL" >&6; }
20731
20732 for element in $INCINTL; do
20733 haveit=
20734 for x in $CPPFLAGS; do
20735
20736 acl_save_prefix="$prefix"
20737 prefix="$acl_final_prefix"
20738 acl_save_exec_prefix="$exec_prefix"
20739 exec_prefix="$acl_final_exec_prefix"
20740 eval x=\"$x\"
20741 exec_prefix="$acl_save_exec_prefix"
20742 prefix="$acl_save_prefix"
20743
20744 if test "X$x" = "X$element"; then
20745 haveit=yes
20746 break
20747 fi
20748 done
20749 if test -z "$haveit"; then
20750 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20751 fi
20752 done
20753
20754 fi
20755
20756
20757 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
20758
20759
20760 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
20761
20762 fi
20763
20764 POSUB=po
20765 fi
20766
20767
20768
20769 INTLLIBS="$LIBINTL"
20770
20771
20772
20773
20774
20775
20776 if test "$gt_cv_func_gettext_libintl" = "yes"; then
20777 LIBS="-lintl $LIBS"
20778 fi
20779
20780 if test "$GUI_CLIENT" = "yes" ; then
20781
20782 printf "%s\n" "#define GUI_CLIENT 1" >>confdefs.h
20783
20784 fi
20785
20786 if test "$CURSES_CLIENT" = "yes" ; then
20787
20788 printf "%s\n" "#define CURSES_CLIENT 1" >>confdefs.h
20789
20790 fi
20791
20792 if test "$GUI_SERVER" = "yes" ; then
20793
20794 printf "%s\n" "#define GUI_SERVER 1" >>confdefs.h
20795
20796 fi
20797
20798 # The cast to long int works around a bug in the HP C Compiler
20799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20801 # This bug is HP SR number 8606223364.
20802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20803 printf %s "checking size of long long... " >&6; }
20804 if test ${ac_cv_sizeof_long_long+y}
20805 then :
20806 printf %s "(cached) " >&6
20807 else $as_nop
20808 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
20809 then :
20810
20811 else $as_nop
20812 if test "$ac_cv_type_long_long" = yes; then
20813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20814 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20815 as_fn_error 77 "cannot compute sizeof (long long)
20816 See \`config.log' for more details" "$LINENO" 5; }
20817 else
20818 ac_cv_sizeof_long_long=0
20819 fi
20820 fi
20821
20822 fi
20823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20824 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
20825
20826
20827
20828 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
20829
20830
20831
20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20833 printf %s "checking for working memcmp... " >&6; }
20834 if test ${ac_cv_func_memcmp_working+y}
20835 then :
20836 printf %s "(cached) " >&6
20837 else $as_nop
20838 if test "$cross_compiling" = yes
20839 then :
20840 ac_cv_func_memcmp_working=no
20841 else $as_nop
20842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20843 /* end confdefs.h. */
20844 $ac_includes_default
20845 int
20846 main (void)
20847 {
20848
20849 /* Some versions of memcmp are not 8-bit clean. */
20850 char c0 = '\100', c1 = '\200', c2 = '\201';
20851 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20852 return 1;
20853
20854 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20855 or more and with at least one buffer not starting on a 4-byte boundary.
20856 William Lewis provided this test program. */
20857 {
20858 char foo[21];
20859 char bar[21];
20860 int i;
20861 for (i = 0; i < 4; i++)
20862 {
20863 char *a = foo + i;
20864 char *b = bar + i;
20865 strcpy (a, "--------01111111");
20866 strcpy (b, "--------10000000");
20867 if (memcmp (a, b, 16) >= 0)
20868 return 1;
20869 }
20870 return 0;
20871 }
20872
20873 ;
20874 return 0;
20875 }
20876 _ACEOF
20877 if ac_fn_c_try_run "$LINENO"
20878 then :
20879 ac_cv_func_memcmp_working=yes
20880 else $as_nop
20881 ac_cv_func_memcmp_working=no
20882 fi
20883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20884 conftest.$ac_objext conftest.beam conftest.$ac_ext
20885 fi
20886
20887 fi
20888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20889 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
20890 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20891 *" memcmp.$ac_objext "* ) ;;
20892 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20893 ;;
20894 esac
20895
20896
20897 if test ${ac_cv_func_setvbuf_reversed+y}
20898 then :
20899 printf %s "(cached) " >&6
20900 else $as_nop
20901 ac_cv_func_setvbuf_reversed=no
20902 fi
20903
20904
20905
20906 for ac_func in strftime
20907 do :
20908 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20909 if test "x$ac_cv_func_strftime" = xyes
20910 then :
20911 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
20912
20913 else $as_nop
20914 # strftime is in -lintl on SCO UNIX.
20915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20916 printf %s "checking for strftime in -lintl... " >&6; }
20917 if test ${ac_cv_lib_intl_strftime+y}
20918 then :
20919 printf %s "(cached) " >&6
20920 else $as_nop
20921 ac_check_lib_save_LIBS=$LIBS
20922 LIBS="-lintl $LIBS"
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925
20926 /* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20929 char strftime ();
20930 int
20931 main (void)
20932 {
20933 return strftime ();
20934 ;
20935 return 0;
20936 }
20937 _ACEOF
20938 if ac_fn_c_try_link "$LINENO"
20939 then :
20940 ac_cv_lib_intl_strftime=yes
20941 else $as_nop
20942 ac_cv_lib_intl_strftime=no
20943 fi
20944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20945 conftest$ac_exeext conftest.$ac_ext
20946 LIBS=$ac_check_lib_save_LIBS
20947 fi
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20949 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
20950 if test "x$ac_cv_lib_intl_strftime" = xyes
20951 then :
20952 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
20953
20954 LIBS="-lintl $LIBS"
20955 fi
20956
20957 fi
20958
20959 done
20960 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
20961 if test "x$ac_cv_func_strdup" = xyes
20962 then :
20963 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
20964
20965 fi
20966 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
20967 if test "x$ac_cv_func_strstr" = xyes
20968 then :
20969 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
20970
20971 fi
20972 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
20973 if test "x$ac_cv_func_getopt" = xyes
20974 then :
20975 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
20976
20977 fi
20978 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
20979 if test "x$ac_cv_func_getopt_long" = xyes
20980 then :
20981 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
20982
20983 fi
20984 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
20985 if test "x$ac_cv_func_fork" = xyes
20986 then :
20987 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
20988
20989 fi
20990 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20991 if test "x$ac_cv_func_issetugid" = xyes
20992 then :
20993 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
20994
20995 fi
20996 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
20997 if test "x$ac_cv_func_localtime_r" = xyes
20998 then :
20999 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
21000
21001 fi
21002 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
21003 if test "x$ac_cv_func_gmtime_r" = xyes
21004 then :
21005 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
21006
21007 fi
21008
21009
21010 # Check whether --enable-plugins was given.
21011 if test ${enable_plugins+y}
21012 then :
21013 enableval=$enable_plugins; plugins="$enableval"
21014 else $as_nop
21015 plugins="probe"
21016 fi
21017
21018
21019 if test "$enable_shared" = "no" ; then
21020 plugins="no"
21021 fi
21022
21023 if test "$plugins" != "no" ; then
21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21025 printf %s "checking for library containing dlopen... " >&6; }
21026 if test ${ac_cv_search_dlopen+y}
21027 then :
21028 printf %s "(cached) " >&6
21029 else $as_nop
21030 ac_func_search_save_LIBS=$LIBS
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21033
21034 /* Override any GCC internal prototype to avoid an error.
21035 Use char because int might match the return type of a GCC
21036 builtin and then its argument prototype would still apply. */
21037 char dlopen ();
21038 int
21039 main (void)
21040 {
21041 return dlopen ();
21042 ;
21043 return 0;
21044 }
21045 _ACEOF
21046 for ac_lib in '' dl
21047 do
21048 if test -z "$ac_lib"; then
21049 ac_res="none required"
21050 else
21051 ac_res=-l$ac_lib
21052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21053 fi
21054 if ac_fn_c_try_link "$LINENO"
21055 then :
21056 ac_cv_search_dlopen=$ac_res
21057 fi
21058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21059 conftest$ac_exeext
21060 if test ${ac_cv_search_dlopen+y}
21061 then :
21062 break
21063 fi
21064 done
21065 if test ${ac_cv_search_dlopen+y}
21066 then :
21067
21068 else $as_nop
21069 ac_cv_search_dlopen=no
21070 fi
21071 rm conftest.$ac_ext
21072 LIBS=$ac_func_search_save_LIBS
21073 fi
21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21075 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21076 ac_res=$ac_cv_search_dlopen
21077 if test "$ac_res" != no
21078 then :
21079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21080
21081 fi
21082
21083 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21084 if test "x$ac_cv_func_dlopen" = xyes
21085 then :
21086 plugins="yes"
21087 else $as_nop
21088 plugins="no"
21089 fi
21090
21091 fi
21092
21093 if test "$plugins" = "yes" ; then
21094
21095 printf "%s\n" "#define PLUGINS 1" >>confdefs.h
21096
21097 plugindir="${libdir}/dopewars"
21098
21099
21100 PLUGINDIR='${plugindir}'
21101 PLUGINDIR=`(
21102 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21103 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21104 eval echo \""$PLUGINDIR"\"
21105 )`
21106 PLUGINDIR=`(
21107 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21108 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21109 eval echo \""$PLUGINDIR"\"
21110 )`
21111 PLUGINDIR=`(
21112 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21113 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21114 eval echo \""$PLUGINDIR"\"
21115 )`
21116
21117
21118 printf "%s\n" "#define PLUGINDIR \"$PLUGINDIR\"" >>confdefs.h
21119
21120 PLUGOBJS=""
21121 else
21122 PLUGLIBS="$SOUND_LIBS"
21123
21124 fi
21125
21126 if test "$plugins" = "yes"; then
21127 PLUGINS_TRUE=
21128 PLUGINS_FALSE='#'
21129 else
21130 PLUGINS_TRUE='#'
21131 PLUGINS_FALSE=
21132 fi
21133
21134
21135 network="no"
21136 if test "$CYGWIN" = "yes" ; then
21137 network="yes"
21138 else
21139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21140 printf %s "checking for library containing socket... " >&6; }
21141 if test ${ac_cv_search_socket+y}
21142 then :
21143 printf %s "(cached) " >&6
21144 else $as_nop
21145 ac_func_search_save_LIBS=$LIBS
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21148
21149 /* Override any GCC internal prototype to avoid an error.
21150 Use char because int might match the return type of a GCC
21151 builtin and then its argument prototype would still apply. */
21152 char socket ();
21153 int
21154 main (void)
21155 {
21156 return socket ();
21157 ;
21158 return 0;
21159 }
21160 _ACEOF
21161 for ac_lib in '' socket network
21162 do
21163 if test -z "$ac_lib"; then
21164 ac_res="none required"
21165 else
21166 ac_res=-l$ac_lib
21167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21168 fi
21169 if ac_fn_c_try_link "$LINENO"
21170 then :
21171 ac_cv_search_socket=$ac_res
21172 fi
21173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21174 conftest$ac_exeext
21175 if test ${ac_cv_search_socket+y}
21176 then :
21177 break
21178 fi
21179 done
21180 if test ${ac_cv_search_socket+y}
21181 then :
21182
21183 else $as_nop
21184 ac_cv_search_socket=no
21185 fi
21186 rm conftest.$ac_ext
21187 LIBS=$ac_func_search_save_LIBS
21188 fi
21189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21190 printf "%s\n" "$ac_cv_search_socket" >&6; }
21191 ac_res=$ac_cv_search_socket
21192 if test "$ac_res" != no
21193 then :
21194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21195
21196 fi
21197
21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21199 printf %s "checking for library containing gethostbyname... " >&6; }
21200 if test ${ac_cv_search_gethostbyname+y}
21201 then :
21202 printf %s "(cached) " >&6
21203 else $as_nop
21204 ac_func_search_save_LIBS=$LIBS
21205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206 /* end confdefs.h. */
21207
21208 /* Override any GCC internal prototype to avoid an error.
21209 Use char because int might match the return type of a GCC
21210 builtin and then its argument prototype would still apply. */
21211 char gethostbyname ();
21212 int
21213 main (void)
21214 {
21215 return gethostbyname ();
21216 ;
21217 return 0;
21218 }
21219 _ACEOF
21220 for ac_lib in '' nsl socket
21221 do
21222 if test -z "$ac_lib"; then
21223 ac_res="none required"
21224 else
21225 ac_res=-l$ac_lib
21226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21227 fi
21228 if ac_fn_c_try_link "$LINENO"
21229 then :
21230 ac_cv_search_gethostbyname=$ac_res
21231 fi
21232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21233 conftest$ac_exeext
21234 if test ${ac_cv_search_gethostbyname+y}
21235 then :
21236 break
21237 fi
21238 done
21239 if test ${ac_cv_search_gethostbyname+y}
21240 then :
21241
21242 else $as_nop
21243 ac_cv_search_gethostbyname=no
21244 fi
21245 rm conftest.$ac_ext
21246 LIBS=$ac_func_search_save_LIBS
21247 fi
21248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21249 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21250 ac_res=$ac_cv_search_gethostbyname
21251 if test "$ac_res" != no
21252 then :
21253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21254
21255 fi
21256
21257 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21258 if test "x$ac_cv_func_socket" = xyes
21259 then :
21260 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
21261
21262 fi
21263 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
21264 if test "x$ac_cv_func_gethostbyname" = xyes
21265 then :
21266 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
21267
21268 fi
21269 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
21270 if test "x$ac_cv_func_select" = xyes
21271 then :
21272 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
21273
21274 fi
21275
21276 if test "$ac_cv_func_select" = "yes" ; then
21277 if test "$ac_cv_func_socket" = "yes" ; then
21278 if test "$ac_cv_func_gethostbyname" = "yes" ; then
21279 network="yes"
21280 fi
21281 fi
21282 fi
21283 fi
21284
21285 # Check whether --enable-networking was given.
21286 if test ${enable_networking+y}
21287 then :
21288 enableval=$enable_networking; network="$enableval"
21289 fi
21290
21291
21292 if test "$network" = "yes" ; then
21293
21294 printf "%s\n" "#define NETWORKING 1" >>confdefs.h
21295
21296 fi
21297
21298 # Check whether --enable-strict was given.
21299 if test ${enable_strict+y}
21300 then :
21301 enableval=$enable_strict; extrawarnings="$enableval"
21302 fi
21303
21304
21305 if test -n "$GCC"; then
21306 if test "$extrawarnings" = "yes" ; then
21307 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused"
21308 else
21309 CFLAGS="$CFLAGS -Wall"
21310 fi
21311 fi
21312
21313
21314 DPSCOREDIR='${localstatedir}'
21315 DPSCOREDIR=`(
21316 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21317 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21318 eval echo \""$DPSCOREDIR"\"
21319 )`
21320 DPSCOREDIR=`(
21321 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21322 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21323 eval echo \""$DPSCOREDIR"\"
21324 )`
21325 DPSCOREDIR=`(
21326 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21327 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21328 eval echo \""$DPSCOREDIR"\"
21329 )`
21330
21331
21332 printf "%s\n" "#define DPSCOREDIR \"$DPSCOREDIR\"" >>confdefs.h
21333
21334
21335
21336
21337 DPDATADIR='${datadir}'
21338 DPDATADIR=`(
21339 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21340 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21341 eval echo \""$DPDATADIR"\"
21342 )`
21343 DPDATADIR=`(
21344 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21345 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21346 eval echo \""$DPDATADIR"\"
21347 )`
21348 DPDATADIR=`(
21349 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21350 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21351 eval echo \""$DPDATADIR"\"
21352 )`
21353
21354
21355 printf "%s\n" "#define DPDATADIR \"$DPDATADIR\"" >>confdefs.h
21356
21357
21358
21359
21360 DPDOCDIR='${docdir}'
21361 DPDOCDIR=`(
21362 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21363 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21364 eval echo \""$DPDOCDIR"\"
21365 )`
21366 DPDOCDIR=`(
21367 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21368 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21369 eval echo \""$DPDOCDIR"\"
21370 )`
21371 DPDOCDIR=`(
21372 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21373 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21374 eval echo \""$DPDOCDIR"\"
21375 )`
21376
21377
21378 printf "%s\n" "#define DPDOCDIR \"$DPDOCDIR\"" >>confdefs.h
21379
21380
21381 localedir=${datadir}/locale
21382
21383
21384 LOCALEDIR='${localedir}'
21385 LOCALEDIR=`(
21386 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21387 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21388 eval echo \""$LOCALEDIR"\"
21389 )`
21390 LOCALEDIR=`(
21391 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21392 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21393 eval echo \""$LOCALEDIR"\"
21394 )`
21395 LOCALEDIR=`(
21396 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21397 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21398 eval echo \""$LOCALEDIR"\"
21399 )`
21400
21401
21402 printf "%s\n" "#define LOCALEDIR \"$LOCALEDIR\"" >>confdefs.h
21403
21404
21405 if test "$GUI_CLIENT" = "yes"; then
21406 GUI_CLIENT_TRUE=
21407 GUI_CLIENT_FALSE='#'
21408 else
21409 GUI_CLIENT_TRUE='#'
21410 GUI_CLIENT_FALSE=
21411 fi
21412
21413 if test "$GUI_CLIENT" = "yes" ; then
21414 GUILIB="gui_client/libguiclient.a"
21415
21416 fi
21417 if test "$CURSES_CLIENT" = "yes"; then
21418 CURSES_CLIENT_TRUE=
21419 CURSES_CLIENT_FALSE='#'
21420 else
21421 CURSES_CLIENT_TRUE='#'
21422 CURSES_CLIENT_FALSE=
21423 fi
21424
21425 if test "$CURSES_CLIENT" = "yes" ; then
21426 CURSESLIB="curses_client/libcursesclient.a"
21427
21428 fi
21429
21430 if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes"; then
21431 GTKPORT_TRUE=
21432 GTKPORT_FALSE='#'
21433 else
21434 GTKPORT_TRUE='#'
21435 GTKPORT_FALSE=
21436 fi
21437
21438 if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then
21439 GTKPORTLIB="gtkport/libgtkport.a"
21440
21441 fi
21442
21443 if test "$CURSES_CLIENT" = "yes"; then
21444 CURSESPORT_TRUE=
21445 CURSESPORT_FALSE='#'
21446 else
21447 CURSESPORT_TRUE='#'
21448 CURSESPORT_FALSE=
21449 fi
21450
21451 if test "$CURSES_CLIENT" = "yes" ; then
21452 CURSESPORTLIB="cursesport/libcursesport.a"
21453
21454 fi
21455
21456
21457
21458
21459 ac_config_files="$ac_config_files Makefile src/Makefile src/gui_client/Makefile src/curses_client/Makefile src/gtkport/Makefile src/cursesport/Makefile src/plugins/Makefile sounds/Makefile sounds/19.5degs/Makefile doc/Makefile doc/help/Makefile rpm/dopewars.spec doc/dopewars.6 win32/install.nsi po/Makefile.in"
21460
21461 cat >confcache <<\_ACEOF
21462 # This file is a shell script that caches the results of configure
21463 # tests run on this system so they can be shared between configure
21464 # scripts and configure runs, see configure's option --config-cache.
21465 # It is not useful on other systems. If it contains results you don't
21466 # want to keep, you may remove or edit it.
21467 #
21468 # config.status only pays attention to the cache file if you give it
21469 # the --recheck option to rerun configure.
21470 #
21471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21473 # following values.
21474
21475 _ACEOF
21476
21477 # The following way of writing the cache mishandles newlines in values,
21478 # but we know of no workaround that is simple, portable, and efficient.
21479 # So, we kill variables containing newlines.
21480 # Ultrix sh set writes to stderr and can't be redirected directly,
21481 # and sets the high bit in the cache file unless we assign to the vars.
21482 (
21483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21484 eval ac_val=\$$ac_var
21485 case $ac_val in #(
21486 *${as_nl}*)
21487 case $ac_var in #(
21488 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21489 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21490 esac
21491 case $ac_var in #(
21492 _ | IFS | as_nl) ;; #(
21493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21494 *) { eval $ac_var=; unset $ac_var;} ;;
21495 esac ;;
21496 esac
21497 done
21498
21499 (set) 2>&1 |
21500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21501 *${as_nl}ac_space=\ *)
21502 # `set' does not quote correctly, so add quotes: double-quote
21503 # substitution turns \\\\ into \\, and sed turns \\ into \.
21504 sed -n \
21505 "s/'/'\\\\''/g;
21506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21507 ;; #(
21508 *)
21509 # `set' quotes correctly as required by POSIX, so do not add quotes.
21510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21511 ;;
21512 esac |
21513 sort
21514 ) |
21515 sed '
21516 /^ac_cv_env_/b end
21517 t clear
21518 :clear
21519 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21520 t end
21521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21522 :end' >>confcache
21523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21524 if test -w "$cache_file"; then
21525 if test "x$cache_file" != "x/dev/null"; then
21526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21527 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21528 if test ! -f "$cache_file" || test -h "$cache_file"; then
21529 cat confcache >"$cache_file"
21530 else
21531 case $cache_file in #(
21532 */* | ?:*)
21533 mv -f confcache "$cache_file"$$ &&
21534 mv -f "$cache_file"$$ "$cache_file" ;; #(
21535 *)
21536 mv -f confcache "$cache_file" ;;
21537 esac
21538 fi
21539 fi
21540 else
21541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21542 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21543 fi
21544 fi
21545 rm -f confcache
21546
21547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21548 # Let make expand exec_prefix.
21549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21550
21551 DEFS=-DHAVE_CONFIG_H
21552
21553 ac_libobjs=
21554 ac_ltlibobjs=
21555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21556 # 1. Remove the extension, and $U if already installed.
21557 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21558 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21559 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21560 # will be set to the directory where LIBOBJS objects are built.
21561 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21562 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21563 done
21564 LIBOBJS=$ac_libobjs
21565
21566 LTLIBOBJS=$ac_ltlibobjs
21567
21568
21569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21570 printf %s "checking that generated files are newer than configure... " >&6; }
21571 if test -n "$am_sleep_pid"; then
21572 # Hide warnings about reused PIDs.
21573 wait $am_sleep_pid 2>/dev/null
21574 fi
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21576 printf "%s\n" "done" >&6; }
21577 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21578 as_fn_error $? "conditional \"AMDEP\" was never defined.
21579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21580 fi
21581 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21582 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21584 fi
21585 if test -n "$EXEEXT"; then
21586 am__EXEEXT_TRUE=
21587 am__EXEEXT_FALSE='#'
21588 else
21589 am__EXEEXT_TRUE='#'
21590 am__EXEEXT_FALSE=
21591 fi
21592
21593 if test -z "${APPLE_TRUE}" && test -z "${APPLE_FALSE}"; then
21594 as_fn_error $? "conditional \"APPLE\" was never defined.
21595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21596 fi
21597 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
21598 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
21599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21600 fi
21601 if test -z "${ESD_TRUE}" && test -z "${ESD_FALSE}"; then
21602 as_fn_error $? "conditional \"ESD\" was never defined.
21603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21604 fi
21605 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
21606 as_fn_error $? "conditional \"SDL\" was never defined.
21607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21608 fi
21609 if test -z "${COCOA_TRUE}" && test -z "${COCOA_FALSE}"; then
21610 as_fn_error $? "conditional \"COCOA\" was never defined.
21611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21612 fi
21613 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
21614 as_fn_error $? "conditional \"PLUGINS\" was never defined.
21615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21616 fi
21617 if test -z "${GUI_CLIENT_TRUE}" && test -z "${GUI_CLIENT_FALSE}"; then
21618 as_fn_error $? "conditional \"GUI_CLIENT\" was never defined.
21619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21620 fi
21621 if test -z "${CURSES_CLIENT_TRUE}" && test -z "${CURSES_CLIENT_FALSE}"; then
21622 as_fn_error $? "conditional \"CURSES_CLIENT\" was never defined.
21623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21624 fi
21625 if test -z "${GTKPORT_TRUE}" && test -z "${GTKPORT_FALSE}"; then
21626 as_fn_error $? "conditional \"GTKPORT\" was never defined.
21627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21628 fi
21629 if test -z "${CURSESPORT_TRUE}" && test -z "${CURSESPORT_FALSE}"; then
21630 as_fn_error $? "conditional \"CURSESPORT\" was never defined.
21631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21632 fi
21633
21634 : "${CONFIG_STATUS=./config.status}"
21635 ac_write_fail=0
21636 ac_clean_files_save=$ac_clean_files
21637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21639 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21640 as_write_fail=0
21641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21642 #! $SHELL
21643 # Generated by $as_me.
21644 # Run this file to recreate the current configuration.
21645 # Compiler output produced by configure, useful for debugging
21646 # configure, is in config.log if it exists.
21647
21648 debug=false
21649 ac_cs_recheck=false
21650 ac_cs_silent=false
21651
21652 SHELL=\${CONFIG_SHELL-$SHELL}
21653 export SHELL
21654 _ASEOF
21655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21656 ## -------------------- ##
21657 ## M4sh Initialization. ##
21658 ## -------------------- ##
21659
21660 # Be more Bourne compatible
21661 DUALCASE=1; export DUALCASE # for MKS sh
21662 as_nop=:
21663 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21664 then :
21665 emulate sh
21666 NULLCMD=:
21667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21668 # is contrary to our usage. Disable this feature.
21669 alias -g '${1+"$@"}'='"$@"'
21670 setopt NO_GLOB_SUBST
21671 else $as_nop
21672 case `(set -o) 2>/dev/null` in #(
21673 *posix*) :
21674 set -o posix ;; #(
21675 *) :
21676 ;;
21677 esac
21678 fi
21679
21680
21681
21682 # Reset variables that may have inherited troublesome values from
21683 # the environment.
21684
21685 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21686 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21687 # side effect of setting IFS to empty, thus disabling word splitting.)
21688 # Quoting is to prevent editors from complaining about space-tab.
21689 as_nl='
21690 '
21691 export as_nl
21692 IFS=" "" $as_nl"
21693
21694 PS1='$ '
21695 PS2='> '
21696 PS4='+ '
21697
21698 # Ensure predictable behavior from utilities with locale-dependent output.
21699 LC_ALL=C
21700 export LC_ALL
21701 LANGUAGE=C
21702 export LANGUAGE
21703
21704 # We cannot yet rely on "unset" to work, but we need these variables
21705 # to be unset--not just set to an empty or harmless value--now, to
21706 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21707 # also avoids known problems related to "unset" and subshell syntax
21708 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21709 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21710 do eval test \${$as_var+y} \
21711 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21712 done
21713
21714 # Ensure that fds 0, 1, and 2 are open.
21715 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21716 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21717 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21718
21719 # The user is always right.
21720 if ${PATH_SEPARATOR+false} :; then
21721 PATH_SEPARATOR=:
21722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21724 PATH_SEPARATOR=';'
21725 }
21726 fi
21727
21728
21729 # Find who we are. Look in the path if we contain no directory separator.
21730 as_myself=
21731 case $0 in #((
21732 *[\\/]* ) as_myself=$0 ;;
21733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21734 for as_dir in $PATH
21735 do
21736 IFS=$as_save_IFS
21737 case $as_dir in #(((
21738 '') as_dir=./ ;;
21739 */) ;;
21740 *) as_dir=$as_dir/ ;;
21741 esac
21742 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21743 done
21744 IFS=$as_save_IFS
21745
21746 ;;
21747 esac
21748 # We did not find ourselves, most probably we were run as `sh COMMAND'
21749 # in which case we are not to be found in the path.
21750 if test "x$as_myself" = x; then
21751 as_myself=$0
21752 fi
21753 if test ! -f "$as_myself"; then
21754 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21755 exit 1
21756 fi
21757
21758
21759
21760 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21761 # ----------------------------------------
21762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21764 # script with STATUS, using 1 if that was 0.
21765 as_fn_error ()
21766 {
21767 as_status=$1; test $as_status -eq 0 && as_status=1
21768 if test "$4"; then
21769 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21771 fi
21772 printf "%s\n" "$as_me: error: $2" >&2
21773 as_fn_exit $as_status
21774 } # as_fn_error
21775
21776
21777
21778 # as_fn_set_status STATUS
21779 # -----------------------
21780 # Set $? to STATUS, without forking.
21781 as_fn_set_status ()
21782 {
21783 return $1
21784 } # as_fn_set_status
21785
21786 # as_fn_exit STATUS
21787 # -----------------
21788 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21789 as_fn_exit ()
21790 {
21791 set +e
21792 as_fn_set_status $1
21793 exit $1
21794 } # as_fn_exit
21795
21796 # as_fn_unset VAR
21797 # ---------------
21798 # Portably unset VAR.
21799 as_fn_unset ()
21800 {
21801 { eval $1=; unset $1;}
21802 }
21803 as_unset=as_fn_unset
21804
21805 # as_fn_append VAR VALUE
21806 # ----------------------
21807 # Append the text in VALUE to the end of the definition contained in VAR. Take
21808 # advantage of any shell optimizations that allow amortized linear growth over
21809 # repeated appends, instead of the typical quadratic growth present in naive
21810 # implementations.
21811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21812 then :
21813 eval 'as_fn_append ()
21814 {
21815 eval $1+=\$2
21816 }'
21817 else $as_nop
21818 as_fn_append ()
21819 {
21820 eval $1=\$$1\$2
21821 }
21822 fi # as_fn_append
21823
21824 # as_fn_arith ARG...
21825 # ------------------
21826 # Perform arithmetic evaluation on the ARGs, and store the result in the
21827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21828 # must be portable across $(()) and expr.
21829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21830 then :
21831 eval 'as_fn_arith ()
21832 {
21833 as_val=$(( $* ))
21834 }'
21835 else $as_nop
21836 as_fn_arith ()
21837 {
21838 as_val=`expr "$@" || test $? -eq 1`
21839 }
21840 fi # as_fn_arith
21841
21842
21843 if expr a : '\(a\)' >/dev/null 2>&1 &&
21844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21845 as_expr=expr
21846 else
21847 as_expr=false
21848 fi
21849
21850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21851 as_basename=basename
21852 else
21853 as_basename=false
21854 fi
21855
21856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21857 as_dirname=dirname
21858 else
21859 as_dirname=false
21860 fi
21861
21862 as_me=`$as_basename -- "$0" ||
21863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21864 X"$0" : 'X\(//\)$' \| \
21865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21866 printf "%s\n" X/"$0" |
21867 sed '/^.*\/\([^/][^/]*\)\/*$/{
21868 s//\1/
21869 q
21870 }
21871 /^X\/\(\/\/\)$/{
21872 s//\1/
21873 q
21874 }
21875 /^X\/\(\/\).*/{
21876 s//\1/
21877 q
21878 }
21879 s/.*/./; q'`
21880
21881 # Avoid depending upon Character Ranges.
21882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21885 as_cr_digits='0123456789'
21886 as_cr_alnum=$as_cr_Letters$as_cr_digits
21887
21888
21889 # Determine whether it's possible to make 'echo' print without a newline.
21890 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21891 # for compatibility with existing Makefiles.
21892 ECHO_C= ECHO_N= ECHO_T=
21893 case `echo -n x` in #(((((
21894 -n*)
21895 case `echo 'xy\c'` in
21896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21897 xy) ECHO_C='\c';;
21898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21899 ECHO_T=' ';;
21900 esac;;
21901 *)
21902 ECHO_N='-n';;
21903 esac
21904
21905 # For backward compatibility with old third-party macros, we provide
21906 # the shell variables $as_echo and $as_echo_n. New code should use
21907 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21908 as_echo='printf %s\n'
21909 as_echo_n='printf %s'
21910
21911 rm -f conf$$ conf$$.exe conf$$.file
21912 if test -d conf$$.dir; then
21913 rm -f conf$$.dir/conf$$.file
21914 else
21915 rm -f conf$$.dir
21916 mkdir conf$$.dir 2>/dev/null
21917 fi
21918 if (echo >conf$$.file) 2>/dev/null; then
21919 if ln -s conf$$.file conf$$ 2>/dev/null; then
21920 as_ln_s='ln -s'
21921 # ... but there are two gotchas:
21922 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21923 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21924 # In both cases, we have to default to `cp -pR'.
21925 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21926 as_ln_s='cp -pR'
21927 elif ln conf$$.file conf$$ 2>/dev/null; then
21928 as_ln_s=ln
21929 else
21930 as_ln_s='cp -pR'
21931 fi
21932 else
21933 as_ln_s='cp -pR'
21934 fi
21935 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21936 rmdir conf$$.dir 2>/dev/null
21937
21938
21939 # as_fn_mkdir_p
21940 # -------------
21941 # Create "$as_dir" as a directory, including parents if necessary.
21942 as_fn_mkdir_p ()
21943 {
21944
21945 case $as_dir in #(
21946 -*) as_dir=./$as_dir;;
21947 esac
21948 test -d "$as_dir" || eval $as_mkdir_p || {
21949 as_dirs=
21950 while :; do
21951 case $as_dir in #(
21952 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21953 *) as_qdir=$as_dir;;
21954 esac
21955 as_dirs="'$as_qdir' $as_dirs"
21956 as_dir=`$as_dirname -- "$as_dir" ||
21957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21958 X"$as_dir" : 'X\(//\)[^/]' \| \
21959 X"$as_dir" : 'X\(//\)$' \| \
21960 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21961 printf "%s\n" X"$as_dir" |
21962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21963 s//\1/
21964 q
21965 }
21966 /^X\(\/\/\)[^/].*/{
21967 s//\1/
21968 q
21969 }
21970 /^X\(\/\/\)$/{
21971 s//\1/
21972 q
21973 }
21974 /^X\(\/\).*/{
21975 s//\1/
21976 q
21977 }
21978 s/.*/./; q'`
21979 test -d "$as_dir" && break
21980 done
21981 test -z "$as_dirs" || eval "mkdir $as_dirs"
21982 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21983
21984
21985 } # as_fn_mkdir_p
21986 if mkdir -p . 2>/dev/null; then
21987 as_mkdir_p='mkdir -p "$as_dir"'
21988 else
21989 test -d ./-p && rmdir ./-p
21990 as_mkdir_p=false
21991 fi
21992
21993
21994 # as_fn_executable_p FILE
21995 # -----------------------
21996 # Test if FILE is an executable regular file.
21997 as_fn_executable_p ()
21998 {
21999 test -f "$1" && test -x "$1"
22000 } # as_fn_executable_p
22001 as_test_x='test -x'
22002 as_executable_p=as_fn_executable_p
22003
22004 # Sed expression to map a string onto a valid CPP name.
22005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22006
22007 # Sed expression to map a string onto a valid variable name.
22008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22009
22010
22011 exec 6>&1
22012 ## ----------------------------------- ##
22013 ## Main body of $CONFIG_STATUS script. ##
22014 ## ----------------------------------- ##
22015 _ASEOF
22016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22017
22018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22019 # Save the log message, to keep $0 and so on meaningful, and to
22020 # report actual input values of CONFIG_FILES etc. instead of their
22021 # values after options handling.
22022 ac_log="
22023 This file was extended by dopewars $as_me 1.6.2, which was
22024 generated by GNU Autoconf 2.71. Invocation command line was
22025
22026 CONFIG_FILES = $CONFIG_FILES
22027 CONFIG_HEADERS = $CONFIG_HEADERS
22028 CONFIG_LINKS = $CONFIG_LINKS
22029 CONFIG_COMMANDS = $CONFIG_COMMANDS
22030 $ $0 $@
22031
22032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22033 "
22034
22035 _ACEOF
22036
22037 case $ac_config_files in *"
22038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22039 esac
22040
22041 case $ac_config_headers in *"
22042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22043 esac
22044
22045
22046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22047 # Files that config.status was made for.
22048 config_files="$ac_config_files"
22049 config_headers="$ac_config_headers"
22050 config_commands="$ac_config_commands"
22051
22052 _ACEOF
22053
22054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22055 ac_cs_usage="\
22056 \`$as_me' instantiates files and other configuration actions
22057 from templates according to the current configuration. Unless the files
22058 and actions are specified as TAGs, all are instantiated by default.
22059
22060 Usage: $0 [OPTION]... [TAG]...
22061
22062 -h, --help print this help, then exit
22063 -V, --version print version number and configuration settings, then exit
22064 --config print configuration, then exit
22065 -q, --quiet, --silent
22066 do not print progress messages
22067 -d, --debug don't remove temporary files
22068 --recheck update $as_me by reconfiguring in the same conditions
22069 --file=FILE[:TEMPLATE]
22070 instantiate the configuration file FILE
22071 --header=FILE[:TEMPLATE]
22072 instantiate the configuration header FILE
22073
22074 Configuration files:
22075 $config_files
22076
22077 Configuration headers:
22078 $config_headers
22079
22080 Configuration commands:
22081 $config_commands
22082
22083 Report bugs to the package provider."
22084
22085 _ACEOF
22086 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22087 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22089 ac_cs_config='$ac_cs_config_escaped'
22090 ac_cs_version="\\
22091 dopewars config.status 1.6.2
22092 configured by $0, generated by GNU Autoconf 2.71,
22093 with options \\"\$ac_cs_config\\"
22094
22095 Copyright (C) 2021 Free Software Foundation, Inc.
22096 This config.status script is free software; the Free Software Foundation
22097 gives unlimited permission to copy, distribute and modify it."
22098
22099 ac_pwd='$ac_pwd'
22100 srcdir='$srcdir'
22101 INSTALL='$INSTALL'
22102 MKDIR_P='$MKDIR_P'
22103 AWK='$AWK'
22104 test -n "\$AWK" || AWK=awk
22105 _ACEOF
22106
22107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22108 # The default lists apply if the user does not specify any file.
22109 ac_need_defaults=:
22110 while test $# != 0
22111 do
22112 case $1 in
22113 --*=?*)
22114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22116 ac_shift=:
22117 ;;
22118 --*=)
22119 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22120 ac_optarg=
22121 ac_shift=:
22122 ;;
22123 *)
22124 ac_option=$1
22125 ac_optarg=$2
22126 ac_shift=shift
22127 ;;
22128 esac
22129
22130 case $ac_option in
22131 # Handling of the options.
22132 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22133 ac_cs_recheck=: ;;
22134 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22135 printf "%s\n" "$ac_cs_version"; exit ;;
22136 --config | --confi | --conf | --con | --co | --c )
22137 printf "%s\n" "$ac_cs_config"; exit ;;
22138 --debug | --debu | --deb | --de | --d | -d )
22139 debug=: ;;
22140 --file | --fil | --fi | --f )
22141 $ac_shift
22142 case $ac_optarg in
22143 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22144 '') as_fn_error $? "missing file argument" ;;
22145 esac
22146 as_fn_append CONFIG_FILES " '$ac_optarg'"
22147 ac_need_defaults=false;;
22148 --header | --heade | --head | --hea )
22149 $ac_shift
22150 case $ac_optarg in
22151 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22152 esac
22153 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22154 ac_need_defaults=false;;
22155 --he | --h)
22156 # Conflict between --help and --header
22157 as_fn_error $? "ambiguous option: \`$1'
22158 Try \`$0 --help' for more information.";;
22159 --help | --hel | -h )
22160 printf "%s\n" "$ac_cs_usage"; exit ;;
22161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22163 ac_cs_silent=: ;;
22164
22165 # This is an error.
22166 -*) as_fn_error $? "unrecognized option: \`$1'
22167 Try \`$0 --help' for more information." ;;
22168
22169 *) as_fn_append ac_config_targets " $1"
22170 ac_need_defaults=false ;;
22171
22172 esac
22173 shift
22174 done
22175
22176 ac_configure_extra_args=
22177
22178 if $ac_cs_silent; then
22179 exec 6>/dev/null
22180 ac_configure_extra_args="$ac_configure_extra_args --silent"
22181 fi
22182
22183 _ACEOF
22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185 if \$ac_cs_recheck; then
22186 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22187 shift
22188 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22189 CONFIG_SHELL='$SHELL'
22190 export CONFIG_SHELL
22191 exec "\$@"
22192 fi
22193
22194 _ACEOF
22195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22196 exec 5>>config.log
22197 {
22198 echo
22199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200 ## Running $as_me. ##
22201 _ASBOX
22202 printf "%s\n" "$ac_log"
22203 } >&5
22204
22205 _ACEOF
22206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22207 #
22208 # INIT-COMMANDS
22209 #
22210 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22211
22212
22213 # The HP-UX ksh and POSIX shell print the target directory to stdout
22214 # if CDPATH is set.
22215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22216
22217 sed_quote_subst='$sed_quote_subst'
22218 double_quote_subst='$double_quote_subst'
22219 delay_variable_subst='$delay_variable_subst'
22220 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22221 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22222 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22224 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22225 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22228 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22229 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22230 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22231 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22232 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22233 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22234 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22235 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22236 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22237 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22238 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22239 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22240 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22241 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22242 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22243 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22244 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22245 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22246 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22247 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22248 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22249 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22250 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22251 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22252 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22254 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22255 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22256 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22257 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22258 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22259 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22260 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22261 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22262 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22263 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22264 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22265 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22266 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22267 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22268 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22269 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22270 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22271 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22272 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22273 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22274 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22275 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22277 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22278 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22279 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22280 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22281 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22282 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22283 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22284 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22285 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22286 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22287 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22288 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22289 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22290 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22291 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22292 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22293 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22294 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22295 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22296 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22297 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22298 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22299 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22300 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22301 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22302 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22303 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22304 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22305 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22306 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22307 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22308 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22309 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22310 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22311 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22312 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22313 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22314 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22315 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22316 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22317 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22318 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22319 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22320 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22321 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22322 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22323 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22324 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22325 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22326 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22327 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22328 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22329 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22330 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22331 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22332 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22333 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22334 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22335 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22336 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22337 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22338 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22339 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22340 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22341 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22342 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22343 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22344 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22345 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22346 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22347 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22348 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22349 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22350
22351 LTCC='$LTCC'
22352 LTCFLAGS='$LTCFLAGS'
22353 compiler='$compiler_DEFAULT'
22354
22355 # A function that is used when there is no print builtin or printf.
22356 func_fallback_echo ()
22357 {
22358 eval 'cat <<_LTECHO_EOF
22359 \$1
22360 _LTECHO_EOF'
22361 }
22362
22363 # Quote evaled strings.
22364 for var in SHELL \
22365 ECHO \
22366 PATH_SEPARATOR \
22367 SED \
22368 GREP \
22369 EGREP \
22370 FGREP \
22371 LD \
22372 NM \
22373 LN_S \
22374 lt_SP2NL \
22375 lt_NL2SP \
22376 reload_flag \
22377 OBJDUMP \
22378 deplibs_check_method \
22379 file_magic_cmd \
22380 file_magic_glob \
22381 want_nocaseglob \
22382 DLLTOOL \
22383 sharedlib_from_linklib_cmd \
22384 AR \
22385 AR_FLAGS \
22386 archiver_list_spec \
22387 STRIP \
22388 RANLIB \
22389 CC \
22390 CFLAGS \
22391 compiler \
22392 lt_cv_sys_global_symbol_pipe \
22393 lt_cv_sys_global_symbol_to_cdecl \
22394 lt_cv_sys_global_symbol_to_c_name_address \
22395 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22396 nm_file_list_spec \
22397 lt_prog_compiler_no_builtin_flag \
22398 lt_prog_compiler_pic \
22399 lt_prog_compiler_wl \
22400 lt_prog_compiler_static \
22401 lt_cv_prog_compiler_c_o \
22402 need_locks \
22403 MANIFEST_TOOL \
22404 DSYMUTIL \
22405 NMEDIT \
22406 LIPO \
22407 OTOOL \
22408 OTOOL64 \
22409 shrext_cmds \
22410 export_dynamic_flag_spec \
22411 whole_archive_flag_spec \
22412 compiler_needs_object \
22413 with_gnu_ld \
22414 allow_undefined_flag \
22415 no_undefined_flag \
22416 hardcode_libdir_flag_spec \
22417 hardcode_libdir_separator \
22418 exclude_expsyms \
22419 include_expsyms \
22420 file_list_spec \
22421 variables_saved_for_relink \
22422 libname_spec \
22423 library_names_spec \
22424 soname_spec \
22425 install_override_mode \
22426 finish_eval \
22427 old_striplib \
22428 striplib; do
22429 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22430 *[\\\\\\\`\\"\\\$]*)
22431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22432 ;;
22433 *)
22434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22435 ;;
22436 esac
22437 done
22438
22439 # Double-quote double-evaled strings.
22440 for var in reload_cmds \
22441 old_postinstall_cmds \
22442 old_postuninstall_cmds \
22443 old_archive_cmds \
22444 extract_expsyms_cmds \
22445 old_archive_from_new_cmds \
22446 old_archive_from_expsyms_cmds \
22447 archive_cmds \
22448 archive_expsym_cmds \
22449 module_cmds \
22450 module_expsym_cmds \
22451 export_symbols_cmds \
22452 prelink_cmds \
22453 postlink_cmds \
22454 postinstall_cmds \
22455 postuninstall_cmds \
22456 finish_cmds \
22457 sys_lib_search_path_spec \
22458 sys_lib_dlsearch_path_spec; do
22459 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22460 *[\\\\\\\`\\"\\\$]*)
22461 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22462 ;;
22463 *)
22464 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22465 ;;
22466 esac
22467 done
22468
22469 ac_aux_dir='$ac_aux_dir'
22470 xsi_shell='$xsi_shell'
22471 lt_shell_append='$lt_shell_append'
22472
22473 # See if we are running on zsh, and set the options which allow our
22474 # commands through without removal of \ escapes INIT.
22475 if test -n "\${ZSH_VERSION+set}" ; then
22476 setopt NO_GLOB_SUBST
22477 fi
22478
22479
22480 PACKAGE='$PACKAGE'
22481 VERSION='$VERSION'
22482 TIMESTAMP='$TIMESTAMP'
22483 RM='$RM'
22484 ofile='$ofile'
22485
22486
22487
22488 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22489 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
22490 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
22491 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22492 LINGUAS="${LINGUAS-%UNSET%}"
22493
22494
22495 _ACEOF
22496
22497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22498
22499 # Handling of arguments.
22500 for ac_config_target in $ac_config_targets
22501 do
22502 case $ac_config_target in
22503 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22504 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22505 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22506 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22508 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22509 "src/gui_client/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui_client/Makefile" ;;
22510 "src/curses_client/Makefile") CONFIG_FILES="$CONFIG_FILES src/curses_client/Makefile" ;;
22511 "src/gtkport/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtkport/Makefile" ;;
22512 "src/cursesport/Makefile") CONFIG_FILES="$CONFIG_FILES src/cursesport/Makefile" ;;
22513 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
22514 "sounds/Makefile") CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
22515 "sounds/19.5degs/Makefile") CONFIG_FILES="$CONFIG_FILES sounds/19.5degs/Makefile" ;;
22516 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22517 "doc/help/Makefile") CONFIG_FILES="$CONFIG_FILES doc/help/Makefile" ;;
22518 "rpm/dopewars.spec") CONFIG_FILES="$CONFIG_FILES rpm/dopewars.spec" ;;
22519 "doc/dopewars.6") CONFIG_FILES="$CONFIG_FILES doc/dopewars.6" ;;
22520 "win32/install.nsi") CONFIG_FILES="$CONFIG_FILES win32/install.nsi" ;;
22521 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22522
22523 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22524 esac
22525 done
22526
22527
22528 # If the user did not use the arguments to specify the items to instantiate,
22529 # then the envvar interface is used. Set only those that are not.
22530 # We use the long form for the default assignment because of an extremely
22531 # bizarre bug on SunOS 4.1.3.
22532 if $ac_need_defaults; then
22533 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22534 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22535 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22536 fi
22537
22538 # Have a temporary directory for convenience. Make it in the build tree
22539 # simply because there is no reason against having it here, and in addition,
22540 # creating and moving files from /tmp can sometimes cause problems.
22541 # Hook for its removal unless debugging.
22542 # Note that there is a small window in which the directory will not be cleaned:
22543 # after its creation but before its name has been assigned to `$tmp'.
22544 $debug ||
22545 {
22546 tmp= ac_tmp=
22547 trap 'exit_status=$?
22548 : "${ac_tmp:=$tmp}"
22549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22550 ' 0
22551 trap 'as_fn_exit 1' 1 2 13 15
22552 }
22553 # Create a (secure) tmp directory for tmp files.
22554
22555 {
22556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22557 test -d "$tmp"
22558 } ||
22559 {
22560 tmp=./conf$$-$RANDOM
22561 (umask 077 && mkdir "$tmp")
22562 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22563 ac_tmp=$tmp
22564
22565 # Set up the scripts for CONFIG_FILES section.
22566 # No need to generate them if there are no CONFIG_FILES.
22567 # This happens for instance with `./config.status config.h'.
22568 if test -n "$CONFIG_FILES"; then
22569
22570
22571 ac_cr=`echo X | tr X '\015'`
22572 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22573 # But we know of no other shell where ac_cr would be empty at this
22574 # point, so we can use a bashism as a fallback.
22575 if test "x$ac_cr" = x; then
22576 eval ac_cr=\$\'\\r\'
22577 fi
22578 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22579 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22580 ac_cs_awk_cr='\\r'
22581 else
22582 ac_cs_awk_cr=$ac_cr
22583 fi
22584
22585 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22586 _ACEOF
22587
22588
22589 {
22590 echo "cat >conf$$subs.awk <<_ACEOF" &&
22591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22592 echo "_ACEOF"
22593 } >conf$$subs.sh ||
22594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22596 ac_delim='%!_!# '
22597 for ac_last_try in false false false false false :; do
22598 . ./conf$$subs.sh ||
22599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22600
22601 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22602 if test $ac_delim_n = $ac_delim_num; then
22603 break
22604 elif $ac_last_try; then
22605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22606 else
22607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22608 fi
22609 done
22610 rm -f conf$$subs.sh
22611
22612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22613 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22614 _ACEOF
22615 sed -n '
22616 h
22617 s/^/S["/; s/!.*/"]=/
22618 p
22619 g
22620 s/^[^!]*!//
22621 :repl
22622 t repl
22623 s/'"$ac_delim"'$//
22624 t delim
22625 :nl
22626 h
22627 s/\(.\{148\}\)..*/\1/
22628 t more1
22629 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22630 p
22631 n
22632 b repl
22633 :more1
22634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22635 p
22636 g
22637 s/.\{148\}//
22638 t nl
22639 :delim
22640 h
22641 s/\(.\{148\}\)..*/\1/
22642 t more2
22643 s/["\\]/\\&/g; s/^/"/; s/$/"/
22644 p
22645 b
22646 :more2
22647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22648 p
22649 g
22650 s/.\{148\}//
22651 t delim
22652 ' <conf$$subs.awk | sed '
22653 /^[^""]/{
22654 N
22655 s/\n//
22656 }
22657 ' >>$CONFIG_STATUS || ac_write_fail=1
22658 rm -f conf$$subs.awk
22659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22660 _ACAWK
22661 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22662 for (key in S) S_is_set[key] = 1
22663 FS = ""
22664
22665 }
22666 {
22667 line = $ 0
22668 nfields = split(line, field, "@")
22669 substed = 0
22670 len = length(field[1])
22671 for (i = 2; i < nfields; i++) {
22672 key = field[i]
22673 keylen = length(key)
22674 if (S_is_set[key]) {
22675 value = S[key]
22676 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22677 len += length(value) + length(field[++i])
22678 substed = 1
22679 } else
22680 len += 1 + keylen
22681 }
22682
22683 print line
22684 }
22685
22686 _ACAWK
22687 _ACEOF
22688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22689 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22690 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22691 else
22692 cat
22693 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22694 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22695 _ACEOF
22696
22697 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22698 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22699 # trailing colons and then remove the whole line if VPATH becomes empty
22700 # (actually we leave an empty line to preserve line numbers).
22701 if test "x$srcdir" = x.; then
22702 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22703 h
22704 s///
22705 s/^/:/
22706 s/[ ]*$/:/
22707 s/:\$(srcdir):/:/g
22708 s/:\${srcdir}:/:/g
22709 s/:@srcdir@:/:/g
22710 s/^:*//
22711 s/:*$//
22712 x
22713 s/\(=[ ]*\).*/\1/
22714 G
22715 s/\n//
22716 s/^[^=]*=[ ]*$//
22717 }'
22718 fi
22719
22720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22721 fi # test -n "$CONFIG_FILES"
22722
22723 # Set up the scripts for CONFIG_HEADERS section.
22724 # No need to generate them if there are no CONFIG_HEADERS.
22725 # This happens for instance with `./config.status Makefile'.
22726 if test -n "$CONFIG_HEADERS"; then
22727 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22728 BEGIN {
22729 _ACEOF
22730
22731 # Transform confdefs.h into an awk script `defines.awk', embedded as
22732 # here-document in config.status, that substitutes the proper values into
22733 # config.h.in to produce config.h.
22734
22735 # Create a delimiter string that does not exist in confdefs.h, to ease
22736 # handling of long lines.
22737 ac_delim='%!_!# '
22738 for ac_last_try in false false :; do
22739 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22740 if test -z "$ac_tt"; then
22741 break
22742 elif $ac_last_try; then
22743 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22744 else
22745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22746 fi
22747 done
22748
22749 # For the awk script, D is an array of macro values keyed by name,
22750 # likewise P contains macro parameters if any. Preserve backslash
22751 # newline sequences.
22752
22753 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22754 sed -n '
22755 s/.\{148\}/&'"$ac_delim"'/g
22756 t rset
22757 :rset
22758 s/^[ ]*#[ ]*define[ ][ ]*/ /
22759 t def
22760 d
22761 :def
22762 s/\\$//
22763 t bsnl
22764 s/["\\]/\\&/g
22765 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22766 D["\1"]=" \3"/p
22767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22768 d
22769 :bsnl
22770 s/["\\]/\\&/g
22771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22772 D["\1"]=" \3\\\\\\n"\\/p
22773 t cont
22774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22775 t cont
22776 d
22777 :cont
22778 n
22779 s/.\{148\}/&'"$ac_delim"'/g
22780 t clear
22781 :clear
22782 s/\\$//
22783 t bsnlc
22784 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22785 d
22786 :bsnlc
22787 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22788 b cont
22789 ' <confdefs.h | sed '
22790 s/'"$ac_delim"'/"\\\
22791 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22792
22793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22794 for (key in D) D_is_set[key] = 1
22795 FS = ""
22796 }
22797 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22798 line = \$ 0
22799 split(line, arg, " ")
22800 if (arg[1] == "#") {
22801 defundef = arg[2]
22802 mac1 = arg[3]
22803 } else {
22804 defundef = substr(arg[1], 2)
22805 mac1 = arg[2]
22806 }
22807 split(mac1, mac2, "(") #)
22808 macro = mac2[1]
22809 prefix = substr(line, 1, index(line, defundef) - 1)
22810 if (D_is_set[macro]) {
22811 # Preserve the white space surrounding the "#".
22812 print prefix "define", macro P[macro] D[macro]
22813 next
22814 } else {
22815 # Replace #undef with comments. This is necessary, for example,
22816 # in the case of _POSIX_SOURCE, which is predefined and required
22817 # on some systems where configure will not decide to define it.
22818 if (defundef == "undef") {
22819 print "/*", prefix defundef, macro, "*/"
22820 next
22821 }
22822 }
22823 }
22824 { print }
22825 _ACAWK
22826 _ACEOF
22827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22828 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22829 fi # test -n "$CONFIG_HEADERS"
22830
22831
22832 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22833 shift
22834 for ac_tag
22835 do
22836 case $ac_tag in
22837 :[FHLC]) ac_mode=$ac_tag; continue;;
22838 esac
22839 case $ac_mode$ac_tag in
22840 :[FHL]*:*);;
22841 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22842 :[FH]-) ac_tag=-:-;;
22843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22844 esac
22845 ac_save_IFS=$IFS
22846 IFS=:
22847 set x $ac_tag
22848 IFS=$ac_save_IFS
22849 shift
22850 ac_file=$1
22851 shift
22852
22853 case $ac_mode in
22854 :L) ac_source=$1;;
22855 :[FH])
22856 ac_file_inputs=
22857 for ac_f
22858 do
22859 case $ac_f in
22860 -) ac_f="$ac_tmp/stdin";;
22861 *) # Look for the file first in the build tree, then in the source tree
22862 # (if the path is not absolute). The absolute path cannot be DOS-style,
22863 # because $ac_f cannot contain `:'.
22864 test -f "$ac_f" ||
22865 case $ac_f in
22866 [\\/$]*) false;;
22867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22868 esac ||
22869 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22870 esac
22871 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22872 as_fn_append ac_file_inputs " '$ac_f'"
22873 done
22874
22875 # Let's still pretend it is `configure' which instantiates (i.e., don't
22876 # use $as_me), people would be surprised to read:
22877 # /* config.h. Generated by config.status. */
22878 configure_input='Generated from '`
22879 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22880 `' by configure.'
22881 if test x"$ac_file" != x-; then
22882 configure_input="$ac_file. $configure_input"
22883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22884 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22885 fi
22886 # Neutralize special characters interpreted by sed in replacement strings.
22887 case $configure_input in #(
22888 *\&* | *\|* | *\\* )
22889 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22890 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22891 *) ac_sed_conf_input=$configure_input;;
22892 esac
22893
22894 case $ac_tag in
22895 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22897 esac
22898 ;;
22899 esac
22900
22901 ac_dir=`$as_dirname -- "$ac_file" ||
22902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22903 X"$ac_file" : 'X\(//\)[^/]' \| \
22904 X"$ac_file" : 'X\(//\)$' \| \
22905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22906 printf "%s\n" X"$ac_file" |
22907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22908 s//\1/
22909 q
22910 }
22911 /^X\(\/\/\)[^/].*/{
22912 s//\1/
22913 q
22914 }
22915 /^X\(\/\/\)$/{
22916 s//\1/
22917 q
22918 }
22919 /^X\(\/\).*/{
22920 s//\1/
22921 q
22922 }
22923 s/.*/./; q'`
22924 as_dir="$ac_dir"; as_fn_mkdir_p
22925 ac_builddir=.
22926
22927 case "$ac_dir" in
22928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22929 *)
22930 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22931 # A ".." for each directory in $ac_dir_suffix.
22932 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22933 case $ac_top_builddir_sub in
22934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22936 esac ;;
22937 esac
22938 ac_abs_top_builddir=$ac_pwd
22939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22940 # for backward compatibility:
22941 ac_top_builddir=$ac_top_build_prefix
22942
22943 case $srcdir in
22944 .) # We are building in place.
22945 ac_srcdir=.
22946 ac_top_srcdir=$ac_top_builddir_sub
22947 ac_abs_top_srcdir=$ac_pwd ;;
22948 [\\/]* | ?:[\\/]* ) # Absolute name.
22949 ac_srcdir=$srcdir$ac_dir_suffix;
22950 ac_top_srcdir=$srcdir
22951 ac_abs_top_srcdir=$srcdir ;;
22952 *) # Relative name.
22953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22954 ac_top_srcdir=$ac_top_build_prefix$srcdir
22955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22956 esac
22957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22958
22959
22960 case $ac_mode in
22961 :F)
22962 #
22963 # CONFIG_FILE
22964 #
22965
22966 case $INSTALL in
22967 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22968 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22969 esac
22970 ac_MKDIR_P=$MKDIR_P
22971 case $MKDIR_P in
22972 [\\/$]* | ?:[\\/]* ) ;;
22973 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22974 esac
22975 _ACEOF
22976
22977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22978 # If the template does not know about datarootdir, expand it.
22979 # FIXME: This hack should be removed a few years after 2.60.
22980 ac_datarootdir_hack=; ac_datarootdir_seen=
22981 ac_sed_dataroot='
22982 /datarootdir/ {
22983 p
22984 q
22985 }
22986 /@datadir@/p
22987 /@docdir@/p
22988 /@infodir@/p
22989 /@localedir@/p
22990 /@mandir@/p'
22991 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22992 *datarootdir*) ac_datarootdir_seen=yes;;
22993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22995 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22996 _ACEOF
22997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22998 ac_datarootdir_hack='
22999 s&@datadir@&$datadir&g
23000 s&@docdir@&$docdir&g
23001 s&@infodir@&$infodir&g
23002 s&@localedir@&$localedir&g
23003 s&@mandir@&$mandir&g
23004 s&\\\${datarootdir}&$datarootdir&g' ;;
23005 esac
23006 _ACEOF
23007
23008 # Neutralize VPATH when `$srcdir' = `.'.
23009 # Shell code in configure.ac might set extrasub.
23010 # FIXME: do we really want to maintain this feature?
23011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23012 ac_sed_extra="$ac_vpsub
23013 $extrasub
23014 _ACEOF
23015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23016 :t
23017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23018 s|@configure_input@|$ac_sed_conf_input|;t t
23019 s&@top_builddir@&$ac_top_builddir_sub&;t t
23020 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23021 s&@srcdir@&$ac_srcdir&;t t
23022 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23023 s&@top_srcdir@&$ac_top_srcdir&;t t
23024 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23025 s&@builddir@&$ac_builddir&;t t
23026 s&@abs_builddir@&$ac_abs_builddir&;t t
23027 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23028 s&@INSTALL@&$ac_INSTALL&;t t
23029 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23030 $ac_datarootdir_hack
23031 "
23032 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23033 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23034
23035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23036 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23038 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23040 which seems to be undefined. Please make sure it is defined" >&5
23041 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23042 which seems to be undefined. Please make sure it is defined" >&2;}
23043
23044 rm -f "$ac_tmp/stdin"
23045 case $ac_file in
23046 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23047 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23048 esac \
23049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23050 ;;
23051 :H)
23052 #
23053 # CONFIG_HEADER
23054 #
23055 if test x"$ac_file" != x-; then
23056 {
23057 printf "%s\n" "/* $configure_input */" >&1 \
23058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23059 } >"$ac_tmp/config.h" \
23060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23061 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23063 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23064 else
23065 rm -f "$ac_file"
23066 mv "$ac_tmp/config.h" "$ac_file" \
23067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23068 fi
23069 else
23070 printf "%s\n" "/* $configure_input */" >&1 \
23071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23072 || as_fn_error $? "could not create -" "$LINENO" 5
23073 fi
23074 # Compute "$ac_file"'s index in $config_headers.
23075 _am_arg="$ac_file"
23076 _am_stamp_count=1
23077 for _am_header in $config_headers :; do
23078 case $_am_header in
23079 $_am_arg | $_am_arg:* )
23080 break ;;
23081 * )
23082 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23083 esac
23084 done
23085 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23086 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23087 X"$_am_arg" : 'X\(//\)[^/]' \| \
23088 X"$_am_arg" : 'X\(//\)$' \| \
23089 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23090 printf "%s\n" X"$_am_arg" |
23091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23092 s//\1/
23093 q
23094 }
23095 /^X\(\/\/\)[^/].*/{
23096 s//\1/
23097 q
23098 }
23099 /^X\(\/\/\)$/{
23100 s//\1/
23101 q
23102 }
23103 /^X\(\/\).*/{
23104 s//\1/
23105 q
23106 }
23107 s/.*/./; q'`/stamp-h$_am_stamp_count
23108 ;;
23109
23110 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23111 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23112 ;;
23113 esac
23114
23115
23116 case $ac_file$ac_mode in
23117 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23118 # Older Autoconf quotes --file arguments for eval, but not when files
23119 # are listed without --file. Let's play safe and only enable the eval
23120 # if we detect the quoting.
23121 # TODO: see whether this extra hack can be removed once we start
23122 # requiring Autoconf 2.70 or later.
23123 case $CONFIG_FILES in #(
23124 *\'*) :
23125 eval set x "$CONFIG_FILES" ;; #(
23126 *) :
23127 set x $CONFIG_FILES ;; #(
23128 *) :
23129 ;;
23130 esac
23131 shift
23132 # Used to flag and report bootstrapping failures.
23133 am_rc=0
23134 for am_mf
23135 do
23136 # Strip MF so we end up with the name of the file.
23137 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23138 # Check whether this is an Automake generated Makefile which includes
23139 # dependency-tracking related rules and includes.
23140 # Grep'ing the whole file directly is not great: AIX grep has a line
23141 # limit of 2048, but all sed's we know have understand at least 4000.
23142 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23143 || continue
23144 am_dirpart=`$as_dirname -- "$am_mf" ||
23145 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23146 X"$am_mf" : 'X\(//\)[^/]' \| \
23147 X"$am_mf" : 'X\(//\)$' \| \
23148 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23149 printf "%s\n" X"$am_mf" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23151 s//\1/
23152 q
23153 }
23154 /^X\(\/\/\)[^/].*/{
23155 s//\1/
23156 q
23157 }
23158 /^X\(\/\/\)$/{
23159 s//\1/
23160 q
23161 }
23162 /^X\(\/\).*/{
23163 s//\1/
23164 q
23165 }
23166 s/.*/./; q'`
23167 am_filepart=`$as_basename -- "$am_mf" ||
23168 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23169 X"$am_mf" : 'X\(//\)$' \| \
23170 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23171 printf "%s\n" X/"$am_mf" |
23172 sed '/^.*\/\([^/][^/]*\)\/*$/{
23173 s//\1/
23174 q
23175 }
23176 /^X\/\(\/\/\)$/{
23177 s//\1/
23178 q
23179 }
23180 /^X\/\(\/\).*/{
23181 s//\1/
23182 q
23183 }
23184 s/.*/./; q'`
23185 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23186 && sed -e '/# am--include-marker/d' "$am_filepart" \
23187 | $MAKE -f - am--depfiles" >&5
23188 (cd "$am_dirpart" \
23189 && sed -e '/# am--include-marker/d' "$am_filepart" \
23190 | $MAKE -f - am--depfiles) >&5 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } || am_rc=$?
23194 done
23195 if test $am_rc -ne 0; then
23196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23197 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23198 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23199 for automatic dependency tracking. If GNU make was not used, consider
23200 re-running the configure script with MAKE=\"gmake\" (or whatever is
23201 necessary). You can also try re-running configure with the
23202 '--disable-dependency-tracking' option to at least be able to build
23203 the package (albeit without support for automatic dependency tracking).
23204 See \`config.log' for more details" "$LINENO" 5; }
23205 fi
23206 { am_dirpart=; unset am_dirpart;}
23207 { am_filepart=; unset am_filepart;}
23208 { am_mf=; unset am_mf;}
23209 { am_rc=; unset am_rc;}
23210 rm -f conftest-deps.mk
23211 }
23212 ;;
23213 "libtool":C)
23214
23215 # See if we are running on zsh, and set the options which allow our
23216 # commands through without removal of \ escapes.
23217 if test -n "${ZSH_VERSION+set}" ; then
23218 setopt NO_GLOB_SUBST
23219 fi
23220
23221 cfgfile="${ofile}T"
23222 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23223 $RM "$cfgfile"
23224
23225 cat <<_LT_EOF >> "$cfgfile"
23226 #! $SHELL
23227
23228 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23229 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23232 #
23233 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23234 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23235 # Foundation, Inc.
23236 # Written by Gordon Matzigkeit, 1996
23237 #
23238 # This file is part of GNU Libtool.
23239 #
23240 # GNU Libtool is free software; you can redistribute it and/or
23241 # modify it under the terms of the GNU General Public License as
23242 # published by the Free Software Foundation; either version 2 of
23243 # the License, or (at your option) any later version.
23244 #
23245 # As a special exception to the GNU General Public License,
23246 # if you distribute this file as part of a program or library that
23247 # is built using GNU Libtool, you may include this file under the
23248 # same distribution terms that you use for the rest of that program.
23249 #
23250 # GNU Libtool is distributed in the hope that it will be useful,
23251 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23253 # GNU General Public License for more details.
23254 #
23255 # You should have received a copy of the GNU General Public License
23256 # along with GNU Libtool; see the file COPYING. If not, a copy
23257 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23258 # obtained by writing to the Free Software Foundation, Inc.,
23259 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23260
23261
23262 # The names of the tagged configurations supported by this script.
23263 available_tags=""
23264
23265 # ### BEGIN LIBTOOL CONFIG
23266
23267 # Which release of libtool.m4 was used?
23268 macro_version=$macro_version
23269 macro_revision=$macro_revision
23270
23271 # Whether or not to build shared libraries.
23272 build_libtool_libs=$enable_shared
23273
23274 # Whether or not to build static libraries.
23275 build_old_libs=$enable_static
23276
23277 # What type of objects to build.
23278 pic_mode=$pic_mode
23279
23280 # Whether or not to optimize for fast installation.
23281 fast_install=$enable_fast_install
23282
23283 # Shell to use when invoking shell scripts.
23284 SHELL=$lt_SHELL
23285
23286 # An echo program that protects backslashes.
23287 ECHO=$lt_ECHO
23288
23289 # The PATH separator for the build system.
23290 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23291
23292 # The host system.
23293 host_alias=$host_alias
23294 host=$host
23295 host_os=$host_os
23296
23297 # The build system.
23298 build_alias=$build_alias
23299 build=$build
23300 build_os=$build_os
23301
23302 # A sed program that does not truncate output.
23303 SED=$lt_SED
23304
23305 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23306 Xsed="\$SED -e 1s/^X//"
23307
23308 # A grep program that handles long lines.
23309 GREP=$lt_GREP
23310
23311 # An ERE matcher.
23312 EGREP=$lt_EGREP
23313
23314 # A literal string matcher.
23315 FGREP=$lt_FGREP
23316
23317 # A BSD- or MS-compatible name lister.
23318 NM=$lt_NM
23319
23320 # Whether we need soft or hard links.
23321 LN_S=$lt_LN_S
23322
23323 # What is the maximum length of a command?
23324 max_cmd_len=$max_cmd_len
23325
23326 # Object file suffix (normally "o").
23327 objext=$ac_objext
23328
23329 # Executable file suffix (normally "").
23330 exeext=$exeext
23331
23332 # whether the shell understands "unset".
23333 lt_unset=$lt_unset
23334
23335 # turn spaces into newlines.
23336 SP2NL=$lt_lt_SP2NL
23337
23338 # turn newlines into spaces.
23339 NL2SP=$lt_lt_NL2SP
23340
23341 # convert \$build file names to \$host format.
23342 to_host_file_cmd=$lt_cv_to_host_file_cmd
23343
23344 # convert \$build files to toolchain format.
23345 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23346
23347 # An object symbol dumper.
23348 OBJDUMP=$lt_OBJDUMP
23349
23350 # Method to check whether dependent libraries are shared objects.
23351 deplibs_check_method=$lt_deplibs_check_method
23352
23353 # Command to use when deplibs_check_method = "file_magic".
23354 file_magic_cmd=$lt_file_magic_cmd
23355
23356 # How to find potential files when deplibs_check_method = "file_magic".
23357 file_magic_glob=$lt_file_magic_glob
23358
23359 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23360 want_nocaseglob=$lt_want_nocaseglob
23361
23362 # DLL creation program.
23363 DLLTOOL=$lt_DLLTOOL
23364
23365 # Command to associate shared and link libraries.
23366 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23367
23368 # The archiver.
23369 AR=$lt_AR
23370
23371 # Flags to create an archive.
23372 AR_FLAGS=$lt_AR_FLAGS
23373
23374 # How to feed a file listing to the archiver.
23375 archiver_list_spec=$lt_archiver_list_spec
23376
23377 # A symbol stripping program.
23378 STRIP=$lt_STRIP
23379
23380 # Commands used to install an old-style archive.
23381 RANLIB=$lt_RANLIB
23382 old_postinstall_cmds=$lt_old_postinstall_cmds
23383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23384
23385 # Whether to use a lock for old archive extraction.
23386 lock_old_archive_extraction=$lock_old_archive_extraction
23387
23388 # A C compiler.
23389 LTCC=$lt_CC
23390
23391 # LTCC compiler flags.
23392 LTCFLAGS=$lt_CFLAGS
23393
23394 # Take the output of nm and produce a listing of raw symbols and C names.
23395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23396
23397 # Transform the output of nm in a proper C declaration.
23398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23399
23400 # Transform the output of nm in a C name address pair.
23401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23402
23403 # Transform the output of nm in a C name address pair when lib prefix is needed.
23404 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23405
23406 # Specify filename containing input files for \$NM.
23407 nm_file_list_spec=$lt_nm_file_list_spec
23408
23409 # The root where to search for dependent libraries,and in which our libraries should be installed.
23410 lt_sysroot=$lt_sysroot
23411
23412 # The name of the directory that contains temporary libtool files.
23413 objdir=$objdir
23414
23415 # Used to examine libraries when file_magic_cmd begins with "file".
23416 MAGIC_CMD=$MAGIC_CMD
23417
23418 # Must we lock files when doing compilation?
23419 need_locks=$lt_need_locks
23420
23421 # Manifest tool.
23422 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23423
23424 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23425 DSYMUTIL=$lt_DSYMUTIL
23426
23427 # Tool to change global to local symbols on Mac OS X.
23428 NMEDIT=$lt_NMEDIT
23429
23430 # Tool to manipulate fat objects and archives on Mac OS X.
23431 LIPO=$lt_LIPO
23432
23433 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23434 OTOOL=$lt_OTOOL
23435
23436 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23437 OTOOL64=$lt_OTOOL64
23438
23439 # Old archive suffix (normally "a").
23440 libext=$libext
23441
23442 # Shared library suffix (normally ".so").
23443 shrext_cmds=$lt_shrext_cmds
23444
23445 # The commands to extract the exported symbol list from a shared archive.
23446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23447
23448 # Variables whose values should be saved in libtool wrapper scripts and
23449 # restored at link time.
23450 variables_saved_for_relink=$lt_variables_saved_for_relink
23451
23452 # Do we need the "lib" prefix for modules?
23453 need_lib_prefix=$need_lib_prefix
23454
23455 # Do we need a version for libraries?
23456 need_version=$need_version
23457
23458 # Library versioning type.
23459 version_type=$version_type
23460
23461 # Shared library runtime path variable.
23462 runpath_var=$runpath_var
23463
23464 # Shared library path variable.
23465 shlibpath_var=$shlibpath_var
23466
23467 # Is shlibpath searched before the hard-coded library search path?
23468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23469
23470 # Format of library name prefix.
23471 libname_spec=$lt_libname_spec
23472
23473 # List of archive names. First name is the real one, the rest are links.
23474 # The last name is the one that the linker finds with -lNAME
23475 library_names_spec=$lt_library_names_spec
23476
23477 # The coded name of the library, if different from the real name.
23478 soname_spec=$lt_soname_spec
23479
23480 # Permission mode override for installation of shared libraries.
23481 install_override_mode=$lt_install_override_mode
23482
23483 # Command to use after installation of a shared archive.
23484 postinstall_cmds=$lt_postinstall_cmds
23485
23486 # Command to use after uninstallation of a shared archive.
23487 postuninstall_cmds=$lt_postuninstall_cmds
23488
23489 # Commands used to finish a libtool library installation in a directory.
23490 finish_cmds=$lt_finish_cmds
23491
23492 # As "finish_cmds", except a single script fragment to be evaled but
23493 # not shown.
23494 finish_eval=$lt_finish_eval
23495
23496 # Whether we should hardcode library paths into libraries.
23497 hardcode_into_libs=$hardcode_into_libs
23498
23499 # Compile-time system search path for libraries.
23500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23501
23502 # Run-time system search path for libraries.
23503 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23504
23505 # Whether dlopen is supported.
23506 dlopen_support=$enable_dlopen
23507
23508 # Whether dlopen of programs is supported.
23509 dlopen_self=$enable_dlopen_self
23510
23511 # Whether dlopen of statically linked programs is supported.
23512 dlopen_self_static=$enable_dlopen_self_static
23513
23514 # Commands to strip libraries.
23515 old_striplib=$lt_old_striplib
23516 striplib=$lt_striplib
23517
23518
23519 # The linker used to build libraries.
23520 LD=$lt_LD
23521
23522 # How to create reloadable object files.
23523 reload_flag=$lt_reload_flag
23524 reload_cmds=$lt_reload_cmds
23525
23526 # Commands used to build an old-style archive.
23527 old_archive_cmds=$lt_old_archive_cmds
23528
23529 # A language specific compiler.
23530 CC=$lt_compiler
23531
23532 # Is the compiler the GNU compiler?
23533 with_gcc=$GCC
23534
23535 # Compiler flag to turn off builtin functions.
23536 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23537
23538 # Additional compiler flags for building library objects.
23539 pic_flag=$lt_lt_prog_compiler_pic
23540
23541 # How to pass a linker flag through the compiler.
23542 wl=$lt_lt_prog_compiler_wl
23543
23544 # Compiler flag to prevent dynamic linking.
23545 link_static_flag=$lt_lt_prog_compiler_static
23546
23547 # Does compiler simultaneously support -c and -o options?
23548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23549
23550 # Whether or not to add -lc for building shared libraries.
23551 build_libtool_need_lc=$archive_cmds_need_lc
23552
23553 # Whether or not to disallow shared libs when runtime libs are static.
23554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23555
23556 # Compiler flag to allow reflexive dlopens.
23557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23558
23559 # Compiler flag to generate shared objects directly from archives.
23560 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23561
23562 # Whether the compiler copes with passing no objects directly.
23563 compiler_needs_object=$lt_compiler_needs_object
23564
23565 # Create an old-style archive from a shared archive.
23566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23567
23568 # Create a temporary old-style archive to link instead of a shared archive.
23569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23570
23571 # Commands used to build a shared archive.
23572 archive_cmds=$lt_archive_cmds
23573 archive_expsym_cmds=$lt_archive_expsym_cmds
23574
23575 # Commands used to build a loadable module if different from building
23576 # a shared archive.
23577 module_cmds=$lt_module_cmds
23578 module_expsym_cmds=$lt_module_expsym_cmds
23579
23580 # Whether we are building with GNU ld or not.
23581 with_gnu_ld=$lt_with_gnu_ld
23582
23583 # Flag that allows shared libraries with undefined symbols to be built.
23584 allow_undefined_flag=$lt_allow_undefined_flag
23585
23586 # Flag that enforces no undefined symbols.
23587 no_undefined_flag=$lt_no_undefined_flag
23588
23589 # Flag to hardcode \$libdir into a binary during linking.
23590 # This must work even if \$libdir does not exist
23591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23592
23593 # Whether we need a single "-rpath" flag with a separated argument.
23594 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23595
23596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23597 # DIR into the resulting binary.
23598 hardcode_direct=$hardcode_direct
23599
23600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23601 # DIR into the resulting binary and the resulting library dependency is
23602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23603 # library is relocated.
23604 hardcode_direct_absolute=$hardcode_direct_absolute
23605
23606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23607 # into the resulting binary.
23608 hardcode_minus_L=$hardcode_minus_L
23609
23610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23611 # into the resulting binary.
23612 hardcode_shlibpath_var=$hardcode_shlibpath_var
23613
23614 # Set to "yes" if building a shared library automatically hardcodes DIR
23615 # into the library and all subsequent libraries and executables linked
23616 # against it.
23617 hardcode_automatic=$hardcode_automatic
23618
23619 # Set to yes if linker adds runtime paths of dependent libraries
23620 # to runtime path list.
23621 inherit_rpath=$inherit_rpath
23622
23623 # Whether libtool must link a program against all its dependency libraries.
23624 link_all_deplibs=$link_all_deplibs
23625
23626 # Set to "yes" if exported symbols are required.
23627 always_export_symbols=$always_export_symbols
23628
23629 # The commands to list exported symbols.
23630 export_symbols_cmds=$lt_export_symbols_cmds
23631
23632 # Symbols that should not be listed in the preloaded symbols.
23633 exclude_expsyms=$lt_exclude_expsyms
23634
23635 # Symbols that must always be exported.
23636 include_expsyms=$lt_include_expsyms
23637
23638 # Commands necessary for linking programs (against libraries) with templates.
23639 prelink_cmds=$lt_prelink_cmds
23640
23641 # Commands necessary for finishing linking programs.
23642 postlink_cmds=$lt_postlink_cmds
23643
23644 # Specify filename containing input files.
23645 file_list_spec=$lt_file_list_spec
23646
23647 # How to hardcode a shared library path into an executable.
23648 hardcode_action=$hardcode_action
23649
23650 # ### END LIBTOOL CONFIG
23651
23652 _LT_EOF
23653
23654 case $host_os in
23655 aix3*)
23656 cat <<\_LT_EOF >> "$cfgfile"
23657 # AIX sometimes has problems with the GCC collect2 program. For some
23658 # reason, if we set the COLLECT_NAMES environment variable, the problems
23659 # vanish in a puff of smoke.
23660 if test "X${COLLECT_NAMES+set}" != Xset; then
23661 COLLECT_NAMES=
23662 export COLLECT_NAMES
23663 fi
23664 _LT_EOF
23665 ;;
23666 esac
23667
23668
23669
23670 ltmain="$ac_aux_dir/ltmain.sh"
23671
23672
23673 # We use sed instead of cat because bash on DJGPP gets confused if
23674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23675 # text mode, it properly converts lines to CR/LF. This bash problem
23676 # is reportedly fixed, but why not run on old versions too?
23677 sed '$q' "$ltmain" >> "$cfgfile" \
23678 || (rm -f "$cfgfile"; exit 1)
23679
23680 if test x"$xsi_shell" = xyes; then
23681 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23682 func_dirname ()\
23683 {\
23684 \ case ${1} in\
23685 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23686 \ * ) func_dirname_result="${3}" ;;\
23687 \ esac\
23688 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23689 && mv -f "$cfgfile.tmp" "$cfgfile" \
23690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23691 test 0 -eq $? || _lt_function_replace_fail=:
23692
23693
23694 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23695 func_basename ()\
23696 {\
23697 \ func_basename_result="${1##*/}"\
23698 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23699 && mv -f "$cfgfile.tmp" "$cfgfile" \
23700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23701 test 0 -eq $? || _lt_function_replace_fail=:
23702
23703
23704 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23705 func_dirname_and_basename ()\
23706 {\
23707 \ case ${1} in\
23708 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23709 \ * ) func_dirname_result="${3}" ;;\
23710 \ esac\
23711 \ func_basename_result="${1##*/}"\
23712 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23713 && mv -f "$cfgfile.tmp" "$cfgfile" \
23714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23715 test 0 -eq $? || _lt_function_replace_fail=:
23716
23717
23718 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23719 func_stripname ()\
23720 {\
23721 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23722 \ # positional parameters, so assign one to ordinary parameter first.\
23723 \ func_stripname_result=${3}\
23724 \ func_stripname_result=${func_stripname_result#"${1}"}\
23725 \ func_stripname_result=${func_stripname_result%"${2}"}\
23726 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23727 && mv -f "$cfgfile.tmp" "$cfgfile" \
23728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23729 test 0 -eq $? || _lt_function_replace_fail=:
23730
23731
23732 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23733 func_split_long_opt ()\
23734 {\
23735 \ func_split_long_opt_name=${1%%=*}\
23736 \ func_split_long_opt_arg=${1#*=}\
23737 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23738 && mv -f "$cfgfile.tmp" "$cfgfile" \
23739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23740 test 0 -eq $? || _lt_function_replace_fail=:
23741
23742
23743 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23744 func_split_short_opt ()\
23745 {\
23746 \ func_split_short_opt_arg=${1#??}\
23747 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23748 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23749 && mv -f "$cfgfile.tmp" "$cfgfile" \
23750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23751 test 0 -eq $? || _lt_function_replace_fail=:
23752
23753
23754 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23755 func_lo2o ()\
23756 {\
23757 \ case ${1} in\
23758 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23759 \ *) func_lo2o_result=${1} ;;\
23760 \ esac\
23761 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23762 && mv -f "$cfgfile.tmp" "$cfgfile" \
23763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23764 test 0 -eq $? || _lt_function_replace_fail=:
23765
23766
23767 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23768 func_xform ()\
23769 {\
23770 func_xform_result=${1%.*}.lo\
23771 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23772 && mv -f "$cfgfile.tmp" "$cfgfile" \
23773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23774 test 0 -eq $? || _lt_function_replace_fail=:
23775
23776
23777 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23778 func_arith ()\
23779 {\
23780 func_arith_result=$(( $* ))\
23781 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23782 && mv -f "$cfgfile.tmp" "$cfgfile" \
23783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23784 test 0 -eq $? || _lt_function_replace_fail=:
23785
23786
23787 sed -e '/^func_len ()$/,/^} # func_len /c\
23788 func_len ()\
23789 {\
23790 func_len_result=${#1}\
23791 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23792 && mv -f "$cfgfile.tmp" "$cfgfile" \
23793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23794 test 0 -eq $? || _lt_function_replace_fail=:
23795
23796 fi
23797
23798 if test x"$lt_shell_append" = xyes; then
23799 sed -e '/^func_append ()$/,/^} # func_append /c\
23800 func_append ()\
23801 {\
23802 eval "${1}+=\\${2}"\
23803 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23804 && mv -f "$cfgfile.tmp" "$cfgfile" \
23805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23806 test 0 -eq $? || _lt_function_replace_fail=:
23807
23808
23809 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23810 func_append_quoted ()\
23811 {\
23812 \ func_quote_for_eval "${2}"\
23813 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23814 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23815 && mv -f "$cfgfile.tmp" "$cfgfile" \
23816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23817 test 0 -eq $? || _lt_function_replace_fail=:
23818
23819
23820 # Save a `func_append' function call where possible by direct use of '+='
23821 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23822 && mv -f "$cfgfile.tmp" "$cfgfile" \
23823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23824 test 0 -eq $? || _lt_function_replace_fail=:
23825 else
23826 # Save a `func_append' function call even when '+=' is not available
23827 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23828 && mv -f "$cfgfile.tmp" "$cfgfile" \
23829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23830 test 0 -eq $? || _lt_function_replace_fail=:
23831 fi
23832
23833 if test x"$_lt_function_replace_fail" = x":"; then
23834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23835 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23836 fi
23837
23838
23839 mv -f "$cfgfile" "$ofile" ||
23840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23841 chmod +x "$ofile"
23842
23843 ;;
23844 "po-directories":C)
23845 for ac_file in $CONFIG_FILES; do
23846 # Support "outfile[:infile[:infile...]]"
23847 case "$ac_file" in
23848 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23849 esac
23850 # PO directories have a Makefile.in generated from Makefile.in.in.
23851 case "$ac_file" in */Makefile.in)
23852 # Adjust a relative srcdir.
23853 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23854 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23855 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23856 # In autoconf-2.13 it is called $ac_given_srcdir.
23857 # In autoconf-2.50 it is called $srcdir.
23858 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23859 case "$ac_given_srcdir" in
23860 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23861 /*) top_srcdir="$ac_given_srcdir" ;;
23862 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23863 esac
23864 # Treat a directory as a PO directory if and only if it has a
23865 # POTFILES.in file. This allows packages to have multiple PO
23866 # directories under different names or in different locations.
23867 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23868 rm -f "$ac_dir/POTFILES"
23869 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23870 gt_tab=`printf '\t'`
23871 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23872 POMAKEFILEDEPS="POTFILES.in"
23873 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23874 # on $ac_dir but don't depend on user-specified configuration
23875 # parameters.
23876 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23877 # The LINGUAS file contains the set of available languages.
23878 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23879 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23880 fi
23881 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23882 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23883 else
23884 # The set of available languages was given in configure.in.
23885 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
23886 fi
23887 # Compute POFILES
23888 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23889 # Compute UPDATEPOFILES
23890 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23891 # Compute DUMMYPOFILES
23892 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23893 # Compute GMOFILES
23894 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23895 case "$ac_given_srcdir" in
23896 .) srcdirpre= ;;
23897 *) srcdirpre='$(srcdir)/' ;;
23898 esac
23899 POFILES=
23900 UPDATEPOFILES=
23901 DUMMYPOFILES=
23902 GMOFILES=
23903 for lang in $ALL_LINGUAS; do
23904 POFILES="$POFILES $srcdirpre$lang.po"
23905 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23906 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23907 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23908 done
23909 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23910 # environment variable.
23911 INST_LINGUAS=
23912 if test -n "$ALL_LINGUAS"; then
23913 for presentlang in $ALL_LINGUAS; do
23914 useit=no
23915 if test "%UNSET%" != "$LINGUAS"; then
23916 desiredlanguages="$LINGUAS"
23917 else
23918 desiredlanguages="$ALL_LINGUAS"
23919 fi
23920 for desiredlang in $desiredlanguages; do
23921 # Use the presentlang catalog if desiredlang is
23922 # a. equal to presentlang, or
23923 # b. a variant of presentlang (because in this case,
23924 # presentlang can be used as a fallback for messages
23925 # which are not translated in the desiredlang catalog).
23926 case "$desiredlang" in
23927 "$presentlang"*) useit=yes;;
23928 esac
23929 done
23930 if test $useit = yes; then
23931 INST_LINGUAS="$INST_LINGUAS $presentlang"
23932 fi
23933 done
23934 fi
23935 CATALOGS=
23936 if test -n "$INST_LINGUAS"; then
23937 for lang in $INST_LINGUAS; do
23938 CATALOGS="$CATALOGS $lang.gmo"
23939 done
23940 fi
23941 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23942 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"
23943 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23944 if test -f "$f"; then
23945 case "$f" in
23946 *.orig | *.bak | *~) ;;
23947 *) cat "$f" >> "$ac_dir/Makefile" ;;
23948 esac
23949 fi
23950 done
23951 fi
23952 ;;
23953 esac
23954 done ;;
23955
23956 esac
23957 done # for ac_tag
23958
23959
23960 as_fn_exit 0
23961 _ACEOF
23962 ac_clean_files=$ac_clean_files_save
23963
23964 test $ac_write_fail = 0 ||
23965 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23966
23967
23968 # configure is writing to config.log, and then calls config.status.
23969 # config.status does its own redirection, appending to config.log.
23970 # Unfortunately, on DOS this fails, as config.log is still kept open
23971 # by configure, so config.status won't be able to write to it; its
23972 # output is simply discarded. So we exec the FD to /dev/null,
23973 # effectively closing config.log, so it can be properly (re)opened and
23974 # appended to by config.status. When coming back to configure, we
23975 # need to make the FD available again.
23976 if test "$no_create" != yes; then
23977 ac_cs_success=:
23978 ac_config_status_args=
23979 test "$silent" = yes &&
23980 ac_config_status_args="$ac_config_status_args --quiet"
23981 exec 5>/dev/null
23982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23983 exec 5>>config.log
23984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23985 # would make configure fail if this is the last instruction.
23986 $ac_cs_success || as_fn_exit 1
23987 fi
23988 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23990 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23991 fi
23992
23993
23994 echo
23995 echo "dopewars has been configured as follows:"
23996 echo
23997 if test "$CYGWIN" = "yes" ; then
23998 echo "Building native Windows (Win32) version"
23999 else
24000 echo "Building Unix version"
24001 fi
24002 echo
24003 echo "CLIENTS"
24004 if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then
24005 echo " - No clients will be compiled (binary will be server/AI only)"
24006 else
24007 if test "$CURSES_CLIENT" = "yes" ; then
24008 echo " - Text-mode (curses) client"
24009 fi
24010 if test "$GUI_CLIENT" = "yes" ; then
24011 echo " - Graphical (GTK+ or Win32) client"
24012 fi
24013 fi
24014
24015 echo
24016 if test "$network" = "yes" ; then
24017 echo "TCP/IP networking support enabled for multi-player games"
24018 echo
24019 echo "SERVER"
24020 if test "$GUI_SERVER" = "yes" ; then
24021 echo " - Graphical server"
24022 else
24023 echo " - Text-mode server"
24024 fi
24025 else
24026 echo "Networking support DISABLED; single-player mode only"
24027 fi
24028
24029 echo
24030