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 Libvisual plugins 0.4.2.
4 #
5 # Report bugs to <https://github.com/Libvisual/libvisual/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://github.com/Libvisual/libvisual/issues about
280 $0: your system, including any error possibly output before
281 $0: this message. Then install a modern shell, or manually
282 $0: run the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='Libvisual plugins'
623 PACKAGE_TARNAME='libvisual-plugins'
624 PACKAGE_VERSION='0.4.2'
625 PACKAGE_STRING='Libvisual plugins 0.4.2'
626 PACKAGE_BUGREPORT='https://github.com/Libvisual/libvisual/issues'
627 PACKAGE_URL='https://github.com/Libvisual/libvisual'
628
629 ac_unique_file="config.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_func_c_list=
663 gt_needs=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 build_morph_plugins
669 build_input_plugins
670 build_actor_plugins
671 LIBVISUAL_PLUGINS_DATA_DIR
672 morph_plugindir
673 input_plugindir
674 actor_plugindir
675 LIBVISUAL_PLUGINS_BASE_DIR
676 OPT_CFLAGS
677 DEBUG_CFLAGS
678 GFORCE_FLAGS
679 ALSA_TOPOLOGY_LIBS
680 ALSA_LIBS
681 ALSA_CFLAGS
682 GLU_LIBS
683 GLU_CFLAGS
684 GL_LIBS
685 GL_CFLAGS
686 GSTREAMER_LIBS
687 GSTREAMER_CFLAGS
688 GTK_LIBS
689 GTK_CFLAGS
690 PORTAUDIO_LIBS
691 PORTAUDIO_CFLAGS
692 LIBJACK_LIBS
693 LIBJACK_CFLAGS
694 LIBPULSE_LIBS
695 LIBPULSE_CFLAGS
696 DYNAMIC_LOADER_LIBS
697 POSUB
698 LTLIBINTL
699 LIBINTL
700 INTLLIBS
701 LTLIBICONV
702 LIBICONV
703 INTL_MACOSX_LIBS
704 CPP
705 XGETTEXT_EXTRA_OPTIONS
706 MSGMERGE
707 XGETTEXT_015
708 XGETTEXT
709 GMSGFMT_015
710 MSGFMT_015
711 GMSGFMT
712 MSGFMT
713 GETTEXT_MACRO_VERSION
714 USE_NLS
715 GETTEXT_PACKAGE
716 YACC
717 LEXLIB
718 LEX_OUTPUT_ROOT
719 LEX
720 CXXCPP
721 LT_SYS_LIBRARY_PATH
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 RANLIB
729 ac_ct_AR
730 AR
731 DLLTOOL
732 OBJDUMP
733 NM
734 ac_ct_DUMPBIN
735 DUMPBIN
736 LD
737 FGREP
738 EGREP
739 GREP
740 SED
741 LIBTOOL
742 LN_S
743 host_os
744 host_vendor
745 host_cpu
746 host
747 build_os
748 build_vendor
749 build_cpu
750 build
751 HAVE_CXX11
752 am__fastdepCXX_FALSE
753 am__fastdepCXX_TRUE
754 CXXDEPMODE
755 ac_ct_CXX
756 CXXFLAGS
757 CXX
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 am__nodep
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 LIBVISUAL_LIBS
775 LIBVISUAL_CFLAGS
776 PKG_CONFIG_LIBDIR
777 PKG_CONFIG_PATH
778 PKG_CONFIG
779 AM_BACKSLASH
780 AM_DEFAULT_VERBOSITY
781 AM_DEFAULT_V
782 AM_V
783 CSCOPE
784 ETAGS
785 CTAGS
786 am__untar
787 am__tar
788 AMTAR
789 am__leading_dot
790 SET_MAKE
791 AWK
792 mkdir_p
793 MKDIR_P
794 INSTALL_STRIP_PROGRAM
795 STRIP
796 install_sh
797 MAKEINFO
798 AUTOHEADER
799 AUTOMAKE
800 AUTOCONF
801 ACLOCAL
802 VERSION
803 PACKAGE
804 CYGPATH_W
805 am__isrc
806 INSTALL_DATA
807 INSTALL_SCRIPT
808 INSTALL_PROGRAM
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 runstatedir
829 localstatedir
830 sharedstatedir
831 sysconfdir
832 datadir
833 datarootdir
834 libexecdir
835 sbindir
836 bindir
837 program_transform_name
838 prefix
839 exec_prefix
840 PACKAGE_URL
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL
848 am__quote'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_silent_rules
853 enable_dependency_tracking
854 enable_static
855 enable_shared
856 with_pic
857 enable_fast_install
858 with_aix_soname
859 with_gnu_ld
860 with_sysroot
861 enable_libtool_lock
862 enable_nls
863 enable_rpath
864 with_libiconv_prefix
865 with_libintl_prefix
866 enable_pulseaudio
867 enable_jack
868 enable_portaudio
869 enable_gdkpixbuf_plugin
870 enable_gstreamer_plugin
871 enable_opengl
872 with_xquartz_gl
873 enable_alsa
874 with_alsa_prefix
875 with_alsa_inc_prefix
876 enable_alsa_topology
877 enable_alsatest
878 enable_mplayer
879 enable_inputdebug
880 enable_gltest
881 enable_nastyfft
882 enable_madspin
883 enable_flower
884 enable_infinite
885 enable_jess
886 enable_corona
887 enable_analyzer
888 enable_scope
889 enable_oinksie
890 enable_jakdaw
891 enable_bumpscope
892 enable_gforce
893 enable_alphablend
894 enable_flash
895 enable_tentacle
896 enable_slide
897 enable_profiling
898 enable_debug
899 enable_extra_optimization
900 with_plugins_base_dir
901 '
902 ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 PKG_CONFIG
906 PKG_CONFIG_PATH
907 PKG_CONFIG_LIBDIR
908 LIBVISUAL_CFLAGS
909 LIBVISUAL_LIBS
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CXX
916 CXXFLAGS
917 CCC
918 LT_SYS_LIBRARY_PATH
919 CXXCPP
920 CPP
921 LIBPULSE_CFLAGS
922 LIBPULSE_LIBS
923 LIBJACK_CFLAGS
924 LIBJACK_LIBS
925 PORTAUDIO_CFLAGS
926 PORTAUDIO_LIBS
927 GTK_CFLAGS
928 GTK_LIBS
929 GSTREAMER_CFLAGS
930 GSTREAMER_LIBS
931 GL_CFLAGS
932 GL_LIBS
933 GLU_CFLAGS
934 GLU_LIBS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 runstatedir='${localstatedir}/run'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
992 eval $ac_prev=\$ac_option
993 ac_prev=
994 continue
995 fi
996
997 case $ac_option in
998 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 *=) ac_optarg= ;;
1000 *) ac_optarg=yes ;;
1001 esac
1002
1003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
1006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1011
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1026
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1031
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1064
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -runstatedir | --runstatedir | --runstatedi | --runstated \
1225 | --runstate | --runstat | --runsta | --runst | --runs \
1226 | --run | --ru | --r)
1227 ac_prev=runstatedir ;;
1228 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1229 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1230 | --run=* | --ru=* | --r=*)
1231 runstatedir=$ac_optarg ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: \`$ac_useropt'"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
1293
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: \`$ac_useropt'"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1330 ;;
1331
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 esac
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348 ;;
1349
1350 esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir runstatedir
1371 do
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 printf "%s\n" X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures Libvisual plugins 0.4.2 to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root
1533 [DATAROOTDIR/doc/libvisual-plugins]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1539
1540 cat <<\_ACEOF
1541
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of Libvisual plugins 0.4.2:";;
1556 esac
1557 cat <<\_ACEOF
1558
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-silent-rules less verbose build output (undo: "make V=1")
1564 --disable-silent-rules verbose build output (undo: "make V=0")
1565 --enable-dependency-tracking
1566 do not reject slow dependency extractors
1567 --disable-dependency-tracking
1568 speeds up one-time build
1569 --enable-static[=PKGS] build static libraries [default=no]
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-fast-install[=PKGS]
1572 optimize for fast installation [default=yes]
1573 --disable-libtool-lock avoid locking (might break parallel builds)
1574 --disable-nls do not use Native Language Support
1575 --disable-rpath do not hardcode runtime library paths
1576 --disable-pulseaudio Do not build PulseAudio input plugin
1577 [default=enabled]
1578 --disable-jack Do not build jack input plugin [default=enabled]
1579 --disable-portaudio Do not build PortAudio input plugin
1580 [default=enabled]
1581 --disable-gdkpixbuf-plugin
1582 Do not build GdkPixbuf visualization plugin
1583 [default=enabled]
1584 --disable-gstreamer-plugin
1585 Do not build GStreamer visualization plugin
1586 [default=enabled]
1587 --disable-opengl Do not build actor plugins based using OpenGL/GLU
1588 [default=enabled]
1589 --disable-alsa Do not build ALSA input plugin [default=enabled]
1590 --enable-alsatopology Force to use the Alsa topology library
1591 --disable-alsatest Do not try to compile and run a test Alsa program
1592 --disable-mplayer Do not build mplayer input plugin [default=enabled]
1593 --disable-inputdebug Do not build input debug plugin [default=enabled]
1594 --disable-gltest Do not build lv_gltest plugin [default=enabled]
1595 --disable-nastyfft Do not build nastyfft plugin [default=enabled]
1596 --disable-madspin Do not build Madspin plugin [default=enabled]
1597 --disable-flower Do not build Pseudotoad Flower plugin
1598 [default=enabled]
1599 --disable-infinite Do not build Infinite plugin [default=enabled]
1600 --disable-jess Do not build JESS plugin [default=enabled]
1601 --disable-corona Do not build corona plugin [default=enabled]
1602 --disable-analyzer Do not build Analyzer plugin [default=enabled]
1603 --disable-scope Do not build Scope plugin [default=enabled]
1604 --disable-oinksie Do not build Oinksie plugin [default=enabled]
1605 --disable-jakdaw Do not build Jakdaw plugin [default=enabled]
1606 --disable-bumpscope Do not build bumpscope plugin [default=enabled]
1607 --disable-gforce Do not build the G-Force plugin [default=enabled]
1608 --disable-alphablend Do not build alphablend morph plugin
1609 [default=enabled]
1610 --disable-flash Do not build flash morph plugin [default=enabled]
1611 --disable-tentacle Do not build tentacle morph plugin [default=enabled]
1612 --disable-slide Do not build slide morph plugin [default=enabled]
1613 --enable-profiling Enable emision of profile data to be used by gprof
1614 [default=disabled]
1615 --enable-debug Enable debug [default=disabled]
1616 --enable-extra-optimization
1617 Enable extra optimizations [default=disabled]
1618
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1623 both]
1624 --with-aix-soname=aix|svr4|both
1625 shared library versioning (aka "SONAME") variant to
1626 provide on AIX, [default=aix].
1627 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1628 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1629 compiler's sysroot if not specified).
1630 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1632 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1633 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1634 --without-libintl-prefix don't search for libintl in includedir and libdir
1635 --with-xquartz-gl[=DIR] On Mac OSX, use opengl provided by X11/XQuartz
1636 instead of the built-in framework. If enabled, the
1637 default location is [DIR=/opt/X11]. This option is
1638 default to false.
1639 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1640 --with-alsa-inc-prefix=PFX
1641 Prefix where include libraries are (optional)
1642 --with-plugins-base-dir=DIR
1643 Install plugins to this base directory. Defaults to
1644 Libvisual's base dir
1645
1646 Some influential environment variables:
1647 PKG_CONFIG path to pkg-config utility
1648 PKG_CONFIG_PATH
1649 directories to add to pkg-config's search path
1650 PKG_CONFIG_LIBDIR
1651 path overriding pkg-config's built-in search path
1652 LIBVISUAL_CFLAGS
1653 C compiler flags for LIBVISUAL, overriding pkg-config
1654 LIBVISUAL_LIBS
1655 linker flags for LIBVISUAL, overriding pkg-config
1656 CC C compiler command
1657 CFLAGS C compiler flags
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1659 nonstandard directory <lib dir>
1660 LIBS libraries to pass to the linker, e.g. -l<library>
1661 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1662 you have headers in a nonstandard directory <include dir>
1663 CXX C++ compiler command
1664 CXXFLAGS C++ compiler flags
1665 LT_SYS_LIBRARY_PATH
1666 User-defined run-time library search path.
1667 CXXCPP C++ preprocessor
1668 CPP C preprocessor
1669 LIBPULSE_CFLAGS
1670 C compiler flags for LIBPULSE, overriding pkg-config
1671 LIBPULSE_LIBS
1672 linker flags for LIBPULSE, overriding pkg-config
1673 LIBJACK_CFLAGS
1674 C compiler flags for LIBJACK, overriding pkg-config
1675 LIBJACK_LIBS
1676 linker flags for LIBJACK, overriding pkg-config
1677 PORTAUDIO_CFLAGS
1678 C compiler flags for PORTAUDIO, overriding pkg-config
1679 PORTAUDIO_LIBS
1680 linker flags for PORTAUDIO, overriding pkg-config
1681 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1682 GTK_LIBS linker flags for GTK, overriding pkg-config
1683 GSTREAMER_CFLAGS
1684 C compiler flags for GSTREAMER, overriding pkg-config
1685 GSTREAMER_LIBS
1686 linker flags for GSTREAMER, overriding pkg-config
1687 GL_CFLAGS C compiler flags for GL, overriding configure script defaults
1688 GL_LIBS Linker flags for GL, overriding configure script defaults
1689 GLU_CFLAGS C compiler flags for GLU, overriding system check
1690 GLU_LIBS Linker flags for GLU, overriding system check
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to <https://github.com/Libvisual/libvisual/issues>.
1696 Libvisual plugins home page: <https://github.com/Libvisual/libvisual>.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for configure.gnu first; this name is used for a wrapper for
1743 # Metaconfig's "Configure" on case-insensitive file systems.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 Libvisual plugins configure 0.4.2
1761 generated by GNU Autoconf 2.71
1762
1763 Copyright (C) 2021 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest.beam
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 printf "%s\n" "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext
1800 then :
1801 ac_retval=0
1802 else $as_nop
1803 printf "%s\n" "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_compile
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext conftest.beam
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 printf "%s\n" "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext
1839 then :
1840 ac_retval=0
1841 else $as_nop
1842 printf "%s\n" "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_cxx_try_compile
1851
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 printf %s "checking for $2... " >&6; }
1861 if eval test \${$3+y}
1862 then :
1863 printf %s "(cached) " >&6
1864 else $as_nop
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"
1871 then :
1872 eval "$3=yes"
1873 else $as_nop
1874 eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 printf "%s\n" "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 printf "%s\n" "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }
1914 then :
1915 ac_retval=0
1916 else $as_nop
1917 printf "%s\n" "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921 fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1929
1930 } # ac_fn_c_try_link
1931
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 printf %s "checking for $2... " >&6; }
1940 if eval test \${$3+y}
1941 then :
1942 printf %s "(cached) " >&6
1943 else $as_nop
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1949
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below. */
1952
1953 #include <limits.h>
1954 #undef $2
1955
1956 /* Override any GCC internal prototype to avoid an error.
1957 Use char because int might match the return type of a GCC
1958 builtin and then its argument prototype would still apply. */
1959 #ifdef __cplusplus
1960 extern "C"
1961 #endif
1962 char $2 ();
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined __stub_$2 || defined __stub___$2
1967 choke me
1968 #endif
1969
1970 int
1971 main (void)
1972 {
1973 return $2 ();
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_link "$LINENO"
1979 then :
1980 eval "$3=yes"
1981 else $as_nop
1982 eval "$3=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1985 conftest$ac_exeext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 printf "%s\n" "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_func
1993
1994 # ac_fn_c_try_run LINENO
1995 # ----------------------
1996 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1997 # executables *can* be run.
1998 ac_fn_c_try_run ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if { { ac_try="$ac_link"
2002 case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 printf "%s\n" "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>&5
2009 ac_status=$?
2010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2012 { { case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 printf "%s\n" "$ac_try_echo"; } >&5
2018 (eval "$ac_try") 2>&5
2019 ac_status=$?
2020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; }; }
2022 then :
2023 ac_retval=0
2024 else $as_nop
2025 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2026 printf "%s\n" "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029 ac_retval=$ac_status
2030 fi
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2034
2035 } # ac_fn_c_try_run
2036
2037 # ac_fn_cxx_try_cpp LINENO
2038 # ------------------------
2039 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_cxx_try_cpp ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_cpp conftest.$ac_ext"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 printf "%s\n" "$ac_try_echo"; } >&5
2050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2051 ac_status=$?
2052 if test -s conftest.err; then
2053 grep -v '^ *+' conftest.err >conftest.er1
2054 cat conftest.er1 >&5
2055 mv -f conftest.er1 conftest.err
2056 fi
2057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; } > conftest.i && {
2059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2060 test ! -s conftest.err
2061 }
2062 then :
2063 ac_retval=0
2064 else $as_nop
2065 printf "%s\n" "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068 ac_retval=1
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_cxx_try_cpp
2074
2075 # ac_fn_cxx_try_link LINENO
2076 # -------------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_link ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 printf "%s\n" "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_cxx_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 test -x conftest$ac_exeext
2103 }
2104 then :
2105 ac_retval=0
2106 else $as_nop
2107 printf "%s\n" "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111 fi
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2119
2120 } # ac_fn_cxx_try_link
2121
2122 # ac_fn_c_try_cpp LINENO
2123 # ----------------------
2124 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_c_try_cpp ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_cpp conftest.$ac_ext"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 printf "%s\n" "$ac_try_echo"; } >&5
2135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } > conftest.i && {
2144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 }
2147 then :
2148 ac_retval=0
2149 else $as_nop
2150 printf "%s\n" "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154 fi
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2157
2158 } # ac_fn_c_try_cpp
2159 ac_configure_args_raw=
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 *\'*)
2164 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165 esac
2166 as_fn_append ac_configure_args_raw " '$ac_arg'"
2167 done
2168
2169 case $ac_configure_args_raw in
2170 *$as_nl*)
2171 ac_safe_unquote= ;;
2172 *)
2173 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2174 ac_unsafe_a="$ac_unsafe_z#~"
2175 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2176 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2177 esac
2178
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by Libvisual plugins $as_me 0.4.2, which was
2184 generated by GNU Autoconf 2.71. Invocation command line was
2185
2186 $ $0$ac_configure_args_raw
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 case $as_dir in #(((
2220 '') as_dir=./ ;;
2221 */) ;;
2222 *) as_dir=$as_dir/ ;;
2223 esac
2224 printf "%s\n" "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2227
2228 } >&5
2229
2230 cat >&5 <<_ACEOF
2231
2232
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2236
2237 _ACEOF
2238
2239
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2250 do
2251 for ac_arg
2252 do
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2263 2)
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2276 ;;
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2279 fi
2280 as_fn_append ac_configure_args " '$ac_arg'"
2281 ;;
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2287
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Sanitize IFS.
2295 IFS=" "" $as_nl"
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
2300 printf "%s\n" "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305 (
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333 )
2334 echo
2335
2336 printf "%s\n" "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 printf "%s\n" "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
2351 printf "%s\n" "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 printf "%s\n" "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 printf "%s\n" "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 printf "%s\n" "$as_me: caught signal $ac_signal"
2376 printf "%s\n" "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381 ' 0
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2386
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2389
2390 printf "%s\n" "/* confdefs.h */" > confdefs.h
2391
2392 # Predefined preprocessor variables.
2393
2394 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2395
2396 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2397
2398 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2399
2400 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2401
2402 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2403
2404 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2405
2406
2407 # Let the site file select an alternate cache file if it wants to.
2408 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 ac_site_files="$CONFIG_SITE"
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2413 else
2414 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2415 fi
2416
2417 for ac_site_file in $ac_site_files
2418 do
2419 case $ac_site_file in #(
2420 */*) :
2421 ;; #(
2422 *) :
2423 ac_site_file=./$ac_site_file ;;
2424 esac
2425 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file" \
2430 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error $? "failed to load site script $ac_site_file
2433 See \`config.log' for more details" "$LINENO" 5; }
2434 fi
2435 done
2436
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2443 case $cache_file in
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2446 esac
2447 fi
2448 else
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2451 >$cache_file
2452 fi
2453
2454 # Test code for whether the C compiler supports C89 (global declarations)
2455 ac_c_conftest_c89_globals='
2456 /* Does the compiler advertise C89 conformance?
2457 Do not test the value of __STDC__, because some compilers set it to 0
2458 while being otherwise adequately conformant. */
2459 #if !defined __STDC__
2460 # error "Compiler does not advertise C89 conformance"
2461 #endif
2462
2463 #include <stddef.h>
2464 #include <stdarg.h>
2465 struct stat;
2466 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2467 struct buf { int x; };
2468 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2469 static char *e (p, i)
2470 char **p;
2471 int i;
2472 {
2473 return p[i];
2474 }
2475 static char *f (char * (*g) (char **, int), char **p, ...)
2476 {
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2483 }
2484
2485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not \xHH hex character constants.
2487 These do not provoke an error unfortunately, instead are silently treated
2488 as an "x". The following induces an error, until -std is added to get
2489 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2490 array size at least. It is necessary to write \x00 == 0 to get something
2491 that is true only with -std. */
2492 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2493
2494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2495 inside strings and character constants. */
2496 #define FOO(x) '\''x'\''
2497 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2498
2499 int test (int i, double x);
2500 struct s1 {int (*f) (int a);};
2501 struct s2 {int (*f) (double a);};
2502 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2503 int, int);'
2504
2505 # Test code for whether the C compiler supports C89 (body of main).
2506 ac_c_conftest_c89_main='
2507 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2508 '
2509
2510 # Test code for whether the C compiler supports C99 (global declarations)
2511 ac_c_conftest_c99_globals='
2512 // Does the compiler advertise C99 conformance?
2513 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2514 # error "Compiler does not advertise C99 conformance"
2515 #endif
2516
2517 #include <stdbool.h>
2518 extern int puts (const char *);
2519 extern int printf (const char *, ...);
2520 extern int dprintf (int, const char *, ...);
2521 extern void *malloc (size_t);
2522
2523 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2524 // dprintf is used instead of fprintf to avoid needing to declare
2525 // FILE and stderr.
2526 #define debug(...) dprintf (2, __VA_ARGS__)
2527 #define showlist(...) puts (#__VA_ARGS__)
2528 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2529 static void
2530 test_varargs_macros (void)
2531 {
2532 int x = 1234;
2533 int y = 5678;
2534 debug ("Flag");
2535 debug ("X = %d\n", x);
2536 showlist (The first, second, and third items.);
2537 report (x>y, "x is %d but y is %d", x, y);
2538 }
2539
2540 // Check long long types.
2541 #define BIG64 18446744073709551615ull
2542 #define BIG32 4294967295ul
2543 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2544 #if !BIG_OK
2545 #error "your preprocessor is broken"
2546 #endif
2547 #if BIG_OK
2548 #else
2549 #error "your preprocessor is broken"
2550 #endif
2551 static long long int bignum = -9223372036854775807LL;
2552 static unsigned long long int ubignum = BIG64;
2553
2554 struct incomplete_array
2555 {
2556 int datasize;
2557 double data[];
2558 };
2559
2560 struct named_init {
2561 int number;
2562 const wchar_t *name;
2563 double average;
2564 };
2565
2566 typedef const char *ccp;
2567
2568 static inline int
2569 test_restrict (ccp restrict text)
2570 {
2571 // See if C++-style comments work.
2572 // Iterate through items via the restricted pointer.
2573 // Also check for declarations in for loops.
2574 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2575 continue;
2576 return 0;
2577 }
2578
2579 // Check varargs and va_copy.
2580 static bool
2581 test_varargs (const char *format, ...)
2582 {
2583 va_list args;
2584 va_start (args, format);
2585 va_list args_copy;
2586 va_copy (args_copy, args);
2587
2588 const char *str = "";
2589 int number = 0;
2590 float fnumber = 0;
2591
2592 while (*format)
2593 {
2594 switch (*format++)
2595 {
2596 case '\''s'\'': // string
2597 str = va_arg (args_copy, const char *);
2598 break;
2599 case '\''d'\'': // int
2600 number = va_arg (args_copy, int);
2601 break;
2602 case '\''f'\'': // float
2603 fnumber = va_arg (args_copy, double);
2604 break;
2605 default:
2606 break;
2607 }
2608 }
2609 va_end (args_copy);
2610 va_end (args);
2611
2612 return *str && number && fnumber;
2613 }
2614 '
2615
2616 # Test code for whether the C compiler supports C99 (body of main).
2617 ac_c_conftest_c99_main='
2618 // Check bool.
2619 _Bool success = false;
2620 success |= (argc != 0);
2621
2622 // Check restrict.
2623 if (test_restrict ("String literal") == 0)
2624 success = true;
2625 char *restrict newvar = "Another string";
2626
2627 // Check varargs.
2628 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2629 test_varargs_macros ();
2630
2631 // Check flexible array members.
2632 struct incomplete_array *ia =
2633 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2634 ia->datasize = 10;
2635 for (int i = 0; i < ia->datasize; ++i)
2636 ia->data[i] = i * 1.234;
2637
2638 // Check named initializers.
2639 struct named_init ni = {
2640 .number = 34,
2641 .name = L"Test wide string",
2642 .average = 543.34343,
2643 };
2644
2645 ni.number = 58;
2646
2647 int dynamic_array[ni.number];
2648 dynamic_array[0] = argv[0][0];
2649 dynamic_array[ni.number - 1] = 543;
2650
2651 // work around unused variable warnings
2652 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2653 || dynamic_array[ni.number - 1] != 543);
2654 '
2655
2656 # Test code for whether the C compiler supports C11 (global declarations)
2657 ac_c_conftest_c11_globals='
2658 // Does the compiler advertise C11 conformance?
2659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2660 # error "Compiler does not advertise C11 conformance"
2661 #endif
2662
2663 // Check _Alignas.
2664 char _Alignas (double) aligned_as_double;
2665 char _Alignas (0) no_special_alignment;
2666 extern char aligned_as_int;
2667 char _Alignas (0) _Alignas (int) aligned_as_int;
2668
2669 // Check _Alignof.
2670 enum
2671 {
2672 int_alignment = _Alignof (int),
2673 int_array_alignment = _Alignof (int[100]),
2674 char_alignment = _Alignof (char)
2675 };
2676 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2677
2678 // Check _Noreturn.
2679 int _Noreturn does_not_return (void) { for (;;) continue; }
2680
2681 // Check _Static_assert.
2682 struct test_static_assert
2683 {
2684 int x;
2685 _Static_assert (sizeof (int) <= sizeof (long int),
2686 "_Static_assert does not work in struct");
2687 long int y;
2688 };
2689
2690 // Check UTF-8 literals.
2691 #define u8 syntax error!
2692 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2693
2694 // Check duplicate typedefs.
2695 typedef long *long_ptr;
2696 typedef long int *long_ptr;
2697 typedef long_ptr long_ptr;
2698
2699 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2700 struct anonymous
2701 {
2702 union {
2703 struct { int i; int j; };
2704 struct { int k; long int l; } w;
2705 };
2706 int m;
2707 } v1;
2708 '
2709
2710 # Test code for whether the C compiler supports C11 (body of main).
2711 ac_c_conftest_c11_main='
2712 _Static_assert ((offsetof (struct anonymous, i)
2713 == offsetof (struct anonymous, w.k)),
2714 "Anonymous union alignment botch");
2715 v1.i = 2;
2716 v1.w.k = 5;
2717 ok |= v1.i != 5;
2718 '
2719
2720 # Test code for whether the C compiler supports C11 (complete).
2721 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2722 ${ac_c_conftest_c99_globals}
2723 ${ac_c_conftest_c11_globals}
2724
2725 int
2726 main (int argc, char **argv)
2727 {
2728 int ok = 0;
2729 ${ac_c_conftest_c89_main}
2730 ${ac_c_conftest_c99_main}
2731 ${ac_c_conftest_c11_main}
2732 return ok;
2733 }
2734 "
2735
2736 # Test code for whether the C compiler supports C99 (complete).
2737 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2738 ${ac_c_conftest_c99_globals}
2739
2740 int
2741 main (int argc, char **argv)
2742 {
2743 int ok = 0;
2744 ${ac_c_conftest_c89_main}
2745 ${ac_c_conftest_c99_main}
2746 return ok;
2747 }
2748 "
2749
2750 # Test code for whether the C compiler supports C89 (complete).
2751 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2752
2753 int
2754 main (int argc, char **argv)
2755 {
2756 int ok = 0;
2757 ${ac_c_conftest_c89_main}
2758 return ok;
2759 }
2760 "
2761
2762 # Test code for whether the C++ compiler supports C++98 (global declarations)
2763 ac_cxx_conftest_cxx98_globals='
2764 // Does the compiler advertise C++98 conformance?
2765 #if !defined __cplusplus || __cplusplus < 199711L
2766 # error "Compiler does not advertise C++98 conformance"
2767 #endif
2768
2769 // These inclusions are to reject old compilers that
2770 // lack the unsuffixed header files.
2771 #include <cstdlib>
2772 #include <exception>
2773
2774 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2775 extern void assert (int);
2776 namespace std {
2777 extern int strcmp (const char *, const char *);
2778 }
2779
2780 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2781 using std::exception;
2782 using std::strcmp;
2783
2784 namespace {
2785
2786 void test_exception_syntax()
2787 {
2788 try {
2789 throw "test";
2790 } catch (const char *s) {
2791 // Extra parentheses suppress a warning when building autoconf itself,
2792 // due to lint rules shared with more typical C programs.
2793 assert (!(strcmp) (s, "test"));
2794 }
2795 }
2796
2797 template <typename T> struct test_template
2798 {
2799 T const val;
2800 explicit test_template(T t) : val(t) {}
2801 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2802 };
2803
2804 } // anonymous namespace
2805 '
2806
2807 # Test code for whether the C++ compiler supports C++98 (body of main)
2808 ac_cxx_conftest_cxx98_main='
2809 assert (argc);
2810 assert (! argv[0]);
2811 {
2812 test_exception_syntax ();
2813 test_template<double> tt (2.0);
2814 assert (tt.add (4) == 6.0);
2815 assert (true && !false);
2816 }
2817 '
2818
2819 # Test code for whether the C++ compiler supports C++11 (global declarations)
2820 ac_cxx_conftest_cxx11_globals='
2821 // Does the compiler advertise C++ 2011 conformance?
2822 #if !defined __cplusplus || __cplusplus < 201103L
2823 # error "Compiler does not advertise C++11 conformance"
2824 #endif
2825
2826 namespace cxx11test
2827 {
2828 constexpr int get_val() { return 20; }
2829
2830 struct testinit
2831 {
2832 int i;
2833 double d;
2834 };
2835
2836 class delegate
2837 {
2838 public:
2839 delegate(int n) : n(n) {}
2840 delegate(): delegate(2354) {}
2841
2842 virtual int getval() { return this->n; };
2843 protected:
2844 int n;
2845 };
2846
2847 class overridden : public delegate
2848 {
2849 public:
2850 overridden(int n): delegate(n) {}
2851 virtual int getval() override final { return this->n * 2; }
2852 };
2853
2854 class nocopy
2855 {
2856 public:
2857 nocopy(int i): i(i) {}
2858 nocopy() = default;
2859 nocopy(const nocopy&) = delete;
2860 nocopy & operator=(const nocopy&) = delete;
2861 private:
2862 int i;
2863 };
2864
2865 // for testing lambda expressions
2866 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2867 {
2868 return f(v);
2869 }
2870
2871 // for testing variadic templates and trailing return types
2872 template <typename V> auto sum(V first) -> V
2873 {
2874 return first;
2875 }
2876 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2877 {
2878 return first + sum(rest...);
2879 }
2880 }
2881 '
2882
2883 # Test code for whether the C++ compiler supports C++11 (body of main)
2884 ac_cxx_conftest_cxx11_main='
2885 {
2886 // Test auto and decltype
2887 auto a1 = 6538;
2888 auto a2 = 48573953.4;
2889 auto a3 = "String literal";
2890
2891 int total = 0;
2892 for (auto i = a3; *i; ++i) { total += *i; }
2893
2894 decltype(a2) a4 = 34895.034;
2895 }
2896 {
2897 // Test constexpr
2898 short sa[cxx11test::get_val()] = { 0 };
2899 }
2900 {
2901 // Test initializer lists
2902 cxx11test::testinit il = { 4323, 435234.23544 };
2903 }
2904 {
2905 // Test range-based for
2906 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2907 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2908 for (auto &x : array) { x += 23; }
2909 }
2910 {
2911 // Test lambda expressions
2912 using cxx11test::eval;
2913 assert (eval ([](int x) { return x*2; }, 21) == 42);
2914 double d = 2.0;
2915 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2916 assert (d == 5.0);
2917 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2918 assert (d == 5.0);
2919 }
2920 {
2921 // Test use of variadic templates
2922 using cxx11test::sum;
2923 auto a = sum(1);
2924 auto b = sum(1, 2);
2925 auto c = sum(1.0, 2.0, 3.0);
2926 }
2927 {
2928 // Test constructor delegation
2929 cxx11test::delegate d1;
2930 cxx11test::delegate d2();
2931 cxx11test::delegate d3(45);
2932 }
2933 {
2934 // Test override and final
2935 cxx11test::overridden o1(55464);
2936 }
2937 {
2938 // Test nullptr
2939 char *c = nullptr;
2940 }
2941 {
2942 // Test template brackets
2943 test_template<::test_template<int>> v(test_template<int>(12));
2944 }
2945 {
2946 // Unicode literals
2947 char const *utf8 = u8"UTF-8 string \u2500";
2948 char16_t const *utf16 = u"UTF-8 string \u2500";
2949 char32_t const *utf32 = U"UTF-32 string \u2500";
2950 }
2951 '
2952
2953 # Test code for whether the C compiler supports C++11 (complete).
2954 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2955 ${ac_cxx_conftest_cxx11_globals}
2956
2957 int
2958 main (int argc, char **argv)
2959 {
2960 int ok = 0;
2961 ${ac_cxx_conftest_cxx98_main}
2962 ${ac_cxx_conftest_cxx11_main}
2963 return ok;
2964 }
2965 "
2966
2967 # Test code for whether the C compiler supports C++98 (complete).
2968 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2969 int
2970 main (int argc, char **argv)
2971 {
2972 int ok = 0;
2973 ${ac_cxx_conftest_cxx98_main}
2974 return ok;
2975 }
2976 "
2977
2978 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2979 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2980 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2981 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2982 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2983 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2984 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2985 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2986 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2987 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2988 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2989 gt_needs="$gt_needs "
2990
2991 # Auxiliary files required by this configure script.
2992 ac_aux_files="config.rpath ltmain.sh config.guess config.sub compile missing install-sh"
2993
2994 # Locations in which to look for auxiliary files.
2995 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2996
2997 # Search for a directory containing all of the required auxiliary files,
2998 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2999 # If we don't find one directory that contains all the files we need,
3000 # we report the set of missing files from the *first* directory in
3001 # $ac_aux_dir_candidates and give up.
3002 ac_missing_aux_files=""
3003 ac_first_candidate=:
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 as_found=false
3007 for as_dir in $ac_aux_dir_candidates
3008 do
3009 IFS=$as_save_IFS
3010 case $as_dir in #(((
3011 '') as_dir=./ ;;
3012 */) ;;
3013 *) as_dir=$as_dir/ ;;
3014 esac
3015 as_found=:
3016
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3018 ac_aux_dir_found=yes
3019 ac_install_sh=
3020 for ac_aux in $ac_aux_files
3021 do
3022 # As a special case, if "install-sh" is required, that requirement
3023 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3024 # and $ac_install_sh is set appropriately for whichever one is found.
3025 if test x"$ac_aux" = x"install-sh"
3026 then
3027 if test -f "${as_dir}install-sh"; then
3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3029 ac_install_sh="${as_dir}install-sh -c"
3030 elif test -f "${as_dir}install.sh"; then
3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3032 ac_install_sh="${as_dir}install.sh -c"
3033 elif test -f "${as_dir}shtool"; then
3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3035 ac_install_sh="${as_dir}shtool install -c"
3036 else
3037 ac_aux_dir_found=no
3038 if $ac_first_candidate; then
3039 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3040 else
3041 break
3042 fi
3043 fi
3044 else
3045 if test -f "${as_dir}${ac_aux}"; then
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3047 else
3048 ac_aux_dir_found=no
3049 if $ac_first_candidate; then
3050 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3051 else
3052 break
3053 fi
3054 fi
3055 fi
3056 done
3057 if test "$ac_aux_dir_found" = yes; then
3058 ac_aux_dir="$as_dir"
3059 break
3060 fi
3061 ac_first_candidate=false
3062
3063 as_found=false
3064 done
3065 IFS=$as_save_IFS
3066 if $as_found
3067 then :
3068
3069 else $as_nop
3070 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3071 fi
3072
3073
3074 # These three variables are undocumented and unsupported,
3075 # and are intended to be withdrawn in a future Autoconf release.
3076 # They can cause serious problems if a builder's source tree is in a directory
3077 # whose full name contains unusual characters.
3078 if test -f "${ac_aux_dir}config.guess"; then
3079 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3080 fi
3081 if test -f "${ac_aux_dir}config.sub"; then
3082 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3083 fi
3084 if test -f "$ac_aux_dir/configure"; then
3085 ac_configure="$SHELL ${ac_aux_dir}configure"
3086 fi
3087
3088 # Check that the precious variables saved in the cache have kept the same
3089 # value.
3090 ac_cache_corrupted=false
3091 for ac_var in $ac_precious_vars; do
3092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3093 eval ac_new_set=\$ac_env_${ac_var}_set
3094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3095 eval ac_new_val=\$ac_env_${ac_var}_value
3096 case $ac_old_set,$ac_new_set in
3097 set,)
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3099 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3100 ac_cache_corrupted=: ;;
3101 ,set)
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3103 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3104 ac_cache_corrupted=: ;;
3105 ,);;
3106 *)
3107 if test "x$ac_old_val" != "x$ac_new_val"; then
3108 # differences in whitespace do not lead to failure.
3109 ac_old_val_w=`echo x $ac_old_val`
3110 ac_new_val_w=`echo x $ac_new_val`
3111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3113 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3114 ac_cache_corrupted=:
3115 else
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3117 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3118 eval $ac_var=\$ac_old_val
3119 fi
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3121 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3123 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3124 fi;;
3125 esac
3126 # Pass precious variables to config.status.
3127 if test "$ac_new_set" = set; then
3128 case $ac_new_val in
3129 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3130 *) ac_arg=$ac_var=$ac_new_val ;;
3131 esac
3132 case " $ac_configure_args " in
3133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3135 esac
3136 fi
3137 done
3138 if $ac_cache_corrupted; then
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3142 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3143 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3144 and start over" "$LINENO" 5
3145 fi
3146 ## -------------------- ##
3147 ## Main body of script. ##
3148 ## -------------------- ##
3149
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
3156
3157 am__api_version='1.16'
3158
3159
3160
3161 # Find a good install program. We prefer a C program (faster),
3162 # so one script is as good as another. But avoid the broken or
3163 # incompatible versions:
3164 # SysV /etc/install, /usr/sbin/install
3165 # SunOS /usr/etc/install
3166 # IRIX /sbin/install
3167 # AIX /bin/install
3168 # AmigaOS /C/install, which installs bootblocks on floppy discs
3169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3172 # OS/2's system install, which has a completely different semantic
3173 # ./install, which can be erroneously created by make from ./install.sh.
3174 # Reject install programs that cannot install multiple files.
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3176 printf %s "checking for a BSD-compatible install... " >&6; }
3177 if test -z "$INSTALL"; then
3178 if test ${ac_cv_path_install+y}
3179 then :
3180 printf %s "(cached) " >&6
3181 else $as_nop
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 case $as_dir in #(((
3187 '') as_dir=./ ;;
3188 */) ;;
3189 *) as_dir=$as_dir/ ;;
3190 esac
3191 # Account for fact that we put trailing slashes in our PATH walk.
3192 case $as_dir in #((
3193 ./ | /[cC]/* | \
3194 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3195 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3196 /usr/ucb/* ) ;;
3197 *)
3198 # OSF1 and SCO ODT 3.0 have their own names for install.
3199 # Don't use installbsd from OSF since it installs stuff as root
3200 # by default.
3201 for ac_prog in ginstall scoinst install; do
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3204 if test $ac_prog = install &&
3205 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3206 # AIX install. It has an incompatible calling convention.
3207 :
3208 elif test $ac_prog = install &&
3209 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3210 # program-specific install script used by HP pwplus--don't use.
3211 :
3212 else
3213 rm -rf conftest.one conftest.two conftest.dir
3214 echo one > conftest.one
3215 echo two > conftest.two
3216 mkdir conftest.dir
3217 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3218 test -s conftest.one && test -s conftest.two &&
3219 test -s conftest.dir/conftest.one &&
3220 test -s conftest.dir/conftest.two
3221 then
3222 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3223 break 3
3224 fi
3225 fi
3226 fi
3227 done
3228 done
3229 ;;
3230 esac
3231
3232 done
3233 IFS=$as_save_IFS
3234
3235 rm -rf conftest.one conftest.two conftest.dir
3236
3237 fi
3238 if test ${ac_cv_path_install+y}; then
3239 INSTALL=$ac_cv_path_install
3240 else
3241 # As a last resort, use the slow shell script. Don't cache a
3242 # value for INSTALL within a source directory, because that will
3243 # break other packages using the cache if that directory is
3244 # removed, or if the value is a relative name.
3245 INSTALL=$ac_install_sh
3246 fi
3247 fi
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3249 printf "%s\n" "$INSTALL" >&6; }
3250
3251 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3252 # It thinks the first close brace ends the variable substitution.
3253 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3254
3255 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3256
3257 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3258
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3260 printf %s "checking whether build environment is sane... " >&6; }
3261 # Reject unsafe characters in $srcdir or the absolute working directory
3262 # name. Accept space and tab only in the latter.
3263 am_lf='
3264 '
3265 case `pwd` in
3266 *[\\\"\#\$\&\'\`$am_lf]*)
3267 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3268 esac
3269 case $srcdir in
3270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3271 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3272 esac
3273
3274 # Do 'set' in a subshell so we don't clobber the current shell's
3275 # arguments. Must try -L first in case configure is actually a
3276 # symlink; some systems play weird games with the mod time of symlinks
3277 # (eg FreeBSD returns the mod time of the symlink's containing
3278 # directory).
3279 if (
3280 am_has_slept=no
3281 for am_try in 1 2; do
3282 echo "timestamp, slept: $am_has_slept" > conftest.file
3283 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3284 if test "$*" = "X"; then
3285 # -L didn't work.
3286 set X `ls -t "$srcdir/configure" conftest.file`
3287 fi
3288 if test "$*" != "X $srcdir/configure conftest.file" \
3289 && test "$*" != "X conftest.file $srcdir/configure"; then
3290
3291 # If neither matched, then we have a broken ls. This can happen
3292 # if, for instance, CONFIG_SHELL is bash and it inherits a
3293 # broken ls alias from the environment. This has actually
3294 # happened. Such a system could not be considered "sane".
3295 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3296 alias in your environment" "$LINENO" 5
3297 fi
3298 if test "$2" = conftest.file || test $am_try -eq 2; then
3299 break
3300 fi
3301 # Just in case.
3302 sleep 1
3303 am_has_slept=yes
3304 done
3305 test "$2" = conftest.file
3306 )
3307 then
3308 # Ok.
3309 :
3310 else
3311 as_fn_error $? "newly created file is older than distributed files!
3312 Check your system clock" "$LINENO" 5
3313 fi
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 printf "%s\n" "yes" >&6; }
3316 # If we didn't sleep, we still need to ensure time stamps of config.status and
3317 # generated files are strictly newer.
3318 am_sleep_pid=
3319 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3320 ( sleep 1 ) &
3321 am_sleep_pid=$!
3322 fi
3323
3324 rm -f conftest.file
3325
3326 test "$program_prefix" != NONE &&
3327 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3328 # Use a double $ so make ignores it.
3329 test "$program_suffix" != NONE &&
3330 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3331 # Double any \ or $.
3332 # By default was `s,x,x', remove it if useless.
3333 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3334 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3335
3336
3337 # Expand $ac_aux_dir to an absolute path.
3338 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3339
3340
3341 if test x"${MISSING+set}" != xset; then
3342 MISSING="\${SHELL} '$am_aux_dir/missing'"
3343 fi
3344 # Use eval to expand $SHELL
3345 if eval "$MISSING --is-lightweight"; then
3346 am_missing_run="$MISSING "
3347 else
3348 am_missing_run=
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3350 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3351 fi
3352
3353 if test x"${install_sh+set}" != xset; then
3354 case $am_aux_dir in
3355 *\ * | *\ *)
3356 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3357 *)
3358 install_sh="\${SHELL} $am_aux_dir/install-sh"
3359 esac
3360 fi
3361
3362 # Installed binaries are usually stripped using 'strip' when the user
3363 # run "make install-strip". However 'strip' might not be the right
3364 # tool to use in cross-compilation environments, therefore Automake
3365 # will honor the 'STRIP' environment variable to overrule this program.
3366 if test "$cross_compiling" != no; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}strip; ac_word=$2
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 printf %s "checking for $ac_word... " >&6; }
3372 if test ${ac_cv_prog_STRIP+y}
3373 then :
3374 printf %s "(cached) " >&6
3375 else $as_nop
3376 if test -n "$STRIP"; then
3377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 case $as_dir in #(((
3384 '') as_dir=./ ;;
3385 */) ;;
3386 *) as_dir=$as_dir/ ;;
3387 esac
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 STRIP=$ac_cv_prog_STRIP
3401 if test -n "$STRIP"; then
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3403 printf "%s\n" "$STRIP" >&6; }
3404 else
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 printf "%s\n" "no" >&6; }
3407 fi
3408
3409
3410 fi
3411 if test -z "$ac_cv_prog_STRIP"; then
3412 ac_ct_STRIP=$STRIP
3413 # Extract the first word of "strip", so it can be a program name with args.
3414 set dummy strip; ac_word=$2
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 printf %s "checking for $ac_word... " >&6; }
3417 if test ${ac_cv_prog_ac_ct_STRIP+y}
3418 then :
3419 printf %s "(cached) " >&6
3420 else $as_nop
3421 if test -n "$ac_ct_STRIP"; then
3422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 case $as_dir in #(((
3429 '') as_dir=./ ;;
3430 */) ;;
3431 *) as_dir=$as_dir/ ;;
3432 esac
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_ac_ct_STRIP="strip"
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3446 if test -n "$ac_ct_STRIP"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3448 printf "%s\n" "$ac_ct_STRIP" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454 if test "x$ac_ct_STRIP" = x; then
3455 STRIP=":"
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 STRIP=$ac_ct_STRIP
3464 fi
3465 else
3466 STRIP="$ac_cv_prog_STRIP"
3467 fi
3468
3469 fi
3470 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3471
3472
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3474 printf %s "checking for a race-free mkdir -p... " >&6; }
3475 if test -z "$MKDIR_P"; then
3476 if test ${ac_cv_path_mkdir+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else $as_nop
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3482 do
3483 IFS=$as_save_IFS
3484 case $as_dir in #(((
3485 '') as_dir=./ ;;
3486 */) ;;
3487 *) as_dir=$as_dir/ ;;
3488 esac
3489 for ac_prog in mkdir gmkdir; do
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3492 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3493 'mkdir ('*'coreutils) '* | \
3494 'BusyBox '* | \
3495 'mkdir (fileutils) '4.1*)
3496 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3497 break 3;;
3498 esac
3499 done
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505
3506 test -d ./--version && rmdir ./--version
3507 if test ${ac_cv_path_mkdir+y}; then
3508 MKDIR_P="$ac_cv_path_mkdir -p"
3509 else
3510 # As a last resort, use the slow shell script. Don't cache a
3511 # value for MKDIR_P within a source directory, because that will
3512 # break other packages using the cache if that directory is
3513 # removed, or if the value is a relative name.
3514 MKDIR_P="$ac_install_sh -d"
3515 fi
3516 fi
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3518 printf "%s\n" "$MKDIR_P" >&6; }
3519
3520 for ac_prog in gawk mawk nawk awk
3521 do
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 printf %s "checking for $ac_word... " >&6; }
3526 if test ${ac_cv_prog_AWK+y}
3527 then :
3528 printf %s "(cached) " >&6
3529 else $as_nop
3530 if test -n "$AWK"; then
3531 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 case $as_dir in #(((
3538 '') as_dir=./ ;;
3539 */) ;;
3540 *) as_dir=$as_dir/ ;;
3541 esac
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3544 ac_cv_prog_AWK="$ac_prog"
3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 AWK=$ac_cv_prog_AWK
3555 if test -n "$AWK"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3557 printf "%s\n" "$AWK" >&6; }
3558 else
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3561 fi
3562
3563
3564 test -n "$AWK" && break
3565 done
3566
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3568 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3569 set x ${MAKE-make}
3570 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3571 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else $as_nop
3575 cat >conftest.make <<\_ACEOF
3576 SHELL = /bin/sh
3577 all:
3578 @echo '@@@%%%=$(MAKE)=@@@%%%'
3579 _ACEOF
3580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3582 *@@@%%%=?*=@@@%%%*)
3583 eval ac_cv_prog_make_${ac_make}_set=yes;;
3584 *)
3585 eval ac_cv_prog_make_${ac_make}_set=no;;
3586 esac
3587 rm -f conftest.make
3588 fi
3589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591 printf "%s\n" "yes" >&6; }
3592 SET_MAKE=
3593 else
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 printf "%s\n" "no" >&6; }
3596 SET_MAKE="MAKE=${MAKE-make}"
3597 fi
3598
3599 rm -rf .tst 2>/dev/null
3600 mkdir .tst 2>/dev/null
3601 if test -d .tst; then
3602 am__leading_dot=.
3603 else
3604 am__leading_dot=_
3605 fi
3606 rmdir .tst 2>/dev/null
3607
3608 # Check whether --enable-silent-rules was given.
3609 if test ${enable_silent_rules+y}
3610 then :
3611 enableval=$enable_silent_rules;
3612 fi
3613
3614 case $enable_silent_rules in # (((
3615 yes) AM_DEFAULT_VERBOSITY=0;;
3616 no) AM_DEFAULT_VERBOSITY=1;;
3617 *) AM_DEFAULT_VERBOSITY=1;;
3618 esac
3619 am_make=${MAKE-make}
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3621 printf %s "checking whether $am_make supports nested variables... " >&6; }
3622 if test ${am_cv_make_support_nested_variables+y}
3623 then :
3624 printf %s "(cached) " >&6
3625 else $as_nop
3626 if printf "%s\n" 'TRUE=$(BAR$(V))
3627 BAR0=false
3628 BAR1=true
3629 V=1
3630 am__doit:
3631 @$(TRUE)
3632 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3633 am_cv_make_support_nested_variables=yes
3634 else
3635 am_cv_make_support_nested_variables=no
3636 fi
3637 fi
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3639 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3640 if test $am_cv_make_support_nested_variables = yes; then
3641 AM_V='$(V)'
3642 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3643 else
3644 AM_V=$AM_DEFAULT_VERBOSITY
3645 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3646 fi
3647 AM_BACKSLASH='\'
3648
3649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3651 # is not polluted with repeated "-I."
3652 am__isrc=' -I$(srcdir)'
3653 # test to see if srcdir already configured
3654 if test -f $srcdir/config.status; then
3655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3656 fi
3657 fi
3658
3659 # test whether we have cygpath
3660 if test -z "$CYGPATH_W"; then
3661 if (cygpath --version) >/dev/null 2>/dev/null; then
3662 CYGPATH_W='cygpath -w'
3663 else
3664 CYGPATH_W=echo
3665 fi
3666 fi
3667
3668
3669 # Define the identity of the package.
3670 PACKAGE='libvisual-plugins'
3671 VERSION='0.4.2'
3672
3673
3674 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3675
3676
3677 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3678
3679 # Some tools Automake needs.
3680
3681 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3682
3683
3684 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3685
3686
3687 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3688
3689
3690 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3691
3692
3693 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3694
3695 # For better backward compatibility. To be removed once Automake 1.9.x
3696 # dies out for good. For more background, see:
3697 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3698 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3699 mkdir_p='$(MKDIR_P)'
3700
3701 # We need awk for the "check" target (and possibly the TAP driver). The
3702 # system "awk" is bad on some platforms.
3703 # Always define AMTAR for backward compatibility. Yes, it's still used
3704 # in the wild :-( We should find a proper way to deprecate it ...
3705 AMTAR='$${TAR-tar}'
3706
3707
3708 # We'll loop over all known methods to create a tar archive until one works.
3709 _am_tools='gnutar pax cpio none'
3710
3711 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3712
3713
3714
3715
3716
3717 # Variables for tags utilities; see am/tags.am
3718 if test -z "$CTAGS"; then
3719 CTAGS=ctags
3720 fi
3721
3722 if test -z "$ETAGS"; then
3723 ETAGS=etags
3724 fi
3725
3726 if test -z "$CSCOPE"; then
3727 CSCOPE=cscope
3728 fi
3729
3730
3731
3732 # POSIX will say in a future version that running "rm -f" with no argument
3733 # is OK; and we want to be able to make that assumption in our Makefile
3734 # recipes. So use an aggressive probe to check that the usage we want is
3735 # actually supported "in the wild" to an acceptable degree.
3736 # See automake bug#10828.
3737 # To make any issue more visible, cause the running configure to be aborted
3738 # by default if the 'rm' program in use doesn't match our expectations; the
3739 # user can still override this though.
3740 if rm -f && rm -fr && rm -rf; then : OK; else
3741 cat >&2 <<'END'
3742 Oops!
3743
3744 Your 'rm' program seems unable to run without file operands specified
3745 on the command line, even when the '-f' option is present. This is contrary
3746 to the behaviour of most rm programs out there, and not conforming with
3747 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3748
3749 Please tell [email protected] about your system, including the value
3750 of your $PATH and any error possibly output before this message. This
3751 can help us improve future automake versions.
3752
3753 END
3754 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3755 echo 'Configuration will proceed anyway, since you have set the' >&2
3756 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3757 echo >&2
3758 else
3759 cat >&2 <<'END'
3760 Aborting the configuration process, to ensure you take notice of the issue.
3761
3762 You can download and install GNU coreutils to get an 'rm' implementation
3763 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3764
3765 If you want to complete the configuration process using your problematic
3766 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3767 to "yes", and re-run configure.
3768
3769 END
3770 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3771 fi
3772 fi
3773
3774
3775
3776 ac_config_headers="$ac_config_headers config.h"
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787 LIBVISUAL_PKG=libvisual-0.4
3788
3789
3790
3791
3792
3793
3794
3795
3796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 printf %s "checking for $ac_word... " >&6; }
3802 if test ${ac_cv_path_PKG_CONFIG+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else $as_nop
3806 case $PKG_CONFIG in
3807 [\\/]* | ?:[\\/]*)
3808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3809 ;;
3810 *)
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 case $as_dir in #(((
3816 '') as_dir=./ ;;
3817 */) ;;
3818 *) as_dir=$as_dir/ ;;
3819 esac
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 ;;
3831 esac
3832 fi
3833 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3834 if test -n "$PKG_CONFIG"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3836 printf "%s\n" "$PKG_CONFIG" >&6; }
3837 else
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842
3843 fi
3844 if test -z "$ac_cv_path_PKG_CONFIG"; then
3845 ac_pt_PKG_CONFIG=$PKG_CONFIG
3846 # Extract the first word of "pkg-config", so it can be a program name with args.
3847 set dummy pkg-config; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3851 then :
3852 printf %s "(cached) " >&6
3853 else $as_nop
3854 case $ac_pt_PKG_CONFIG in
3855 [\\/]* | ?:[\\/]*)
3856 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3857 ;;
3858 *)
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 case $as_dir in #(((
3864 '') as_dir=./ ;;
3865 */) ;;
3866 *) as_dir=$as_dir/ ;;
3867 esac
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 ;;
3879 esac
3880 fi
3881 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3882 if test -n "$ac_pt_PKG_CONFIG"; then
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3884 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3885 else
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 printf "%s\n" "no" >&6; }
3888 fi
3889
3890 if test "x$ac_pt_PKG_CONFIG" = x; then
3891 PKG_CONFIG=""
3892 else
3893 case $cross_compiling:$ac_tool_warned in
3894 yes:)
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897 ac_tool_warned=yes ;;
3898 esac
3899 PKG_CONFIG=$ac_pt_PKG_CONFIG
3900 fi
3901 else
3902 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3903 fi
3904
3905 fi
3906 if test -n "$PKG_CONFIG"; then
3907 _pkg_min_version=0.14
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3909 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3910 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 printf "%s\n" "yes" >&6; }
3913 else
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 printf "%s\n" "no" >&6; }
3916 PKG_CONFIG=""
3917 fi
3918 fi
3919 if test -z "$PKG_CONFIG"; then
3920 as_fn_error $? "*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" "$LINENO" 5
3921 fi
3922
3923
3924 pkg_failed=no
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libvisual-0.4 >= 0.4.2" >&5
3926 printf %s "checking for libvisual-0.4 >= 0.4.2... " >&6; }
3927
3928 if test -n "$LIBVISUAL_CFLAGS"; then
3929 pkg_cv_LIBVISUAL_CFLAGS="$LIBVISUAL_CFLAGS"
3930 elif test -n "$PKG_CONFIG"; then
3931 if test -n "$PKG_CONFIG" && \
3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisual-0.4 >= 0.4.2\""; } >&5
3933 ($PKG_CONFIG --exists --print-errors "libvisual-0.4 >= 0.4.2") 2>&5
3934 ac_status=$?
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then
3937 pkg_cv_LIBVISUAL_CFLAGS=`$PKG_CONFIG --cflags "libvisual-0.4 >= 0.4.2" 2>/dev/null`
3938 test "x$?" != "x0" && pkg_failed=yes
3939 else
3940 pkg_failed=yes
3941 fi
3942 else
3943 pkg_failed=untried
3944 fi
3945 if test -n "$LIBVISUAL_LIBS"; then
3946 pkg_cv_LIBVISUAL_LIBS="$LIBVISUAL_LIBS"
3947 elif test -n "$PKG_CONFIG"; then
3948 if test -n "$PKG_CONFIG" && \
3949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisual-0.4 >= 0.4.2\""; } >&5
3950 ($PKG_CONFIG --exists --print-errors "libvisual-0.4 >= 0.4.2") 2>&5
3951 ac_status=$?
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; then
3954 pkg_cv_LIBVISUAL_LIBS=`$PKG_CONFIG --libs "libvisual-0.4 >= 0.4.2" 2>/dev/null`
3955 test "x$?" != "x0" && pkg_failed=yes
3956 else
3957 pkg_failed=yes
3958 fi
3959 else
3960 pkg_failed=untried
3961 fi
3962
3963
3964
3965 if test $pkg_failed = yes; then
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 printf "%s\n" "no" >&6; }
3968
3969 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3970 _pkg_short_errors_supported=yes
3971 else
3972 _pkg_short_errors_supported=no
3973 fi
3974 if test $_pkg_short_errors_supported = yes; then
3975 LIBVISUAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvisual-0.4 >= 0.4.2" 2>&1`
3976 else
3977 LIBVISUAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvisual-0.4 >= 0.4.2" 2>&1`
3978 fi
3979 # Put the nasty error message in config.log where it belongs
3980 echo "$LIBVISUAL_PKG_ERRORS" >&5
3981
3982 as_fn_error $? "*** libvisual 0.4.2 not found.
3983 It is needed to build this package.
3984 You can download libvisual at http://libvisual.sf.net/" "$LINENO" 5
3985
3986 elif test $pkg_failed = untried; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 printf "%s\n" "no" >&6; }
3989 as_fn_error $? "*** libvisual 0.4.2 not found.
3990 It is needed to build this package.
3991 You can download libvisual at http://libvisual.sf.net/" "$LINENO" 5
3992
3993 else
3994 LIBVISUAL_CFLAGS=$pkg_cv_LIBVISUAL_CFLAGS
3995 LIBVISUAL_LIBS=$pkg_cv_LIBVISUAL_LIBS
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997 printf "%s\n" "yes" >&6; }
3998
3999 fi
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 printf %s "checking for $ac_word... " >&6; }
4020 if test ${ac_cv_prog_CC+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else $as_nop
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 CC=$ac_cv_prog_CC
4049 if test -n "$CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051 printf "%s\n" "$CC" >&6; }
4052 else
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4055 fi
4056
4057
4058 fi
4059 if test -z "$ac_cv_prog_CC"; then
4060 ac_ct_CC=$CC
4061 # Extract the first word of "gcc", so it can be a program name with args.
4062 set dummy gcc; ac_word=$2
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 printf %s "checking for $ac_word... " >&6; }
4065 if test ${ac_cv_prog_ac_ct_CC+y}
4066 then :
4067 printf %s "(cached) " >&6
4068 else $as_nop
4069 if test -n "$ac_ct_CC"; then
4070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 case $as_dir in #(((
4077 '') as_dir=./ ;;
4078 */) ;;
4079 *) as_dir=$as_dir/ ;;
4080 esac
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CC="gcc"
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 printf "%s\n" "$ac_ct_CC" >&6; }
4097 else
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 printf "%s\n" "no" >&6; }
4100 fi
4101
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 CC=$ac_ct_CC
4112 fi
4113 else
4114 CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 printf %s "checking for $ac_word... " >&6; }
4123 if test ${ac_cv_prog_CC+y}
4124 then :
4125 printf %s "(cached) " >&6
4126 else $as_nop
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 case $as_dir in #(((
4135 '') as_dir=./ ;;
4136 */) ;;
4137 *) as_dir=$as_dir/ ;;
4138 esac
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_CC="${ac_tool_prefix}cc"
4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 CC=$ac_cv_prog_CC
4152 if test -n "$CC"; then
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154 printf "%s\n" "$CC" >&6; }
4155 else
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 fi
4159
4160
4161 fi
4162 fi
4163 if test -z "$CC"; then
4164 # Extract the first word of "cc", so it can be a program name with args.
4165 set dummy cc; ac_word=$2
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 printf %s "checking for $ac_word... " >&6; }
4168 if test ${ac_cv_prog_CC+y}
4169 then :
4170 printf %s "(cached) " >&6
4171 else $as_nop
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 ac_prog_rejected=no
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179 IFS=$as_save_IFS
4180 case $as_dir in #(((
4181 '') as_dir=./ ;;
4182 */) ;;
4183 *) as_dir=$as_dir/ ;;
4184 esac
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4187 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188 ac_prog_rejected=yes
4189 continue
4190 fi
4191 ac_cv_prog_CC="cc"
4192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 if test $ac_prog_rejected = yes; then
4200 # We found a bogon in the path, so make sure we never use it.
4201 set dummy $ac_cv_prog_CC
4202 shift
4203 if test $# != 0; then
4204 # We chose a different compiler from the bogus one.
4205 # However, it has the same basename, so the bogon will be chosen
4206 # first if we set CC to just the basename; use the full file name.
4207 shift
4208 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4209 fi
4210 fi
4211 fi
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 printf "%s\n" "$CC" >&6; }
4217 else
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 printf "%s\n" "no" >&6; }
4220 fi
4221
4222
4223 fi
4224 if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 for ac_prog in cl.exe
4227 do
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 printf %s "checking for $ac_word... " >&6; }
4232 if test ${ac_cv_prog_CC+y}
4233 then :
4234 printf %s "(cached) " >&6
4235 else $as_nop
4236 if test -n "$CC"; then
4237 ac_cv_prog_CC="$CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242 IFS=$as_save_IFS
4243 case $as_dir in #(((
4244 '') as_dir=./ ;;
4245 */) ;;
4246 *) as_dir=$as_dir/ ;;
4247 esac
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 printf "%s\n" "$CC" >&6; }
4264 else
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 printf "%s\n" "no" >&6; }
4267 fi
4268
4269
4270 test -n "$CC" && break
4271 done
4272 fi
4273 if test -z "$CC"; then
4274 ac_ct_CC=$CC
4275 for ac_prog in cl.exe
4276 do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 printf %s "checking for $ac_word... " >&6; }
4281 if test ${ac_cv_prog_ac_ct_CC+y}
4282 then :
4283 printf %s "(cached) " >&6
4284 else $as_nop
4285 if test -n "$ac_ct_CC"; then
4286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291 IFS=$as_save_IFS
4292 case $as_dir in #(((
4293 '') as_dir=./ ;;
4294 */) ;;
4295 *) as_dir=$as_dir/ ;;
4296 esac
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC="$ac_prog"
4300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 printf "%s\n" "$ac_ct_CC" >&6; }
4313 else
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 printf "%s\n" "no" >&6; }
4316 fi
4317
4318
4319 test -n "$ac_ct_CC" && break
4320 done
4321
4322 if test "x$ac_ct_CC" = x; then
4323 CC=""
4324 else
4325 case $cross_compiling:$ac_tool_warned in
4326 yes:)
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4330 esac
4331 CC=$ac_ct_CC
4332 fi
4333 fi
4334
4335 fi
4336 if test -z "$CC"; then
4337 if test -n "$ac_tool_prefix"; then
4338 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4339 set dummy ${ac_tool_prefix}clang; ac_word=$2
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 printf %s "checking for $ac_word... " >&6; }
4342 if test ${ac_cv_prog_CC+y}
4343 then :
4344 printf %s "(cached) " >&6
4345 else $as_nop
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 case $as_dir in #(((
4354 '') as_dir=./ ;;
4355 */) ;;
4356 *) as_dir=$as_dir/ ;;
4357 esac
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_CC="${ac_tool_prefix}clang"
4361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 CC=$ac_cv_prog_CC
4371 if test -n "$CC"; then
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4373 printf "%s\n" "$CC" >&6; }
4374 else
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 printf "%s\n" "no" >&6; }
4377 fi
4378
4379
4380 fi
4381 if test -z "$ac_cv_prog_CC"; then
4382 ac_ct_CC=$CC
4383 # Extract the first word of "clang", so it can be a program name with args.
4384 set dummy clang; ac_word=$2
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 printf %s "checking for $ac_word... " >&6; }
4387 if test ${ac_cv_prog_ac_ct_CC+y}
4388 then :
4389 printf %s "(cached) " >&6
4390 else $as_nop
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397 IFS=$as_save_IFS
4398 case $as_dir in #(((
4399 '') as_dir=./ ;;
4400 */) ;;
4401 *) as_dir=$as_dir/ ;;
4402 esac
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4405 ac_cv_prog_ac_ct_CC="clang"
4406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4416 if test -n "$ac_ct_CC"; then
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4418 printf "%s\n" "$ac_ct_CC" >&6; }
4419 else
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 printf "%s\n" "no" >&6; }
4422 fi
4423
4424 if test "x$ac_ct_CC" = x; then
4425 CC=""
4426 else
4427 case $cross_compiling:$ac_tool_warned in
4428 yes:)
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4431 ac_tool_warned=yes ;;
4432 esac
4433 CC=$ac_ct_CC
4434 fi
4435 else
4436 CC="$ac_cv_prog_CC"
4437 fi
4438
4439 fi
4440
4441
4442 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "no acceptable C compiler found in \$PATH
4445 See \`config.log' for more details" "$LINENO" 5; }
4446
4447 # Provide some information about the compiler.
4448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4449 set X $ac_compile
4450 ac_compiler=$2
4451 for ac_option in --version -v -V -qversion -version; do
4452 { { ac_try="$ac_compiler $ac_option >&5"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 printf "%s\n" "$ac_try_echo"; } >&5
4459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4460 ac_status=$?
4461 if test -s conftest.err; then
4462 sed '10a\
4463 ... rest of stderr output deleted ...
4464 10q' conftest.err >conftest.er1
4465 cat conftest.er1 >&5
4466 fi
4467 rm -f conftest.er1 conftest.err
4468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469 test $ac_status = 0; }
4470 done
4471
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474
4475 int
4476 main (void)
4477 {
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 ac_clean_files_save=$ac_clean_files
4484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4485 # Try to create an executable without -o first, disregard a.out.
4486 # It will help us diagnose broken compilers, and finding out an intuition
4487 # of exeext.
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4489 printf %s "checking whether the C compiler works... " >&6; }
4490 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4491
4492 # The possible output files:
4493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4494
4495 ac_rmfiles=
4496 for ac_file in $ac_files
4497 do
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4501 esac
4502 done
4503 rm -f $ac_rmfiles
4504
4505 if { { ac_try="$ac_link_default"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 printf "%s\n" "$ac_try_echo"; } >&5
4512 (eval "$ac_link_default") 2>&5
4513 ac_status=$?
4514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 then :
4517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4520 # so that the user can short-circuit this test for compilers unknown to
4521 # Autoconf.
4522 for ac_file in $ac_files ''
4523 do
4524 test -f "$ac_file" || continue
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4527 ;;
4528 [ab].out )
4529 # We found the default executable, but exeext='' is most
4530 # certainly right.
4531 break;;
4532 *.* )
4533 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4534 then :; else
4535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4536 fi
4537 # We set ac_cv_exeext here because the later test for it is not
4538 # safe: cross compilers may not add the suffix if given an `-o'
4539 # argument, so we may need to know it at that point already.
4540 # Even if this section looks crufty: it has the advantage of
4541 # actually working.
4542 break;;
4543 * )
4544 break;;
4545 esac
4546 done
4547 test "$ac_cv_exeext" = no && ac_cv_exeext=
4548
4549 else $as_nop
4550 ac_file=''
4551 fi
4552 if test -z "$ac_file"
4553 then :
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 printf "%s\n" "no" >&6; }
4556 printf "%s\n" "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4560 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4561 as_fn_error 77 "C compiler cannot create executables
4562 See \`config.log' for more details" "$LINENO" 5; }
4563 else $as_nop
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 printf "%s\n" "yes" >&6; }
4566 fi
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4568 printf %s "checking for C compiler default output file name... " >&6; }
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4570 printf "%s\n" "$ac_file" >&6; }
4571 ac_exeext=$ac_cv_exeext
4572
4573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4574 ac_clean_files=$ac_clean_files_save
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4576 printf %s "checking for suffix of executables... " >&6; }
4577 if { { ac_try="$ac_link"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 printf "%s\n" "$ac_try_echo"; } >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }
4588 then :
4589 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4590 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4591 # work properly (i.e., refer to `conftest.exe'), while it won't with
4592 # `rm'.
4593 for ac_file in conftest.exe conftest conftest.*; do
4594 test -f "$ac_file" || continue
4595 case $ac_file in
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4598 break;;
4599 * ) break;;
4600 esac
4601 done
4602 else $as_nop
4603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4606 See \`config.log' for more details" "$LINENO" 5; }
4607 fi
4608 rm -f conftest conftest$ac_cv_exeext
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4610 printf "%s\n" "$ac_cv_exeext" >&6; }
4611
4612 rm -f conftest.$ac_ext
4613 EXEEXT=$ac_cv_exeext
4614 ac_exeext=$EXEEXT
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <stdio.h>
4618 int
4619 main (void)
4620 {
4621 FILE *f = fopen ("conftest.out", "w");
4622 return ferror (f) || fclose (f) != 0;
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 ac_clean_files="$ac_clean_files conftest.out"
4629 # Check that the compiler produces executables we can run. If not, either
4630 # the compiler is broken, or we cross compile.
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4632 printf %s "checking whether we are cross compiling... " >&6; }
4633 if test "$cross_compiling" != yes; then
4634 { { ac_try="$ac_link"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 printf "%s\n" "$ac_try_echo"; } >&5
4641 (eval "$ac_link") 2>&5
4642 ac_status=$?
4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }
4645 if { ac_try='./conftest$ac_cv_exeext'
4646 { { case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 printf "%s\n" "$ac_try_echo"; } >&5
4652 (eval "$ac_try") 2>&5
4653 ac_status=$?
4654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655 test $ac_status = 0; }; }; then
4656 cross_compiling=no
4657 else
4658 if test "$cross_compiling" = maybe; then
4659 cross_compiling=yes
4660 else
4661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4663 as_fn_error 77 "cannot run C compiled programs.
4664 If you meant to cross compile, use \`--host'.
4665 See \`config.log' for more details" "$LINENO" 5; }
4666 fi
4667 fi
4668 fi
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4670 printf "%s\n" "$cross_compiling" >&6; }
4671
4672 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4673 ac_clean_files=$ac_clean_files_save
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4675 printf %s "checking for suffix of object files... " >&6; }
4676 if test ${ac_cv_objext+y}
4677 then :
4678 printf %s "(cached) " >&6
4679 else $as_nop
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682
4683 int
4684 main (void)
4685 {
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.o conftest.obj
4692 if { { ac_try="$ac_compile"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4698 printf "%s\n" "$ac_try_echo"; } >&5
4699 (eval "$ac_compile") 2>&5
4700 ac_status=$?
4701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702 test $ac_status = 0; }
4703 then :
4704 for ac_file in conftest.o conftest.obj conftest.*; do
4705 test -f "$ac_file" || continue;
4706 case $ac_file in
4707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4709 break;;
4710 esac
4711 done
4712 else $as_nop
4713 printf "%s\n" "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4718 as_fn_error $? "cannot compute suffix of object files: cannot compile
4719 See \`config.log' for more details" "$LINENO" 5; }
4720 fi
4721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4722 fi
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4724 printf "%s\n" "$ac_cv_objext" >&6; }
4725 OBJEXT=$ac_cv_objext
4726 ac_objext=$OBJEXT
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4728 printf %s "checking whether the compiler supports GNU C... " >&6; }
4729 if test ${ac_cv_c_compiler_gnu+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else $as_nop
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735
4736 int
4737 main (void)
4738 {
4739 #ifndef __GNUC__
4740 choke me
4741 #endif
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"
4748 then :
4749 ac_compiler_gnu=yes
4750 else $as_nop
4751 ac_compiler_gnu=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4755
4756 fi
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4758 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760
4761 if test $ac_compiler_gnu = yes; then
4762 GCC=yes
4763 else
4764 GCC=
4765 fi
4766 ac_test_CFLAGS=${CFLAGS+y}
4767 ac_save_CFLAGS=$CFLAGS
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4769 printf %s "checking whether $CC accepts -g... " >&6; }
4770 if test ${ac_cv_prog_cc_g+y}
4771 then :
4772 printf %s "(cached) " >&6
4773 else $as_nop
4774 ac_save_c_werror_flag=$ac_c_werror_flag
4775 ac_c_werror_flag=yes
4776 ac_cv_prog_cc_g=no
4777 CFLAGS="-g"
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main (void)
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"
4790 then :
4791 ac_cv_prog_cc_g=yes
4792 else $as_nop
4793 CFLAGS=""
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main (void)
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"
4806 then :
4807
4808 else $as_nop
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4810 CFLAGS="-g"
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main (void)
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"
4823 then :
4824 ac_cv_prog_cc_g=yes
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4831 ac_c_werror_flag=$ac_save_c_werror_flag
4832 fi
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4834 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4835 if test $ac_test_CFLAGS; then
4836 CFLAGS=$ac_save_CFLAGS
4837 elif test $ac_cv_prog_cc_g = yes; then
4838 if test "$GCC" = yes; then
4839 CFLAGS="-g -O2"
4840 else
4841 CFLAGS="-g"
4842 fi
4843 else
4844 if test "$GCC" = yes; then
4845 CFLAGS="-O2"
4846 else
4847 CFLAGS=
4848 fi
4849 fi
4850 ac_prog_cc_stdc=no
4851 if test x$ac_prog_cc_stdc = xno
4852 then :
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4854 printf %s "checking for $CC option to enable C11 features... " >&6; }
4855 if test ${ac_cv_prog_cc_c11+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else $as_nop
4859 ac_cv_prog_cc_c11=no
4860 ac_save_CC=$CC
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 $ac_c_conftest_c11_program
4864 _ACEOF
4865 for ac_arg in '' -std=gnu11
4866 do
4867 CC="$ac_save_CC $ac_arg"
4868 if ac_fn_c_try_compile "$LINENO"
4869 then :
4870 ac_cv_prog_cc_c11=$ac_arg
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.beam
4873 test "x$ac_cv_prog_cc_c11" != "xno" && break
4874 done
4875 rm -f conftest.$ac_ext
4876 CC=$ac_save_CC
4877 fi
4878
4879 if test "x$ac_cv_prog_cc_c11" = xno
4880 then :
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4882 printf "%s\n" "unsupported" >&6; }
4883 else $as_nop
4884 if test "x$ac_cv_prog_cc_c11" = x
4885 then :
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4887 printf "%s\n" "none needed" >&6; }
4888 else $as_nop
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4890 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4891 CC="$CC $ac_cv_prog_cc_c11"
4892 fi
4893 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4894 ac_prog_cc_stdc=c11
4895 fi
4896 fi
4897 if test x$ac_prog_cc_stdc = xno
4898 then :
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4900 printf %s "checking for $CC option to enable C99 features... " >&6; }
4901 if test ${ac_cv_prog_cc_c99+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 ac_cv_prog_cc_c99=no
4906 ac_save_CC=$CC
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 $ac_c_conftest_c99_program
4910 _ACEOF
4911 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4912 do
4913 CC="$ac_save_CC $ac_arg"
4914 if ac_fn_c_try_compile "$LINENO"
4915 then :
4916 ac_cv_prog_cc_c99=$ac_arg
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.beam
4919 test "x$ac_cv_prog_cc_c99" != "xno" && break
4920 done
4921 rm -f conftest.$ac_ext
4922 CC=$ac_save_CC
4923 fi
4924
4925 if test "x$ac_cv_prog_cc_c99" = xno
4926 then :
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4928 printf "%s\n" "unsupported" >&6; }
4929 else $as_nop
4930 if test "x$ac_cv_prog_cc_c99" = x
4931 then :
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 printf "%s\n" "none needed" >&6; }
4934 else $as_nop
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4936 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4937 CC="$CC $ac_cv_prog_cc_c99"
4938 fi
4939 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4940 ac_prog_cc_stdc=c99
4941 fi
4942 fi
4943 if test x$ac_prog_cc_stdc = xno
4944 then :
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4946 printf %s "checking for $CC option to enable C89 features... " >&6; }
4947 if test ${ac_cv_prog_cc_c89+y}
4948 then :
4949 printf %s "(cached) " >&6
4950 else $as_nop
4951 ac_cv_prog_cc_c89=no
4952 ac_save_CC=$CC
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 $ac_c_conftest_c89_program
4956 _ACEOF
4957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4958 do
4959 CC="$ac_save_CC $ac_arg"
4960 if ac_fn_c_try_compile "$LINENO"
4961 then :
4962 ac_cv_prog_cc_c89=$ac_arg
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.beam
4965 test "x$ac_cv_prog_cc_c89" != "xno" && break
4966 done
4967 rm -f conftest.$ac_ext
4968 CC=$ac_save_CC
4969 fi
4970
4971 if test "x$ac_cv_prog_cc_c89" = xno
4972 then :
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4974 printf "%s\n" "unsupported" >&6; }
4975 else $as_nop
4976 if test "x$ac_cv_prog_cc_c89" = x
4977 then :
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4979 printf "%s\n" "none needed" >&6; }
4980 else $as_nop
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4982 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4983 CC="$CC $ac_cv_prog_cc_c89"
4984 fi
4985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4986 ac_prog_cc_stdc=c89
4987 fi
4988 fi
4989
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996
4997 ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5003 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5004 if test ${am_cv_prog_cc_c_o+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else $as_nop
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int
5012 main (void)
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 # Make sure it works both with $CC and with simple cc.
5020 # Following AC_PROG_CC_C_O, we do the test twice because some
5021 # compilers refuse to overwrite an existing .o file with -o,
5022 # though they will create one.
5023 am_cv_prog_cc_c_o=yes
5024 for am_i in 1 2; do
5025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } \
5030 && test -f conftest2.$ac_objext; then
5031 : OK
5032 else
5033 am_cv_prog_cc_c_o=no
5034 break
5035 fi
5036 done
5037 rm -f core conftest*
5038 unset am_i
5039 fi
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5041 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5042 if test "$am_cv_prog_cc_c_o" != yes; then
5043 # Losing compiler, so override with the script.
5044 # FIXME: It is wrong to rewrite CC.
5045 # But if we don't then we get into trouble of one sort or another.
5046 # A longer-term fix would be to have automake use am__CC in this case,
5047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5048 CC="$am_aux_dir/compile $CC"
5049 fi
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056 DEPDIR="${am__leading_dot}deps"
5057
5058 ac_config_commands="$ac_config_commands depfiles"
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5061 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5062 cat > confinc.mk << 'END'
5063 am__doit:
5064 @echo this is the am__doit target >confinc.out
5065 .PHONY: am__doit
5066 END
5067 am__include="#"
5068 am__quote=
5069 # BSD make does it like this.
5070 echo '.include "confinc.mk" # ignored' > confmf.BSD
5071 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5072 echo 'include confinc.mk # ignored' > confmf.GNU
5073 _am_result=no
5074 for s in GNU BSD; do
5075 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5076 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }
5080 case $?:`cat confinc.out 2>/dev/null` in #(
5081 '0:this is the am__doit target') :
5082 case $s in #(
5083 BSD) :
5084 am__include='.include' am__quote='"' ;; #(
5085 *) :
5086 am__include='include' am__quote='' ;;
5087 esac ;; #(
5088 *) :
5089 ;;
5090 esac
5091 if test "$am__include" != "#"; then
5092 _am_result="yes ($s style)"
5093 break
5094 fi
5095 done
5096 rm -f confinc.* confmf.*
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5098 printf "%s\n" "${_am_result}" >&6; }
5099
5100 # Check whether --enable-dependency-tracking was given.
5101 if test ${enable_dependency_tracking+y}
5102 then :
5103 enableval=$enable_dependency_tracking;
5104 fi
5105
5106 if test "x$enable_dependency_tracking" != xno; then
5107 am_depcomp="$ac_aux_dir/depcomp"
5108 AMDEPBACKSLASH='\'
5109 am__nodep='_no'
5110 fi
5111 if test "x$enable_dependency_tracking" != xno; then
5112 AMDEP_TRUE=
5113 AMDEP_FALSE='#'
5114 else
5115 AMDEP_TRUE='#'
5116 AMDEP_FALSE=
5117 fi
5118
5119
5120
5121 depcc="$CC" am_compiler_list=
5122
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5124 printf %s "checking dependency style of $depcc... " >&6; }
5125 if test ${am_cv_CC_dependencies_compiler_type+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else $as_nop
5129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5130 # We make a subdir and do the tests there. Otherwise we can end up
5131 # making bogus files that we don't know about and never remove. For
5132 # instance it was reported that on HP-UX the gcc test will end up
5133 # making a dummy file named 'D' -- because '-MD' means "put the output
5134 # in D".
5135 rm -rf conftest.dir
5136 mkdir conftest.dir
5137 # Copy depcomp to subdir because otherwise we won't find it if we're
5138 # using a relative directory.
5139 cp "$am_depcomp" conftest.dir
5140 cd conftest.dir
5141 # We will build objects and dependencies in a subdirectory because
5142 # it helps to detect inapplicable dependency modes. For instance
5143 # both Tru64's cc and ICC support -MD to output dependencies as a
5144 # side effect of compilation, but ICC will put the dependencies in
5145 # the current directory while Tru64 will put them in the object
5146 # directory.
5147 mkdir sub
5148
5149 am_cv_CC_dependencies_compiler_type=none
5150 if test "$am_compiler_list" = ""; then
5151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5152 fi
5153 am__universal=false
5154 case " $depcc " in #(
5155 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5156 esac
5157
5158 for depmode in $am_compiler_list; do
5159 # Setup a source with many dependencies, because some compilers
5160 # like to wrap large dependency lists on column 80 (with \), and
5161 # we should not choose a depcomp mode which is confused by this.
5162 #
5163 # We need to recreate these files for each test, as the compiler may
5164 # overwrite some of them when testing with obscure command lines.
5165 # This happens at least with the AIX C compiler.
5166 : > sub/conftest.c
5167 for i in 1 2 3 4 5 6; do
5168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5169 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5170 # Solaris 10 /bin/sh.
5171 echo '/* dummy */' > sub/conftst$i.h
5172 done
5173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5174
5175 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5176 # mode. It turns out that the SunPro C++ compiler does not properly
5177 # handle '-M -o', and we need to detect this. Also, some Intel
5178 # versions had trouble with output in subdirs.
5179 am__obj=sub/conftest.${OBJEXT-o}
5180 am__minus_obj="-o $am__obj"
5181 case $depmode in
5182 gcc)
5183 # This depmode causes a compiler race in universal mode.
5184 test "$am__universal" = false || continue
5185 ;;
5186 nosideeffect)
5187 # After this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested.
5189 if test "x$enable_dependency_tracking" = xyes; then
5190 continue
5191 else
5192 break
5193 fi
5194 ;;
5195 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5196 # This compiler won't grok '-c -o', but also, the minuso test has
5197 # not run yet. These depmodes are late enough in the game, and
5198 # so weak that their functioning should not be impacted.
5199 am__obj=conftest.${OBJEXT-o}
5200 am__minus_obj=
5201 ;;
5202 none) break ;;
5203 esac
5204 if depmode=$depmode \
5205 source=sub/conftest.c object=$am__obj \
5206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5207 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5208 >/dev/null 2>conftest.err &&
5209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5211 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5213 # icc doesn't choke on unknown options, it will just issue warnings
5214 # or remarks (even with -Werror). So we grep stderr for any message
5215 # that says an option was ignored or not supported.
5216 # When given -MP, icc 7.0 and 7.1 complain thusly:
5217 # icc: Command line warning: ignoring option '-M'; no argument required
5218 # The diagnosis changed in icc 8.0:
5219 # icc: Command line remark: option '-MP' not supported
5220 if (grep 'ignoring option' conftest.err ||
5221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5222 am_cv_CC_dependencies_compiler_type=$depmode
5223 break
5224 fi
5225 fi
5226 done
5227
5228 cd ..
5229 rm -rf conftest.dir
5230 else
5231 am_cv_CC_dependencies_compiler_type=none
5232 fi
5233
5234 fi
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5236 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5238
5239 if
5240 test "x$enable_dependency_tracking" != xno \
5241 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5242 am__fastdepCC_TRUE=
5243 am__fastdepCC_FALSE='#'
5244 else
5245 am__fastdepCC_TRUE='#'
5246 am__fastdepCC_FALSE=
5247 fi
5248
5249
5250
5251
5252
5253
5254
5255
5256 ac_ext=cpp
5257 ac_cpp='$CXXCPP $CPPFLAGS'
5258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5261 if test -z "$CXX"; then
5262 if test -n "$CCC"; then
5263 CXX=$CCC
5264 else
5265 if test -n "$ac_tool_prefix"; then
5266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5267 do
5268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 printf %s "checking for $ac_word... " >&6; }
5272 if test ${ac_cv_prog_CXX+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 if test -n "$CXX"; then
5277 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 case $as_dir in #(((
5284 '') as_dir=./ ;;
5285 */) ;;
5286 *) as_dir=$as_dir/ ;;
5287 esac
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 CXX=$ac_cv_prog_CXX
5301 if test -n "$CXX"; then
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5303 printf "%s\n" "$CXX" >&6; }
5304 else
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 printf "%s\n" "no" >&6; }
5307 fi
5308
5309
5310 test -n "$CXX" && break
5311 done
5312 fi
5313 if test -z "$CXX"; then
5314 ac_ct_CXX=$CXX
5315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5316 do
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 printf %s "checking for $ac_word... " >&6; }
5321 if test ${ac_cv_prog_ac_ct_CXX+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 if test -n "$ac_ct_CXX"; then
5326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 case $as_dir in #(((
5333 '') as_dir=./ ;;
5334 */) ;;
5335 *) as_dir=$as_dir/ ;;
5336 esac
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_ac_ct_CXX="$ac_prog"
5340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343 done
5344 done
5345 IFS=$as_save_IFS
5346
5347 fi
5348 fi
5349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5350 if test -n "$ac_ct_CXX"; then
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5352 printf "%s\n" "$ac_ct_CXX" >&6; }
5353 else
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 printf "%s\n" "no" >&6; }
5356 fi
5357
5358
5359 test -n "$ac_ct_CXX" && break
5360 done
5361
5362 if test "x$ac_ct_CXX" = x; then
5363 CXX="g++"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366 yes:)
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 ac_tool_warned=yes ;;
5370 esac
5371 CXX=$ac_ct_CXX
5372 fi
5373 fi
5374
5375 fi
5376 fi
5377 # Provide some information about the compiler.
5378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5379 set X $ac_compile
5380 ac_compiler=$2
5381 for ac_option in --version -v -V -qversion; do
5382 { { ac_try="$ac_compiler $ac_option >&5"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 printf "%s\n" "$ac_try_echo"; } >&5
5389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5390 ac_status=$?
5391 if test -s conftest.err; then
5392 sed '10a\
5393 ... rest of stderr output deleted ...
5394 10q' conftest.err >conftest.er1
5395 cat conftest.er1 >&5
5396 fi
5397 rm -f conftest.er1 conftest.err
5398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 done
5401
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5403 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5404 if test ${ac_cv_cxx_compiler_gnu+y}
5405 then :
5406 printf %s "(cached) " >&6
5407 else $as_nop
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410
5411 int
5412 main (void)
5413 {
5414 #ifndef __GNUC__
5415 choke me
5416 #endif
5417
5418 ;
5419 return 0;
5420 }
5421 _ACEOF
5422 if ac_fn_cxx_try_compile "$LINENO"
5423 then :
5424 ac_compiler_gnu=yes
5425 else $as_nop
5426 ac_compiler_gnu=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5430
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5433 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435
5436 if test $ac_compiler_gnu = yes; then
5437 GXX=yes
5438 else
5439 GXX=
5440 fi
5441 ac_test_CXXFLAGS=${CXXFLAGS+y}
5442 ac_save_CXXFLAGS=$CXXFLAGS
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5444 printf %s "checking whether $CXX accepts -g... " >&6; }
5445 if test ${ac_cv_prog_cxx_g+y}
5446 then :
5447 printf %s "(cached) " >&6
5448 else $as_nop
5449 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5450 ac_cxx_werror_flag=yes
5451 ac_cv_prog_cxx_g=no
5452 CXXFLAGS="-g"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455
5456 int
5457 main (void)
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_cxx_try_compile "$LINENO"
5465 then :
5466 ac_cv_prog_cxx_g=yes
5467 else $as_nop
5468 CXXFLAGS=""
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471
5472 int
5473 main (void)
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_cxx_try_compile "$LINENO"
5481 then :
5482
5483 else $as_nop
5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5485 CXXFLAGS="-g"
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488
5489 int
5490 main (void)
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_cxx_try_compile "$LINENO"
5498 then :
5499 ac_cv_prog_cxx_g=yes
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5509 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5510 if test $ac_test_CXXFLAGS; then
5511 CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513 if test "$GXX" = yes; then
5514 CXXFLAGS="-g -O2"
5515 else
5516 CXXFLAGS="-g"
5517 fi
5518 else
5519 if test "$GXX" = yes; then
5520 CXXFLAGS="-O2"
5521 else
5522 CXXFLAGS=
5523 fi
5524 fi
5525 ac_prog_cxx_stdcxx=no
5526 if test x$ac_prog_cxx_stdcxx = xno
5527 then :
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5529 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5530 if test ${ac_cv_prog_cxx_11+y}
5531 then :
5532 printf %s "(cached) " >&6
5533 else $as_nop
5534 ac_cv_prog_cxx_11=no
5535 ac_save_CXX=$CXX
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 $ac_cxx_conftest_cxx11_program
5539 _ACEOF
5540 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5541 do
5542 CXX="$ac_save_CXX $ac_arg"
5543 if ac_fn_cxx_try_compile "$LINENO"
5544 then :
5545 ac_cv_prog_cxx_cxx11=$ac_arg
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.beam
5548 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5549 done
5550 rm -f conftest.$ac_ext
5551 CXX=$ac_save_CXX
5552 fi
5553
5554 if test "x$ac_cv_prog_cxx_cxx11" = xno
5555 then :
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5557 printf "%s\n" "unsupported" >&6; }
5558 else $as_nop
5559 if test "x$ac_cv_prog_cxx_cxx11" = x
5560 then :
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5562 printf "%s\n" "none needed" >&6; }
5563 else $as_nop
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5565 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5566 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5567 fi
5568 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5569 ac_prog_cxx_stdcxx=cxx11
5570 fi
5571 fi
5572 if test x$ac_prog_cxx_stdcxx = xno
5573 then :
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5575 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5576 if test ${ac_cv_prog_cxx_98+y}
5577 then :
5578 printf %s "(cached) " >&6
5579 else $as_nop
5580 ac_cv_prog_cxx_98=no
5581 ac_save_CXX=$CXX
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 $ac_cxx_conftest_cxx98_program
5585 _ACEOF
5586 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5587 do
5588 CXX="$ac_save_CXX $ac_arg"
5589 if ac_fn_cxx_try_compile "$LINENO"
5590 then :
5591 ac_cv_prog_cxx_cxx98=$ac_arg
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.beam
5594 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5595 done
5596 rm -f conftest.$ac_ext
5597 CXX=$ac_save_CXX
5598 fi
5599
5600 if test "x$ac_cv_prog_cxx_cxx98" = xno
5601 then :
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5603 printf "%s\n" "unsupported" >&6; }
5604 else $as_nop
5605 if test "x$ac_cv_prog_cxx_cxx98" = x
5606 then :
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5608 printf "%s\n" "none needed" >&6; }
5609 else $as_nop
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5611 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5612 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5613 fi
5614 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5615 ac_prog_cxx_stdcxx=cxx98
5616 fi
5617 fi
5618
5619 ac_ext=c
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624
5625 depcc="$CXX" am_compiler_list=
5626
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5628 printf %s "checking dependency style of $depcc... " >&6; }
5629 if test ${am_cv_CXX_dependencies_compiler_type+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else $as_nop
5633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5634 # We make a subdir and do the tests there. Otherwise we can end up
5635 # making bogus files that we don't know about and never remove. For
5636 # instance it was reported that on HP-UX the gcc test will end up
5637 # making a dummy file named 'D' -- because '-MD' means "put the output
5638 # in D".
5639 rm -rf conftest.dir
5640 mkdir conftest.dir
5641 # Copy depcomp to subdir because otherwise we won't find it if we're
5642 # using a relative directory.
5643 cp "$am_depcomp" conftest.dir
5644 cd conftest.dir
5645 # We will build objects and dependencies in a subdirectory because
5646 # it helps to detect inapplicable dependency modes. For instance
5647 # both Tru64's cc and ICC support -MD to output dependencies as a
5648 # side effect of compilation, but ICC will put the dependencies in
5649 # the current directory while Tru64 will put them in the object
5650 # directory.
5651 mkdir sub
5652
5653 am_cv_CXX_dependencies_compiler_type=none
5654 if test "$am_compiler_list" = ""; then
5655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5656 fi
5657 am__universal=false
5658 case " $depcc " in #(
5659 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5660 esac
5661
5662 for depmode in $am_compiler_list; do
5663 # Setup a source with many dependencies, because some compilers
5664 # like to wrap large dependency lists on column 80 (with \), and
5665 # we should not choose a depcomp mode which is confused by this.
5666 #
5667 # We need to recreate these files for each test, as the compiler may
5668 # overwrite some of them when testing with obscure command lines.
5669 # This happens at least with the AIX C compiler.
5670 : > sub/conftest.c
5671 for i in 1 2 3 4 5 6; do
5672 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5673 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5674 # Solaris 10 /bin/sh.
5675 echo '/* dummy */' > sub/conftst$i.h
5676 done
5677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5678
5679 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5680 # mode. It turns out that the SunPro C++ compiler does not properly
5681 # handle '-M -o', and we need to detect this. Also, some Intel
5682 # versions had trouble with output in subdirs.
5683 am__obj=sub/conftest.${OBJEXT-o}
5684 am__minus_obj="-o $am__obj"
5685 case $depmode in
5686 gcc)
5687 # This depmode causes a compiler race in universal mode.
5688 test "$am__universal" = false || continue
5689 ;;
5690 nosideeffect)
5691 # After this tag, mechanisms are not by side-effect, so they'll
5692 # only be used when explicitly requested.
5693 if test "x$enable_dependency_tracking" = xyes; then
5694 continue
5695 else
5696 break
5697 fi
5698 ;;
5699 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5700 # This compiler won't grok '-c -o', but also, the minuso test has
5701 # not run yet. These depmodes are late enough in the game, and
5702 # so weak that their functioning should not be impacted.
5703 am__obj=conftest.${OBJEXT-o}
5704 am__minus_obj=
5705 ;;
5706 none) break ;;
5707 esac
5708 if depmode=$depmode \
5709 source=sub/conftest.c object=$am__obj \
5710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5712 >/dev/null 2>conftest.err &&
5713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5717 # icc doesn't choke on unknown options, it will just issue warnings
5718 # or remarks (even with -Werror). So we grep stderr for any message
5719 # that says an option was ignored or not supported.
5720 # When given -MP, icc 7.0 and 7.1 complain thusly:
5721 # icc: Command line warning: ignoring option '-M'; no argument required
5722 # The diagnosis changed in icc 8.0:
5723 # icc: Command line remark: option '-MP' not supported
5724 if (grep 'ignoring option' conftest.err ||
5725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5726 am_cv_CXX_dependencies_compiler_type=$depmode
5727 break
5728 fi
5729 fi
5730 done
5731
5732 cd ..
5733 rm -rf conftest.dir
5734 else
5735 am_cv_CXX_dependencies_compiler_type=none
5736 fi
5737
5738 fi
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5740 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5741 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5742
5743 if
5744 test "x$enable_dependency_tracking" != xno \
5745 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5746 am__fastdepCXX_TRUE=
5747 am__fastdepCXX_FALSE='#'
5748 else
5749 am__fastdepCXX_TRUE='#'
5750 am__fastdepCXX_FALSE=
5751 fi
5752
5753
5754
5755
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5757 printf %s "checking for an ANSI C-conforming const... " >&6; }
5758 if test ${ac_cv_c_const+y}
5759 then :
5760 printf %s "(cached) " >&6
5761 else $as_nop
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764
5765 int
5766 main (void)
5767 {
5768
5769 #ifndef __cplusplus
5770 /* Ultrix mips cc rejects this sort of thing. */
5771 typedef int charset[2];
5772 const charset cs = { 0, 0 };
5773 /* SunOS 4.1.1 cc rejects this. */
5774 char const *const *pcpcc;
5775 char **ppc;
5776 /* NEC SVR4.0.2 mips cc rejects this. */
5777 struct point {int x, y;};
5778 static struct point const zero = {0,0};
5779 /* IBM XL C 1.02.0.0 rejects this.
5780 It does not let you subtract one const X* pointer from another in
5781 an arm of an if-expression whose if-part is not a constant
5782 expression */
5783 const char *g = "string";
5784 pcpcc = &g + (g ? g-g : 0);
5785 /* HPUX 7.0 cc rejects these. */
5786 ++pcpcc;
5787 ppc = (char**) pcpcc;
5788 pcpcc = (char const *const *) ppc;
5789 { /* SCO 3.2v4 cc rejects this sort of thing. */
5790 char tx;
5791 char *t = &tx;
5792 char const *s = 0 ? (char *) 0 : (char const *) 0;
5793
5794 *t++ = 0;
5795 if (s) return 0;
5796 }
5797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5798 int x[] = {25, 17};
5799 const int *foo = &x[0];
5800 ++foo;
5801 }
5802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5803 typedef const int *iptr;
5804 iptr p = 0;
5805 ++p;
5806 }
5807 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5809 struct s { int j; const int *ap[3]; } bx;
5810 struct s *b = &bx; b->j = 5;
5811 }
5812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5813 const int foo = 10;
5814 if (!foo) return 0;
5815 }
5816 return !cs[0] && !zero.x;
5817 #endif
5818
5819 ;
5820 return 0;
5821 }
5822 _ACEOF
5823 if ac_fn_c_try_compile "$LINENO"
5824 then :
5825 ac_cv_c_const=yes
5826 else $as_nop
5827 ac_cv_c_const=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5830 fi
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5832 printf "%s\n" "$ac_cv_c_const" >&6; }
5833 if test $ac_cv_c_const = no; then
5834
5835 printf "%s\n" "#define const /**/" >>confdefs.h
5836
5837 fi
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5840 printf %s "checking for inline... " >&6; }
5841 if test ${ac_cv_c_inline+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
5845 ac_cv_c_inline=no
5846 for ac_kw in inline __inline__ __inline; do
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 #ifndef __cplusplus
5850 typedef int foo_t;
5851 static $ac_kw foo_t static_foo (void) {return 0; }
5852 $ac_kw foo_t foo (void) {return 0; }
5853 #endif
5854
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"
5857 then :
5858 ac_cv_c_inline=$ac_kw
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 test "$ac_cv_c_inline" != no && break
5862 done
5863
5864 fi
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5866 printf "%s\n" "$ac_cv_c_inline" >&6; }
5867
5868 case $ac_cv_c_inline in
5869 inline | yes) ;;
5870 *)
5871 case $ac_cv_c_inline in
5872 no) ac_val=;;
5873 *) ac_val=$ac_cv_c_inline;;
5874 esac
5875 cat >>confdefs.h <<_ACEOF
5876 #ifndef __cplusplus
5877 #define inline $ac_val
5878 #endif
5879 _ACEOF
5880 ;;
5881 esac
5882
5883
5884 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5885 ac_ext=cpp
5886 ac_cpp='$CXXCPP $CPPFLAGS'
5887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890 ac_success=no
5891
5892
5893
5894
5895
5896 if test x$ac_success = xno; then
5897 for alternative in ${ax_cxx_compile_alternatives}; do
5898 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5899 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5901 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
5902 if eval test \${$cachevar+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else $as_nop
5906 ac_save_CXX="$CXX"
5907 CXX="$CXX $switch"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911
5912 // If the compiler admits that it is not ready for C++11, why torture it?
5913 // Hopefully, this will speed up the test.
5914
5915 #ifndef __cplusplus
5916
5917 #error "This is not a C++ compiler"
5918
5919 #elif __cplusplus < 201103L
5920
5921 #error "This is not a C++11 compiler"
5922
5923 #else
5924
5925 namespace cxx11
5926 {
5927
5928 namespace test_static_assert
5929 {
5930
5931 template <typename T>
5932 struct check
5933 {
5934 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5935 };
5936
5937 }
5938
5939 namespace test_final_override
5940 {
5941
5942 struct Base
5943 {
5944 virtual ~Base() {}
5945 virtual void f() {}
5946 };
5947
5948 struct Derived : public Base
5949 {
5950 virtual ~Derived() override {}
5951 virtual void f() override {}
5952 };
5953
5954 }
5955
5956 namespace test_double_right_angle_brackets
5957 {
5958
5959 template < typename T >
5960 struct check {};
5961
5962 typedef check<void> single_type;
5963 typedef check<check<void>> double_type;
5964 typedef check<check<check<void>>> triple_type;
5965 typedef check<check<check<check<void>>>> quadruple_type;
5966
5967 }
5968
5969 namespace test_decltype
5970 {
5971
5972 int
5973 f()
5974 {
5975 int a = 1;
5976 decltype(a) b = 2;
5977 return a + b;
5978 }
5979
5980 }
5981
5982 namespace test_type_deduction
5983 {
5984
5985 template < typename T1, typename T2 >
5986 struct is_same
5987 {
5988 static const bool value = false;
5989 };
5990
5991 template < typename T >
5992 struct is_same<T, T>
5993 {
5994 static const bool value = true;
5995 };
5996
5997 template < typename T1, typename T2 >
5998 auto
5999 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6000 {
6001 return a1 + a2;
6002 }
6003
6004 int
6005 test(const int c, volatile int v)
6006 {
6007 static_assert(is_same<int, decltype(0)>::value == true, "");
6008 static_assert(is_same<int, decltype(c)>::value == false, "");
6009 static_assert(is_same<int, decltype(v)>::value == false, "");
6010 auto ac = c;
6011 auto av = v;
6012 auto sumi = ac + av + 'x';
6013 auto sumf = ac + av + 1.0;
6014 static_assert(is_same<int, decltype(ac)>::value == true, "");
6015 static_assert(is_same<int, decltype(av)>::value == true, "");
6016 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6017 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6018 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6019 return (sumf > 0.0) ? sumi : add(c, v);
6020 }
6021
6022 }
6023
6024 namespace test_noexcept
6025 {
6026
6027 int f() { return 0; }
6028 int g() noexcept { return 0; }
6029
6030 static_assert(noexcept(f()) == false, "");
6031 static_assert(noexcept(g()) == true, "");
6032
6033 }
6034
6035 namespace test_constexpr
6036 {
6037
6038 template < typename CharT >
6039 unsigned long constexpr
6040 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6041 {
6042 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6043 }
6044
6045 template < typename CharT >
6046 unsigned long constexpr
6047 strlen_c(const CharT *const s) noexcept
6048 {
6049 return strlen_c_r(s, 0UL);
6050 }
6051
6052 static_assert(strlen_c("") == 0UL, "");
6053 static_assert(strlen_c("1") == 1UL, "");
6054 static_assert(strlen_c("example") == 7UL, "");
6055 static_assert(strlen_c("another\0example") == 7UL, "");
6056
6057 }
6058
6059 namespace test_rvalue_references
6060 {
6061
6062 template < int N >
6063 struct answer
6064 {
6065 static constexpr int value = N;
6066 };
6067
6068 answer<1> f(int&) { return answer<1>(); }
6069 answer<2> f(const int&) { return answer<2>(); }
6070 answer<3> f(int&&) { return answer<3>(); }
6071
6072 void
6073 test()
6074 {
6075 int i = 0;
6076 const int c = 0;
6077 static_assert(decltype(f(i))::value == 1, "");
6078 static_assert(decltype(f(c))::value == 2, "");
6079 static_assert(decltype(f(0))::value == 3, "");
6080 }
6081
6082 }
6083
6084 namespace test_uniform_initialization
6085 {
6086
6087 struct test
6088 {
6089 static const int zero {};
6090 static const int one {1};
6091 };
6092
6093 static_assert(test::zero == 0, "");
6094 static_assert(test::one == 1, "");
6095
6096 }
6097
6098 namespace test_lambdas
6099 {
6100
6101 void
6102 test1()
6103 {
6104 auto lambda1 = [](){};
6105 auto lambda2 = lambda1;
6106 lambda1();
6107 lambda2();
6108 }
6109
6110 int
6111 test2()
6112 {
6113 auto a = [](int i, int j){ return i + j; }(1, 2);
6114 auto b = []() -> int { return '0'; }();
6115 auto c = [=](){ return a + b; }();
6116 auto d = [&](){ return c; }();
6117 auto e = [a, &b](int x) mutable {
6118 const auto identity = [](int y){ return y; };
6119 for (auto i = 0; i < a; ++i)
6120 a += b--;
6121 return x + identity(a + b);
6122 }(0);
6123 return a + b + c + d + e;
6124 }
6125
6126 int
6127 test3()
6128 {
6129 const auto nullary = [](){ return 0; };
6130 const auto unary = [](int x){ return x; };
6131 using nullary_t = decltype(nullary);
6132 using unary_t = decltype(unary);
6133 const auto higher1st = [](nullary_t f){ return f(); };
6134 const auto higher2nd = [unary](nullary_t f1){
6135 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6136 };
6137 return higher1st(nullary) + higher2nd(nullary)(unary);
6138 }
6139
6140 }
6141
6142 namespace test_variadic_templates
6143 {
6144
6145 template <int...>
6146 struct sum;
6147
6148 template <int N0, int... N1toN>
6149 struct sum<N0, N1toN...>
6150 {
6151 static constexpr auto value = N0 + sum<N1toN...>::value;
6152 };
6153
6154 template <>
6155 struct sum<>
6156 {
6157 static constexpr auto value = 0;
6158 };
6159
6160 static_assert(sum<>::value == 0, "");
6161 static_assert(sum<1>::value == 1, "");
6162 static_assert(sum<23>::value == 23, "");
6163 static_assert(sum<1, 2>::value == 3, "");
6164 static_assert(sum<5, 5, 11>::value == 21, "");
6165 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6166
6167 }
6168
6169 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6170 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6171 // because of this.
6172 namespace test_template_alias_sfinae
6173 {
6174
6175 struct foo {};
6176
6177 template<typename T>
6178 using member = typename T::member_type;
6179
6180 template<typename T>
6181 void func(...) {}
6182
6183 template<typename T>
6184 void func(member<T>*) {}
6185
6186 void test();
6187
6188 void test() { func<foo>(0); }
6189
6190 }
6191
6192 } // namespace cxx11
6193
6194 #endif // __cplusplus >= 201103L
6195
6196
6197
6198 _ACEOF
6199 if ac_fn_cxx_try_compile "$LINENO"
6200 then :
6201 eval $cachevar=yes
6202 else $as_nop
6203 eval $cachevar=no
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6206 CXX="$ac_save_CXX"
6207 fi
6208 eval ac_res=\$$cachevar
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6210 printf "%s\n" "$ac_res" >&6; }
6211 if eval test x\$$cachevar = xyes; then
6212 CXX="$CXX $switch"
6213 if test -n "$CXXCPP" ; then
6214 CXXCPP="$CXXCPP $switch"
6215 fi
6216 ac_success=yes
6217 break
6218 fi
6219 done
6220 if test x$ac_success = xyes; then
6221 break
6222 fi
6223 done
6224 fi
6225 ac_ext=c
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230
6231 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6232 if test x$ac_success = xno; then
6233 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6234 fi
6235 fi
6236 if test x$ac_success = xno; then
6237 HAVE_CXX11=0
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6239 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6240 else
6241 HAVE_CXX11=1
6242
6243 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6244
6245 fi
6246
6247
6248
6249 ac_header= ac_cache=
6250 for ac_item in $ac_header_c_list
6251 do
6252 if test $ac_cache; then
6253 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6254 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6255 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6256 fi
6257 ac_header= ac_cache=
6258 elif test $ac_header; then
6259 ac_cache=$ac_item
6260 else
6261 ac_header=$ac_item
6262 fi
6263 done
6264
6265
6266
6267
6268
6269
6270
6271
6272 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6273 then :
6274
6275 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6276
6277 fi
6278 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6279 if test "x$ac_cv_header_fcntl_h" = xyes
6280 then :
6281 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
6282
6283 fi
6284 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6285 if test "x$ac_cv_header_unistd_h" = xyes
6286 then :
6287 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
6288
6289 fi
6290 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6291 if test "x$ac_cv_header_stdlib_h" = xyes
6292 then :
6293 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6294
6295 fi
6296 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6297 if test "x$ac_cv_header_string_h" = xyes
6298 then :
6299 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6300
6301 fi
6302 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6303 if test "x$ac_cv_header_sys_time_h" = xyes
6304 then :
6305 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6306
6307 fi
6308
6309
6310 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6311 if test "x$ac_cv_func_gettimeofday" = xyes
6312 then :
6313 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
6314
6315 fi
6316
6317 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
6318 if test "x$ac_cv_func_munmap" = xyes
6319 then :
6320 lv_have_munmap=yes
6321 else $as_nop
6322 lv_have_munmap=no
6323 fi
6324
6325
6326
6327 # Make sure we can run config.sub.
6328 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6329 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6330
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6332 printf %s "checking build system type... " >&6; }
6333 if test ${ac_cv_build+y}
6334 then :
6335 printf %s "(cached) " >&6
6336 else $as_nop
6337 ac_build_alias=$build_alias
6338 test "x$ac_build_alias" = x &&
6339 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6340 test "x$ac_build_alias" = x &&
6341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6342 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6343 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6344
6345 fi
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6347 printf "%s\n" "$ac_cv_build" >&6; }
6348 case $ac_cv_build in
6349 *-*-*) ;;
6350 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6351 esac
6352 build=$ac_cv_build
6353 ac_save_IFS=$IFS; IFS='-'
6354 set x $ac_cv_build
6355 shift
6356 build_cpu=$1
6357 build_vendor=$2
6358 shift; shift
6359 # Remember, the first character of IFS is used to create $*,
6360 # except with old shells:
6361 build_os=$*
6362 IFS=$ac_save_IFS
6363 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6364
6365
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6367 printf %s "checking host system type... " >&6; }
6368 if test ${ac_cv_host+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else $as_nop
6372 if test "x$host_alias" = x; then
6373 ac_cv_host=$ac_cv_build
6374 else
6375 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6376 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6377 fi
6378
6379 fi
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6381 printf "%s\n" "$ac_cv_host" >&6; }
6382 case $ac_cv_host in
6383 *-*-*) ;;
6384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6385 esac
6386 host=$ac_cv_host
6387 ac_save_IFS=$IFS; IFS='-'
6388 set x $ac_cv_host
6389 shift
6390 host_cpu=$1
6391 host_vendor=$2
6392 shift; shift
6393 # Remember, the first character of IFS is used to create $*,
6394 # except with old shells:
6395 host_os=$*
6396 IFS=$ac_save_IFS
6397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6398
6399
6400
6401 ac_func=
6402 for ac_item in $ac_func_c_list
6403 do
6404 if test $ac_func; then
6405 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6406 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6407 echo "#define $ac_item 1" >> confdefs.h
6408 fi
6409 ac_func=
6410 else
6411 ac_func=$ac_item
6412 fi
6413 done
6414
6415
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6417 printf %s "checking for working mmap... " >&6; }
6418 if test ${ac_cv_func_mmap_fixed_mapped+y}
6419 then :
6420 printf %s "(cached) " >&6
6421 else $as_nop
6422 if test "$cross_compiling" = yes
6423 then :
6424 case "$host_os" in # ((
6425 # Guess yes on platforms where we know the result.
6426 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
6427 # If we don't know, assume the worst.
6428 *) ac_cv_func_mmap_fixed_mapped=no ;;
6429 esac
6430 else $as_nop
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 $ac_includes_default
6434 /* malloc might have been renamed as rpl_malloc. */
6435 #undef malloc
6436
6437 /* Thanks to Mike Haertel and Jim Avera for this test.
6438 Here is a matrix of mmap possibilities:
6439 mmap private not fixed
6440 mmap private fixed at somewhere currently unmapped
6441 mmap private fixed at somewhere already mapped
6442 mmap shared not fixed
6443 mmap shared fixed at somewhere currently unmapped
6444 mmap shared fixed at somewhere already mapped
6445 For private mappings, we should verify that changes cannot be read()
6446 back from the file, nor mmap's back from the file at a different
6447 address. (There have been systems where private was not correctly
6448 implemented like the infamous i386 svr4.0, and systems where the
6449 VM page cache was not coherent with the file system buffer cache
6450 like early versions of FreeBSD and possibly contemporary NetBSD.)
6451 For shared mappings, we should conversely verify that changes get
6452 propagated back to all the places they're supposed to be.
6453
6454 Grep wants private fixed already mapped.
6455 The main things grep needs to know about mmap are:
6456 * does it exist and is it safe to write into the mmap'd area
6457 * how to use it (BSD variants) */
6458
6459 #include <fcntl.h>
6460 #include <sys/mman.h>
6461
6462 /* This mess was copied from the GNU getpagesize.h. */
6463 #ifndef HAVE_GETPAGESIZE
6464 # ifdef _SC_PAGESIZE
6465 # define getpagesize() sysconf(_SC_PAGESIZE)
6466 # else /* no _SC_PAGESIZE */
6467 # ifdef HAVE_SYS_PARAM_H
6468 # include <sys/param.h>
6469 # ifdef EXEC_PAGESIZE
6470 # define getpagesize() EXEC_PAGESIZE
6471 # else /* no EXEC_PAGESIZE */
6472 # ifdef NBPG
6473 # define getpagesize() NBPG * CLSIZE
6474 # ifndef CLSIZE
6475 # define CLSIZE 1
6476 # endif /* no CLSIZE */
6477 # else /* no NBPG */
6478 # ifdef NBPC
6479 # define getpagesize() NBPC
6480 # else /* no NBPC */
6481 # ifdef PAGESIZE
6482 # define getpagesize() PAGESIZE
6483 # endif /* PAGESIZE */
6484 # endif /* no NBPC */
6485 # endif /* no NBPG */
6486 # endif /* no EXEC_PAGESIZE */
6487 # else /* no HAVE_SYS_PARAM_H */
6488 # define getpagesize() 8192 /* punt totally */
6489 # endif /* no HAVE_SYS_PARAM_H */
6490 # endif /* no _SC_PAGESIZE */
6491
6492 #endif /* no HAVE_GETPAGESIZE */
6493
6494 int
6495 main (void)
6496 {
6497 char *data, *data2, *data3;
6498 const char *cdata2;
6499 int i, pagesize;
6500 int fd, fd2;
6501
6502 pagesize = getpagesize ();
6503
6504 /* First, make a file with some known garbage in it. */
6505 data = (char *) malloc (pagesize);
6506 if (!data)
6507 return 1;
6508 for (i = 0; i < pagesize; ++i)
6509 *(data + i) = rand ();
6510 umask (0);
6511 fd = creat ("conftest.mmap", 0600);
6512 if (fd < 0)
6513 return 2;
6514 if (write (fd, data, pagesize) != pagesize)
6515 return 3;
6516 close (fd);
6517
6518 /* Next, check that the tail of a page is zero-filled. File must have
6519 non-zero length, otherwise we risk SIGBUS for entire page. */
6520 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6521 if (fd2 < 0)
6522 return 4;
6523 cdata2 = "";
6524 if (write (fd2, cdata2, 1) != 1)
6525 return 5;
6526 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6527 if (data2 == MAP_FAILED)
6528 return 6;
6529 for (i = 0; i < pagesize; ++i)
6530 if (*(data2 + i))
6531 return 7;
6532 close (fd2);
6533 if (munmap (data2, pagesize))
6534 return 8;
6535
6536 /* Next, try to mmap the file at a fixed address which already has
6537 something else allocated at it. If we can, also make sure that
6538 we see the same garbage. */
6539 fd = open ("conftest.mmap", O_RDWR);
6540 if (fd < 0)
6541 return 9;
6542 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6543 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6544 return 10;
6545 for (i = 0; i < pagesize; ++i)
6546 if (*(data + i) != *(data2 + i))
6547 return 11;
6548
6549 /* Finally, make sure that changes to the mapped area do not
6550 percolate back to the file as seen by read(). (This is a bug on
6551 some variants of i386 svr4.0.) */
6552 for (i = 0; i < pagesize; ++i)
6553 *(data2 + i) = *(data2 + i) + 1;
6554 data3 = (char *) malloc (pagesize);
6555 if (!data3)
6556 return 12;
6557 if (read (fd, data3, pagesize) != pagesize)
6558 return 13;
6559 for (i = 0; i < pagesize; ++i)
6560 if (*(data + i) != *(data3 + i))
6561 return 14;
6562 close (fd);
6563 free (data);
6564 free (data3);
6565 return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_run "$LINENO"
6569 then :
6570 ac_cv_func_mmap_fixed_mapped=yes
6571 else $as_nop
6572 ac_cv_func_mmap_fixed_mapped=no
6573 fi
6574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6575 conftest.$ac_objext conftest.beam conftest.$ac_ext
6576 fi
6577
6578 fi
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6580 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
6581 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6582
6583 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
6584
6585 fi
6586 rm -f conftest.mmap conftest.txt
6587
6588
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6591 printf %s "checking whether ln -s works... " >&6; }
6592 LN_S=$as_ln_s
6593 if test "$LN_S" = "ln -s"; then
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6595 printf "%s\n" "yes" >&6; }
6596 else
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6598 printf "%s\n" "no, using $LN_S" >&6; }
6599 fi
6600
6601
6602 # Check whether --enable-static was given.
6603 if test ${enable_static+y}
6604 then :
6605 enableval=$enable_static; p=${PACKAGE-default}
6606 case $enableval in
6607 yes) enable_static=yes ;;
6608 no) enable_static=no ;;
6609 *)
6610 enable_static=no
6611 # Look at the argument we got. We use all the common list separators.
6612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6613 for pkg in $enableval; do
6614 IFS=$lt_save_ifs
6615 if test "X$pkg" = "X$p"; then
6616 enable_static=yes
6617 fi
6618 done
6619 IFS=$lt_save_ifs
6620 ;;
6621 esac
6622 else $as_nop
6623 enable_static=no
6624 fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637 case `pwd` in
6638 *\ * | *\ *)
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6640 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6641 esac
6642
6643
6644
6645 macro_version='2.4.6'
6646 macro_revision='2.4.6'
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 ltmain=$ac_aux_dir/ltmain.sh
6662
6663 # Backslashify metacharacters that are still active within
6664 # double-quoted strings.
6665 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6666
6667 # Same as above, but do not quote variable references.
6668 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6669
6670 # Sed substitution to delay expansion of an escaped shell variable in a
6671 # double_quote_subst'ed string.
6672 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6673
6674 # Sed substitution to delay expansion of an escaped single quote.
6675 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6676
6677 # Sed substitution to avoid accidental globbing in evaled expressions
6678 no_glob_subst='s/\*/\\\*/g'
6679
6680 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6681 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6682 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6683
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6685 printf %s "checking how to print strings... " >&6; }
6686 # Test print first, because it will be a builtin if present.
6687 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6688 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6689 ECHO='print -r --'
6690 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6691 ECHO='printf %s\n'
6692 else
6693 # Use this function as a fallback that always works.
6694 func_fallback_echo ()
6695 {
6696 eval 'cat <<_LTECHO_EOF
6697 $1
6698 _LTECHO_EOF'
6699 }
6700 ECHO='func_fallback_echo'
6701 fi
6702
6703 # func_echo_all arg...
6704 # Invoke $ECHO with all args, space-separated.
6705 func_echo_all ()
6706 {
6707 $ECHO ""
6708 }
6709
6710 case $ECHO in
6711 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6712 printf "%s\n" "printf" >&6; } ;;
6713 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6714 printf "%s\n" "print -r" >&6; } ;;
6715 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6716 printf "%s\n" "cat" >&6; } ;;
6717 esac
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6733 printf %s "checking for a sed that does not truncate output... " >&6; }
6734 if test ${ac_cv_path_SED+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else $as_nop
6738 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6739 for ac_i in 1 2 3 4 5 6 7; do
6740 ac_script="$ac_script$as_nl$ac_script"
6741 done
6742 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6743 { ac_script=; unset ac_script;}
6744 if test -z "$SED"; then
6745 ac_path_SED_found=false
6746 # Loop through the user's path and test for each of PROGNAME-LIST
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 case $as_dir in #(((
6752 '') as_dir=./ ;;
6753 */) ;;
6754 *) as_dir=$as_dir/ ;;
6755 esac
6756 for ac_prog in sed gsed
6757 do
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6760 as_fn_executable_p "$ac_path_SED" || continue
6761 # Check for GNU ac_path_SED and select it if it is found.
6762 # Check for GNU $ac_path_SED
6763 case `"$ac_path_SED" --version 2>&1` in
6764 *GNU*)
6765 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6766 *)
6767 ac_count=0
6768 printf %s 0123456789 >"conftest.in"
6769 while :
6770 do
6771 cat "conftest.in" "conftest.in" >"conftest.tmp"
6772 mv "conftest.tmp" "conftest.in"
6773 cp "conftest.in" "conftest.nl"
6774 printf "%s\n" '' >> "conftest.nl"
6775 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6777 as_fn_arith $ac_count + 1 && ac_count=$as_val
6778 if test $ac_count -gt ${ac_path_SED_max-0}; then
6779 # Best one so far, save it but keep looking for a better one
6780 ac_cv_path_SED="$ac_path_SED"
6781 ac_path_SED_max=$ac_count
6782 fi
6783 # 10*(2^10) chars as input seems more than enough
6784 test $ac_count -gt 10 && break
6785 done
6786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6787 esac
6788
6789 $ac_path_SED_found && break 3
6790 done
6791 done
6792 done
6793 IFS=$as_save_IFS
6794 if test -z "$ac_cv_path_SED"; then
6795 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6796 fi
6797 else
6798 ac_cv_path_SED=$SED
6799 fi
6800
6801 fi
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6803 printf "%s\n" "$ac_cv_path_SED" >&6; }
6804 SED="$ac_cv_path_SED"
6805 rm -f conftest.sed
6806
6807 test -z "$SED" && SED=sed
6808 Xsed="$SED -e 1s/^X//"
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6821 printf %s "checking for grep that handles long lines and -e... " >&6; }
6822 if test ${ac_cv_path_GREP+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else $as_nop
6826 if test -z "$GREP"; then
6827 ac_path_GREP_found=false
6828 # Loop through the user's path and test for each of PROGNAME-LIST
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6831 do
6832 IFS=$as_save_IFS
6833 case $as_dir in #(((
6834 '') as_dir=./ ;;
6835 */) ;;
6836 *) as_dir=$as_dir/ ;;
6837 esac
6838 for ac_prog in grep ggrep
6839 do
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6842 as_fn_executable_p "$ac_path_GREP" || continue
6843 # Check for GNU ac_path_GREP and select it if it is found.
6844 # Check for GNU $ac_path_GREP
6845 case `"$ac_path_GREP" --version 2>&1` in
6846 *GNU*)
6847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6848 *)
6849 ac_count=0
6850 printf %s 0123456789 >"conftest.in"
6851 while :
6852 do
6853 cat "conftest.in" "conftest.in" >"conftest.tmp"
6854 mv "conftest.tmp" "conftest.in"
6855 cp "conftest.in" "conftest.nl"
6856 printf "%s\n" 'GREP' >> "conftest.nl"
6857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6859 as_fn_arith $ac_count + 1 && ac_count=$as_val
6860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6861 # Best one so far, save it but keep looking for a better one
6862 ac_cv_path_GREP="$ac_path_GREP"
6863 ac_path_GREP_max=$ac_count
6864 fi
6865 # 10*(2^10) chars as input seems more than enough
6866 test $ac_count -gt 10 && break
6867 done
6868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6869 esac
6870
6871 $ac_path_GREP_found && break 3
6872 done
6873 done
6874 done
6875 IFS=$as_save_IFS
6876 if test -z "$ac_cv_path_GREP"; then
6877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6878 fi
6879 else
6880 ac_cv_path_GREP=$GREP
6881 fi
6882
6883 fi
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6885 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6886 GREP="$ac_cv_path_GREP"
6887
6888
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6890 printf %s "checking for egrep... " >&6; }
6891 if test ${ac_cv_path_EGREP+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else $as_nop
6895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6896 then ac_cv_path_EGREP="$GREP -E"
6897 else
6898 if test -z "$EGREP"; then
6899 ac_path_EGREP_found=false
6900 # Loop through the user's path and test for each of PROGNAME-LIST
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6903 do
6904 IFS=$as_save_IFS
6905 case $as_dir in #(((
6906 '') as_dir=./ ;;
6907 */) ;;
6908 *) as_dir=$as_dir/ ;;
6909 esac
6910 for ac_prog in egrep
6911 do
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6914 as_fn_executable_p "$ac_path_EGREP" || continue
6915 # Check for GNU ac_path_EGREP and select it if it is found.
6916 # Check for GNU $ac_path_EGREP
6917 case `"$ac_path_EGREP" --version 2>&1` in
6918 *GNU*)
6919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6920 *)
6921 ac_count=0
6922 printf %s 0123456789 >"conftest.in"
6923 while :
6924 do
6925 cat "conftest.in" "conftest.in" >"conftest.tmp"
6926 mv "conftest.tmp" "conftest.in"
6927 cp "conftest.in" "conftest.nl"
6928 printf "%s\n" 'EGREP' >> "conftest.nl"
6929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6931 as_fn_arith $ac_count + 1 && ac_count=$as_val
6932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6933 # Best one so far, save it but keep looking for a better one
6934 ac_cv_path_EGREP="$ac_path_EGREP"
6935 ac_path_EGREP_max=$ac_count
6936 fi
6937 # 10*(2^10) chars as input seems more than enough
6938 test $ac_count -gt 10 && break
6939 done
6940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6941 esac
6942
6943 $ac_path_EGREP_found && break 3
6944 done
6945 done
6946 done
6947 IFS=$as_save_IFS
6948 if test -z "$ac_cv_path_EGREP"; then
6949 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6950 fi
6951 else
6952 ac_cv_path_EGREP=$EGREP
6953 fi
6954
6955 fi
6956 fi
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6958 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6959 EGREP="$ac_cv_path_EGREP"
6960
6961
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6963 printf %s "checking for fgrep... " >&6; }
6964 if test ${ac_cv_path_FGREP+y}
6965 then :
6966 printf %s "(cached) " >&6
6967 else $as_nop
6968 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6969 then ac_cv_path_FGREP="$GREP -F"
6970 else
6971 if test -z "$FGREP"; then
6972 ac_path_FGREP_found=false
6973 # Loop through the user's path and test for each of PROGNAME-LIST
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6976 do
6977 IFS=$as_save_IFS
6978 case $as_dir in #(((
6979 '') as_dir=./ ;;
6980 */) ;;
6981 *) as_dir=$as_dir/ ;;
6982 esac
6983 for ac_prog in fgrep
6984 do
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6987 as_fn_executable_p "$ac_path_FGREP" || continue
6988 # Check for GNU ac_path_FGREP and select it if it is found.
6989 # Check for GNU $ac_path_FGREP
6990 case `"$ac_path_FGREP" --version 2>&1` in
6991 *GNU*)
6992 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6993 *)
6994 ac_count=0
6995 printf %s 0123456789 >"conftest.in"
6996 while :
6997 do
6998 cat "conftest.in" "conftest.in" >"conftest.tmp"
6999 mv "conftest.tmp" "conftest.in"
7000 cp "conftest.in" "conftest.nl"
7001 printf "%s\n" 'FGREP' >> "conftest.nl"
7002 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7004 as_fn_arith $ac_count + 1 && ac_count=$as_val
7005 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7006 # Best one so far, save it but keep looking for a better one
7007 ac_cv_path_FGREP="$ac_path_FGREP"
7008 ac_path_FGREP_max=$ac_count
7009 fi
7010 # 10*(2^10) chars as input seems more than enough
7011 test $ac_count -gt 10 && break
7012 done
7013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7014 esac
7015
7016 $ac_path_FGREP_found && break 3
7017 done
7018 done
7019 done
7020 IFS=$as_save_IFS
7021 if test -z "$ac_cv_path_FGREP"; then
7022 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7023 fi
7024 else
7025 ac_cv_path_FGREP=$FGREP
7026 fi
7027
7028 fi
7029 fi
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7031 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7032 FGREP="$ac_cv_path_FGREP"
7033
7034
7035 test -z "$GREP" && GREP=grep
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 # Check whether --with-gnu-ld was given.
7056 if test ${with_gnu_ld+y}
7057 then :
7058 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7059 else $as_nop
7060 with_gnu_ld=no
7061 fi
7062
7063 ac_prog=ld
7064 if test yes = "$GCC"; then
7065 # Check if gcc -print-prog-name=ld gives a path.
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7067 printf %s "checking for ld used by $CC... " >&6; }
7068 case $host in
7069 *-*-mingw*)
7070 # gcc leaves a trailing carriage return, which upsets mingw
7071 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7072 *)
7073 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7074 esac
7075 case $ac_prog in
7076 # Accept absolute paths.
7077 [\\/]* | ?:[\\/]*)
7078 re_direlt='/[^/][^/]*/\.\./'
7079 # Canonicalize the pathname of ld
7080 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7081 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7082 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7083 done
7084 test -z "$LD" && LD=$ac_prog
7085 ;;
7086 "")
7087 # If it fails, then pretend we aren't using GCC.
7088 ac_prog=ld
7089 ;;
7090 *)
7091 # If it is relative, then search for the first ld in PATH.
7092 with_gnu_ld=unknown
7093 ;;
7094 esac
7095 elif test yes = "$with_gnu_ld"; then
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7097 printf %s "checking for GNU ld... " >&6; }
7098 else
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7100 printf %s "checking for non-GNU ld... " >&6; }
7101 fi
7102 if test ${lt_cv_path_LD+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else $as_nop
7106 if test -z "$LD"; then
7107 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7108 for ac_dir in $PATH; do
7109 IFS=$lt_save_ifs
7110 test -z "$ac_dir" && ac_dir=.
7111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7112 lt_cv_path_LD=$ac_dir/$ac_prog
7113 # Check to see if the program is GNU ld. I'd rather use --version,
7114 # but apparently some variants of GNU ld only accept -v.
7115 # Break only if it was the GNU/non-GNU ld that we prefer.
7116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7117 *GNU* | *'with BFD'*)
7118 test no != "$with_gnu_ld" && break
7119 ;;
7120 *)
7121 test yes != "$with_gnu_ld" && break
7122 ;;
7123 esac
7124 fi
7125 done
7126 IFS=$lt_save_ifs
7127 else
7128 lt_cv_path_LD=$LD # Let the user override the test with a path.
7129 fi
7130 fi
7131
7132 LD=$lt_cv_path_LD
7133 if test -n "$LD"; then
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7135 printf "%s\n" "$LD" >&6; }
7136 else
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 printf "%s\n" "no" >&6; }
7139 fi
7140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7142 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7143 if test ${lt_cv_prog_gnu_ld+y}
7144 then :
7145 printf %s "(cached) " >&6
7146 else $as_nop
7147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7148 case `$LD -v 2>&1 </dev/null` in
7149 *GNU* | *'with BFD'*)
7150 lt_cv_prog_gnu_ld=yes
7151 ;;
7152 *)
7153 lt_cv_prog_gnu_ld=no
7154 ;;
7155 esac
7156 fi
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7158 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7159 with_gnu_ld=$lt_cv_prog_gnu_ld
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7170 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7171 if test ${lt_cv_path_NM+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 if test -n "$NM"; then
7176 # Let the user override the test.
7177 lt_cv_path_NM=$NM
7178 else
7179 lt_nm_to_check=${ac_tool_prefix}nm
7180 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7181 lt_nm_to_check="$lt_nm_to_check nm"
7182 fi
7183 for lt_tmp_nm in $lt_nm_to_check; do
7184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7185 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7186 IFS=$lt_save_ifs
7187 test -z "$ac_dir" && ac_dir=.
7188 tmp_nm=$ac_dir/$lt_tmp_nm
7189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7190 # Check to see if the nm accepts a BSD-compat flag.
7191 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7192 # nm: unknown option "B" ignored
7193 # Tru64's nm complains that /dev/null is an invalid object file
7194 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7195 case $build_os in
7196 mingw*) lt_bad_file=conftest.nm/nofile ;;
7197 *) lt_bad_file=/dev/null ;;
7198 esac
7199 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7200 *$lt_bad_file* | *'Invalid file or object type'*)
7201 lt_cv_path_NM="$tmp_nm -B"
7202 break 2
7203 ;;
7204 *)
7205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7206 */dev/null*)
7207 lt_cv_path_NM="$tmp_nm -p"
7208 break 2
7209 ;;
7210 *)
7211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7212 continue # so that we can try to find one that supports BSD flags
7213 ;;
7214 esac
7215 ;;
7216 esac
7217 fi
7218 done
7219 IFS=$lt_save_ifs
7220 done
7221 : ${lt_cv_path_NM=no}
7222 fi
7223 fi
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7225 printf "%s\n" "$lt_cv_path_NM" >&6; }
7226 if test no != "$lt_cv_path_NM"; then
7227 NM=$lt_cv_path_NM
7228 else
7229 # Didn't find any BSD compatible name lister, look for dumpbin.
7230 if test -n "$DUMPBIN"; then :
7231 # Let the user override the test.
7232 else
7233 if test -n "$ac_tool_prefix"; then
7234 for ac_prog in dumpbin "link -dump"
7235 do
7236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_DUMPBIN+y}
7241 then :
7242 printf %s "(cached) " >&6
7243 else $as_nop
7244 if test -n "$DUMPBIN"; then
7245 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 case $as_dir in #(((
7252 '') as_dir=./ ;;
7253 */) ;;
7254 *) as_dir=$as_dir/ ;;
7255 esac
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 DUMPBIN=$ac_cv_prog_DUMPBIN
7269 if test -n "$DUMPBIN"; then
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7271 printf "%s\n" "$DUMPBIN" >&6; }
7272 else
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 printf "%s\n" "no" >&6; }
7275 fi
7276
7277
7278 test -n "$DUMPBIN" && break
7279 done
7280 fi
7281 if test -z "$DUMPBIN"; then
7282 ac_ct_DUMPBIN=$DUMPBIN
7283 for ac_prog in dumpbin "link -dump"
7284 do
7285 # Extract the first word of "$ac_prog", so it can be a program name with args.
7286 set dummy $ac_prog; ac_word=$2
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 printf %s "checking for $ac_word... " >&6; }
7289 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7290 then :
7291 printf %s "(cached) " >&6
7292 else $as_nop
7293 if test -n "$ac_ct_DUMPBIN"; then
7294 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 case $as_dir in #(((
7301 '') as_dir=./ ;;
7302 */) ;;
7303 *) as_dir=$as_dir/ ;;
7304 esac
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7318 if test -n "$ac_ct_DUMPBIN"; then
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7320 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7321 else
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 printf "%s\n" "no" >&6; }
7324 fi
7325
7326
7327 test -n "$ac_ct_DUMPBIN" && break
7328 done
7329
7330 if test "x$ac_ct_DUMPBIN" = x; then
7331 DUMPBIN=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 DUMPBIN=$ac_ct_DUMPBIN
7340 fi
7341 fi
7342
7343 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7344 *COFF*)
7345 DUMPBIN="$DUMPBIN -symbols -headers"
7346 ;;
7347 *)
7348 DUMPBIN=:
7349 ;;
7350 esac
7351 fi
7352
7353 if test : != "$DUMPBIN"; then
7354 NM=$DUMPBIN
7355 fi
7356 fi
7357 test -z "$NM" && NM=nm
7358
7359
7360
7361
7362
7363
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7365 printf %s "checking the name lister ($NM) interface... " >&6; }
7366 if test ${lt_cv_nm_interface+y}
7367 then :
7368 printf %s "(cached) " >&6
7369 else $as_nop
7370 lt_cv_nm_interface="BSD nm"
7371 echo "int some_variable = 0;" > conftest.$ac_ext
7372 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7373 (eval "$ac_compile" 2>conftest.err)
7374 cat conftest.err >&5
7375 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7376 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7377 cat conftest.err >&5
7378 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7379 cat conftest.out >&5
7380 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7381 lt_cv_nm_interface="MS dumpbin"
7382 fi
7383 rm -f conftest*
7384 fi
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7386 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7387
7388 # find the maximum length of command line arguments
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7390 printf %s "checking the maximum length of command line arguments... " >&6; }
7391 if test ${lt_cv_sys_max_cmd_len+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else $as_nop
7395 i=0
7396 teststring=ABCD
7397
7398 case $build_os in
7399 msdosdjgpp*)
7400 # On DJGPP, this test can blow up pretty badly due to problems in libc
7401 # (any single argument exceeding 2000 bytes causes a buffer overrun
7402 # during glob expansion). Even if it were fixed, the result of this
7403 # check would be larger than it should be.
7404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7405 ;;
7406
7407 gnu*)
7408 # Under GNU Hurd, this test is not required because there is
7409 # no limit to the length of command line arguments.
7410 # Libtool will interpret -1 as no limit whatsoever
7411 lt_cv_sys_max_cmd_len=-1;
7412 ;;
7413
7414 cygwin* | mingw* | cegcc*)
7415 # On Win9x/ME, this test blows up -- it succeeds, but takes
7416 # about 5 minutes as the teststring grows exponentially.
7417 # Worse, since 9x/ME are not pre-emptively multitasking,
7418 # you end up with a "frozen" computer, even though with patience
7419 # the test eventually succeeds (with a max line length of 256k).
7420 # Instead, let's just punt: use the minimum linelength reported by
7421 # all of the supported platforms: 8192 (on NT/2K/XP).
7422 lt_cv_sys_max_cmd_len=8192;
7423 ;;
7424
7425 mint*)
7426 # On MiNT this can take a long time and run out of memory.
7427 lt_cv_sys_max_cmd_len=8192;
7428 ;;
7429
7430 amigaos*)
7431 # On AmigaOS with pdksh, this test takes hours, literally.
7432 # So we just punt and use a minimum line length of 8192.
7433 lt_cv_sys_max_cmd_len=8192;
7434 ;;
7435
7436 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7437 # This has been around since 386BSD, at least. Likely further.
7438 if test -x /sbin/sysctl; then
7439 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7440 elif test -x /usr/sbin/sysctl; then
7441 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7442 else
7443 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7444 fi
7445 # And add a safety zone
7446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7448 ;;
7449
7450 interix*)
7451 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7452 lt_cv_sys_max_cmd_len=196608
7453 ;;
7454
7455 os2*)
7456 # The test takes a long time on OS/2.
7457 lt_cv_sys_max_cmd_len=8192
7458 ;;
7459
7460 osf*)
7461 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7462 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7463 # nice to cause kernel panics so lets avoid the loop below.
7464 # First set a reasonable default.
7465 lt_cv_sys_max_cmd_len=16384
7466 #
7467 if test -x /sbin/sysconfig; then
7468 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7469 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7470 esac
7471 fi
7472 ;;
7473 sco3.2v5*)
7474 lt_cv_sys_max_cmd_len=102400
7475 ;;
7476 sysv5* | sco5v6* | sysv4.2uw2*)
7477 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7478 if test -n "$kargmax"; then
7479 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7480 else
7481 lt_cv_sys_max_cmd_len=32768
7482 fi
7483 ;;
7484 *)
7485 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7486 if test -n "$lt_cv_sys_max_cmd_len" && \
7487 test undefined != "$lt_cv_sys_max_cmd_len"; then
7488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7490 else
7491 # Make teststring a little bigger before we do anything with it.
7492 # a 1K string should be a reasonable start.
7493 for i in 1 2 3 4 5 6 7 8; do
7494 teststring=$teststring$teststring
7495 done
7496 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7497 # If test is not a shell built-in, we'll probably end up computing a
7498 # maximum length that is only half of the actual maximum length, but
7499 # we can't tell.
7500 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7501 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7502 test 17 != "$i" # 1/2 MB should be enough
7503 do
7504 i=`expr $i + 1`
7505 teststring=$teststring$teststring
7506 done
7507 # Only check the string length outside the loop.
7508 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7509 teststring=
7510 # Add a significant safety factor because C++ compilers can tack on
7511 # massive amounts of additional arguments before passing them to the
7512 # linker. It appears as though 1/2 is a usable value.
7513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7514 fi
7515 ;;
7516 esac
7517
7518 fi
7519
7520 if test -n "$lt_cv_sys_max_cmd_len"; then
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7522 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7523 else
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7525 printf "%s\n" "none" >&6; }
7526 fi
7527 max_cmd_len=$lt_cv_sys_max_cmd_len
7528
7529
7530
7531
7532
7533
7534 : ${CP="cp -f"}
7535 : ${MV="mv -f"}
7536 : ${RM="rm -f"}
7537
7538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7539 lt_unset=unset
7540 else
7541 lt_unset=false
7542 fi
7543
7544
7545
7546
7547
7548 # test EBCDIC or ASCII
7549 case `echo X|tr X '\101'` in
7550 A) # ASCII based system
7551 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7552 lt_SP2NL='tr \040 \012'
7553 lt_NL2SP='tr \015\012 \040\040'
7554 ;;
7555 *) # EBCDIC based system
7556 lt_SP2NL='tr \100 \n'
7557 lt_NL2SP='tr \r\n \100\100'
7558 ;;
7559 esac
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7570 printf %s "checking how to convert $build file names to $host format... " >&6; }
7571 if test ${lt_cv_to_host_file_cmd+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else $as_nop
7575 case $host in
7576 *-*-mingw* )
7577 case $build in
7578 *-*-mingw* ) # actually msys
7579 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7580 ;;
7581 *-*-cygwin* )
7582 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7583 ;;
7584 * ) # otherwise, assume *nix
7585 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7586 ;;
7587 esac
7588 ;;
7589 *-*-cygwin* )
7590 case $build in
7591 *-*-mingw* ) # actually msys
7592 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7593 ;;
7594 *-*-cygwin* )
7595 lt_cv_to_host_file_cmd=func_convert_file_noop
7596 ;;
7597 * ) # otherwise, assume *nix
7598 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7599 ;;
7600 esac
7601 ;;
7602 * ) # unhandled hosts (and "normal" native builds)
7603 lt_cv_to_host_file_cmd=func_convert_file_noop
7604 ;;
7605 esac
7606
7607 fi
7608
7609 to_host_file_cmd=$lt_cv_to_host_file_cmd
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7611 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7612
7613
7614
7615
7616
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7618 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7619 if test ${lt_cv_to_tool_file_cmd+y}
7620 then :
7621 printf %s "(cached) " >&6
7622 else $as_nop
7623 #assume ordinary cross tools, or native build.
7624 lt_cv_to_tool_file_cmd=func_convert_file_noop
7625 case $host in
7626 *-*-mingw* )
7627 case $build in
7628 *-*-mingw* ) # actually msys
7629 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7630 ;;
7631 esac
7632 ;;
7633 esac
7634
7635 fi
7636
7637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7639 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7640
7641
7642
7643
7644
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7646 printf %s "checking for $LD option to reload object files... " >&6; }
7647 if test ${lt_cv_ld_reload_flag+y}
7648 then :
7649 printf %s "(cached) " >&6
7650 else $as_nop
7651 lt_cv_ld_reload_flag='-r'
7652 fi
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7654 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7655 reload_flag=$lt_cv_ld_reload_flag
7656 case $reload_flag in
7657 "" | " "*) ;;
7658 *) reload_flag=" $reload_flag" ;;
7659 esac
7660 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7661 case $host_os in
7662 cygwin* | mingw* | pw32* | cegcc*)
7663 if test yes != "$GCC"; then
7664 reload_cmds=false
7665 fi
7666 ;;
7667 darwin*)
7668 if test yes = "$GCC"; then
7669 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7670 else
7671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7672 fi
7673 ;;
7674 esac
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 printf %s "checking for $ac_word... " >&6; }
7689 if test ${ac_cv_prog_OBJDUMP+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else $as_nop
7693 if test -n "$OBJDUMP"; then
7694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 case $as_dir in #(((
7701 '') as_dir=./ ;;
7702 */) ;;
7703 *) as_dir=$as_dir/ ;;
7704 esac
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 OBJDUMP=$ac_cv_prog_OBJDUMP
7718 if test -n "$OBJDUMP"; then
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7720 printf "%s\n" "$OBJDUMP" >&6; }
7721 else
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 printf "%s\n" "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_OBJDUMP"; then
7729 ac_ct_OBJDUMP=$OBJDUMP
7730 # Extract the first word of "objdump", so it can be a program name with args.
7731 set dummy objdump; ac_word=$2
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 printf %s "checking for $ac_word... " >&6; }
7734 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738 if test -n "$ac_ct_OBJDUMP"; then
7739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 case $as_dir in #(((
7746 '') as_dir=./ ;;
7747 */) ;;
7748 *) as_dir=$as_dir/ ;;
7749 esac
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7763 if test -n "$ac_ct_OBJDUMP"; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7765 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7766 else
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 printf "%s\n" "no" >&6; }
7769 fi
7770
7771 if test "x$ac_ct_OBJDUMP" = x; then
7772 OBJDUMP="false"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 OBJDUMP=$ac_ct_OBJDUMP
7781 fi
7782 else
7783 OBJDUMP="$ac_cv_prog_OBJDUMP"
7784 fi
7785
7786 test -z "$OBJDUMP" && OBJDUMP=objdump
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7797 printf %s "checking how to recognize dependent libraries... " >&6; }
7798 if test ${lt_cv_deplibs_check_method+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else $as_nop
7802 lt_cv_file_magic_cmd='$MAGIC_CMD'
7803 lt_cv_file_magic_test_file=
7804 lt_cv_deplibs_check_method='unknown'
7805 # Need to set the preceding variable on all platforms that support
7806 # interlibrary dependencies.
7807 # 'none' -- dependencies not supported.
7808 # 'unknown' -- same as none, but documents that we really don't know.
7809 # 'pass_all' -- all dependencies passed with no checks.
7810 # 'test_compile' -- check by making test program.
7811 # 'file_magic [[regex]]' -- check by looking for files in library path
7812 # that responds to the $file_magic_cmd with a given extended regex.
7813 # If you have 'file' or equivalent on your system and you're not sure
7814 # whether 'pass_all' will *always* work, you probably want this one.
7815
7816 case $host_os in
7817 aix[4-9]*)
7818 lt_cv_deplibs_check_method=pass_all
7819 ;;
7820
7821 beos*)
7822 lt_cv_deplibs_check_method=pass_all
7823 ;;
7824
7825 bsdi[45]*)
7826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7827 lt_cv_file_magic_cmd='/usr/bin/file -L'
7828 lt_cv_file_magic_test_file=/shlib/libc.so
7829 ;;
7830
7831 cygwin*)
7832 # func_win32_libid is a shell function defined in ltmain.sh
7833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7834 lt_cv_file_magic_cmd='func_win32_libid'
7835 ;;
7836
7837 mingw* | pw32*)
7838 # Base MSYS/MinGW do not provide the 'file' command needed by
7839 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7840 # unless we find 'file', for example because we are cross-compiling.
7841 if ( file / ) >/dev/null 2>&1; then
7842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7843 lt_cv_file_magic_cmd='func_win32_libid'
7844 else
7845 # Keep this pattern in sync with the one in func_win32_libid.
7846 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7847 lt_cv_file_magic_cmd='$OBJDUMP -f'
7848 fi
7849 ;;
7850
7851 cegcc*)
7852 # use the weaker test based on 'objdump'. See mingw*.
7853 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7854 lt_cv_file_magic_cmd='$OBJDUMP -f'
7855 ;;
7856
7857 darwin* | rhapsody*)
7858 lt_cv_deplibs_check_method=pass_all
7859 ;;
7860
7861 freebsd* | dragonfly*)
7862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7863 case $host_cpu in
7864 i*86 )
7865 # Not sure whether the presence of OpenBSD here was a mistake.
7866 # Let's accept both of them until this is cleared up.
7867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7868 lt_cv_file_magic_cmd=/usr/bin/file
7869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7870 ;;
7871 esac
7872 else
7873 lt_cv_deplibs_check_method=pass_all
7874 fi
7875 ;;
7876
7877 haiku*)
7878 lt_cv_deplibs_check_method=pass_all
7879 ;;
7880
7881 hpux10.20* | hpux11*)
7882 lt_cv_file_magic_cmd=/usr/bin/file
7883 case $host_cpu in
7884 ia64*)
7885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7887 ;;
7888 hppa*64*)
7889 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]'
7890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7891 ;;
7892 *)
7893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7895 ;;
7896 esac
7897 ;;
7898
7899 interix[3-9]*)
7900 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7902 ;;
7903
7904 irix5* | irix6* | nonstopux*)
7905 case $LD in
7906 *-32|*"-32 ") libmagic=32-bit;;
7907 *-n32|*"-n32 ") libmagic=N32;;
7908 *-64|*"-64 ") libmagic=64-bit;;
7909 *) libmagic=never-match;;
7910 esac
7911 lt_cv_deplibs_check_method=pass_all
7912 ;;
7913
7914 # This must be glibc/ELF.
7915 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7916 lt_cv_deplibs_check_method=pass_all
7917 ;;
7918
7919 netbsd* | netbsdelf*-gnu)
7920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7922 else
7923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7924 fi
7925 ;;
7926
7927 newos6*)
7928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7929 lt_cv_file_magic_cmd=/usr/bin/file
7930 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7931 ;;
7932
7933 *nto* | *qnx*)
7934 lt_cv_deplibs_check_method=pass_all
7935 ;;
7936
7937 openbsd* | bitrig*)
7938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7940 else
7941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7942 fi
7943 ;;
7944
7945 osf3* | osf4* | osf5*)
7946 lt_cv_deplibs_check_method=pass_all
7947 ;;
7948
7949 rdos*)
7950 lt_cv_deplibs_check_method=pass_all
7951 ;;
7952
7953 solaris*)
7954 lt_cv_deplibs_check_method=pass_all
7955 ;;
7956
7957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7958 lt_cv_deplibs_check_method=pass_all
7959 ;;
7960
7961 sysv4 | sysv4.3*)
7962 case $host_vendor in
7963 motorola)
7964 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]'
7965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7966 ;;
7967 ncr)
7968 lt_cv_deplibs_check_method=pass_all
7969 ;;
7970 sequent)
7971 lt_cv_file_magic_cmd='/bin/file'
7972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7973 ;;
7974 sni)
7975 lt_cv_file_magic_cmd='/bin/file'
7976 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7977 lt_cv_file_magic_test_file=/lib/libc.so
7978 ;;
7979 siemens)
7980 lt_cv_deplibs_check_method=pass_all
7981 ;;
7982 pc)
7983 lt_cv_deplibs_check_method=pass_all
7984 ;;
7985 esac
7986 ;;
7987
7988 tpf*)
7989 lt_cv_deplibs_check_method=pass_all
7990 ;;
7991 os2*)
7992 lt_cv_deplibs_check_method=pass_all
7993 ;;
7994 esac
7995
7996 fi
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7998 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7999
8000 file_magic_glob=
8001 want_nocaseglob=no
8002 if test "$build" = "$host"; then
8003 case $host_os in
8004 mingw* | pw32*)
8005 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8006 want_nocaseglob=yes
8007 else
8008 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8009 fi
8010 ;;
8011 esac
8012 fi
8013
8014 file_magic_cmd=$lt_cv_file_magic_cmd
8015 deplibs_check_method=$lt_cv_deplibs_check_method
8016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 printf %s "checking for $ac_word... " >&6; }
8044 if test ${ac_cv_prog_DLLTOOL+y}
8045 then :
8046 printf %s "(cached) " >&6
8047 else $as_nop
8048 if test -n "$DLLTOOL"; then
8049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 case $as_dir in #(((
8056 '') as_dir=./ ;;
8057 */) ;;
8058 *) as_dir=$as_dir/ ;;
8059 esac
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066 done
8067 done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 DLLTOOL=$ac_cv_prog_DLLTOOL
8073 if test -n "$DLLTOOL"; then
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8075 printf "%s\n" "$DLLTOOL" >&6; }
8076 else
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 printf "%s\n" "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_DLLTOOL"; then
8084 ac_ct_DLLTOOL=$DLLTOOL
8085 # Extract the first word of "dlltool", so it can be a program name with args.
8086 set dummy dlltool; ac_word=$2
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 printf %s "checking for $ac_word... " >&6; }
8089 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8090 then :
8091 printf %s "(cached) " >&6
8092 else $as_nop
8093 if test -n "$ac_ct_DLLTOOL"; then
8094 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 case $as_dir in #(((
8101 '') as_dir=./ ;;
8102 */) ;;
8103 *) as_dir=$as_dir/ ;;
8104 esac
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8118 if test -n "$ac_ct_DLLTOOL"; then
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8120 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8121 else
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 printf "%s\n" "no" >&6; }
8124 fi
8125
8126 if test "x$ac_ct_DLLTOOL" = x; then
8127 DLLTOOL="false"
8128 else
8129 case $cross_compiling:$ac_tool_warned in
8130 yes:)
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133 ac_tool_warned=yes ;;
8134 esac
8135 DLLTOOL=$ac_ct_DLLTOOL
8136 fi
8137 else
8138 DLLTOOL="$ac_cv_prog_DLLTOOL"
8139 fi
8140
8141 test -z "$DLLTOOL" && DLLTOOL=dlltool
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8153 printf %s "checking how to associate runtime and link libraries... " >&6; }
8154 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8155 then :
8156 printf %s "(cached) " >&6
8157 else $as_nop
8158 lt_cv_sharedlib_from_linklib_cmd='unknown'
8159
8160 case $host_os in
8161 cygwin* | mingw* | pw32* | cegcc*)
8162 # two different shell functions defined in ltmain.sh;
8163 # decide which one to use based on capabilities of $DLLTOOL
8164 case `$DLLTOOL --help 2>&1` in
8165 *--identify-strict*)
8166 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8167 ;;
8168 *)
8169 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8170 ;;
8171 esac
8172 ;;
8173 *)
8174 # fallback: assume linklib IS sharedlib
8175 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8176 ;;
8177 esac
8178
8179 fi
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8181 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8182 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8183 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8184
8185
8186
8187
8188
8189
8190
8191 if test -n "$ac_tool_prefix"; then
8192 for ac_prog in ar
8193 do
8194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_prog_AR+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else $as_nop
8202 if test -n "$AR"; then
8203 ac_cv_prog_AR="$AR" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 case $as_dir in #(((
8210 '') as_dir=./ ;;
8211 */) ;;
8212 *) as_dir=$as_dir/ ;;
8213 esac
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 AR=$ac_cv_prog_AR
8227 if test -n "$AR"; then
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8229 printf "%s\n" "$AR" >&6; }
8230 else
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8233 fi
8234
8235
8236 test -n "$AR" && break
8237 done
8238 fi
8239 if test -z "$AR"; then
8240 ac_ct_AR=$AR
8241 for ac_prog in ar
8242 do
8243 # Extract the first word of "$ac_prog", so it can be a program name with args.
8244 set dummy $ac_prog; ac_word=$2
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 printf %s "checking for $ac_word... " >&6; }
8247 if test ${ac_cv_prog_ac_ct_AR+y}
8248 then :
8249 printf %s "(cached) " >&6
8250 else $as_nop
8251 if test -n "$ac_ct_AR"; then
8252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257 IFS=$as_save_IFS
8258 case $as_dir in #(((
8259 '') as_dir=./ ;;
8260 */) ;;
8261 *) as_dir=$as_dir/ ;;
8262 esac
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_ac_ct_AR="$ac_prog"
8266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8267 break 2
8268 fi
8269 done
8270 done
8271 IFS=$as_save_IFS
8272
8273 fi
8274 fi
8275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8276 if test -n "$ac_ct_AR"; then
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8278 printf "%s\n" "$ac_ct_AR" >&6; }
8279 else
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 printf "%s\n" "no" >&6; }
8282 fi
8283
8284
8285 test -n "$ac_ct_AR" && break
8286 done
8287
8288 if test "x$ac_ct_AR" = x; then
8289 AR="false"
8290 else
8291 case $cross_compiling:$ac_tool_warned in
8292 yes:)
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8295 ac_tool_warned=yes ;;
8296 esac
8297 AR=$ac_ct_AR
8298 fi
8299 fi
8300
8301 : ${AR=ar}
8302 : ${AR_FLAGS=cr}
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8315 printf %s "checking for archiver @FILE support... " >&6; }
8316 if test ${lt_cv_ar_at_file+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else $as_nop
8320 lt_cv_ar_at_file=no
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323
8324 int
8325 main (void)
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"
8333 then :
8334 echo conftest.$ac_objext > conftest.lst
8335 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8337 (eval $lt_ar_try) 2>&5
8338 ac_status=$?
8339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8340 test $ac_status = 0; }
8341 if test 0 -eq "$ac_status"; then
8342 # Ensure the archiver fails upon bogus file names.
8343 rm -f conftest.$ac_objext libconftest.a
8344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8345 (eval $lt_ar_try) 2>&5
8346 ac_status=$?
8347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348 test $ac_status = 0; }
8349 if test 0 -ne "$ac_status"; then
8350 lt_cv_ar_at_file=@
8351 fi
8352 fi
8353 rm -f conftest.* libconftest.a
8354
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8357
8358 fi
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8360 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8361
8362 if test no = "$lt_cv_ar_at_file"; then
8363 archiver_list_spec=
8364 else
8365 archiver_list_spec=$lt_cv_ar_at_file
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374 if test -n "$ac_tool_prefix"; then
8375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 printf %s "checking for $ac_word... " >&6; }
8379 if test ${ac_cv_prog_STRIP+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else $as_nop
8383 if test -n "$STRIP"; then
8384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8385 else
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8388 do
8389 IFS=$as_save_IFS
8390 case $as_dir in #(((
8391 '') as_dir=./ ;;
8392 */) ;;
8393 *) as_dir=$as_dir/ ;;
8394 esac
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8397 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8404
8405 fi
8406 fi
8407 STRIP=$ac_cv_prog_STRIP
8408 if test -n "$STRIP"; then
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8410 printf "%s\n" "$STRIP" >&6; }
8411 else
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 printf "%s\n" "no" >&6; }
8414 fi
8415
8416
8417 fi
8418 if test -z "$ac_cv_prog_STRIP"; then
8419 ac_ct_STRIP=$STRIP
8420 # Extract the first word of "strip", so it can be a program name with args.
8421 set dummy strip; ac_word=$2
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 printf %s "checking for $ac_word... " >&6; }
8424 if test ${ac_cv_prog_ac_ct_STRIP+y}
8425 then :
8426 printf %s "(cached) " >&6
8427 else $as_nop
8428 if test -n "$ac_ct_STRIP"; then
8429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434 IFS=$as_save_IFS
8435 case $as_dir in #(((
8436 '') as_dir=./ ;;
8437 */) ;;
8438 *) as_dir=$as_dir/ ;;
8439 esac
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_ac_ct_STRIP="strip"
8443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8444 break 2
8445 fi
8446 done
8447 done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8453 if test -n "$ac_ct_STRIP"; then
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8455 printf "%s\n" "$ac_ct_STRIP" >&6; }
8456 else
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 printf "%s\n" "no" >&6; }
8459 fi
8460
8461 if test "x$ac_ct_STRIP" = x; then
8462 STRIP=":"
8463 else
8464 case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470 STRIP=$ac_ct_STRIP
8471 fi
8472 else
8473 STRIP="$ac_cv_prog_STRIP"
8474 fi
8475
8476 test -z "$STRIP" && STRIP=:
8477
8478
8479
8480
8481
8482
8483 if test -n "$ac_tool_prefix"; then
8484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 printf %s "checking for $ac_word... " >&6; }
8488 if test ${ac_cv_prog_RANLIB+y}
8489 then :
8490 printf %s "(cached) " >&6
8491 else $as_nop
8492 if test -n "$RANLIB"; then
8493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498 IFS=$as_save_IFS
8499 case $as_dir in #(((
8500 '') as_dir=./ ;;
8501 */) ;;
8502 *) as_dir=$as_dir/ ;;
8503 esac
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8508 break 2
8509 fi
8510 done
8511 done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 RANLIB=$ac_cv_prog_RANLIB
8517 if test -n "$RANLIB"; then
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8519 printf "%s\n" "$RANLIB" >&6; }
8520 else
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 printf "%s\n" "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_RANLIB"; then
8528 ac_ct_RANLIB=$RANLIB
8529 # Extract the first word of "ranlib", so it can be a program name with args.
8530 set dummy ranlib; ac_word=$2
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 printf %s "checking for $ac_word... " >&6; }
8533 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else $as_nop
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543 IFS=$as_save_IFS
8544 case $as_dir in #(((
8545 '') as_dir=./ ;;
8546 */) ;;
8547 *) as_dir=$as_dir/ ;;
8548 esac
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_ac_ct_RANLIB="ranlib"
8552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8558
8559 fi
8560 fi
8561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8562 if test -n "$ac_ct_RANLIB"; then
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8564 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8565 else
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 printf "%s\n" "no" >&6; }
8568 fi
8569
8570 if test "x$ac_ct_RANLIB" = x; then
8571 RANLIB=":"
8572 else
8573 case $cross_compiling:$ac_tool_warned in
8574 yes:)
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8576 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8577 ac_tool_warned=yes ;;
8578 esac
8579 RANLIB=$ac_ct_RANLIB
8580 fi
8581 else
8582 RANLIB="$ac_cv_prog_RANLIB"
8583 fi
8584
8585 test -z "$RANLIB" && RANLIB=:
8586
8587
8588
8589
8590
8591
8592 # Determine commands to create old-style static archives.
8593 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8594 old_postinstall_cmds='chmod 644 $oldlib'
8595 old_postuninstall_cmds=
8596
8597 if test -n "$RANLIB"; then
8598 case $host_os in
8599 bitrig* | openbsd*)
8600 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8601 ;;
8602 *)
8603 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8604 ;;
8605 esac
8606 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8607 fi
8608
8609 case $host_os in
8610 darwin*)
8611 lock_old_archive_extraction=yes ;;
8612 *)
8613 lock_old_archive_extraction=no ;;
8614 esac
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 # If no C compiler was specified, use CC.
8655 LTCC=${LTCC-"$CC"}
8656
8657 # If no C compiler flags were specified, use CFLAGS.
8658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8659
8660 # Allow CC to be a program name with arguments.
8661 compiler=$CC
8662
8663
8664 # Check for command to grab the raw symbol name followed by C symbol from nm.
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8666 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8667 if test ${lt_cv_sys_global_symbol_pipe+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else $as_nop
8671
8672 # These are sane defaults that work on at least a few old systems.
8673 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8674
8675 # Character class describing NM global symbol codes.
8676 symcode='[BCDEGRST]'
8677
8678 # Regexp to match symbols that can be accessed directly from C.
8679 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8680
8681 # Define system-specific variables.
8682 case $host_os in
8683 aix*)
8684 symcode='[BCDT]'
8685 ;;
8686 cygwin* | mingw* | pw32* | cegcc*)
8687 symcode='[ABCDGISTW]'
8688 ;;
8689 hpux*)
8690 if test ia64 = "$host_cpu"; then
8691 symcode='[ABCDEGRST]'
8692 fi
8693 ;;
8694 irix* | nonstopux*)
8695 symcode='[BCDEGRST]'
8696 ;;
8697 osf*)
8698 symcode='[BCDEGQRST]'
8699 ;;
8700 solaris*)
8701 symcode='[BDRT]'
8702 ;;
8703 sco3.2v5*)
8704 symcode='[DT]'
8705 ;;
8706 sysv4.2uw2*)
8707 symcode='[DT]'
8708 ;;
8709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8710 symcode='[ABDT]'
8711 ;;
8712 sysv4)
8713 symcode='[DFNSTU]'
8714 ;;
8715 esac
8716
8717 # If we're using GNU nm, then use its standard symbol codes.
8718 case `$NM -V 2>&1` in
8719 *GNU* | *'with BFD'*)
8720 symcode='[ABCDGIRSTW]' ;;
8721 esac
8722
8723 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8724 # Gets list of data symbols to import.
8725 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8726 # Adjust the below global symbol transforms to fixup imported variables.
8727 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8728 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8729 lt_c_name_lib_hook="\
8730 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8731 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8732 else
8733 # Disable hooks by default.
8734 lt_cv_sys_global_symbol_to_import=
8735 lt_cdecl_hook=
8736 lt_c_name_hook=
8737 lt_c_name_lib_hook=
8738 fi
8739
8740 # Transform an extracted symbol line into a proper C declaration.
8741 # Some systems (esp. on ia64) link data and code symbols differently,
8742 # so use this general approach.
8743 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8744 $lt_cdecl_hook\
8745 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8746 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8747
8748 # Transform an extracted symbol line into symbol name and symbol address
8749 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8750 $lt_c_name_hook\
8751 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8752 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8753
8754 # Transform an extracted symbol line into symbol name with lib prefix and
8755 # symbol address.
8756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8757 $lt_c_name_lib_hook\
8758 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8759 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8760 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8761
8762 # Handle CRLF in mingw tool chain
8763 opt_cr=
8764 case $build_os in
8765 mingw*)
8766 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8767 ;;
8768 esac
8769
8770 # Try without a prefix underscore, then with it.
8771 for ac_symprfx in "" "_"; do
8772
8773 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8774 symxfrm="\\1 $ac_symprfx\\2 \\2"
8775
8776 # Write the raw and C identifiers.
8777 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8778 # Fake it for dumpbin and say T for any non-static function,
8779 # D for any global variable and I for any imported variable.
8780 # Also find C++ and __fastcall symbols from MSVC++,
8781 # which start with @ or ?.
8782 lt_cv_sys_global_symbol_pipe="$AWK '"\
8783 " {last_section=section; section=\$ 3};"\
8784 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8785 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8786 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8787 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8788 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8789 " \$ 0!~/External *\|/{next};"\
8790 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8791 " {if(hide[section]) next};"\
8792 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8793 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8794 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8795 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8796 " ' prfx=^$ac_symprfx"
8797 else
8798 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8799 fi
8800 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8801
8802 # Check to see that the pipe works correctly.
8803 pipe_works=no
8804
8805 rm -f conftest*
8806 cat > conftest.$ac_ext <<_LT_EOF
8807 #ifdef __cplusplus
8808 extern "C" {
8809 #endif
8810 char nm_test_var;
8811 void nm_test_func(void);
8812 void nm_test_func(void){}
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816 int main(){nm_test_var='a';nm_test_func();return(0);}
8817 _LT_EOF
8818
8819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8820 (eval $ac_compile) 2>&5
8821 ac_status=$?
8822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823 test $ac_status = 0; }; then
8824 # Now try to grab the symbols.
8825 nlist=conftest.nm
8826 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8827 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8828 # Try sorting and uniquifying the output.
8829 if sort "$nlist" | uniq > "$nlist"T; then
8830 mv -f "$nlist"T "$nlist"
8831 else
8832 rm -f "$nlist"T
8833 fi
8834
8835 # Make sure that we snagged all the symbols we need.
8836 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8837 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8838 cat <<_LT_EOF > conftest.$ac_ext
8839 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8840 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8841 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8842 relocations are performed -- see ld's documentation on pseudo-relocs. */
8843 # define LT_DLSYM_CONST
8844 #elif defined __osf__
8845 /* This system does not cope well with relocations in const data. */
8846 # define LT_DLSYM_CONST
8847 #else
8848 # define LT_DLSYM_CONST const
8849 #endif
8850
8851 #ifdef __cplusplus
8852 extern "C" {
8853 #endif
8854
8855 _LT_EOF
8856 # Now generate the symbol file.
8857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8858
8859 cat <<_LT_EOF >> conftest.$ac_ext
8860
8861 /* The mapping between symbol names and symbols. */
8862 LT_DLSYM_CONST struct {
8863 const char *name;
8864 void *address;
8865 }
8866 lt__PROGRAM__LTX_preloaded_symbols[] =
8867 {
8868 { "@PROGRAM@", (void *) 0 },
8869 _LT_EOF
8870 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8871 cat <<\_LT_EOF >> conftest.$ac_ext
8872 {0, (void *) 0}
8873 };
8874
8875 /* This works around a problem in FreeBSD linker */
8876 #ifdef FREEBSD_WORKAROUND
8877 static const void *lt_preloaded_setup() {
8878 return lt__PROGRAM__LTX_preloaded_symbols;
8879 }
8880 #endif
8881
8882 #ifdef __cplusplus
8883 }
8884 #endif
8885 _LT_EOF
8886 # Now try linking the two files.
8887 mv conftest.$ac_objext conftstm.$ac_objext
8888 lt_globsym_save_LIBS=$LIBS
8889 lt_globsym_save_CFLAGS=$CFLAGS
8890 LIBS=conftstm.$ac_objext
8891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8893 (eval $ac_link) 2>&5
8894 ac_status=$?
8895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8896 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8897 pipe_works=yes
8898 fi
8899 LIBS=$lt_globsym_save_LIBS
8900 CFLAGS=$lt_globsym_save_CFLAGS
8901 else
8902 echo "cannot find nm_test_func in $nlist" >&5
8903 fi
8904 else
8905 echo "cannot find nm_test_var in $nlist" >&5
8906 fi
8907 else
8908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8909 fi
8910 else
8911 echo "$progname: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 fi
8914 rm -rf conftest* conftst*
8915
8916 # Do not use the global_symbol_pipe unless it works.
8917 if test yes = "$pipe_works"; then
8918 break
8919 else
8920 lt_cv_sys_global_symbol_pipe=
8921 fi
8922 done
8923
8924 fi
8925
8926 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8927 lt_cv_sys_global_symbol_to_cdecl=
8928 fi
8929 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8931 printf "%s\n" "failed" >&6; }
8932 else
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8934 printf "%s\n" "ok" >&6; }
8935 fi
8936
8937 # Response file support.
8938 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8939 nm_file_list_spec='@'
8940 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8941 nm_file_list_spec='@'
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8981 printf %s "checking for sysroot... " >&6; }
8982
8983 # Check whether --with-sysroot was given.
8984 if test ${with_sysroot+y}
8985 then :
8986 withval=$with_sysroot;
8987 else $as_nop
8988 with_sysroot=no
8989 fi
8990
8991
8992 lt_sysroot=
8993 case $with_sysroot in #(
8994 yes)
8995 if test yes = "$GCC"; then
8996 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8997 fi
8998 ;; #(
8999 /*)
9000 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9001 ;; #(
9002 no|'')
9003 ;; #(
9004 *)
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9006 printf "%s\n" "$with_sysroot" >&6; }
9007 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9008 ;;
9009 esac
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9012 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9013
9014
9015
9016
9017
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9019 printf %s "checking for a working dd... " >&6; }
9020 if test ${ac_cv_path_lt_DD+y}
9021 then :
9022 printf %s "(cached) " >&6
9023 else $as_nop
9024 printf 0123456789abcdef0123456789abcdef >conftest.i
9025 cat conftest.i conftest.i >conftest2.i
9026 : ${lt_DD:=$DD}
9027 if test -z "$lt_DD"; then
9028 ac_path_lt_DD_found=false
9029 # Loop through the user's path and test for each of PROGNAME-LIST
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9032 do
9033 IFS=$as_save_IFS
9034 case $as_dir in #(((
9035 '') as_dir=./ ;;
9036 */) ;;
9037 *) as_dir=$as_dir/ ;;
9038 esac
9039 for ac_prog in dd
9040 do
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9043 as_fn_executable_p "$ac_path_lt_DD" || continue
9044 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9045 cmp -s conftest.i conftest.out \
9046 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9047 fi
9048 $ac_path_lt_DD_found && break 3
9049 done
9050 done
9051 done
9052 IFS=$as_save_IFS
9053 if test -z "$ac_cv_path_lt_DD"; then
9054 :
9055 fi
9056 else
9057 ac_cv_path_lt_DD=$lt_DD
9058 fi
9059
9060 rm -f conftest.i conftest2.i conftest.out
9061 fi
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9063 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9064
9065
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9067 printf %s "checking how to truncate binary pipes... " >&6; }
9068 if test ${lt_cv_truncate_bin+y}
9069 then :
9070 printf %s "(cached) " >&6
9071 else $as_nop
9072 printf 0123456789abcdef0123456789abcdef >conftest.i
9073 cat conftest.i conftest.i >conftest2.i
9074 lt_cv_truncate_bin=
9075 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9076 cmp -s conftest.i conftest.out \
9077 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9078 fi
9079 rm -f conftest.i conftest2.i conftest.out
9080 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9081 fi
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9083 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9084
9085
9086
9087
9088
9089
9090
9091 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9092 func_cc_basename ()
9093 {
9094 for cc_temp in $*""; do
9095 case $cc_temp in
9096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9098 \-*) ;;
9099 *) break;;
9100 esac
9101 done
9102 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9103 }
9104
9105 # Check whether --enable-libtool-lock was given.
9106 if test ${enable_libtool_lock+y}
9107 then :
9108 enableval=$enable_libtool_lock;
9109 fi
9110
9111 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9112
9113 # Some flags need to be propagated to the compiler or linker for good
9114 # libtool support.
9115 case $host in
9116 ia64-*-hpux*)
9117 # Find out what ABI is being produced by ac_compile, and set mode
9118 # options accordingly.
9119 echo 'int i;' > conftest.$ac_ext
9120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9121 (eval $ac_compile) 2>&5
9122 ac_status=$?
9123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9124 test $ac_status = 0; }; then
9125 case `/usr/bin/file conftest.$ac_objext` in
9126 *ELF-32*)
9127 HPUX_IA64_MODE=32
9128 ;;
9129 *ELF-64*)
9130 HPUX_IA64_MODE=64
9131 ;;
9132 esac
9133 fi
9134 rm -rf conftest*
9135 ;;
9136 *-*-irix6*)
9137 # Find out what ABI is being produced by ac_compile, and set linker
9138 # options accordingly.
9139 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9141 (eval $ac_compile) 2>&5
9142 ac_status=$?
9143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9144 test $ac_status = 0; }; then
9145 if test yes = "$lt_cv_prog_gnu_ld"; then
9146 case `/usr/bin/file conftest.$ac_objext` in
9147 *32-bit*)
9148 LD="${LD-ld} -melf32bsmip"
9149 ;;
9150 *N32*)
9151 LD="${LD-ld} -melf32bmipn32"
9152 ;;
9153 *64-bit*)
9154 LD="${LD-ld} -melf64bmip"
9155 ;;
9156 esac
9157 else
9158 case `/usr/bin/file conftest.$ac_objext` in
9159 *32-bit*)
9160 LD="${LD-ld} -32"
9161 ;;
9162 *N32*)
9163 LD="${LD-ld} -n32"
9164 ;;
9165 *64-bit*)
9166 LD="${LD-ld} -64"
9167 ;;
9168 esac
9169 fi
9170 fi
9171 rm -rf conftest*
9172 ;;
9173
9174 mips64*-*linux*)
9175 # Find out what ABI is being produced by ac_compile, and set linker
9176 # options accordingly.
9177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9179 (eval $ac_compile) 2>&5
9180 ac_status=$?
9181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182 test $ac_status = 0; }; then
9183 emul=elf
9184 case `/usr/bin/file conftest.$ac_objext` in
9185 *32-bit*)
9186 emul="${emul}32"
9187 ;;
9188 *64-bit*)
9189 emul="${emul}64"
9190 ;;
9191 esac
9192 case `/usr/bin/file conftest.$ac_objext` in
9193 *MSB*)
9194 emul="${emul}btsmip"
9195 ;;
9196 *LSB*)
9197 emul="${emul}ltsmip"
9198 ;;
9199 esac
9200 case `/usr/bin/file conftest.$ac_objext` in
9201 *N32*)
9202 emul="${emul}n32"
9203 ;;
9204 esac
9205 LD="${LD-ld} -m $emul"
9206 fi
9207 rm -rf conftest*
9208 ;;
9209
9210 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9211 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9212 # Find out what ABI is being produced by ac_compile, and set linker
9213 # options accordingly. Note that the listed cases only cover the
9214 # situations where additional linker options are needed (such as when
9215 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9216 # vice versa); the common cases where no linker options are needed do
9217 # not appear in the list.
9218 echo 'int i;' > conftest.$ac_ext
9219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9220 (eval $ac_compile) 2>&5
9221 ac_status=$?
9222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9223 test $ac_status = 0; }; then
9224 case `/usr/bin/file conftest.o` in
9225 *32-bit*)
9226 case $host in
9227 x86_64-*kfreebsd*-gnu)
9228 LD="${LD-ld} -m elf_i386_fbsd"
9229 ;;
9230 x86_64-*linux*)
9231 case `/usr/bin/file conftest.o` in
9232 *x86-64*)
9233 LD="${LD-ld} -m elf32_x86_64"
9234 ;;
9235 *)
9236 LD="${LD-ld} -m elf_i386"
9237 ;;
9238 esac
9239 ;;
9240 powerpc64le-*linux*)
9241 LD="${LD-ld} -m elf32lppclinux"
9242 ;;
9243 powerpc64-*linux*)
9244 LD="${LD-ld} -m elf32ppclinux"
9245 ;;
9246 s390x-*linux*)
9247 LD="${LD-ld} -m elf_s390"
9248 ;;
9249 sparc64-*linux*)
9250 LD="${LD-ld} -m elf32_sparc"
9251 ;;
9252 esac
9253 ;;
9254 *64-bit*)
9255 case $host in
9256 x86_64-*kfreebsd*-gnu)
9257 LD="${LD-ld} -m elf_x86_64_fbsd"
9258 ;;
9259 x86_64-*linux*)
9260 LD="${LD-ld} -m elf_x86_64"
9261 ;;
9262 powerpcle-*linux*)
9263 LD="${LD-ld} -m elf64lppc"
9264 ;;
9265 powerpc-*linux*)
9266 LD="${LD-ld} -m elf64ppc"
9267 ;;
9268 s390*-*linux*|s390*-*tpf*)
9269 LD="${LD-ld} -m elf64_s390"
9270 ;;
9271 sparc*-*linux*)
9272 LD="${LD-ld} -m elf64_sparc"
9273 ;;
9274 esac
9275 ;;
9276 esac
9277 fi
9278 rm -rf conftest*
9279 ;;
9280
9281 *-*-sco3.2v5*)
9282 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9283 SAVE_CFLAGS=$CFLAGS
9284 CFLAGS="$CFLAGS -belf"
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9286 printf %s "checking whether the C compiler needs -belf... " >&6; }
9287 if test ${lt_cv_cc_needs_belf+y}
9288 then :
9289 printf %s "(cached) " >&6
9290 else $as_nop
9291 ac_ext=c
9292 ac_cpp='$CPP $CPPFLAGS'
9293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9296
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299
9300 int
9301 main (void)
9302 {
9303
9304 ;
9305 return 0;
9306 }
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"
9309 then :
9310 lt_cv_cc_needs_belf=yes
9311 else $as_nop
9312 lt_cv_cc_needs_belf=no
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9315 conftest$ac_exeext conftest.$ac_ext
9316 ac_ext=c
9317 ac_cpp='$CPP $CPPFLAGS'
9318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321
9322 fi
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9324 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9325 if test yes != "$lt_cv_cc_needs_belf"; then
9326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9327 CFLAGS=$SAVE_CFLAGS
9328 fi
9329 ;;
9330 *-*solaris*)
9331 # Find out what ABI is being produced by ac_compile, and set linker
9332 # options accordingly.
9333 echo 'int i;' > conftest.$ac_ext
9334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9335 (eval $ac_compile) 2>&5
9336 ac_status=$?
9337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9338 test $ac_status = 0; }; then
9339 case `/usr/bin/file conftest.o` in
9340 *64-bit*)
9341 case $lt_cv_prog_gnu_ld in
9342 yes*)
9343 case $host in
9344 i?86-*-solaris*|x86_64-*-solaris*)
9345 LD="${LD-ld} -m elf_x86_64"
9346 ;;
9347 sparc*-*-solaris*)
9348 LD="${LD-ld} -m elf64_sparc"
9349 ;;
9350 esac
9351 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9352 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9353 LD=${LD-ld}_sol2
9354 fi
9355 ;;
9356 *)
9357 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9358 LD="${LD-ld} -64"
9359 fi
9360 ;;
9361 esac
9362 ;;
9363 esac
9364 fi
9365 rm -rf conftest*
9366 ;;
9367 esac
9368
9369 need_locks=$enable_libtool_lock
9370
9371 if test -n "$ac_tool_prefix"; then
9372 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9373 set dummy ${ac_tool_prefix}mt; ac_word=$2
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 printf %s "checking for $ac_word... " >&6; }
9376 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9377 then :
9378 printf %s "(cached) " >&6
9379 else $as_nop
9380 if test -n "$MANIFEST_TOOL"; then
9381 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9382 else
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9385 do
9386 IFS=$as_save_IFS
9387 case $as_dir in #(((
9388 '') as_dir=./ ;;
9389 */) ;;
9390 *) as_dir=$as_dir/ ;;
9391 esac
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9394 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9396 break 2
9397 fi
9398 done
9399 done
9400 IFS=$as_save_IFS
9401
9402 fi
9403 fi
9404 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9405 if test -n "$MANIFEST_TOOL"; then
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9407 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9408 else
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 printf "%s\n" "no" >&6; }
9411 fi
9412
9413
9414 fi
9415 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9417 # Extract the first word of "mt", so it can be a program name with args.
9418 set dummy mt; ac_word=$2
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420 printf %s "checking for $ac_word... " >&6; }
9421 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9422 then :
9423 printf %s "(cached) " >&6
9424 else $as_nop
9425 if test -n "$ac_ct_MANIFEST_TOOL"; then
9426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431 IFS=$as_save_IFS
9432 case $as_dir in #(((
9433 '') as_dir=./ ;;
9434 */) ;;
9435 *) as_dir=$as_dir/ ;;
9436 esac
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9450 if test -n "$ac_ct_MANIFEST_TOOL"; then
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9452 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9453 else
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 printf "%s\n" "no" >&6; }
9456 fi
9457
9458 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9459 MANIFEST_TOOL=":"
9460 else
9461 case $cross_compiling:$ac_tool_warned in
9462 yes:)
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9464 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9465 ac_tool_warned=yes ;;
9466 esac
9467 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9468 fi
9469 else
9470 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9471 fi
9472
9473 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9475 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9476 if test ${lt_cv_path_mainfest_tool+y}
9477 then :
9478 printf %s "(cached) " >&6
9479 else $as_nop
9480 lt_cv_path_mainfest_tool=no
9481 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9482 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9483 cat conftest.err >&5
9484 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9485 lt_cv_path_mainfest_tool=yes
9486 fi
9487 rm -f conftest*
9488 fi
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9490 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9491 if test yes != "$lt_cv_path_mainfest_tool"; then
9492 MANIFEST_TOOL=:
9493 fi
9494
9495
9496
9497
9498
9499
9500 case $host_os in
9501 rhapsody* | darwin*)
9502 if test -n "$ac_tool_prefix"; then
9503 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9504 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 printf %s "checking for $ac_word... " >&6; }
9507 if test ${ac_cv_prog_DSYMUTIL+y}
9508 then :
9509 printf %s "(cached) " >&6
9510 else $as_nop
9511 if test -n "$DSYMUTIL"; then
9512 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517 IFS=$as_save_IFS
9518 case $as_dir in #(((
9519 '') as_dir=./ ;;
9520 */) ;;
9521 *) as_dir=$as_dir/ ;;
9522 esac
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529 done
9530 done
9531 IFS=$as_save_IFS
9532
9533 fi
9534 fi
9535 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9536 if test -n "$DSYMUTIL"; then
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9538 printf "%s\n" "$DSYMUTIL" >&6; }
9539 else
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 printf "%s\n" "no" >&6; }
9542 fi
9543
9544
9545 fi
9546 if test -z "$ac_cv_prog_DSYMUTIL"; then
9547 ac_ct_DSYMUTIL=$DSYMUTIL
9548 # Extract the first word of "dsymutil", so it can be a program name with args.
9549 set dummy dsymutil; ac_word=$2
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 printf %s "checking for $ac_word... " >&6; }
9552 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9553 then :
9554 printf %s "(cached) " >&6
9555 else $as_nop
9556 if test -n "$ac_ct_DSYMUTIL"; then
9557 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 case $as_dir in #(((
9564 '') as_dir=./ ;;
9565 */) ;;
9566 *) as_dir=$as_dir/ ;;
9567 esac
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9572 break 2
9573 fi
9574 done
9575 done
9576 IFS=$as_save_IFS
9577
9578 fi
9579 fi
9580 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9581 if test -n "$ac_ct_DSYMUTIL"; then
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9583 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9584 else
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 printf "%s\n" "no" >&6; }
9587 fi
9588
9589 if test "x$ac_ct_DSYMUTIL" = x; then
9590 DSYMUTIL=":"
9591 else
9592 case $cross_compiling:$ac_tool_warned in
9593 yes:)
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9596 ac_tool_warned=yes ;;
9597 esac
9598 DSYMUTIL=$ac_ct_DSYMUTIL
9599 fi
9600 else
9601 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9602 fi
9603
9604 if test -n "$ac_tool_prefix"; then
9605 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9606 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 printf %s "checking for $ac_word... " >&6; }
9609 if test ${ac_cv_prog_NMEDIT+y}
9610 then :
9611 printf %s "(cached) " >&6
9612 else $as_nop
9613 if test -n "$NMEDIT"; then
9614 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9615 else
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $PATH
9618 do
9619 IFS=$as_save_IFS
9620 case $as_dir in #(((
9621 '') as_dir=./ ;;
9622 */) ;;
9623 *) as_dir=$as_dir/ ;;
9624 esac
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9627 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9629 break 2
9630 fi
9631 done
9632 done
9633 IFS=$as_save_IFS
9634
9635 fi
9636 fi
9637 NMEDIT=$ac_cv_prog_NMEDIT
9638 if test -n "$NMEDIT"; then
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9640 printf "%s\n" "$NMEDIT" >&6; }
9641 else
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 printf "%s\n" "no" >&6; }
9644 fi
9645
9646
9647 fi
9648 if test -z "$ac_cv_prog_NMEDIT"; then
9649 ac_ct_NMEDIT=$NMEDIT
9650 # Extract the first word of "nmedit", so it can be a program name with args.
9651 set dummy nmedit; ac_word=$2
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 printf %s "checking for $ac_word... " >&6; }
9654 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9655 then :
9656 printf %s "(cached) " >&6
9657 else $as_nop
9658 if test -n "$ac_ct_NMEDIT"; then
9659 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9660 else
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9663 do
9664 IFS=$as_save_IFS
9665 case $as_dir in #(((
9666 '') as_dir=./ ;;
9667 */) ;;
9668 *) as_dir=$as_dir/ ;;
9669 esac
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9672 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9674 break 2
9675 fi
9676 done
9677 done
9678 IFS=$as_save_IFS
9679
9680 fi
9681 fi
9682 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9683 if test -n "$ac_ct_NMEDIT"; then
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9685 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9686 else
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 printf "%s\n" "no" >&6; }
9689 fi
9690
9691 if test "x$ac_ct_NMEDIT" = x; then
9692 NMEDIT=":"
9693 else
9694 case $cross_compiling:$ac_tool_warned in
9695 yes:)
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9698 ac_tool_warned=yes ;;
9699 esac
9700 NMEDIT=$ac_ct_NMEDIT
9701 fi
9702 else
9703 NMEDIT="$ac_cv_prog_NMEDIT"
9704 fi
9705
9706 if test -n "$ac_tool_prefix"; then
9707 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9708 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 printf %s "checking for $ac_word... " >&6; }
9711 if test ${ac_cv_prog_LIPO+y}
9712 then :
9713 printf %s "(cached) " >&6
9714 else $as_nop
9715 if test -n "$LIPO"; then
9716 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721 IFS=$as_save_IFS
9722 case $as_dir in #(((
9723 '') as_dir=./ ;;
9724 */) ;;
9725 *) as_dir=$as_dir/ ;;
9726 esac
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9729 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733 done
9734 done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 LIPO=$ac_cv_prog_LIPO
9740 if test -n "$LIPO"; then
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9742 printf "%s\n" "$LIPO" >&6; }
9743 else
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 printf "%s\n" "no" >&6; }
9746 fi
9747
9748
9749 fi
9750 if test -z "$ac_cv_prog_LIPO"; then
9751 ac_ct_LIPO=$LIPO
9752 # Extract the first word of "lipo", so it can be a program name with args.
9753 set dummy lipo; ac_word=$2
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 printf %s "checking for $ac_word... " >&6; }
9756 if test ${ac_cv_prog_ac_ct_LIPO+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else $as_nop
9760 if test -n "$ac_ct_LIPO"; then
9761 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9762 else
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 for as_dir in $PATH
9765 do
9766 IFS=$as_save_IFS
9767 case $as_dir in #(((
9768 '') as_dir=./ ;;
9769 */) ;;
9770 *) as_dir=$as_dir/ ;;
9771 esac
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_ac_ct_LIPO="lipo"
9775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778 done
9779 done
9780 IFS=$as_save_IFS
9781
9782 fi
9783 fi
9784 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9785 if test -n "$ac_ct_LIPO"; then
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9787 printf "%s\n" "$ac_ct_LIPO" >&6; }
9788 else
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 printf "%s\n" "no" >&6; }
9791 fi
9792
9793 if test "x$ac_ct_LIPO" = x; then
9794 LIPO=":"
9795 else
9796 case $cross_compiling:$ac_tool_warned in
9797 yes:)
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9800 ac_tool_warned=yes ;;
9801 esac
9802 LIPO=$ac_ct_LIPO
9803 fi
9804 else
9805 LIPO="$ac_cv_prog_LIPO"
9806 fi
9807
9808 if test -n "$ac_tool_prefix"; then
9809 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9810 set dummy ${ac_tool_prefix}otool; ac_word=$2
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 printf %s "checking for $ac_word... " >&6; }
9813 if test ${ac_cv_prog_OTOOL+y}
9814 then :
9815 printf %s "(cached) " >&6
9816 else $as_nop
9817 if test -n "$OTOOL"; then
9818 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823 IFS=$as_save_IFS
9824 case $as_dir in #(((
9825 '') as_dir=./ ;;
9826 */) ;;
9827 *) as_dir=$as_dir/ ;;
9828 esac
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835 done
9836 done
9837 IFS=$as_save_IFS
9838
9839 fi
9840 fi
9841 OTOOL=$ac_cv_prog_OTOOL
9842 if test -n "$OTOOL"; then
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9844 printf "%s\n" "$OTOOL" >&6; }
9845 else
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 printf "%s\n" "no" >&6; }
9848 fi
9849
9850
9851 fi
9852 if test -z "$ac_cv_prog_OTOOL"; then
9853 ac_ct_OTOOL=$OTOOL
9854 # Extract the first word of "otool", so it can be a program name with args.
9855 set dummy otool; ac_word=$2
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 printf %s "checking for $ac_word... " >&6; }
9858 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9859 then :
9860 printf %s "(cached) " >&6
9861 else $as_nop
9862 if test -n "$ac_ct_OTOOL"; then
9863 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868 IFS=$as_save_IFS
9869 case $as_dir in #(((
9870 '') as_dir=./ ;;
9871 */) ;;
9872 *) as_dir=$as_dir/ ;;
9873 esac
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9876 ac_cv_prog_ac_ct_OTOOL="otool"
9877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9878 break 2
9879 fi
9880 done
9881 done
9882 IFS=$as_save_IFS
9883
9884 fi
9885 fi
9886 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9887 if test -n "$ac_ct_OTOOL"; then
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9889 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9890 else
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 printf "%s\n" "no" >&6; }
9893 fi
9894
9895 if test "x$ac_ct_OTOOL" = x; then
9896 OTOOL=":"
9897 else
9898 case $cross_compiling:$ac_tool_warned in
9899 yes:)
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9902 ac_tool_warned=yes ;;
9903 esac
9904 OTOOL=$ac_ct_OTOOL
9905 fi
9906 else
9907 OTOOL="$ac_cv_prog_OTOOL"
9908 fi
9909
9910 if test -n "$ac_tool_prefix"; then
9911 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9912 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 printf %s "checking for $ac_word... " >&6; }
9915 if test ${ac_cv_prog_OTOOL64+y}
9916 then :
9917 printf %s "(cached) " >&6
9918 else $as_nop
9919 if test -n "$OTOOL64"; then
9920 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9924 do
9925 IFS=$as_save_IFS
9926 case $as_dir in #(((
9927 '') as_dir=./ ;;
9928 */) ;;
9929 *) as_dir=$as_dir/ ;;
9930 esac
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9933 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9935 break 2
9936 fi
9937 done
9938 done
9939 IFS=$as_save_IFS
9940
9941 fi
9942 fi
9943 OTOOL64=$ac_cv_prog_OTOOL64
9944 if test -n "$OTOOL64"; then
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9946 printf "%s\n" "$OTOOL64" >&6; }
9947 else
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 printf "%s\n" "no" >&6; }
9950 fi
9951
9952
9953 fi
9954 if test -z "$ac_cv_prog_OTOOL64"; then
9955 ac_ct_OTOOL64=$OTOOL64
9956 # Extract the first word of "otool64", so it can be a program name with args.
9957 set dummy otool64; ac_word=$2
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 printf %s "checking for $ac_word... " >&6; }
9960 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9961 then :
9962 printf %s "(cached) " >&6
9963 else $as_nop
9964 if test -n "$ac_ct_OTOOL64"; then
9965 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970 IFS=$as_save_IFS
9971 case $as_dir in #(((
9972 '') as_dir=./ ;;
9973 */) ;;
9974 *) as_dir=$as_dir/ ;;
9975 esac
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9978 ac_cv_prog_ac_ct_OTOOL64="otool64"
9979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9980 break 2
9981 fi
9982 done
9983 done
9984 IFS=$as_save_IFS
9985
9986 fi
9987 fi
9988 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9989 if test -n "$ac_ct_OTOOL64"; then
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9991 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9992 else
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 printf "%s\n" "no" >&6; }
9995 fi
9996
9997 if test "x$ac_ct_OTOOL64" = x; then
9998 OTOOL64=":"
9999 else
10000 case $cross_compiling:$ac_tool_warned in
10001 yes:)
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10004 ac_tool_warned=yes ;;
10005 esac
10006 OTOOL64=$ac_ct_OTOOL64
10007 fi
10008 else
10009 OTOOL64="$ac_cv_prog_OTOOL64"
10010 fi
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10039 printf %s "checking for -single_module linker flag... " >&6; }
10040 if test ${lt_cv_apple_cc_single_mod+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else $as_nop
10044 lt_cv_apple_cc_single_mod=no
10045 if test -z "$LT_MULTI_MODULE"; then
10046 # By default we will add the -single_module flag. You can override
10047 # by either setting the environment variable LT_MULTI_MODULE
10048 # non-empty at configure time, or by adding -multi_module to the
10049 # link flags.
10050 rm -rf libconftest.dylib*
10051 echo "int foo(void){return 1;}" > conftest.c
10052 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10053 -dynamiclib -Wl,-single_module conftest.c" >&5
10054 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10055 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10056 _lt_result=$?
10057 # If there is a non-empty error log, and "single_module"
10058 # appears in it, assume the flag caused a linker warning
10059 if test -s conftest.err && $GREP single_module conftest.err; then
10060 cat conftest.err >&5
10061 # Otherwise, if the output was created with a 0 exit code from
10062 # the compiler, it worked.
10063 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10064 lt_cv_apple_cc_single_mod=yes
10065 else
10066 cat conftest.err >&5
10067 fi
10068 rm -rf libconftest.dylib*
10069 rm -f conftest.*
10070 fi
10071 fi
10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10073 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10074
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10076 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10077 if test ${lt_cv_ld_exported_symbols_list+y}
10078 then :
10079 printf %s "(cached) " >&6
10080 else $as_nop
10081 lt_cv_ld_exported_symbols_list=no
10082 save_LDFLAGS=$LDFLAGS
10083 echo "_main" > conftest.sym
10084 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087
10088 int
10089 main (void)
10090 {
10091
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"
10097 then :
10098 lt_cv_ld_exported_symbols_list=yes
10099 else $as_nop
10100 lt_cv_ld_exported_symbols_list=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LDFLAGS=$save_LDFLAGS
10105
10106 fi
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10108 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10109
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10111 printf %s "checking for -force_load linker flag... " >&6; }
10112 if test ${lt_cv_ld_force_load+y}
10113 then :
10114 printf %s "(cached) " >&6
10115 else $as_nop
10116 lt_cv_ld_force_load=no
10117 cat > conftest.c << _LT_EOF
10118 int forced_loaded() { return 2;}
10119 _LT_EOF
10120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10122 echo "$AR cr libconftest.a conftest.o" >&5
10123 $AR cr libconftest.a conftest.o 2>&5
10124 echo "$RANLIB libconftest.a" >&5
10125 $RANLIB libconftest.a 2>&5
10126 cat > conftest.c << _LT_EOF
10127 int main() { return 0;}
10128 _LT_EOF
10129 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10130 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10131 _lt_result=$?
10132 if test -s conftest.err && $GREP force_load conftest.err; then
10133 cat conftest.err >&5
10134 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10135 lt_cv_ld_force_load=yes
10136 else
10137 cat conftest.err >&5
10138 fi
10139 rm -f conftest.err libconftest.a conftest conftest.c
10140 rm -rf conftest.dSYM
10141
10142 fi
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10144 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10145 case $host_os in
10146 rhapsody* | darwin1.[012])
10147 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10148 darwin1.*)
10149 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10150 darwin*) # darwin 5.x on
10151 # if running on 10.5 or later, the deployment target defaults
10152 # to the OS version, if on x86, and 10.4, the deployment
10153 # target defaults to 10.4. Don't you love it?
10154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10155 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
10156 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10157 10.[012][,.]*)
10158 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10159 10.*|11.*)
10160 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10161 esac
10162 ;;
10163 esac
10164 if test yes = "$lt_cv_apple_cc_single_mod"; then
10165 _lt_dar_single_mod='$single_module'
10166 fi
10167 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10168 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10169 else
10170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10171 fi
10172 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10173 _lt_dsymutil='~$DSYMUTIL $lib || :'
10174 else
10175 _lt_dsymutil=
10176 fi
10177 ;;
10178 esac
10179
10180 # func_munge_path_list VARIABLE PATH
10181 # -----------------------------------
10182 # VARIABLE is name of variable containing _space_ separated list of
10183 # directories to be munged by the contents of PATH, which is string
10184 # having a format:
10185 # "DIR[:DIR]:"
10186 # string "DIR[ DIR]" will be prepended to VARIABLE
10187 # ":DIR[:DIR]"
10188 # string "DIR[ DIR]" will be appended to VARIABLE
10189 # "DIRP[:DIRP]::[DIRA:]DIRA"
10190 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10191 # "DIRA[ DIRA]" will be appended to VARIABLE
10192 # "DIR[:DIR]"
10193 # VARIABLE will be replaced by "DIR[ DIR]"
10194 func_munge_path_list ()
10195 {
10196 case x$2 in
10197 x)
10198 ;;
10199 *:)
10200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10201 ;;
10202 x:*)
10203 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10204 ;;
10205 *::*)
10206 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10207 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10208 ;;
10209 *)
10210 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10211 ;;
10212 esac
10213 }
10214
10215 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10216 "
10217 if test "x$ac_cv_header_dlfcn_h" = xyes
10218 then :
10219 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10220
10221 fi
10222
10223
10224
10225 func_stripname_cnf ()
10226 {
10227 case $2 in
10228 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10229 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10230 esac
10231 } # func_stripname_cnf
10232
10233
10234
10235
10236
10237 # Set options
10238
10239
10240
10241 enable_dlopen=no
10242
10243
10244 enable_win32_dll=no
10245
10246
10247 # Check whether --enable-shared was given.
10248 if test ${enable_shared+y}
10249 then :
10250 enableval=$enable_shared; p=${PACKAGE-default}
10251 case $enableval in
10252 yes) enable_shared=yes ;;
10253 no) enable_shared=no ;;
10254 *)
10255 enable_shared=no
10256 # Look at the argument we got. We use all the common list separators.
10257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10258 for pkg in $enableval; do
10259 IFS=$lt_save_ifs
10260 if test "X$pkg" = "X$p"; then
10261 enable_shared=yes
10262 fi
10263 done
10264 IFS=$lt_save_ifs
10265 ;;
10266 esac
10267 else $as_nop
10268 enable_shared=yes
10269 fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281 # Check whether --with-pic was given.
10282 if test ${with_pic+y}
10283 then :
10284 withval=$with_pic; lt_p=${PACKAGE-default}
10285 case $withval in
10286 yes|no) pic_mode=$withval ;;
10287 *)
10288 pic_mode=default
10289 # Look at the argument we got. We use all the common list separators.
10290 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10291 for lt_pkg in $withval; do
10292 IFS=$lt_save_ifs
10293 if test "X$lt_pkg" = "X$lt_p"; then
10294 pic_mode=yes
10295 fi
10296 done
10297 IFS=$lt_save_ifs
10298 ;;
10299 esac
10300 else $as_nop
10301 pic_mode=default
10302 fi
10303
10304
10305
10306
10307
10308
10309
10310
10311 # Check whether --enable-fast-install was given.
10312 if test ${enable_fast_install+y}
10313 then :
10314 enableval=$enable_fast_install; p=${PACKAGE-default}
10315 case $enableval in
10316 yes) enable_fast_install=yes ;;
10317 no) enable_fast_install=no ;;
10318 *)
10319 enable_fast_install=no
10320 # Look at the argument we got. We use all the common list separators.
10321 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10322 for pkg in $enableval; do
10323 IFS=$lt_save_ifs
10324 if test "X$pkg" = "X$p"; then
10325 enable_fast_install=yes
10326 fi
10327 done
10328 IFS=$lt_save_ifs
10329 ;;
10330 esac
10331 else $as_nop
10332 enable_fast_install=yes
10333 fi
10334
10335
10336
10337
10338
10339
10340
10341
10342 shared_archive_member_spec=
10343 case $host,$enable_shared in
10344 power*-*-aix[5-9]*,yes)
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10346 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10347
10348 # Check whether --with-aix-soname was given.
10349 if test ${with_aix_soname+y}
10350 then :
10351 withval=$with_aix_soname; case $withval in
10352 aix|svr4|both)
10353 ;;
10354 *)
10355 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10356 ;;
10357 esac
10358 lt_cv_with_aix_soname=$with_aix_soname
10359 else $as_nop
10360 if test ${lt_cv_with_aix_soname+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else $as_nop
10364 lt_cv_with_aix_soname=aix
10365 fi
10366
10367 with_aix_soname=$lt_cv_with_aix_soname
10368 fi
10369
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10371 printf "%s\n" "$with_aix_soname" >&6; }
10372 if test aix != "$with_aix_soname"; then
10373 # For the AIX way of multilib, we name the shared archive member
10374 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10375 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10376 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10377 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10378 if test 64 = "${OBJECT_MODE-32}"; then
10379 shared_archive_member_spec=shr_64
10380 else
10381 shared_archive_member_spec=shr
10382 fi
10383 fi
10384 ;;
10385 *)
10386 with_aix_soname=aix
10387 ;;
10388 esac
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399 # This can be used to rebuild libtool when needed
10400 LIBTOOL_DEPS=$ltmain
10401
10402 # Always use our own libtool.
10403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 test -z "$LN_S" && LN_S="ln -s"
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449 if test -n "${ZSH_VERSION+set}"; then
10450 setopt NO_GLOB_SUBST
10451 fi
10452
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10454 printf %s "checking for objdir... " >&6; }
10455 if test ${lt_cv_objdir+y}
10456 then :
10457 printf %s "(cached) " >&6
10458 else $as_nop
10459 rm -f .libs 2>/dev/null
10460 mkdir .libs 2>/dev/null
10461 if test -d .libs; then
10462 lt_cv_objdir=.libs
10463 else
10464 # MS-DOS does not allow filenames that begin with a dot.
10465 lt_cv_objdir=_libs
10466 fi
10467 rmdir .libs 2>/dev/null
10468 fi
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10470 printf "%s\n" "$lt_cv_objdir" >&6; }
10471 objdir=$lt_cv_objdir
10472
10473
10474
10475
10476
10477 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10478
10479
10480
10481
10482 case $host_os in
10483 aix3*)
10484 # AIX sometimes has problems with the GCC collect2 program. For some
10485 # reason, if we set the COLLECT_NAMES environment variable, the problems
10486 # vanish in a puff of smoke.
10487 if test set != "${COLLECT_NAMES+set}"; then
10488 COLLECT_NAMES=
10489 export COLLECT_NAMES
10490 fi
10491 ;;
10492 esac
10493
10494 # Global variables:
10495 ofile=libtool
10496 can_build_shared=yes
10497
10498 # All known linkers require a '.a' archive for static linking (except MSVC,
10499 # which needs '.lib').
10500 libext=a
10501
10502 with_gnu_ld=$lt_cv_prog_gnu_ld
10503
10504 old_CC=$CC
10505 old_CFLAGS=$CFLAGS
10506
10507 # Set sane defaults for various variables
10508 test -z "$CC" && CC=cc
10509 test -z "$LTCC" && LTCC=$CC
10510 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10511 test -z "$LD" && LD=ld
10512 test -z "$ac_objext" && ac_objext=o
10513
10514 func_cc_basename $compiler
10515 cc_basename=$func_cc_basename_result
10516
10517
10518 # Only perform the check for file, if the check method requires it
10519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10520 case $deplibs_check_method in
10521 file_magic*)
10522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10524 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10525 if test ${lt_cv_path_MAGIC_CMD+y}
10526 then :
10527 printf %s "(cached) " >&6
10528 else $as_nop
10529 case $MAGIC_CMD in
10530 [\\/*] | ?:[\\/]*)
10531 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10532 ;;
10533 *)
10534 lt_save_MAGIC_CMD=$MAGIC_CMD
10535 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10537 for ac_dir in $ac_dummy; do
10538 IFS=$lt_save_ifs
10539 test -z "$ac_dir" && ac_dir=.
10540 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10541 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10542 if test -n "$file_magic_test_file"; then
10543 case $deplibs_check_method in
10544 "file_magic "*)
10545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10546 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10548 $EGREP "$file_magic_regex" > /dev/null; then
10549 :
10550 else
10551 cat <<_LT_EOF 1>&2
10552
10553 *** Warning: the command libtool uses to detect shared libraries,
10554 *** $file_magic_cmd, produces output that libtool cannot recognize.
10555 *** The result is that libtool may fail to recognize shared libraries
10556 *** as such. This will affect the creation of libtool libraries that
10557 *** depend on shared libraries, but programs linked with such libtool
10558 *** libraries will work regardless of this problem. Nevertheless, you
10559 *** may want to report the problem to your system manager and/or to
10560 *** [email protected]
10561
10562 _LT_EOF
10563 fi ;;
10564 esac
10565 fi
10566 break
10567 fi
10568 done
10569 IFS=$lt_save_ifs
10570 MAGIC_CMD=$lt_save_MAGIC_CMD
10571 ;;
10572 esac
10573 fi
10574
10575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10576 if test -n "$MAGIC_CMD"; then
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10578 printf "%s\n" "$MAGIC_CMD" >&6; }
10579 else
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 printf "%s\n" "no" >&6; }
10582 fi
10583
10584
10585
10586
10587
10588 if test -z "$lt_cv_path_MAGIC_CMD"; then
10589 if test -n "$ac_tool_prefix"; then
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10591 printf %s "checking for file... " >&6; }
10592 if test ${lt_cv_path_MAGIC_CMD+y}
10593 then :
10594 printf %s "(cached) " >&6
10595 else $as_nop
10596 case $MAGIC_CMD in
10597 [\\/*] | ?:[\\/]*)
10598 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10599 ;;
10600 *)
10601 lt_save_MAGIC_CMD=$MAGIC_CMD
10602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10604 for ac_dir in $ac_dummy; do
10605 IFS=$lt_save_ifs
10606 test -z "$ac_dir" && ac_dir=.
10607 if test -f "$ac_dir/file"; then
10608 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10609 if test -n "$file_magic_test_file"; then
10610 case $deplibs_check_method in
10611 "file_magic "*)
10612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10613 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10615 $EGREP "$file_magic_regex" > /dev/null; then
10616 :
10617 else
10618 cat <<_LT_EOF 1>&2
10619
10620 *** Warning: the command libtool uses to detect shared libraries,
10621 *** $file_magic_cmd, produces output that libtool cannot recognize.
10622 *** The result is that libtool may fail to recognize shared libraries
10623 *** as such. This will affect the creation of libtool libraries that
10624 *** depend on shared libraries, but programs linked with such libtool
10625 *** libraries will work regardless of this problem. Nevertheless, you
10626 *** may want to report the problem to your system manager and/or to
10627 *** [email protected]
10628
10629 _LT_EOF
10630 fi ;;
10631 esac
10632 fi
10633 break
10634 fi
10635 done
10636 IFS=$lt_save_ifs
10637 MAGIC_CMD=$lt_save_MAGIC_CMD
10638 ;;
10639 esac
10640 fi
10641
10642 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10643 if test -n "$MAGIC_CMD"; then
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10645 printf "%s\n" "$MAGIC_CMD" >&6; }
10646 else
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 printf "%s\n" "no" >&6; }
10649 fi
10650
10651
10652 else
10653 MAGIC_CMD=:
10654 fi
10655 fi
10656
10657 fi
10658 ;;
10659 esac
10660
10661 # Use C for the default configuration in the libtool script
10662
10663 lt_save_CC=$CC
10664 ac_ext=c
10665 ac_cpp='$CPP $CPPFLAGS'
10666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10669
10670
10671 # Source file extension for C test sources.
10672 ac_ext=c
10673
10674 # Object file extension for compiled C test sources.
10675 objext=o
10676 objext=$objext
10677
10678 # Code to be used in simple compile tests
10679 lt_simple_compile_test_code="int some_variable = 0;"
10680
10681 # Code to be used in simple link tests
10682 lt_simple_link_test_code='int main(){return(0);}'
10683
10684
10685
10686
10687
10688
10689
10690 # If no C compiler was specified, use CC.
10691 LTCC=${LTCC-"$CC"}
10692
10693 # If no C compiler flags were specified, use CFLAGS.
10694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10695
10696 # Allow CC to be a program name with arguments.
10697 compiler=$CC
10698
10699 # Save the default compiler, since it gets overwritten when the other
10700 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10701 compiler_DEFAULT=$CC
10702
10703 # save warnings/boilerplate of simple test code
10704 ac_outfile=conftest.$ac_objext
10705 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10706 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10707 _lt_compiler_boilerplate=`cat conftest.err`
10708 $RM conftest*
10709
10710 ac_outfile=conftest.$ac_objext
10711 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10712 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10713 _lt_linker_boilerplate=`cat conftest.err`
10714 $RM -r conftest*
10715
10716
10717 ## CAVEAT EMPTOR:
10718 ## There is no encapsulation within the following macros, do not change
10719 ## the running order or otherwise move them around unless you know exactly
10720 ## what you are doing...
10721 if test -n "$compiler"; then
10722
10723 lt_prog_compiler_no_builtin_flag=
10724
10725 if test yes = "$GCC"; then
10726 case $cc_basename in
10727 nvcc*)
10728 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10729 *)
10730 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10731 esac
10732
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10734 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10735 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10736 then :
10737 printf %s "(cached) " >&6
10738 else $as_nop
10739 lt_cv_prog_compiler_rtti_exceptions=no
10740 ac_outfile=conftest.$ac_objext
10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10742 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10743 # Insert the option either (1) after the last *FLAGS variable, or
10744 # (2) before a word containing "conftest.", or (3) at the end.
10745 # Note that $ac_compile itself does not contain backslashes and begins
10746 # with a dollar sign (not a hyphen), so the echo should work correctly.
10747 # The option is referenced via a variable to avoid confusing sed.
10748 lt_compile=`echo "$ac_compile" | $SED \
10749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10751 -e 's:$: $lt_compiler_flag:'`
10752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10753 (eval "$lt_compile" 2>conftest.err)
10754 ac_status=$?
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 if (exit $ac_status) && test -s "$ac_outfile"; then
10758 # The compiler can only warn and ignore the option if not recognized
10759 # So say no if there are warnings other than the usual output.
10760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10763 lt_cv_prog_compiler_rtti_exceptions=yes
10764 fi
10765 fi
10766 $RM conftest*
10767
10768 fi
10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10770 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10771
10772 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10773 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10774 else
10775 :
10776 fi
10777
10778 fi
10779
10780
10781
10782
10783
10784
10785 lt_prog_compiler_wl=
10786 lt_prog_compiler_pic=
10787 lt_prog_compiler_static=
10788
10789
10790 if test yes = "$GCC"; then
10791 lt_prog_compiler_wl='-Wl,'
10792 lt_prog_compiler_static='-static'
10793
10794 case $host_os in
10795 aix*)
10796 # All AIX code is PIC.
10797 if test ia64 = "$host_cpu"; then
10798 # AIX 5 now supports IA64 processor
10799 lt_prog_compiler_static='-Bstatic'
10800 fi
10801 lt_prog_compiler_pic='-fPIC'
10802 ;;
10803
10804 amigaos*)
10805 case $host_cpu in
10806 powerpc)
10807 # see comment about AmigaOS4 .so support
10808 lt_prog_compiler_pic='-fPIC'
10809 ;;
10810 m68k)
10811 # FIXME: we need at least 68020 code to build shared libraries, but
10812 # adding the '-m68020' flag to GCC prevents building anything better,
10813 # like '-m68040'.
10814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10815 ;;
10816 esac
10817 ;;
10818
10819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10820 # PIC is the default for these OSes.
10821 ;;
10822
10823 mingw* | cygwin* | pw32* | os2* | cegcc*)
10824 # This hack is so that the source file can tell whether it is being
10825 # built for inclusion in a dll (and should export symbols for example).
10826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10827 # (--disable-auto-import) libraries
10828 lt_prog_compiler_pic='-DDLL_EXPORT'
10829 case $host_os in
10830 os2*)
10831 lt_prog_compiler_static='$wl-static'
10832 ;;
10833 esac
10834 ;;
10835
10836 darwin* | rhapsody*)
10837 # PIC is the default on this platform
10838 # Common symbols not allowed in MH_DYLIB files
10839 lt_prog_compiler_pic='-fno-common'
10840 ;;
10841
10842 haiku*)
10843 # PIC is the default for Haiku.
10844 # The "-static" flag exists, but is broken.
10845 lt_prog_compiler_static=
10846 ;;
10847
10848 hpux*)
10849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10851 # sets the default TLS model and affects inlining.
10852 case $host_cpu in
10853 hppa*64*)
10854 # +Z the default
10855 ;;
10856 *)
10857 lt_prog_compiler_pic='-fPIC'
10858 ;;
10859 esac
10860 ;;
10861
10862 interix[3-9]*)
10863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10864 # Instead, we relocate shared libraries at runtime.
10865 ;;
10866
10867 msdosdjgpp*)
10868 # Just because we use GCC doesn't mean we suddenly get shared libraries
10869 # on systems that don't support them.
10870 lt_prog_compiler_can_build_shared=no
10871 enable_shared=no
10872 ;;
10873
10874 *nto* | *qnx*)
10875 # QNX uses GNU C++, but need to define -shared option too, otherwise
10876 # it will coredump.
10877 lt_prog_compiler_pic='-fPIC -shared'
10878 ;;
10879
10880 sysv4*MP*)
10881 if test -d /usr/nec; then
10882 lt_prog_compiler_pic=-Kconform_pic
10883 fi
10884 ;;
10885
10886 *)
10887 lt_prog_compiler_pic='-fPIC'
10888 ;;
10889 esac
10890
10891 case $cc_basename in
10892 nvcc*) # Cuda Compiler Driver 2.2
10893 lt_prog_compiler_wl='-Xlinker '
10894 if test -n "$lt_prog_compiler_pic"; then
10895 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10896 fi
10897 ;;
10898 esac
10899 else
10900 # PORTME Check for flag to pass linker flags through the system compiler.
10901 case $host_os in
10902 aix*)
10903 lt_prog_compiler_wl='-Wl,'
10904 if test ia64 = "$host_cpu"; then
10905 # AIX 5 now supports IA64 processor
10906 lt_prog_compiler_static='-Bstatic'
10907 else
10908 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10909 fi
10910 ;;
10911
10912 darwin* | rhapsody*)
10913 # PIC is the default on this platform
10914 # Common symbols not allowed in MH_DYLIB files
10915 lt_prog_compiler_pic='-fno-common'
10916 case $cc_basename in
10917 nagfor*)
10918 # NAG Fortran compiler
10919 lt_prog_compiler_wl='-Wl,-Wl,,'
10920 lt_prog_compiler_pic='-PIC'
10921 lt_prog_compiler_static='-Bstatic'
10922 ;;
10923 esac
10924 ;;
10925
10926 mingw* | cygwin* | pw32* | os2* | cegcc*)
10927 # This hack is so that the source file can tell whether it is being
10928 # built for inclusion in a dll (and should export symbols for example).
10929 lt_prog_compiler_pic='-DDLL_EXPORT'
10930 case $host_os in
10931 os2*)
10932 lt_prog_compiler_static='$wl-static'
10933 ;;
10934 esac
10935 ;;
10936
10937 hpux9* | hpux10* | hpux11*)
10938 lt_prog_compiler_wl='-Wl,'
10939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10940 # not for PA HP-UX.
10941 case $host_cpu in
10942 hppa*64*|ia64*)
10943 # +Z the default
10944 ;;
10945 *)
10946 lt_prog_compiler_pic='+Z'
10947 ;;
10948 esac
10949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10950 lt_prog_compiler_static='$wl-a ${wl}archive'
10951 ;;
10952
10953 irix5* | irix6* | nonstopux*)
10954 lt_prog_compiler_wl='-Wl,'
10955 # PIC (with -KPIC) is the default.
10956 lt_prog_compiler_static='-non_shared'
10957 ;;
10958
10959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10960 case $cc_basename in
10961 # old Intel for x86_64, which still supported -KPIC.
10962 ecc*)
10963 lt_prog_compiler_wl='-Wl,'
10964 lt_prog_compiler_pic='-KPIC'
10965 lt_prog_compiler_static='-static'
10966 ;;
10967 # flang / f18. f95 an alias for gfortran or flang on Debian
10968 flang* | f18* | f95*)
10969 lt_prog_compiler_wl='-Wl,'
10970 lt_prog_compiler_pic='-fPIC'
10971 lt_prog_compiler_static='-static'
10972 ;;
10973 # icc used to be incompatible with GCC.
10974 # ICC 10 doesn't accept -KPIC any more.
10975 icc* | ifort*)
10976 lt_prog_compiler_wl='-Wl,'
10977 lt_prog_compiler_pic='-fPIC'
10978 lt_prog_compiler_static='-static'
10979 ;;
10980 # Lahey Fortran 8.1.
10981 lf95*)
10982 lt_prog_compiler_wl='-Wl,'
10983 lt_prog_compiler_pic='--shared'
10984 lt_prog_compiler_static='--static'
10985 ;;
10986 nagfor*)
10987 # NAG Fortran compiler
10988 lt_prog_compiler_wl='-Wl,-Wl,,'
10989 lt_prog_compiler_pic='-PIC'
10990 lt_prog_compiler_static='-Bstatic'
10991 ;;
10992 tcc*)
10993 # Fabrice Bellard et al's Tiny C Compiler
10994 lt_prog_compiler_wl='-Wl,'
10995 lt_prog_compiler_pic='-fPIC'
10996 lt_prog_compiler_static='-static'
10997 ;;
10998 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10999 # Portland Group compilers (*not* the Pentium gcc compiler,
11000 # which looks to be a dead project)
11001 lt_prog_compiler_wl='-Wl,'
11002 lt_prog_compiler_pic='-fpic'
11003 lt_prog_compiler_static='-Bstatic'
11004 ;;
11005 ccc*)
11006 lt_prog_compiler_wl='-Wl,'
11007 # All Alpha code is PIC.
11008 lt_prog_compiler_static='-non_shared'
11009 ;;
11010 xl* | bgxl* | bgf* | mpixl*)
11011 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11012 lt_prog_compiler_wl='-Wl,'
11013 lt_prog_compiler_pic='-qpic'
11014 lt_prog_compiler_static='-qstaticlink'
11015 ;;
11016 *)
11017 case `$CC -V 2>&1 | sed 5q` in
11018 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11019 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11020 lt_prog_compiler_pic='-KPIC'
11021 lt_prog_compiler_static='-Bstatic'
11022 lt_prog_compiler_wl=''
11023 ;;
11024 *Sun\ F* | *Sun*Fortran*)
11025 lt_prog_compiler_pic='-KPIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 lt_prog_compiler_wl='-Qoption ld '
11028 ;;
11029 *Sun\ C*)
11030 # Sun C 5.9
11031 lt_prog_compiler_pic='-KPIC'
11032 lt_prog_compiler_static='-Bstatic'
11033 lt_prog_compiler_wl='-Wl,'
11034 ;;
11035 *Intel*\ [CF]*Compiler*)
11036 lt_prog_compiler_wl='-Wl,'
11037 lt_prog_compiler_pic='-fPIC'
11038 lt_prog_compiler_static='-static'
11039 ;;
11040 *Portland\ Group*)
11041 lt_prog_compiler_wl='-Wl,'
11042 lt_prog_compiler_pic='-fpic'
11043 lt_prog_compiler_static='-Bstatic'
11044 ;;
11045 esac
11046 ;;
11047 esac
11048 ;;
11049
11050 newsos6)
11051 lt_prog_compiler_pic='-KPIC'
11052 lt_prog_compiler_static='-Bstatic'
11053 ;;
11054
11055 *nto* | *qnx*)
11056 # QNX uses GNU C++, but need to define -shared option too, otherwise
11057 # it will coredump.
11058 lt_prog_compiler_pic='-fPIC -shared'
11059 ;;
11060
11061 osf3* | osf4* | osf5*)
11062 lt_prog_compiler_wl='-Wl,'
11063 # All OSF/1 code is PIC.
11064 lt_prog_compiler_static='-non_shared'
11065 ;;
11066
11067 rdos*)
11068 lt_prog_compiler_static='-non_shared'
11069 ;;
11070
11071 solaris*)
11072 lt_prog_compiler_pic='-KPIC'
11073 lt_prog_compiler_static='-Bstatic'
11074 case $cc_basename in
11075 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11076 lt_prog_compiler_wl='-Qoption ld ';;
11077 *)
11078 lt_prog_compiler_wl='-Wl,';;
11079 esac
11080 ;;
11081
11082 sunos4*)
11083 lt_prog_compiler_wl='-Qoption ld '
11084 lt_prog_compiler_pic='-PIC'
11085 lt_prog_compiler_static='-Bstatic'
11086 ;;
11087
11088 sysv4 | sysv4.2uw2* | sysv4.3*)
11089 lt_prog_compiler_wl='-Wl,'
11090 lt_prog_compiler_pic='-KPIC'
11091 lt_prog_compiler_static='-Bstatic'
11092 ;;
11093
11094 sysv4*MP*)
11095 if test -d /usr/nec; then
11096 lt_prog_compiler_pic='-Kconform_pic'
11097 lt_prog_compiler_static='-Bstatic'
11098 fi
11099 ;;
11100
11101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11102 lt_prog_compiler_wl='-Wl,'
11103 lt_prog_compiler_pic='-KPIC'
11104 lt_prog_compiler_static='-Bstatic'
11105 ;;
11106
11107 unicos*)
11108 lt_prog_compiler_wl='-Wl,'
11109 lt_prog_compiler_can_build_shared=no
11110 ;;
11111
11112 uts4*)
11113 lt_prog_compiler_pic='-pic'
11114 lt_prog_compiler_static='-Bstatic'
11115 ;;
11116
11117 *)
11118 lt_prog_compiler_can_build_shared=no
11119 ;;
11120 esac
11121 fi
11122
11123 case $host_os in
11124 # For platforms that do not support PIC, -DPIC is meaningless:
11125 *djgpp*)
11126 lt_prog_compiler_pic=
11127 ;;
11128 *)
11129 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11130 ;;
11131 esac
11132
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11134 printf %s "checking for $compiler option to produce PIC... " >&6; }
11135 if test ${lt_cv_prog_compiler_pic+y}
11136 then :
11137 printf %s "(cached) " >&6
11138 else $as_nop
11139 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11140 fi
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11142 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11143 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11144
11145 #
11146 # Check to make sure the PIC flag actually works.
11147 #
11148 if test -n "$lt_prog_compiler_pic"; then
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11150 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11151 if test ${lt_cv_prog_compiler_pic_works+y}
11152 then :
11153 printf %s "(cached) " >&6
11154 else $as_nop
11155 lt_cv_prog_compiler_pic_works=no
11156 ac_outfile=conftest.$ac_objext
11157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11159 # Insert the option either (1) after the last *FLAGS variable, or
11160 # (2) before a word containing "conftest.", or (3) at the end.
11161 # Note that $ac_compile itself does not contain backslashes and begins
11162 # with a dollar sign (not a hyphen), so the echo should work correctly.
11163 # The option is referenced via a variable to avoid confusing sed.
11164 lt_compile=`echo "$ac_compile" | $SED \
11165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11167 -e 's:$: $lt_compiler_flag:'`
11168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11169 (eval "$lt_compile" 2>conftest.err)
11170 ac_status=$?
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 if (exit $ac_status) && test -s "$ac_outfile"; then
11174 # The compiler can only warn and ignore the option if not recognized
11175 # So say no if there are warnings other than the usual output.
11176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11179 lt_cv_prog_compiler_pic_works=yes
11180 fi
11181 fi
11182 $RM conftest*
11183
11184 fi
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11186 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11187
11188 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11189 case $lt_prog_compiler_pic in
11190 "" | " "*) ;;
11191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11192 esac
11193 else
11194 lt_prog_compiler_pic=
11195 lt_prog_compiler_can_build_shared=no
11196 fi
11197
11198 fi
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210 #
11211 # Check to make sure the static flag actually works.
11212 #
11213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11215 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11216 if test ${lt_cv_prog_compiler_static_works+y}
11217 then :
11218 printf %s "(cached) " >&6
11219 else $as_nop
11220 lt_cv_prog_compiler_static_works=no
11221 save_LDFLAGS=$LDFLAGS
11222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11225 # The linker can only warn and ignore the option if not recognized
11226 # So say no if there are warnings
11227 if test -s conftest.err; then
11228 # Append any errors to the config.log.
11229 cat conftest.err 1>&5
11230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11232 if diff conftest.exp conftest.er2 >/dev/null; then
11233 lt_cv_prog_compiler_static_works=yes
11234 fi
11235 else
11236 lt_cv_prog_compiler_static_works=yes
11237 fi
11238 fi
11239 $RM -r conftest*
11240 LDFLAGS=$save_LDFLAGS
11241
11242 fi
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11244 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11245
11246 if test yes = "$lt_cv_prog_compiler_static_works"; then
11247 :
11248 else
11249 lt_prog_compiler_static=
11250 fi
11251
11252
11253
11254
11255
11256
11257
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11259 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11260 if test ${lt_cv_prog_compiler_c_o+y}
11261 then :
11262 printf %s "(cached) " >&6
11263 else $as_nop
11264 lt_cv_prog_compiler_c_o=no
11265 $RM -r conftest 2>/dev/null
11266 mkdir conftest
11267 cd conftest
11268 mkdir out
11269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11270
11271 lt_compiler_flag="-o out/conftest2.$ac_objext"
11272 # Insert the option either (1) after the last *FLAGS variable, or
11273 # (2) before a word containing "conftest.", or (3) at the end.
11274 # Note that $ac_compile itself does not contain backslashes and begins
11275 # with a dollar sign (not a hyphen), so the echo should work correctly.
11276 lt_compile=`echo "$ac_compile" | $SED \
11277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11279 -e 's:$: $lt_compiler_flag:'`
11280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11281 (eval "$lt_compile" 2>out/conftest.err)
11282 ac_status=$?
11283 cat out/conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11286 then
11287 # The compiler can only warn and ignore the option if not recognized
11288 # So say no if there are warnings
11289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11292 lt_cv_prog_compiler_c_o=yes
11293 fi
11294 fi
11295 chmod u+w . 2>&5
11296 $RM conftest*
11297 # SGI C++ compiler will create directory out/ii_files/ for
11298 # template instantiation
11299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11300 $RM out/* && rmdir out
11301 cd ..
11302 $RM -r conftest
11303 $RM conftest*
11304
11305 fi
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11307 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11308
11309
11310
11311
11312
11313
11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11315 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11316 if test ${lt_cv_prog_compiler_c_o+y}
11317 then :
11318 printf %s "(cached) " >&6
11319 else $as_nop
11320 lt_cv_prog_compiler_c_o=no
11321 $RM -r conftest 2>/dev/null
11322 mkdir conftest
11323 cd conftest
11324 mkdir out
11325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11326
11327 lt_compiler_flag="-o out/conftest2.$ac_objext"
11328 # Insert the option either (1) after the last *FLAGS variable, or
11329 # (2) before a word containing "conftest.", or (3) at the end.
11330 # Note that $ac_compile itself does not contain backslashes and begins
11331 # with a dollar sign (not a hyphen), so the echo should work correctly.
11332 lt_compile=`echo "$ac_compile" | $SED \
11333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11335 -e 's:$: $lt_compiler_flag:'`
11336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11337 (eval "$lt_compile" 2>out/conftest.err)
11338 ac_status=$?
11339 cat out/conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11342 then
11343 # The compiler can only warn and ignore the option if not recognized
11344 # So say no if there are warnings
11345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11348 lt_cv_prog_compiler_c_o=yes
11349 fi
11350 fi
11351 chmod u+w . 2>&5
11352 $RM conftest*
11353 # SGI C++ compiler will create directory out/ii_files/ for
11354 # template instantiation
11355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11356 $RM out/* && rmdir out
11357 cd ..
11358 $RM -r conftest
11359 $RM conftest*
11360
11361 fi
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11363 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11364
11365
11366
11367
11368 hard_links=nottested
11369 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11370 # do not overwrite the value of need_locks provided by the user
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11372 printf %s "checking if we can lock with hard links... " >&6; }
11373 hard_links=yes
11374 $RM conftest*
11375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11376 touch conftest.a
11377 ln conftest.a conftest.b 2>&5 || hard_links=no
11378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11380 printf "%s\n" "$hard_links" >&6; }
11381 if test no = "$hard_links"; then
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11383 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11384 need_locks=warn
11385 fi
11386 else
11387 need_locks=no
11388 fi
11389
11390
11391
11392
11393
11394
11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11396 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11397
11398 runpath_var=
11399 allow_undefined_flag=
11400 always_export_symbols=no
11401 archive_cmds=
11402 archive_expsym_cmds=
11403 compiler_needs_object=no
11404 enable_shared_with_static_runtimes=no
11405 export_dynamic_flag_spec=
11406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11407 hardcode_automatic=no
11408 hardcode_direct=no
11409 hardcode_direct_absolute=no
11410 hardcode_libdir_flag_spec=
11411 hardcode_libdir_separator=
11412 hardcode_minus_L=no
11413 hardcode_shlibpath_var=unsupported
11414 inherit_rpath=no
11415 link_all_deplibs=unknown
11416 module_cmds=
11417 module_expsym_cmds=
11418 old_archive_from_new_cmds=
11419 old_archive_from_expsyms_cmds=
11420 thread_safe_flag_spec=
11421 whole_archive_flag_spec=
11422 # include_expsyms should be a list of space-separated symbols to be *always*
11423 # included in the symbol list
11424 include_expsyms=
11425 # exclude_expsyms can be an extended regexp of symbols to exclude
11426 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11427 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11428 # as well as any symbol that contains 'd'.
11429 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11430 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11431 # platforms (ab)use it in PIC code, but their linkers get confused if
11432 # the symbol is explicitly referenced. Since portable code cannot
11433 # rely on this symbol name, it's probably fine to never include it in
11434 # preloaded symbol tables.
11435 # Exclude shared library initialization/finalization symbols.
11436 extract_expsyms_cmds=
11437
11438 case $host_os in
11439 cygwin* | mingw* | pw32* | cegcc*)
11440 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11441 # When not using gcc, we currently assume that we are using
11442 # Microsoft Visual C++.
11443 if test yes != "$GCC"; then
11444 with_gnu_ld=no
11445 fi
11446 ;;
11447 interix*)
11448 # we just hope/assume this is gcc and not c89 (= MSVC++)
11449 with_gnu_ld=yes
11450 ;;
11451 openbsd* | bitrig*)
11452 with_gnu_ld=no
11453 ;;
11454 linux* | k*bsd*-gnu | gnu*)
11455 link_all_deplibs=no
11456 ;;
11457 esac
11458
11459 ld_shlibs=yes
11460
11461 # On some targets, GNU ld is compatible enough with the native linker
11462 # that we're better off using the native interface for both.
11463 lt_use_gnu_ld_interface=no
11464 if test yes = "$with_gnu_ld"; then
11465 case $host_os in
11466 aix*)
11467 # The AIX port of GNU ld has always aspired to compatibility
11468 # with the native linker. However, as the warning in the GNU ld
11469 # block says, versions before 2.19.5* couldn't really create working
11470 # shared libraries, regardless of the interface used.
11471 case `$LD -v 2>&1` in
11472 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11473 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11474 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11475 *)
11476 lt_use_gnu_ld_interface=yes
11477 ;;
11478 esac
11479 ;;
11480 *)
11481 lt_use_gnu_ld_interface=yes
11482 ;;
11483 esac
11484 fi
11485
11486 if test yes = "$lt_use_gnu_ld_interface"; then
11487 # If archive_cmds runs LD, not CC, wlarc should be empty
11488 wlarc='$wl'
11489
11490 # Set some defaults for GNU ld with shared library support. These
11491 # are reset later if shared libraries are not supported. Putting them
11492 # here allows them to be overridden if necessary.
11493 runpath_var=LD_RUN_PATH
11494 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11495 export_dynamic_flag_spec='$wl--export-dynamic'
11496 # ancient GNU ld didn't support --whole-archive et. al.
11497 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11498 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11499 else
11500 whole_archive_flag_spec=
11501 fi
11502 supports_anon_versioning=no
11503 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11504 *GNU\ gold*) supports_anon_versioning=yes ;;
11505 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11506 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11507 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11508 *\ 2.11.*) ;; # other 2.11 versions
11509 *) supports_anon_versioning=yes ;;
11510 esac
11511
11512 # See if GNU ld supports shared libraries.
11513 case $host_os in
11514 aix[3-9]*)
11515 # On AIX/PPC, the GNU linker is very broken
11516 if test ia64 != "$host_cpu"; then
11517 ld_shlibs=no
11518 cat <<_LT_EOF 1>&2
11519
11520 *** Warning: the GNU linker, at least up to release 2.19, is reported
11521 *** to be unable to reliably create shared libraries on AIX.
11522 *** Therefore, libtool is disabling shared libraries support. If you
11523 *** really care for shared libraries, you may want to install binutils
11524 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11525 *** You will then need to restart the configuration process.
11526
11527 _LT_EOF
11528 fi
11529 ;;
11530
11531 amigaos*)
11532 case $host_cpu in
11533 powerpc)
11534 # see comment about AmigaOS4 .so support
11535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11536 archive_expsym_cmds=''
11537 ;;
11538 m68k)
11539 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)'
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_minus_L=yes
11542 ;;
11543 esac
11544 ;;
11545
11546 beos*)
11547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11548 allow_undefined_flag=unsupported
11549 # Joseph Beckenbach <[email protected]> says some releases of gcc
11550 # support --undefined. This deserves some investigation. FIXME
11551 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11552 else
11553 ld_shlibs=no
11554 fi
11555 ;;
11556
11557 cygwin* | mingw* | pw32* | cegcc*)
11558 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11559 # as there is no search path for DLLs.
11560 hardcode_libdir_flag_spec='-L$libdir'
11561 export_dynamic_flag_spec='$wl--export-all-symbols'
11562 allow_undefined_flag=unsupported
11563 always_export_symbols=no
11564 enable_shared_with_static_runtimes=yes
11565 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'
11566 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11567
11568 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11570 # If the export-symbols file already is a .def file, use it as
11571 # is; otherwise, prepend EXPORTS...
11572 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11573 cp $export_symbols $output_objdir/$soname.def;
11574 else
11575 echo EXPORTS > $output_objdir/$soname.def;
11576 cat $export_symbols >> $output_objdir/$soname.def;
11577 fi~
11578 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11579 else
11580 ld_shlibs=no
11581 fi
11582 ;;
11583
11584 haiku*)
11585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11586 link_all_deplibs=yes
11587 ;;
11588
11589 os2*)
11590 hardcode_libdir_flag_spec='-L$libdir'
11591 hardcode_minus_L=yes
11592 allow_undefined_flag=unsupported
11593 shrext_cmds=.dll
11594 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11595 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11596 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11597 $ECHO EXPORTS >> $output_objdir/$libname.def~
11598 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11599 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11600 emximp -o $lib $output_objdir/$libname.def'
11601 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11602 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11603 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11604 $ECHO EXPORTS >> $output_objdir/$libname.def~
11605 prefix_cmds="$SED"~
11606 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11607 prefix_cmds="$prefix_cmds -e 1d";
11608 fi~
11609 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11610 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11611 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11612 emximp -o $lib $output_objdir/$libname.def'
11613 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11614 enable_shared_with_static_runtimes=yes
11615 ;;
11616
11617 interix[3-9]*)
11618 hardcode_direct=no
11619 hardcode_shlibpath_var=no
11620 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11621 export_dynamic_flag_spec='$wl-E'
11622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11623 # Instead, shared libraries are loaded at an image base (0x10000000 by
11624 # default) and relocated if they conflict, which is a slow very memory
11625 # consuming and fragmenting process. To avoid this, we pick a random,
11626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11628 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11629 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'
11630 ;;
11631
11632 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11633 tmp_diet=no
11634 if test linux-dietlibc = "$host_os"; then
11635 case $cc_basename in
11636 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11637 esac
11638 fi
11639 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11640 && test no = "$tmp_diet"
11641 then
11642 tmp_addflag=' $pic_flag'
11643 tmp_sharedflag='-shared'
11644 case $cc_basename,$host_cpu in
11645 pgcc*) # Portland Group C compiler
11646 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'
11647 tmp_addflag=' $pic_flag'
11648 ;;
11649 pgf77* | pgf90* | pgf95* | pgfortran*)
11650 # Portland Group f77 and f90 compilers
11651 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'
11652 tmp_addflag=' $pic_flag -Mnomain' ;;
11653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11654 tmp_addflag=' -i_dynamic' ;;
11655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11656 tmp_addflag=' -i_dynamic -nofor_main' ;;
11657 ifc* | ifort*) # Intel Fortran compiler
11658 tmp_addflag=' -nofor_main' ;;
11659 lf95*) # Lahey Fortran 8.1
11660 whole_archive_flag_spec=
11661 tmp_sharedflag='--shared' ;;
11662 nagfor*) # NAGFOR 5.3
11663 tmp_sharedflag='-Wl,-shared' ;;
11664 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11665 tmp_sharedflag='-qmkshrobj'
11666 tmp_addflag= ;;
11667 nvcc*) # Cuda Compiler Driver 2.2
11668 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'
11669 compiler_needs_object=yes
11670 ;;
11671 esac
11672 case `$CC -V 2>&1 | sed 5q` in
11673 *Sun\ C*) # Sun C 5.9
11674 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'
11675 compiler_needs_object=yes
11676 tmp_sharedflag='-G' ;;
11677 *Sun\ F*) # Sun Fortran 8.3
11678 tmp_sharedflag='-G' ;;
11679 esac
11680 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11681
11682 if test yes = "$supports_anon_versioning"; then
11683 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11685 echo "local: *; };" >> $output_objdir/$libname.ver~
11686 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11687 fi
11688
11689 case $cc_basename in
11690 tcc*)
11691 export_dynamic_flag_spec='-rdynamic'
11692 ;;
11693 xlf* | bgf* | bgxlf* | mpixlf*)
11694 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11695 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11697 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11698 if test yes = "$supports_anon_versioning"; then
11699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11701 echo "local: *; };" >> $output_objdir/$libname.ver~
11702 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11703 fi
11704 ;;
11705 esac
11706 else
11707 ld_shlibs=no
11708 fi
11709 ;;
11710
11711 netbsd* | netbsdelf*-gnu)
11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11714 wlarc=
11715 else
11716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11718 fi
11719 ;;
11720
11721 solaris*)
11722 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11723 ld_shlibs=no
11724 cat <<_LT_EOF 1>&2
11725
11726 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11727 *** create shared libraries on Solaris systems. Therefore, libtool
11728 *** is disabling shared libraries support. We urge you to upgrade GNU
11729 *** binutils to release 2.9.1 or newer. Another option is to modify
11730 *** your PATH or compiler configuration so that the native linker is
11731 *** used, and then restart.
11732
11733 _LT_EOF
11734 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11737 else
11738 ld_shlibs=no
11739 fi
11740 ;;
11741
11742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11743 case `$LD -v 2>&1` in
11744 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11745 ld_shlibs=no
11746 cat <<_LT_EOF 1>&2
11747
11748 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11749 *** reliably create shared libraries on SCO systems. Therefore, libtool
11750 *** is disabling shared libraries support. We urge you to upgrade GNU
11751 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11752 *** your PATH or compiler configuration so that the native linker is
11753 *** used, and then restart.
11754
11755 _LT_EOF
11756 ;;
11757 *)
11758 # For security reasons, it is highly recommended that you always
11759 # use absolute paths for naming shared libraries, and exclude the
11760 # DT_RUNPATH tag from executables and libraries. But doing so
11761 # requires that you compile everything twice, which is a pain.
11762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11766 else
11767 ld_shlibs=no
11768 fi
11769 ;;
11770 esac
11771 ;;
11772
11773 sunos4*)
11774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11775 wlarc=
11776 hardcode_direct=yes
11777 hardcode_shlibpath_var=no
11778 ;;
11779
11780 *)
11781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11783 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11784 else
11785 ld_shlibs=no
11786 fi
11787 ;;
11788 esac
11789
11790 if test no = "$ld_shlibs"; then
11791 runpath_var=
11792 hardcode_libdir_flag_spec=
11793 export_dynamic_flag_spec=
11794 whole_archive_flag_spec=
11795 fi
11796 else
11797 # PORTME fill in a description of your system's linker (not GNU ld)
11798 case $host_os in
11799 aix3*)
11800 allow_undefined_flag=unsupported
11801 always_export_symbols=yes
11802 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'
11803 # Note: this linker hardcodes the directories in LIBPATH if there
11804 # are no directories specified by -L.
11805 hardcode_minus_L=yes
11806 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11807 # Neither direct hardcoding nor static linking is supported with a
11808 # broken collect2.
11809 hardcode_direct=unsupported
11810 fi
11811 ;;
11812
11813 aix[4-9]*)
11814 if test ia64 = "$host_cpu"; then
11815 # On IA64, the linker does run time linking by default, so we don't
11816 # have to do anything special.
11817 aix_use_runtimelinking=no
11818 exp_sym_flag='-Bexport'
11819 no_entry_flag=
11820 else
11821 # If we're using GNU nm, then we don't want the "-C" option.
11822 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11823 # Without the "-l" option, or with the "-B" option, AIX nm treats
11824 # weak defined symbols like other global defined symbols, whereas
11825 # GNU nm marks them as "W".
11826 # While the 'weak' keyword is ignored in the Export File, we need
11827 # it in the Import File for the 'aix-soname' feature, so we have
11828 # to replace the "-B" option with "-P" for AIX nm.
11829 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11830 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11831 else
11832 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11833 fi
11834 aix_use_runtimelinking=no
11835
11836 # Test if we are trying to use run time linking or normal
11837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11838 # have runtime linking enabled, and use it for executables.
11839 # For shared libraries, we enable/disable runtime linking
11840 # depending on the kind of the shared library created -
11841 # when "with_aix_soname,aix_use_runtimelinking" is:
11842 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11843 # "aix,yes" lib.so shared, rtl:yes, for executables
11844 # lib.a static archive
11845 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11846 # lib.a(lib.so.V) shared, rtl:no, for executables
11847 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11848 # lib.a(lib.so.V) shared, rtl:no
11849 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11850 # lib.a static archive
11851 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11852 for ld_flag in $LDFLAGS; do
11853 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11854 aix_use_runtimelinking=yes
11855 break
11856 fi
11857 done
11858 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11859 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11860 # so we don't have lib.a shared libs to link our executables.
11861 # We have to force runtime linking in this case.
11862 aix_use_runtimelinking=yes
11863 LDFLAGS="$LDFLAGS -Wl,-brtl"
11864 fi
11865 ;;
11866 esac
11867
11868 exp_sym_flag='-bexport'
11869 no_entry_flag='-bnoentry'
11870 fi
11871
11872 # When large executables or shared objects are built, AIX ld can
11873 # have problems creating the table of contents. If linking a library
11874 # or program results in "error TOC overflow" add -mminimal-toc to
11875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11877
11878 archive_cmds=''
11879 hardcode_direct=yes
11880 hardcode_direct_absolute=yes
11881 hardcode_libdir_separator=':'
11882 link_all_deplibs=yes
11883 file_list_spec='$wl-f,'
11884 case $with_aix_soname,$aix_use_runtimelinking in
11885 aix,*) ;; # traditional, no import file
11886 svr4,* | *,yes) # use import file
11887 # The Import File defines what to hardcode.
11888 hardcode_direct=no
11889 hardcode_direct_absolute=no
11890 ;;
11891 esac
11892
11893 if test yes = "$GCC"; then
11894 case $host_os in aix4.[012]|aix4.[012].*)
11895 # We only want to do this on AIX 4.2 and lower, the check
11896 # below for broken collect2 doesn't work under 4.3+
11897 collect2name=`$CC -print-prog-name=collect2`
11898 if test -f "$collect2name" &&
11899 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11900 then
11901 # We have reworked collect2
11902 :
11903 else
11904 # We have old collect2
11905 hardcode_direct=unsupported
11906 # It fails to find uninstalled libraries when the uninstalled
11907 # path is not listed in the libpath. Setting hardcode_minus_L
11908 # to unsupported forces relinking
11909 hardcode_minus_L=yes
11910 hardcode_libdir_flag_spec='-L$libdir'
11911 hardcode_libdir_separator=
11912 fi
11913 ;;
11914 esac
11915 shared_flag='-shared'
11916 if test yes = "$aix_use_runtimelinking"; then
11917 shared_flag="$shared_flag "'$wl-G'
11918 fi
11919 # Need to ensure runtime linking is disabled for the traditional
11920 # shared library, or the linker may eventually find shared libraries
11921 # /with/ Import File - we do not want to mix them.
11922 shared_flag_aix='-shared'
11923 shared_flag_svr4='-shared $wl-G'
11924 else
11925 # not using gcc
11926 if test ia64 = "$host_cpu"; then
11927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11928 # chokes on -Wl,-G. The following line is correct:
11929 shared_flag='-G'
11930 else
11931 if test yes = "$aix_use_runtimelinking"; then
11932 shared_flag='$wl-G'
11933 else
11934 shared_flag='$wl-bM:SRE'
11935 fi
11936 shared_flag_aix='$wl-bM:SRE'
11937 shared_flag_svr4='$wl-G'
11938 fi
11939 fi
11940
11941 export_dynamic_flag_spec='$wl-bexpall'
11942 # It seems that -bexpall does not export symbols beginning with
11943 # underscore (_), so it is better to generate a list of symbols to export.
11944 always_export_symbols=yes
11945 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11946 # Warning - without using the other runtime loading flags (-brtl),
11947 # -berok will link without error, but may produce a broken library.
11948 allow_undefined_flag='-berok'
11949 # Determine the default libpath from the value encoded in an
11950 # empty executable.
11951 if test set = "${lt_cv_aix_libpath+set}"; then
11952 aix_libpath=$lt_cv_aix_libpath
11953 else
11954 if test ${lt_cv_aix_libpath_+y}
11955 then :
11956 printf %s "(cached) " >&6
11957 else $as_nop
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960
11961 int
11962 main (void)
11963 {
11964
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"
11970 then :
11971
11972 lt_aix_libpath_sed='
11973 /Import File Strings/,/^$/ {
11974 /^0/ {
11975 s/^0 *\([^ ]*\) *$/\1/
11976 p
11977 }
11978 }'
11979 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11980 # Check for a 64-bit object if we didn't find anything.
11981 if test -z "$lt_cv_aix_libpath_"; then
11982 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983 fi
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11986 conftest$ac_exeext conftest.$ac_ext
11987 if test -z "$lt_cv_aix_libpath_"; then
11988 lt_cv_aix_libpath_=/usr/lib:/lib
11989 fi
11990
11991 fi
11992
11993 aix_libpath=$lt_cv_aix_libpath_
11994 fi
11995
11996 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11997 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11998 else
11999 if test ia64 = "$host_cpu"; then
12000 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12001 allow_undefined_flag="-z nodefs"
12002 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"
12003 else
12004 # Determine the default libpath from the value encoded in an
12005 # empty executable.
12006 if test set = "${lt_cv_aix_libpath+set}"; then
12007 aix_libpath=$lt_cv_aix_libpath
12008 else
12009 if test ${lt_cv_aix_libpath_+y}
12010 then :
12011 printf %s "(cached) " >&6
12012 else $as_nop
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015
12016 int
12017 main (void)
12018 {
12019
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"
12025 then :
12026
12027 lt_aix_libpath_sed='
12028 /Import File Strings/,/^$/ {
12029 /^0/ {
12030 s/^0 *\([^ ]*\) *$/\1/
12031 p
12032 }
12033 }'
12034 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12035 # Check for a 64-bit object if we didn't find anything.
12036 if test -z "$lt_cv_aix_libpath_"; then
12037 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038 fi
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12041 conftest$ac_exeext conftest.$ac_ext
12042 if test -z "$lt_cv_aix_libpath_"; then
12043 lt_cv_aix_libpath_=/usr/lib:/lib
12044 fi
12045
12046 fi
12047
12048 aix_libpath=$lt_cv_aix_libpath_
12049 fi
12050
12051 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12052 # Warning - without using the other run time loading flags,
12053 # -berok will link without error, but may produce a broken library.
12054 no_undefined_flag=' $wl-bernotok'
12055 allow_undefined_flag=' $wl-berok'
12056 if test yes = "$with_gnu_ld"; then
12057 # We only use this code for GNU lds that support --whole-archive.
12058 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12059 else
12060 # Exported symbols can be pulled into shared objects from archives
12061 whole_archive_flag_spec='$convenience'
12062 fi
12063 archive_cmds_need_lc=yes
12064 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12065 # -brtl affects multiple linker settings, -berok does not and is overridden later
12066 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12067 if test svr4 != "$with_aix_soname"; then
12068 # This is similar to how AIX traditionally builds its shared libraries.
12069 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12070 fi
12071 if test aix != "$with_aix_soname"; then
12072 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12073 else
12074 # used by -dlpreopen to get the symbols
12075 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12076 fi
12077 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12078 fi
12079 fi
12080 ;;
12081
12082 amigaos*)
12083 case $host_cpu in
12084 powerpc)
12085 # see comment about AmigaOS4 .so support
12086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12087 archive_expsym_cmds=''
12088 ;;
12089 m68k)
12090 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)'
12091 hardcode_libdir_flag_spec='-L$libdir'
12092 hardcode_minus_L=yes
12093 ;;
12094 esac
12095 ;;
12096
12097 bsdi[45]*)
12098 export_dynamic_flag_spec=-rdynamic
12099 ;;
12100
12101 cygwin* | mingw* | pw32* | cegcc*)
12102 # When not using gcc, we currently assume that we are using
12103 # Microsoft Visual C++.
12104 # hardcode_libdir_flag_spec is actually meaningless, as there is
12105 # no search path for DLLs.
12106 case $cc_basename in
12107 cl*)
12108 # Native MSVC
12109 hardcode_libdir_flag_spec=' '
12110 allow_undefined_flag=unsupported
12111 always_export_symbols=yes
12112 file_list_spec='@'
12113 # Tell ltmain to make .lib files, not .a files.
12114 libext=lib
12115 # Tell ltmain to make .dll files, not .so files.
12116 shrext_cmds=.dll
12117 # FIXME: Setting linknames here is a bad hack.
12118 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12119 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12120 cp "$export_symbols" "$output_objdir/$soname.def";
12121 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12122 else
12123 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12124 fi~
12125 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12126 linknames='
12127 # The linker will not automatically build a static lib if we build a DLL.
12128 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12129 enable_shared_with_static_runtimes=yes
12130 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12132 # Don't use ranlib
12133 old_postinstall_cmds='chmod 644 $oldlib'
12134 postlink_cmds='lt_outputfile="@OUTPUT@"~
12135 lt_tool_outputfile="@TOOL_OUTPUT@"~
12136 case $lt_outputfile in
12137 *.exe|*.EXE) ;;
12138 *)
12139 lt_outputfile=$lt_outputfile.exe
12140 lt_tool_outputfile=$lt_tool_outputfile.exe
12141 ;;
12142 esac~
12143 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12144 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12145 $RM "$lt_outputfile.manifest";
12146 fi'
12147 ;;
12148 *)
12149 # Assume MSVC wrapper
12150 hardcode_libdir_flag_spec=' '
12151 allow_undefined_flag=unsupported
12152 # Tell ltmain to make .lib files, not .a files.
12153 libext=lib
12154 # Tell ltmain to make .dll files, not .so files.
12155 shrext_cmds=.dll
12156 # FIXME: Setting linknames here is a bad hack.
12157 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12158 # The linker will automatically build a .lib file if we build a DLL.
12159 old_archive_from_new_cmds='true'
12160 # FIXME: Should let the user specify the lib program.
12161 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12162 enable_shared_with_static_runtimes=yes
12163 ;;
12164 esac
12165 ;;
12166
12167 darwin* | rhapsody*)
12168
12169
12170 archive_cmds_need_lc=no
12171 hardcode_direct=no
12172 hardcode_automatic=yes
12173 hardcode_shlibpath_var=unsupported
12174 if test yes = "$lt_cv_ld_force_load"; then
12175 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\"`'
12176
12177 else
12178 whole_archive_flag_spec=''
12179 fi
12180 link_all_deplibs=yes
12181 allow_undefined_flag=$_lt_dar_allow_undefined
12182 case $cc_basename in
12183 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12184 *) _lt_dar_can_shared=$GCC ;;
12185 esac
12186 if test yes = "$_lt_dar_can_shared"; then
12187 output_verbose_link_cmd=func_echo_all
12188 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12189 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12190 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"
12191 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"
12192
12193 else
12194 ld_shlibs=no
12195 fi
12196
12197 ;;
12198
12199 dgux*)
12200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12201 hardcode_libdir_flag_spec='-L$libdir'
12202 hardcode_shlibpath_var=no
12203 ;;
12204
12205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12206 # support. Future versions do this automatically, but an explicit c++rt0.o
12207 # does not break anything, and helps significantly (at the cost of a little
12208 # extra space).
12209 freebsd2.2*)
12210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12211 hardcode_libdir_flag_spec='-R$libdir'
12212 hardcode_direct=yes
12213 hardcode_shlibpath_var=no
12214 ;;
12215
12216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12217 freebsd2.*)
12218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12219 hardcode_direct=yes
12220 hardcode_minus_L=yes
12221 hardcode_shlibpath_var=no
12222 ;;
12223
12224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12225 freebsd* | dragonfly*)
12226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12227 hardcode_libdir_flag_spec='-R$libdir'
12228 hardcode_direct=yes
12229 hardcode_shlibpath_var=no
12230 ;;
12231
12232 hpux9*)
12233 if test yes = "$GCC"; then
12234 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12235 else
12236 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12237 fi
12238 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12239 hardcode_libdir_separator=:
12240 hardcode_direct=yes
12241
12242 # hardcode_minus_L: Not really in the search PATH,
12243 # but as the default location of the library.
12244 hardcode_minus_L=yes
12245 export_dynamic_flag_spec='$wl-E'
12246 ;;
12247
12248 hpux10*)
12249 if test yes,no = "$GCC,$with_gnu_ld"; then
12250 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12251 else
12252 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12253 fi
12254 if test no = "$with_gnu_ld"; then
12255 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12256 hardcode_libdir_separator=:
12257 hardcode_direct=yes
12258 hardcode_direct_absolute=yes
12259 export_dynamic_flag_spec='$wl-E'
12260 # hardcode_minus_L: Not really in the search PATH,
12261 # but as the default location of the library.
12262 hardcode_minus_L=yes
12263 fi
12264 ;;
12265
12266 hpux11*)
12267 if test yes,no = "$GCC,$with_gnu_ld"; then
12268 case $host_cpu in
12269 hppa*64*)
12270 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12271 ;;
12272 ia64*)
12273 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12274 ;;
12275 *)
12276 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12277 ;;
12278 esac
12279 else
12280 case $host_cpu in
12281 hppa*64*)
12282 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 ;;
12284 ia64*)
12285 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12286 ;;
12287 *)
12288
12289 # Older versions of the 11.00 compiler do not understand -b yet
12290 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12292 printf %s "checking if $CC understands -b... " >&6; }
12293 if test ${lt_cv_prog_compiler__b+y}
12294 then :
12295 printf %s "(cached) " >&6
12296 else $as_nop
12297 lt_cv_prog_compiler__b=no
12298 save_LDFLAGS=$LDFLAGS
12299 LDFLAGS="$LDFLAGS -b"
12300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12302 # The linker can only warn and ignore the option if not recognized
12303 # So say no if there are warnings
12304 if test -s conftest.err; then
12305 # Append any errors to the config.log.
12306 cat conftest.err 1>&5
12307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12309 if diff conftest.exp conftest.er2 >/dev/null; then
12310 lt_cv_prog_compiler__b=yes
12311 fi
12312 else
12313 lt_cv_prog_compiler__b=yes
12314 fi
12315 fi
12316 $RM -r conftest*
12317 LDFLAGS=$save_LDFLAGS
12318
12319 fi
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12321 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12322
12323 if test yes = "$lt_cv_prog_compiler__b"; then
12324 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12325 else
12326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12327 fi
12328
12329 ;;
12330 esac
12331 fi
12332 if test no = "$with_gnu_ld"; then
12333 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12334 hardcode_libdir_separator=:
12335
12336 case $host_cpu in
12337 hppa*64*|ia64*)
12338 hardcode_direct=no
12339 hardcode_shlibpath_var=no
12340 ;;
12341 *)
12342 hardcode_direct=yes
12343 hardcode_direct_absolute=yes
12344 export_dynamic_flag_spec='$wl-E'
12345
12346 # hardcode_minus_L: Not really in the search PATH,
12347 # but as the default location of the library.
12348 hardcode_minus_L=yes
12349 ;;
12350 esac
12351 fi
12352 ;;
12353
12354 irix5* | irix6* | nonstopux*)
12355 if test yes = "$GCC"; then
12356 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'
12357 # Try to use the -exported_symbol ld option, if it does not
12358 # work, assume that -exports_file does not work either and
12359 # implicitly export all symbols.
12360 # This should be the same for all languages, so no per-tag cache variable.
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12362 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12363 if test ${lt_cv_irix_exported_symbol+y}
12364 then :
12365 printf %s "(cached) " >&6
12366 else $as_nop
12367 save_LDFLAGS=$LDFLAGS
12368 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 int foo (void) { return 0; }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"
12374 then :
12375 lt_cv_irix_exported_symbol=yes
12376 else $as_nop
12377 lt_cv_irix_exported_symbol=no
12378 fi
12379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LDFLAGS=$save_LDFLAGS
12382 fi
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12384 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12385 if test yes = "$lt_cv_irix_exported_symbol"; then
12386 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'
12387 fi
12388 link_all_deplibs=no
12389 else
12390 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'
12391 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'
12392 fi
12393 archive_cmds_need_lc='no'
12394 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12395 hardcode_libdir_separator=:
12396 inherit_rpath=yes
12397 link_all_deplibs=yes
12398 ;;
12399
12400 linux*)
12401 case $cc_basename in
12402 tcc*)
12403 # Fabrice Bellard et al's Tiny C Compiler
12404 ld_shlibs=yes
12405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12406 ;;
12407 esac
12408 ;;
12409
12410 netbsd* | netbsdelf*-gnu)
12411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12413 else
12414 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12415 fi
12416 hardcode_libdir_flag_spec='-R$libdir'
12417 hardcode_direct=yes
12418 hardcode_shlibpath_var=no
12419 ;;
12420
12421 newsos6)
12422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12423 hardcode_direct=yes
12424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12425 hardcode_libdir_separator=:
12426 hardcode_shlibpath_var=no
12427 ;;
12428
12429 *nto* | *qnx*)
12430 ;;
12431
12432 openbsd* | bitrig*)
12433 if test -f /usr/libexec/ld.so; then
12434 hardcode_direct=yes
12435 hardcode_shlibpath_var=no
12436 hardcode_direct_absolute=yes
12437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12440 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12441 export_dynamic_flag_spec='$wl-E'
12442 else
12443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12444 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12445 fi
12446 else
12447 ld_shlibs=no
12448 fi
12449 ;;
12450
12451 os2*)
12452 hardcode_libdir_flag_spec='-L$libdir'
12453 hardcode_minus_L=yes
12454 allow_undefined_flag=unsupported
12455 shrext_cmds=.dll
12456 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12457 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12458 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12459 $ECHO EXPORTS >> $output_objdir/$libname.def~
12460 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12461 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12462 emximp -o $lib $output_objdir/$libname.def'
12463 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12464 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12465 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12466 $ECHO EXPORTS >> $output_objdir/$libname.def~
12467 prefix_cmds="$SED"~
12468 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12469 prefix_cmds="$prefix_cmds -e 1d";
12470 fi~
12471 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12472 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12474 emximp -o $lib $output_objdir/$libname.def'
12475 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12476 enable_shared_with_static_runtimes=yes
12477 ;;
12478
12479 osf3*)
12480 if test yes = "$GCC"; then
12481 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12482 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'
12483 else
12484 allow_undefined_flag=' -expect_unresolved \*'
12485 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'
12486 fi
12487 archive_cmds_need_lc='no'
12488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12489 hardcode_libdir_separator=:
12490 ;;
12491
12492 osf4* | osf5*) # as osf3* with the addition of -msym flag
12493 if test yes = "$GCC"; then
12494 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12495 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'
12496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12497 else
12498 allow_undefined_flag=' -expect_unresolved \*'
12499 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'
12500 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~
12501 $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'
12502
12503 # Both c and cxx compiler support -rpath directly
12504 hardcode_libdir_flag_spec='-rpath $libdir'
12505 fi
12506 archive_cmds_need_lc='no'
12507 hardcode_libdir_separator=:
12508 ;;
12509
12510 solaris*)
12511 no_undefined_flag=' -z defs'
12512 if test yes = "$GCC"; then
12513 wlarc='$wl'
12514 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12516 $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'
12517 else
12518 case `$CC -V 2>&1` in
12519 *"Compilers 5.0"*)
12520 wlarc=''
12521 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12523 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12524 ;;
12525 *)
12526 wlarc='$wl'
12527 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12528 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12529 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12530 ;;
12531 esac
12532 fi
12533 hardcode_libdir_flag_spec='-R$libdir'
12534 hardcode_shlibpath_var=no
12535 case $host_os in
12536 solaris2.[0-5] | solaris2.[0-5].*) ;;
12537 *)
12538 # The compiler driver will combine and reorder linker options,
12539 # but understands '-z linker_flag'. GCC discards it without '$wl',
12540 # but is careful enough not to reorder.
12541 # Supported since Solaris 2.6 (maybe 2.5.1?)
12542 if test yes = "$GCC"; then
12543 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12544 else
12545 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12546 fi
12547 ;;
12548 esac
12549 link_all_deplibs=yes
12550 ;;
12551
12552 sunos4*)
12553 if test sequent = "$host_vendor"; then
12554 # Use $CC to link under sequent, because it throws in some extra .o
12555 # files that make .init and .fini sections work.
12556 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12557 else
12558 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12559 fi
12560 hardcode_libdir_flag_spec='-L$libdir'
12561 hardcode_direct=yes
12562 hardcode_minus_L=yes
12563 hardcode_shlibpath_var=no
12564 ;;
12565
12566 sysv4)
12567 case $host_vendor in
12568 sni)
12569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12570 hardcode_direct=yes # is this really true???
12571 ;;
12572 siemens)
12573 ## LD is ld it makes a PLAMLIB
12574 ## CC just makes a GrossModule.
12575 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12576 reload_cmds='$CC -r -o $output$reload_objs'
12577 hardcode_direct=no
12578 ;;
12579 motorola)
12580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12581 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12582 ;;
12583 esac
12584 runpath_var='LD_RUN_PATH'
12585 hardcode_shlibpath_var=no
12586 ;;
12587
12588 sysv4.3*)
12589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12590 hardcode_shlibpath_var=no
12591 export_dynamic_flag_spec='-Bexport'
12592 ;;
12593
12594 sysv4*MP*)
12595 if test -d /usr/nec; then
12596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12597 hardcode_shlibpath_var=no
12598 runpath_var=LD_RUN_PATH
12599 hardcode_runpath_var=yes
12600 ld_shlibs=yes
12601 fi
12602 ;;
12603
12604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12605 no_undefined_flag='$wl-z,text'
12606 archive_cmds_need_lc=no
12607 hardcode_shlibpath_var=no
12608 runpath_var='LD_RUN_PATH'
12609
12610 if test yes = "$GCC"; then
12611 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12612 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12613 else
12614 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 fi
12617 ;;
12618
12619 sysv5* | sco3.2v5* | sco5v6*)
12620 # Note: We CANNOT use -z defs as we might desire, because we do not
12621 # link with -lc, and that would cause any symbols used from libc to
12622 # always be unresolved, which means just about no library would
12623 # ever link correctly. If we're not using GNU ld we use -z text
12624 # though, which does catch some bad symbols but isn't as heavy-handed
12625 # as -z defs.
12626 no_undefined_flag='$wl-z,text'
12627 allow_undefined_flag='$wl-z,nodefs'
12628 archive_cmds_need_lc=no
12629 hardcode_shlibpath_var=no
12630 hardcode_libdir_flag_spec='$wl-R,$libdir'
12631 hardcode_libdir_separator=':'
12632 link_all_deplibs=yes
12633 export_dynamic_flag_spec='$wl-Bexport'
12634 runpath_var='LD_RUN_PATH'
12635
12636 if test yes = "$GCC"; then
12637 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12638 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12639 else
12640 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642 fi
12643 ;;
12644
12645 uts4*)
12646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12647 hardcode_libdir_flag_spec='-L$libdir'
12648 hardcode_shlibpath_var=no
12649 ;;
12650
12651 *)
12652 ld_shlibs=no
12653 ;;
12654 esac
12655
12656 if test sni = "$host_vendor"; then
12657 case $host in
12658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12659 export_dynamic_flag_spec='$wl-Blargedynsym'
12660 ;;
12661 esac
12662 fi
12663 fi
12664
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12666 printf "%s\n" "$ld_shlibs" >&6; }
12667 test no = "$ld_shlibs" && can_build_shared=no
12668
12669 with_gnu_ld=$with_gnu_ld
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685 #
12686 # Do we need to explicitly link libc?
12687 #
12688 case "x$archive_cmds_need_lc" in
12689 x|xyes)
12690 # Assume -lc should be added
12691 archive_cmds_need_lc=yes
12692
12693 if test yes,yes = "$GCC,$enable_shared"; then
12694 case $archive_cmds in
12695 *'~'*)
12696 # FIXME: we may have to deal with multi-command sequences.
12697 ;;
12698 '$CC '*)
12699 # Test whether the compiler implicitly links with -lc since on some
12700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12701 # to ld, don't add -lc before -lgcc.
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12703 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12704 if test ${lt_cv_archive_cmds_need_lc+y}
12705 then :
12706 printf %s "(cached) " >&6
12707 else $as_nop
12708 $RM conftest*
12709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12710
12711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12712 (eval $ac_compile) 2>&5
12713 ac_status=$?
12714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715 test $ac_status = 0; } 2>conftest.err; then
12716 soname=conftest
12717 lib=conftest
12718 libobjs=conftest.$ac_objext
12719 deplibs=
12720 wl=$lt_prog_compiler_wl
12721 pic_flag=$lt_prog_compiler_pic
12722 compiler_flags=-v
12723 linker_flags=-v
12724 verstring=
12725 output_objdir=.
12726 libname=conftest
12727 lt_save_allow_undefined_flag=$allow_undefined_flag
12728 allow_undefined_flag=
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12730 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12731 ac_status=$?
12732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; }
12734 then
12735 lt_cv_archive_cmds_need_lc=no
12736 else
12737 lt_cv_archive_cmds_need_lc=yes
12738 fi
12739 allow_undefined_flag=$lt_save_allow_undefined_flag
12740 else
12741 cat conftest.err 1>&5
12742 fi
12743 $RM conftest*
12744
12745 fi
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12747 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12748 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12749 ;;
12750 esac
12751 fi
12752 ;;
12753 esac
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
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12907 printf %s "checking dynamic linker characteristics... " >&6; }
12908
12909 if test yes = "$GCC"; then
12910 case $host_os in
12911 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12912 *) lt_awk_arg='/^libraries:/' ;;
12913 esac
12914 case $host_os in
12915 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12916 *) lt_sed_strip_eq='s|=/|/|g' ;;
12917 esac
12918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12919 case $lt_search_path_spec in
12920 *\;*)
12921 # if the path contains ";" then we assume it to be the separator
12922 # otherwise default to the standard path separator (i.e. ":") - it is
12923 # assumed that no part of a normal pathname contains ";" but that should
12924 # okay in the real world where ";" in dirpaths is itself problematic.
12925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12926 ;;
12927 *)
12928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12929 ;;
12930 esac
12931 # Ok, now we have the path, separated by spaces, we can step through it
12932 # and add multilib dir if necessary...
12933 lt_tmp_lt_search_path_spec=
12934 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12935 # ...but if some path component already ends with the multilib dir we assume
12936 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12937 case "$lt_multi_os_dir; $lt_search_path_spec " in
12938 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12939 lt_multi_os_dir=
12940 ;;
12941 esac
12942 for lt_sys_path in $lt_search_path_spec; do
12943 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12945 elif test -n "$lt_multi_os_dir"; then
12946 test -d "$lt_sys_path" && \
12947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12948 fi
12949 done
12950 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12951 BEGIN {RS = " "; FS = "/|\n";} {
12952 lt_foo = "";
12953 lt_count = 0;
12954 for (lt_i = NF; lt_i > 0; lt_i--) {
12955 if ($lt_i != "" && $lt_i != ".") {
12956 if ($lt_i == "..") {
12957 lt_count++;
12958 } else {
12959 if (lt_count == 0) {
12960 lt_foo = "/" $lt_i lt_foo;
12961 } else {
12962 lt_count--;
12963 }
12964 }
12965 }
12966 }
12967 if (lt_foo != "") { lt_freq[lt_foo]++; }
12968 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12969 }'`
12970 # AWK program above erroneously prepends '/' to C:/dos/paths
12971 # for these hosts.
12972 case $host_os in
12973 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12974 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12975 esac
12976 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12977 else
12978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12979 fi
12980 library_names_spec=
12981 libname_spec='lib$name'
12982 soname_spec=
12983 shrext_cmds=.so
12984 postinstall_cmds=
12985 postuninstall_cmds=
12986 finish_cmds=
12987 finish_eval=
12988 shlibpath_var=
12989 shlibpath_overrides_runpath=unknown
12990 version_type=none
12991 dynamic_linker="$host_os ld.so"
12992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12993 need_lib_prefix=unknown
12994 hardcode_into_libs=no
12995
12996 # when you set need_version to no, make sure it does not cause -set_version
12997 # flags to be left without arguments
12998 need_version=unknown
12999
13000
13001
13002 case $host_os in
13003 aix3*)
13004 version_type=linux # correct to gnu/linux during the next big refactor
13005 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13006 shlibpath_var=LIBPATH
13007
13008 # AIX 3 has no versioning support, so we append a major version to the name.
13009 soname_spec='$libname$release$shared_ext$major'
13010 ;;
13011
13012 aix[4-9]*)
13013 version_type=linux # correct to gnu/linux during the next big refactor
13014 need_lib_prefix=no
13015 need_version=no
13016 hardcode_into_libs=yes
13017 if test ia64 = "$host_cpu"; then
13018 # AIX 5 supports IA64
13019 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13020 shlibpath_var=LD_LIBRARY_PATH
13021 else
13022 # With GCC up to 2.95.x, collect2 would create an import file
13023 # for dependence libraries. The import file would start with
13024 # the line '#! .'. This would cause the generated library to
13025 # depend on '.', always an invalid library. This was fixed in
13026 # development snapshots of GCC prior to 3.0.
13027 case $host_os in
13028 aix4 | aix4.[01] | aix4.[01].*)
13029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13030 echo ' yes '
13031 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13032 :
13033 else
13034 can_build_shared=no
13035 fi
13036 ;;
13037 esac
13038 # Using Import Files as archive members, it is possible to support
13039 # filename-based versioning of shared library archives on AIX. While
13040 # this would work for both with and without runtime linking, it will
13041 # prevent static linking of such archives. So we do filename-based
13042 # shared library versioning with .so extension only, which is used
13043 # when both runtime linking and shared linking is enabled.
13044 # Unfortunately, runtime linking may impact performance, so we do
13045 # not want this to be the default eventually. Also, we use the
13046 # versioned .so libs for executables only if there is the -brtl
13047 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13048 # To allow for filename-based versioning support, we need to create
13049 # libNAME.so.V as an archive file, containing:
13050 # *) an Import File, referring to the versioned filename of the
13051 # archive as well as the shared archive member, telling the
13052 # bitwidth (32 or 64) of that shared object, and providing the
13053 # list of exported symbols of that shared object, eventually
13054 # decorated with the 'weak' keyword
13055 # *) the shared object with the F_LOADONLY flag set, to really avoid
13056 # it being seen by the linker.
13057 # At run time we better use the real file rather than another symlink,
13058 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13059
13060 case $with_aix_soname,$aix_use_runtimelinking in
13061 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13062 # soname into executable. Probably we can add versioning support to
13063 # collect2, so additional links can be useful in future.
13064 aix,yes) # traditional libtool
13065 dynamic_linker='AIX unversionable lib.so'
13066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13067 # instead of lib<name>.a to let people know that these are not
13068 # typical AIX shared libraries.
13069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13070 ;;
13071 aix,no) # traditional AIX only
13072 dynamic_linker='AIX lib.a(lib.so.V)'
13073 # We preserve .a as extension for shared libraries through AIX4.2
13074 # and later when we are not doing run time linking.
13075 library_names_spec='$libname$release.a $libname.a'
13076 soname_spec='$libname$release$shared_ext$major'
13077 ;;
13078 svr4,*) # full svr4 only
13079 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13080 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13081 # We do not specify a path in Import Files, so LIBPATH fires.
13082 shlibpath_overrides_runpath=yes
13083 ;;
13084 *,yes) # both, prefer svr4
13085 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13086 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13087 # unpreferred sharedlib libNAME.a needs extra handling
13088 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13089 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13090 # We do not specify a path in Import Files, so LIBPATH fires.
13091 shlibpath_overrides_runpath=yes
13092 ;;
13093 *,no) # both, prefer aix
13094 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13095 library_names_spec='$libname$release.a $libname.a'
13096 soname_spec='$libname$release$shared_ext$major'
13097 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13098 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13099 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13100 ;;
13101 esac
13102 shlibpath_var=LIBPATH
13103 fi
13104 ;;
13105
13106 amigaos*)
13107 case $host_cpu in
13108 powerpc)
13109 # Since July 2007 AmigaOS4 officially supports .so libraries.
13110 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13112 ;;
13113 m68k)
13114 library_names_spec='$libname.ixlibrary $libname.a'
13115 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13116 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13117 ;;
13118 esac
13119 ;;
13120
13121 beos*)
13122 library_names_spec='$libname$shared_ext'
13123 dynamic_linker="$host_os ld.so"
13124 shlibpath_var=LIBRARY_PATH
13125 ;;
13126
13127 bsdi[45]*)
13128 version_type=linux # correct to gnu/linux during the next big refactor
13129 need_version=no
13130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13131 soname_spec='$libname$release$shared_ext$major'
13132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13136 # the default ld.so.conf also contains /usr/contrib/lib and
13137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13138 # libtool to hard-code these into programs
13139 ;;
13140
13141 cygwin* | mingw* | pw32* | cegcc*)
13142 version_type=windows
13143 shrext_cmds=.dll
13144 need_version=no
13145 need_lib_prefix=no
13146
13147 case $GCC,$cc_basename in
13148 yes,*)
13149 # gcc
13150 library_names_spec='$libname.dll.a'
13151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13152 postinstall_cmds='base_file=`basename \$file`~
13153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13154 dldir=$destdir/`dirname \$dlpath`~
13155 test -d \$dldir || mkdir -p \$dldir~
13156 $install_prog $dir/$dlname \$dldir/$dlname~
13157 chmod a+x \$dldir/$dlname~
13158 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13159 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13160 fi'
13161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13162 dlpath=$dir/\$dldll~
13163 $RM \$dlpath'
13164 shlibpath_overrides_runpath=yes
13165
13166 case $host_os in
13167 cygwin*)
13168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13169 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13170
13171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13172 ;;
13173 mingw* | cegcc*)
13174 # MinGW DLLs use traditional 'lib' prefix
13175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13176 ;;
13177 pw32*)
13178 # pw32 DLLs use 'pw' prefix rather than 'lib'
13179 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13180 ;;
13181 esac
13182 dynamic_linker='Win32 ld.exe'
13183 ;;
13184
13185 *,cl*)
13186 # Native MSVC
13187 libname_spec='$name'
13188 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13189 library_names_spec='$libname.dll.lib'
13190
13191 case $build_os in
13192 mingw*)
13193 sys_lib_search_path_spec=
13194 lt_save_ifs=$IFS
13195 IFS=';'
13196 for lt_path in $LIB
13197 do
13198 IFS=$lt_save_ifs
13199 # Let DOS variable expansion print the short 8.3 style file name.
13200 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13201 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13202 done
13203 IFS=$lt_save_ifs
13204 # Convert to MSYS style.
13205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13206 ;;
13207 cygwin*)
13208 # Convert to unix form, then to dos form, then back to unix form
13209 # but this time dos style (no spaces!) so that the unix form looks
13210 # like /cygdrive/c/PROGRA~1:/cygdr...
13211 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13212 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13213 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13214 ;;
13215 *)
13216 sys_lib_search_path_spec=$LIB
13217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13218 # It is most probably a Windows format PATH.
13219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13220 else
13221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13222 fi
13223 # FIXME: find the short name or the path components, as spaces are
13224 # common. (e.g. "Program Files" -> "PROGRA~1")
13225 ;;
13226 esac
13227
13228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13229 postinstall_cmds='base_file=`basename \$file`~
13230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13231 dldir=$destdir/`dirname \$dlpath`~
13232 test -d \$dldir || mkdir -p \$dldir~
13233 $install_prog $dir/$dlname \$dldir/$dlname'
13234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13235 dlpath=$dir/\$dldll~
13236 $RM \$dlpath'
13237 shlibpath_overrides_runpath=yes
13238 dynamic_linker='Win32 link.exe'
13239 ;;
13240
13241 *)
13242 # Assume MSVC wrapper
13243 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13244 dynamic_linker='Win32 ld.exe'
13245 ;;
13246 esac
13247 # FIXME: first we should search . and the directory the executable is in
13248 shlibpath_var=PATH
13249 ;;
13250
13251 darwin* | rhapsody*)
13252 dynamic_linker="$host_os dyld"
13253 version_type=darwin
13254 need_lib_prefix=no
13255 need_version=no
13256 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13257 soname_spec='$libname$release$major$shared_ext'
13258 shlibpath_overrides_runpath=yes
13259 shlibpath_var=DYLD_LIBRARY_PATH
13260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13261
13262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13264 ;;
13265
13266 dgux*)
13267 version_type=linux # correct to gnu/linux during the next big refactor
13268 need_lib_prefix=no
13269 need_version=no
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13271 soname_spec='$libname$release$shared_ext$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 ;;
13274
13275 freebsd* | dragonfly*)
13276 # DragonFly does not have aout. When/if they implement a new
13277 # versioning mechanism, adjust this.
13278 if test -x /usr/bin/objformat; then
13279 objformat=`/usr/bin/objformat`
13280 else
13281 case $host_os in
13282 freebsd[23].*) objformat=aout ;;
13283 *) objformat=elf ;;
13284 esac
13285 fi
13286 version_type=freebsd-$objformat
13287 case $version_type in
13288 freebsd-elf*)
13289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290 soname_spec='$libname$release$shared_ext$major'
13291 need_version=no
13292 need_lib_prefix=no
13293 ;;
13294 freebsd-*)
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13296 need_version=yes
13297 ;;
13298 esac
13299 shlibpath_var=LD_LIBRARY_PATH
13300 case $host_os in
13301 freebsd2.*)
13302 shlibpath_overrides_runpath=yes
13303 ;;
13304 freebsd3.[01]* | freebsdelf3.[01]*)
13305 shlibpath_overrides_runpath=yes
13306 hardcode_into_libs=yes
13307 ;;
13308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13310 shlibpath_overrides_runpath=no
13311 hardcode_into_libs=yes
13312 ;;
13313 *) # from 4.6 on, and DragonFly
13314 shlibpath_overrides_runpath=yes
13315 hardcode_into_libs=yes
13316 ;;
13317 esac
13318 ;;
13319
13320 haiku*)
13321 version_type=linux # correct to gnu/linux during the next big refactor
13322 need_lib_prefix=no
13323 need_version=no
13324 dynamic_linker="$host_os runtime_loader"
13325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13326 soname_spec='$libname$release$shared_ext$major'
13327 shlibpath_var=LIBRARY_PATH
13328 shlibpath_overrides_runpath=no
13329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13330 hardcode_into_libs=yes
13331 ;;
13332
13333 hpux9* | hpux10* | hpux11*)
13334 # Give a soname corresponding to the major version so that dld.sl refuses to
13335 # link against other versions.
13336 version_type=sunos
13337 need_lib_prefix=no
13338 need_version=no
13339 case $host_cpu in
13340 ia64*)
13341 shrext_cmds='.so'
13342 hardcode_into_libs=yes
13343 dynamic_linker="$host_os dld.so"
13344 shlibpath_var=LD_LIBRARY_PATH
13345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347 soname_spec='$libname$release$shared_ext$major'
13348 if test 32 = "$HPUX_IA64_MODE"; then
13349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13350 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13351 else
13352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13353 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13354 fi
13355 ;;
13356 hppa*64*)
13357 shrext_cmds='.sl'
13358 hardcode_into_libs=yes
13359 dynamic_linker="$host_os dld.sl"
13360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13363 soname_spec='$libname$release$shared_ext$major'
13364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13366 ;;
13367 *)
13368 shrext_cmds='.sl'
13369 dynamic_linker="$host_os dld.sl"
13370 shlibpath_var=SHLIB_PATH
13371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13373 soname_spec='$libname$release$shared_ext$major'
13374 ;;
13375 esac
13376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13377 postinstall_cmds='chmod 555 $lib'
13378 # or fails outright, so override atomically:
13379 install_override_mode=555
13380 ;;
13381
13382 interix[3-9]*)
13383 version_type=linux # correct to gnu/linux during the next big refactor
13384 need_lib_prefix=no
13385 need_version=no
13386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13387 soname_spec='$libname$release$shared_ext$major'
13388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=no
13391 hardcode_into_libs=yes
13392 ;;
13393
13394 irix5* | irix6* | nonstopux*)
13395 case $host_os in
13396 nonstopux*) version_type=nonstopux ;;
13397 *)
13398 if test yes = "$lt_cv_prog_gnu_ld"; then
13399 version_type=linux # correct to gnu/linux during the next big refactor
13400 else
13401 version_type=irix
13402 fi ;;
13403 esac
13404 need_lib_prefix=no
13405 need_version=no
13406 soname_spec='$libname$release$shared_ext$major'
13407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13408 case $host_os in
13409 irix5* | nonstopux*)
13410 libsuff= shlibsuff=
13411 ;;
13412 *)
13413 case $LD in # libtool.m4 will add one of these switches to LD
13414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13415 libsuff= shlibsuff= libmagic=32-bit;;
13416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13417 libsuff=32 shlibsuff=N32 libmagic=N32;;
13418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13420 *) libsuff= shlibsuff= libmagic=never-match;;
13421 esac
13422 ;;
13423 esac
13424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13425 shlibpath_overrides_runpath=no
13426 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13427 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13428 hardcode_into_libs=yes
13429 ;;
13430
13431 # No shared lib support for Linux oldld, aout, or coff.
13432 linux*oldld* | linux*aout* | linux*coff*)
13433 dynamic_linker=no
13434 ;;
13435
13436 linux*android*)
13437 version_type=none # Android doesn't support versioned libraries.
13438 need_lib_prefix=no
13439 need_version=no
13440 library_names_spec='$libname$release$shared_ext'
13441 soname_spec='$libname$release$shared_ext'
13442 finish_cmds=
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13445
13446 # This implies no fast_install, which is unacceptable.
13447 # Some rework will be needed to allow for fast_install
13448 # before this can be enabled.
13449 hardcode_into_libs=yes
13450
13451 dynamic_linker='Android linker'
13452 # Don't embed -rpath directories since the linker doesn't support them.
13453 hardcode_libdir_flag_spec='-L$libdir'
13454 ;;
13455
13456 # This must be glibc/ELF.
13457 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13458 version_type=linux # correct to gnu/linux during the next big refactor
13459 need_lib_prefix=no
13460 need_version=no
13461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13462 soname_spec='$libname$release$shared_ext$major'
13463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 shlibpath_overrides_runpath=no
13466
13467 # Some binutils ld are patched to set DT_RUNPATH
13468 if test ${lt_cv_shlibpath_overrides_runpath+y}
13469 then :
13470 printf %s "(cached) " >&6
13471 else $as_nop
13472 lt_cv_shlibpath_overrides_runpath=no
13473 save_LDFLAGS=$LDFLAGS
13474 save_libdir=$libdir
13475 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13476 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479
13480 int
13481 main (void)
13482 {
13483
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 if ac_fn_c_try_link "$LINENO"
13489 then :
13490 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13491 then :
13492 lt_cv_shlibpath_overrides_runpath=yes
13493 fi
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LDFLAGS=$save_LDFLAGS
13498 libdir=$save_libdir
13499
13500 fi
13501
13502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13503
13504 # This implies no fast_install, which is unacceptable.
13505 # Some rework will be needed to allow for fast_install
13506 # before this can be enabled.
13507 hardcode_into_libs=yes
13508
13509 # Ideally, we could use ldconfig to report *all* directores which are
13510 # searched for libraries, however this is still not possible. Aside from not
13511 # being certain /sbin/ldconfig is available, command
13512 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13513 # even though it is searched at run-time. Try to do the best guess by
13514 # appending ld.so.conf contents (and includes) to the search path.
13515 if test -f /etc/ld.so.conf; then
13516 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' ' '`
13517 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13518 fi
13519
13520 # We used to test for /lib/ld.so.1 and disable shared libraries on
13521 # powerpc, because MkLinux only supported shared libraries with the
13522 # GNU dynamic linker. Since this was broken with cross compilers,
13523 # most powerpc-linux boxes support dynamic linking these days and
13524 # people can always --disable-shared, the test was removed, and we
13525 # assume the GNU/Linux dynamic linker is in use.
13526 dynamic_linker='GNU/Linux ld.so'
13527 ;;
13528
13529 netbsdelf*-gnu)
13530 version_type=linux
13531 need_lib_prefix=no
13532 need_version=no
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=no
13537 hardcode_into_libs=yes
13538 dynamic_linker='NetBSD ld.elf_so'
13539 ;;
13540
13541 netbsd*)
13542 version_type=sunos
13543 need_lib_prefix=no
13544 need_version=no
13545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548 dynamic_linker='NetBSD (a.out) ld.so'
13549 else
13550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13551 soname_spec='$libname$release$shared_ext$major'
13552 dynamic_linker='NetBSD ld.elf_so'
13553 fi
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 hardcode_into_libs=yes
13557 ;;
13558
13559 newsos6)
13560 version_type=linux # correct to gnu/linux during the next big refactor
13561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13564 ;;
13565
13566 *nto* | *qnx*)
13567 version_type=qnx
13568 need_lib_prefix=no
13569 need_version=no
13570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13571 soname_spec='$libname$release$shared_ext$major'
13572 shlibpath_var=LD_LIBRARY_PATH
13573 shlibpath_overrides_runpath=no
13574 hardcode_into_libs=yes
13575 dynamic_linker='ldqnx.so'
13576 ;;
13577
13578 openbsd* | bitrig*)
13579 version_type=sunos
13580 sys_lib_dlsearch_path_spec=/usr/lib
13581 need_lib_prefix=no
13582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13583 need_version=no
13584 else
13585 need_version=yes
13586 fi
13587 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes
13591 ;;
13592
13593 os2*)
13594 libname_spec='$name'
13595 version_type=windows
13596 shrext_cmds=.dll
13597 need_version=no
13598 need_lib_prefix=no
13599 # OS/2 can only load a DLL with a base name of 8 characters or less.
13600 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13601 v=$($ECHO $release$versuffix | tr -d .-);
13602 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13603 $ECHO $n$v`$shared_ext'
13604 library_names_spec='${libname}_dll.$libext'
13605 dynamic_linker='OS/2 ld.exe'
13606 shlibpath_var=BEGINLIBPATH
13607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13609 postinstall_cmds='base_file=`basename \$file`~
13610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13611 dldir=$destdir/`dirname \$dlpath`~
13612 test -d \$dldir || mkdir -p \$dldir~
13613 $install_prog $dir/$dlname \$dldir/$dlname~
13614 chmod a+x \$dldir/$dlname~
13615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13617 fi'
13618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13619 dlpath=$dir/\$dldll~
13620 $RM \$dlpath'
13621 ;;
13622
13623 osf3* | osf4* | osf5*)
13624 version_type=osf
13625 need_lib_prefix=no
13626 need_version=no
13627 soname_spec='$libname$release$shared_ext$major'
13628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13629 shlibpath_var=LD_LIBRARY_PATH
13630 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13632 ;;
13633
13634 rdos*)
13635 dynamic_linker=no
13636 ;;
13637
13638 solaris*)
13639 version_type=linux # correct to gnu/linux during the next big refactor
13640 need_lib_prefix=no
13641 need_version=no
13642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13643 soname_spec='$libname$release$shared_ext$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 shlibpath_overrides_runpath=yes
13646 hardcode_into_libs=yes
13647 # ldd complains unless libraries are executable
13648 postinstall_cmds='chmod +x $lib'
13649 ;;
13650
13651 sunos4*)
13652 version_type=sunos
13653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=yes
13657 if test yes = "$with_gnu_ld"; then
13658 need_lib_prefix=no
13659 fi
13660 need_version=yes
13661 ;;
13662
13663 sysv4 | sysv4.3*)
13664 version_type=linux # correct to gnu/linux during the next big refactor
13665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13666 soname_spec='$libname$release$shared_ext$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 case $host_vendor in
13669 sni)
13670 shlibpath_overrides_runpath=no
13671 need_lib_prefix=no
13672 runpath_var=LD_RUN_PATH
13673 ;;
13674 siemens)
13675 need_lib_prefix=no
13676 ;;
13677 motorola)
13678 need_lib_prefix=no
13679 need_version=no
13680 shlibpath_overrides_runpath=no
13681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13682 ;;
13683 esac
13684 ;;
13685
13686 sysv4*MP*)
13687 if test -d /usr/nec; then
13688 version_type=linux # correct to gnu/linux during the next big refactor
13689 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13690 soname_spec='$libname$shared_ext.$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 fi
13693 ;;
13694
13695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13696 version_type=sco
13697 need_lib_prefix=no
13698 need_version=no
13699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13700 soname_spec='$libname$release$shared_ext$major'
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13704 if test yes = "$with_gnu_ld"; then
13705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13706 else
13707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13708 case $host_os in
13709 sco3.2v5*)
13710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13711 ;;
13712 esac
13713 fi
13714 sys_lib_dlsearch_path_spec='/usr/lib'
13715 ;;
13716
13717 tpf*)
13718 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13719 version_type=linux # correct to gnu/linux during the next big refactor
13720 need_lib_prefix=no
13721 need_version=no
13722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=no
13725 hardcode_into_libs=yes
13726 ;;
13727
13728 uts4*)
13729 version_type=linux # correct to gnu/linux during the next big refactor
13730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731 soname_spec='$libname$release$shared_ext$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 ;;
13734
13735 *)
13736 dynamic_linker=no
13737 ;;
13738 esac
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13740 printf "%s\n" "$dynamic_linker" >&6; }
13741 test no = "$dynamic_linker" && can_build_shared=no
13742
13743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744 if test yes = "$GCC"; then
13745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13746 fi
13747
13748 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13749 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13750 fi
13751
13752 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13753 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13754 fi
13755
13756 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13757 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13758
13759 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13760 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13761
13762 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13763 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13862 printf %s "checking how to hardcode library paths into programs... " >&6; }
13863 hardcode_action=
13864 if test -n "$hardcode_libdir_flag_spec" ||
13865 test -n "$runpath_var" ||
13866 test yes = "$hardcode_automatic"; then
13867
13868 # We can hardcode non-existent directories.
13869 if test no != "$hardcode_direct" &&
13870 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13871 # have to relink, otherwise we might link with an installed library
13872 # when we should be linking with a yet-to-be-installed one
13873 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13874 test no != "$hardcode_minus_L"; then
13875 # Linking always hardcodes the temporary library directory.
13876 hardcode_action=relink
13877 else
13878 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13879 hardcode_action=immediate
13880 fi
13881 else
13882 # We cannot hardcode anything, or else we can only hardcode existing
13883 # directories.
13884 hardcode_action=unsupported
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13887 printf "%s\n" "$hardcode_action" >&6; }
13888
13889 if test relink = "$hardcode_action" ||
13890 test yes = "$inherit_rpath"; then
13891 # Fast installation is not supported
13892 enable_fast_install=no
13893 elif test yes = "$shlibpath_overrides_runpath" ||
13894 test no = "$enable_shared"; then
13895 # Fast installation is not necessary
13896 enable_fast_install=needless
13897 fi
13898
13899
13900
13901
13902
13903
13904 if test yes != "$enable_dlopen"; then
13905 enable_dlopen=unknown
13906 enable_dlopen_self=unknown
13907 enable_dlopen_self_static=unknown
13908 else
13909 lt_cv_dlopen=no
13910 lt_cv_dlopen_libs=
13911
13912 case $host_os in
13913 beos*)
13914 lt_cv_dlopen=load_add_on
13915 lt_cv_dlopen_libs=
13916 lt_cv_dlopen_self=yes
13917 ;;
13918
13919 mingw* | pw32* | cegcc*)
13920 lt_cv_dlopen=LoadLibrary
13921 lt_cv_dlopen_libs=
13922 ;;
13923
13924 cygwin*)
13925 lt_cv_dlopen=dlopen
13926 lt_cv_dlopen_libs=
13927 ;;
13928
13929 darwin*)
13930 # if libdl is installed we need to link against it
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13932 printf %s "checking for dlopen in -ldl... " >&6; }
13933 if test ${ac_cv_lib_dl_dlopen+y}
13934 then :
13935 printf %s "(cached) " >&6
13936 else $as_nop
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-ldl $LIBS"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13945 char dlopen ();
13946 int
13947 main (void)
13948 {
13949 return dlopen ();
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"
13955 then :
13956 ac_cv_lib_dl_dlopen=yes
13957 else $as_nop
13958 ac_cv_lib_dl_dlopen=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13961 conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13963 fi
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13965 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13966 if test "x$ac_cv_lib_dl_dlopen" = xyes
13967 then :
13968 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13969 else $as_nop
13970
13971 lt_cv_dlopen=dyld
13972 lt_cv_dlopen_libs=
13973 lt_cv_dlopen_self=yes
13974
13975 fi
13976
13977 ;;
13978
13979 tpf*)
13980 # Don't try to run any link tests for TPF. We know it's impossible
13981 # because TPF is a cross-compiler, and we know how we open DSOs.
13982 lt_cv_dlopen=dlopen
13983 lt_cv_dlopen_libs=
13984 lt_cv_dlopen_self=no
13985 ;;
13986
13987 *)
13988 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13989 if test "x$ac_cv_func_shl_load" = xyes
13990 then :
13991 lt_cv_dlopen=shl_load
13992 else $as_nop
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13994 printf %s "checking for shl_load in -ldld... " >&6; }
13995 if test ${ac_cv_lib_dld_shl_load+y}
13996 then :
13997 printf %s "(cached) " >&6
13998 else $as_nop
13999 ac_check_lib_save_LIBS=$LIBS
14000 LIBS="-ldld $LIBS"
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14007 char shl_load ();
14008 int
14009 main (void)
14010 {
14011 return shl_load ();
14012 ;
14013 return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_link "$LINENO"
14017 then :
14018 ac_cv_lib_dld_shl_load=yes
14019 else $as_nop
14020 ac_cv_lib_dld_shl_load=no
14021 fi
14022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14023 conftest$ac_exeext conftest.$ac_ext
14024 LIBS=$ac_check_lib_save_LIBS
14025 fi
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14027 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14028 if test "x$ac_cv_lib_dld_shl_load" = xyes
14029 then :
14030 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14031 else $as_nop
14032 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14033 if test "x$ac_cv_func_dlopen" = xyes
14034 then :
14035 lt_cv_dlopen=dlopen
14036 else $as_nop
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14038 printf %s "checking for dlopen in -ldl... " >&6; }
14039 if test ${ac_cv_lib_dl_dlopen+y}
14040 then :
14041 printf %s "(cached) " >&6
14042 else $as_nop
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-ldl $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14047
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14051 char dlopen ();
14052 int
14053 main (void)
14054 {
14055 return dlopen ();
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"
14061 then :
14062 ac_cv_lib_dl_dlopen=yes
14063 else $as_nop
14064 ac_cv_lib_dl_dlopen=no
14065 fi
14066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14067 conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14069 fi
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14071 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14072 if test "x$ac_cv_lib_dl_dlopen" = xyes
14073 then :
14074 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14075 else $as_nop
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14077 printf %s "checking for dlopen in -lsvld... " >&6; }
14078 if test ${ac_cv_lib_svld_dlopen+y}
14079 then :
14080 printf %s "(cached) " >&6
14081 else $as_nop
14082 ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lsvld $LIBS"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14090 char dlopen ();
14091 int
14092 main (void)
14093 {
14094 return dlopen ();
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"
14100 then :
14101 ac_cv_lib_svld_dlopen=yes
14102 else $as_nop
14103 ac_cv_lib_svld_dlopen=no
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14108 fi
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14110 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14111 if test "x$ac_cv_lib_svld_dlopen" = xyes
14112 then :
14113 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14114 else $as_nop
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14116 printf %s "checking for dld_link in -ldld... " >&6; }
14117 if test ${ac_cv_lib_dld_dld_link+y}
14118 then :
14119 printf %s "(cached) " >&6
14120 else $as_nop
14121 ac_check_lib_save_LIBS=$LIBS
14122 LIBS="-ldld $LIBS"
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125
14126 /* Override any GCC internal prototype to avoid an error.
14127 Use char because int might match the return type of a GCC
14128 builtin and then its argument prototype would still apply. */
14129 char dld_link ();
14130 int
14131 main (void)
14132 {
14133 return dld_link ();
14134 ;
14135 return 0;
14136 }
14137 _ACEOF
14138 if ac_fn_c_try_link "$LINENO"
14139 then :
14140 ac_cv_lib_dld_dld_link=yes
14141 else $as_nop
14142 ac_cv_lib_dld_dld_link=no
14143 fi
14144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14145 conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14147 fi
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14149 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14150 if test "x$ac_cv_lib_dld_dld_link" = xyes
14151 then :
14152 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14153 fi
14154
14155
14156 fi
14157
14158
14159 fi
14160
14161
14162 fi
14163
14164
14165 fi
14166
14167
14168 fi
14169
14170 ;;
14171 esac
14172
14173 if test no = "$lt_cv_dlopen"; then
14174 enable_dlopen=no
14175 else
14176 enable_dlopen=yes
14177 fi
14178
14179 case $lt_cv_dlopen in
14180 dlopen)
14181 save_CPPFLAGS=$CPPFLAGS
14182 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14183
14184 save_LDFLAGS=$LDFLAGS
14185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14186
14187 save_LIBS=$LIBS
14188 LIBS="$lt_cv_dlopen_libs $LIBS"
14189
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14191 printf %s "checking whether a program can dlopen itself... " >&6; }
14192 if test ${lt_cv_dlopen_self+y}
14193 then :
14194 printf %s "(cached) " >&6
14195 else $as_nop
14196 if test yes = "$cross_compiling"; then :
14197 lt_cv_dlopen_self=cross
14198 else
14199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14200 lt_status=$lt_dlunknown
14201 cat > conftest.$ac_ext <<_LT_EOF
14202 #line $LINENO "configure"
14203 #include "confdefs.h"
14204
14205 #if HAVE_DLFCN_H
14206 #include <dlfcn.h>
14207 #endif
14208
14209 #include <stdio.h>
14210
14211 #ifdef RTLD_GLOBAL
14212 # define LT_DLGLOBAL RTLD_GLOBAL
14213 #else
14214 # ifdef DL_GLOBAL
14215 # define LT_DLGLOBAL DL_GLOBAL
14216 # else
14217 # define LT_DLGLOBAL 0
14218 # endif
14219 #endif
14220
14221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14222 find out it does not work in some platform. */
14223 #ifndef LT_DLLAZY_OR_NOW
14224 # ifdef RTLD_LAZY
14225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14226 # else
14227 # ifdef DL_LAZY
14228 # define LT_DLLAZY_OR_NOW DL_LAZY
14229 # else
14230 # ifdef RTLD_NOW
14231 # define LT_DLLAZY_OR_NOW RTLD_NOW
14232 # else
14233 # ifdef DL_NOW
14234 # define LT_DLLAZY_OR_NOW DL_NOW
14235 # else
14236 # define LT_DLLAZY_OR_NOW 0
14237 # endif
14238 # endif
14239 # endif
14240 # endif
14241 #endif
14242
14243 /* When -fvisibility=hidden is used, assume the code has been annotated
14244 correspondingly for the symbols needed. */
14245 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14246 int fnord () __attribute__((visibility("default")));
14247 #endif
14248
14249 int fnord () { return 42; }
14250 int main ()
14251 {
14252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14253 int status = $lt_dlunknown;
14254
14255 if (self)
14256 {
14257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14258 else
14259 {
14260 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14261 else puts (dlerror ());
14262 }
14263 /* dlclose (self); */
14264 }
14265 else
14266 puts (dlerror ());
14267
14268 return status;
14269 }
14270 _LT_EOF
14271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14272 (eval $ac_link) 2>&5
14273 ac_status=$?
14274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14276 (./conftest; exit; ) >&5 2>/dev/null
14277 lt_status=$?
14278 case x$lt_status in
14279 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14282 esac
14283 else :
14284 # compilation failed
14285 lt_cv_dlopen_self=no
14286 fi
14287 fi
14288 rm -fr conftest*
14289
14290
14291 fi
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14293 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14294
14295 if test yes = "$lt_cv_dlopen_self"; then
14296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14298 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14299 if test ${lt_cv_dlopen_self_static+y}
14300 then :
14301 printf %s "(cached) " >&6
14302 else $as_nop
14303 if test yes = "$cross_compiling"; then :
14304 lt_cv_dlopen_self_static=cross
14305 else
14306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14307 lt_status=$lt_dlunknown
14308 cat > conftest.$ac_ext <<_LT_EOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311
14312 #if HAVE_DLFCN_H
14313 #include <dlfcn.h>
14314 #endif
14315
14316 #include <stdio.h>
14317
14318 #ifdef RTLD_GLOBAL
14319 # define LT_DLGLOBAL RTLD_GLOBAL
14320 #else
14321 # ifdef DL_GLOBAL
14322 # define LT_DLGLOBAL DL_GLOBAL
14323 # else
14324 # define LT_DLGLOBAL 0
14325 # endif
14326 #endif
14327
14328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329 find out it does not work in some platform. */
14330 #ifndef LT_DLLAZY_OR_NOW
14331 # ifdef RTLD_LAZY
14332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14333 # else
14334 # ifdef DL_LAZY
14335 # define LT_DLLAZY_OR_NOW DL_LAZY
14336 # else
14337 # ifdef RTLD_NOW
14338 # define LT_DLLAZY_OR_NOW RTLD_NOW
14339 # else
14340 # ifdef DL_NOW
14341 # define LT_DLLAZY_OR_NOW DL_NOW
14342 # else
14343 # define LT_DLLAZY_OR_NOW 0
14344 # endif
14345 # endif
14346 # endif
14347 # endif
14348 #endif
14349
14350 /* When -fvisibility=hidden is used, assume the code has been annotated
14351 correspondingly for the symbols needed. */
14352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14353 int fnord () __attribute__((visibility("default")));
14354 #endif
14355
14356 int fnord () { return 42; }
14357 int main ()
14358 {
14359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360 int status = $lt_dlunknown;
14361
14362 if (self)
14363 {
14364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14365 else
14366 {
14367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14368 else puts (dlerror ());
14369 }
14370 /* dlclose (self); */
14371 }
14372 else
14373 puts (dlerror ());
14374
14375 return status;
14376 }
14377 _LT_EOF
14378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14379 (eval $ac_link) 2>&5
14380 ac_status=$?
14381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14383 (./conftest; exit; ) >&5 2>/dev/null
14384 lt_status=$?
14385 case x$lt_status in
14386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14389 esac
14390 else :
14391 # compilation failed
14392 lt_cv_dlopen_self_static=no
14393 fi
14394 fi
14395 rm -fr conftest*
14396
14397
14398 fi
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14400 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14401 fi
14402
14403 CPPFLAGS=$save_CPPFLAGS
14404 LDFLAGS=$save_LDFLAGS
14405 LIBS=$save_LIBS
14406 ;;
14407 esac
14408
14409 case $lt_cv_dlopen_self in
14410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14411 *) enable_dlopen_self=unknown ;;
14412 esac
14413
14414 case $lt_cv_dlopen_self_static in
14415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14416 *) enable_dlopen_self_static=unknown ;;
14417 esac
14418 fi
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436 striplib=
14437 old_striplib=
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14439 printf %s "checking whether stripping libraries is possible... " >&6; }
14440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444 printf "%s\n" "yes" >&6; }
14445 else
14446 # FIXME - insert some real tests, host_os isn't really good enough
14447 case $host_os in
14448 darwin*)
14449 if test -n "$STRIP"; then
14450 striplib="$STRIP -x"
14451 old_striplib="$STRIP -S"
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14453 printf "%s\n" "yes" >&6; }
14454 else
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 printf "%s\n" "no" >&6; }
14457 fi
14458 ;;
14459 *)
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 printf "%s\n" "no" >&6; }
14462 ;;
14463 esac
14464 fi
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477 # Report what library types will actually be built
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14479 printf %s "checking if libtool supports shared libraries... " >&6; }
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14481 printf "%s\n" "$can_build_shared" >&6; }
14482
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14484 printf %s "checking whether to build shared libraries... " >&6; }
14485 test no = "$can_build_shared" && enable_shared=no
14486
14487 # On AIX, shared libraries and static libraries use the same namespace, and
14488 # are all built from PIC.
14489 case $host_os in
14490 aix3*)
14491 test yes = "$enable_shared" && enable_static=no
14492 if test -n "$RANLIB"; then
14493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14494 postinstall_cmds='$RANLIB $lib'
14495 fi
14496 ;;
14497
14498 aix[4-9]*)
14499 if test ia64 != "$host_cpu"; then
14500 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14501 yes,aix,yes) ;; # shared object as lib.so file only
14502 yes,svr4,*) ;; # shared object as lib.so archive member only
14503 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14504 esac
14505 fi
14506 ;;
14507 esac
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14509 printf "%s\n" "$enable_shared" >&6; }
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14512 printf %s "checking whether to build static libraries... " >&6; }
14513 # Make sure either enable_shared or enable_static is yes.
14514 test yes = "$enable_shared" || enable_static=yes
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14516 printf "%s\n" "$enable_static" >&6; }
14517
14518
14519
14520
14521 fi
14522 ac_ext=c
14523 ac_cpp='$CPP $CPPFLAGS'
14524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14527
14528 CC=$lt_save_CC
14529
14530 if test -n "$CXX" && ( test no != "$CXX" &&
14531 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14532 (test g++ != "$CXX"))); then
14533 ac_ext=cpp
14534 ac_cpp='$CXXCPP $CPPFLAGS'
14535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14539 printf %s "checking how to run the C++ preprocessor... " >&6; }
14540 if test -z "$CXXCPP"; then
14541 if test ${ac_cv_prog_CXXCPP+y}
14542 then :
14543 printf %s "(cached) " >&6
14544 else $as_nop
14545 # Double quotes because $CXX needs to be expanded
14546 for CXXCPP in "$CXX -E" cpp /lib/cpp
14547 do
14548 ac_preproc_ok=false
14549 for ac_cxx_preproc_warn_flag in '' yes
14550 do
14551 # Use a header file that comes with gcc, so configuring glibc
14552 # with a fresh cross-compiler works.
14553 # On the NeXT, cc -E runs the code through the compiler's parser,
14554 # not just through cpp. "Syntax error" is here to catch this case.
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557 #include <limits.h>
14558 Syntax error
14559 _ACEOF
14560 if ac_fn_cxx_try_cpp "$LINENO"
14561 then :
14562
14563 else $as_nop
14564 # Broken: fails on valid input.
14565 continue
14566 fi
14567 rm -f conftest.err conftest.i conftest.$ac_ext
14568
14569 # OK, works on sane cases. Now check whether nonexistent headers
14570 # can be detected and how.
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 #include <ac_nonexistent.h>
14574 _ACEOF
14575 if ac_fn_cxx_try_cpp "$LINENO"
14576 then :
14577 # Broken: success on invalid input.
14578 continue
14579 else $as_nop
14580 # Passes both tests.
14581 ac_preproc_ok=:
14582 break
14583 fi
14584 rm -f conftest.err conftest.i conftest.$ac_ext
14585
14586 done
14587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14588 rm -f conftest.i conftest.err conftest.$ac_ext
14589 if $ac_preproc_ok
14590 then :
14591 break
14592 fi
14593
14594 done
14595 ac_cv_prog_CXXCPP=$CXXCPP
14596
14597 fi
14598 CXXCPP=$ac_cv_prog_CXXCPP
14599 else
14600 ac_cv_prog_CXXCPP=$CXXCPP
14601 fi
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14603 printf "%s\n" "$CXXCPP" >&6; }
14604 ac_preproc_ok=false
14605 for ac_cxx_preproc_warn_flag in '' yes
14606 do
14607 # Use a header file that comes with gcc, so configuring glibc
14608 # with a fresh cross-compiler works.
14609 # On the NeXT, cc -E runs the code through the compiler's parser,
14610 # not just through cpp. "Syntax error" is here to catch this case.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <limits.h>
14614 Syntax error
14615 _ACEOF
14616 if ac_fn_cxx_try_cpp "$LINENO"
14617 then :
14618
14619 else $as_nop
14620 # Broken: fails on valid input.
14621 continue
14622 fi
14623 rm -f conftest.err conftest.i conftest.$ac_ext
14624
14625 # OK, works on sane cases. Now check whether nonexistent headers
14626 # can be detected and how.
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629 #include <ac_nonexistent.h>
14630 _ACEOF
14631 if ac_fn_cxx_try_cpp "$LINENO"
14632 then :
14633 # Broken: success on invalid input.
14634 continue
14635 else $as_nop
14636 # Passes both tests.
14637 ac_preproc_ok=:
14638 break
14639 fi
14640 rm -f conftest.err conftest.i conftest.$ac_ext
14641
14642 done
14643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14644 rm -f conftest.i conftest.err conftest.$ac_ext
14645 if $ac_preproc_ok
14646 then :
14647
14648 else $as_nop
14649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14651 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14652 See \`config.log' for more details" "$LINENO" 5; }
14653 fi
14654
14655 ac_ext=c
14656 ac_cpp='$CPP $CPPFLAGS'
14657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14660
14661 else
14662 _lt_caught_CXX_error=yes
14663 fi
14664
14665 ac_ext=cpp
14666 ac_cpp='$CXXCPP $CPPFLAGS'
14667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14670
14671 archive_cmds_need_lc_CXX=no
14672 allow_undefined_flag_CXX=
14673 always_export_symbols_CXX=no
14674 archive_expsym_cmds_CXX=
14675 compiler_needs_object_CXX=no
14676 export_dynamic_flag_spec_CXX=
14677 hardcode_direct_CXX=no
14678 hardcode_direct_absolute_CXX=no
14679 hardcode_libdir_flag_spec_CXX=
14680 hardcode_libdir_separator_CXX=
14681 hardcode_minus_L_CXX=no
14682 hardcode_shlibpath_var_CXX=unsupported
14683 hardcode_automatic_CXX=no
14684 inherit_rpath_CXX=no
14685 module_cmds_CXX=
14686 module_expsym_cmds_CXX=
14687 link_all_deplibs_CXX=unknown
14688 old_archive_cmds_CXX=$old_archive_cmds
14689 reload_flag_CXX=$reload_flag
14690 reload_cmds_CXX=$reload_cmds
14691 no_undefined_flag_CXX=
14692 whole_archive_flag_spec_CXX=
14693 enable_shared_with_static_runtimes_CXX=no
14694
14695 # Source file extension for C++ test sources.
14696 ac_ext=cpp
14697
14698 # Object file extension for compiled C++ test sources.
14699 objext=o
14700 objext_CXX=$objext
14701
14702 # No sense in running all these tests if we already determined that
14703 # the CXX compiler isn't working. Some variables (like enable_shared)
14704 # are currently assumed to apply to all compilers on this platform,
14705 # and will be corrupted by setting them based on a non-working compiler.
14706 if test yes != "$_lt_caught_CXX_error"; then
14707 # Code to be used in simple compile tests
14708 lt_simple_compile_test_code="int some_variable = 0;"
14709
14710 # Code to be used in simple link tests
14711 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14712
14713 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14714
14715
14716
14717
14718
14719
14720 # If no C compiler was specified, use CC.
14721 LTCC=${LTCC-"$CC"}
14722
14723 # If no C compiler flags were specified, use CFLAGS.
14724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14725
14726 # Allow CC to be a program name with arguments.
14727 compiler=$CC
14728
14729
14730 # save warnings/boilerplate of simple test code
14731 ac_outfile=conftest.$ac_objext
14732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14734 _lt_compiler_boilerplate=`cat conftest.err`
14735 $RM conftest*
14736
14737 ac_outfile=conftest.$ac_objext
14738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740 _lt_linker_boilerplate=`cat conftest.err`
14741 $RM -r conftest*
14742
14743
14744 # Allow CC to be a program name with arguments.
14745 lt_save_CC=$CC
14746 lt_save_CFLAGS=$CFLAGS
14747 lt_save_LD=$LD
14748 lt_save_GCC=$GCC
14749 GCC=$GXX
14750 lt_save_with_gnu_ld=$with_gnu_ld
14751 lt_save_path_LD=$lt_cv_path_LD
14752 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14753 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14754 else
14755 $as_unset lt_cv_prog_gnu_ld
14756 fi
14757 if test -n "${lt_cv_path_LDCXX+set}"; then
14758 lt_cv_path_LD=$lt_cv_path_LDCXX
14759 else
14760 $as_unset lt_cv_path_LD
14761 fi
14762 test -z "${LDCXX+set}" || LD=$LDCXX
14763 CC=${CXX-"c++"}
14764 CFLAGS=$CXXFLAGS
14765 compiler=$CC
14766 compiler_CXX=$CC
14767 func_cc_basename $compiler
14768 cc_basename=$func_cc_basename_result
14769
14770
14771 if test -n "$compiler"; then
14772 # We don't want -fno-exception when compiling C++ code, so set the
14773 # no_builtin_flag separately
14774 if test yes = "$GXX"; then
14775 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14776 else
14777 lt_prog_compiler_no_builtin_flag_CXX=
14778 fi
14779
14780 if test yes = "$GXX"; then
14781 # Set up default GNU C++ configuration
14782
14783
14784
14785 # Check whether --with-gnu-ld was given.
14786 if test ${with_gnu_ld+y}
14787 then :
14788 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14789 else $as_nop
14790 with_gnu_ld=no
14791 fi
14792
14793 ac_prog=ld
14794 if test yes = "$GCC"; then
14795 # Check if gcc -print-prog-name=ld gives a path.
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14797 printf %s "checking for ld used by $CC... " >&6; }
14798 case $host in
14799 *-*-mingw*)
14800 # gcc leaves a trailing carriage return, which upsets mingw
14801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14802 *)
14803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14804 esac
14805 case $ac_prog in
14806 # Accept absolute paths.
14807 [\\/]* | ?:[\\/]*)
14808 re_direlt='/[^/][^/]*/\.\./'
14809 # Canonicalize the pathname of ld
14810 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14811 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14812 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14813 done
14814 test -z "$LD" && LD=$ac_prog
14815 ;;
14816 "")
14817 # If it fails, then pretend we aren't using GCC.
14818 ac_prog=ld
14819 ;;
14820 *)
14821 # If it is relative, then search for the first ld in PATH.
14822 with_gnu_ld=unknown
14823 ;;
14824 esac
14825 elif test yes = "$with_gnu_ld"; then
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14827 printf %s "checking for GNU ld... " >&6; }
14828 else
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14830 printf %s "checking for non-GNU ld... " >&6; }
14831 fi
14832 if test ${lt_cv_path_LD+y}
14833 then :
14834 printf %s "(cached) " >&6
14835 else $as_nop
14836 if test -z "$LD"; then
14837 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14838 for ac_dir in $PATH; do
14839 IFS=$lt_save_ifs
14840 test -z "$ac_dir" && ac_dir=.
14841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14842 lt_cv_path_LD=$ac_dir/$ac_prog
14843 # Check to see if the program is GNU ld. I'd rather use --version,
14844 # but apparently some variants of GNU ld only accept -v.
14845 # Break only if it was the GNU/non-GNU ld that we prefer.
14846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14847 *GNU* | *'with BFD'*)
14848 test no != "$with_gnu_ld" && break
14849 ;;
14850 *)
14851 test yes != "$with_gnu_ld" && break
14852 ;;
14853 esac
14854 fi
14855 done
14856 IFS=$lt_save_ifs
14857 else
14858 lt_cv_path_LD=$LD # Let the user override the test with a path.
14859 fi
14860 fi
14861
14862 LD=$lt_cv_path_LD
14863 if test -n "$LD"; then
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14865 printf "%s\n" "$LD" >&6; }
14866 else
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 printf "%s\n" "no" >&6; }
14869 fi
14870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14872 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14873 if test ${lt_cv_prog_gnu_ld+y}
14874 then :
14875 printf %s "(cached) " >&6
14876 else $as_nop
14877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14878 case `$LD -v 2>&1 </dev/null` in
14879 *GNU* | *'with BFD'*)
14880 lt_cv_prog_gnu_ld=yes
14881 ;;
14882 *)
14883 lt_cv_prog_gnu_ld=no
14884 ;;
14885 esac
14886 fi
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14888 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14889 with_gnu_ld=$lt_cv_prog_gnu_ld
14890
14891
14892
14893
14894
14895
14896
14897 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14898 # archiving commands below assume that GNU ld is being used.
14899 if test yes = "$with_gnu_ld"; then
14900 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14901 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14902
14903 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14904 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14905
14906 # If archive_cmds runs LD, not CC, wlarc should be empty
14907 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14908 # investigate it a little bit more. (MM)
14909 wlarc='$wl'
14910
14911 # ancient GNU ld didn't support --whole-archive et. al.
14912 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14913 $GREP 'no-whole-archive' > /dev/null; then
14914 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14915 else
14916 whole_archive_flag_spec_CXX=
14917 fi
14918 else
14919 with_gnu_ld=no
14920 wlarc=
14921
14922 # A generic and very simple default shared library creation
14923 # command for GNU C++ for the case where it uses the native
14924 # linker, instead of GNU ld. If possible, this setting should
14925 # overridden to take advantage of the native linker features on
14926 # the platform it is being used on.
14927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14928 fi
14929
14930 # Commands to make compiler produce verbose output that lists
14931 # what "hidden" libraries, object files and flags are used when
14932 # linking a shared library.
14933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14934
14935 else
14936 GXX=no
14937 with_gnu_ld=no
14938 wlarc=
14939 fi
14940
14941 # PORTME: fill in a description of your system's C++ link characteristics
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14943 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14944 ld_shlibs_CXX=yes
14945 case $host_os in
14946 aix3*)
14947 # FIXME: insert proper C++ library support
14948 ld_shlibs_CXX=no
14949 ;;
14950 aix[4-9]*)
14951 if test ia64 = "$host_cpu"; then
14952 # On IA64, the linker does run time linking by default, so we don't
14953 # have to do anything special.
14954 aix_use_runtimelinking=no
14955 exp_sym_flag='-Bexport'
14956 no_entry_flag=
14957 else
14958 aix_use_runtimelinking=no
14959
14960 # Test if we are trying to use run time linking or normal
14961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14962 # have runtime linking enabled, and use it for executables.
14963 # For shared libraries, we enable/disable runtime linking
14964 # depending on the kind of the shared library created -
14965 # when "with_aix_soname,aix_use_runtimelinking" is:
14966 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14967 # "aix,yes" lib.so shared, rtl:yes, for executables
14968 # lib.a static archive
14969 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14970 # lib.a(lib.so.V) shared, rtl:no, for executables
14971 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14972 # lib.a(lib.so.V) shared, rtl:no
14973 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14974 # lib.a static archive
14975 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14976 for ld_flag in $LDFLAGS; do
14977 case $ld_flag in
14978 *-brtl*)
14979 aix_use_runtimelinking=yes
14980 break
14981 ;;
14982 esac
14983 done
14984 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14985 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14986 # so we don't have lib.a shared libs to link our executables.
14987 # We have to force runtime linking in this case.
14988 aix_use_runtimelinking=yes
14989 LDFLAGS="$LDFLAGS -Wl,-brtl"
14990 fi
14991 ;;
14992 esac
14993
14994 exp_sym_flag='-bexport'
14995 no_entry_flag='-bnoentry'
14996 fi
14997
14998 # When large executables or shared objects are built, AIX ld can
14999 # have problems creating the table of contents. If linking a library
15000 # or program results in "error TOC overflow" add -mminimal-toc to
15001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15003
15004 archive_cmds_CXX=''
15005 hardcode_direct_CXX=yes
15006 hardcode_direct_absolute_CXX=yes
15007 hardcode_libdir_separator_CXX=':'
15008 link_all_deplibs_CXX=yes
15009 file_list_spec_CXX='$wl-f,'
15010 case $with_aix_soname,$aix_use_runtimelinking in
15011 aix,*) ;; # no import file
15012 svr4,* | *,yes) # use import file
15013 # The Import File defines what to hardcode.
15014 hardcode_direct_CXX=no
15015 hardcode_direct_absolute_CXX=no
15016 ;;
15017 esac
15018
15019 if test yes = "$GXX"; then
15020 case $host_os in aix4.[012]|aix4.[012].*)
15021 # We only want to do this on AIX 4.2 and lower, the check
15022 # below for broken collect2 doesn't work under 4.3+
15023 collect2name=`$CC -print-prog-name=collect2`
15024 if test -f "$collect2name" &&
15025 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15026 then
15027 # We have reworked collect2
15028 :
15029 else
15030 # We have old collect2
15031 hardcode_direct_CXX=unsupported
15032 # It fails to find uninstalled libraries when the uninstalled
15033 # path is not listed in the libpath. Setting hardcode_minus_L
15034 # to unsupported forces relinking
15035 hardcode_minus_L_CXX=yes
15036 hardcode_libdir_flag_spec_CXX='-L$libdir'
15037 hardcode_libdir_separator_CXX=
15038 fi
15039 esac
15040 shared_flag='-shared'
15041 if test yes = "$aix_use_runtimelinking"; then
15042 shared_flag=$shared_flag' $wl-G'
15043 fi
15044 # Need to ensure runtime linking is disabled for the traditional
15045 # shared library, or the linker may eventually find shared libraries
15046 # /with/ Import File - we do not want to mix them.
15047 shared_flag_aix='-shared'
15048 shared_flag_svr4='-shared $wl-G'
15049 else
15050 # not using gcc
15051 if test ia64 = "$host_cpu"; then
15052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15053 # chokes on -Wl,-G. The following line is correct:
15054 shared_flag='-G'
15055 else
15056 if test yes = "$aix_use_runtimelinking"; then
15057 shared_flag='$wl-G'
15058 else
15059 shared_flag='$wl-bM:SRE'
15060 fi
15061 shared_flag_aix='$wl-bM:SRE'
15062 shared_flag_svr4='$wl-G'
15063 fi
15064 fi
15065
15066 export_dynamic_flag_spec_CXX='$wl-bexpall'
15067 # It seems that -bexpall does not export symbols beginning with
15068 # underscore (_), so it is better to generate a list of symbols to
15069 # export.
15070 always_export_symbols_CXX=yes
15071 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15072 # Warning - without using the other runtime loading flags (-brtl),
15073 # -berok will link without error, but may produce a broken library.
15074 # The "-G" linker flag allows undefined symbols.
15075 no_undefined_flag_CXX='-bernotok'
15076 # Determine the default libpath from the value encoded in an empty
15077 # executable.
15078 if test set = "${lt_cv_aix_libpath+set}"; then
15079 aix_libpath=$lt_cv_aix_libpath
15080 else
15081 if test ${lt_cv_aix_libpath__CXX+y}
15082 then :
15083 printf %s "(cached) " >&6
15084 else $as_nop
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087
15088 int
15089 main (void)
15090 {
15091
15092 ;
15093 return 0;
15094 }
15095 _ACEOF
15096 if ac_fn_cxx_try_link "$LINENO"
15097 then :
15098
15099 lt_aix_libpath_sed='
15100 /Import File Strings/,/^$/ {
15101 /^0/ {
15102 s/^0 *\([^ ]*\) *$/\1/
15103 p
15104 }
15105 }'
15106 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15107 # Check for a 64-bit object if we didn't find anything.
15108 if test -z "$lt_cv_aix_libpath__CXX"; then
15109 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15110 fi
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15113 conftest$ac_exeext conftest.$ac_ext
15114 if test -z "$lt_cv_aix_libpath__CXX"; then
15115 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15116 fi
15117
15118 fi
15119
15120 aix_libpath=$lt_cv_aix_libpath__CXX
15121 fi
15122
15123 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15124
15125 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15126 else
15127 if test ia64 = "$host_cpu"; then
15128 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15129 allow_undefined_flag_CXX="-z nodefs"
15130 archive_expsym_cmds_CXX="\$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"
15131 else
15132 # Determine the default libpath from the value encoded in an
15133 # empty executable.
15134 if test set = "${lt_cv_aix_libpath+set}"; then
15135 aix_libpath=$lt_cv_aix_libpath
15136 else
15137 if test ${lt_cv_aix_libpath__CXX+y}
15138 then :
15139 printf %s "(cached) " >&6
15140 else $as_nop
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15143
15144 int
15145 main (void)
15146 {
15147
15148 ;
15149 return 0;
15150 }
15151 _ACEOF
15152 if ac_fn_cxx_try_link "$LINENO"
15153 then :
15154
15155 lt_aix_libpath_sed='
15156 /Import File Strings/,/^$/ {
15157 /^0/ {
15158 s/^0 *\([^ ]*\) *$/\1/
15159 p
15160 }
15161 }'
15162 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15163 # Check for a 64-bit object if we didn't find anything.
15164 if test -z "$lt_cv_aix_libpath__CXX"; then
15165 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15166 fi
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15169 conftest$ac_exeext conftest.$ac_ext
15170 if test -z "$lt_cv_aix_libpath__CXX"; then
15171 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15172 fi
15173
15174 fi
15175
15176 aix_libpath=$lt_cv_aix_libpath__CXX
15177 fi
15178
15179 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15180 # Warning - without using the other run time loading flags,
15181 # -berok will link without error, but may produce a broken library.
15182 no_undefined_flag_CXX=' $wl-bernotok'
15183 allow_undefined_flag_CXX=' $wl-berok'
15184 if test yes = "$with_gnu_ld"; then
15185 # We only use this code for GNU lds that support --whole-archive.
15186 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15187 else
15188 # Exported symbols can be pulled into shared objects from archives
15189 whole_archive_flag_spec_CXX='$convenience'
15190 fi
15191 archive_cmds_need_lc_CXX=yes
15192 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15193 # -brtl affects multiple linker settings, -berok does not and is overridden later
15194 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15195 if test svr4 != "$with_aix_soname"; then
15196 # This is similar to how AIX traditionally builds its shared
15197 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15198 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15199 fi
15200 if test aix != "$with_aix_soname"; then
15201 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15202 else
15203 # used by -dlpreopen to get the symbols
15204 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15205 fi
15206 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15207 fi
15208 fi
15209 ;;
15210
15211 beos*)
15212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15213 allow_undefined_flag_CXX=unsupported
15214 # Joseph Beckenbach <[email protected]> says some releases of gcc
15215 # support --undefined. This deserves some investigation. FIXME
15216 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15217 else
15218 ld_shlibs_CXX=no
15219 fi
15220 ;;
15221
15222 chorus*)
15223 case $cc_basename in
15224 *)
15225 # FIXME: insert proper C++ library support
15226 ld_shlibs_CXX=no
15227 ;;
15228 esac
15229 ;;
15230
15231 cygwin* | mingw* | pw32* | cegcc*)
15232 case $GXX,$cc_basename in
15233 ,cl* | no,cl*)
15234 # Native MSVC
15235 # hardcode_libdir_flag_spec is actually meaningless, as there is
15236 # no search path for DLLs.
15237 hardcode_libdir_flag_spec_CXX=' '
15238 allow_undefined_flag_CXX=unsupported
15239 always_export_symbols_CXX=yes
15240 file_list_spec_CXX='@'
15241 # Tell ltmain to make .lib files, not .a files.
15242 libext=lib
15243 # Tell ltmain to make .dll files, not .so files.
15244 shrext_cmds=.dll
15245 # FIXME: Setting linknames here is a bad hack.
15246 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15247 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15248 cp "$export_symbols" "$output_objdir/$soname.def";
15249 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15250 else
15251 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15252 fi~
15253 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15254 linknames='
15255 # The linker will not automatically build a static lib if we build a DLL.
15256 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15257 enable_shared_with_static_runtimes_CXX=yes
15258 # Don't use ranlib
15259 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15260 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15261 lt_tool_outputfile="@TOOL_OUTPUT@"~
15262 case $lt_outputfile in
15263 *.exe|*.EXE) ;;
15264 *)
15265 lt_outputfile=$lt_outputfile.exe
15266 lt_tool_outputfile=$lt_tool_outputfile.exe
15267 ;;
15268 esac~
15269 func_to_tool_file "$lt_outputfile"~
15270 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15271 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15272 $RM "$lt_outputfile.manifest";
15273 fi'
15274 ;;
15275 *)
15276 # g++
15277 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15278 # as there is no search path for DLLs.
15279 hardcode_libdir_flag_spec_CXX='-L$libdir'
15280 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15281 allow_undefined_flag_CXX=unsupported
15282 always_export_symbols_CXX=no
15283 enable_shared_with_static_runtimes_CXX=yes
15284
15285 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15287 # If the export-symbols file already is a .def file, use it as
15288 # is; otherwise, prepend EXPORTS...
15289 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15290 cp $export_symbols $output_objdir/$soname.def;
15291 else
15292 echo EXPORTS > $output_objdir/$soname.def;
15293 cat $export_symbols >> $output_objdir/$soname.def;
15294 fi~
15295 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15296 else
15297 ld_shlibs_CXX=no
15298 fi
15299 ;;
15300 esac
15301 ;;
15302 darwin* | rhapsody*)
15303
15304
15305 archive_cmds_need_lc_CXX=no
15306 hardcode_direct_CXX=no
15307 hardcode_automatic_CXX=yes
15308 hardcode_shlibpath_var_CXX=unsupported
15309 if test yes = "$lt_cv_ld_force_load"; then
15310 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15311
15312 else
15313 whole_archive_flag_spec_CXX=''
15314 fi
15315 link_all_deplibs_CXX=yes
15316 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15317 case $cc_basename in
15318 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15319 *) _lt_dar_can_shared=$GCC ;;
15320 esac
15321 if test yes = "$_lt_dar_can_shared"; then
15322 output_verbose_link_cmd=func_echo_all
15323 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15324 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15325 archive_expsym_cmds_CXX="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"
15326 module_expsym_cmds_CXX="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"
15327 if test yes != "$lt_cv_apple_cc_single_mod"; then
15328 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15329 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15330 fi
15331
15332 else
15333 ld_shlibs_CXX=no
15334 fi
15335
15336 ;;
15337
15338 os2*)
15339 hardcode_libdir_flag_spec_CXX='-L$libdir'
15340 hardcode_minus_L_CXX=yes
15341 allow_undefined_flag_CXX=unsupported
15342 shrext_cmds=.dll
15343 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15344 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15345 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15346 $ECHO EXPORTS >> $output_objdir/$libname.def~
15347 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15349 emximp -o $lib $output_objdir/$libname.def'
15350 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15351 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15352 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15353 $ECHO EXPORTS >> $output_objdir/$libname.def~
15354 prefix_cmds="$SED"~
15355 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15356 prefix_cmds="$prefix_cmds -e 1d";
15357 fi~
15358 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15359 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15360 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15361 emximp -o $lib $output_objdir/$libname.def'
15362 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15363 enable_shared_with_static_runtimes_CXX=yes
15364 ;;
15365
15366 dgux*)
15367 case $cc_basename in
15368 ec++*)
15369 # FIXME: insert proper C++ library support
15370 ld_shlibs_CXX=no
15371 ;;
15372 ghcx*)
15373 # Green Hills C++ Compiler
15374 # FIXME: insert proper C++ library support
15375 ld_shlibs_CXX=no
15376 ;;
15377 *)
15378 # FIXME: insert proper C++ library support
15379 ld_shlibs_CXX=no
15380 ;;
15381 esac
15382 ;;
15383
15384 freebsd2.*)
15385 # C++ shared libraries reported to be fairly broken before
15386 # switch to ELF
15387 ld_shlibs_CXX=no
15388 ;;
15389
15390 freebsd-elf*)
15391 archive_cmds_need_lc_CXX=no
15392 ;;
15393
15394 freebsd* | dragonfly*)
15395 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15396 # conventions
15397 ld_shlibs_CXX=yes
15398 ;;
15399
15400 haiku*)
15401 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15402 link_all_deplibs_CXX=yes
15403 ;;
15404
15405 hpux9*)
15406 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15407 hardcode_libdir_separator_CXX=:
15408 export_dynamic_flag_spec_CXX='$wl-E'
15409 hardcode_direct_CXX=yes
15410 hardcode_minus_L_CXX=yes # Not in the search PATH,
15411 # but as the default
15412 # location of the library.
15413
15414 case $cc_basename in
15415 CC*)
15416 # FIXME: insert proper C++ library support
15417 ld_shlibs_CXX=no
15418 ;;
15419 aCC*)
15420 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15421 # Commands to make compiler produce verbose output that lists
15422 # what "hidden" libraries, object files and flags are used when
15423 # linking a shared library.
15424 #
15425 # There doesn't appear to be a way to prevent this compiler from
15426 # explicitly linking system object files so we need to strip them
15427 # from the output so that they don't get included in the library
15428 # dependencies.
15429 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15430 ;;
15431 *)
15432 if test yes = "$GXX"; then
15433 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15434 else
15435 # FIXME: insert proper C++ library support
15436 ld_shlibs_CXX=no
15437 fi
15438 ;;
15439 esac
15440 ;;
15441
15442 hpux10*|hpux11*)
15443 if test no = "$with_gnu_ld"; then
15444 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15445 hardcode_libdir_separator_CXX=:
15446
15447 case $host_cpu in
15448 hppa*64*|ia64*)
15449 ;;
15450 *)
15451 export_dynamic_flag_spec_CXX='$wl-E'
15452 ;;
15453 esac
15454 fi
15455 case $host_cpu in
15456 hppa*64*|ia64*)
15457 hardcode_direct_CXX=no
15458 hardcode_shlibpath_var_CXX=no
15459 ;;
15460 *)
15461 hardcode_direct_CXX=yes
15462 hardcode_direct_absolute_CXX=yes
15463 hardcode_minus_L_CXX=yes # Not in the search PATH,
15464 # but as the default
15465 # location of the library.
15466 ;;
15467 esac
15468
15469 case $cc_basename in
15470 CC*)
15471 # FIXME: insert proper C++ library support
15472 ld_shlibs_CXX=no
15473 ;;
15474 aCC*)
15475 case $host_cpu in
15476 hppa*64*)
15477 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15478 ;;
15479 ia64*)
15480 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15481 ;;
15482 *)
15483 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15484 ;;
15485 esac
15486 # Commands to make compiler produce verbose output that lists
15487 # what "hidden" libraries, object files and flags are used when
15488 # linking a shared library.
15489 #
15490 # There doesn't appear to be a way to prevent this compiler from
15491 # explicitly linking system object files so we need to strip them
15492 # from the output so that they don't get included in the library
15493 # dependencies.
15494 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15495 ;;
15496 *)
15497 if test yes = "$GXX"; then
15498 if test no = "$with_gnu_ld"; then
15499 case $host_cpu in
15500 hppa*64*)
15501 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15502 ;;
15503 ia64*)
15504 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15505 ;;
15506 *)
15507 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15508 ;;
15509 esac
15510 fi
15511 else
15512 # FIXME: insert proper C++ library support
15513 ld_shlibs_CXX=no
15514 fi
15515 ;;
15516 esac
15517 ;;
15518
15519 interix[3-9]*)
15520 hardcode_direct_CXX=no
15521 hardcode_shlibpath_var_CXX=no
15522 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15523 export_dynamic_flag_spec_CXX='$wl-E'
15524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15525 # Instead, shared libraries are loaded at an image base (0x10000000 by
15526 # default) and relocated if they conflict, which is a slow very memory
15527 # consuming and fragmenting process. To avoid this, we pick a random,
15528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15530 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15531 archive_expsym_cmds_CXX='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'
15532 ;;
15533 irix5* | irix6*)
15534 case $cc_basename in
15535 CC*)
15536 # SGI C++
15537 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15538
15539 # Archives containing C++ object files must be created using
15540 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15541 # necessary to make sure instantiated templates are included
15542 # in the archive.
15543 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15544 ;;
15545 *)
15546 if test yes = "$GXX"; then
15547 if test no = "$with_gnu_ld"; then
15548 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15549 else
15550 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15551 fi
15552 fi
15553 link_all_deplibs_CXX=yes
15554 ;;
15555 esac
15556 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15557 hardcode_libdir_separator_CXX=:
15558 inherit_rpath_CXX=yes
15559 ;;
15560
15561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15562 case $cc_basename in
15563 KCC*)
15564 # Kuck and Associates, Inc. (KAI) C++ Compiler
15565
15566 # KCC will only create a shared library if the output file
15567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15568 # to its proper name (with version) after linking.
15569 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15570 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15571 # Commands to make compiler produce verbose output that lists
15572 # what "hidden" libraries, object files and flags are used when
15573 # linking a shared library.
15574 #
15575 # There doesn't appear to be a way to prevent this compiler from
15576 # explicitly linking system object files so we need to strip them
15577 # from the output so that they don't get included in the library
15578 # dependencies.
15579 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15580
15581 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15582 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15583
15584 # Archives containing C++ object files must be created using
15585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15587 ;;
15588 icpc* | ecpc* )
15589 # Intel C++
15590 with_gnu_ld=yes
15591 # version 8.0 and above of icpc choke on multiply defined symbols
15592 # if we add $predep_objects and $postdep_objects, however 7.1 and
15593 # earlier do not add the objects themselves.
15594 case `$CC -V 2>&1` in
15595 *"Version 7."*)
15596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15597 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15598 ;;
15599 *) # Version 8.0 or newer
15600 tmp_idyn=
15601 case $host_cpu in
15602 ia64*) tmp_idyn=' -i_dynamic';;
15603 esac
15604 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15605 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15606 ;;
15607 esac
15608 archive_cmds_need_lc_CXX=no
15609 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15610 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15611 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15612 ;;
15613 pgCC* | pgcpp*)
15614 # Portland Group C++ compiler
15615 case `$CC -V` in
15616 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15617 prelink_cmds_CXX='tpldir=Template.dir~
15618 rm -rf $tpldir~
15619 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15620 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15621 old_archive_cmds_CXX='tpldir=Template.dir~
15622 rm -rf $tpldir~
15623 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15624 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15625 $RANLIB $oldlib'
15626 archive_cmds_CXX='tpldir=Template.dir~
15627 rm -rf $tpldir~
15628 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15629 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15630 archive_expsym_cmds_CXX='tpldir=Template.dir~
15631 rm -rf $tpldir~
15632 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15633 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15634 ;;
15635 *) # Version 6 and above use weak symbols
15636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15637 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15638 ;;
15639 esac
15640
15641 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15642 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15643 whole_archive_flag_spec_CXX='$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'
15644 ;;
15645 cxx*)
15646 # Compaq C++
15647 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15649
15650 runpath_var=LD_RUN_PATH
15651 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15652 hardcode_libdir_separator_CXX=:
15653
15654 # Commands to make compiler produce verbose output that lists
15655 # what "hidden" libraries, object files and flags are used when
15656 # linking a shared library.
15657 #
15658 # There doesn't appear to be a way to prevent this compiler from
15659 # explicitly linking system object files so we need to strip them
15660 # from the output so that they don't get included in the library
15661 # dependencies.
15662 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15663 ;;
15664 xl* | mpixl* | bgxl*)
15665 # IBM XL 8.0 on PPC, with GNU ld
15666 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15667 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15668 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15669 if test yes = "$supports_anon_versioning"; then
15670 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15672 echo "local: *; };" >> $output_objdir/$libname.ver~
15673 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15674 fi
15675 ;;
15676 *)
15677 case `$CC -V 2>&1 | sed 5q` in
15678 *Sun\ C*)
15679 # Sun C++ 5.9
15680 no_undefined_flag_CXX=' -zdefs'
15681 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15682 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15683 hardcode_libdir_flag_spec_CXX='-R$libdir'
15684 whole_archive_flag_spec_CXX='$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'
15685 compiler_needs_object_CXX=yes
15686
15687 # Not sure whether something based on
15688 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15689 # would be better.
15690 output_verbose_link_cmd='func_echo_all'
15691
15692 # Archives containing C++ object files must be created using
15693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15694 # necessary to make sure instantiated templates are included
15695 # in the archive.
15696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15697 ;;
15698 esac
15699 ;;
15700 esac
15701 ;;
15702
15703 lynxos*)
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 ;;
15707
15708 m88k*)
15709 # FIXME: insert proper C++ library support
15710 ld_shlibs_CXX=no
15711 ;;
15712
15713 mvs*)
15714 case $cc_basename in
15715 cxx*)
15716 # FIXME: insert proper C++ library support
15717 ld_shlibs_CXX=no
15718 ;;
15719 *)
15720 # FIXME: insert proper C++ library support
15721 ld_shlibs_CXX=no
15722 ;;
15723 esac
15724 ;;
15725
15726 netbsd*)
15727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15728 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15729 wlarc=
15730 hardcode_libdir_flag_spec_CXX='-R$libdir'
15731 hardcode_direct_CXX=yes
15732 hardcode_shlibpath_var_CXX=no
15733 fi
15734 # Workaround some broken pre-1.5 toolchains
15735 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15736 ;;
15737
15738 *nto* | *qnx*)
15739 ld_shlibs_CXX=yes
15740 ;;
15741
15742 openbsd* | bitrig*)
15743 if test -f /usr/libexec/ld.so; then
15744 hardcode_direct_CXX=yes
15745 hardcode_shlibpath_var_CXX=no
15746 hardcode_direct_absolute_CXX=yes
15747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15748 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15751 export_dynamic_flag_spec_CXX='$wl-E'
15752 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15753 fi
15754 output_verbose_link_cmd=func_echo_all
15755 else
15756 ld_shlibs_CXX=no
15757 fi
15758 ;;
15759
15760 osf3* | osf4* | osf5*)
15761 case $cc_basename in
15762 KCC*)
15763 # Kuck and Associates, Inc. (KAI) C++ Compiler
15764
15765 # KCC will only create a shared library if the output file
15766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15767 # to its proper name (with version) after linking.
15768 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15769
15770 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15771 hardcode_libdir_separator_CXX=:
15772
15773 # Archives containing C++ object files must be created using
15774 # the KAI C++ compiler.
15775 case $host in
15776 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15777 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15778 esac
15779 ;;
15780 RCC*)
15781 # Rational C++ 2.4.1
15782 # FIXME: insert proper C++ library support
15783 ld_shlibs_CXX=no
15784 ;;
15785 cxx*)
15786 case $host in
15787 osf3*)
15788 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15789 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15790 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15791 ;;
15792 *)
15793 allow_undefined_flag_CXX=' -expect_unresolved \*'
15794 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15795 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15796 echo "-hidden">> $lib.exp~
15797 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15798 $RM $lib.exp'
15799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15800 ;;
15801 esac
15802
15803 hardcode_libdir_separator_CXX=:
15804
15805 # Commands to make compiler produce verbose output that lists
15806 # what "hidden" libraries, object files and flags are used when
15807 # linking a shared library.
15808 #
15809 # There doesn't appear to be a way to prevent this compiler from
15810 # explicitly linking system object files so we need to strip them
15811 # from the output so that they don't get included in the library
15812 # dependencies.
15813 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15814 ;;
15815 *)
15816 if test yes,no = "$GXX,$with_gnu_ld"; then
15817 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15818 case $host in
15819 osf3*)
15820 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15821 ;;
15822 *)
15823 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15824 ;;
15825 esac
15826
15827 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15828 hardcode_libdir_separator_CXX=:
15829
15830 # Commands to make compiler produce verbose output that lists
15831 # what "hidden" libraries, object files and flags are used when
15832 # linking a shared library.
15833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15834
15835 else
15836 # FIXME: insert proper C++ library support
15837 ld_shlibs_CXX=no
15838 fi
15839 ;;
15840 esac
15841 ;;
15842
15843 psos*)
15844 # FIXME: insert proper C++ library support
15845 ld_shlibs_CXX=no
15846 ;;
15847
15848 sunos4*)
15849 case $cc_basename in
15850 CC*)
15851 # Sun C++ 4.x
15852 # FIXME: insert proper C++ library support
15853 ld_shlibs_CXX=no
15854 ;;
15855 lcc*)
15856 # Lucid
15857 # FIXME: insert proper C++ library support
15858 ld_shlibs_CXX=no
15859 ;;
15860 *)
15861 # FIXME: insert proper C++ library support
15862 ld_shlibs_CXX=no
15863 ;;
15864 esac
15865 ;;
15866
15867 solaris*)
15868 case $cc_basename in
15869 CC* | sunCC*)
15870 # Sun C++ 4.2, 5.x and Centerline C++
15871 archive_cmds_need_lc_CXX=yes
15872 no_undefined_flag_CXX=' -zdefs'
15873 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15875 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15876
15877 hardcode_libdir_flag_spec_CXX='-R$libdir'
15878 hardcode_shlibpath_var_CXX=no
15879 case $host_os in
15880 solaris2.[0-5] | solaris2.[0-5].*) ;;
15881 *)
15882 # The compiler driver will combine and reorder linker options,
15883 # but understands '-z linker_flag'.
15884 # Supported since Solaris 2.6 (maybe 2.5.1?)
15885 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15886 ;;
15887 esac
15888 link_all_deplibs_CXX=yes
15889
15890 output_verbose_link_cmd='func_echo_all'
15891
15892 # Archives containing C++ object files must be created using
15893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15894 # necessary to make sure instantiated templates are included
15895 # in the archive.
15896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15897 ;;
15898 gcx*)
15899 # Green Hills C++ Compiler
15900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15901
15902 # The C++ compiler must be used to create the archive.
15903 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15904 ;;
15905 *)
15906 # GNU C++ compiler with Solaris linker
15907 if test yes,no = "$GXX,$with_gnu_ld"; then
15908 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15909 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15910 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15911 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15912 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15913
15914 # Commands to make compiler produce verbose output that lists
15915 # what "hidden" libraries, object files and flags are used when
15916 # linking a shared library.
15917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15918 else
15919 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15920 # platform.
15921 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15922 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15923 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15924
15925 # Commands to make compiler produce verbose output that lists
15926 # what "hidden" libraries, object files and flags are used when
15927 # linking a shared library.
15928 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15929 fi
15930
15931 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15932 case $host_os in
15933 solaris2.[0-5] | solaris2.[0-5].*) ;;
15934 *)
15935 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15936 ;;
15937 esac
15938 fi
15939 ;;
15940 esac
15941 ;;
15942
15943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15944 no_undefined_flag_CXX='$wl-z,text'
15945 archive_cmds_need_lc_CXX=no
15946 hardcode_shlibpath_var_CXX=no
15947 runpath_var='LD_RUN_PATH'
15948
15949 case $cc_basename in
15950 CC*)
15951 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953 ;;
15954 *)
15955 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957 ;;
15958 esac
15959 ;;
15960
15961 sysv5* | sco3.2v5* | sco5v6*)
15962 # Note: We CANNOT use -z defs as we might desire, because we do not
15963 # link with -lc, and that would cause any symbols used from libc to
15964 # always be unresolved, which means just about no library would
15965 # ever link correctly. If we're not using GNU ld we use -z text
15966 # though, which does catch some bad symbols but isn't as heavy-handed
15967 # as -z defs.
15968 no_undefined_flag_CXX='$wl-z,text'
15969 allow_undefined_flag_CXX='$wl-z,nodefs'
15970 archive_cmds_need_lc_CXX=no
15971 hardcode_shlibpath_var_CXX=no
15972 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15973 hardcode_libdir_separator_CXX=':'
15974 link_all_deplibs_CXX=yes
15975 export_dynamic_flag_spec_CXX='$wl-Bexport'
15976 runpath_var='LD_RUN_PATH'
15977
15978 case $cc_basename in
15979 CC*)
15980 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15981 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15982 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15983 '"$old_archive_cmds_CXX"
15984 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15985 '"$reload_cmds_CXX"
15986 ;;
15987 *)
15988 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15989 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15990 ;;
15991 esac
15992 ;;
15993
15994 tandem*)
15995 case $cc_basename in
15996 NCC*)
15997 # NonStop-UX NCC 3.20
15998 # FIXME: insert proper C++ library support
15999 ld_shlibs_CXX=no
16000 ;;
16001 *)
16002 # FIXME: insert proper C++ library support
16003 ld_shlibs_CXX=no
16004 ;;
16005 esac
16006 ;;
16007
16008 vxworks*)
16009 # FIXME: insert proper C++ library support
16010 ld_shlibs_CXX=no
16011 ;;
16012
16013 *)
16014 # FIXME: insert proper C++ library support
16015 ld_shlibs_CXX=no
16016 ;;
16017 esac
16018
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16020 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16021 test no = "$ld_shlibs_CXX" && can_build_shared=no
16022
16023 GCC_CXX=$GXX
16024 LD_CXX=$LD
16025
16026 ## CAVEAT EMPTOR:
16027 ## There is no encapsulation within the following macros, do not change
16028 ## the running order or otherwise move them around unless you know exactly
16029 ## what you are doing...
16030 # Dependencies to place before and after the object being linked:
16031 predep_objects_CXX=
16032 postdep_objects_CXX=
16033 predeps_CXX=
16034 postdeps_CXX=
16035 compiler_lib_search_path_CXX=
16036
16037 cat > conftest.$ac_ext <<_LT_EOF
16038 class Foo
16039 {
16040 public:
16041 Foo (void) { a = 0; }
16042 private:
16043 int a;
16044 };
16045 _LT_EOF
16046
16047
16048 _lt_libdeps_save_CFLAGS=$CFLAGS
16049 case "$CC $CFLAGS " in #(
16050 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16051 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16052 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16053 esac
16054
16055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16056 (eval $ac_compile) 2>&5
16057 ac_status=$?
16058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059 test $ac_status = 0; }; then
16060 # Parse the compiler output and extract the necessary
16061 # objects, libraries and library flags.
16062
16063 # Sentinel used to keep track of whether or not we are before
16064 # the conftest object file.
16065 pre_test_object_deps_done=no
16066
16067 for p in `eval "$output_verbose_link_cmd"`; do
16068 case $prev$p in
16069
16070 -L* | -R* | -l*)
16071 # Some compilers place space between "-{L,R}" and the path.
16072 # Remove the space.
16073 if test x-L = "$p" ||
16074 test x-R = "$p"; then
16075 prev=$p
16076 continue
16077 fi
16078
16079 # Expand the sysroot to ease extracting the directories later.
16080 if test -z "$prev"; then
16081 case $p in
16082 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16083 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16084 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16085 esac
16086 fi
16087 case $p in
16088 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16089 esac
16090 if test no = "$pre_test_object_deps_done"; then
16091 case $prev in
16092 -L | -R)
16093 # Internal compiler library paths should come after those
16094 # provided the user. The postdeps already come after the
16095 # user supplied libs so there is no need to process them.
16096 if test -z "$compiler_lib_search_path_CXX"; then
16097 compiler_lib_search_path_CXX=$prev$p
16098 else
16099 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16100 fi
16101 ;;
16102 # The "-l" case would never come before the object being
16103 # linked, so don't bother handling this case.
16104 esac
16105 else
16106 if test -z "$postdeps_CXX"; then
16107 postdeps_CXX=$prev$p
16108 else
16109 postdeps_CXX="${postdeps_CXX} $prev$p"
16110 fi
16111 fi
16112 prev=
16113 ;;
16114
16115 *.lto.$objext) ;; # Ignore GCC LTO objects
16116 *.$objext)
16117 # This assumes that the test object file only shows up
16118 # once in the compiler output.
16119 if test "$p" = "conftest.$objext"; then
16120 pre_test_object_deps_done=yes
16121 continue
16122 fi
16123
16124 if test no = "$pre_test_object_deps_done"; then
16125 if test -z "$predep_objects_CXX"; then
16126 predep_objects_CXX=$p
16127 else
16128 predep_objects_CXX="$predep_objects_CXX $p"
16129 fi
16130 else
16131 if test -z "$postdep_objects_CXX"; then
16132 postdep_objects_CXX=$p
16133 else
16134 postdep_objects_CXX="$postdep_objects_CXX $p"
16135 fi
16136 fi
16137 ;;
16138
16139 *) ;; # Ignore the rest.
16140
16141 esac
16142 done
16143
16144 # Clean up.
16145 rm -f a.out a.exe
16146 else
16147 echo "libtool.m4: error: problem compiling CXX test program"
16148 fi
16149
16150 $RM -f confest.$objext
16151 CFLAGS=$_lt_libdeps_save_CFLAGS
16152
16153 # PORTME: override above test on systems where it is broken
16154 case $host_os in
16155 interix[3-9]*)
16156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16157 # hack all around it, let's just trust "g++" to DTRT.
16158 predep_objects_CXX=
16159 postdep_objects_CXX=
16160 postdeps_CXX=
16161 ;;
16162 esac
16163
16164
16165 case " $postdeps_CXX " in
16166 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16167 esac
16168 compiler_lib_search_dirs_CXX=
16169 if test -n "${compiler_lib_search_path_CXX}"; then
16170 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16171 fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203 lt_prog_compiler_wl_CXX=
16204 lt_prog_compiler_pic_CXX=
16205 lt_prog_compiler_static_CXX=
16206
16207
16208 # C++ specific cases for pic, static, wl, etc.
16209 if test yes = "$GXX"; then
16210 lt_prog_compiler_wl_CXX='-Wl,'
16211 lt_prog_compiler_static_CXX='-static'
16212
16213 case $host_os in
16214 aix*)
16215 # All AIX code is PIC.
16216 if test ia64 = "$host_cpu"; then
16217 # AIX 5 now supports IA64 processor
16218 lt_prog_compiler_static_CXX='-Bstatic'
16219 fi
16220 lt_prog_compiler_pic_CXX='-fPIC'
16221 ;;
16222
16223 amigaos*)
16224 case $host_cpu in
16225 powerpc)
16226 # see comment about AmigaOS4 .so support
16227 lt_prog_compiler_pic_CXX='-fPIC'
16228 ;;
16229 m68k)
16230 # FIXME: we need at least 68020 code to build shared libraries, but
16231 # adding the '-m68020' flag to GCC prevents building anything better,
16232 # like '-m68040'.
16233 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16234 ;;
16235 esac
16236 ;;
16237
16238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16239 # PIC is the default for these OSes.
16240 ;;
16241 mingw* | cygwin* | os2* | pw32* | cegcc*)
16242 # This hack is so that the source file can tell whether it is being
16243 # built for inclusion in a dll (and should export symbols for example).
16244 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16245 # (--disable-auto-import) libraries
16246 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16247 case $host_os in
16248 os2*)
16249 lt_prog_compiler_static_CXX='$wl-static'
16250 ;;
16251 esac
16252 ;;
16253 darwin* | rhapsody*)
16254 # PIC is the default on this platform
16255 # Common symbols not allowed in MH_DYLIB files
16256 lt_prog_compiler_pic_CXX='-fno-common'
16257 ;;
16258 *djgpp*)
16259 # DJGPP does not support shared libraries at all
16260 lt_prog_compiler_pic_CXX=
16261 ;;
16262 haiku*)
16263 # PIC is the default for Haiku.
16264 # The "-static" flag exists, but is broken.
16265 lt_prog_compiler_static_CXX=
16266 ;;
16267 interix[3-9]*)
16268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16269 # Instead, we relocate shared libraries at runtime.
16270 ;;
16271 sysv4*MP*)
16272 if test -d /usr/nec; then
16273 lt_prog_compiler_pic_CXX=-Kconform_pic
16274 fi
16275 ;;
16276 hpux*)
16277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16279 # sets the default TLS model and affects inlining.
16280 case $host_cpu in
16281 hppa*64*)
16282 ;;
16283 *)
16284 lt_prog_compiler_pic_CXX='-fPIC'
16285 ;;
16286 esac
16287 ;;
16288 *qnx* | *nto*)
16289 # QNX uses GNU C++, but need to define -shared option too, otherwise
16290 # it will coredump.
16291 lt_prog_compiler_pic_CXX='-fPIC -shared'
16292 ;;
16293 *)
16294 lt_prog_compiler_pic_CXX='-fPIC'
16295 ;;
16296 esac
16297 else
16298 case $host_os in
16299 aix[4-9]*)
16300 # All AIX code is PIC.
16301 if test ia64 = "$host_cpu"; then
16302 # AIX 5 now supports IA64 processor
16303 lt_prog_compiler_static_CXX='-Bstatic'
16304 else
16305 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16306 fi
16307 ;;
16308 chorus*)
16309 case $cc_basename in
16310 cxch68*)
16311 # Green Hills C++ Compiler
16312 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16313 ;;
16314 esac
16315 ;;
16316 mingw* | cygwin* | os2* | pw32* | cegcc*)
16317 # This hack is so that the source file can tell whether it is being
16318 # built for inclusion in a dll (and should export symbols for example).
16319 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16320 ;;
16321 dgux*)
16322 case $cc_basename in
16323 ec++*)
16324 lt_prog_compiler_pic_CXX='-KPIC'
16325 ;;
16326 ghcx*)
16327 # Green Hills C++ Compiler
16328 lt_prog_compiler_pic_CXX='-pic'
16329 ;;
16330 *)
16331 ;;
16332 esac
16333 ;;
16334 freebsd* | dragonfly*)
16335 # FreeBSD uses GNU C++
16336 ;;
16337 hpux9* | hpux10* | hpux11*)
16338 case $cc_basename in
16339 CC*)
16340 lt_prog_compiler_wl_CXX='-Wl,'
16341 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16342 if test ia64 != "$host_cpu"; then
16343 lt_prog_compiler_pic_CXX='+Z'
16344 fi
16345 ;;
16346 aCC*)
16347 lt_prog_compiler_wl_CXX='-Wl,'
16348 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16349 case $host_cpu in
16350 hppa*64*|ia64*)
16351 # +Z the default
16352 ;;
16353 *)
16354 lt_prog_compiler_pic_CXX='+Z'
16355 ;;
16356 esac
16357 ;;
16358 *)
16359 ;;
16360 esac
16361 ;;
16362 interix*)
16363 # This is c89, which is MS Visual C++ (no shared libs)
16364 # Anyone wants to do a port?
16365 ;;
16366 irix5* | irix6* | nonstopux*)
16367 case $cc_basename in
16368 CC*)
16369 lt_prog_compiler_wl_CXX='-Wl,'
16370 lt_prog_compiler_static_CXX='-non_shared'
16371 # CC pic flag -KPIC is the default.
16372 ;;
16373 *)
16374 ;;
16375 esac
16376 ;;
16377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16378 case $cc_basename in
16379 KCC*)
16380 # KAI C++ Compiler
16381 lt_prog_compiler_wl_CXX='--backend -Wl,'
16382 lt_prog_compiler_pic_CXX='-fPIC'
16383 ;;
16384 ecpc* )
16385 # old Intel C++ for x86_64, which still supported -KPIC.
16386 lt_prog_compiler_wl_CXX='-Wl,'
16387 lt_prog_compiler_pic_CXX='-KPIC'
16388 lt_prog_compiler_static_CXX='-static'
16389 ;;
16390 icpc* )
16391 # Intel C++, used to be incompatible with GCC.
16392 # ICC 10 doesn't accept -KPIC any more.
16393 lt_prog_compiler_wl_CXX='-Wl,'
16394 lt_prog_compiler_pic_CXX='-fPIC'
16395 lt_prog_compiler_static_CXX='-static'
16396 ;;
16397 pgCC* | pgcpp*)
16398 # Portland Group C++ compiler
16399 lt_prog_compiler_wl_CXX='-Wl,'
16400 lt_prog_compiler_pic_CXX='-fpic'
16401 lt_prog_compiler_static_CXX='-Bstatic'
16402 ;;
16403 cxx*)
16404 # Compaq C++
16405 # Make sure the PIC flag is empty. It appears that all Alpha
16406 # Linux and Compaq Tru64 Unix objects are PIC.
16407 lt_prog_compiler_pic_CXX=
16408 lt_prog_compiler_static_CXX='-non_shared'
16409 ;;
16410 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16411 # IBM XL 8.0, 9.0 on PPC and BlueGene
16412 lt_prog_compiler_wl_CXX='-Wl,'
16413 lt_prog_compiler_pic_CXX='-qpic'
16414 lt_prog_compiler_static_CXX='-qstaticlink'
16415 ;;
16416 *)
16417 case `$CC -V 2>&1 | sed 5q` in
16418 *Sun\ C*)
16419 # Sun C++ 5.9
16420 lt_prog_compiler_pic_CXX='-KPIC'
16421 lt_prog_compiler_static_CXX='-Bstatic'
16422 lt_prog_compiler_wl_CXX='-Qoption ld '
16423 ;;
16424 esac
16425 ;;
16426 esac
16427 ;;
16428 lynxos*)
16429 ;;
16430 m88k*)
16431 ;;
16432 mvs*)
16433 case $cc_basename in
16434 cxx*)
16435 lt_prog_compiler_pic_CXX='-W c,exportall'
16436 ;;
16437 *)
16438 ;;
16439 esac
16440 ;;
16441 netbsd* | netbsdelf*-gnu)
16442 ;;
16443 *qnx* | *nto*)
16444 # QNX uses GNU C++, but need to define -shared option too, otherwise
16445 # it will coredump.
16446 lt_prog_compiler_pic_CXX='-fPIC -shared'
16447 ;;
16448 osf3* | osf4* | osf5*)
16449 case $cc_basename in
16450 KCC*)
16451 lt_prog_compiler_wl_CXX='--backend -Wl,'
16452 ;;
16453 RCC*)
16454 # Rational C++ 2.4.1
16455 lt_prog_compiler_pic_CXX='-pic'
16456 ;;
16457 cxx*)
16458 # Digital/Compaq C++
16459 lt_prog_compiler_wl_CXX='-Wl,'
16460 # Make sure the PIC flag is empty. It appears that all Alpha
16461 # Linux and Compaq Tru64 Unix objects are PIC.
16462 lt_prog_compiler_pic_CXX=
16463 lt_prog_compiler_static_CXX='-non_shared'
16464 ;;
16465 *)
16466 ;;
16467 esac
16468 ;;
16469 psos*)
16470 ;;
16471 solaris*)
16472 case $cc_basename in
16473 CC* | sunCC*)
16474 # Sun C++ 4.2, 5.x and Centerline C++
16475 lt_prog_compiler_pic_CXX='-KPIC'
16476 lt_prog_compiler_static_CXX='-Bstatic'
16477 lt_prog_compiler_wl_CXX='-Qoption ld '
16478 ;;
16479 gcx*)
16480 # Green Hills C++ Compiler
16481 lt_prog_compiler_pic_CXX='-PIC'
16482 ;;
16483 *)
16484 ;;
16485 esac
16486 ;;
16487 sunos4*)
16488 case $cc_basename in
16489 CC*)
16490 # Sun C++ 4.x
16491 lt_prog_compiler_pic_CXX='-pic'
16492 lt_prog_compiler_static_CXX='-Bstatic'
16493 ;;
16494 lcc*)
16495 # Lucid
16496 lt_prog_compiler_pic_CXX='-pic'
16497 ;;
16498 *)
16499 ;;
16500 esac
16501 ;;
16502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16503 case $cc_basename in
16504 CC*)
16505 lt_prog_compiler_wl_CXX='-Wl,'
16506 lt_prog_compiler_pic_CXX='-KPIC'
16507 lt_prog_compiler_static_CXX='-Bstatic'
16508 ;;
16509 esac
16510 ;;
16511 tandem*)
16512 case $cc_basename in
16513 NCC*)
16514 # NonStop-UX NCC 3.20
16515 lt_prog_compiler_pic_CXX='-KPIC'
16516 ;;
16517 *)
16518 ;;
16519 esac
16520 ;;
16521 vxworks*)
16522 ;;
16523 *)
16524 lt_prog_compiler_can_build_shared_CXX=no
16525 ;;
16526 esac
16527 fi
16528
16529 case $host_os in
16530 # For platforms that do not support PIC, -DPIC is meaningless:
16531 *djgpp*)
16532 lt_prog_compiler_pic_CXX=
16533 ;;
16534 *)
16535 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16536 ;;
16537 esac
16538
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16540 printf %s "checking for $compiler option to produce PIC... " >&6; }
16541 if test ${lt_cv_prog_compiler_pic_CXX+y}
16542 then :
16543 printf %s "(cached) " >&6
16544 else $as_nop
16545 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16546 fi
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16548 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16549 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16550
16551 #
16552 # Check to make sure the PIC flag actually works.
16553 #
16554 if test -n "$lt_prog_compiler_pic_CXX"; then
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16556 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16557 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16558 then :
16559 printf %s "(cached) " >&6
16560 else $as_nop
16561 lt_cv_prog_compiler_pic_works_CXX=no
16562 ac_outfile=conftest.$ac_objext
16563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16564 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16565 # Insert the option either (1) after the last *FLAGS variable, or
16566 # (2) before a word containing "conftest.", or (3) at the end.
16567 # Note that $ac_compile itself does not contain backslashes and begins
16568 # with a dollar sign (not a hyphen), so the echo should work correctly.
16569 # The option is referenced via a variable to avoid confusing sed.
16570 lt_compile=`echo "$ac_compile" | $SED \
16571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16573 -e 's:$: $lt_compiler_flag:'`
16574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16575 (eval "$lt_compile" 2>conftest.err)
16576 ac_status=$?
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 if (exit $ac_status) && test -s "$ac_outfile"; then
16580 # The compiler can only warn and ignore the option if not recognized
16581 # So say no if there are warnings other than the usual output.
16582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16585 lt_cv_prog_compiler_pic_works_CXX=yes
16586 fi
16587 fi
16588 $RM conftest*
16589
16590 fi
16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16592 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16593
16594 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16595 case $lt_prog_compiler_pic_CXX in
16596 "" | " "*) ;;
16597 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16598 esac
16599 else
16600 lt_prog_compiler_pic_CXX=
16601 lt_prog_compiler_can_build_shared_CXX=no
16602 fi
16603
16604 fi
16605
16606
16607
16608
16609
16610 #
16611 # Check to make sure the static flag actually works.
16612 #
16613 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16615 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16616 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16617 then :
16618 printf %s "(cached) " >&6
16619 else $as_nop
16620 lt_cv_prog_compiler_static_works_CXX=no
16621 save_LDFLAGS=$LDFLAGS
16622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16625 # The linker can only warn and ignore the option if not recognized
16626 # So say no if there are warnings
16627 if test -s conftest.err; then
16628 # Append any errors to the config.log.
16629 cat conftest.err 1>&5
16630 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632 if diff conftest.exp conftest.er2 >/dev/null; then
16633 lt_cv_prog_compiler_static_works_CXX=yes
16634 fi
16635 else
16636 lt_cv_prog_compiler_static_works_CXX=yes
16637 fi
16638 fi
16639 $RM -r conftest*
16640 LDFLAGS=$save_LDFLAGS
16641
16642 fi
16643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16644 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16645
16646 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16647 :
16648 else
16649 lt_prog_compiler_static_CXX=
16650 fi
16651
16652
16653
16654
16655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16656 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16657 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16658 then :
16659 printf %s "(cached) " >&6
16660 else $as_nop
16661 lt_cv_prog_compiler_c_o_CXX=no
16662 $RM -r conftest 2>/dev/null
16663 mkdir conftest
16664 cd conftest
16665 mkdir out
16666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16667
16668 lt_compiler_flag="-o out/conftest2.$ac_objext"
16669 # Insert the option either (1) after the last *FLAGS variable, or
16670 # (2) before a word containing "conftest.", or (3) at the end.
16671 # Note that $ac_compile itself does not contain backslashes and begins
16672 # with a dollar sign (not a hyphen), so the echo should work correctly.
16673 lt_compile=`echo "$ac_compile" | $SED \
16674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16676 -e 's:$: $lt_compiler_flag:'`
16677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16678 (eval "$lt_compile" 2>out/conftest.err)
16679 ac_status=$?
16680 cat out/conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16683 then
16684 # The compiler can only warn and ignore the option if not recognized
16685 # So say no if there are warnings
16686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16689 lt_cv_prog_compiler_c_o_CXX=yes
16690 fi
16691 fi
16692 chmod u+w . 2>&5
16693 $RM conftest*
16694 # SGI C++ compiler will create directory out/ii_files/ for
16695 # template instantiation
16696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16697 $RM out/* && rmdir out
16698 cd ..
16699 $RM -r conftest
16700 $RM conftest*
16701
16702 fi
16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16704 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16705
16706
16707
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16709 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16710 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16711 then :
16712 printf %s "(cached) " >&6
16713 else $as_nop
16714 lt_cv_prog_compiler_c_o_CXX=no
16715 $RM -r conftest 2>/dev/null
16716 mkdir conftest
16717 cd conftest
16718 mkdir out
16719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720
16721 lt_compiler_flag="-o out/conftest2.$ac_objext"
16722 # Insert the option either (1) after the last *FLAGS variable, or
16723 # (2) before a word containing "conftest.", or (3) at the end.
16724 # Note that $ac_compile itself does not contain backslashes and begins
16725 # with a dollar sign (not a hyphen), so the echo should work correctly.
16726 lt_compile=`echo "$ac_compile" | $SED \
16727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729 -e 's:$: $lt_compiler_flag:'`
16730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16731 (eval "$lt_compile" 2>out/conftest.err)
16732 ac_status=$?
16733 cat out/conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16736 then
16737 # The compiler can only warn and ignore the option if not recognized
16738 # So say no if there are warnings
16739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16742 lt_cv_prog_compiler_c_o_CXX=yes
16743 fi
16744 fi
16745 chmod u+w . 2>&5
16746 $RM conftest*
16747 # SGI C++ compiler will create directory out/ii_files/ for
16748 # template instantiation
16749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16750 $RM out/* && rmdir out
16751 cd ..
16752 $RM -r conftest
16753 $RM conftest*
16754
16755 fi
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16757 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16758
16759
16760
16761
16762 hard_links=nottested
16763 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16764 # do not overwrite the value of need_locks provided by the user
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16766 printf %s "checking if we can lock with hard links... " >&6; }
16767 hard_links=yes
16768 $RM conftest*
16769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 touch conftest.a
16771 ln conftest.a conftest.b 2>&5 || hard_links=no
16772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16774 printf "%s\n" "$hard_links" >&6; }
16775 if test no = "$hard_links"; then
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16777 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16778 need_locks=warn
16779 fi
16780 else
16781 need_locks=no
16782 fi
16783
16784
16785
16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16787 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16788
16789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16790 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16791 case $host_os in
16792 aix[4-9]*)
16793 # If we're using GNU nm, then we don't want the "-C" option.
16794 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16795 # Without the "-l" option, or with the "-B" option, AIX nm treats
16796 # weak defined symbols like other global defined symbols, whereas
16797 # GNU nm marks them as "W".
16798 # While the 'weak' keyword is ignored in the Export File, we need
16799 # it in the Import File for the 'aix-soname' feature, so we have
16800 # to replace the "-B" option with "-P" for AIX nm.
16801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16802 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16803 else
16804 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16805 fi
16806 ;;
16807 pw32*)
16808 export_symbols_cmds_CXX=$ltdll_cmds
16809 ;;
16810 cygwin* | mingw* | cegcc*)
16811 case $cc_basename in
16812 cl*)
16813 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16814 ;;
16815 *)
16816 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16817 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16818 ;;
16819 esac
16820 ;;
16821 linux* | k*bsd*-gnu | gnu*)
16822 link_all_deplibs_CXX=no
16823 ;;
16824 *)
16825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16826 ;;
16827 esac
16828
16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16830 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16831 test no = "$ld_shlibs_CXX" && can_build_shared=no
16832
16833 with_gnu_ld_CXX=$with_gnu_ld
16834
16835
16836
16837
16838
16839
16840 #
16841 # Do we need to explicitly link libc?
16842 #
16843 case "x$archive_cmds_need_lc_CXX" in
16844 x|xyes)
16845 # Assume -lc should be added
16846 archive_cmds_need_lc_CXX=yes
16847
16848 if test yes,yes = "$GCC,$enable_shared"; then
16849 case $archive_cmds_CXX in
16850 *'~'*)
16851 # FIXME: we may have to deal with multi-command sequences.
16852 ;;
16853 '$CC '*)
16854 # Test whether the compiler implicitly links with -lc since on some
16855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16856 # to ld, don't add -lc before -lgcc.
16857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16858 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16859 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16860 then :
16861 printf %s "(cached) " >&6
16862 else $as_nop
16863 $RM conftest*
16864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16865
16866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16867 (eval $ac_compile) 2>&5
16868 ac_status=$?
16869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16870 test $ac_status = 0; } 2>conftest.err; then
16871 soname=conftest
16872 lib=conftest
16873 libobjs=conftest.$ac_objext
16874 deplibs=
16875 wl=$lt_prog_compiler_wl_CXX
16876 pic_flag=$lt_prog_compiler_pic_CXX
16877 compiler_flags=-v
16878 linker_flags=-v
16879 verstring=
16880 output_objdir=.
16881 libname=conftest
16882 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16883 allow_undefined_flag_CXX=
16884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16885 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16886 ac_status=$?
16887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16888 test $ac_status = 0; }
16889 then
16890 lt_cv_archive_cmds_need_lc_CXX=no
16891 else
16892 lt_cv_archive_cmds_need_lc_CXX=yes
16893 fi
16894 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16895 else
16896 cat conftest.err 1>&5
16897 fi
16898 $RM conftest*
16899
16900 fi
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16902 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16903 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16904 ;;
16905 esac
16906 fi
16907 ;;
16908 esac
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16972 printf %s "checking dynamic linker characteristics... " >&6; }
16973
16974 library_names_spec=
16975 libname_spec='lib$name'
16976 soname_spec=
16977 shrext_cmds=.so
16978 postinstall_cmds=
16979 postuninstall_cmds=
16980 finish_cmds=
16981 finish_eval=
16982 shlibpath_var=
16983 shlibpath_overrides_runpath=unknown
16984 version_type=none
16985 dynamic_linker="$host_os ld.so"
16986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16987 need_lib_prefix=unknown
16988 hardcode_into_libs=no
16989
16990 # when you set need_version to no, make sure it does not cause -set_version
16991 # flags to be left without arguments
16992 need_version=unknown
16993
16994
16995
16996 case $host_os in
16997 aix3*)
16998 version_type=linux # correct to gnu/linux during the next big refactor
16999 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17000 shlibpath_var=LIBPATH
17001
17002 # AIX 3 has no versioning support, so we append a major version to the name.
17003 soname_spec='$libname$release$shared_ext$major'
17004 ;;
17005
17006 aix[4-9]*)
17007 version_type=linux # correct to gnu/linux during the next big refactor
17008 need_lib_prefix=no
17009 need_version=no
17010 hardcode_into_libs=yes
17011 if test ia64 = "$host_cpu"; then
17012 # AIX 5 supports IA64
17013 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 else
17016 # With GCC up to 2.95.x, collect2 would create an import file
17017 # for dependence libraries. The import file would start with
17018 # the line '#! .'. This would cause the generated library to
17019 # depend on '.', always an invalid library. This was fixed in
17020 # development snapshots of GCC prior to 3.0.
17021 case $host_os in
17022 aix4 | aix4.[01] | aix4.[01].*)
17023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17024 echo ' yes '
17025 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17026 :
17027 else
17028 can_build_shared=no
17029 fi
17030 ;;
17031 esac
17032 # Using Import Files as archive members, it is possible to support
17033 # filename-based versioning of shared library archives on AIX. While
17034 # this would work for both with and without runtime linking, it will
17035 # prevent static linking of such archives. So we do filename-based
17036 # shared library versioning with .so extension only, which is used
17037 # when both runtime linking and shared linking is enabled.
17038 # Unfortunately, runtime linking may impact performance, so we do
17039 # not want this to be the default eventually. Also, we use the
17040 # versioned .so libs for executables only if there is the -brtl
17041 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17042 # To allow for filename-based versioning support, we need to create
17043 # libNAME.so.V as an archive file, containing:
17044 # *) an Import File, referring to the versioned filename of the
17045 # archive as well as the shared archive member, telling the
17046 # bitwidth (32 or 64) of that shared object, and providing the
17047 # list of exported symbols of that shared object, eventually
17048 # decorated with the 'weak' keyword
17049 # *) the shared object with the F_LOADONLY flag set, to really avoid
17050 # it being seen by the linker.
17051 # At run time we better use the real file rather than another symlink,
17052 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17053
17054 case $with_aix_soname,$aix_use_runtimelinking in
17055 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17056 # soname into executable. Probably we can add versioning support to
17057 # collect2, so additional links can be useful in future.
17058 aix,yes) # traditional libtool
17059 dynamic_linker='AIX unversionable lib.so'
17060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17061 # instead of lib<name>.a to let people know that these are not
17062 # typical AIX shared libraries.
17063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17064 ;;
17065 aix,no) # traditional AIX only
17066 dynamic_linker='AIX lib.a(lib.so.V)'
17067 # We preserve .a as extension for shared libraries through AIX4.2
17068 # and later when we are not doing run time linking.
17069 library_names_spec='$libname$release.a $libname.a'
17070 soname_spec='$libname$release$shared_ext$major'
17071 ;;
17072 svr4,*) # full svr4 only
17073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17075 # We do not specify a path in Import Files, so LIBPATH fires.
17076 shlibpath_overrides_runpath=yes
17077 ;;
17078 *,yes) # both, prefer svr4
17079 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17080 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17081 # unpreferred sharedlib libNAME.a needs extra handling
17082 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17083 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17084 # We do not specify a path in Import Files, so LIBPATH fires.
17085 shlibpath_overrides_runpath=yes
17086 ;;
17087 *,no) # both, prefer aix
17088 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17089 library_names_spec='$libname$release.a $libname.a'
17090 soname_spec='$libname$release$shared_ext$major'
17091 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17092 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17093 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17094 ;;
17095 esac
17096 shlibpath_var=LIBPATH
17097 fi
17098 ;;
17099
17100 amigaos*)
17101 case $host_cpu in
17102 powerpc)
17103 # Since July 2007 AmigaOS4 officially supports .so libraries.
17104 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17106 ;;
17107 m68k)
17108 library_names_spec='$libname.ixlibrary $libname.a'
17109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17110 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17111 ;;
17112 esac
17113 ;;
17114
17115 beos*)
17116 library_names_spec='$libname$shared_ext'
17117 dynamic_linker="$host_os ld.so"
17118 shlibpath_var=LIBRARY_PATH
17119 ;;
17120
17121 bsdi[45]*)
17122 version_type=linux # correct to gnu/linux during the next big refactor
17123 need_version=no
17124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17125 soname_spec='$libname$release$shared_ext$major'
17126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17130 # the default ld.so.conf also contains /usr/contrib/lib and
17131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17132 # libtool to hard-code these into programs
17133 ;;
17134
17135 cygwin* | mingw* | pw32* | cegcc*)
17136 version_type=windows
17137 shrext_cmds=.dll
17138 need_version=no
17139 need_lib_prefix=no
17140
17141 case $GCC,$cc_basename in
17142 yes,*)
17143 # gcc
17144 library_names_spec='$libname.dll.a'
17145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17146 postinstall_cmds='base_file=`basename \$file`~
17147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17148 dldir=$destdir/`dirname \$dlpath`~
17149 test -d \$dldir || mkdir -p \$dldir~
17150 $install_prog $dir/$dlname \$dldir/$dlname~
17151 chmod a+x \$dldir/$dlname~
17152 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17153 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17154 fi'
17155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17156 dlpath=$dir/\$dldll~
17157 $RM \$dlpath'
17158 shlibpath_overrides_runpath=yes
17159
17160 case $host_os in
17161 cygwin*)
17162 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17163 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17164
17165 ;;
17166 mingw* | cegcc*)
17167 # MinGW DLLs use traditional 'lib' prefix
17168 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17169 ;;
17170 pw32*)
17171 # pw32 DLLs use 'pw' prefix rather than 'lib'
17172 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17173 ;;
17174 esac
17175 dynamic_linker='Win32 ld.exe'
17176 ;;
17177
17178 *,cl*)
17179 # Native MSVC
17180 libname_spec='$name'
17181 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17182 library_names_spec='$libname.dll.lib'
17183
17184 case $build_os in
17185 mingw*)
17186 sys_lib_search_path_spec=
17187 lt_save_ifs=$IFS
17188 IFS=';'
17189 for lt_path in $LIB
17190 do
17191 IFS=$lt_save_ifs
17192 # Let DOS variable expansion print the short 8.3 style file name.
17193 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17194 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17195 done
17196 IFS=$lt_save_ifs
17197 # Convert to MSYS style.
17198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17199 ;;
17200 cygwin*)
17201 # Convert to unix form, then to dos form, then back to unix form
17202 # but this time dos style (no spaces!) so that the unix form looks
17203 # like /cygdrive/c/PROGRA~1:/cygdr...
17204 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17205 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17206 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17207 ;;
17208 *)
17209 sys_lib_search_path_spec=$LIB
17210 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17211 # It is most probably a Windows format PATH.
17212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17213 else
17214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17215 fi
17216 # FIXME: find the short name or the path components, as spaces are
17217 # common. (e.g. "Program Files" -> "PROGRA~1")
17218 ;;
17219 esac
17220
17221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17222 postinstall_cmds='base_file=`basename \$file`~
17223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17224 dldir=$destdir/`dirname \$dlpath`~
17225 test -d \$dldir || mkdir -p \$dldir~
17226 $install_prog $dir/$dlname \$dldir/$dlname'
17227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17228 dlpath=$dir/\$dldll~
17229 $RM \$dlpath'
17230 shlibpath_overrides_runpath=yes
17231 dynamic_linker='Win32 link.exe'
17232 ;;
17233
17234 *)
17235 # Assume MSVC wrapper
17236 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17237 dynamic_linker='Win32 ld.exe'
17238 ;;
17239 esac
17240 # FIXME: first we should search . and the directory the executable is in
17241 shlibpath_var=PATH
17242 ;;
17243
17244 darwin* | rhapsody*)
17245 dynamic_linker="$host_os dyld"
17246 version_type=darwin
17247 need_lib_prefix=no
17248 need_version=no
17249 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17250 soname_spec='$libname$release$major$shared_ext'
17251 shlibpath_overrides_runpath=yes
17252 shlibpath_var=DYLD_LIBRARY_PATH
17253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17254
17255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17256 ;;
17257
17258 dgux*)
17259 version_type=linux # correct to gnu/linux during the next big refactor
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17263 soname_spec='$libname$release$shared_ext$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 ;;
17266
17267 freebsd* | dragonfly*)
17268 # DragonFly does not have aout. When/if they implement a new
17269 # versioning mechanism, adjust this.
17270 if test -x /usr/bin/objformat; then
17271 objformat=`/usr/bin/objformat`
17272 else
17273 case $host_os in
17274 freebsd[23].*) objformat=aout ;;
17275 *) objformat=elf ;;
17276 esac
17277 fi
17278 version_type=freebsd-$objformat
17279 case $version_type in
17280 freebsd-elf*)
17281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17282 soname_spec='$libname$release$shared_ext$major'
17283 need_version=no
17284 need_lib_prefix=no
17285 ;;
17286 freebsd-*)
17287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17288 need_version=yes
17289 ;;
17290 esac
17291 shlibpath_var=LD_LIBRARY_PATH
17292 case $host_os in
17293 freebsd2.*)
17294 shlibpath_overrides_runpath=yes
17295 ;;
17296 freebsd3.[01]* | freebsdelf3.[01]*)
17297 shlibpath_overrides_runpath=yes
17298 hardcode_into_libs=yes
17299 ;;
17300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17302 shlibpath_overrides_runpath=no
17303 hardcode_into_libs=yes
17304 ;;
17305 *) # from 4.6 on, and DragonFly
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17308 ;;
17309 esac
17310 ;;
17311
17312 haiku*)
17313 version_type=linux # correct to gnu/linux during the next big refactor
17314 need_lib_prefix=no
17315 need_version=no
17316 dynamic_linker="$host_os runtime_loader"
17317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17318 soname_spec='$libname$release$shared_ext$major'
17319 shlibpath_var=LIBRARY_PATH
17320 shlibpath_overrides_runpath=no
17321 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17322 hardcode_into_libs=yes
17323 ;;
17324
17325 hpux9* | hpux10* | hpux11*)
17326 # Give a soname corresponding to the major version so that dld.sl refuses to
17327 # link against other versions.
17328 version_type=sunos
17329 need_lib_prefix=no
17330 need_version=no
17331 case $host_cpu in
17332 ia64*)
17333 shrext_cmds='.so'
17334 hardcode_into_libs=yes
17335 dynamic_linker="$host_os dld.so"
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17339 soname_spec='$libname$release$shared_ext$major'
17340 if test 32 = "$HPUX_IA64_MODE"; then
17341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17342 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17343 else
17344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17345 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17346 fi
17347 ;;
17348 hppa*64*)
17349 shrext_cmds='.sl'
17350 hardcode_into_libs=yes
17351 dynamic_linker="$host_os dld.sl"
17352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17355 soname_spec='$libname$release$shared_ext$major'
17356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17358 ;;
17359 *)
17360 shrext_cmds='.sl'
17361 dynamic_linker="$host_os dld.sl"
17362 shlibpath_var=SHLIB_PATH
17363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17365 soname_spec='$libname$release$shared_ext$major'
17366 ;;
17367 esac
17368 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17369 postinstall_cmds='chmod 555 $lib'
17370 # or fails outright, so override atomically:
17371 install_override_mode=555
17372 ;;
17373
17374 interix[3-9]*)
17375 version_type=linux # correct to gnu/linux during the next big refactor
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17379 soname_spec='$libname$release$shared_ext$major'
17380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=no
17383 hardcode_into_libs=yes
17384 ;;
17385
17386 irix5* | irix6* | nonstopux*)
17387 case $host_os in
17388 nonstopux*) version_type=nonstopux ;;
17389 *)
17390 if test yes = "$lt_cv_prog_gnu_ld"; then
17391 version_type=linux # correct to gnu/linux during the next big refactor
17392 else
17393 version_type=irix
17394 fi ;;
17395 esac
17396 need_lib_prefix=no
17397 need_version=no
17398 soname_spec='$libname$release$shared_ext$major'
17399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17400 case $host_os in
17401 irix5* | nonstopux*)
17402 libsuff= shlibsuff=
17403 ;;
17404 *)
17405 case $LD in # libtool.m4 will add one of these switches to LD
17406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17407 libsuff= shlibsuff= libmagic=32-bit;;
17408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17409 libsuff=32 shlibsuff=N32 libmagic=N32;;
17410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17412 *) libsuff= shlibsuff= libmagic=never-match;;
17413 esac
17414 ;;
17415 esac
17416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17417 shlibpath_overrides_runpath=no
17418 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17419 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17420 hardcode_into_libs=yes
17421 ;;
17422
17423 # No shared lib support for Linux oldld, aout, or coff.
17424 linux*oldld* | linux*aout* | linux*coff*)
17425 dynamic_linker=no
17426 ;;
17427
17428 linux*android*)
17429 version_type=none # Android doesn't support versioned libraries.
17430 need_lib_prefix=no
17431 need_version=no
17432 library_names_spec='$libname$release$shared_ext'
17433 soname_spec='$libname$release$shared_ext'
17434 finish_cmds=
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=yes
17437
17438 # This implies no fast_install, which is unacceptable.
17439 # Some rework will be needed to allow for fast_install
17440 # before this can be enabled.
17441 hardcode_into_libs=yes
17442
17443 dynamic_linker='Android linker'
17444 # Don't embed -rpath directories since the linker doesn't support them.
17445 hardcode_libdir_flag_spec_CXX='-L$libdir'
17446 ;;
17447
17448 # This must be glibc/ELF.
17449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17450 version_type=linux # correct to gnu/linux during the next big refactor
17451 need_lib_prefix=no
17452 need_version=no
17453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17454 soname_spec='$libname$release$shared_ext$major'
17455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 shlibpath_overrides_runpath=no
17458
17459 # Some binutils ld are patched to set DT_RUNPATH
17460 if test ${lt_cv_shlibpath_overrides_runpath+y}
17461 then :
17462 printf %s "(cached) " >&6
17463 else $as_nop
17464 lt_cv_shlibpath_overrides_runpath=no
17465 save_LDFLAGS=$LDFLAGS
17466 save_libdir=$libdir
17467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471
17472 int
17473 main (void)
17474 {
17475
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 if ac_fn_cxx_try_link "$LINENO"
17481 then :
17482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17483 then :
17484 lt_cv_shlibpath_overrides_runpath=yes
17485 fi
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17488 conftest$ac_exeext conftest.$ac_ext
17489 LDFLAGS=$save_LDFLAGS
17490 libdir=$save_libdir
17491
17492 fi
17493
17494 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17495
17496 # This implies no fast_install, which is unacceptable.
17497 # Some rework will be needed to allow for fast_install
17498 # before this can be enabled.
17499 hardcode_into_libs=yes
17500
17501 # Ideally, we could use ldconfig to report *all* directores which are
17502 # searched for libraries, however this is still not possible. Aside from not
17503 # being certain /sbin/ldconfig is available, command
17504 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17505 # even though it is searched at run-time. Try to do the best guess by
17506 # appending ld.so.conf contents (and includes) to the search path.
17507 if test -f /etc/ld.so.conf; then
17508 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' ' '`
17509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17510 fi
17511
17512 # We used to test for /lib/ld.so.1 and disable shared libraries on
17513 # powerpc, because MkLinux only supported shared libraries with the
17514 # GNU dynamic linker. Since this was broken with cross compilers,
17515 # most powerpc-linux boxes support dynamic linking these days and
17516 # people can always --disable-shared, the test was removed, and we
17517 # assume the GNU/Linux dynamic linker is in use.
17518 dynamic_linker='GNU/Linux ld.so'
17519 ;;
17520
17521 netbsdelf*-gnu)
17522 version_type=linux
17523 need_lib_prefix=no
17524 need_version=no
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17526 soname_spec='${libname}${release}${shared_ext}$major'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 shlibpath_overrides_runpath=no
17529 hardcode_into_libs=yes
17530 dynamic_linker='NetBSD ld.elf_so'
17531 ;;
17532
17533 netbsd*)
17534 version_type=sunos
17535 need_lib_prefix=no
17536 need_version=no
17537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17540 dynamic_linker='NetBSD (a.out) ld.so'
17541 else
17542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17543 soname_spec='$libname$release$shared_ext$major'
17544 dynamic_linker='NetBSD ld.elf_so'
17545 fi
17546 shlibpath_var=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath=yes
17548 hardcode_into_libs=yes
17549 ;;
17550
17551 newsos6)
17552 version_type=linux # correct to gnu/linux during the next big refactor
17553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17554 shlibpath_var=LD_LIBRARY_PATH
17555 shlibpath_overrides_runpath=yes
17556 ;;
17557
17558 *nto* | *qnx*)
17559 version_type=qnx
17560 need_lib_prefix=no
17561 need_version=no
17562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17563 soname_spec='$libname$release$shared_ext$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath=no
17566 hardcode_into_libs=yes
17567 dynamic_linker='ldqnx.so'
17568 ;;
17569
17570 openbsd* | bitrig*)
17571 version_type=sunos
17572 sys_lib_dlsearch_path_spec=/usr/lib
17573 need_lib_prefix=no
17574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17575 need_version=no
17576 else
17577 need_version=yes
17578 fi
17579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 shlibpath_overrides_runpath=yes
17583 ;;
17584
17585 os2*)
17586 libname_spec='$name'
17587 version_type=windows
17588 shrext_cmds=.dll
17589 need_version=no
17590 need_lib_prefix=no
17591 # OS/2 can only load a DLL with a base name of 8 characters or less.
17592 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17593 v=$($ECHO $release$versuffix | tr -d .-);
17594 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17595 $ECHO $n$v`$shared_ext'
17596 library_names_spec='${libname}_dll.$libext'
17597 dynamic_linker='OS/2 ld.exe'
17598 shlibpath_var=BEGINLIBPATH
17599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17601 postinstall_cmds='base_file=`basename \$file`~
17602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17603 dldir=$destdir/`dirname \$dlpath`~
17604 test -d \$dldir || mkdir -p \$dldir~
17605 $install_prog $dir/$dlname \$dldir/$dlname~
17606 chmod a+x \$dldir/$dlname~
17607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17609 fi'
17610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17611 dlpath=$dir/\$dldll~
17612 $RM \$dlpath'
17613 ;;
17614
17615 osf3* | osf4* | osf5*)
17616 version_type=osf
17617 need_lib_prefix=no
17618 need_version=no
17619 soname_spec='$libname$release$shared_ext$major'
17620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17624 ;;
17625
17626 rdos*)
17627 dynamic_linker=no
17628 ;;
17629
17630 solaris*)
17631 version_type=linux # correct to gnu/linux during the next big refactor
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17635 soname_spec='$libname$release$shared_ext$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=yes
17638 hardcode_into_libs=yes
17639 # ldd complains unless libraries are executable
17640 postinstall_cmds='chmod +x $lib'
17641 ;;
17642
17643 sunos4*)
17644 version_type=sunos
17645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes
17649 if test yes = "$with_gnu_ld"; then
17650 need_lib_prefix=no
17651 fi
17652 need_version=yes
17653 ;;
17654
17655 sysv4 | sysv4.3*)
17656 version_type=linux # correct to gnu/linux during the next big refactor
17657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17658 soname_spec='$libname$release$shared_ext$major'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 case $host_vendor in
17661 sni)
17662 shlibpath_overrides_runpath=no
17663 need_lib_prefix=no
17664 runpath_var=LD_RUN_PATH
17665 ;;
17666 siemens)
17667 need_lib_prefix=no
17668 ;;
17669 motorola)
17670 need_lib_prefix=no
17671 need_version=no
17672 shlibpath_overrides_runpath=no
17673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17674 ;;
17675 esac
17676 ;;
17677
17678 sysv4*MP*)
17679 if test -d /usr/nec; then
17680 version_type=linux # correct to gnu/linux during the next big refactor
17681 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17682 soname_spec='$libname$shared_ext.$major'
17683 shlibpath_var=LD_LIBRARY_PATH
17684 fi
17685 ;;
17686
17687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17688 version_type=sco
17689 need_lib_prefix=no
17690 need_version=no
17691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17692 soname_spec='$libname$release$shared_ext$major'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=yes
17695 hardcode_into_libs=yes
17696 if test yes = "$with_gnu_ld"; then
17697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17698 else
17699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17700 case $host_os in
17701 sco3.2v5*)
17702 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17703 ;;
17704 esac
17705 fi
17706 sys_lib_dlsearch_path_spec='/usr/lib'
17707 ;;
17708
17709 tpf*)
17710 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17711 version_type=linux # correct to gnu/linux during the next big refactor
17712 need_lib_prefix=no
17713 need_version=no
17714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17715 shlibpath_var=LD_LIBRARY_PATH
17716 shlibpath_overrides_runpath=no
17717 hardcode_into_libs=yes
17718 ;;
17719
17720 uts4*)
17721 version_type=linux # correct to gnu/linux during the next big refactor
17722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17723 soname_spec='$libname$release$shared_ext$major'
17724 shlibpath_var=LD_LIBRARY_PATH
17725 ;;
17726
17727 *)
17728 dynamic_linker=no
17729 ;;
17730 esac
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17732 printf "%s\n" "$dynamic_linker" >&6; }
17733 test no = "$dynamic_linker" && can_build_shared=no
17734
17735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17736 if test yes = "$GCC"; then
17737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17738 fi
17739
17740 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17741 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17742 fi
17743
17744 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17745 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17746 fi
17747
17748 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17749 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17750
17751 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17752 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17753
17754 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17755 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17797 printf %s "checking how to hardcode library paths into programs... " >&6; }
17798 hardcode_action_CXX=
17799 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17800 test -n "$runpath_var_CXX" ||
17801 test yes = "$hardcode_automatic_CXX"; then
17802
17803 # We can hardcode non-existent directories.
17804 if test no != "$hardcode_direct_CXX" &&
17805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17806 # have to relink, otherwise we might link with an installed library
17807 # when we should be linking with a yet-to-be-installed one
17808 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17809 test no != "$hardcode_minus_L_CXX"; then
17810 # Linking always hardcodes the temporary library directory.
17811 hardcode_action_CXX=relink
17812 else
17813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17814 hardcode_action_CXX=immediate
17815 fi
17816 else
17817 # We cannot hardcode anything, or else we can only hardcode existing
17818 # directories.
17819 hardcode_action_CXX=unsupported
17820 fi
17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17822 printf "%s\n" "$hardcode_action_CXX" >&6; }
17823
17824 if test relink = "$hardcode_action_CXX" ||
17825 test yes = "$inherit_rpath_CXX"; then
17826 # Fast installation is not supported
17827 enable_fast_install=no
17828 elif test yes = "$shlibpath_overrides_runpath" ||
17829 test no = "$enable_shared"; then
17830 # Fast installation is not necessary
17831 enable_fast_install=needless
17832 fi
17833
17834
17835
17836
17837
17838
17839
17840 fi # test -n "$compiler"
17841
17842 CC=$lt_save_CC
17843 CFLAGS=$lt_save_CFLAGS
17844 LDCXX=$LD
17845 LD=$lt_save_LD
17846 GCC=$lt_save_GCC
17847 with_gnu_ld=$lt_save_with_gnu_ld
17848 lt_cv_path_LDCXX=$lt_cv_path_LD
17849 lt_cv_path_LD=$lt_save_path_LD
17850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17852 fi # test yes != "$_lt_caught_CXX_error"
17853
17854 ac_ext=c
17855 ac_cpp='$CPP $CPPFLAGS'
17856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874 ac_config_commands="$ac_config_commands libtool"
17875
17876
17877
17878
17879 # Only expand once:
17880
17881
17882
17883 for ac_prog in flex lex
17884 do
17885 # Extract the first word of "$ac_prog", so it can be a program name with args.
17886 set dummy $ac_prog; ac_word=$2
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17888 printf %s "checking for $ac_word... " >&6; }
17889 if test ${ac_cv_prog_LEX+y}
17890 then :
17891 printf %s "(cached) " >&6
17892 else $as_nop
17893 if test -n "$LEX"; then
17894 ac_cv_prog_LEX="$LEX" # Let the user override the test.
17895 else
17896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17897 for as_dir in $PATH
17898 do
17899 IFS=$as_save_IFS
17900 case $as_dir in #(((
17901 '') as_dir=./ ;;
17902 */) ;;
17903 *) as_dir=$as_dir/ ;;
17904 esac
17905 for ac_exec_ext in '' $ac_executable_extensions; do
17906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17907 ac_cv_prog_LEX="$ac_prog"
17908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17909 break 2
17910 fi
17911 done
17912 done
17913 IFS=$as_save_IFS
17914
17915 fi
17916 fi
17917 LEX=$ac_cv_prog_LEX
17918 if test -n "$LEX"; then
17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
17920 printf "%s\n" "$LEX" >&6; }
17921 else
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 printf "%s\n" "no" >&6; }
17924 fi
17925
17926
17927 test -n "$LEX" && break
17928 done
17929 test -n "$LEX" || LEX=":"
17930
17931 if test "x$LEX" != "x:"; then
17932 cat >conftest.l <<_ACEOF
17933 %{
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 int yywrap(void);
17938 %}
17939 %%
17940 a { ECHO; }
17941 b { REJECT; }
17942 c { yymore (); }
17943 d { yyless (1); }
17944 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
17945 #ifdef __cplusplus
17946 yyless ((yyinput () != 0));
17947 #else
17948 yyless ((input () != 0));
17949 #endif
17950 }
17951 f { unput (yytext[0]); }
17952 . { BEGIN INITIAL; }
17953 %%
17954 #ifdef YYTEXT_POINTER
17955 extern char *yytext;
17956 #endif
17957 int
17958 yywrap (void)
17959 {
17960 return 1;
17961 }
17962 int
17963 main (void)
17964 {
17965 return ! yylex ();
17966 }
17967 _ACEOF
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
17969 printf %s "checking for lex output file root... " >&6; }
17970 if test ${ac_cv_prog_lex_root+y}
17971 then :
17972 printf %s "(cached) " >&6
17973 else $as_nop
17974
17975 ac_cv_prog_lex_root=unknown
17976 { { ac_try="$LEX conftest.l"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980 esac
17981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17982 printf "%s\n" "$ac_try_echo"; } >&5
17983 (eval "$LEX conftest.l") 2>&5
17984 ac_status=$?
17985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986 test $ac_status = 0; } &&
17987 if test -f lex.yy.c; then
17988 ac_cv_prog_lex_root=lex.yy
17989 elif test -f lexyy.c; then
17990 ac_cv_prog_lex_root=lexyy
17991 fi
17992 fi
17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17994 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
17995 if test "$ac_cv_prog_lex_root" = unknown
17996 then :
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
17998 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
17999 LEX=: LEXLIB=
18000 fi
18001 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18002
18003 if test ${LEXLIB+y}
18004 then :
18005
18006 else $as_nop
18007
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
18009 printf %s "checking for lex library... " >&6; }
18010 if test ${ac_cv_lib_lex+y}
18011 then :
18012 printf %s "(cached) " >&6
18013 else $as_nop
18014
18015 ac_save_LIBS="$LIBS"
18016 ac_found=false
18017 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
18018 case $ac_cv_lib_lex in #(
18019 'none needed') :
18020 ;; #(
18021 'not found') :
18022 break ;; #(
18023 *) :
18024 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
18025 *) :
18026 ;;
18027 esac
18028
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 `cat $LEX_OUTPUT_ROOT.c`
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"
18034 then :
18035 ac_found=:
18036 fi
18037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18038 conftest$ac_exeext conftest.$ac_ext
18039 if $ac_found; then
18040 break
18041 fi
18042 done
18043 LIBS="$ac_save_LIBS"
18044
18045 fi
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18047 printf "%s\n" "$ac_cv_lib_lex" >&6; }
18048 if test "$ac_cv_lib_lex" = 'not found'
18049 then :
18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
18051 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
18052 LEX=: LEXLIB=
18053 elif test "$ac_cv_lib_lex" = 'none needed'
18054 then :
18055 LEXLIB=''
18056 else $as_nop
18057 LEXLIB=$ac_cv_lib_lex
18058 fi
18059
18060 fi
18061
18062
18063 if test "$LEX" != :
18064 then :
18065
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18067 printf %s "checking whether yytext is a pointer... " >&6; }
18068 if test ${ac_cv_prog_lex_yytext_pointer+y}
18069 then :
18070 printf %s "(cached) " >&6
18071 else $as_nop
18072 # POSIX says lex can declare yytext either as a pointer or an array; the
18073 # default is implementation-dependent. Figure out which it is, since
18074 # not all implementations provide the %pointer and %array declarations.
18075 ac_cv_prog_lex_yytext_pointer=no
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078
18079 #define YYTEXT_POINTER 1
18080 `cat $LEX_OUTPUT_ROOT.c`
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"
18083 then :
18084 ac_cv_prog_lex_yytext_pointer=yes
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18087
18088 fi
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18090 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
18091 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18092
18093 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
18094
18095 fi
18096
18097 fi
18098 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18099
18100 fi
18101 for ac_prog in 'bison -y' byacc yacc
18102 do
18103 # Extract the first word of "$ac_prog", so it can be a program name with args.
18104 set dummy $ac_prog; ac_word=$2
18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18106 printf %s "checking for $ac_word... " >&6; }
18107 if test ${ac_cv_prog_YACC+y}
18108 then :
18109 printf %s "(cached) " >&6
18110 else $as_nop
18111 if test -n "$YACC"; then
18112 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18113 else
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18116 do
18117 IFS=$as_save_IFS
18118 case $as_dir in #(((
18119 '') as_dir=./ ;;
18120 */) ;;
18121 *) as_dir=$as_dir/ ;;
18122 esac
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18125 ac_cv_prog_YACC="$ac_prog"
18126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18127 break 2
18128 fi
18129 done
18130 done
18131 IFS=$as_save_IFS
18132
18133 fi
18134 fi
18135 YACC=$ac_cv_prog_YACC
18136 if test -n "$YACC"; then
18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18138 printf "%s\n" "$YACC" >&6; }
18139 else
18140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 printf "%s\n" "no" >&6; }
18142 fi
18143
18144
18145 test -n "$YACC" && break
18146 done
18147
18148 if test -z "$YACC"; then
18149 as_fn_error $? "Bison or Yacc not found" "$LINENO" 5
18150 fi
18151
18152 GETTEXT_PACKAGE=libvisual-plugins-0.4
18153
18154
18155 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
18156
18157
18158 printf "%s\n" "#define LOCALEDIR \"${prefix}/share/locale\"" >>confdefs.h
18159
18160
18161
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18163 printf %s "checking whether NLS is requested... " >&6; }
18164 # Check whether --enable-nls was given.
18165 if test ${enable_nls+y}
18166 then :
18167 enableval=$enable_nls; USE_NLS=$enableval
18168 else $as_nop
18169 USE_NLS=yes
18170 fi
18171
18172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18173 printf "%s\n" "$USE_NLS" >&6; }
18174
18175
18176
18177
18178 GETTEXT_MACRO_VERSION=0.19
18179
18180
18181
18182
18183 # Prepare PATH_SEPARATOR.
18184 # The user is always right.
18185 if test "${PATH_SEPARATOR+set}" != set; then
18186 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18187 # contains only /bin. Note that ksh looks also at the FPATH variable,
18188 # so we have to set that as well for the test.
18189 PATH_SEPARATOR=:
18190 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18191 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18192 || PATH_SEPARATOR=';'
18193 }
18194 fi
18195
18196 # Find out how to test for executable files. Don't use a zero-byte file,
18197 # as systems may use methods other than mode bits to determine executability.
18198 cat >conf$$.file <<_ASEOF
18199 #! /bin/sh
18200 exit 0
18201 _ASEOF
18202 chmod +x conf$$.file
18203 if test -x conf$$.file >/dev/null 2>&1; then
18204 ac_executable_p="test -x"
18205 else
18206 ac_executable_p="test -f"
18207 fi
18208 rm -f conf$$.file
18209
18210 # Extract the first word of "msgfmt", so it can be a program name with args.
18211 set dummy msgfmt; ac_word=$2
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18213 printf %s "checking for $ac_word... " >&6; }
18214 if test ${ac_cv_path_MSGFMT+y}
18215 then :
18216 printf %s "(cached) " >&6
18217 else $as_nop
18218 case "$MSGFMT" in
18219 [\\/]* | ?:[\\/]*)
18220 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18221 ;;
18222 *)
18223 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18224 for ac_dir in $PATH; do
18225 IFS="$ac_save_IFS"
18226 test -z "$ac_dir" && ac_dir=.
18227 for ac_exec_ext in '' $ac_executable_extensions; do
18228 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18229 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18230 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18231 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18232 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18233 break 2
18234 fi
18235 fi
18236 done
18237 done
18238 IFS="$ac_save_IFS"
18239 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18240 ;;
18241 esac
18242 fi
18243 MSGFMT="$ac_cv_path_MSGFMT"
18244 if test "$MSGFMT" != ":"; then
18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18246 printf "%s\n" "$MSGFMT" >&6; }
18247 else
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249 printf "%s\n" "no" >&6; }
18250 fi
18251
18252 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18253 set dummy gmsgfmt; ac_word=$2
18254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18255 printf %s "checking for $ac_word... " >&6; }
18256 if test ${ac_cv_path_GMSGFMT+y}
18257 then :
18258 printf %s "(cached) " >&6
18259 else $as_nop
18260 case $GMSGFMT in
18261 [\\/]* | ?:[\\/]*)
18262 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18263 ;;
18264 *)
18265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18266 for as_dir in $PATH
18267 do
18268 IFS=$as_save_IFS
18269 case $as_dir in #(((
18270 '') as_dir=./ ;;
18271 */) ;;
18272 *) as_dir=$as_dir/ ;;
18273 esac
18274 for ac_exec_ext in '' $ac_executable_extensions; do
18275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18276 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
18277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18278 break 2
18279 fi
18280 done
18281 done
18282 IFS=$as_save_IFS
18283
18284 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18285 ;;
18286 esac
18287 fi
18288 GMSGFMT=$ac_cv_path_GMSGFMT
18289 if test -n "$GMSGFMT"; then
18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18291 printf "%s\n" "$GMSGFMT" >&6; }
18292 else
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 printf "%s\n" "no" >&6; }
18295 fi
18296
18297
18298
18299 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18300 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
18301 *) MSGFMT_015=$MSGFMT ;;
18302 esac
18303
18304 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18305 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18306 *) GMSGFMT_015=$GMSGFMT ;;
18307 esac
18308
18309
18310
18311 # Prepare PATH_SEPARATOR.
18312 # The user is always right.
18313 if test "${PATH_SEPARATOR+set}" != set; then
18314 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18315 # contains only /bin. Note that ksh looks also at the FPATH variable,
18316 # so we have to set that as well for the test.
18317 PATH_SEPARATOR=:
18318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18319 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18320 || PATH_SEPARATOR=';'
18321 }
18322 fi
18323
18324 # Find out how to test for executable files. Don't use a zero-byte file,
18325 # as systems may use methods other than mode bits to determine executability.
18326 cat >conf$$.file <<_ASEOF
18327 #! /bin/sh
18328 exit 0
18329 _ASEOF
18330 chmod +x conf$$.file
18331 if test -x conf$$.file >/dev/null 2>&1; then
18332 ac_executable_p="test -x"
18333 else
18334 ac_executable_p="test -f"
18335 fi
18336 rm -f conf$$.file
18337
18338 # Extract the first word of "xgettext", so it can be a program name with args.
18339 set dummy xgettext; ac_word=$2
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341 printf %s "checking for $ac_word... " >&6; }
18342 if test ${ac_cv_path_XGETTEXT+y}
18343 then :
18344 printf %s "(cached) " >&6
18345 else $as_nop
18346 case "$XGETTEXT" in
18347 [\\/]* | ?:[\\/]*)
18348 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18349 ;;
18350 *)
18351 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18352 for ac_dir in $PATH; do
18353 IFS="$ac_save_IFS"
18354 test -z "$ac_dir" && ac_dir=.
18355 for ac_exec_ext in '' $ac_executable_extensions; do
18356 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18357 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18358 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18359 (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
18360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18361 break 2
18362 fi
18363 fi
18364 done
18365 done
18366 IFS="$ac_save_IFS"
18367 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18368 ;;
18369 esac
18370 fi
18371 XGETTEXT="$ac_cv_path_XGETTEXT"
18372 if test "$XGETTEXT" != ":"; then
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18374 printf "%s\n" "$XGETTEXT" >&6; }
18375 else
18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 printf "%s\n" "no" >&6; }
18378 fi
18379
18380 rm -f messages.po
18381
18382 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
18384 *) XGETTEXT_015=$XGETTEXT ;;
18385 esac
18386
18387
18388
18389 # Prepare PATH_SEPARATOR.
18390 # The user is always right.
18391 if test "${PATH_SEPARATOR+set}" != set; then
18392 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18393 # contains only /bin. Note that ksh looks also at the FPATH variable,
18394 # so we have to set that as well for the test.
18395 PATH_SEPARATOR=:
18396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18397 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18398 || PATH_SEPARATOR=';'
18399 }
18400 fi
18401
18402 # Find out how to test for executable files. Don't use a zero-byte file,
18403 # as systems may use methods other than mode bits to determine executability.
18404 cat >conf$$.file <<_ASEOF
18405 #! /bin/sh
18406 exit 0
18407 _ASEOF
18408 chmod +x conf$$.file
18409 if test -x conf$$.file >/dev/null 2>&1; then
18410 ac_executable_p="test -x"
18411 else
18412 ac_executable_p="test -f"
18413 fi
18414 rm -f conf$$.file
18415
18416 # Extract the first word of "msgmerge", so it can be a program name with args.
18417 set dummy msgmerge; ac_word=$2
18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18419 printf %s "checking for $ac_word... " >&6; }
18420 if test ${ac_cv_path_MSGMERGE+y}
18421 then :
18422 printf %s "(cached) " >&6
18423 else $as_nop
18424 case "$MSGMERGE" in
18425 [\\/]* | ?:[\\/]*)
18426 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18427 ;;
18428 *)
18429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18430 for ac_dir in $PATH; do
18431 IFS="$ac_save_IFS"
18432 test -z "$ac_dir" && ac_dir=.
18433 for ac_exec_ext in '' $ac_executable_extensions; do
18434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18435 echo "$as_me: trying $ac_dir/$ac_word..." >&5
18436 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18437 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18438 break 2
18439 fi
18440 fi
18441 done
18442 done
18443 IFS="$ac_save_IFS"
18444 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18445 ;;
18446 esac
18447 fi
18448 MSGMERGE="$ac_cv_path_MSGMERGE"
18449 if test "$MSGMERGE" != ":"; then
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18451 printf "%s\n" "$MSGMERGE" >&6; }
18452 else
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18454 printf "%s\n" "no" >&6; }
18455 fi
18456
18457
18458 test -n "$localedir" || localedir='${datadir}/locale'
18459
18460
18461 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18462
18463
18464 ac_config_commands="$ac_config_commands po-directories"
18465
18466
18467
18468 if test "X$prefix" = "XNONE"; then
18469 acl_final_prefix="$ac_default_prefix"
18470 else
18471 acl_final_prefix="$prefix"
18472 fi
18473 if test "X$exec_prefix" = "XNONE"; then
18474 acl_final_exec_prefix='${prefix}'
18475 else
18476 acl_final_exec_prefix="$exec_prefix"
18477 fi
18478 acl_save_prefix="$prefix"
18479 prefix="$acl_final_prefix"
18480 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18481 prefix="$acl_save_prefix"
18482
18483
18484
18485 # Check whether --with-gnu-ld was given.
18486 if test ${with_gnu_ld+y}
18487 then :
18488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18489 else $as_nop
18490 with_gnu_ld=no
18491 fi
18492
18493 # Prepare PATH_SEPARATOR.
18494 # The user is always right.
18495 if test "${PATH_SEPARATOR+set}" != set; then
18496 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18497 # contains only /bin. Note that ksh looks also at the FPATH variable,
18498 # so we have to set that as well for the test.
18499 PATH_SEPARATOR=:
18500 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18501 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18502 || PATH_SEPARATOR=';'
18503 }
18504 fi
18505
18506 ac_prog=ld
18507 if test "$GCC" = yes; then
18508 # Check if gcc -print-prog-name=ld gives a path.
18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18510 printf %s "checking for ld used by $CC... " >&6; }
18511 case $host in
18512 *-*-mingw*)
18513 # gcc leaves a trailing carriage return which upsets mingw
18514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18515 *)
18516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18517 esac
18518 case $ac_prog in
18519 # Accept absolute paths.
18520 [\\/]* | ?:[\\/]*)
18521 re_direlt='/[^/][^/]*/\.\./'
18522 # Canonicalize the pathname of ld
18523 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18524 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18525 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18526 done
18527 test -z "$LD" && LD="$ac_prog"
18528 ;;
18529 "")
18530 # If it fails, then pretend we aren't using GCC.
18531 ac_prog=ld
18532 ;;
18533 *)
18534 # If it is relative, then search for the first ld in PATH.
18535 with_gnu_ld=unknown
18536 ;;
18537 esac
18538 elif test "$with_gnu_ld" = yes; then
18539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18540 printf %s "checking for GNU ld... " >&6; }
18541 else
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18543 printf %s "checking for non-GNU ld... " >&6; }
18544 fi
18545 if test ${acl_cv_path_LD+y}
18546 then :
18547 printf %s "(cached) " >&6
18548 else $as_nop
18549 if test -z "$LD"; then
18550 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18551 for ac_dir in $PATH; do
18552 IFS="$acl_save_ifs"
18553 test -z "$ac_dir" && ac_dir=.
18554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18555 acl_cv_path_LD="$ac_dir/$ac_prog"
18556 # Check to see if the program is GNU ld. I'd rather use --version,
18557 # but apparently some variants of GNU ld only accept -v.
18558 # Break only if it was the GNU/non-GNU ld that we prefer.
18559 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18560 *GNU* | *'with BFD'*)
18561 test "$with_gnu_ld" != no && break
18562 ;;
18563 *)
18564 test "$with_gnu_ld" != yes && break
18565 ;;
18566 esac
18567 fi
18568 done
18569 IFS="$acl_save_ifs"
18570 else
18571 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18572 fi
18573 fi
18574
18575 LD="$acl_cv_path_LD"
18576 if test -n "$LD"; then
18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18578 printf "%s\n" "$LD" >&6; }
18579 else
18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18581 printf "%s\n" "no" >&6; }
18582 fi
18583 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18585 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18586 if test ${acl_cv_prog_gnu_ld+y}
18587 then :
18588 printf %s "(cached) " >&6
18589 else $as_nop
18590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18591 case `$LD -v 2>&1 </dev/null` in
18592 *GNU* | *'with BFD'*)
18593 acl_cv_prog_gnu_ld=yes
18594 ;;
18595 *)
18596 acl_cv_prog_gnu_ld=no
18597 ;;
18598 esac
18599 fi
18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18601 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
18602 with_gnu_ld=$acl_cv_prog_gnu_ld
18603
18604
18605
18606
18607
18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18609 printf %s "checking for shared library run path origin... " >&6; }
18610 if test ${acl_cv_rpath+y}
18611 then :
18612 printf %s "(cached) " >&6
18613 else $as_nop
18614
18615 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18616 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18617 . ./conftest.sh
18618 rm -f ./conftest.sh
18619 acl_cv_rpath=done
18620
18621 fi
18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18623 printf "%s\n" "$acl_cv_rpath" >&6; }
18624 wl="$acl_cv_wl"
18625 acl_libext="$acl_cv_libext"
18626 acl_shlibext="$acl_cv_shlibext"
18627 acl_libname_spec="$acl_cv_libname_spec"
18628 acl_library_names_spec="$acl_cv_library_names_spec"
18629 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18630 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18631 acl_hardcode_direct="$acl_cv_hardcode_direct"
18632 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18633 # Check whether --enable-rpath was given.
18634 if test ${enable_rpath+y}
18635 then :
18636 enableval=$enable_rpath; :
18637 else $as_nop
18638 enable_rpath=yes
18639 fi
18640
18641
18642 ac_ext=c
18643 ac_cpp='$CPP $CPPFLAGS'
18644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18648 printf %s "checking how to run the C preprocessor... " >&6; }
18649 # On Suns, sometimes $CPP names a directory.
18650 if test -n "$CPP" && test -d "$CPP"; then
18651 CPP=
18652 fi
18653 if test -z "$CPP"; then
18654 if test ${ac_cv_prog_CPP+y}
18655 then :
18656 printf %s "(cached) " >&6
18657 else $as_nop
18658 # Double quotes because $CC needs to be expanded
18659 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18660 do
18661 ac_preproc_ok=false
18662 for ac_c_preproc_warn_flag in '' yes
18663 do
18664 # Use a header file that comes with gcc, so configuring glibc
18665 # with a fresh cross-compiler works.
18666 # On the NeXT, cc -E runs the code through the compiler's parser,
18667 # not just through cpp. "Syntax error" is here to catch this case.
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 #include <limits.h>
18671 Syntax error
18672 _ACEOF
18673 if ac_fn_c_try_cpp "$LINENO"
18674 then :
18675
18676 else $as_nop
18677 # Broken: fails on valid input.
18678 continue
18679 fi
18680 rm -f conftest.err conftest.i conftest.$ac_ext
18681
18682 # OK, works on sane cases. Now check whether nonexistent headers
18683 # can be detected and how.
18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685 /* end confdefs.h. */
18686 #include <ac_nonexistent.h>
18687 _ACEOF
18688 if ac_fn_c_try_cpp "$LINENO"
18689 then :
18690 # Broken: success on invalid input.
18691 continue
18692 else $as_nop
18693 # Passes both tests.
18694 ac_preproc_ok=:
18695 break
18696 fi
18697 rm -f conftest.err conftest.i conftest.$ac_ext
18698
18699 done
18700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18701 rm -f conftest.i conftest.err conftest.$ac_ext
18702 if $ac_preproc_ok
18703 then :
18704 break
18705 fi
18706
18707 done
18708 ac_cv_prog_CPP=$CPP
18709
18710 fi
18711 CPP=$ac_cv_prog_CPP
18712 else
18713 ac_cv_prog_CPP=$CPP
18714 fi
18715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18716 printf "%s\n" "$CPP" >&6; }
18717 ac_preproc_ok=false
18718 for ac_c_preproc_warn_flag in '' yes
18719 do
18720 # Use a header file that comes with gcc, so configuring glibc
18721 # with a fresh cross-compiler works.
18722 # On the NeXT, cc -E runs the code through the compiler's parser,
18723 # not just through cpp. "Syntax error" is here to catch this case.
18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18726 #include <limits.h>
18727 Syntax error
18728 _ACEOF
18729 if ac_fn_c_try_cpp "$LINENO"
18730 then :
18731
18732 else $as_nop
18733 # Broken: fails on valid input.
18734 continue
18735 fi
18736 rm -f conftest.err conftest.i conftest.$ac_ext
18737
18738 # OK, works on sane cases. Now check whether nonexistent headers
18739 # can be detected and how.
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742 #include <ac_nonexistent.h>
18743 _ACEOF
18744 if ac_fn_c_try_cpp "$LINENO"
18745 then :
18746 # Broken: success on invalid input.
18747 continue
18748 else $as_nop
18749 # Passes both tests.
18750 ac_preproc_ok=:
18751 break
18752 fi
18753 rm -f conftest.err conftest.i conftest.$ac_ext
18754
18755 done
18756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18757 rm -f conftest.i conftest.err conftest.$ac_ext
18758 if $ac_preproc_ok
18759 then :
18760
18761 else $as_nop
18762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18763 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18764 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18765 See \`config.log' for more details" "$LINENO" 5; }
18766 fi
18767
18768 ac_ext=c
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18773
18774
18775
18776
18777 acl_libdirstem=lib
18778 acl_libdirstem2=
18779 case "$host_os" in
18780 solaris*)
18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18782 printf %s "checking for 64-bit host... " >&6; }
18783 if test ${gl_cv_solaris_64bit+y}
18784 then :
18785 printf %s "(cached) " >&6
18786 else $as_nop
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789
18790 #ifdef _LP64
18791 sixtyfour bits
18792 #endif
18793
18794 _ACEOF
18795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18796 $EGREP "sixtyfour bits" >/dev/null 2>&1
18797 then :
18798 gl_cv_solaris_64bit=yes
18799 else $as_nop
18800 gl_cv_solaris_64bit=no
18801 fi
18802 rm -rf conftest*
18803
18804
18805 fi
18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18807 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
18808 if test $gl_cv_solaris_64bit = yes; then
18809 acl_libdirstem=lib/64
18810 case "$host_cpu" in
18811 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18812 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18813 esac
18814 fi
18815 ;;
18816 *)
18817 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18818 if test -n "$searchpath"; then
18819 acl_save_IFS="${IFS= }"; IFS=":"
18820 for searchdir in $searchpath; do
18821 if test -d "$searchdir"; then
18822 case "$searchdir" in
18823 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18824 */../ | */.. )
18825 # Better ignore directories of this form. They are misleading.
18826 ;;
18827 *) searchdir=`cd "$searchdir" && pwd`
18828 case "$searchdir" in
18829 */lib64 ) acl_libdirstem=lib64 ;;
18830 esac ;;
18831 esac
18832 fi
18833 done
18834 IFS="$acl_save_IFS"
18835 fi
18836 ;;
18837 esac
18838 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851 use_additional=yes
18852
18853 acl_save_prefix="$prefix"
18854 prefix="$acl_final_prefix"
18855 acl_save_exec_prefix="$exec_prefix"
18856 exec_prefix="$acl_final_exec_prefix"
18857
18858 eval additional_includedir=\"$includedir\"
18859 eval additional_libdir=\"$libdir\"
18860
18861 exec_prefix="$acl_save_exec_prefix"
18862 prefix="$acl_save_prefix"
18863
18864
18865 # Check whether --with-libiconv-prefix was given.
18866 if test ${with_libiconv_prefix+y}
18867 then :
18868 withval=$with_libiconv_prefix;
18869 if test "X$withval" = "Xno"; then
18870 use_additional=no
18871 else
18872 if test "X$withval" = "X"; then
18873
18874 acl_save_prefix="$prefix"
18875 prefix="$acl_final_prefix"
18876 acl_save_exec_prefix="$exec_prefix"
18877 exec_prefix="$acl_final_exec_prefix"
18878
18879 eval additional_includedir=\"$includedir\"
18880 eval additional_libdir=\"$libdir\"
18881
18882 exec_prefix="$acl_save_exec_prefix"
18883 prefix="$acl_save_prefix"
18884
18885 else
18886 additional_includedir="$withval/include"
18887 additional_libdir="$withval/$acl_libdirstem"
18888 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18889 && ! test -d "$withval/$acl_libdirstem"; then
18890 additional_libdir="$withval/$acl_libdirstem2"
18891 fi
18892 fi
18893 fi
18894
18895 fi
18896
18897 LIBICONV=
18898 LTLIBICONV=
18899 INCICONV=
18900 LIBICONV_PREFIX=
18901 HAVE_LIBICONV=
18902 rpathdirs=
18903 ltrpathdirs=
18904 names_already_handled=
18905 names_next_round='iconv '
18906 while test -n "$names_next_round"; do
18907 names_this_round="$names_next_round"
18908 names_next_round=
18909 for name in $names_this_round; do
18910 already_handled=
18911 for n in $names_already_handled; do
18912 if test "$n" = "$name"; then
18913 already_handled=yes
18914 break
18915 fi
18916 done
18917 if test -z "$already_handled"; then
18918 names_already_handled="$names_already_handled $name"
18919 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18920 eval value=\"\$HAVE_LIB$uppername\"
18921 if test -n "$value"; then
18922 if test "$value" = yes; then
18923 eval value=\"\$LIB$uppername\"
18924 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18925 eval value=\"\$LTLIB$uppername\"
18926 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18927 else
18928 :
18929 fi
18930 else
18931 found_dir=
18932 found_la=
18933 found_so=
18934 found_a=
18935 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18936 if test -n "$acl_shlibext"; then
18937 shrext=".$acl_shlibext" # typically: shrext=.so
18938 else
18939 shrext=
18940 fi
18941 if test $use_additional = yes; then
18942 dir="$additional_libdir"
18943 if test -n "$acl_shlibext"; then
18944 if test -f "$dir/$libname$shrext"; then
18945 found_dir="$dir"
18946 found_so="$dir/$libname$shrext"
18947 else
18948 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18949 ver=`(cd "$dir" && \
18950 for f in "$libname$shrext".*; do echo "$f"; done \
18951 | sed -e "s,^$libname$shrext\\\\.,," \
18952 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18953 | sed 1q ) 2>/dev/null`
18954 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18955 found_dir="$dir"
18956 found_so="$dir/$libname$shrext.$ver"
18957 fi
18958 else
18959 eval library_names=\"$acl_library_names_spec\"
18960 for f in $library_names; do
18961 if test -f "$dir/$f"; then
18962 found_dir="$dir"
18963 found_so="$dir/$f"
18964 break
18965 fi
18966 done
18967 fi
18968 fi
18969 fi
18970 if test "X$found_dir" = "X"; then
18971 if test -f "$dir/$libname.$acl_libext"; then
18972 found_dir="$dir"
18973 found_a="$dir/$libname.$acl_libext"
18974 fi
18975 fi
18976 if test "X$found_dir" != "X"; then
18977 if test -f "$dir/$libname.la"; then
18978 found_la="$dir/$libname.la"
18979 fi
18980 fi
18981 fi
18982 if test "X$found_dir" = "X"; then
18983 for x in $LDFLAGS $LTLIBICONV; do
18984
18985 acl_save_prefix="$prefix"
18986 prefix="$acl_final_prefix"
18987 acl_save_exec_prefix="$exec_prefix"
18988 exec_prefix="$acl_final_exec_prefix"
18989 eval x=\"$x\"
18990 exec_prefix="$acl_save_exec_prefix"
18991 prefix="$acl_save_prefix"
18992
18993 case "$x" in
18994 -L*)
18995 dir=`echo "X$x" | sed -e 's/^X-L//'`
18996 if test -n "$acl_shlibext"; then
18997 if test -f "$dir/$libname$shrext"; then
18998 found_dir="$dir"
18999 found_so="$dir/$libname$shrext"
19000 else
19001 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19002 ver=`(cd "$dir" && \
19003 for f in "$libname$shrext".*; do echo "$f"; done \
19004 | sed -e "s,^$libname$shrext\\\\.,," \
19005 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19006 | sed 1q ) 2>/dev/null`
19007 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19008 found_dir="$dir"
19009 found_so="$dir/$libname$shrext.$ver"
19010 fi
19011 else
19012 eval library_names=\"$acl_library_names_spec\"
19013 for f in $library_names; do
19014 if test -f "$dir/$f"; then
19015 found_dir="$dir"
19016 found_so="$dir/$f"
19017 break
19018 fi
19019 done
19020 fi
19021 fi
19022 fi
19023 if test "X$found_dir" = "X"; then
19024 if test -f "$dir/$libname.$acl_libext"; then
19025 found_dir="$dir"
19026 found_a="$dir/$libname.$acl_libext"
19027 fi
19028 fi
19029 if test "X$found_dir" != "X"; then
19030 if test -f "$dir/$libname.la"; then
19031 found_la="$dir/$libname.la"
19032 fi
19033 fi
19034 ;;
19035 esac
19036 if test "X$found_dir" != "X"; then
19037 break
19038 fi
19039 done
19040 fi
19041 if test "X$found_dir" != "X"; then
19042 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19043 if test "X$found_so" != "X"; then
19044 if test "$enable_rpath" = no \
19045 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19046 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19048 else
19049 haveit=
19050 for x in $ltrpathdirs; do
19051 if test "X$x" = "X$found_dir"; then
19052 haveit=yes
19053 break
19054 fi
19055 done
19056 if test -z "$haveit"; then
19057 ltrpathdirs="$ltrpathdirs $found_dir"
19058 fi
19059 if test "$acl_hardcode_direct" = yes; then
19060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19061 else
19062 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19064 haveit=
19065 for x in $rpathdirs; do
19066 if test "X$x" = "X$found_dir"; then
19067 haveit=yes
19068 break
19069 fi
19070 done
19071 if test -z "$haveit"; then
19072 rpathdirs="$rpathdirs $found_dir"
19073 fi
19074 else
19075 haveit=
19076 for x in $LDFLAGS $LIBICONV; do
19077
19078 acl_save_prefix="$prefix"
19079 prefix="$acl_final_prefix"
19080 acl_save_exec_prefix="$exec_prefix"
19081 exec_prefix="$acl_final_exec_prefix"
19082 eval x=\"$x\"
19083 exec_prefix="$acl_save_exec_prefix"
19084 prefix="$acl_save_prefix"
19085
19086 if test "X$x" = "X-L$found_dir"; then
19087 haveit=yes
19088 break
19089 fi
19090 done
19091 if test -z "$haveit"; then
19092 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19093 fi
19094 if test "$acl_hardcode_minus_L" != no; then
19095 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19096 else
19097 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19098 fi
19099 fi
19100 fi
19101 fi
19102 else
19103 if test "X$found_a" != "X"; then
19104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19105 else
19106 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19107 fi
19108 fi
19109 additional_includedir=
19110 case "$found_dir" in
19111 */$acl_libdirstem | */$acl_libdirstem/)
19112 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19113 if test "$name" = 'iconv'; then
19114 LIBICONV_PREFIX="$basedir"
19115 fi
19116 additional_includedir="$basedir/include"
19117 ;;
19118 */$acl_libdirstem2 | */$acl_libdirstem2/)
19119 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19120 if test "$name" = 'iconv'; then
19121 LIBICONV_PREFIX="$basedir"
19122 fi
19123 additional_includedir="$basedir/include"
19124 ;;
19125 esac
19126 if test "X$additional_includedir" != "X"; then
19127 if test "X$additional_includedir" != "X/usr/include"; then
19128 haveit=
19129 if test "X$additional_includedir" = "X/usr/local/include"; then
19130 if test -n "$GCC"; then
19131 case $host_os in
19132 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19133 esac
19134 fi
19135 fi
19136 if test -z "$haveit"; then
19137 for x in $CPPFLAGS $INCICONV; do
19138
19139 acl_save_prefix="$prefix"
19140 prefix="$acl_final_prefix"
19141 acl_save_exec_prefix="$exec_prefix"
19142 exec_prefix="$acl_final_exec_prefix"
19143 eval x=\"$x\"
19144 exec_prefix="$acl_save_exec_prefix"
19145 prefix="$acl_save_prefix"
19146
19147 if test "X$x" = "X-I$additional_includedir"; then
19148 haveit=yes
19149 break
19150 fi
19151 done
19152 if test -z "$haveit"; then
19153 if test -d "$additional_includedir"; then
19154 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19155 fi
19156 fi
19157 fi
19158 fi
19159 fi
19160 if test -n "$found_la"; then
19161 save_libdir="$libdir"
19162 case "$found_la" in
19163 */* | *\\*) . "$found_la" ;;
19164 *) . "./$found_la" ;;
19165 esac
19166 libdir="$save_libdir"
19167 for dep in $dependency_libs; do
19168 case "$dep" in
19169 -L*)
19170 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19171 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19172 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19173 haveit=
19174 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19175 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19176 if test -n "$GCC"; then
19177 case $host_os in
19178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19179 esac
19180 fi
19181 fi
19182 if test -z "$haveit"; then
19183 haveit=
19184 for x in $LDFLAGS $LIBICONV; do
19185
19186 acl_save_prefix="$prefix"
19187 prefix="$acl_final_prefix"
19188 acl_save_exec_prefix="$exec_prefix"
19189 exec_prefix="$acl_final_exec_prefix"
19190 eval x=\"$x\"
19191 exec_prefix="$acl_save_exec_prefix"
19192 prefix="$acl_save_prefix"
19193
19194 if test "X$x" = "X-L$additional_libdir"; then
19195 haveit=yes
19196 break
19197 fi
19198 done
19199 if test -z "$haveit"; then
19200 if test -d "$additional_libdir"; then
19201 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19202 fi
19203 fi
19204 haveit=
19205 for x in $LDFLAGS $LTLIBICONV; do
19206
19207 acl_save_prefix="$prefix"
19208 prefix="$acl_final_prefix"
19209 acl_save_exec_prefix="$exec_prefix"
19210 exec_prefix="$acl_final_exec_prefix"
19211 eval x=\"$x\"
19212 exec_prefix="$acl_save_exec_prefix"
19213 prefix="$acl_save_prefix"
19214
19215 if test "X$x" = "X-L$additional_libdir"; then
19216 haveit=yes
19217 break
19218 fi
19219 done
19220 if test -z "$haveit"; then
19221 if test -d "$additional_libdir"; then
19222 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19223 fi
19224 fi
19225 fi
19226 fi
19227 ;;
19228 -R*)
19229 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19230 if test "$enable_rpath" != no; then
19231 haveit=
19232 for x in $rpathdirs; do
19233 if test "X$x" = "X$dir"; then
19234 haveit=yes
19235 break
19236 fi
19237 done
19238 if test -z "$haveit"; then
19239 rpathdirs="$rpathdirs $dir"
19240 fi
19241 haveit=
19242 for x in $ltrpathdirs; do
19243 if test "X$x" = "X$dir"; then
19244 haveit=yes
19245 break
19246 fi
19247 done
19248 if test -z "$haveit"; then
19249 ltrpathdirs="$ltrpathdirs $dir"
19250 fi
19251 fi
19252 ;;
19253 -l*)
19254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19255 ;;
19256 *.la)
19257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19258 ;;
19259 *)
19260 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19261 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19262 ;;
19263 esac
19264 done
19265 fi
19266 else
19267 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19269 fi
19270 fi
19271 fi
19272 done
19273 done
19274 if test "X$rpathdirs" != "X"; then
19275 if test -n "$acl_hardcode_libdir_separator"; then
19276 alldirs=
19277 for found_dir in $rpathdirs; do
19278 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19279 done
19280 acl_save_libdir="$libdir"
19281 libdir="$alldirs"
19282 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19283 libdir="$acl_save_libdir"
19284 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19285 else
19286 for found_dir in $rpathdirs; do
19287 acl_save_libdir="$libdir"
19288 libdir="$found_dir"
19289 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19290 libdir="$acl_save_libdir"
19291 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19292 done
19293 fi
19294 fi
19295 if test "X$ltrpathdirs" != "X"; then
19296 for found_dir in $ltrpathdirs; do
19297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19298 done
19299 fi
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19332 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
19333 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
19334 then :
19335 printf %s "(cached) " >&6
19336 else $as_nop
19337 gt_save_LIBS="$LIBS"
19338 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19341 #include <CoreFoundation/CFPreferences.h>
19342 int
19343 main (void)
19344 {
19345 CFPreferencesCopyAppValue(NULL, NULL)
19346 ;
19347 return 0;
19348 }
19349 _ACEOF
19350 if ac_fn_c_try_link "$LINENO"
19351 then :
19352 gt_cv_func_CFPreferencesCopyAppValue=yes
19353 else $as_nop
19354 gt_cv_func_CFPreferencesCopyAppValue=no
19355 fi
19356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19357 conftest$ac_exeext conftest.$ac_ext
19358 LIBS="$gt_save_LIBS"
19359 fi
19360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19361 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19362 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19363
19364 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19365
19366 fi
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19368 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
19369 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
19370 then :
19371 printf %s "(cached) " >&6
19372 else $as_nop
19373 gt_save_LIBS="$LIBS"
19374 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19377 #include <CoreFoundation/CFLocale.h>
19378 int
19379 main (void)
19380 {
19381 CFLocaleCopyCurrent();
19382 ;
19383 return 0;
19384 }
19385 _ACEOF
19386 if ac_fn_c_try_link "$LINENO"
19387 then :
19388 gt_cv_func_CFLocaleCopyCurrent=yes
19389 else $as_nop
19390 gt_cv_func_CFLocaleCopyCurrent=no
19391 fi
19392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS="$gt_save_LIBS"
19395 fi
19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19397 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19398 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19399
19400 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19401
19402 fi
19403 INTL_MACOSX_LIBS=
19404 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19405 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19406 fi
19407
19408
19409
19410
19411
19412
19413 LIBINTL=
19414 LTLIBINTL=
19415 POSUB=
19416
19417 case " $gt_needs " in
19418 *" need-formatstring-macros "*) gt_api_version=3 ;;
19419 *" need-ngettext "*) gt_api_version=2 ;;
19420 *) gt_api_version=1 ;;
19421 esac
19422 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19423 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19424
19425 if test "$USE_NLS" = "yes"; then
19426 gt_use_preinstalled_gnugettext=no
19427
19428
19429 if test $gt_api_version -ge 3; then
19430 gt_revision_test_code='
19431 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19432 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19433 #endif
19434 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19435 '
19436 else
19437 gt_revision_test_code=
19438 fi
19439 if test $gt_api_version -ge 2; then
19440 gt_expression_test_code=' + * ngettext ("", "", 0)'
19441 else
19442 gt_expression_test_code=
19443 fi
19444
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19446 printf %s "checking for GNU gettext in libc... " >&6; }
19447 if eval test \${$gt_func_gnugettext_libc+y}
19448 then :
19449 printf %s "(cached) " >&6
19450 else $as_nop
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453
19454 #include <libintl.h>
19455 $gt_revision_test_code
19456 extern int _nl_msg_cat_cntr;
19457 extern int *_nl_domain_bindings;
19458
19459 int
19460 main (void)
19461 {
19462
19463 bindtextdomain ("", "");
19464 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19465
19466 ;
19467 return 0;
19468 }
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"
19471 then :
19472 eval "$gt_func_gnugettext_libc=yes"
19473 else $as_nop
19474 eval "$gt_func_gnugettext_libc=no"
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19477 conftest$ac_exeext conftest.$ac_ext
19478 fi
19479 eval ac_res=\$$gt_func_gnugettext_libc
19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19481 printf "%s\n" "$ac_res" >&6; }
19482
19483 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19484
19485
19486
19487
19488
19489 am_save_CPPFLAGS="$CPPFLAGS"
19490
19491 for element in $INCICONV; do
19492 haveit=
19493 for x in $CPPFLAGS; do
19494
19495 acl_save_prefix="$prefix"
19496 prefix="$acl_final_prefix"
19497 acl_save_exec_prefix="$exec_prefix"
19498 exec_prefix="$acl_final_exec_prefix"
19499 eval x=\"$x\"
19500 exec_prefix="$acl_save_exec_prefix"
19501 prefix="$acl_save_prefix"
19502
19503 if test "X$x" = "X$element"; then
19504 haveit=yes
19505 break
19506 fi
19507 done
19508 if test -z "$haveit"; then
19509 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19510 fi
19511 done
19512
19513
19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19515 printf %s "checking for iconv... " >&6; }
19516 if test ${am_cv_func_iconv+y}
19517 then :
19518 printf %s "(cached) " >&6
19519 else $as_nop
19520
19521 am_cv_func_iconv="no, consider installing GNU libiconv"
19522 am_cv_lib_iconv=no
19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524 /* end confdefs.h. */
19525
19526 #include <stdlib.h>
19527 #include <iconv.h>
19528
19529 int
19530 main (void)
19531 {
19532 iconv_t cd = iconv_open("","");
19533 iconv(cd,NULL,NULL,NULL,NULL);
19534 iconv_close(cd);
19535 ;
19536 return 0;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_link "$LINENO"
19540 then :
19541 am_cv_func_iconv=yes
19542 fi
19543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19544 conftest$ac_exeext conftest.$ac_ext
19545 if test "$am_cv_func_iconv" != yes; then
19546 am_save_LIBS="$LIBS"
19547 LIBS="$LIBS $LIBICONV"
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550
19551 #include <stdlib.h>
19552 #include <iconv.h>
19553
19554 int
19555 main (void)
19556 {
19557 iconv_t cd = iconv_open("","");
19558 iconv(cd,NULL,NULL,NULL,NULL);
19559 iconv_close(cd);
19560 ;
19561 return 0;
19562 }
19563 _ACEOF
19564 if ac_fn_c_try_link "$LINENO"
19565 then :
19566 am_cv_lib_iconv=yes
19567 am_cv_func_iconv=yes
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19570 conftest$ac_exeext conftest.$ac_ext
19571 LIBS="$am_save_LIBS"
19572 fi
19573
19574 fi
19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19576 printf "%s\n" "$am_cv_func_iconv" >&6; }
19577 if test "$am_cv_func_iconv" = yes; then
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19579 printf %s "checking for working iconv... " >&6; }
19580 if test ${am_cv_func_iconv_works+y}
19581 then :
19582 printf %s "(cached) " >&6
19583 else $as_nop
19584
19585 am_save_LIBS="$LIBS"
19586 if test $am_cv_lib_iconv = yes; then
19587 LIBS="$LIBS $LIBICONV"
19588 fi
19589 if test "$cross_compiling" = yes
19590 then :
19591
19592 case "$host_os" in
19593 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19594 *) am_cv_func_iconv_works="guessing yes" ;;
19595 esac
19596
19597 else $as_nop
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600
19601 #include <iconv.h>
19602 #include <string.h>
19603 int main ()
19604 {
19605 int result = 0;
19606 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19607 returns. */
19608 {
19609 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19610 if (cd_utf8_to_88591 != (iconv_t)(-1))
19611 {
19612 static const char input[] = "\342\202\254"; /* EURO SIGN */
19613 char buf[10];
19614 const char *inptr = input;
19615 size_t inbytesleft = strlen (input);
19616 char *outptr = buf;
19617 size_t outbytesleft = sizeof (buf);
19618 size_t res = iconv (cd_utf8_to_88591,
19619 (char **) &inptr, &inbytesleft,
19620 &outptr, &outbytesleft);
19621 if (res == 0)
19622 result |= 1;
19623 iconv_close (cd_utf8_to_88591);
19624 }
19625 }
19626 /* Test against Solaris 10 bug: Failures are not distinguishable from
19627 successful returns. */
19628 {
19629 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19630 if (cd_ascii_to_88591 != (iconv_t)(-1))
19631 {
19632 static const char input[] = "\263";
19633 char buf[10];
19634 const char *inptr = input;
19635 size_t inbytesleft = strlen (input);
19636 char *outptr = buf;
19637 size_t outbytesleft = sizeof (buf);
19638 size_t res = iconv (cd_ascii_to_88591,
19639 (char **) &inptr, &inbytesleft,
19640 &outptr, &outbytesleft);
19641 if (res == 0)
19642 result |= 2;
19643 iconv_close (cd_ascii_to_88591);
19644 }
19645 }
19646 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
19647 {
19648 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19649 if (cd_88591_to_utf8 != (iconv_t)(-1))
19650 {
19651 static const char input[] = "\304";
19652 static char buf[2] = { (char)0xDE, (char)0xAD };
19653 const char *inptr = input;
19654 size_t inbytesleft = 1;
19655 char *outptr = buf;
19656 size_t outbytesleft = 1;
19657 size_t res = iconv (cd_88591_to_utf8,
19658 (char **) &inptr, &inbytesleft,
19659 &outptr, &outbytesleft);
19660 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19661 result |= 4;
19662 iconv_close (cd_88591_to_utf8);
19663 }
19664 }
19665 #if 0 /* This bug could be worked around by the caller. */
19666 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19667 {
19668 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19669 if (cd_88591_to_utf8 != (iconv_t)(-1))
19670 {
19671 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19672 char buf[50];
19673 const char *inptr = input;
19674 size_t inbytesleft = strlen (input);
19675 char *outptr = buf;
19676 size_t outbytesleft = sizeof (buf);
19677 size_t res = iconv (cd_88591_to_utf8,
19678 (char **) &inptr, &inbytesleft,
19679 &outptr, &outbytesleft);
19680 if ((int)res > 0)
19681 result |= 8;
19682 iconv_close (cd_88591_to_utf8);
19683 }
19684 }
19685 #endif
19686 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19687 provided. */
19688 if (/* Try standardized names. */
19689 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19690 /* Try IRIX, OSF/1 names. */
19691 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19692 /* Try AIX names. */
19693 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19694 /* Try HP-UX names. */
19695 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19696 result |= 16;
19697 return result;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_run "$LINENO"
19701 then :
19702 am_cv_func_iconv_works=yes
19703 else $as_nop
19704 am_cv_func_iconv_works=no
19705 fi
19706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19707 conftest.$ac_objext conftest.beam conftest.$ac_ext
19708 fi
19709
19710 LIBS="$am_save_LIBS"
19711
19712 fi
19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19714 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
19715 case "$am_cv_func_iconv_works" in
19716 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19717 *) am_func_iconv=yes ;;
19718 esac
19719 else
19720 am_func_iconv=no am_cv_lib_iconv=no
19721 fi
19722 if test "$am_func_iconv" = yes; then
19723
19724 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
19725
19726 fi
19727 if test "$am_cv_lib_iconv" = yes; then
19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19729 printf %s "checking how to link with libiconv... " >&6; }
19730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19731 printf "%s\n" "$LIBICONV" >&6; }
19732 else
19733 CPPFLAGS="$am_save_CPPFLAGS"
19734 LIBICONV=
19735 LTLIBICONV=
19736 fi
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748 use_additional=yes
19749
19750 acl_save_prefix="$prefix"
19751 prefix="$acl_final_prefix"
19752 acl_save_exec_prefix="$exec_prefix"
19753 exec_prefix="$acl_final_exec_prefix"
19754
19755 eval additional_includedir=\"$includedir\"
19756 eval additional_libdir=\"$libdir\"
19757
19758 exec_prefix="$acl_save_exec_prefix"
19759 prefix="$acl_save_prefix"
19760
19761
19762 # Check whether --with-libintl-prefix was given.
19763 if test ${with_libintl_prefix+y}
19764 then :
19765 withval=$with_libintl_prefix;
19766 if test "X$withval" = "Xno"; then
19767 use_additional=no
19768 else
19769 if test "X$withval" = "X"; then
19770
19771 acl_save_prefix="$prefix"
19772 prefix="$acl_final_prefix"
19773 acl_save_exec_prefix="$exec_prefix"
19774 exec_prefix="$acl_final_exec_prefix"
19775
19776 eval additional_includedir=\"$includedir\"
19777 eval additional_libdir=\"$libdir\"
19778
19779 exec_prefix="$acl_save_exec_prefix"
19780 prefix="$acl_save_prefix"
19781
19782 else
19783 additional_includedir="$withval/include"
19784 additional_libdir="$withval/$acl_libdirstem"
19785 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19786 && ! test -d "$withval/$acl_libdirstem"; then
19787 additional_libdir="$withval/$acl_libdirstem2"
19788 fi
19789 fi
19790 fi
19791
19792 fi
19793
19794 LIBINTL=
19795 LTLIBINTL=
19796 INCINTL=
19797 LIBINTL_PREFIX=
19798 HAVE_LIBINTL=
19799 rpathdirs=
19800 ltrpathdirs=
19801 names_already_handled=
19802 names_next_round='intl '
19803 while test -n "$names_next_round"; do
19804 names_this_round="$names_next_round"
19805 names_next_round=
19806 for name in $names_this_round; do
19807 already_handled=
19808 for n in $names_already_handled; do
19809 if test "$n" = "$name"; then
19810 already_handled=yes
19811 break
19812 fi
19813 done
19814 if test -z "$already_handled"; then
19815 names_already_handled="$names_already_handled $name"
19816 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19817 eval value=\"\$HAVE_LIB$uppername\"
19818 if test -n "$value"; then
19819 if test "$value" = yes; then
19820 eval value=\"\$LIB$uppername\"
19821 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19822 eval value=\"\$LTLIB$uppername\"
19823 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19824 else
19825 :
19826 fi
19827 else
19828 found_dir=
19829 found_la=
19830 found_so=
19831 found_a=
19832 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19833 if test -n "$acl_shlibext"; then
19834 shrext=".$acl_shlibext" # typically: shrext=.so
19835 else
19836 shrext=
19837 fi
19838 if test $use_additional = yes; then
19839 dir="$additional_libdir"
19840 if test -n "$acl_shlibext"; then
19841 if test -f "$dir/$libname$shrext"; then
19842 found_dir="$dir"
19843 found_so="$dir/$libname$shrext"
19844 else
19845 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19846 ver=`(cd "$dir" && \
19847 for f in "$libname$shrext".*; do echo "$f"; done \
19848 | sed -e "s,^$libname$shrext\\\\.,," \
19849 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19850 | sed 1q ) 2>/dev/null`
19851 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19852 found_dir="$dir"
19853 found_so="$dir/$libname$shrext.$ver"
19854 fi
19855 else
19856 eval library_names=\"$acl_library_names_spec\"
19857 for f in $library_names; do
19858 if test -f "$dir/$f"; then
19859 found_dir="$dir"
19860 found_so="$dir/$f"
19861 break
19862 fi
19863 done
19864 fi
19865 fi
19866 fi
19867 if test "X$found_dir" = "X"; then
19868 if test -f "$dir/$libname.$acl_libext"; then
19869 found_dir="$dir"
19870 found_a="$dir/$libname.$acl_libext"
19871 fi
19872 fi
19873 if test "X$found_dir" != "X"; then
19874 if test -f "$dir/$libname.la"; then
19875 found_la="$dir/$libname.la"
19876 fi
19877 fi
19878 fi
19879 if test "X$found_dir" = "X"; then
19880 for x in $LDFLAGS $LTLIBINTL; do
19881
19882 acl_save_prefix="$prefix"
19883 prefix="$acl_final_prefix"
19884 acl_save_exec_prefix="$exec_prefix"
19885 exec_prefix="$acl_final_exec_prefix"
19886 eval x=\"$x\"
19887 exec_prefix="$acl_save_exec_prefix"
19888 prefix="$acl_save_prefix"
19889
19890 case "$x" in
19891 -L*)
19892 dir=`echo "X$x" | sed -e 's/^X-L//'`
19893 if test -n "$acl_shlibext"; then
19894 if test -f "$dir/$libname$shrext"; then
19895 found_dir="$dir"
19896 found_so="$dir/$libname$shrext"
19897 else
19898 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19899 ver=`(cd "$dir" && \
19900 for f in "$libname$shrext".*; do echo "$f"; done \
19901 | sed -e "s,^$libname$shrext\\\\.,," \
19902 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19903 | sed 1q ) 2>/dev/null`
19904 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19905 found_dir="$dir"
19906 found_so="$dir/$libname$shrext.$ver"
19907 fi
19908 else
19909 eval library_names=\"$acl_library_names_spec\"
19910 for f in $library_names; do
19911 if test -f "$dir/$f"; then
19912 found_dir="$dir"
19913 found_so="$dir/$f"
19914 break
19915 fi
19916 done
19917 fi
19918 fi
19919 fi
19920 if test "X$found_dir" = "X"; then
19921 if test -f "$dir/$libname.$acl_libext"; then
19922 found_dir="$dir"
19923 found_a="$dir/$libname.$acl_libext"
19924 fi
19925 fi
19926 if test "X$found_dir" != "X"; then
19927 if test -f "$dir/$libname.la"; then
19928 found_la="$dir/$libname.la"
19929 fi
19930 fi
19931 ;;
19932 esac
19933 if test "X$found_dir" != "X"; then
19934 break
19935 fi
19936 done
19937 fi
19938 if test "X$found_dir" != "X"; then
19939 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19940 if test "X$found_so" != "X"; then
19941 if test "$enable_rpath" = no \
19942 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19943 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19944 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19945 else
19946 haveit=
19947 for x in $ltrpathdirs; do
19948 if test "X$x" = "X$found_dir"; then
19949 haveit=yes
19950 break
19951 fi
19952 done
19953 if test -z "$haveit"; then
19954 ltrpathdirs="$ltrpathdirs $found_dir"
19955 fi
19956 if test "$acl_hardcode_direct" = yes; then
19957 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19958 else
19959 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19960 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19961 haveit=
19962 for x in $rpathdirs; do
19963 if test "X$x" = "X$found_dir"; then
19964 haveit=yes
19965 break
19966 fi
19967 done
19968 if test -z "$haveit"; then
19969 rpathdirs="$rpathdirs $found_dir"
19970 fi
19971 else
19972 haveit=
19973 for x in $LDFLAGS $LIBINTL; do
19974
19975 acl_save_prefix="$prefix"
19976 prefix="$acl_final_prefix"
19977 acl_save_exec_prefix="$exec_prefix"
19978 exec_prefix="$acl_final_exec_prefix"
19979 eval x=\"$x\"
19980 exec_prefix="$acl_save_exec_prefix"
19981 prefix="$acl_save_prefix"
19982
19983 if test "X$x" = "X-L$found_dir"; then
19984 haveit=yes
19985 break
19986 fi
19987 done
19988 if test -z "$haveit"; then
19989 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19990 fi
19991 if test "$acl_hardcode_minus_L" != no; then
19992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19993 else
19994 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19995 fi
19996 fi
19997 fi
19998 fi
19999 else
20000 if test "X$found_a" != "X"; then
20001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20002 else
20003 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20004 fi
20005 fi
20006 additional_includedir=
20007 case "$found_dir" in
20008 */$acl_libdirstem | */$acl_libdirstem/)
20009 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20010 if test "$name" = 'intl'; then
20011 LIBINTL_PREFIX="$basedir"
20012 fi
20013 additional_includedir="$basedir/include"
20014 ;;
20015 */$acl_libdirstem2 | */$acl_libdirstem2/)
20016 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20017 if test "$name" = 'intl'; then
20018 LIBINTL_PREFIX="$basedir"
20019 fi
20020 additional_includedir="$basedir/include"
20021 ;;
20022 esac
20023 if test "X$additional_includedir" != "X"; then
20024 if test "X$additional_includedir" != "X/usr/include"; then
20025 haveit=
20026 if test "X$additional_includedir" = "X/usr/local/include"; then
20027 if test -n "$GCC"; then
20028 case $host_os in
20029 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20030 esac
20031 fi
20032 fi
20033 if test -z "$haveit"; then
20034 for x in $CPPFLAGS $INCINTL; do
20035
20036 acl_save_prefix="$prefix"
20037 prefix="$acl_final_prefix"
20038 acl_save_exec_prefix="$exec_prefix"
20039 exec_prefix="$acl_final_exec_prefix"
20040 eval x=\"$x\"
20041 exec_prefix="$acl_save_exec_prefix"
20042 prefix="$acl_save_prefix"
20043
20044 if test "X$x" = "X-I$additional_includedir"; then
20045 haveit=yes
20046 break
20047 fi
20048 done
20049 if test -z "$haveit"; then
20050 if test -d "$additional_includedir"; then
20051 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20052 fi
20053 fi
20054 fi
20055 fi
20056 fi
20057 if test -n "$found_la"; then
20058 save_libdir="$libdir"
20059 case "$found_la" in
20060 */* | *\\*) . "$found_la" ;;
20061 *) . "./$found_la" ;;
20062 esac
20063 libdir="$save_libdir"
20064 for dep in $dependency_libs; do
20065 case "$dep" in
20066 -L*)
20067 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20068 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20069 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20070 haveit=
20071 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20072 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20073 if test -n "$GCC"; then
20074 case $host_os in
20075 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20076 esac
20077 fi
20078 fi
20079 if test -z "$haveit"; then
20080 haveit=
20081 for x in $LDFLAGS $LIBINTL; do
20082
20083 acl_save_prefix="$prefix"
20084 prefix="$acl_final_prefix"
20085 acl_save_exec_prefix="$exec_prefix"
20086 exec_prefix="$acl_final_exec_prefix"
20087 eval x=\"$x\"
20088 exec_prefix="$acl_save_exec_prefix"
20089 prefix="$acl_save_prefix"
20090
20091 if test "X$x" = "X-L$additional_libdir"; then
20092 haveit=yes
20093 break
20094 fi
20095 done
20096 if test -z "$haveit"; then
20097 if test -d "$additional_libdir"; then
20098 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20099 fi
20100 fi
20101 haveit=
20102 for x in $LDFLAGS $LTLIBINTL; do
20103
20104 acl_save_prefix="$prefix"
20105 prefix="$acl_final_prefix"
20106 acl_save_exec_prefix="$exec_prefix"
20107 exec_prefix="$acl_final_exec_prefix"
20108 eval x=\"$x\"
20109 exec_prefix="$acl_save_exec_prefix"
20110 prefix="$acl_save_prefix"
20111
20112 if test "X$x" = "X-L$additional_libdir"; then
20113 haveit=yes
20114 break
20115 fi
20116 done
20117 if test -z "$haveit"; then
20118 if test -d "$additional_libdir"; then
20119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20120 fi
20121 fi
20122 fi
20123 fi
20124 ;;
20125 -R*)
20126 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20127 if test "$enable_rpath" != no; then
20128 haveit=
20129 for x in $rpathdirs; do
20130 if test "X$x" = "X$dir"; then
20131 haveit=yes
20132 break
20133 fi
20134 done
20135 if test -z "$haveit"; then
20136 rpathdirs="$rpathdirs $dir"
20137 fi
20138 haveit=
20139 for x in $ltrpathdirs; do
20140 if test "X$x" = "X$dir"; then
20141 haveit=yes
20142 break
20143 fi
20144 done
20145 if test -z "$haveit"; then
20146 ltrpathdirs="$ltrpathdirs $dir"
20147 fi
20148 fi
20149 ;;
20150 -l*)
20151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20152 ;;
20153 *.la)
20154 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20155 ;;
20156 *)
20157 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20158 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20159 ;;
20160 esac
20161 done
20162 fi
20163 else
20164 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20166 fi
20167 fi
20168 fi
20169 done
20170 done
20171 if test "X$rpathdirs" != "X"; then
20172 if test -n "$acl_hardcode_libdir_separator"; then
20173 alldirs=
20174 for found_dir in $rpathdirs; do
20175 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20176 done
20177 acl_save_libdir="$libdir"
20178 libdir="$alldirs"
20179 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20180 libdir="$acl_save_libdir"
20181 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20182 else
20183 for found_dir in $rpathdirs; do
20184 acl_save_libdir="$libdir"
20185 libdir="$found_dir"
20186 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20187 libdir="$acl_save_libdir"
20188 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20189 done
20190 fi
20191 fi
20192 if test "X$ltrpathdirs" != "X"; then
20193 for found_dir in $ltrpathdirs; do
20194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20195 done
20196 fi
20197
20198
20199
20200
20201
20202
20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20204 printf %s "checking for GNU gettext in libintl... " >&6; }
20205 if eval test \${$gt_func_gnugettext_libintl+y}
20206 then :
20207 printf %s "(cached) " >&6
20208 else $as_nop
20209 gt_save_CPPFLAGS="$CPPFLAGS"
20210 CPPFLAGS="$CPPFLAGS $INCINTL"
20211 gt_save_LIBS="$LIBS"
20212 LIBS="$LIBS $LIBINTL"
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20215
20216 #include <libintl.h>
20217 $gt_revision_test_code
20218 extern int _nl_msg_cat_cntr;
20219 extern
20220 #ifdef __cplusplus
20221 "C"
20222 #endif
20223 const char *_nl_expand_alias (const char *);
20224
20225 int
20226 main (void)
20227 {
20228
20229 bindtextdomain ("", "");
20230 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20231
20232 ;
20233 return 0;
20234 }
20235 _ACEOF
20236 if ac_fn_c_try_link "$LINENO"
20237 then :
20238 eval "$gt_func_gnugettext_libintl=yes"
20239 else $as_nop
20240 eval "$gt_func_gnugettext_libintl=no"
20241 fi
20242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20243 conftest$ac_exeext conftest.$ac_ext
20244 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20245 LIBS="$LIBS $LIBICONV"
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20248
20249 #include <libintl.h>
20250 $gt_revision_test_code
20251 extern int _nl_msg_cat_cntr;
20252 extern
20253 #ifdef __cplusplus
20254 "C"
20255 #endif
20256 const char *_nl_expand_alias (const char *);
20257
20258 int
20259 main (void)
20260 {
20261
20262 bindtextdomain ("", "");
20263 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20264
20265 ;
20266 return 0;
20267 }
20268 _ACEOF
20269 if ac_fn_c_try_link "$LINENO"
20270 then :
20271 LIBINTL="$LIBINTL $LIBICONV"
20272 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20273 eval "$gt_func_gnugettext_libintl=yes"
20274
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20277 conftest$ac_exeext conftest.$ac_ext
20278 fi
20279 CPPFLAGS="$gt_save_CPPFLAGS"
20280 LIBS="$gt_save_LIBS"
20281 fi
20282 eval ac_res=\$$gt_func_gnugettext_libintl
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20284 printf "%s\n" "$ac_res" >&6; }
20285 fi
20286
20287 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20288 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20289 && test "$PACKAGE" != gettext-runtime \
20290 && test "$PACKAGE" != gettext-tools; }; then
20291 gt_use_preinstalled_gnugettext=yes
20292 else
20293 LIBINTL=
20294 LTLIBINTL=
20295 INCINTL=
20296 fi
20297
20298
20299
20300 if test -n "$INTL_MACOSX_LIBS"; then
20301 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20302 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20303 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20304 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20305 fi
20306 fi
20307
20308 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20309 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20310
20311 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
20312
20313 else
20314 USE_NLS=no
20315 fi
20316 fi
20317
20318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20319 printf %s "checking whether to use NLS... " >&6; }
20320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20321 printf "%s\n" "$USE_NLS" >&6; }
20322 if test "$USE_NLS" = "yes"; then
20323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20324 printf %s "checking where the gettext function comes from... " >&6; }
20325 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20326 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20327 gt_source="external libintl"
20328 else
20329 gt_source="libc"
20330 fi
20331 else
20332 gt_source="included intl directory"
20333 fi
20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20335 printf "%s\n" "$gt_source" >&6; }
20336 fi
20337
20338 if test "$USE_NLS" = "yes"; then
20339
20340 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20341 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20343 printf %s "checking how to link with libintl... " >&6; }
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20345 printf "%s\n" "$LIBINTL" >&6; }
20346
20347 for element in $INCINTL; do
20348 haveit=
20349 for x in $CPPFLAGS; do
20350
20351 acl_save_prefix="$prefix"
20352 prefix="$acl_final_prefix"
20353 acl_save_exec_prefix="$exec_prefix"
20354 exec_prefix="$acl_final_exec_prefix"
20355 eval x=\"$x\"
20356 exec_prefix="$acl_save_exec_prefix"
20357 prefix="$acl_save_prefix"
20358
20359 if test "X$x" = "X$element"; then
20360 haveit=yes
20361 break
20362 fi
20363 done
20364 if test -z "$haveit"; then
20365 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20366 fi
20367 done
20368
20369 fi
20370
20371
20372 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
20373
20374
20375 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
20376
20377 fi
20378
20379 POSUB=po
20380 fi
20381
20382
20383
20384 INTLLIBS="$LIBINTL"
20385
20386
20387
20388
20389
20390
20391
20392
20393 DYNAMIC_LOADER_LIBS="-ldl"
20394
20395
20396
20397 build_input_plugins=""
20398 build_actor_plugins=""
20399 build_morph_plugins=""
20400
20401 # Check whether --enable-pulseaudio was given.
20402 if test ${enable_pulseaudio+y}
20403 then :
20404 enableval=$enable_pulseaudio; ENABLE_INPUT_PULSEAUDIO=$enableval
20405 else $as_nop
20406 ENABLE_INPUT_PULSEAUDIO=yes
20407 fi
20408
20409 if test "$ENABLE_INPUT_PULSEAUDIO" = "yes"; then
20410
20411 pkg_failed=no
20412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5
20413 printf %s "checking for libpulse... " >&6; }
20414
20415 if test -n "$LIBPULSE_CFLAGS"; then
20416 pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS"
20417 elif test -n "$PKG_CONFIG"; then
20418 if test -n "$PKG_CONFIG" && \
20419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
20420 ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
20421 ac_status=$?
20422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20423 test $ac_status = 0; }; then
20424 pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null`
20425 test "x$?" != "x0" && pkg_failed=yes
20426 else
20427 pkg_failed=yes
20428 fi
20429 else
20430 pkg_failed=untried
20431 fi
20432 if test -n "$LIBPULSE_LIBS"; then
20433 pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS"
20434 elif test -n "$PKG_CONFIG"; then
20435 if test -n "$PKG_CONFIG" && \
20436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
20437 ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
20438 ac_status=$?
20439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20440 test $ac_status = 0; }; then
20441 pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null`
20442 test "x$?" != "x0" && pkg_failed=yes
20443 else
20444 pkg_failed=yes
20445 fi
20446 else
20447 pkg_failed=untried
20448 fi
20449
20450
20451
20452 if test $pkg_failed = yes; then
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20454 printf "%s\n" "no" >&6; }
20455
20456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20457 _pkg_short_errors_supported=yes
20458 else
20459 _pkg_short_errors_supported=no
20460 fi
20461 if test $_pkg_short_errors_supported = yes; then
20462 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse" 2>&1`
20463 else
20464 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse" 2>&1`
20465 fi
20466 # Put the nasty error message in config.log where it belongs
20467 echo "$LIBPULSE_PKG_ERRORS" >&5
20468
20469 HAVE_LIBPULSE="no"
20470 elif test $pkg_failed = untried; then
20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472 printf "%s\n" "no" >&6; }
20473 HAVE_LIBPULSE="no"
20474 else
20475 LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS
20476 LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS
20477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20478 printf "%s\n" "yes" >&6; }
20479 HAVE_LIBPULSE="yes"
20480 fi
20481 if test "$HAVE_LIBPULSE" = "yes"; then
20482 build_input_plugins="$build_input_plugins pulseaudio"
20483 else
20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find libpulse of PulseAudio.
20485 The PulseAudio input plugin won't be built." >&5
20486 printf "%s\n" "$as_me: WARNING: *** Could not find libpulse of PulseAudio.
20487 The PulseAudio input plugin won't be built." >&2;}
20488 fi
20489 fi
20490
20491 # Check whether --enable-jack was given.
20492 if test ${enable_jack+y}
20493 then :
20494 enableval=$enable_jack; ENABLE_INPUT_JACK=$enableval
20495 else $as_nop
20496 ENABLE_INPUT_JACK=yes
20497 fi
20498
20499
20500 if test "$ENABLE_INPUT_JACK" = "yes"; then
20501
20502 pkg_failed=no
20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.98.0" >&5
20504 printf %s "checking for jack >= 0.98.0... " >&6; }
20505
20506 if test -n "$LIBJACK_CFLAGS"; then
20507 pkg_cv_LIBJACK_CFLAGS="$LIBJACK_CFLAGS"
20508 elif test -n "$PKG_CONFIG"; then
20509 if test -n "$PKG_CONFIG" && \
20510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.98.0\""; } >&5
20511 ($PKG_CONFIG --exists --print-errors "jack >= 0.98.0") 2>&5
20512 ac_status=$?
20513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20514 test $ac_status = 0; }; then
20515 pkg_cv_LIBJACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.98.0" 2>/dev/null`
20516 test "x$?" != "x0" && pkg_failed=yes
20517 else
20518 pkg_failed=yes
20519 fi
20520 else
20521 pkg_failed=untried
20522 fi
20523 if test -n "$LIBJACK_LIBS"; then
20524 pkg_cv_LIBJACK_LIBS="$LIBJACK_LIBS"
20525 elif test -n "$PKG_CONFIG"; then
20526 if test -n "$PKG_CONFIG" && \
20527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.98.0\""; } >&5
20528 ($PKG_CONFIG --exists --print-errors "jack >= 0.98.0") 2>&5
20529 ac_status=$?
20530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20531 test $ac_status = 0; }; then
20532 pkg_cv_LIBJACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.98.0" 2>/dev/null`
20533 test "x$?" != "x0" && pkg_failed=yes
20534 else
20535 pkg_failed=yes
20536 fi
20537 else
20538 pkg_failed=untried
20539 fi
20540
20541
20542
20543 if test $pkg_failed = yes; then
20544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 printf "%s\n" "no" >&6; }
20546
20547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20548 _pkg_short_errors_supported=yes
20549 else
20550 _pkg_short_errors_supported=no
20551 fi
20552 if test $_pkg_short_errors_supported = yes; then
20553 LIBJACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.98.0" 2>&1`
20554 else
20555 LIBJACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.98.0" 2>&1`
20556 fi
20557 # Put the nasty error message in config.log where it belongs
20558 echo "$LIBJACK_PKG_ERRORS" >&5
20559
20560 HAVE_JACK="no"
20561 elif test $pkg_failed = untried; then
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20563 printf "%s\n" "no" >&6; }
20564 HAVE_JACK="no"
20565 else
20566 LIBJACK_CFLAGS=$pkg_cv_LIBJACK_CFLAGS
20567 LIBJACK_LIBS=$pkg_cv_LIBJACK_LIBS
20568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20569 printf "%s\n" "yes" >&6; }
20570 HAVE_JACK="yes"
20571 fi
20572 if test "$HAVE_JACK" = "yes"; then
20573 build_input_plugins="$build_input_plugins jack"
20574 else
20575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** libjack is too old. You can download a newer version at
20576 http://jackit.sf.net/. The jackit input plugin won't be built" >&5
20577 printf "%s\n" "$as_me: WARNING: *** libjack is too old. You can download a newer version at
20578 http://jackit.sf.net/. The jackit input plugin won't be built" >&2;}
20579 fi
20580 fi
20581
20582 # Check whether --enable-portaudio was given.
20583 if test ${enable_portaudio+y}
20584 then :
20585 enableval=$enable_portaudio; ENABLE_INPUT_PORTAUDIO=$enableval
20586 else $as_nop
20587 ENABLE_INPUT_PORTAUDIO=yes
20588 fi
20589
20590 if test "$ENABLE_INPUT_PORTAUDIO" = yes
20591 then :
20592
20593
20594 pkg_failed=no
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0" >&5
20596 printf %s "checking for portaudio-2.0... " >&6; }
20597
20598 if test -n "$PORTAUDIO_CFLAGS"; then
20599 pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
20600 elif test -n "$PKG_CONFIG"; then
20601 if test -n "$PKG_CONFIG" && \
20602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
20603 ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
20604 ac_status=$?
20605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20606 test $ac_status = 0; }; then
20607 pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0" 2>/dev/null`
20608 test "x$?" != "x0" && pkg_failed=yes
20609 else
20610 pkg_failed=yes
20611 fi
20612 else
20613 pkg_failed=untried
20614 fi
20615 if test -n "$PORTAUDIO_LIBS"; then
20616 pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
20617 elif test -n "$PKG_CONFIG"; then
20618 if test -n "$PKG_CONFIG" && \
20619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
20620 ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
20621 ac_status=$?
20622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20623 test $ac_status = 0; }; then
20624 pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0" 2>/dev/null`
20625 test "x$?" != "x0" && pkg_failed=yes
20626 else
20627 pkg_failed=yes
20628 fi
20629 else
20630 pkg_failed=untried
20631 fi
20632
20633
20634
20635 if test $pkg_failed = yes; then
20636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20637 printf "%s\n" "no" >&6; }
20638
20639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20640 _pkg_short_errors_supported=yes
20641 else
20642 _pkg_short_errors_supported=no
20643 fi
20644 if test $_pkg_short_errors_supported = yes; then
20645 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0" 2>&1`
20646 else
20647 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0" 2>&1`
20648 fi
20649 # Put the nasty error message in config.log where it belongs
20650 echo "$PORTAUDIO_PKG_ERRORS" >&5
20651
20652 HAVE_PORTAUDIO="no"
20653 elif test $pkg_failed = untried; then
20654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20655 printf "%s\n" "no" >&6; }
20656 HAVE_PORTAUDIO="no"
20657 else
20658 PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
20659 PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
20660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20661 printf "%s\n" "yes" >&6; }
20662 HAVE_PORTAUDIO="yes"
20663 fi
20664 if test "$HAVE_PORTAUDIO" = yes
20665 then :
20666
20667 build_input_plugins="$build_input_plugins portaudio"
20668
20669 else $as_nop
20670
20671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find PortAudio.
20672 The PortAudio input plugin won't be built." >&5
20673 printf "%s\n" "$as_me: WARNING: *** Could not find PortAudio.
20674 The PortAudio input plugin won't be built." >&2;}
20675
20676 fi
20677
20678 fi
20679
20680 # Check whether --enable-gdkpixbuf-plugin was given.
20681 if test ${enable_gdkpixbuf_plugin+y}
20682 then :
20683 enableval=$enable_gdkpixbuf_plugin; ENABLE_PLUGIN_GDKPIXBUF=$enableval
20684 else $as_nop
20685 ENABLE_PLUGIN_GDKPIXBUF=yes
20686 fi
20687
20688
20689 if test "$ENABLE_PLUGIN_GDKPIXBUF" = "yes"; then
20690
20691 pkg_failed=no
20692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.0" >&5
20693 printf %s "checking for gtk+-3.0 >= 3.0... " >&6; }
20694
20695 if test -n "$GTK_CFLAGS"; then
20696 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
20697 elif test -n "$PKG_CONFIG"; then
20698 if test -n "$PKG_CONFIG" && \
20699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.0\""; } >&5
20700 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.0") 2>&5
20701 ac_status=$?
20702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20703 test $ac_status = 0; }; then
20704 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.0" 2>/dev/null`
20705 test "x$?" != "x0" && pkg_failed=yes
20706 else
20707 pkg_failed=yes
20708 fi
20709 else
20710 pkg_failed=untried
20711 fi
20712 if test -n "$GTK_LIBS"; then
20713 pkg_cv_GTK_LIBS="$GTK_LIBS"
20714 elif test -n "$PKG_CONFIG"; then
20715 if test -n "$PKG_CONFIG" && \
20716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.0\""; } >&5
20717 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.0") 2>&5
20718 ac_status=$?
20719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20720 test $ac_status = 0; }; then
20721 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.0" 2>/dev/null`
20722 test "x$?" != "x0" && pkg_failed=yes
20723 else
20724 pkg_failed=yes
20725 fi
20726 else
20727 pkg_failed=untried
20728 fi
20729
20730
20731
20732 if test $pkg_failed = yes; then
20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734 printf "%s\n" "no" >&6; }
20735
20736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20737 _pkg_short_errors_supported=yes
20738 else
20739 _pkg_short_errors_supported=no
20740 fi
20741 if test $_pkg_short_errors_supported = yes; then
20742 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.0" 2>&1`
20743 else
20744 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.0" 2>&1`
20745 fi
20746 # Put the nasty error message in config.log where it belongs
20747 echo "$GTK_PKG_ERRORS" >&5
20748
20749 HAVE_GTK="no"
20750 elif test $pkg_failed = untried; then
20751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20752 printf "%s\n" "no" >&6; }
20753 HAVE_GTK="no"
20754 else
20755 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
20756 GTK_LIBS=$pkg_cv_GTK_LIBS
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20758 printf "%s\n" "yes" >&6; }
20759 HAVE_GTK="yes"
20760 fi
20761
20762 if test "$HAVE_GTK" = "yes"; then
20763 build_actor_plugins="$build_actor_plugins gdkpixbuf"
20764 else
20765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** GTK+ >= ${3.0} is not found.
20766 The libvisual GdkPixbuf image loader plugin won't be built.
20767 GdkPixbuf is included within gtk+-3.0 and newer, which can be
20768 downloaded at https://www.gtk.org/" >&5
20769 printf "%s\n" "$as_me: WARNING: *** GTK+ >= ${3.0} is not found.
20770 The libvisual GdkPixbuf image loader plugin won't be built.
20771 GdkPixbuf is included within gtk+-3.0 and newer, which can be
20772 downloaded at https://www.gtk.org/" >&2;}
20773 fi
20774 fi
20775
20776 # Check whether --enable-gstreamer-plugin was given.
20777 if test ${enable_gstreamer_plugin+y}
20778 then :
20779 enableval=$enable_gstreamer_plugin; ENABLE_GSTREAMER_PLUGIN=$enableval
20780 else $as_nop
20781 ENABLE_GSTREAMER_PLUGIN=yes
20782 fi
20783
20784
20785 if test "$ENABLE_GSTREAMER_PLUGIN" = "yes"; then
20786
20787 pkg_failed=no
20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-1.0 >= 1.0" >&5
20789 printf %s "checking for gstreamer-1.0 >= 1.0... " >&6; }
20790
20791 if test -n "$GSTREAMER_CFLAGS"; then
20792 pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
20793 elif test -n "$PKG_CONFIG"; then
20794 if test -n "$PKG_CONFIG" && \
20795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= 1.0\""; } >&5
20796 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= 1.0") 2>&5
20797 ac_status=$?
20798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20799 test $ac_status = 0; }; then
20800 pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0 >= 1.0" 2>/dev/null`
20801 test "x$?" != "x0" && pkg_failed=yes
20802 else
20803 pkg_failed=yes
20804 fi
20805 else
20806 pkg_failed=untried
20807 fi
20808 if test -n "$GSTREAMER_LIBS"; then
20809 pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
20810 elif test -n "$PKG_CONFIG"; then
20811 if test -n "$PKG_CONFIG" && \
20812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= 1.0\""; } >&5
20813 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= 1.0") 2>&5
20814 ac_status=$?
20815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20816 test $ac_status = 0; }; then
20817 pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0 >= 1.0" 2>/dev/null`
20818 test "x$?" != "x0" && pkg_failed=yes
20819 else
20820 pkg_failed=yes
20821 fi
20822 else
20823 pkg_failed=untried
20824 fi
20825
20826
20827
20828 if test $pkg_failed = yes; then
20829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 printf "%s\n" "no" >&6; }
20831
20832 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20833 _pkg_short_errors_supported=yes
20834 else
20835 _pkg_short_errors_supported=no
20836 fi
20837 if test $_pkg_short_errors_supported = yes; then
20838 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0 >= 1.0" 2>&1`
20839 else
20840 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0 >= 1.0" 2>&1`
20841 fi
20842 # Put the nasty error message in config.log where it belongs
20843 echo "$GSTREAMER_PKG_ERRORS" >&5
20844
20845 HAVE_GSTREAMER="no"
20846 elif test $pkg_failed = untried; then
20847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 printf "%s\n" "no" >&6; }
20849 HAVE_GSTREAMER="no"
20850 else
20851 GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20852 GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20854 printf "%s\n" "yes" >&6; }
20855 HAVE_GSTREAMER="yes"
20856 fi
20857
20858 if test "$HAVE_GSTREAMER" = "yes"; then
20859 build_actor_plugins="$build_actor_plugins gstreamer"
20860 else
20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** GStreamer >= ${1.0} is not found.
20862 The libvisual GStreamer viewer plugin won't be build.
20863 GStreamer can be downloaded from https://gstreamer.freedesktop.org/" >&5
20864 printf "%s\n" "$as_me: WARNING: *** GStreamer >= ${1.0} is not found.
20865 The libvisual GStreamer viewer plugin won't be build.
20866 GStreamer can be downloaded from https://gstreamer.freedesktop.org/" >&2;}
20867 fi
20868 fi
20869
20870 # Check whether --enable-opengl was given.
20871 if test ${enable_opengl+y}
20872 then :
20873 enableval=$enable_opengl; ENABLE_OPENGL_ACTORS=$enableval
20874 else $as_nop
20875 ENABLE_OPENGL_ACTORS=yes
20876 fi
20877
20878
20879
20880
20881 # Check whether --with-xquartz-gl was given.
20882 if test ${with_xquartz_gl+y}
20883 then :
20884 withval=$with_xquartz_gl; if test "X$with_xquartz_gl"="Xyes"
20885 then :
20886 with_xquartz_gl="/opt/X11"
20887 fi
20888 else $as_nop
20889 with_xquartz_gl=no
20890 fi
20891
20892 if test "X$with_xquartz_gl" != "Xno"
20893 then :
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OSX X11 path" >&5
20895 printf %s "checking OSX X11 path... " >&6; }
20896 if test -e "$with_xquartz_gl"
20897 then :
20898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$with_xquartz_gl\"" >&5
20899 printf "%s\n" "\"$with_xquartz_gl\"" >&6; }
20900 CFLAGS="-I$with_xquartz_gl/include $CFLAGS"
20901 LIBS="-L$with_xquartz_gl/lib $LIBS"
20902
20903 else $as_nop
20904 with_xquartz_gl=no
20905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20906 printf "%s\n" "no" >&6; }
20907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&5
20908 printf "%s\n" "$as_me: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&2;}
20909
20910 fi
20911
20912 fi
20913
20914 if test "$ENABLE_OPENGL_ACTORS" = "yes"
20915 then :
20916
20917
20918
20919
20920
20921
20922 case ${host} in #(
20923 *-darwin*) :
20924
20925
20926 if test "x$with_xquartz_gl" != "xno"
20927 then :
20928 GL_LIBS="${GL_LIBS:--lGL}"
20929 else $as_nop
20930 GL_LIBS="${GL_LIBS:--framework OpenGL}"
20931 fi
20932 ;; #(
20933 *-cygwin*|*-mingw*) :
20934
20935
20936 if test -n "$GL_LIBS"
20937 then :
20938
20939 else $as_nop
20940
20941 ax_check_gl_manual_libs_generic_extra_libs="opengl32 GL gl"
20942 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"
20943 then :
20944 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
20945 fi
20946
20947
20948
20949
20950 _ax_gl_saved_flag_cflags="$CFLAGS"
20951 CFLAGS="$GL_CFLAGS $CFLAGS"
20952
20953
20954
20955 ac_ext=c
20956 ac_cpp='$CPP $CPPFLAGS'
20957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20960
20961
20962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
20963 printf %s "checking for library containing glBegin... " >&6; }
20964 if test ${ac_cv_search_glBegin+y}
20965 then :
20966 printf %s "(cached) " >&6
20967 else $as_nop
20968 ac_func_search_save_LIBS=$LIBS
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20975 char glBegin ();
20976 int
20977 main (void)
20978 {
20979 return glBegin ();
20980 ;
20981 return 0;
20982 }
20983 _ACEOF
20984 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs
20985 do
20986 if test -z "$ac_lib"; then
20987 ac_res="none required"
20988 else
20989 ac_res=-l$ac_lib
20990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20991 fi
20992 if ac_fn_c_try_link "$LINENO"
20993 then :
20994 ac_cv_search_glBegin=$ac_res
20995 fi
20996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20997 conftest$ac_exeext
20998 if test ${ac_cv_search_glBegin+y}
20999 then :
21000 break
21001 fi
21002 done
21003 if test ${ac_cv_search_glBegin+y}
21004 then :
21005
21006 else $as_nop
21007 ac_cv_search_glBegin=no
21008 fi
21009 rm conftest.$ac_ext
21010 LIBS=$ac_func_search_save_LIBS
21011 fi
21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
21013 printf "%s\n" "$ac_cv_search_glBegin" >&6; }
21014 ac_res=$ac_cv_search_glBegin
21015 if test "$ac_res" != no
21016 then :
21017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21018
21019 ax_check_gl_lib_opengl="yes"
21020 break
21021
21022 fi
21023
21024 if test "X$ax_check_gl_lib_opengl"="Xyes"
21025 then :
21026 GL_LIBS="${ac_cv_search_glBegin}"
21027 fi
21028
21029
21030
21031 CFLAGS="$_ax_gl_saved_flag_cflags"
21032
21033
21034
21035
21036 ac_ext=c
21037 ac_cpp='$CPP $CPPFLAGS'
21038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21041
21042
21043
21044 fi
21045
21046 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21047 if test "x$ac_cv_header_windows_h" = xyes
21048 then :
21049 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21050
21051 fi
21052
21053 ;; #(
21054 *) :
21055
21056
21057
21058
21059
21060
21061
21062 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21063 if test -n "$ac_tool_prefix"; then
21064 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21067 printf %s "checking for $ac_word... " >&6; }
21068 if test ${ac_cv_path_PKG_CONFIG+y}
21069 then :
21070 printf %s "(cached) " >&6
21071 else $as_nop
21072 case $PKG_CONFIG in
21073 [\\/]* | ?:[\\/]*)
21074 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21075 ;;
21076 *)
21077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21078 for as_dir in $PATH
21079 do
21080 IFS=$as_save_IFS
21081 case $as_dir in #(((
21082 '') as_dir=./ ;;
21083 */) ;;
21084 *) as_dir=$as_dir/ ;;
21085 esac
21086 for ac_exec_ext in '' $ac_executable_extensions; do
21087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21088 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21090 break 2
21091 fi
21092 done
21093 done
21094 IFS=$as_save_IFS
21095
21096 ;;
21097 esac
21098 fi
21099 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21100 if test -n "$PKG_CONFIG"; then
21101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21102 printf "%s\n" "$PKG_CONFIG" >&6; }
21103 else
21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21105 printf "%s\n" "no" >&6; }
21106 fi
21107
21108
21109 fi
21110 if test -z "$ac_cv_path_PKG_CONFIG"; then
21111 ac_pt_PKG_CONFIG=$PKG_CONFIG
21112 # Extract the first word of "pkg-config", so it can be a program name with args.
21113 set dummy pkg-config; ac_word=$2
21114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21115 printf %s "checking for $ac_word... " >&6; }
21116 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21117 then :
21118 printf %s "(cached) " >&6
21119 else $as_nop
21120 case $ac_pt_PKG_CONFIG in
21121 [\\/]* | ?:[\\/]*)
21122 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21123 ;;
21124 *)
21125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21126 for as_dir in $PATH
21127 do
21128 IFS=$as_save_IFS
21129 case $as_dir in #(((
21130 '') as_dir=./ ;;
21131 */) ;;
21132 *) as_dir=$as_dir/ ;;
21133 esac
21134 for ac_exec_ext in '' $ac_executable_extensions; do
21135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21136 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21138 break 2
21139 fi
21140 done
21141 done
21142 IFS=$as_save_IFS
21143
21144 ;;
21145 esac
21146 fi
21147 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21148 if test -n "$ac_pt_PKG_CONFIG"; then
21149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21150 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21151 else
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153 printf "%s\n" "no" >&6; }
21154 fi
21155
21156 if test "x$ac_pt_PKG_CONFIG" = x; then
21157 PKG_CONFIG=""
21158 else
21159 case $cross_compiling:$ac_tool_warned in
21160 yes:)
21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21163 ac_tool_warned=yes ;;
21164 esac
21165 PKG_CONFIG=$ac_pt_PKG_CONFIG
21166 fi
21167 else
21168 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21169 fi
21170
21171 fi
21172 if test -n "$PKG_CONFIG"; then
21173 _pkg_min_version=0.9.0
21174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21175 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21176 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21178 printf "%s\n" "yes" >&6; }
21179 else
21180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21181 printf "%s\n" "no" >&6; }
21182 PKG_CONFIG=""
21183 fi
21184 fi
21185
21186 pkg_failed=no
21187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gl" >&5
21188 printf %s "checking for gl... " >&6; }
21189
21190 if test -n "$GL_CFLAGS"; then
21191 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
21192 elif test -n "$PKG_CONFIG"; then
21193 if test -n "$PKG_CONFIG" && \
21194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
21195 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
21196 ac_status=$?
21197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198 test $ac_status = 0; }; then
21199 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
21200 test "x$?" != "x0" && pkg_failed=yes
21201 else
21202 pkg_failed=yes
21203 fi
21204 else
21205 pkg_failed=untried
21206 fi
21207 if test -n "$GL_LIBS"; then
21208 pkg_cv_GL_LIBS="$GL_LIBS"
21209 elif test -n "$PKG_CONFIG"; then
21210 if test -n "$PKG_CONFIG" && \
21211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
21212 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
21213 ac_status=$?
21214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21215 test $ac_status = 0; }; then
21216 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
21217 test "x$?" != "x0" && pkg_failed=yes
21218 else
21219 pkg_failed=yes
21220 fi
21221 else
21222 pkg_failed=untried
21223 fi
21224
21225
21226
21227 if test $pkg_failed = yes; then
21228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21229 printf "%s\n" "no" >&6; }
21230
21231 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21232 _pkg_short_errors_supported=yes
21233 else
21234 _pkg_short_errors_supported=no
21235 fi
21236 if test $_pkg_short_errors_supported = yes; then
21237 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
21238 else
21239 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
21240 fi
21241 # Put the nasty error message in config.log where it belongs
21242 echo "$GL_PKG_ERRORS" >&5
21243
21244
21245 if test -n "$GL_LIBS"
21246 then :
21247
21248 else $as_nop
21249
21250 ax_check_gl_manual_libs_generic_extra_libs="GL gl"
21251 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"
21252 then :
21253 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
21254 fi
21255
21256
21257
21258
21259 _ax_gl_saved_flag_cflags="$CFLAGS"
21260 CFLAGS="$GL_CFLAGS $CFLAGS"
21261
21262
21263
21264 ac_ext=c
21265 ac_cpp='$CPP $CPPFLAGS'
21266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21269
21270
21271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
21272 printf %s "checking for library containing glBegin... " >&6; }
21273 if test ${ac_cv_search_glBegin+y}
21274 then :
21275 printf %s "(cached) " >&6
21276 else $as_nop
21277 ac_func_search_save_LIBS=$LIBS
21278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279 /* end confdefs.h. */
21280
21281 /* Override any GCC internal prototype to avoid an error.
21282 Use char because int might match the return type of a GCC
21283 builtin and then its argument prototype would still apply. */
21284 char glBegin ();
21285 int
21286 main (void)
21287 {
21288 return glBegin ();
21289 ;
21290 return 0;
21291 }
21292 _ACEOF
21293 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs
21294 do
21295 if test -z "$ac_lib"; then
21296 ac_res="none required"
21297 else
21298 ac_res=-l$ac_lib
21299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21300 fi
21301 if ac_fn_c_try_link "$LINENO"
21302 then :
21303 ac_cv_search_glBegin=$ac_res
21304 fi
21305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21306 conftest$ac_exeext
21307 if test ${ac_cv_search_glBegin+y}
21308 then :
21309 break
21310 fi
21311 done
21312 if test ${ac_cv_search_glBegin+y}
21313 then :
21314
21315 else $as_nop
21316 ac_cv_search_glBegin=no
21317 fi
21318 rm conftest.$ac_ext
21319 LIBS=$ac_func_search_save_LIBS
21320 fi
21321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
21322 printf "%s\n" "$ac_cv_search_glBegin" >&6; }
21323 ac_res=$ac_cv_search_glBegin
21324 if test "$ac_res" != no
21325 then :
21326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21327
21328 ax_check_gl_lib_opengl="yes"
21329 break
21330
21331 fi
21332
21333 if test "X$ax_check_gl_lib_opengl"="Xyes"
21334 then :
21335 GL_LIBS="${ac_cv_search_glBegin}"
21336 fi
21337
21338
21339
21340 CFLAGS="$_ax_gl_saved_flag_cflags"
21341
21342
21343
21344
21345 ac_ext=c
21346 ac_cpp='$CPP $CPPFLAGS'
21347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350
21351
21352
21353 fi
21354
21355 elif test $pkg_failed = untried; then
21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21357 printf "%s\n" "no" >&6; }
21358
21359 if test -n "$GL_LIBS"
21360 then :
21361
21362 else $as_nop
21363
21364 ax_check_gl_manual_libs_generic_extra_libs="GL gl"
21365 if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"
21366 then :
21367 as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5
21368 fi
21369
21370
21371
21372
21373 _ax_gl_saved_flag_cflags="$CFLAGS"
21374 CFLAGS="$GL_CFLAGS $CFLAGS"
21375
21376
21377
21378 ac_ext=c
21379 ac_cpp='$CPP $CPPFLAGS'
21380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21383
21384
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
21386 printf %s "checking for library containing glBegin... " >&6; }
21387 if test ${ac_cv_search_glBegin+y}
21388 then :
21389 printf %s "(cached) " >&6
21390 else $as_nop
21391 ac_func_search_save_LIBS=$LIBS
21392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21393 /* end confdefs.h. */
21394
21395 /* Override any GCC internal prototype to avoid an error.
21396 Use char because int might match the return type of a GCC
21397 builtin and then its argument prototype would still apply. */
21398 char glBegin ();
21399 int
21400 main (void)
21401 {
21402 return glBegin ();
21403 ;
21404 return 0;
21405 }
21406 _ACEOF
21407 for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs
21408 do
21409 if test -z "$ac_lib"; then
21410 ac_res="none required"
21411 else
21412 ac_res=-l$ac_lib
21413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21414 fi
21415 if ac_fn_c_try_link "$LINENO"
21416 then :
21417 ac_cv_search_glBegin=$ac_res
21418 fi
21419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21420 conftest$ac_exeext
21421 if test ${ac_cv_search_glBegin+y}
21422 then :
21423 break
21424 fi
21425 done
21426 if test ${ac_cv_search_glBegin+y}
21427 then :
21428
21429 else $as_nop
21430 ac_cv_search_glBegin=no
21431 fi
21432 rm conftest.$ac_ext
21433 LIBS=$ac_func_search_save_LIBS
21434 fi
21435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
21436 printf "%s\n" "$ac_cv_search_glBegin" >&6; }
21437 ac_res=$ac_cv_search_glBegin
21438 if test "$ac_res" != no
21439 then :
21440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21441
21442 ax_check_gl_lib_opengl="yes"
21443 break
21444
21445 fi
21446
21447 if test "X$ax_check_gl_lib_opengl"="Xyes"
21448 then :
21449 GL_LIBS="${ac_cv_search_glBegin}"
21450 fi
21451
21452
21453
21454 CFLAGS="$_ax_gl_saved_flag_cflags"
21455
21456
21457
21458
21459 ac_ext=c
21460 ac_cpp='$CPP $CPPFLAGS'
21461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21464
21465
21466
21467 fi
21468
21469 else
21470 GL_CFLAGS=$pkg_cv_GL_CFLAGS
21471 GL_LIBS=$pkg_cv_GL_LIBS
21472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21473 printf "%s\n" "yes" >&6; }
21474
21475 fi
21476 ;;
21477 esac
21478
21479
21480
21481 _ax_gl_saved_flag_cflags="$CFLAGS"
21482 CFLAGS="$GL_CFLAGS $CFLAGS"
21483
21484
21485
21486 ac_ext=c
21487 ac_cpp='$CPP $CPPFLAGS'
21488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21491
21492
21493 for ac_header in GL/gl.h OpenGL/gl.h
21494 do :
21495 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21497 if eval test \"x\$"$as_ac_Header"\" = x"yes"
21498 then :
21499 cat >>confdefs.h <<_ACEOF
21500 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21501 _ACEOF
21502 ax_check_gl_have_headers="yes";break
21503 fi
21504
21505 done
21506
21507
21508
21509 CFLAGS="$_ax_gl_saved_flag_cflags"
21510
21511
21512
21513
21514 ac_ext=c
21515 ac_cpp='$CPP $CPPFLAGS'
21516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21519
21520
21521
21522 if test "X$ax_check_gl_have_headers" = "Xyes"
21523 then :
21524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL program" >&5
21525 printf %s "checking for compiling a minimal OpenGL program... " >&6; }
21526 if test ${ax_cv_check_gl_compile_opengl+y}
21527 then :
21528 printf %s "(cached) " >&6
21529 else $as_nop
21530
21531
21532
21533 _ax_gl_saved_flag_cflags="$CFLAGS"
21534 CFLAGS="$GL_CFLAGS $CFLAGS"
21535
21536
21537
21538 ac_ext=c
21539 ac_cpp='$CPP $CPPFLAGS'
21540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21543
21544
21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21547
21548 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
21549 # include <windows.h>
21550 # endif
21551 # ifdef HAVE_GL_GL_H
21552 # include <GL/gl.h>
21553 # elif defined(HAVE_OPENGL_GL_H)
21554 # include <OpenGL/gl.h>
21555 # else
21556 # error no gl.h
21557 # endif
21558
21559 int
21560 main (void)
21561 {
21562 glBegin(0)
21563 ;
21564 return 0;
21565 }
21566 _ACEOF
21567 if ac_fn_c_try_compile "$LINENO"
21568 then :
21569 ax_check_gl_compile_opengl="yes"
21570 else $as_nop
21571 ax_check_gl_compile_opengl="no"
21572 fi
21573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21574
21575
21576
21577 CFLAGS="$_ax_gl_saved_flag_cflags"
21578
21579
21580
21581
21582 ac_ext=c
21583 ac_cpp='$CPP $CPPFLAGS'
21584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21587
21588
21589
21590 ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"
21591 fi
21592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_compile_opengl" >&5
21593 printf "%s\n" "$ax_cv_check_gl_compile_opengl" >&6; }
21594 ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}"
21595
21596 else $as_nop
21597 no_gl=yes
21598 fi
21599 if test "X$ax_check_gl_compile_opengl" = "Xyes"
21600 then :
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL program" >&5
21602 printf %s "checking for linking a minimal OpenGL program... " >&6; }
21603 if test ${ax_cv_check_gl_link_opengl+y}
21604 then :
21605 printf %s "(cached) " >&6
21606 else $as_nop
21607
21608
21609
21610 _ax_gl_saved_flag_cflags="$CFLAGS"
21611 CFLAGS="$GL_CFLAGS $CFLAGS"
21612
21613
21614 _ax_gl_saved_flag_libs="$LIBS"
21615 LIBS="$GL_LIBS $LIBS"
21616
21617
21618 _ax_gl_saved_flag_ldflags="$LDFLAGS"
21619 LDFLAGS="$GL_LDFLAGS $LDFLAGS"
21620
21621
21622
21623
21624
21625 ac_ext=c
21626 ac_cpp='$CPP $CPPFLAGS'
21627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21630
21631
21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h. */
21634
21635 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
21636 # include <windows.h>
21637 # endif
21638 # ifdef HAVE_GL_GL_H
21639 # include <GL/gl.h>
21640 # elif defined(HAVE_OPENGL_GL_H)
21641 # include <OpenGL/gl.h>
21642 # else
21643 # error no gl.h
21644 # endif
21645
21646 int
21647 main (void)
21648 {
21649 glBegin(0)
21650 ;
21651 return 0;
21652 }
21653 _ACEOF
21654 if ac_fn_c_try_link "$LINENO"
21655 then :
21656 ax_check_gl_link_opengl="yes"
21657 else $as_nop
21658 ax_check_gl_link_opengl="no"
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21661 conftest$ac_exeext conftest.$ac_ext
21662
21663
21664
21665 CFLAGS="$_ax_gl_saved_flag_cflags"
21666
21667
21668 LIBS="$_ax_gl_saved_flag_libs"
21669
21670
21671 LDFLAGS="$_ax_gl_saved_flag_ldflags"
21672
21673
21674
21675
21676
21677
21678 ac_ext=c
21679 ac_cpp='$CPP $CPPFLAGS'
21680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21683
21684
21685
21686 ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"
21687 fi
21688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_opengl" >&5
21689 printf "%s\n" "$ax_cv_check_gl_link_opengl" >&6; }
21690 ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}"
21691
21692 else $as_nop
21693 no_gl=yes
21694 fi
21695 if test "X$no_gl" = "X"
21696 then :
21697
21698 printf "%s\n" "#define HAVE_GL 1" >>confdefs.h
21699
21700 HAVE_OPENGL="yes"
21701
21702 else $as_nop
21703 HAVE_OPENGL="no"
21704
21705 fi
21706
21707
21708
21709
21710
21711
21712
21713
21714 case ${host} in #(
21715 *-darwin*) :
21716
21717
21718 if test "x$with_xquartz_gl" != "xno"
21719 then :
21720 GLU_LIBS="${GLU_LIBS:--lGLU}"
21721 else $as_nop
21722 GLU_LIBS="${GLU_LIBS:--framework OpenGL}"
21723 fi
21724 ;; #(
21725 *-cygwin*) :
21726
21727
21728 ac_ext=c
21729 ac_cpp='$CPP $CPPFLAGS'
21730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21733
21734
21735
21736 _ax_glu_saved_flag_cflags="$CFLAGS"
21737 CFLAGS="$GLU_CFLAGS $CFLAGS"
21738
21739
21740 _ax_glu_saved_flag_libs="$LIBS"
21741 LIBS="$GLU_LIBS $LIBS"
21742
21743
21744
21745
21746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
21747 printf %s "checking for library containing gluBeginCurve... " >&6; }
21748 if test ${ac_cv_search_gluBeginCurve+y}
21749 then :
21750 printf %s "(cached) " >&6
21751 else $as_nop
21752 ac_func_search_save_LIBS=$LIBS
21753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h. */
21755
21756 /* Override any GCC internal prototype to avoid an error.
21757 Use char because int might match the return type of a GCC
21758 builtin and then its argument prototype would still apply. */
21759 char gluBeginCurve ();
21760 int
21761 main (void)
21762 {
21763 return gluBeginCurve ();
21764 ;
21765 return 0;
21766 }
21767 _ACEOF
21768 for ac_lib in '' GLU glu MesaGLU glu32
21769 do
21770 if test -z "$ac_lib"; then
21771 ac_res="none required"
21772 else
21773 ac_res=-l$ac_lib
21774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21775 fi
21776 if ac_fn_c_try_link "$LINENO"
21777 then :
21778 ac_cv_search_gluBeginCurve=$ac_res
21779 fi
21780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21781 conftest$ac_exeext
21782 if test ${ac_cv_search_gluBeginCurve+y}
21783 then :
21784 break
21785 fi
21786 done
21787 if test ${ac_cv_search_gluBeginCurve+y}
21788 then :
21789
21790 else $as_nop
21791 ac_cv_search_gluBeginCurve=no
21792 fi
21793 rm conftest.$ac_ext
21794 LIBS=$ac_func_search_save_LIBS
21795 fi
21796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
21797 printf "%s\n" "$ac_cv_search_gluBeginCurve" >&6; }
21798 ac_res=$ac_cv_search_gluBeginCurve
21799 if test "$ac_res" != no
21800 then :
21801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21802 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
21803 fi
21804
21805
21806
21807
21808 CFLAGS="$_ax_glu_saved_flag_cflags"
21809
21810
21811 LIBS="$_ax_glu_saved_flag_libs"
21812
21813
21814
21815
21816 ac_ext=c
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21821
21822
21823
21824 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21825 if test "x$ac_cv_header_windows_h" = xyes
21826 then :
21827 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21828
21829 fi
21830 ;; #(
21831 # try first native
21832 *-mingw*) :
21833
21834
21835 ac_ext=c
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
21841
21842
21843 _ax_glu_saved_flag_cflags="$CFLAGS"
21844 CFLAGS="$GLU_CFLAGS $CFLAGS"
21845
21846
21847 _ax_glu_saved_flag_libs="$LIBS"
21848 LIBS="$GLU_LIBS $LIBS"
21849
21850
21851
21852
21853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
21854 printf %s "checking for library containing gluBeginCurve... " >&6; }
21855 if test ${ac_cv_search_gluBeginCurve+y}
21856 then :
21857 printf %s "(cached) " >&6
21858 else $as_nop
21859 ac_func_search_save_LIBS=$LIBS
21860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861 /* end confdefs.h. */
21862
21863 /* Override any GCC internal prototype to avoid an error.
21864 Use char because int might match the return type of a GCC
21865 builtin and then its argument prototype would still apply. */
21866 char gluBeginCurve ();
21867 int
21868 main (void)
21869 {
21870 return gluBeginCurve ();
21871 ;
21872 return 0;
21873 }
21874 _ACEOF
21875 for ac_lib in '' glu32 GLU glu MesaGLU
21876 do
21877 if test -z "$ac_lib"; then
21878 ac_res="none required"
21879 else
21880 ac_res=-l$ac_lib
21881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21882 fi
21883 if ac_fn_c_try_link "$LINENO"
21884 then :
21885 ac_cv_search_gluBeginCurve=$ac_res
21886 fi
21887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21888 conftest$ac_exeext
21889 if test ${ac_cv_search_gluBeginCurve+y}
21890 then :
21891 break
21892 fi
21893 done
21894 if test ${ac_cv_search_gluBeginCurve+y}
21895 then :
21896
21897 else $as_nop
21898 ac_cv_search_gluBeginCurve=no
21899 fi
21900 rm conftest.$ac_ext
21901 LIBS=$ac_func_search_save_LIBS
21902 fi
21903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
21904 printf "%s\n" "$ac_cv_search_gluBeginCurve" >&6; }
21905 ac_res=$ac_cv_search_gluBeginCurve
21906 if test "$ac_res" != no
21907 then :
21908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21909 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
21910 fi
21911
21912
21913
21914
21915 CFLAGS="$_ax_glu_saved_flag_cflags"
21916
21917
21918 LIBS="$_ax_glu_saved_flag_libs"
21919
21920
21921
21922
21923 ac_ext=c
21924 ac_cpp='$CPP $CPPFLAGS'
21925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21928
21929
21930
21931 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21932 if test "x$ac_cv_header_windows_h" = xyes
21933 then :
21934 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21935
21936 fi
21937 ;; #(
21938 *) :
21939
21940
21941
21942
21943
21944
21945
21946 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21947 if test -n "$ac_tool_prefix"; then
21948 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21949 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21951 printf %s "checking for $ac_word... " >&6; }
21952 if test ${ac_cv_path_PKG_CONFIG+y}
21953 then :
21954 printf %s "(cached) " >&6
21955 else $as_nop
21956 case $PKG_CONFIG in
21957 [\\/]* | ?:[\\/]*)
21958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21959 ;;
21960 *)
21961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21962 for as_dir in $PATH
21963 do
21964 IFS=$as_save_IFS
21965 case $as_dir in #(((
21966 '') as_dir=./ ;;
21967 */) ;;
21968 *) as_dir=$as_dir/ ;;
21969 esac
21970 for ac_exec_ext in '' $ac_executable_extensions; do
21971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21972 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21974 break 2
21975 fi
21976 done
21977 done
21978 IFS=$as_save_IFS
21979
21980 ;;
21981 esac
21982 fi
21983 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21984 if test -n "$PKG_CONFIG"; then
21985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21986 printf "%s\n" "$PKG_CONFIG" >&6; }
21987 else
21988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 printf "%s\n" "no" >&6; }
21990 fi
21991
21992
21993 fi
21994 if test -z "$ac_cv_path_PKG_CONFIG"; then
21995 ac_pt_PKG_CONFIG=$PKG_CONFIG
21996 # Extract the first word of "pkg-config", so it can be a program name with args.
21997 set dummy pkg-config; ac_word=$2
21998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21999 printf %s "checking for $ac_word... " >&6; }
22000 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22001 then :
22002 printf %s "(cached) " >&6
22003 else $as_nop
22004 case $ac_pt_PKG_CONFIG in
22005 [\\/]* | ?:[\\/]*)
22006 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22007 ;;
22008 *)
22009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22010 for as_dir in $PATH
22011 do
22012 IFS=$as_save_IFS
22013 case $as_dir in #(((
22014 '') as_dir=./ ;;
22015 */) ;;
22016 *) as_dir=$as_dir/ ;;
22017 esac
22018 for ac_exec_ext in '' $ac_executable_extensions; do
22019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22020 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22022 break 2
22023 fi
22024 done
22025 done
22026 IFS=$as_save_IFS
22027
22028 ;;
22029 esac
22030 fi
22031 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22032 if test -n "$ac_pt_PKG_CONFIG"; then
22033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22034 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22035 else
22036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22037 printf "%s\n" "no" >&6; }
22038 fi
22039
22040 if test "x$ac_pt_PKG_CONFIG" = x; then
22041 PKG_CONFIG=""
22042 else
22043 case $cross_compiling:$ac_tool_warned in
22044 yes:)
22045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22047 ac_tool_warned=yes ;;
22048 esac
22049 PKG_CONFIG=$ac_pt_PKG_CONFIG
22050 fi
22051 else
22052 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22053 fi
22054
22055 fi
22056 if test -n "$PKG_CONFIG"; then
22057 _pkg_min_version=0.9.0
22058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22059 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22060 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22062 printf "%s\n" "yes" >&6; }
22063 else
22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 printf "%s\n" "no" >&6; }
22066 PKG_CONFIG=""
22067 fi
22068 fi
22069
22070 pkg_failed=no
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glu" >&5
22072 printf %s "checking for glu... " >&6; }
22073
22074 if test -n "$GLU_CFLAGS"; then
22075 pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
22076 elif test -n "$PKG_CONFIG"; then
22077 if test -n "$PKG_CONFIG" && \
22078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
22079 ($PKG_CONFIG --exists --print-errors "glu") 2>&5
22080 ac_status=$?
22081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; then
22083 pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "glu" 2>/dev/null`
22084 test "x$?" != "x0" && pkg_failed=yes
22085 else
22086 pkg_failed=yes
22087 fi
22088 else
22089 pkg_failed=untried
22090 fi
22091 if test -n "$GLU_LIBS"; then
22092 pkg_cv_GLU_LIBS="$GLU_LIBS"
22093 elif test -n "$PKG_CONFIG"; then
22094 if test -n "$PKG_CONFIG" && \
22095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5
22096 ($PKG_CONFIG --exists --print-errors "glu") 2>&5
22097 ac_status=$?
22098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; then
22100 pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "glu" 2>/dev/null`
22101 test "x$?" != "x0" && pkg_failed=yes
22102 else
22103 pkg_failed=yes
22104 fi
22105 else
22106 pkg_failed=untried
22107 fi
22108
22109
22110
22111 if test $pkg_failed = yes; then
22112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 printf "%s\n" "no" >&6; }
22114
22115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22116 _pkg_short_errors_supported=yes
22117 else
22118 _pkg_short_errors_supported=no
22119 fi
22120 if test $_pkg_short_errors_supported = yes; then
22121 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glu" 2>&1`
22122 else
22123 GLU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glu" 2>&1`
22124 fi
22125 # Put the nasty error message in config.log where it belongs
22126 echo "$GLU_PKG_ERRORS" >&5
22127
22128
22129
22130 ac_ext=c
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136
22137
22138 _ax_glu_saved_flag_cflags="$CFLAGS"
22139 CFLAGS="$GLU_CFLAGS $CFLAGS"
22140
22141
22142 _ax_glu_saved_flag_libs="$LIBS"
22143 LIBS="$GLU_LIBS $LIBS"
22144
22145
22146
22147
22148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
22149 printf %s "checking for library containing gluBeginCurve... " >&6; }
22150 if test ${ac_cv_search_gluBeginCurve+y}
22151 then :
22152 printf %s "(cached) " >&6
22153 else $as_nop
22154 ac_func_search_save_LIBS=$LIBS
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h. */
22157
22158 /* Override any GCC internal prototype to avoid an error.
22159 Use char because int might match the return type of a GCC
22160 builtin and then its argument prototype would still apply. */
22161 char gluBeginCurve ();
22162 int
22163 main (void)
22164 {
22165 return gluBeginCurve ();
22166 ;
22167 return 0;
22168 }
22169 _ACEOF
22170 for ac_lib in '' GLU glu MesaGLU
22171 do
22172 if test -z "$ac_lib"; then
22173 ac_res="none required"
22174 else
22175 ac_res=-l$ac_lib
22176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22177 fi
22178 if ac_fn_c_try_link "$LINENO"
22179 then :
22180 ac_cv_search_gluBeginCurve=$ac_res
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22183 conftest$ac_exeext
22184 if test ${ac_cv_search_gluBeginCurve+y}
22185 then :
22186 break
22187 fi
22188 done
22189 if test ${ac_cv_search_gluBeginCurve+y}
22190 then :
22191
22192 else $as_nop
22193 ac_cv_search_gluBeginCurve=no
22194 fi
22195 rm conftest.$ac_ext
22196 LIBS=$ac_func_search_save_LIBS
22197 fi
22198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
22199 printf "%s\n" "$ac_cv_search_gluBeginCurve" >&6; }
22200 ac_res=$ac_cv_search_gluBeginCurve
22201 if test "$ac_res" != no
22202 then :
22203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22204 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
22205 fi
22206
22207
22208
22209
22210 CFLAGS="$_ax_glu_saved_flag_cflags"
22211
22212
22213 LIBS="$_ax_glu_saved_flag_libs"
22214
22215
22216
22217
22218 ac_ext=c
22219 ac_cpp='$CPP $CPPFLAGS'
22220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223
22224
22225
22226 elif test $pkg_failed = untried; then
22227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22228 printf "%s\n" "no" >&6; }
22229
22230
22231 ac_ext=c
22232 ac_cpp='$CPP $CPPFLAGS'
22233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236
22237
22238
22239 _ax_glu_saved_flag_cflags="$CFLAGS"
22240 CFLAGS="$GLU_CFLAGS $CFLAGS"
22241
22242
22243 _ax_glu_saved_flag_libs="$LIBS"
22244 LIBS="$GLU_LIBS $LIBS"
22245
22246
22247
22248
22249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5
22250 printf %s "checking for library containing gluBeginCurve... " >&6; }
22251 if test ${ac_cv_search_gluBeginCurve+y}
22252 then :
22253 printf %s "(cached) " >&6
22254 else $as_nop
22255 ac_func_search_save_LIBS=$LIBS
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22258
22259 /* Override any GCC internal prototype to avoid an error.
22260 Use char because int might match the return type of a GCC
22261 builtin and then its argument prototype would still apply. */
22262 char gluBeginCurve ();
22263 int
22264 main (void)
22265 {
22266 return gluBeginCurve ();
22267 ;
22268 return 0;
22269 }
22270 _ACEOF
22271 for ac_lib in '' GLU glu MesaGLU
22272 do
22273 if test -z "$ac_lib"; then
22274 ac_res="none required"
22275 else
22276 ac_res=-l$ac_lib
22277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22278 fi
22279 if ac_fn_c_try_link "$LINENO"
22280 then :
22281 ac_cv_search_gluBeginCurve=$ac_res
22282 fi
22283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22284 conftest$ac_exeext
22285 if test ${ac_cv_search_gluBeginCurve+y}
22286 then :
22287 break
22288 fi
22289 done
22290 if test ${ac_cv_search_gluBeginCurve+y}
22291 then :
22292
22293 else $as_nop
22294 ac_cv_search_gluBeginCurve=no
22295 fi
22296 rm conftest.$ac_ext
22297 LIBS=$ac_func_search_save_LIBS
22298 fi
22299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5
22300 printf "%s\n" "$ac_cv_search_gluBeginCurve" >&6; }
22301 ac_res=$ac_cv_search_gluBeginCurve
22302 if test "$ac_res" != no
22303 then :
22304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22305 GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"
22306 fi
22307
22308
22309
22310
22311 CFLAGS="$_ax_glu_saved_flag_cflags"
22312
22313
22314 LIBS="$_ax_glu_saved_flag_libs"
22315
22316
22317
22318
22319 ac_ext=c
22320 ac_cpp='$CPP $CPPFLAGS'
22321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22324
22325
22326
22327 else
22328 GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
22329 GLU_LIBS=$pkg_cv_GLU_LIBS
22330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22331 printf "%s\n" "yes" >&6; }
22332
22333 fi
22334 ;;
22335 esac
22336
22337 case $host in #(
22338 *-darwin*) :
22339 if test "X$with_xquartz_gl" = "Xno"
22340 then :
22341
22342
22343 ac_ext=c
22344 ac_cpp='$CPP $CPPFLAGS'
22345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22348
22349
22350
22351 _ax_glu_saved_flag_cflags="$CFLAGS"
22352 CFLAGS="$GLU_CFLAGS $CFLAGS"
22353
22354
22355
22356 for ac_header in OpenGL/glu.h
22357 do :
22358 ac_fn_c_check_header_compile "$LINENO" "OpenGL/glu.h" "ac_cv_header_OpenGL_glu_h" "
22359 $ac_includes_default
22360
22361 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22362 # include <windows.h>
22363 # endif
22364
22365
22366 "
22367 if test "x$ac_cv_header_OpenGL_glu_h" = xyes
22368 then :
22369 printf "%s\n" "#define HAVE_OPENGL_GLU_H 1" >>confdefs.h
22370 ax_check_glu_have_headers="yes";
22371 fi
22372
22373 done
22374
22375
22376
22377 CFLAGS="$_ax_glu_saved_flag_cflags"
22378
22379
22380
22381 ac_ext=c
22382 ac_cpp='$CPP $CPPFLAGS'
22383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22386
22387
22388
22389 else $as_nop
22390
22391
22392 ac_ext=c
22393 ac_cpp='$CPP $CPPFLAGS'
22394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22397
22398
22399
22400 _ax_glu_saved_flag_cflags="$CFLAGS"
22401 CFLAGS="$GLU_CFLAGS $CFLAGS"
22402
22403
22404
22405 for ac_header in GL/glu.h
22406 do :
22407 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "
22408 $ac_includes_default
22409
22410 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22411 # include <windows.h>
22412 # endif
22413
22414
22415 "
22416 if test "x$ac_cv_header_GL_glu_h" = xyes
22417 then :
22418 printf "%s\n" "#define HAVE_GL_GLU_H 1" >>confdefs.h
22419 ax_check_glu_have_headers="yes";
22420 fi
22421
22422 done
22423
22424
22425
22426 CFLAGS="$_ax_glu_saved_flag_cflags"
22427
22428
22429
22430 ac_ext=c
22431 ac_cpp='$CPP $CPPFLAGS'
22432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22435
22436
22437
22438
22439 fi ;; #(
22440 *) :
22441
22442
22443 ac_ext=c
22444 ac_cpp='$CPP $CPPFLAGS'
22445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22448
22449
22450
22451 _ax_glu_saved_flag_cflags="$CFLAGS"
22452 CFLAGS="$GLU_CFLAGS $CFLAGS"
22453
22454
22455
22456 for ac_header in GL/glu.h
22457 do :
22458 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "
22459 $ac_includes_default
22460
22461 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22462 # include <windows.h>
22463 # endif
22464
22465
22466 "
22467 if test "x$ac_cv_header_GL_glu_h" = xyes
22468 then :
22469 printf "%s\n" "#define HAVE_GL_GLU_H 1" >>confdefs.h
22470 ax_check_glu_have_headers="yes";
22471 fi
22472
22473 done
22474
22475
22476
22477 CFLAGS="$_ax_glu_saved_flag_cflags"
22478
22479
22480
22481 ac_ext=c
22482 ac_cpp='$CPP $CPPFLAGS'
22483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22486
22487
22488 ;;
22489 esac
22490
22491 if test "X$ax_check_glu_have_headers" = "Xyes"
22492 then :
22493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL Utility (GLU) program" >&5
22494 printf %s "checking for compiling a minimal OpenGL Utility (GLU) program... " >&6; }
22495 if test ${ax_cv_check_glu_compile+y}
22496 then :
22497 printf %s "(cached) " >&6
22498 else $as_nop
22499
22500 ac_ext=c
22501 ac_cpp='$CPP $CPPFLAGS'
22502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22505
22506
22507
22508 _ax_glu_saved_flag_cflags="$CFLAGS"
22509 CFLAGS="$GLU_CFLAGS $CFLAGS"
22510
22511
22512
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22515
22516 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22517 # include <windows.h>
22518 # endif
22519 # ifdef HAVE_GL_GLU_H
22520 # include <GL/glu.h>
22521 # elif defined(HAVE_OPENGL_GLU_H)
22522 # include <OpenGL/glu.h>
22523 # else
22524 # error no glu.h
22525 # endif
22526
22527 int
22528 main (void)
22529 {
22530 gluBeginCurve(0)
22531 ;
22532 return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_compile "$LINENO"
22536 then :
22537 ax_cv_check_glu_compile="yes"
22538 else $as_nop
22539 ax_cv_check_glu_compile="no"
22540 fi
22541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22542
22543
22544
22545 CFLAGS="$_ax_glu_saved_flag_cflags"
22546
22547
22548
22549 ac_ext=c
22550 ac_cpp='$CPP $CPPFLAGS'
22551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22554
22555
22556 fi
22557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_compile" >&5
22558 printf "%s\n" "$ax_cv_check_glu_compile" >&6; }
22559
22560 fi
22561
22562 if test "X$ax_cv_check_glu_compile" = "Xyes"
22563 then :
22564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking a minimal GLU program" >&5
22565 printf %s "checking for linking a minimal GLU program... " >&6; }
22566 if test ${ax_cv_check_glu_link+y}
22567 then :
22568 printf %s "(cached) " >&6
22569 else $as_nop
22570
22571 ac_ext=c
22572 ac_cpp='$CPP $CPPFLAGS'
22573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22576
22577
22578
22579 _ax_glu_saved_flag_cflags="$CFLAGS"
22580 CFLAGS="$GLU_CFLAGS $CFLAGS"
22581
22582
22583 _ax_glu_saved_flag_libs="$LIBS"
22584 LIBS="$GLU_LIBS $LIBS"
22585
22586
22587
22588
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22591
22592 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22593 # include <windows.h>
22594 # endif
22595 # ifdef HAVE_GL_GLU_H
22596 # include <GL/glu.h>
22597 # elif defined(HAVE_OPENGL_GLU_H)
22598 # include <OpenGL/glu.h>
22599 # else
22600 # error no glu.h
22601 # endif
22602
22603 int
22604 main (void)
22605 {
22606 gluBeginCurve(0)
22607 ;
22608 return 0;
22609 }
22610 _ACEOF
22611 if ac_fn_c_try_link "$LINENO"
22612 then :
22613 ax_cv_check_glu_link="yes"
22614 else $as_nop
22615 ax_cv_check_glu_link="no"
22616 fi
22617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22618 conftest$ac_exeext conftest.$ac_ext
22619
22620
22621
22622 CFLAGS="$_ax_glu_saved_flag_cflags"
22623
22624
22625 LIBS="$_ax_glu_saved_flag_libs"
22626
22627
22628
22629
22630 ac_ext=c
22631 ac_cpp='$CPP $CPPFLAGS'
22632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635
22636
22637 fi
22638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_link" >&5
22639 printf "%s\n" "$ax_cv_check_glu_link" >&6; }
22640
22641 fi
22642
22643 #
22644 # Some versions of Mac OS X include a broken interpretation of the GLU
22645 # tesselation callback function signature.
22646 if test "X$ax_cv_check_glu_link" = "Xyes"
22647 then :
22648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GLU varargs tesselator is using non-standard form" >&5
22649 printf %s "checking if GLU varargs tesselator is using non-standard form... " >&6; }
22650 if test ${ax_cv_varargs_glu_tesscb+y}
22651 then :
22652 printf %s "(cached) " >&6
22653 else $as_nop
22654
22655 ac_ext=cpp
22656 ac_cpp='$CXXCPP $CPPFLAGS'
22657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22660
22661
22662
22663 _ax_glu_saved_flag_cflags="$CFLAGS"
22664 CFLAGS="$GLU_CFLAGS $CFLAGS"
22665
22666
22667
22668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h. */
22670
22671 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
22672 # include <windows.h>
22673 # endif
22674 # ifdef HAVE_GL_GLU_H
22675 # include <GL/glu.h>
22676 # elif defined(HAVE_OPENGL_GLU_H)
22677 # include <OpenGL/glu.h>
22678 # else
22679 # error no glu.h
22680 # endif
22681
22682 int
22683 main (void)
22684 {
22685 GLvoid (*func)(...); gluTessCallback(0, 0, func)
22686 ;
22687 return 0;
22688 }
22689
22690 _ACEOF
22691 if ac_fn_cxx_try_compile "$LINENO"
22692 then :
22693 ax_cv_varargs_glu_tesscb="yes"
22694 else $as_nop
22695 ax_cv_varargs_glu_tesscb="no"
22696 fi
22697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22698
22699
22700
22701 CFLAGS="$_ax_glu_saved_flag_cflags"
22702
22703
22704
22705 ac_ext=c
22706 ac_cpp='$CPP $CPPFLAGS'
22707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22710
22711
22712 fi
22713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
22714 printf "%s\n" "$ax_cv_varargs_glu_tesscb" >&6; }
22715 if test "X$ax_cv_varargs_glu_tesscb" = "yes"
22716 then :
22717
22718 printf "%s\n" "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
22719
22720 fi
22721
22722 fi
22723
22724 if test "X$ax_cv_check_glu_link" = "Xyes"
22725 then :
22726
22727 printf "%s\n" "#define HAVE_GLU 1" >>confdefs.h
22728
22729 HAVE_GLU="yes"
22730 else $as_nop
22731 HAVE_GLU="no"; HAVE_OPENGL="no"
22732
22733 fi
22734
22735 if test "$HAVE_OPENGL" != "yes"
22736 then :
22737
22738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** OpenGL and/or GLU have not been found, see above.
22739 Actor plugins using OpenGL will not be built." >&5
22740 printf "%s\n" "$as_me: WARNING: *** OpenGL and/or GLU have not been found, see above.
22741 Actor plugins using OpenGL will not be built." >&2;}
22742
22743 fi
22744
22745 fi
22746
22747 LV_ALSA_MIN_VERSION=0.9.0
22748 # Check whether --enable-alsa was given.
22749 if test ${enable_alsa+y}
22750 then :
22751 enableval=$enable_alsa; ENABLE_ALSA=$enableval
22752 else $as_nop
22753 ENABLE_ALSA=yes
22754 fi
22755
22756
22757 if test "$ENABLE_ALSA" = "yes"; then
22758 alsa_save_CFLAGS="$CFLAGS"
22759 alsa_save_LDFLAGS="$LDFLAGS"
22760 alsa_save_LIBS="$LIBS"
22761 alsa_found=yes
22762 alsa_topology_found=no
22763
22764
22765 # Check whether --with-alsa-prefix was given.
22766 if test ${with_alsa_prefix+y}
22767 then :
22768 withval=$with_alsa_prefix; alsa_prefix="$withval"
22769 else $as_nop
22770 alsa_prefix=""
22771 fi
22772
22773
22774
22775 # Check whether --with-alsa-inc-prefix was given.
22776 if test ${with_alsa_inc_prefix+y}
22777 then :
22778 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
22779 else $as_nop
22780 alsa_inc_prefix=""
22781 fi
22782
22783
22784 # Check whether --enable-alsa-topology was given.
22785 if test ${enable_alsa_topology+y}
22786 then :
22787 enableval=$enable_alsa_topology; enable_atopology="$enableval"
22788 else $as_nop
22789 enable_atopology=no
22790 fi
22791
22792
22793 # Check whether --enable-alsatest was given.
22794 if test ${enable_alsatest+y}
22795 then :
22796 enableval=$enable_alsatest; enable_alsatest="$enableval"
22797 else $as_nop
22798 enable_alsatest=yes
22799 fi
22800
22801
22802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
22803 printf %s "checking for ALSA CFLAGS... " >&6; }
22804 if test "$alsa_inc_prefix" != "" ; then
22805 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
22806 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
22807 fi
22808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
22809 printf "%s\n" "$ALSA_CFLAGS" >&6; }
22810
22811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
22812 printf %s "checking for dlopen in -lc... " >&6; }
22813 if test ${ac_cv_lib_c_dlopen+y}
22814 then :
22815 printf %s "(cached) " >&6
22816 else $as_nop
22817 ac_check_lib_save_LIBS=$LIBS
22818 LIBS="-lc $LIBS"
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820 /* end confdefs.h. */
22821
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22825 char dlopen ();
22826 int
22827 main (void)
22828 {
22829 return dlopen ();
22830 ;
22831 return 0;
22832 }
22833 _ACEOF
22834 if ac_fn_c_try_link "$LINENO"
22835 then :
22836 ac_cv_lib_c_dlopen=yes
22837 else $as_nop
22838 ac_cv_lib_c_dlopen=no
22839 fi
22840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22841 conftest$ac_exeext conftest.$ac_ext
22842 LIBS=$ac_check_lib_save_LIBS
22843 fi
22844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
22845 printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
22846 if test "x$ac_cv_lib_c_dlopen" = xyes
22847 then :
22848 LIBDL=""
22849 else $as_nop
22850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22851 printf %s "checking for dlopen in -ldl... " >&6; }
22852 if test ${ac_cv_lib_dl_dlopen+y}
22853 then :
22854 printf %s "(cached) " >&6
22855 else $as_nop
22856 ac_check_lib_save_LIBS=$LIBS
22857 LIBS="-ldl $LIBS"
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22860
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22864 char dlopen ();
22865 int
22866 main (void)
22867 {
22868 return dlopen ();
22869 ;
22870 return 0;
22871 }
22872 _ACEOF
22873 if ac_fn_c_try_link "$LINENO"
22874 then :
22875 ac_cv_lib_dl_dlopen=yes
22876 else $as_nop
22877 ac_cv_lib_dl_dlopen=no
22878 fi
22879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22880 conftest$ac_exeext conftest.$ac_ext
22881 LIBS=$ac_check_lib_save_LIBS
22882 fi
22883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22884 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
22885 if test "x$ac_cv_lib_dl_dlopen" = xyes
22886 then :
22887 LIBDL="-ldl"
22888 fi
22889
22890 fi
22891
22892
22893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
22894 printf %s "checking for ALSA LDFLAGS... " >&6; }
22895 if test "$alsa_prefix" != "" ; then
22896 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
22897 LDFLAGS="$LDFLAGS $ALSA_LIBS"
22898 fi
22899
22900 ALSA_LIBS="$ALSA_LIBS -lasound -lm $LIBDL -lpthread"
22901 LIBS="$ALSA_LIBS $LIBS"
22902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
22903 printf "%s\n" "$ALSA_LIBS" >&6; }
22904
22905 if test "x$enable_alsatest" = "xyes"; then
22906
22907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking required libasound headers version" >&5
22908 printf %s "checking required libasound headers version... " >&6; }
22909 min_alsa_version=$LV_ALSA_MIN_VERSION
22910 no_alsa=""
22911 alsa_min_major_version=`echo $min_alsa_version | \
22912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22913 alsa_min_minor_version=`echo $min_alsa_version | \
22914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22915 alsa_min_micro_version=`echo $min_alsa_version | \
22916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version" >&5
22918 printf "%s\n" "$alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version" >&6; }
22919
22920 ac_ext=c
22921 ac_cpp='$CPP $CPPFLAGS'
22922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22925
22926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version ($min_alsa_version)" >&5
22927 printf %s "checking for libasound headers version >= $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version ($min_alsa_version)... " >&6; }
22928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h. */
22930
22931 #include <alsa/asoundlib.h>
22932
22933 int
22934 main (void)
22935 {
22936
22937 /* ensure backward compatibility */
22938 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
22939 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
22940 #endif
22941 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
22942 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
22943 #endif
22944 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
22945 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
22946 #endif
22947
22948 # if(SND_LIB_MAJOR > $alsa_min_major_version)
22949 exit(0);
22950 # else
22951 # if(SND_LIB_MAJOR < $alsa_min_major_version)
22952 # error not present
22953 # endif
22954
22955 # if(SND_LIB_MINOR > $alsa_min_minor_version)
22956 exit(0);
22957 # else
22958 # if(SND_LIB_MINOR < $alsa_min_minor_version)
22959 # error not present
22960 # endif
22961
22962 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
22963 # error not present
22964 # endif
22965 # endif
22966 # endif
22967 exit(0);
22968
22969 ;
22970 return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_compile "$LINENO"
22974 then :
22975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
22976 printf "%s\n" "found." >&6; }
22977 else $as_nop
22978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
22979 printf "%s\n" "not present." >&6; }
22980
22981 alsa_found=no
22982
22983 fi
22984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22985 ac_ext=c
22986 ac_cpp='$CPP $CPPFLAGS'
22987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22990
22991
22992 ac_ext=c
22993 ac_cpp='$CPP $CPPFLAGS'
22994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22997
22998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libatopology (sound headers version > 1.1.9)" >&5
22999 printf %s "checking for libatopology (sound headers version > 1.1.9)... " >&6; }
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23002
23003 #include <alsa/asoundlib.h>
23004 #include <alsa/topology.h>
23005
23006 int
23007 main (void)
23008 {
23009
23010 /* ensure backward compatibility */
23011 #if !defined(SND_LIB_VERSION)
23012 #define SND_LIB_VERSION 0
23013 #endif
23014 #if SND_LIB_VERSION > 0x00010109
23015 exit(0);
23016 #else
23017 # error not present
23018 #endif
23019 exit(0);
23020
23021 ;
23022 return 0;
23023 }
23024 _ACEOF
23025 if ac_fn_c_try_compile "$LINENO"
23026 then :
23027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23028 printf "%s\n" "yes" >&6; }
23029 enable_atopology="yes"
23030 else $as_nop
23031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 printf "%s\n" "no" >&6; }
23033
23034 fi
23035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23036 ac_ext=c
23037 ac_cpp='$CPP $CPPFLAGS'
23038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23041
23042 fi
23043
23044 if test "x$enable_alsatest" = "xyes"; then
23045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
23046 printf %s "checking for snd_ctl_open in -lasound... " >&6; }
23047 if test ${ac_cv_lib_asound_snd_ctl_open+y}
23048 then :
23049 printf %s "(cached) " >&6
23050 else $as_nop
23051 ac_check_lib_save_LIBS=$LIBS
23052 LIBS="-lasound $LIBS"
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054 /* end confdefs.h. */
23055
23056 /* Override any GCC internal prototype to avoid an error.
23057 Use char because int might match the return type of a GCC
23058 builtin and then its argument prototype would still apply. */
23059 char snd_ctl_open ();
23060 int
23061 main (void)
23062 {
23063 return snd_ctl_open ();
23064 ;
23065 return 0;
23066 }
23067 _ACEOF
23068 if ac_fn_c_try_link "$LINENO"
23069 then :
23070 ac_cv_lib_asound_snd_ctl_open=yes
23071 else $as_nop
23072 ac_cv_lib_asound_snd_ctl_open=no
23073 fi
23074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23075 conftest$ac_exeext conftest.$ac_ext
23076 LIBS=$ac_check_lib_save_LIBS
23077 fi
23078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
23079 printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
23080 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
23081 then :
23082 printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
23083
23084 LIBS="-lasound $LIBS"
23085
23086 else $as_nop
23087
23088 alsa_found=no
23089
23090 fi
23091
23092 if test "x$enable_atopology" = "xyes"; then
23093 alsa_topology_found=yes
23094 alsa_save_LIBS2="$LIBS"
23095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_tplg_new in -latopology" >&5
23096 printf %s "checking for snd_tplg_new in -latopology... " >&6; }
23097 if test ${ac_cv_lib_atopology_snd_tplg_new+y}
23098 then :
23099 printf %s "(cached) " >&6
23100 else $as_nop
23101 ac_check_lib_save_LIBS=$LIBS
23102 LIBS="-latopology $LIBS"
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23105
23106 /* Override any GCC internal prototype to avoid an error.
23107 Use char because int might match the return type of a GCC
23108 builtin and then its argument prototype would still apply. */
23109 char snd_tplg_new ();
23110 int
23111 main (void)
23112 {
23113 return snd_tplg_new ();
23114 ;
23115 return 0;
23116 }
23117 _ACEOF
23118 if ac_fn_c_try_link "$LINENO"
23119 then :
23120 ac_cv_lib_atopology_snd_tplg_new=yes
23121 else $as_nop
23122 ac_cv_lib_atopology_snd_tplg_new=no
23123 fi
23124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23125 conftest$ac_exeext conftest.$ac_ext
23126 LIBS=$ac_check_lib_save_LIBS
23127 fi
23128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atopology_snd_tplg_new" >&5
23129 printf "%s\n" "$ac_cv_lib_atopology_snd_tplg_new" >&6; }
23130 if test "x$ac_cv_lib_atopology_snd_tplg_new" = xyes
23131 then :
23132 printf "%s\n" "#define HAVE_LIBATOPOLOGY 1" >>confdefs.h
23133
23134 LIBS="-latopology $LIBS"
23135
23136 else $as_nop
23137
23138 alsa_topology_found=no,
23139
23140
23141 fi
23142
23143 LIBS="$alsa_save_LIBS2"
23144 fi
23145 else
23146 if test "x$enable_atopology" = "xyes"; then
23147 alsa_topology_found=yes
23148 fi
23149 fi
23150
23151 if test "x$alsa_found" = "xyes" ; then
23152 HAVE_ALSA=yes
23153 LIBS=`echo $LIBS | sed 's/-lasound//g'`
23154 LIBS=`echo $LIBS | sed 's/ //'`
23155 LIBS="-lasound $LIBS"
23156 fi
23157 if test "x$alsa_found" = "xno" ; then
23158 HAVE_ALSA=no
23159 CFLAGS="$alsa_save_CFLAGS"
23160 LDFLAGS="$alsa_save_LDFLAGS"
23161 LIBS="$alsa_save_LIBS"
23162 ALSA_CFLAGS=""
23163 ALSA_LIBS=""
23164 ALSA_TOPOLOGY_LIBS=""
23165 fi
23166
23167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA topology LDFLAGS" >&5
23168 printf %s "checking for ALSA topology LDFLAGS... " >&6; }
23169 if test "x$alsa_topology_found" = "xyes"; then
23170 ALSA_TOPOLOGY_LIBS="$ALSA_TOPOLOGY_LIBS -latopology"
23171 fi
23172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_TOPOLOGY_LIBS" >&5
23173 printf "%s\n" "$ALSA_TOPOLOGY_LIBS" >&6; }
23174
23175
23176
23177
23178
23179
23180 if test "$HAVE_ALSA" = "yes"; then
23181 build_input_plugins="$build_input_plugins alsa"
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h. */
23184 #include <stdlib.h>
23185 #include <alsa/asoundlib.h>
23186 int
23187 main (void)
23188 {
23189 #if(SND_LIB_MAJOR == 0)
23190 exit(0);
23191 #else
23192 # error ALSA library version 1.x
23193 #endif
23194 ;
23195 return 0;
23196 }
23197 _ACEOF
23198 if ac_fn_c_try_compile "$LINENO"
23199 then :
23200
23201 printf "%s\n" "#define HAVE_0_9_X_ALSA 1" >>confdefs.h
23202
23203 else $as_nop
23204
23205 printf "%s\n" "#define HAVE_1_X_X_ALSA 1" >>confdefs.h
23206
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23209 else
23210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Alsa input plugin cannot be built.
23211 May be you have an ALSA library older than $LV_ALSA_MIN_VERSION.
23212 Take a look at {prefix}/include/alsa/version.h file." >&5
23213 printf "%s\n" "$as_me: WARNING: *** Alsa input plugin cannot be built.
23214 May be you have an ALSA library older than $LV_ALSA_MIN_VERSION.
23215 Take a look at {prefix}/include/alsa/version.h file." >&2;}
23216 fi
23217 fi
23218
23219 # Check whether --enable-mplayer was given.
23220 if test ${enable_mplayer+y}
23221 then :
23222 enableval=$enable_mplayer; ENABLE_MPLAYER=$enableval
23223 else $as_nop
23224 ENABLE_MPLAYER=yes
23225 fi
23226
23227
23228 # FIXME: Missing check for MPlayer...
23229 if test "$ENABLE_MPLAYER" = "yes"; then
23230 # FIXME we must check also for HAVE_MMAP here
23231 if test "$lv_have_munmap" = "yes"; then
23232 build_input_plugins="$build_input_plugins mplayer"
23233 else
23234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** There is not a working munmap function available.
23235 mplayer input plugin will not be built." >&5
23236 printf "%s\n" "$as_me: WARNING: *** There is not a working munmap function available.
23237 mplayer input plugin will not be built." >&2;}
23238 fi
23239 fi
23240
23241 # Check whether --enable-inputdebug was given.
23242 if test ${enable_inputdebug+y}
23243 then :
23244 enableval=$enable_inputdebug; ENABLE_INPUTDEBUG=$enableval
23245 else $as_nop
23246 ENABLE_INPUTDEBUG=yes
23247 fi
23248
23249
23250 if test "$ENABLE_INPUTDEBUG" = "yes"; then
23251 build_input_plugins="$build_input_plugins debug"
23252 fi
23253
23254 # Check whether --enable-gltest was given.
23255 if test ${enable_gltest+y}
23256 then :
23257 enableval=$enable_gltest; ENABLE_LVGLTEST=$enableval
23258 else $as_nop
23259 ENABLE_LVGLTEST=yes
23260 fi
23261
23262
23263 if test "$ENABLE_LVGLTEST" = "yes"; then
23264 if test "$HAVE_OPENGL" = "yes"; then
23265 build_actor_plugins="$build_actor_plugins lv_gltest"
23266 else
23267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** No OpenGL found.
23268 lv_gltest plugin will not be built." >&5
23269 printf "%s\n" "$as_me: WARNING: *** No OpenGL found.
23270 lv_gltest plugin will not be built." >&2;}
23271 fi
23272 fi
23273
23274 # Check whether --enable-nastyfft was given.
23275 if test ${enable_nastyfft+y}
23276 then :
23277 enableval=$enable_nastyfft; ENABLE_NASTYFFT=$enableval
23278 else $as_nop
23279 ENABLE_NASTYFFT=yes
23280 fi
23281
23282
23283 if test "$ENABLE_NASTYFFT" = "yes"; then
23284 if test "$HAVE_OPENGL" = "yes"; then
23285 build_actor_plugins="$build_actor_plugins nastyfft"
23286 else
23287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** No OpenGL found.
23288 nastyfft plugin will not be built." >&5
23289 printf "%s\n" "$as_me: WARNING: *** No OpenGL found.
23290 nastyfft plugin will not be built." >&2;}
23291 fi
23292 fi
23293
23294 # Check whether --enable-madspin was given.
23295 if test ${enable_madspin+y}
23296 then :
23297 enableval=$enable_madspin; ENABLE_MADSPIN=$enableval
23298 else $as_nop
23299 ENABLE_MADSPIN=yes
23300 fi
23301
23302
23303 if test "$ENABLE_MADSPIN" = "yes"; then
23304 if test "$HAVE_OPENGL" = "yes"; then
23305 build_actor_plugins="$build_actor_plugins madspin"
23306 else
23307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** No OpenGL found.
23308 Madspin plugin will not be built." >&5
23309 printf "%s\n" "$as_me: WARNING: *** No OpenGL found.
23310 Madspin plugin will not be built." >&2;}
23311 fi
23312 fi
23313
23314 # Check whether --enable-flower was given.
23315 if test ${enable_flower+y}
23316 then :
23317 enableval=$enable_flower; ENABLE_FLOWER=$enableval
23318 else $as_nop
23319 ENABLE_FLOWER=yes
23320 fi
23321
23322
23323 if test "$ENABLE_FLOWER" = "yes"; then
23324 if test "$HAVE_OPENGL" = "yes"; then
23325 build_actor_plugins="$build_actor_plugins pseudotoad_flower"
23326 else
23327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** No OpenGL found.
23328 Pseudotoad Flower plugin will not be built." >&5
23329 printf "%s\n" "$as_me: WARNING: *** No OpenGL found.
23330 Pseudotoad Flower plugin will not be built." >&2;}
23331 fi
23332 fi
23333
23334 # Check whether --enable-infinite was given.
23335 if test ${enable_infinite+y}
23336 then :
23337 enableval=$enable_infinite; ENABLE_INFINITE=$enableval
23338 else $as_nop
23339 ENABLE_INFINITE=yes
23340 fi
23341
23342
23343 if test "$ENABLE_INFINITE" = "yes"; then
23344 build_actor_plugins="$build_actor_plugins infinite"
23345 fi
23346
23347 # Check whether --enable-jess was given.
23348 if test ${enable_jess+y}
23349 then :
23350 enableval=$enable_jess; ENABLE_JESS=$enableval
23351 else $as_nop
23352 ENABLE_JESS=yes
23353 fi
23354
23355
23356 if test "$ENABLE_JESS" = "yes"; then
23357 build_actor_plugins="$build_actor_plugins JESS"
23358 fi
23359
23360 # Check whether --enable-corona was given.
23361 if test ${enable_corona+y}
23362 then :
23363 enableval=$enable_corona; ENABLE_CORONA=$enableval
23364 else $as_nop
23365 ENABLE_CORONA=yes
23366 fi
23367
23368
23369 if test "$ENABLE_CORONA" = "yes"; then
23370 build_actor_plugins="$build_actor_plugins corona"
23371 fi
23372
23373 # Check whether --enable-analyzer was given.
23374 if test ${enable_analyzer+y}
23375 then :
23376 enableval=$enable_analyzer; ENABLE_ANALYZER=$enableval
23377 else $as_nop
23378 ENABLE_ANALYZER=yes
23379 fi
23380
23381
23382 if test "$ENABLE_ANALYZER" = "yes"; then
23383 build_actor_plugins="$build_actor_plugins lv_analyzer"
23384 fi
23385
23386 # Check whether --enable-scope was given.
23387 if test ${enable_scope+y}
23388 then :
23389 enableval=$enable_scope; ENABLE_SCOPE=$enableval
23390 else $as_nop
23391 ENABLE_SCOPE=yes
23392 fi
23393
23394
23395 if test "$ENABLE_SCOPE" = "yes"; then
23396 build_actor_plugins="$build_actor_plugins lv_scope"
23397 fi
23398
23399 # Check whether --enable-oinksie was given.
23400 if test ${enable_oinksie+y}
23401 then :
23402 enableval=$enable_oinksie; ENABLE_OINKSIE=$enableval
23403 else $as_nop
23404 ENABLE_OINKSIE=yes
23405 fi
23406
23407
23408 if test "$ENABLE_OINKSIE" = "yes"; then
23409 build_actor_plugins="$build_actor_plugins oinksie"
23410 fi
23411
23412 # Check whether --enable-jakdaw was given.
23413 if test ${enable_jakdaw+y}
23414 then :
23415 enableval=$enable_jakdaw; ENABLE_JAKDAW=$enableval
23416 else $as_nop
23417 ENABLE_JAKDAW=yes
23418 fi
23419
23420
23421 if test "$ENABLE_JAKDAW" = "yes"; then
23422 build_actor_plugins="$build_actor_plugins jakdaw"
23423 fi
23424
23425 # Check whether --enable-bumpscope was given.
23426 if test ${enable_bumpscope+y}
23427 then :
23428 enableval=$enable_bumpscope; ENABLE_BUMPSCOPE=$enableval
23429 else $as_nop
23430 ENABLE_BUMPSCOPE=yes
23431 fi
23432
23433
23434 if test "$ENABLE_BUMPSCOPE" = "yes"; then
23435 build_actor_plugins="$build_actor_plugins bumpscope"
23436 fi
23437
23438 # Check whether --enable-gforce was given.
23439 if test ${enable_gforce+y}
23440 then :
23441 enableval=$enable_gforce; ENABLE_GFORCE=$enableval
23442 else $as_nop
23443 ENABLE_GFORCE=yes
23444 fi
23445
23446
23447 if test "$ENABLE_GFORCE" = "yes"; then
23448 build_actor_plugins="$build_actor_plugins G-Force"
23449
23450 # Special flags for G-Force, make this only for G-Force FIXME FIXME!!!
23451 GFORCE_CFLAGS="-DUNIX_X -D_REENTRANT"
23452
23453 fi
23454
23455 # Check whether --enable-alphablend was given.
23456 if test ${enable_alphablend+y}
23457 then :
23458 enableval=$enable_alphablend; ENABLE_ALPHABLEND=$enableval
23459 else $as_nop
23460 ENABLE_ALPHABLEND=yes
23461 fi
23462
23463
23464 if test "$ENABLE_ALPHABLEND" = "yes"; then
23465 build_morph_plugins="$build_morph_plugins alphablend"
23466 fi
23467
23468 # Check whether --enable-flash was given.
23469 if test ${enable_flash+y}
23470 then :
23471 enableval=$enable_flash; ENABLE_FLASH=$enableval
23472 else $as_nop
23473 ENABLE_FLASH=yes
23474 fi
23475
23476
23477 if test "$ENABLE_FLASH" = "yes"; then
23478 build_morph_plugins="$build_morph_plugins flash"
23479 fi
23480
23481 # Check whether --enable-tentacle was given.
23482 if test ${enable_tentacle+y}
23483 then :
23484 enableval=$enable_tentacle; ENABLE_TENTACLE=$enableval
23485 else $as_nop
23486 ENABLE_TENTACLE=yes
23487 fi
23488
23489
23490 if test "$ENABLE_TENTACLE" = "yes"; then
23491 build_morph_plugins="$build_morph_plugins tentacle"
23492 fi
23493
23494 # Check whether --enable-slide was given.
23495 if test ${enable_slide+y}
23496 then :
23497 enableval=$enable_slide; ENABLE_SLIDE=$enableval
23498 else $as_nop
23499 ENABLE_SLIDE=yes
23500 fi
23501
23502
23503 if test "$ENABLE_SLIDE" = "yes"; then
23504 build_morph_plugins="$build_morph_plugins slide"
23505 fi
23506
23507
23508 DEBUG_CFLAGS=
23509
23510 # Check whether --enable-profiling was given.
23511 if test ${enable_profiling+y}
23512 then :
23513 enableval=$enable_profiling; ENABLE_PROFILING=$enableval
23514 else $as_nop
23515 ENABLE_PROFILING=no
23516 fi
23517
23518
23519 if test "$ENABLE_PROFILING" = "yes"; then
23520 DEBUG_CFLAGS="$DEBUG_CFLAGS -pg"
23521 fi
23522
23523 # Check whether --enable-debug was given.
23524 if test ${enable_debug+y}
23525 then :
23526 enableval=$enable_debug; ENABLE_DEBUG=$enableval
23527 else $as_nop
23528 ENABLE_DEBUG=no
23529 fi
23530
23531
23532 if test "$ENABLE_DEBUG" = "yes"; then
23533 DEBUG_CFLAGS="$DEBUG_CFLAGS -ggdb3"
23534 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall -Wmissing-braces -Wimplicit -Wunused"
23535 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wno-unused-variable"
23536 fi
23537
23538
23539 # Check whether --enable-extra-optimization was given.
23540 if test ${enable_extra_optimization+y}
23541 then :
23542 enableval=$enable_extra_optimization; ENABLE_EXTRA_OPT=$enableval
23543 else $as_nop
23544 ENABLE_EXTRA_OPT=no
23545 fi
23546
23547
23548 OPT_CFLAGS=
23549 if test "$ENABLE_EXTRA_OPT" = "yes"; then
23550 OPT_CFLAGS="-O3 -fexpensive-optimizations"
23551 else
23552 if test "$debug" = "yes"; then
23553 OPT_CFLAGS="-O0"
23554 fi
23555 fi
23556
23557
23558 CFLAGS="${CFLAGS} ${DEBUG_CFLAGS} ${OPT_CFLAGS} ${GFORCE_CFLAGS}"
23559
23560 CXXFLAGS="${CXXFLAGS} ${DEBUG_CFLAGS} ${OPT_CFLAGS} ${GFORCE_CFLAGS}"
23561
23562
23563
23564
23565 # Check whether --with-plugins-base-dir was given.
23566 if test ${with_plugins_base_dir+y}
23567 then :
23568 withval=$with_plugins_base_dir; plugins_base_dir=$withval
23569 else $as_nop
23570 plugins_base_dir=`$PKG_CONFIG --variable=pluginsbasedir $LIBVISUAL_PKG`
23571 fi
23572
23573
23574 LIBVISUAL_PLUGINS_BASE_DIR="$plugins_base_dir"
23575
23576 actor_plugindir=$LIBVISUAL_PLUGINS_BASE_DIR/actor
23577
23578 input_plugindir=$LIBVISUAL_PLUGINS_BASE_DIR/input
23579
23580 morph_plugindir=$LIBVISUAL_PLUGINS_BASE_DIR/morph
23581
23582
23583 LIBVISUAL_PLUGINS_DATA_DIR=$datadir/libvisual-plugins-0.4
23584
23585
23586
23587
23588
23589
23590 ac_config_files="$ac_config_files Makefile po/Makevars po/Makefile.in plugins/Makefile plugins/actor/Makefile plugins/actor/bumpscope/Makefile plugins/actor/corona/Makefile plugins/actor/gdkpixbuf/Makefile plugins/actor/gstreamer/Makefile plugins/actor/infinite/Makefile plugins/actor/jakdaw/Makefile plugins/actor/JESS/Makefile plugins/actor/lv_analyzer/Makefile plugins/actor/lv_gltest/Makefile plugins/actor/lv_scope/Makefile plugins/actor/madspin/Makefile plugins/actor/nastyfft/Makefile plugins/actor/oinksie/Makefile plugins/actor/pseudotoad_flower/Makefile plugins/actor/G-Force/Makefile plugins/actor/G-Force/docs/Makefile plugins/actor/G-Force/Common/Makefile plugins/actor/G-Force/Common/GeneralTools/Makefile plugins/actor/G-Force/Common/GeneralTools/Headers/Makefile plugins/actor/G-Force/Common/io/Makefile plugins/actor/G-Force/Common/io/Headers/Makefile plugins/actor/G-Force/Common/math/Makefile plugins/actor/G-Force/Common/math/Headers/Makefile plugins/actor/G-Force/Common/UI/Makefile plugins/actor/G-Force/Common/UI/Headers/Makefile plugins/actor/G-Force/GForceCommon/Makefile plugins/actor/G-Force/GForceCommon/Headers/Makefile plugins/actor/G-Force/unix/Makefile plugins/actor/G-Force/unix/Headers/Makefile plugins/actor/G-Force/unix/libmfl/Makefile plugins/actor/G-Force/unix/libvisual/Makefile plugins/actor/G-Force/GForceColorMaps/Makefile plugins/actor/G-Force/GForceDeltaFields/Makefile plugins/actor/G-Force/GForceParticles/Makefile plugins/actor/G-Force/GForceWaveShapes/Makefile plugins/actor/G-Force/NotWorkingWaveShapes/Makefile plugins/input/Makefile plugins/input/alsa/Makefile plugins/input/mplayer/Makefile plugins/input/jack/Makefile plugins/input/debug/Makefile plugins/input/portaudio/Makefile plugins/input/pulseaudio/Makefile plugins/morph/Makefile plugins/morph/alphablend/Makefile plugins/morph/tentacle/Makefile plugins/morph/flash/Makefile plugins/morph/slide/Makefile"
23591
23592
23593
23594 cat >confcache <<\_ACEOF
23595 # This file is a shell script that caches the results of configure
23596 # tests run on this system so they can be shared between configure
23597 # scripts and configure runs, see configure's option --config-cache.
23598 # It is not useful on other systems. If it contains results you don't
23599 # want to keep, you may remove or edit it.
23600 #
23601 # config.status only pays attention to the cache file if you give it
23602 # the --recheck option to rerun configure.
23603 #
23604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23606 # following values.
23607
23608 _ACEOF
23609
23610 # The following way of writing the cache mishandles newlines in values,
23611 # but we know of no workaround that is simple, portable, and efficient.
23612 # So, we kill variables containing newlines.
23613 # Ultrix sh set writes to stderr and can't be redirected directly,
23614 # and sets the high bit in the cache file unless we assign to the vars.
23615 (
23616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23617 eval ac_val=\$$ac_var
23618 case $ac_val in #(
23619 *${as_nl}*)
23620 case $ac_var in #(
23621 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23622 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23623 esac
23624 case $ac_var in #(
23625 _ | IFS | as_nl) ;; #(
23626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23627 *) { eval $ac_var=; unset $ac_var;} ;;
23628 esac ;;
23629 esac
23630 done
23631
23632 (set) 2>&1 |
23633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23634 *${as_nl}ac_space=\ *)
23635 # `set' does not quote correctly, so add quotes: double-quote
23636 # substitution turns \\\\ into \\, and sed turns \\ into \.
23637 sed -n \
23638 "s/'/'\\\\''/g;
23639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23640 ;; #(
23641 *)
23642 # `set' quotes correctly as required by POSIX, so do not add quotes.
23643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23644 ;;
23645 esac |
23646 sort
23647 ) |
23648 sed '
23649 /^ac_cv_env_/b end
23650 t clear
23651 :clear
23652 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23653 t end
23654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23655 :end' >>confcache
23656 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23657 if test -w "$cache_file"; then
23658 if test "x$cache_file" != "x/dev/null"; then
23659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23660 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23661 if test ! -f "$cache_file" || test -h "$cache_file"; then
23662 cat confcache >"$cache_file"
23663 else
23664 case $cache_file in #(
23665 */* | ?:*)
23666 mv -f confcache "$cache_file"$$ &&
23667 mv -f "$cache_file"$$ "$cache_file" ;; #(
23668 *)
23669 mv -f confcache "$cache_file" ;;
23670 esac
23671 fi
23672 fi
23673 else
23674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23675 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23676 fi
23677 fi
23678 rm -f confcache
23679
23680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23681 # Let make expand exec_prefix.
23682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23683
23684 DEFS=-DHAVE_CONFIG_H
23685
23686 ac_libobjs=
23687 ac_ltlibobjs=
23688 U=
23689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23690 # 1. Remove the extension, and $U if already installed.
23691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23692 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23694 # will be set to the directory where LIBOBJS objects are built.
23695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23697 done
23698 LIBOBJS=$ac_libobjs
23699
23700 LTLIBOBJS=$ac_ltlibobjs
23701
23702
23703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23704 printf %s "checking that generated files are newer than configure... " >&6; }
23705 if test -n "$am_sleep_pid"; then
23706 # Hide warnings about reused PIDs.
23707 wait $am_sleep_pid 2>/dev/null
23708 fi
23709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23710 printf "%s\n" "done" >&6; }
23711 if test -n "$EXEEXT"; then
23712 am__EXEEXT_TRUE=
23713 am__EXEEXT_FALSE='#'
23714 else
23715 am__EXEEXT_TRUE='#'
23716 am__EXEEXT_FALSE=
23717 fi
23718
23719 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23720 as_fn_error $? "conditional \"AMDEP\" was never defined.
23721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23722 fi
23723 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23724 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23726 fi
23727 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23728 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23730 fi
23731
23732 : "${CONFIG_STATUS=./config.status}"
23733 ac_write_fail=0
23734 ac_clean_files_save=$ac_clean_files
23735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23737 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23738 as_write_fail=0
23739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23740 #! $SHELL
23741 # Generated by $as_me.
23742 # Run this file to recreate the current configuration.
23743 # Compiler output produced by configure, useful for debugging
23744 # configure, is in config.log if it exists.
23745
23746 debug=false
23747 ac_cs_recheck=false
23748 ac_cs_silent=false
23749
23750 SHELL=\${CONFIG_SHELL-$SHELL}
23751 export SHELL
23752 _ASEOF
23753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23754 ## -------------------- ##
23755 ## M4sh Initialization. ##
23756 ## -------------------- ##
23757
23758 # Be more Bourne compatible
23759 DUALCASE=1; export DUALCASE # for MKS sh
23760 as_nop=:
23761 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23762 then :
23763 emulate sh
23764 NULLCMD=:
23765 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23766 # is contrary to our usage. Disable this feature.
23767 alias -g '${1+"$@"}'='"$@"'
23768 setopt NO_GLOB_SUBST
23769 else $as_nop
23770 case `(set -o) 2>/dev/null` in #(
23771 *posix*) :
23772 set -o posix ;; #(
23773 *) :
23774 ;;
23775 esac
23776 fi
23777
23778
23779
23780 # Reset variables that may have inherited troublesome values from
23781 # the environment.
23782
23783 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23784 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23785 # side effect of setting IFS to empty, thus disabling word splitting.)
23786 # Quoting is to prevent editors from complaining about space-tab.
23787 as_nl='
23788 '
23789 export as_nl
23790 IFS=" "" $as_nl"
23791
23792 PS1='$ '
23793 PS2='> '
23794 PS4='+ '
23795
23796 # Ensure predictable behavior from utilities with locale-dependent output.
23797 LC_ALL=C
23798 export LC_ALL
23799 LANGUAGE=C
23800 export LANGUAGE
23801
23802 # We cannot yet rely on "unset" to work, but we need these variables
23803 # to be unset--not just set to an empty or harmless value--now, to
23804 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23805 # also avoids known problems related to "unset" and subshell syntax
23806 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23807 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23808 do eval test \${$as_var+y} \
23809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23810 done
23811
23812 # Ensure that fds 0, 1, and 2 are open.
23813 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23814 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23815 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23816
23817 # The user is always right.
23818 if ${PATH_SEPARATOR+false} :; then
23819 PATH_SEPARATOR=:
23820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23822 PATH_SEPARATOR=';'
23823 }
23824 fi
23825
23826
23827 # Find who we are. Look in the path if we contain no directory separator.
23828 as_myself=
23829 case $0 in #((
23830 *[\\/]* ) as_myself=$0 ;;
23831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23832 for as_dir in $PATH
23833 do
23834 IFS=$as_save_IFS
23835 case $as_dir in #(((
23836 '') as_dir=./ ;;
23837 */) ;;
23838 *) as_dir=$as_dir/ ;;
23839 esac
23840 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23841 done
23842 IFS=$as_save_IFS
23843
23844 ;;
23845 esac
23846 # We did not find ourselves, most probably we were run as `sh COMMAND'
23847 # in which case we are not to be found in the path.
23848 if test "x$as_myself" = x; then
23849 as_myself=$0
23850 fi
23851 if test ! -f "$as_myself"; then
23852 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23853 exit 1
23854 fi
23855
23856
23857
23858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23859 # ----------------------------------------
23860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23862 # script with STATUS, using 1 if that was 0.
23863 as_fn_error ()
23864 {
23865 as_status=$1; test $as_status -eq 0 && as_status=1
23866 if test "$4"; then
23867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23869 fi
23870 printf "%s\n" "$as_me: error: $2" >&2
23871 as_fn_exit $as_status
23872 } # as_fn_error
23873
23874
23875
23876 # as_fn_set_status STATUS
23877 # -----------------------
23878 # Set $? to STATUS, without forking.
23879 as_fn_set_status ()
23880 {
23881 return $1
23882 } # as_fn_set_status
23883
23884 # as_fn_exit STATUS
23885 # -----------------
23886 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23887 as_fn_exit ()
23888 {
23889 set +e
23890 as_fn_set_status $1
23891 exit $1
23892 } # as_fn_exit
23893
23894 # as_fn_unset VAR
23895 # ---------------
23896 # Portably unset VAR.
23897 as_fn_unset ()
23898 {
23899 { eval $1=; unset $1;}
23900 }
23901 as_unset=as_fn_unset
23902
23903 # as_fn_append VAR VALUE
23904 # ----------------------
23905 # Append the text in VALUE to the end of the definition contained in VAR. Take
23906 # advantage of any shell optimizations that allow amortized linear growth over
23907 # repeated appends, instead of the typical quadratic growth present in naive
23908 # implementations.
23909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23910 then :
23911 eval 'as_fn_append ()
23912 {
23913 eval $1+=\$2
23914 }'
23915 else $as_nop
23916 as_fn_append ()
23917 {
23918 eval $1=\$$1\$2
23919 }
23920 fi # as_fn_append
23921
23922 # as_fn_arith ARG...
23923 # ------------------
23924 # Perform arithmetic evaluation on the ARGs, and store the result in the
23925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23926 # must be portable across $(()) and expr.
23927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23928 then :
23929 eval 'as_fn_arith ()
23930 {
23931 as_val=$(( $* ))
23932 }'
23933 else $as_nop
23934 as_fn_arith ()
23935 {
23936 as_val=`expr "$@" || test $? -eq 1`
23937 }
23938 fi # as_fn_arith
23939
23940
23941 if expr a : '\(a\)' >/dev/null 2>&1 &&
23942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23943 as_expr=expr
23944 else
23945 as_expr=false
23946 fi
23947
23948 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23949 as_basename=basename
23950 else
23951 as_basename=false
23952 fi
23953
23954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23955 as_dirname=dirname
23956 else
23957 as_dirname=false
23958 fi
23959
23960 as_me=`$as_basename -- "$0" ||
23961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23962 X"$0" : 'X\(//\)$' \| \
23963 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23964 printf "%s\n" X/"$0" |
23965 sed '/^.*\/\([^/][^/]*\)\/*$/{
23966 s//\1/
23967 q
23968 }
23969 /^X\/\(\/\/\)$/{
23970 s//\1/
23971 q
23972 }
23973 /^X\/\(\/\).*/{
23974 s//\1/
23975 q
23976 }
23977 s/.*/./; q'`
23978
23979 # Avoid depending upon Character Ranges.
23980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23983 as_cr_digits='0123456789'
23984 as_cr_alnum=$as_cr_Letters$as_cr_digits
23985
23986
23987 # Determine whether it's possible to make 'echo' print without a newline.
23988 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23989 # for compatibility with existing Makefiles.
23990 ECHO_C= ECHO_N= ECHO_T=
23991 case `echo -n x` in #(((((
23992 -n*)
23993 case `echo 'xy\c'` in
23994 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23995 xy) ECHO_C='\c';;
23996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23997 ECHO_T=' ';;
23998 esac;;
23999 *)
24000 ECHO_N='-n';;
24001 esac
24002
24003 # For backward compatibility with old third-party macros, we provide
24004 # the shell variables $as_echo and $as_echo_n. New code should use
24005 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24006 as_echo='printf %s\n'
24007 as_echo_n='printf %s'
24008
24009 rm -f conf$$ conf$$.exe conf$$.file
24010 if test -d conf$$.dir; then
24011 rm -f conf$$.dir/conf$$.file
24012 else
24013 rm -f conf$$.dir
24014 mkdir conf$$.dir 2>/dev/null
24015 fi
24016 if (echo >conf$$.file) 2>/dev/null; then
24017 if ln -s conf$$.file conf$$ 2>/dev/null; then
24018 as_ln_s='ln -s'
24019 # ... but there are two gotchas:
24020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24022 # In both cases, we have to default to `cp -pR'.
24023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24024 as_ln_s='cp -pR'
24025 elif ln conf$$.file conf$$ 2>/dev/null; then
24026 as_ln_s=ln
24027 else
24028 as_ln_s='cp -pR'
24029 fi
24030 else
24031 as_ln_s='cp -pR'
24032 fi
24033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24034 rmdir conf$$.dir 2>/dev/null
24035
24036
24037 # as_fn_mkdir_p
24038 # -------------
24039 # Create "$as_dir" as a directory, including parents if necessary.
24040 as_fn_mkdir_p ()
24041 {
24042
24043 case $as_dir in #(
24044 -*) as_dir=./$as_dir;;
24045 esac
24046 test -d "$as_dir" || eval $as_mkdir_p || {
24047 as_dirs=
24048 while :; do
24049 case $as_dir in #(
24050 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24051 *) as_qdir=$as_dir;;
24052 esac
24053 as_dirs="'$as_qdir' $as_dirs"
24054 as_dir=`$as_dirname -- "$as_dir" ||
24055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24056 X"$as_dir" : 'X\(//\)[^/]' \| \
24057 X"$as_dir" : 'X\(//\)$' \| \
24058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24059 printf "%s\n" X"$as_dir" |
24060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24061 s//\1/
24062 q
24063 }
24064 /^X\(\/\/\)[^/].*/{
24065 s//\1/
24066 q
24067 }
24068 /^X\(\/\/\)$/{
24069 s//\1/
24070 q
24071 }
24072 /^X\(\/\).*/{
24073 s//\1/
24074 q
24075 }
24076 s/.*/./; q'`
24077 test -d "$as_dir" && break
24078 done
24079 test -z "$as_dirs" || eval "mkdir $as_dirs"
24080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24081
24082
24083 } # as_fn_mkdir_p
24084 if mkdir -p . 2>/dev/null; then
24085 as_mkdir_p='mkdir -p "$as_dir"'
24086 else
24087 test -d ./-p && rmdir ./-p
24088 as_mkdir_p=false
24089 fi
24090
24091
24092 # as_fn_executable_p FILE
24093 # -----------------------
24094 # Test if FILE is an executable regular file.
24095 as_fn_executable_p ()
24096 {
24097 test -f "$1" && test -x "$1"
24098 } # as_fn_executable_p
24099 as_test_x='test -x'
24100 as_executable_p=as_fn_executable_p
24101
24102 # Sed expression to map a string onto a valid CPP name.
24103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24104
24105 # Sed expression to map a string onto a valid variable name.
24106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24107
24108
24109 exec 6>&1
24110 ## ----------------------------------- ##
24111 ## Main body of $CONFIG_STATUS script. ##
24112 ## ----------------------------------- ##
24113 _ASEOF
24114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24115
24116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24117 # Save the log message, to keep $0 and so on meaningful, and to
24118 # report actual input values of CONFIG_FILES etc. instead of their
24119 # values after options handling.
24120 ac_log="
24121 This file was extended by Libvisual plugins $as_me 0.4.2, which was
24122 generated by GNU Autoconf 2.71. Invocation command line was
24123
24124 CONFIG_FILES = $CONFIG_FILES
24125 CONFIG_HEADERS = $CONFIG_HEADERS
24126 CONFIG_LINKS = $CONFIG_LINKS
24127 CONFIG_COMMANDS = $CONFIG_COMMANDS
24128 $ $0 $@
24129
24130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24131 "
24132
24133 _ACEOF
24134
24135 case $ac_config_files in *"
24136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24137 esac
24138
24139 case $ac_config_headers in *"
24140 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24141 esac
24142
24143
24144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24145 # Files that config.status was made for.
24146 config_files="$ac_config_files"
24147 config_headers="$ac_config_headers"
24148 config_commands="$ac_config_commands"
24149
24150 _ACEOF
24151
24152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24153 ac_cs_usage="\
24154 \`$as_me' instantiates files and other configuration actions
24155 from templates according to the current configuration. Unless the files
24156 and actions are specified as TAGs, all are instantiated by default.
24157
24158 Usage: $0 [OPTION]... [TAG]...
24159
24160 -h, --help print this help, then exit
24161 -V, --version print version number and configuration settings, then exit
24162 --config print configuration, then exit
24163 -q, --quiet, --silent
24164 do not print progress messages
24165 -d, --debug don't remove temporary files
24166 --recheck update $as_me by reconfiguring in the same conditions
24167 --file=FILE[:TEMPLATE]
24168 instantiate the configuration file FILE
24169 --header=FILE[:TEMPLATE]
24170 instantiate the configuration header FILE
24171
24172 Configuration files:
24173 $config_files
24174
24175 Configuration headers:
24176 $config_headers
24177
24178 Configuration commands:
24179 $config_commands
24180
24181 Report bugs to <https://github.com/Libvisual/libvisual/issues>.
24182 Libvisual plugins home page: <https://github.com/Libvisual/libvisual>."
24183
24184 _ACEOF
24185 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24186 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24188 ac_cs_config='$ac_cs_config_escaped'
24189 ac_cs_version="\\
24190 Libvisual plugins config.status 0.4.2
24191 configured by $0, generated by GNU Autoconf 2.71,
24192 with options \\"\$ac_cs_config\\"
24193
24194 Copyright (C) 2021 Free Software Foundation, Inc.
24195 This config.status script is free software; the Free Software Foundation
24196 gives unlimited permission to copy, distribute and modify it."
24197
24198 ac_pwd='$ac_pwd'
24199 srcdir='$srcdir'
24200 INSTALL='$INSTALL'
24201 MKDIR_P='$MKDIR_P'
24202 AWK='$AWK'
24203 test -n "\$AWK" || AWK=awk
24204 _ACEOF
24205
24206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24207 # The default lists apply if the user does not specify any file.
24208 ac_need_defaults=:
24209 while test $# != 0
24210 do
24211 case $1 in
24212 --*=?*)
24213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24215 ac_shift=:
24216 ;;
24217 --*=)
24218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24219 ac_optarg=
24220 ac_shift=:
24221 ;;
24222 *)
24223 ac_option=$1
24224 ac_optarg=$2
24225 ac_shift=shift
24226 ;;
24227 esac
24228
24229 case $ac_option in
24230 # Handling of the options.
24231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24232 ac_cs_recheck=: ;;
24233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24234 printf "%s\n" "$ac_cs_version"; exit ;;
24235 --config | --confi | --conf | --con | --co | --c )
24236 printf "%s\n" "$ac_cs_config"; exit ;;
24237 --debug | --debu | --deb | --de | --d | -d )
24238 debug=: ;;
24239 --file | --fil | --fi | --f )
24240 $ac_shift
24241 case $ac_optarg in
24242 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24243 '') as_fn_error $? "missing file argument" ;;
24244 esac
24245 as_fn_append CONFIG_FILES " '$ac_optarg'"
24246 ac_need_defaults=false;;
24247 --header | --heade | --head | --hea )
24248 $ac_shift
24249 case $ac_optarg in
24250 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24251 esac
24252 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24253 ac_need_defaults=false;;
24254 --he | --h)
24255 # Conflict between --help and --header
24256 as_fn_error $? "ambiguous option: \`$1'
24257 Try \`$0 --help' for more information.";;
24258 --help | --hel | -h )
24259 printf "%s\n" "$ac_cs_usage"; exit ;;
24260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24262 ac_cs_silent=: ;;
24263
24264 # This is an error.
24265 -*) as_fn_error $? "unrecognized option: \`$1'
24266 Try \`$0 --help' for more information." ;;
24267
24268 *) as_fn_append ac_config_targets " $1"
24269 ac_need_defaults=false ;;
24270
24271 esac
24272 shift
24273 done
24274
24275 ac_configure_extra_args=
24276
24277 if $ac_cs_silent; then
24278 exec 6>/dev/null
24279 ac_configure_extra_args="$ac_configure_extra_args --silent"
24280 fi
24281
24282 _ACEOF
24283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24284 if \$ac_cs_recheck; then
24285 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24286 shift
24287 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24288 CONFIG_SHELL='$SHELL'
24289 export CONFIG_SHELL
24290 exec "\$@"
24291 fi
24292
24293 _ACEOF
24294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24295 exec 5>>config.log
24296 {
24297 echo
24298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24299 ## Running $as_me. ##
24300 _ASBOX
24301 printf "%s\n" "$ac_log"
24302 } >&5
24303
24304 _ACEOF
24305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24306 #
24307 # INIT-COMMANDS
24308 #
24309 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24310
24311
24312 # The HP-UX ksh and POSIX shell print the target directory to stdout
24313 # if CDPATH is set.
24314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24315
24316 sed_quote_subst='$sed_quote_subst'
24317 double_quote_subst='$double_quote_subst'
24318 delay_variable_subst='$delay_variable_subst'
24319 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24320 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24321 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24322 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24323 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24324 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24325 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24326 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24327 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24328 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24329 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24330 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24331 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24332 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24333 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24334 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24335 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24336 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24337 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24338 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24339 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24340 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24341 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24342 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24343 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24344 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24345 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24346 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24347 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24348 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24349 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24350 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24351 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24352 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24353 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24354 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24355 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24356 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24357 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24358 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24359 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24360 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24361 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24362 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24363 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24364 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24365 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24366 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24367 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24368 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24369 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24370 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24371 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24372 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24373 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24374 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24375 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24376 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24377 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"`'
24378 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24379 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24380 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24381 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24414 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24415 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24416 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24417 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24418 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24419 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24420 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24421 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24422 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24423 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24424 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24425 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24426 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24427 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24428 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24429 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24430 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24431 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24432 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24433 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24434 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24435 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24436 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24437 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24438 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24439 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24440 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24441 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24442 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24443 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24444 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24445 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24446 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24447 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24454 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24455 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24456 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24457 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24458 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24459 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24460 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24461 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24462 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24463 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24464 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24465 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24466 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24467 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24468 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24469 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24470 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24471 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24472 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24473 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24474 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24475 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24476 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24477 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24478 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24479 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24480 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24481 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24482 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24483 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24484 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24485 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24486 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24487 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24488 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24489 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24490 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24491 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24492 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24493 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24494 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24495 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24496 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24497 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24498 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24499 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24500 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24501 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24502 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24503 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24504 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24505 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24506 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24507 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24508
24509 LTCC='$LTCC'
24510 LTCFLAGS='$LTCFLAGS'
24511 compiler='$compiler_DEFAULT'
24512
24513 # A function that is used when there is no print builtin or printf.
24514 func_fallback_echo ()
24515 {
24516 eval 'cat <<_LTECHO_EOF
24517 \$1
24518 _LTECHO_EOF'
24519 }
24520
24521 # Quote evaled strings.
24522 for var in SHELL \
24523 ECHO \
24524 PATH_SEPARATOR \
24525 SED \
24526 GREP \
24527 EGREP \
24528 FGREP \
24529 LD \
24530 NM \
24531 LN_S \
24532 lt_SP2NL \
24533 lt_NL2SP \
24534 reload_flag \
24535 OBJDUMP \
24536 deplibs_check_method \
24537 file_magic_cmd \
24538 file_magic_glob \
24539 want_nocaseglob \
24540 DLLTOOL \
24541 sharedlib_from_linklib_cmd \
24542 AR \
24543 AR_FLAGS \
24544 archiver_list_spec \
24545 STRIP \
24546 RANLIB \
24547 CC \
24548 CFLAGS \
24549 compiler \
24550 lt_cv_sys_global_symbol_pipe \
24551 lt_cv_sys_global_symbol_to_cdecl \
24552 lt_cv_sys_global_symbol_to_import \
24553 lt_cv_sys_global_symbol_to_c_name_address \
24554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24555 lt_cv_nm_interface \
24556 nm_file_list_spec \
24557 lt_cv_truncate_bin \
24558 lt_prog_compiler_no_builtin_flag \
24559 lt_prog_compiler_pic \
24560 lt_prog_compiler_wl \
24561 lt_prog_compiler_static \
24562 lt_cv_prog_compiler_c_o \
24563 need_locks \
24564 MANIFEST_TOOL \
24565 DSYMUTIL \
24566 NMEDIT \
24567 LIPO \
24568 OTOOL \
24569 OTOOL64 \
24570 shrext_cmds \
24571 export_dynamic_flag_spec \
24572 whole_archive_flag_spec \
24573 compiler_needs_object \
24574 with_gnu_ld \
24575 allow_undefined_flag \
24576 no_undefined_flag \
24577 hardcode_libdir_flag_spec \
24578 hardcode_libdir_separator \
24579 exclude_expsyms \
24580 include_expsyms \
24581 file_list_spec \
24582 variables_saved_for_relink \
24583 libname_spec \
24584 library_names_spec \
24585 soname_spec \
24586 install_override_mode \
24587 finish_eval \
24588 old_striplib \
24589 striplib \
24590 compiler_lib_search_dirs \
24591 predep_objects \
24592 postdep_objects \
24593 predeps \
24594 postdeps \
24595 compiler_lib_search_path \
24596 LD_CXX \
24597 reload_flag_CXX \
24598 compiler_CXX \
24599 lt_prog_compiler_no_builtin_flag_CXX \
24600 lt_prog_compiler_pic_CXX \
24601 lt_prog_compiler_wl_CXX \
24602 lt_prog_compiler_static_CXX \
24603 lt_cv_prog_compiler_c_o_CXX \
24604 export_dynamic_flag_spec_CXX \
24605 whole_archive_flag_spec_CXX \
24606 compiler_needs_object_CXX \
24607 with_gnu_ld_CXX \
24608 allow_undefined_flag_CXX \
24609 no_undefined_flag_CXX \
24610 hardcode_libdir_flag_spec_CXX \
24611 hardcode_libdir_separator_CXX \
24612 exclude_expsyms_CXX \
24613 include_expsyms_CXX \
24614 file_list_spec_CXX \
24615 compiler_lib_search_dirs_CXX \
24616 predep_objects_CXX \
24617 postdep_objects_CXX \
24618 predeps_CXX \
24619 postdeps_CXX \
24620 compiler_lib_search_path_CXX; do
24621 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24622 *[\\\\\\\`\\"\\\$]*)
24623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24624 ;;
24625 *)
24626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24627 ;;
24628 esac
24629 done
24630
24631 # Double-quote double-evaled strings.
24632 for var in reload_cmds \
24633 old_postinstall_cmds \
24634 old_postuninstall_cmds \
24635 old_archive_cmds \
24636 extract_expsyms_cmds \
24637 old_archive_from_new_cmds \
24638 old_archive_from_expsyms_cmds \
24639 archive_cmds \
24640 archive_expsym_cmds \
24641 module_cmds \
24642 module_expsym_cmds \
24643 export_symbols_cmds \
24644 prelink_cmds \
24645 postlink_cmds \
24646 postinstall_cmds \
24647 postuninstall_cmds \
24648 finish_cmds \
24649 sys_lib_search_path_spec \
24650 configure_time_dlsearch_path \
24651 configure_time_lt_sys_library_path \
24652 reload_cmds_CXX \
24653 old_archive_cmds_CXX \
24654 old_archive_from_new_cmds_CXX \
24655 old_archive_from_expsyms_cmds_CXX \
24656 archive_cmds_CXX \
24657 archive_expsym_cmds_CXX \
24658 module_cmds_CXX \
24659 module_expsym_cmds_CXX \
24660 export_symbols_cmds_CXX \
24661 prelink_cmds_CXX \
24662 postlink_cmds_CXX; do
24663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24664 *[\\\\\\\`\\"\\\$]*)
24665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24666 ;;
24667 *)
24668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24669 ;;
24670 esac
24671 done
24672
24673 ac_aux_dir='$ac_aux_dir'
24674
24675 # See if we are running on zsh, and set the options that allow our
24676 # commands through without removal of \ escapes INIT.
24677 if test -n "\${ZSH_VERSION+set}"; then
24678 setopt NO_GLOB_SUBST
24679 fi
24680
24681
24682 PACKAGE='$PACKAGE'
24683 VERSION='$VERSION'
24684 RM='$RM'
24685 ofile='$ofile'
24686
24687
24688
24689
24690
24691 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24692 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24693 # from automake < 1.5.
24694 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24695 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24696 LINGUAS="${LINGUAS-%UNSET%}"
24697
24698
24699 _ACEOF
24700
24701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24702
24703 # Handling of arguments.
24704 for ac_config_target in $ac_config_targets
24705 do
24706 case $ac_config_target in
24707 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24710 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24712 "po/Makevars") CONFIG_FILES="$CONFIG_FILES po/Makevars" ;;
24713 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24714 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24715 "plugins/actor/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/Makefile" ;;
24716 "plugins/actor/bumpscope/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/bumpscope/Makefile" ;;
24717 "plugins/actor/corona/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/corona/Makefile" ;;
24718 "plugins/actor/gdkpixbuf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/gdkpixbuf/Makefile" ;;
24719 "plugins/actor/gstreamer/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/gstreamer/Makefile" ;;
24720 "plugins/actor/infinite/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/infinite/Makefile" ;;
24721 "plugins/actor/jakdaw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/jakdaw/Makefile" ;;
24722 "plugins/actor/JESS/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/JESS/Makefile" ;;
24723 "plugins/actor/lv_analyzer/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/lv_analyzer/Makefile" ;;
24724 "plugins/actor/lv_gltest/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/lv_gltest/Makefile" ;;
24725 "plugins/actor/lv_scope/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/lv_scope/Makefile" ;;
24726 "plugins/actor/madspin/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/madspin/Makefile" ;;
24727 "plugins/actor/nastyfft/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/nastyfft/Makefile" ;;
24728 "plugins/actor/oinksie/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/oinksie/Makefile" ;;
24729 "plugins/actor/pseudotoad_flower/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/pseudotoad_flower/Makefile" ;;
24730 "plugins/actor/G-Force/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Makefile" ;;
24731 "plugins/actor/G-Force/docs/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/docs/Makefile" ;;
24732 "plugins/actor/G-Force/Common/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/Makefile" ;;
24733 "plugins/actor/G-Force/Common/GeneralTools/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/GeneralTools/Makefile" ;;
24734 "plugins/actor/G-Force/Common/GeneralTools/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/GeneralTools/Headers/Makefile" ;;
24735 "plugins/actor/G-Force/Common/io/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/io/Makefile" ;;
24736 "plugins/actor/G-Force/Common/io/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/io/Headers/Makefile" ;;
24737 "plugins/actor/G-Force/Common/math/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/math/Makefile" ;;
24738 "plugins/actor/G-Force/Common/math/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/math/Headers/Makefile" ;;
24739 "plugins/actor/G-Force/Common/UI/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/UI/Makefile" ;;
24740 "plugins/actor/G-Force/Common/UI/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/Common/UI/Headers/Makefile" ;;
24741 "plugins/actor/G-Force/GForceCommon/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceCommon/Makefile" ;;
24742 "plugins/actor/G-Force/GForceCommon/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceCommon/Headers/Makefile" ;;
24743 "plugins/actor/G-Force/unix/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/unix/Makefile" ;;
24744 "plugins/actor/G-Force/unix/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/unix/Headers/Makefile" ;;
24745 "plugins/actor/G-Force/unix/libmfl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/unix/libmfl/Makefile" ;;
24746 "plugins/actor/G-Force/unix/libvisual/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/unix/libvisual/Makefile" ;;
24747 "plugins/actor/G-Force/GForceColorMaps/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceColorMaps/Makefile" ;;
24748 "plugins/actor/G-Force/GForceDeltaFields/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceDeltaFields/Makefile" ;;
24749 "plugins/actor/G-Force/GForceParticles/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceParticles/Makefile" ;;
24750 "plugins/actor/G-Force/GForceWaveShapes/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/GForceWaveShapes/Makefile" ;;
24751 "plugins/actor/G-Force/NotWorkingWaveShapes/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/actor/G-Force/NotWorkingWaveShapes/Makefile" ;;
24752 "plugins/input/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/Makefile" ;;
24753 "plugins/input/alsa/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/alsa/Makefile" ;;
24754 "plugins/input/mplayer/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/mplayer/Makefile" ;;
24755 "plugins/input/jack/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/jack/Makefile" ;;
24756 "plugins/input/debug/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/debug/Makefile" ;;
24757 "plugins/input/portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/portaudio/Makefile" ;;
24758 "plugins/input/pulseaudio/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input/pulseaudio/Makefile" ;;
24759 "plugins/morph/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/morph/Makefile" ;;
24760 "plugins/morph/alphablend/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/morph/alphablend/Makefile" ;;
24761 "plugins/morph/tentacle/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/morph/tentacle/Makefile" ;;
24762 "plugins/morph/flash/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/morph/flash/Makefile" ;;
24763 "plugins/morph/slide/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/morph/slide/Makefile" ;;
24764
24765 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24766 esac
24767 done
24768
24769
24770 # If the user did not use the arguments to specify the items to instantiate,
24771 # then the envvar interface is used. Set only those that are not.
24772 # We use the long form for the default assignment because of an extremely
24773 # bizarre bug on SunOS 4.1.3.
24774 if $ac_need_defaults; then
24775 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24776 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24777 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24778 fi
24779
24780 # Have a temporary directory for convenience. Make it in the build tree
24781 # simply because there is no reason against having it here, and in addition,
24782 # creating and moving files from /tmp can sometimes cause problems.
24783 # Hook for its removal unless debugging.
24784 # Note that there is a small window in which the directory will not be cleaned:
24785 # after its creation but before its name has been assigned to `$tmp'.
24786 $debug ||
24787 {
24788 tmp= ac_tmp=
24789 trap 'exit_status=$?
24790 : "${ac_tmp:=$tmp}"
24791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24792 ' 0
24793 trap 'as_fn_exit 1' 1 2 13 15
24794 }
24795 # Create a (secure) tmp directory for tmp files.
24796
24797 {
24798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24799 test -d "$tmp"
24800 } ||
24801 {
24802 tmp=./conf$$-$RANDOM
24803 (umask 077 && mkdir "$tmp")
24804 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24805 ac_tmp=$tmp
24806
24807 # Set up the scripts for CONFIG_FILES section.
24808 # No need to generate them if there are no CONFIG_FILES.
24809 # This happens for instance with `./config.status config.h'.
24810 if test -n "$CONFIG_FILES"; then
24811
24812
24813 ac_cr=`echo X | tr X '\015'`
24814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24815 # But we know of no other shell where ac_cr would be empty at this
24816 # point, so we can use a bashism as a fallback.
24817 if test "x$ac_cr" = x; then
24818 eval ac_cr=\$\'\\r\'
24819 fi
24820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24822 ac_cs_awk_cr='\\r'
24823 else
24824 ac_cs_awk_cr=$ac_cr
24825 fi
24826
24827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24828 _ACEOF
24829
24830
24831 {
24832 echo "cat >conf$$subs.awk <<_ACEOF" &&
24833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24834 echo "_ACEOF"
24835 } >conf$$subs.sh ||
24836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24838 ac_delim='%!_!# '
24839 for ac_last_try in false false false false false :; do
24840 . ./conf$$subs.sh ||
24841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24842
24843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24844 if test $ac_delim_n = $ac_delim_num; then
24845 break
24846 elif $ac_last_try; then
24847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24848 else
24849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24850 fi
24851 done
24852 rm -f conf$$subs.sh
24853
24854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24855 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24856 _ACEOF
24857 sed -n '
24858 h
24859 s/^/S["/; s/!.*/"]=/
24860 p
24861 g
24862 s/^[^!]*!//
24863 :repl
24864 t repl
24865 s/'"$ac_delim"'$//
24866 t delim
24867 :nl
24868 h
24869 s/\(.\{148\}\)..*/\1/
24870 t more1
24871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24872 p
24873 n
24874 b repl
24875 :more1
24876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24877 p
24878 g
24879 s/.\{148\}//
24880 t nl
24881 :delim
24882 h
24883 s/\(.\{148\}\)..*/\1/
24884 t more2
24885 s/["\\]/\\&/g; s/^/"/; s/$/"/
24886 p
24887 b
24888 :more2
24889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24890 p
24891 g
24892 s/.\{148\}//
24893 t delim
24894 ' <conf$$subs.awk | sed '
24895 /^[^""]/{
24896 N
24897 s/\n//
24898 }
24899 ' >>$CONFIG_STATUS || ac_write_fail=1
24900 rm -f conf$$subs.awk
24901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24902 _ACAWK
24903 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24904 for (key in S) S_is_set[key] = 1
24905 FS = ""
24906
24907 }
24908 {
24909 line = $ 0
24910 nfields = split(line, field, "@")
24911 substed = 0
24912 len = length(field[1])
24913 for (i = 2; i < nfields; i++) {
24914 key = field[i]
24915 keylen = length(key)
24916 if (S_is_set[key]) {
24917 value = S[key]
24918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24919 len += length(value) + length(field[++i])
24920 substed = 1
24921 } else
24922 len += 1 + keylen
24923 }
24924
24925 print line
24926 }
24927
24928 _ACAWK
24929 _ACEOF
24930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24933 else
24934 cat
24935 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24937 _ACEOF
24938
24939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24941 # trailing colons and then remove the whole line if VPATH becomes empty
24942 # (actually we leave an empty line to preserve line numbers).
24943 if test "x$srcdir" = x.; then
24944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24945 h
24946 s///
24947 s/^/:/
24948 s/[ ]*$/:/
24949 s/:\$(srcdir):/:/g
24950 s/:\${srcdir}:/:/g
24951 s/:@srcdir@:/:/g
24952 s/^:*//
24953 s/:*$//
24954 x
24955 s/\(=[ ]*\).*/\1/
24956 G
24957 s/\n//
24958 s/^[^=]*=[ ]*$//
24959 }'
24960 fi
24961
24962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24963 fi # test -n "$CONFIG_FILES"
24964
24965 # Set up the scripts for CONFIG_HEADERS section.
24966 # No need to generate them if there are no CONFIG_HEADERS.
24967 # This happens for instance with `./config.status Makefile'.
24968 if test -n "$CONFIG_HEADERS"; then
24969 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24970 BEGIN {
24971 _ACEOF
24972
24973 # Transform confdefs.h into an awk script `defines.awk', embedded as
24974 # here-document in config.status, that substitutes the proper values into
24975 # config.h.in to produce config.h.
24976
24977 # Create a delimiter string that does not exist in confdefs.h, to ease
24978 # handling of long lines.
24979 ac_delim='%!_!# '
24980 for ac_last_try in false false :; do
24981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24982 if test -z "$ac_tt"; then
24983 break
24984 elif $ac_last_try; then
24985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24986 else
24987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24988 fi
24989 done
24990
24991 # For the awk script, D is an array of macro values keyed by name,
24992 # likewise P contains macro parameters if any. Preserve backslash
24993 # newline sequences.
24994
24995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24996 sed -n '
24997 s/.\{148\}/&'"$ac_delim"'/g
24998 t rset
24999 :rset
25000 s/^[ ]*#[ ]*define[ ][ ]*/ /
25001 t def
25002 d
25003 :def
25004 s/\\$//
25005 t bsnl
25006 s/["\\]/\\&/g
25007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25008 D["\1"]=" \3"/p
25009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25010 d
25011 :bsnl
25012 s/["\\]/\\&/g
25013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25014 D["\1"]=" \3\\\\\\n"\\/p
25015 t cont
25016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25017 t cont
25018 d
25019 :cont
25020 n
25021 s/.\{148\}/&'"$ac_delim"'/g
25022 t clear
25023 :clear
25024 s/\\$//
25025 t bsnlc
25026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25027 d
25028 :bsnlc
25029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25030 b cont
25031 ' <confdefs.h | sed '
25032 s/'"$ac_delim"'/"\\\
25033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25034
25035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25036 for (key in D) D_is_set[key] = 1
25037 FS = ""
25038 }
25039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25040 line = \$ 0
25041 split(line, arg, " ")
25042 if (arg[1] == "#") {
25043 defundef = arg[2]
25044 mac1 = arg[3]
25045 } else {
25046 defundef = substr(arg[1], 2)
25047 mac1 = arg[2]
25048 }
25049 split(mac1, mac2, "(") #)
25050 macro = mac2[1]
25051 prefix = substr(line, 1, index(line, defundef) - 1)
25052 if (D_is_set[macro]) {
25053 # Preserve the white space surrounding the "#".
25054 print prefix "define", macro P[macro] D[macro]
25055 next
25056 } else {
25057 # Replace #undef with comments. This is necessary, for example,
25058 # in the case of _POSIX_SOURCE, which is predefined and required
25059 # on some systems where configure will not decide to define it.
25060 if (defundef == "undef") {
25061 print "/*", prefix defundef, macro, "*/"
25062 next
25063 }
25064 }
25065 }
25066 { print }
25067 _ACAWK
25068 _ACEOF
25069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25071 fi # test -n "$CONFIG_HEADERS"
25072
25073
25074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25075 shift
25076 for ac_tag
25077 do
25078 case $ac_tag in
25079 :[FHLC]) ac_mode=$ac_tag; continue;;
25080 esac
25081 case $ac_mode$ac_tag in
25082 :[FHL]*:*);;
25083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25084 :[FH]-) ac_tag=-:-;;
25085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25086 esac
25087 ac_save_IFS=$IFS
25088 IFS=:
25089 set x $ac_tag
25090 IFS=$ac_save_IFS
25091 shift
25092 ac_file=$1
25093 shift
25094
25095 case $ac_mode in
25096 :L) ac_source=$1;;
25097 :[FH])
25098 ac_file_inputs=
25099 for ac_f
25100 do
25101 case $ac_f in
25102 -) ac_f="$ac_tmp/stdin";;
25103 *) # Look for the file first in the build tree, then in the source tree
25104 # (if the path is not absolute). The absolute path cannot be DOS-style,
25105 # because $ac_f cannot contain `:'.
25106 test -f "$ac_f" ||
25107 case $ac_f in
25108 [\\/$]*) false;;
25109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25110 esac ||
25111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25112 esac
25113 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25114 as_fn_append ac_file_inputs " '$ac_f'"
25115 done
25116
25117 # Let's still pretend it is `configure' which instantiates (i.e., don't
25118 # use $as_me), people would be surprised to read:
25119 # /* config.h. Generated by config.status. */
25120 configure_input='Generated from '`
25121 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25122 `' by configure.'
25123 if test x"$ac_file" != x-; then
25124 configure_input="$ac_file. $configure_input"
25125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25126 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25127 fi
25128 # Neutralize special characters interpreted by sed in replacement strings.
25129 case $configure_input in #(
25130 *\&* | *\|* | *\\* )
25131 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25133 *) ac_sed_conf_input=$configure_input;;
25134 esac
25135
25136 case $ac_tag in
25137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25139 esac
25140 ;;
25141 esac
25142
25143 ac_dir=`$as_dirname -- "$ac_file" ||
25144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25145 X"$ac_file" : 'X\(//\)[^/]' \| \
25146 X"$ac_file" : 'X\(//\)$' \| \
25147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25148 printf "%s\n" X"$ac_file" |
25149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25150 s//\1/
25151 q
25152 }
25153 /^X\(\/\/\)[^/].*/{
25154 s//\1/
25155 q
25156 }
25157 /^X\(\/\/\)$/{
25158 s//\1/
25159 q
25160 }
25161 /^X\(\/\).*/{
25162 s//\1/
25163 q
25164 }
25165 s/.*/./; q'`
25166 as_dir="$ac_dir"; as_fn_mkdir_p
25167 ac_builddir=.
25168
25169 case "$ac_dir" in
25170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25171 *)
25172 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25173 # A ".." for each directory in $ac_dir_suffix.
25174 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25175 case $ac_top_builddir_sub in
25176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25178 esac ;;
25179 esac
25180 ac_abs_top_builddir=$ac_pwd
25181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25182 # for backward compatibility:
25183 ac_top_builddir=$ac_top_build_prefix
25184
25185 case $srcdir in
25186 .) # We are building in place.
25187 ac_srcdir=.
25188 ac_top_srcdir=$ac_top_builddir_sub
25189 ac_abs_top_srcdir=$ac_pwd ;;
25190 [\\/]* | ?:[\\/]* ) # Absolute name.
25191 ac_srcdir=$srcdir$ac_dir_suffix;
25192 ac_top_srcdir=$srcdir
25193 ac_abs_top_srcdir=$srcdir ;;
25194 *) # Relative name.
25195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25196 ac_top_srcdir=$ac_top_build_prefix$srcdir
25197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25198 esac
25199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25200
25201
25202 case $ac_mode in
25203 :F)
25204 #
25205 # CONFIG_FILE
25206 #
25207
25208 case $INSTALL in
25209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25211 esac
25212 ac_MKDIR_P=$MKDIR_P
25213 case $MKDIR_P in
25214 [\\/$]* | ?:[\\/]* ) ;;
25215 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25216 esac
25217 _ACEOF
25218
25219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25220 # If the template does not know about datarootdir, expand it.
25221 # FIXME: This hack should be removed a few years after 2.60.
25222 ac_datarootdir_hack=; ac_datarootdir_seen=
25223 ac_sed_dataroot='
25224 /datarootdir/ {
25225 p
25226 q
25227 }
25228 /@datadir@/p
25229 /@docdir@/p
25230 /@infodir@/p
25231 /@localedir@/p
25232 /@mandir@/p'
25233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25234 *datarootdir*) ac_datarootdir_seen=yes;;
25235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25237 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25238 _ACEOF
25239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25240 ac_datarootdir_hack='
25241 s&@datadir@&$datadir&g
25242 s&@docdir@&$docdir&g
25243 s&@infodir@&$infodir&g
25244 s&@localedir@&$localedir&g
25245 s&@mandir@&$mandir&g
25246 s&\\\${datarootdir}&$datarootdir&g' ;;
25247 esac
25248 _ACEOF
25249
25250 # Neutralize VPATH when `$srcdir' = `.'.
25251 # Shell code in configure.ac might set extrasub.
25252 # FIXME: do we really want to maintain this feature?
25253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25254 ac_sed_extra="$ac_vpsub
25255 $extrasub
25256 _ACEOF
25257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25258 :t
25259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25260 s|@configure_input@|$ac_sed_conf_input|;t t
25261 s&@top_builddir@&$ac_top_builddir_sub&;t t
25262 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25263 s&@srcdir@&$ac_srcdir&;t t
25264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25265 s&@top_srcdir@&$ac_top_srcdir&;t t
25266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25267 s&@builddir@&$ac_builddir&;t t
25268 s&@abs_builddir@&$ac_abs_builddir&;t t
25269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25270 s&@INSTALL@&$ac_INSTALL&;t t
25271 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25272 $ac_datarootdir_hack
25273 "
25274 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25276
25277 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25280 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25282 which seems to be undefined. Please make sure it is defined" >&5
25283 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25284 which seems to be undefined. Please make sure it is defined" >&2;}
25285
25286 rm -f "$ac_tmp/stdin"
25287 case $ac_file in
25288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25290 esac \
25291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25292 ;;
25293 :H)
25294 #
25295 # CONFIG_HEADER
25296 #
25297 if test x"$ac_file" != x-; then
25298 {
25299 printf "%s\n" "/* $configure_input */" >&1 \
25300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25301 } >"$ac_tmp/config.h" \
25302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25305 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25306 else
25307 rm -f "$ac_file"
25308 mv "$ac_tmp/config.h" "$ac_file" \
25309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25310 fi
25311 else
25312 printf "%s\n" "/* $configure_input */" >&1 \
25313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25314 || as_fn_error $? "could not create -" "$LINENO" 5
25315 fi
25316 # Compute "$ac_file"'s index in $config_headers.
25317 _am_arg="$ac_file"
25318 _am_stamp_count=1
25319 for _am_header in $config_headers :; do
25320 case $_am_header in
25321 $_am_arg | $_am_arg:* )
25322 break ;;
25323 * )
25324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25325 esac
25326 done
25327 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25328 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25329 X"$_am_arg" : 'X\(//\)[^/]' \| \
25330 X"$_am_arg" : 'X\(//\)$' \| \
25331 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25332 printf "%s\n" X"$_am_arg" |
25333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25334 s//\1/
25335 q
25336 }
25337 /^X\(\/\/\)[^/].*/{
25338 s//\1/
25339 q
25340 }
25341 /^X\(\/\/\)$/{
25342 s//\1/
25343 q
25344 }
25345 /^X\(\/\).*/{
25346 s//\1/
25347 q
25348 }
25349 s/.*/./; q'`/stamp-h$_am_stamp_count
25350 ;;
25351
25352 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25353 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25354 ;;
25355 esac
25356
25357
25358 case $ac_file$ac_mode in
25359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25360 # Older Autoconf quotes --file arguments for eval, but not when files
25361 # are listed without --file. Let's play safe and only enable the eval
25362 # if we detect the quoting.
25363 # TODO: see whether this extra hack can be removed once we start
25364 # requiring Autoconf 2.70 or later.
25365 case $CONFIG_FILES in #(
25366 *\'*) :
25367 eval set x "$CONFIG_FILES" ;; #(
25368 *) :
25369 set x $CONFIG_FILES ;; #(
25370 *) :
25371 ;;
25372 esac
25373 shift
25374 # Used to flag and report bootstrapping failures.
25375 am_rc=0
25376 for am_mf
25377 do
25378 # Strip MF so we end up with the name of the file.
25379 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25380 # Check whether this is an Automake generated Makefile which includes
25381 # dependency-tracking related rules and includes.
25382 # Grep'ing the whole file directly is not great: AIX grep has a line
25383 # limit of 2048, but all sed's we know have understand at least 4000.
25384 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25385 || continue
25386 am_dirpart=`$as_dirname -- "$am_mf" ||
25387 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25388 X"$am_mf" : 'X\(//\)[^/]' \| \
25389 X"$am_mf" : 'X\(//\)$' \| \
25390 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25391 printf "%s\n" X"$am_mf" |
25392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25393 s//\1/
25394 q
25395 }
25396 /^X\(\/\/\)[^/].*/{
25397 s//\1/
25398 q
25399 }
25400 /^X\(\/\/\)$/{
25401 s//\1/
25402 q
25403 }
25404 /^X\(\/\).*/{
25405 s//\1/
25406 q
25407 }
25408 s/.*/./; q'`
25409 am_filepart=`$as_basename -- "$am_mf" ||
25410 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25411 X"$am_mf" : 'X\(//\)$' \| \
25412 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25413 printf "%s\n" X/"$am_mf" |
25414 sed '/^.*\/\([^/][^/]*\)\/*$/{
25415 s//\1/
25416 q
25417 }
25418 /^X\/\(\/\/\)$/{
25419 s//\1/
25420 q
25421 }
25422 /^X\/\(\/\).*/{
25423 s//\1/
25424 q
25425 }
25426 s/.*/./; q'`
25427 { echo "$as_me:$LINENO: cd "$am_dirpart" \
25428 && sed -e '/# am--include-marker/d' "$am_filepart" \
25429 | $MAKE -f - am--depfiles" >&5
25430 (cd "$am_dirpart" \
25431 && sed -e '/# am--include-marker/d' "$am_filepart" \
25432 | $MAKE -f - am--depfiles) >&5 2>&5
25433 ac_status=$?
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); } || am_rc=$?
25436 done
25437 if test $am_rc -ne 0; then
25438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25440 as_fn_error $? "Something went wrong bootstrapping makefile fragments
25441 for automatic dependency tracking. If GNU make was not used, consider
25442 re-running the configure script with MAKE=\"gmake\" (or whatever is
25443 necessary). You can also try re-running configure with the
25444 '--disable-dependency-tracking' option to at least be able to build
25445 the package (albeit without support for automatic dependency tracking).
25446 See \`config.log' for more details" "$LINENO" 5; }
25447 fi
25448 { am_dirpart=; unset am_dirpart;}
25449 { am_filepart=; unset am_filepart;}
25450 { am_mf=; unset am_mf;}
25451 { am_rc=; unset am_rc;}
25452 rm -f conftest-deps.mk
25453 }
25454 ;;
25455 "libtool":C)
25456
25457 # See if we are running on zsh, and set the options that allow our
25458 # commands through without removal of \ escapes.
25459 if test -n "${ZSH_VERSION+set}"; then
25460 setopt NO_GLOB_SUBST
25461 fi
25462
25463 cfgfile=${ofile}T
25464 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25465 $RM "$cfgfile"
25466
25467 cat <<_LT_EOF >> "$cfgfile"
25468 #! $SHELL
25469 # Generated automatically by $as_me ($PACKAGE) $VERSION
25470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25471
25472 # Provide generalized library-building support services.
25473 # Written by Gordon Matzigkeit, 1996
25474
25475 # Copyright (C) 2014 Free Software Foundation, Inc.
25476 # This is free software; see the source for copying conditions. There is NO
25477 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25478
25479 # GNU Libtool is free software; you can redistribute it and/or modify
25480 # it under the terms of the GNU General Public License as published by
25481 # the Free Software Foundation; either version 2 of of the License, or
25482 # (at your option) any later version.
25483 #
25484 # As a special exception to the GNU General Public License, if you
25485 # distribute this file as part of a program or library that is built
25486 # using GNU Libtool, you may include this file under the same
25487 # distribution terms that you use for the rest of that program.
25488 #
25489 # GNU Libtool is distributed in the hope that it will be useful, but
25490 # WITHOUT ANY WARRANTY; without even the implied warranty of
25491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25492 # GNU General Public License for more details.
25493 #
25494 # You should have received a copy of the GNU General Public License
25495 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25496
25497
25498 # The names of the tagged configurations supported by this script.
25499 available_tags='CXX '
25500
25501 # Configured defaults for sys_lib_dlsearch_path munging.
25502 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25503
25504 # ### BEGIN LIBTOOL CONFIG
25505
25506 # Whether or not to build static libraries.
25507 build_old_libs=$enable_static
25508
25509 # Which release of libtool.m4 was used?
25510 macro_version=$macro_version
25511 macro_revision=$macro_revision
25512
25513 # Whether or not to build shared libraries.
25514 build_libtool_libs=$enable_shared
25515
25516 # What type of objects to build.
25517 pic_mode=$pic_mode
25518
25519 # Whether or not to optimize for fast installation.
25520 fast_install=$enable_fast_install
25521
25522 # Shared archive member basename,for filename based shared library versioning on AIX.
25523 shared_archive_member_spec=$shared_archive_member_spec
25524
25525 # Shell to use when invoking shell scripts.
25526 SHELL=$lt_SHELL
25527
25528 # An echo program that protects backslashes.
25529 ECHO=$lt_ECHO
25530
25531 # The PATH separator for the build system.
25532 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25533
25534 # The host system.
25535 host_alias=$host_alias
25536 host=$host
25537 host_os=$host_os
25538
25539 # The build system.
25540 build_alias=$build_alias
25541 build=$build
25542 build_os=$build_os
25543
25544 # A sed program that does not truncate output.
25545 SED=$lt_SED
25546
25547 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25548 Xsed="\$SED -e 1s/^X//"
25549
25550 # A grep program that handles long lines.
25551 GREP=$lt_GREP
25552
25553 # An ERE matcher.
25554 EGREP=$lt_EGREP
25555
25556 # A literal string matcher.
25557 FGREP=$lt_FGREP
25558
25559 # A BSD- or MS-compatible name lister.
25560 NM=$lt_NM
25561
25562 # Whether we need soft or hard links.
25563 LN_S=$lt_LN_S
25564
25565 # What is the maximum length of a command?
25566 max_cmd_len=$max_cmd_len
25567
25568 # Object file suffix (normally "o").
25569 objext=$ac_objext
25570
25571 # Executable file suffix (normally "").
25572 exeext=$exeext
25573
25574 # whether the shell understands "unset".
25575 lt_unset=$lt_unset
25576
25577 # turn spaces into newlines.
25578 SP2NL=$lt_lt_SP2NL
25579
25580 # turn newlines into spaces.
25581 NL2SP=$lt_lt_NL2SP
25582
25583 # convert \$build file names to \$host format.
25584 to_host_file_cmd=$lt_cv_to_host_file_cmd
25585
25586 # convert \$build files to toolchain format.
25587 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25588
25589 # An object symbol dumper.
25590 OBJDUMP=$lt_OBJDUMP
25591
25592 # Method to check whether dependent libraries are shared objects.
25593 deplibs_check_method=$lt_deplibs_check_method
25594
25595 # Command to use when deplibs_check_method = "file_magic".
25596 file_magic_cmd=$lt_file_magic_cmd
25597
25598 # How to find potential files when deplibs_check_method = "file_magic".
25599 file_magic_glob=$lt_file_magic_glob
25600
25601 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25602 want_nocaseglob=$lt_want_nocaseglob
25603
25604 # DLL creation program.
25605 DLLTOOL=$lt_DLLTOOL
25606
25607 # Command to associate shared and link libraries.
25608 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25609
25610 # The archiver.
25611 AR=$lt_AR
25612
25613 # Flags to create an archive.
25614 AR_FLAGS=$lt_AR_FLAGS
25615
25616 # How to feed a file listing to the archiver.
25617 archiver_list_spec=$lt_archiver_list_spec
25618
25619 # A symbol stripping program.
25620 STRIP=$lt_STRIP
25621
25622 # Commands used to install an old-style archive.
25623 RANLIB=$lt_RANLIB
25624 old_postinstall_cmds=$lt_old_postinstall_cmds
25625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25626
25627 # Whether to use a lock for old archive extraction.
25628 lock_old_archive_extraction=$lock_old_archive_extraction
25629
25630 # A C compiler.
25631 LTCC=$lt_CC
25632
25633 # LTCC compiler flags.
25634 LTCFLAGS=$lt_CFLAGS
25635
25636 # Take the output of nm and produce a listing of raw symbols and C names.
25637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25638
25639 # Transform the output of nm in a proper C declaration.
25640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25641
25642 # Transform the output of nm into a list of symbols to manually relocate.
25643 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25644
25645 # Transform the output of nm in a C name address pair.
25646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25647
25648 # Transform the output of nm in a C name address pair when lib prefix is needed.
25649 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25650
25651 # The name lister interface.
25652 nm_interface=$lt_lt_cv_nm_interface
25653
25654 # Specify filename containing input files for \$NM.
25655 nm_file_list_spec=$lt_nm_file_list_spec
25656
25657 # The root where to search for dependent libraries,and where our libraries should be installed.
25658 lt_sysroot=$lt_sysroot
25659
25660 # Command to truncate a binary pipe.
25661 lt_truncate_bin=$lt_lt_cv_truncate_bin
25662
25663 # The name of the directory that contains temporary libtool files.
25664 objdir=$objdir
25665
25666 # Used to examine libraries when file_magic_cmd begins with "file".
25667 MAGIC_CMD=$MAGIC_CMD
25668
25669 # Must we lock files when doing compilation?
25670 need_locks=$lt_need_locks
25671
25672 # Manifest tool.
25673 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25674
25675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25676 DSYMUTIL=$lt_DSYMUTIL
25677
25678 # Tool to change global to local symbols on Mac OS X.
25679 NMEDIT=$lt_NMEDIT
25680
25681 # Tool to manipulate fat objects and archives on Mac OS X.
25682 LIPO=$lt_LIPO
25683
25684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25685 OTOOL=$lt_OTOOL
25686
25687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25688 OTOOL64=$lt_OTOOL64
25689
25690 # Old archive suffix (normally "a").
25691 libext=$libext
25692
25693 # Shared library suffix (normally ".so").
25694 shrext_cmds=$lt_shrext_cmds
25695
25696 # The commands to extract the exported symbol list from a shared archive.
25697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25698
25699 # Variables whose values should be saved in libtool wrapper scripts and
25700 # restored at link time.
25701 variables_saved_for_relink=$lt_variables_saved_for_relink
25702
25703 # Do we need the "lib" prefix for modules?
25704 need_lib_prefix=$need_lib_prefix
25705
25706 # Do we need a version for libraries?
25707 need_version=$need_version
25708
25709 # Library versioning type.
25710 version_type=$version_type
25711
25712 # Shared library runtime path variable.
25713 runpath_var=$runpath_var
25714
25715 # Shared library path variable.
25716 shlibpath_var=$shlibpath_var
25717
25718 # Is shlibpath searched before the hard-coded library search path?
25719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25720
25721 # Format of library name prefix.
25722 libname_spec=$lt_libname_spec
25723
25724 # List of archive names. First name is the real one, the rest are links.
25725 # The last name is the one that the linker finds with -lNAME
25726 library_names_spec=$lt_library_names_spec
25727
25728 # The coded name of the library, if different from the real name.
25729 soname_spec=$lt_soname_spec
25730
25731 # Permission mode override for installation of shared libraries.
25732 install_override_mode=$lt_install_override_mode
25733
25734 # Command to use after installation of a shared archive.
25735 postinstall_cmds=$lt_postinstall_cmds
25736
25737 # Command to use after uninstallation of a shared archive.
25738 postuninstall_cmds=$lt_postuninstall_cmds
25739
25740 # Commands used to finish a libtool library installation in a directory.
25741 finish_cmds=$lt_finish_cmds
25742
25743 # As "finish_cmds", except a single script fragment to be evaled but
25744 # not shown.
25745 finish_eval=$lt_finish_eval
25746
25747 # Whether we should hardcode library paths into libraries.
25748 hardcode_into_libs=$hardcode_into_libs
25749
25750 # Compile-time system search path for libraries.
25751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25752
25753 # Detected run-time system search path for libraries.
25754 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25755
25756 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25757 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25758
25759 # Whether dlopen is supported.
25760 dlopen_support=$enable_dlopen
25761
25762 # Whether dlopen of programs is supported.
25763 dlopen_self=$enable_dlopen_self
25764
25765 # Whether dlopen of statically linked programs is supported.
25766 dlopen_self_static=$enable_dlopen_self_static
25767
25768 # Commands to strip libraries.
25769 old_striplib=$lt_old_striplib
25770 striplib=$lt_striplib
25771
25772
25773 # The linker used to build libraries.
25774 LD=$lt_LD
25775
25776 # How to create reloadable object files.
25777 reload_flag=$lt_reload_flag
25778 reload_cmds=$lt_reload_cmds
25779
25780 # Commands used to build an old-style archive.
25781 old_archive_cmds=$lt_old_archive_cmds
25782
25783 # A language specific compiler.
25784 CC=$lt_compiler
25785
25786 # Is the compiler the GNU compiler?
25787 with_gcc=$GCC
25788
25789 # Compiler flag to turn off builtin functions.
25790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25791
25792 # Additional compiler flags for building library objects.
25793 pic_flag=$lt_lt_prog_compiler_pic
25794
25795 # How to pass a linker flag through the compiler.
25796 wl=$lt_lt_prog_compiler_wl
25797
25798 # Compiler flag to prevent dynamic linking.
25799 link_static_flag=$lt_lt_prog_compiler_static
25800
25801 # Does compiler simultaneously support -c and -o options?
25802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25803
25804 # Whether or not to add -lc for building shared libraries.
25805 build_libtool_need_lc=$archive_cmds_need_lc
25806
25807 # Whether or not to disallow shared libs when runtime libs are static.
25808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25809
25810 # Compiler flag to allow reflexive dlopens.
25811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25812
25813 # Compiler flag to generate shared objects directly from archives.
25814 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25815
25816 # Whether the compiler copes with passing no objects directly.
25817 compiler_needs_object=$lt_compiler_needs_object
25818
25819 # Create an old-style archive from a shared archive.
25820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25821
25822 # Create a temporary old-style archive to link instead of a shared archive.
25823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25824
25825 # Commands used to build a shared archive.
25826 archive_cmds=$lt_archive_cmds
25827 archive_expsym_cmds=$lt_archive_expsym_cmds
25828
25829 # Commands used to build a loadable module if different from building
25830 # a shared archive.
25831 module_cmds=$lt_module_cmds
25832 module_expsym_cmds=$lt_module_expsym_cmds
25833
25834 # Whether we are building with GNU ld or not.
25835 with_gnu_ld=$lt_with_gnu_ld
25836
25837 # Flag that allows shared libraries with undefined symbols to be built.
25838 allow_undefined_flag=$lt_allow_undefined_flag
25839
25840 # Flag that enforces no undefined symbols.
25841 no_undefined_flag=$lt_no_undefined_flag
25842
25843 # Flag to hardcode \$libdir into a binary during linking.
25844 # This must work even if \$libdir does not exist
25845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25846
25847 # Whether we need a single "-rpath" flag with a separated argument.
25848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25849
25850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25851 # DIR into the resulting binary.
25852 hardcode_direct=$hardcode_direct
25853
25854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25855 # DIR into the resulting binary and the resulting library dependency is
25856 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25857 # library is relocated.
25858 hardcode_direct_absolute=$hardcode_direct_absolute
25859
25860 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25861 # into the resulting binary.
25862 hardcode_minus_L=$hardcode_minus_L
25863
25864 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25865 # into the resulting binary.
25866 hardcode_shlibpath_var=$hardcode_shlibpath_var
25867
25868 # Set to "yes" if building a shared library automatically hardcodes DIR
25869 # into the library and all subsequent libraries and executables linked
25870 # against it.
25871 hardcode_automatic=$hardcode_automatic
25872
25873 # Set to yes if linker adds runtime paths of dependent libraries
25874 # to runtime path list.
25875 inherit_rpath=$inherit_rpath
25876
25877 # Whether libtool must link a program against all its dependency libraries.
25878 link_all_deplibs=$link_all_deplibs
25879
25880 # Set to "yes" if exported symbols are required.
25881 always_export_symbols=$always_export_symbols
25882
25883 # The commands to list exported symbols.
25884 export_symbols_cmds=$lt_export_symbols_cmds
25885
25886 # Symbols that should not be listed in the preloaded symbols.
25887 exclude_expsyms=$lt_exclude_expsyms
25888
25889 # Symbols that must always be exported.
25890 include_expsyms=$lt_include_expsyms
25891
25892 # Commands necessary for linking programs (against libraries) with templates.
25893 prelink_cmds=$lt_prelink_cmds
25894
25895 # Commands necessary for finishing linking programs.
25896 postlink_cmds=$lt_postlink_cmds
25897
25898 # Specify filename containing input files.
25899 file_list_spec=$lt_file_list_spec
25900
25901 # How to hardcode a shared library path into an executable.
25902 hardcode_action=$hardcode_action
25903
25904 # The directories searched by this compiler when creating a shared library.
25905 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25906
25907 # Dependencies to place before and after the objects being linked to
25908 # create a shared library.
25909 predep_objects=$lt_predep_objects
25910 postdep_objects=$lt_postdep_objects
25911 predeps=$lt_predeps
25912 postdeps=$lt_postdeps
25913
25914 # The library search path used internally by the compiler when linking
25915 # a shared library.
25916 compiler_lib_search_path=$lt_compiler_lib_search_path
25917
25918 # ### END LIBTOOL CONFIG
25919
25920 _LT_EOF
25921
25922 cat <<'_LT_EOF' >> "$cfgfile"
25923
25924 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25925
25926 # func_munge_path_list VARIABLE PATH
25927 # -----------------------------------
25928 # VARIABLE is name of variable containing _space_ separated list of
25929 # directories to be munged by the contents of PATH, which is string
25930 # having a format:
25931 # "DIR[:DIR]:"
25932 # string "DIR[ DIR]" will be prepended to VARIABLE
25933 # ":DIR[:DIR]"
25934 # string "DIR[ DIR]" will be appended to VARIABLE
25935 # "DIRP[:DIRP]::[DIRA:]DIRA"
25936 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25937 # "DIRA[ DIRA]" will be appended to VARIABLE
25938 # "DIR[:DIR]"
25939 # VARIABLE will be replaced by "DIR[ DIR]"
25940 func_munge_path_list ()
25941 {
25942 case x$2 in
25943 x)
25944 ;;
25945 *:)
25946 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25947 ;;
25948 x:*)
25949 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25950 ;;
25951 *::*)
25952 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25953 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25954 ;;
25955 *)
25956 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25957 ;;
25958 esac
25959 }
25960
25961
25962 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25963 func_cc_basename ()
25964 {
25965 for cc_temp in $*""; do
25966 case $cc_temp in
25967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25969 \-*) ;;
25970 *) break;;
25971 esac
25972 done
25973 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25974 }
25975
25976
25977 # ### END FUNCTIONS SHARED WITH CONFIGURE
25978
25979 _LT_EOF
25980
25981 case $host_os in
25982 aix3*)
25983 cat <<\_LT_EOF >> "$cfgfile"
25984 # AIX sometimes has problems with the GCC collect2 program. For some
25985 # reason, if we set the COLLECT_NAMES environment variable, the problems
25986 # vanish in a puff of smoke.
25987 if test set != "${COLLECT_NAMES+set}"; then
25988 COLLECT_NAMES=
25989 export COLLECT_NAMES
25990 fi
25991 _LT_EOF
25992 ;;
25993 esac
25994
25995
25996
25997 ltmain=$ac_aux_dir/ltmain.sh
25998
25999
26000 # We use sed instead of cat because bash on DJGPP gets confused if
26001 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26002 # text mode, it properly converts lines to CR/LF. This bash problem
26003 # is reportedly fixed, but why not run on old versions too?
26004 sed '$q' "$ltmain" >> "$cfgfile" \
26005 || (rm -f "$cfgfile"; exit 1)
26006
26007 mv -f "$cfgfile" "$ofile" ||
26008 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26009 chmod +x "$ofile"
26010
26011
26012 cat <<_LT_EOF >> "$ofile"
26013
26014 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26015
26016 # The linker used to build libraries.
26017 LD=$lt_LD_CXX
26018
26019 # How to create reloadable object files.
26020 reload_flag=$lt_reload_flag_CXX
26021 reload_cmds=$lt_reload_cmds_CXX
26022
26023 # Commands used to build an old-style archive.
26024 old_archive_cmds=$lt_old_archive_cmds_CXX
26025
26026 # A language specific compiler.
26027 CC=$lt_compiler_CXX
26028
26029 # Is the compiler the GNU compiler?
26030 with_gcc=$GCC_CXX
26031
26032 # Compiler flag to turn off builtin functions.
26033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26034
26035 # Additional compiler flags for building library objects.
26036 pic_flag=$lt_lt_prog_compiler_pic_CXX
26037
26038 # How to pass a linker flag through the compiler.
26039 wl=$lt_lt_prog_compiler_wl_CXX
26040
26041 # Compiler flag to prevent dynamic linking.
26042 link_static_flag=$lt_lt_prog_compiler_static_CXX
26043
26044 # Does compiler simultaneously support -c and -o options?
26045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26046
26047 # Whether or not to add -lc for building shared libraries.
26048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26049
26050 # Whether or not to disallow shared libs when runtime libs are static.
26051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26052
26053 # Compiler flag to allow reflexive dlopens.
26054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26055
26056 # Compiler flag to generate shared objects directly from archives.
26057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26058
26059 # Whether the compiler copes with passing no objects directly.
26060 compiler_needs_object=$lt_compiler_needs_object_CXX
26061
26062 # Create an old-style archive from a shared archive.
26063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26064
26065 # Create a temporary old-style archive to link instead of a shared archive.
26066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26067
26068 # Commands used to build a shared archive.
26069 archive_cmds=$lt_archive_cmds_CXX
26070 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26071
26072 # Commands used to build a loadable module if different from building
26073 # a shared archive.
26074 module_cmds=$lt_module_cmds_CXX
26075 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26076
26077 # Whether we are building with GNU ld or not.
26078 with_gnu_ld=$lt_with_gnu_ld_CXX
26079
26080 # Flag that allows shared libraries with undefined symbols to be built.
26081 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26082
26083 # Flag that enforces no undefined symbols.
26084 no_undefined_flag=$lt_no_undefined_flag_CXX
26085
26086 # Flag to hardcode \$libdir into a binary during linking.
26087 # This must work even if \$libdir does not exist
26088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26089
26090 # Whether we need a single "-rpath" flag with a separated argument.
26091 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26092
26093 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26094 # DIR into the resulting binary.
26095 hardcode_direct=$hardcode_direct_CXX
26096
26097 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26098 # DIR into the resulting binary and the resulting library dependency is
26099 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26100 # library is relocated.
26101 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26102
26103 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26104 # into the resulting binary.
26105 hardcode_minus_L=$hardcode_minus_L_CXX
26106
26107 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26108 # into the resulting binary.
26109 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26110
26111 # Set to "yes" if building a shared library automatically hardcodes DIR
26112 # into the library and all subsequent libraries and executables linked
26113 # against it.
26114 hardcode_automatic=$hardcode_automatic_CXX
26115
26116 # Set to yes if linker adds runtime paths of dependent libraries
26117 # to runtime path list.
26118 inherit_rpath=$inherit_rpath_CXX
26119
26120 # Whether libtool must link a program against all its dependency libraries.
26121 link_all_deplibs=$link_all_deplibs_CXX
26122
26123 # Set to "yes" if exported symbols are required.
26124 always_export_symbols=$always_export_symbols_CXX
26125
26126 # The commands to list exported symbols.
26127 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26128
26129 # Symbols that should not be listed in the preloaded symbols.
26130 exclude_expsyms=$lt_exclude_expsyms_CXX
26131
26132 # Symbols that must always be exported.
26133 include_expsyms=$lt_include_expsyms_CXX
26134
26135 # Commands necessary for linking programs (against libraries) with templates.
26136 prelink_cmds=$lt_prelink_cmds_CXX
26137
26138 # Commands necessary for finishing linking programs.
26139 postlink_cmds=$lt_postlink_cmds_CXX
26140
26141 # Specify filename containing input files.
26142 file_list_spec=$lt_file_list_spec_CXX
26143
26144 # How to hardcode a shared library path into an executable.
26145 hardcode_action=$hardcode_action_CXX
26146
26147 # The directories searched by this compiler when creating a shared library.
26148 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26149
26150 # Dependencies to place before and after the objects being linked to
26151 # create a shared library.
26152 predep_objects=$lt_predep_objects_CXX
26153 postdep_objects=$lt_postdep_objects_CXX
26154 predeps=$lt_predeps_CXX
26155 postdeps=$lt_postdeps_CXX
26156
26157 # The library search path used internally by the compiler when linking
26158 # a shared library.
26159 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26160
26161 # ### END LIBTOOL TAG CONFIG: CXX
26162 _LT_EOF
26163
26164 ;;
26165 "po-directories":C)
26166 for ac_file in $CONFIG_FILES; do
26167 # Support "outfile[:infile[:infile...]]"
26168 case "$ac_file" in
26169 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26170 esac
26171 # PO directories have a Makefile.in generated from Makefile.in.in.
26172 case "$ac_file" in */Makefile.in)
26173 # Adjust a relative srcdir.
26174 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
26175 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
26176 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
26177 # In autoconf-2.13 it is called $ac_given_srcdir.
26178 # In autoconf-2.50 it is called $srcdir.
26179 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
26180 case "$ac_given_srcdir" in
26181 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
26182 /*) top_srcdir="$ac_given_srcdir" ;;
26183 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
26184 esac
26185 # Treat a directory as a PO directory if and only if it has a
26186 # POTFILES.in file. This allows packages to have multiple PO
26187 # directories under different names or in different locations.
26188 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
26189 rm -f "$ac_dir/POTFILES"
26190 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
26191 gt_tab=`printf '\t'`
26192 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"
26193 POMAKEFILEDEPS="POTFILES.in"
26194 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
26195 # on $ac_dir but don't depend on user-specified configuration
26196 # parameters.
26197 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
26198 # The LINGUAS file contains the set of available languages.
26199 if test -n "$OBSOLETE_ALL_LINGUAS"; then
26200 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
26201 fi
26202 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
26203 # Hide the ALL_LINGUAS assignment from automake < 1.5.
26204 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
26205 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
26206 else
26207 # The set of available languages was given in configure.in.
26208 # Hide the ALL_LINGUAS assignment from automake < 1.5.
26209 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
26210 fi
26211 # Compute POFILES
26212 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
26213 # Compute UPDATEPOFILES
26214 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
26215 # Compute DUMMYPOFILES
26216 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
26217 # Compute GMOFILES
26218 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26219 case "$ac_given_srcdir" in
26220 .) srcdirpre= ;;
26221 *) srcdirpre='$(srcdir)/' ;;
26222 esac
26223 POFILES=
26224 UPDATEPOFILES=
26225 DUMMYPOFILES=
26226 GMOFILES=
26227 for lang in $ALL_LINGUAS; do
26228 POFILES="$POFILES $srcdirpre$lang.po"
26229 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26230 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26231 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26232 done
26233 # CATALOGS depends on both $ac_dir and the user's LINGUAS
26234 # environment variable.
26235 INST_LINGUAS=
26236 if test -n "$ALL_LINGUAS"; then
26237 for presentlang in $ALL_LINGUAS; do
26238 useit=no
26239 if test "%UNSET%" != "$LINGUAS"; then
26240 desiredlanguages="$LINGUAS"
26241 else
26242 desiredlanguages="$ALL_LINGUAS"
26243 fi
26244 for desiredlang in $desiredlanguages; do
26245 # Use the presentlang catalog if desiredlang is
26246 # a. equal to presentlang, or
26247 # b. a variant of presentlang (because in this case,
26248 # presentlang can be used as a fallback for messages
26249 # which are not translated in the desiredlang catalog).
26250 case "$desiredlang" in
26251 "$presentlang"*) useit=yes;;
26252 esac
26253 done
26254 if test $useit = yes; then
26255 INST_LINGUAS="$INST_LINGUAS $presentlang"
26256 fi
26257 done
26258 fi
26259 CATALOGS=
26260 if test -n "$INST_LINGUAS"; then
26261 for lang in $INST_LINGUAS; do
26262 CATALOGS="$CATALOGS $lang.gmo"
26263 done
26264 fi
26265 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26266 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"
26267 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26268 if test -f "$f"; then
26269 case "$f" in
26270 *.orig | *.bak | *~) ;;
26271 *) cat "$f" >> "$ac_dir/Makefile" ;;
26272 esac
26273 fi
26274 done
26275 fi
26276 ;;
26277 esac
26278 done ;;
26279
26280 esac
26281 done # for ac_tag
26282
26283
26284 as_fn_exit 0
26285 _ACEOF
26286 ac_clean_files=$ac_clean_files_save
26287
26288 test $ac_write_fail = 0 ||
26289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26290
26291
26292 # configure is writing to config.log, and then calls config.status.
26293 # config.status does its own redirection, appending to config.log.
26294 # Unfortunately, on DOS this fails, as config.log is still kept open
26295 # by configure, so config.status won't be able to write to it; its
26296 # output is simply discarded. So we exec the FD to /dev/null,
26297 # effectively closing config.log, so it can be properly (re)opened and
26298 # appended to by config.status. When coming back to configure, we
26299 # need to make the FD available again.
26300 if test "$no_create" != yes; then
26301 ac_cs_success=:
26302 ac_config_status_args=
26303 test "$silent" = yes &&
26304 ac_config_status_args="$ac_config_status_args --quiet"
26305 exec 5>/dev/null
26306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26307 exec 5>>config.log
26308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26309 # would make configure fail if this is the last instruction.
26310 $ac_cs_success || as_fn_exit 1
26311 fi
26312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26314 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26315 fi
26316
26317
26318 echo "
26319 ================================================
26320 LIBVISUAL-PLUGINS, PLUGINS FOR LIBVISUAL $VERSION
26321 ================================================
26322
26323 Packages found:
26324 ALSA : $HAVE_ALSA
26325 PulseAudio : $HAVE_LIBPULSE
26326 OpenGL : $HAVE_OPENGL
26327 GTK+ : $HAVE_GTK
26328
26329 Plugins being build
26330 -------------------
26331 Input plugins :${build_input_plugins}
26332 Actor plugins :${build_actor_plugins}
26333 Morph plugins :${build_morph_plugins}
26334
26335 Libvisual plugin data dir: ${prefix}/share
26336
26337 Build options
26338 -------------
26339 install path : $plugins_base_dir
26340 source code location : ${srcdir}
26341 compiler : ${CC}
26342
26343 Compiler options
26344 ----------------
26345 Extra optimization : $ENABLE_EXTRA_OPT
26346 Debug build : $ENABLE_DEBUG
26347 Profiling support : $ENABLE_PROFILING
26348 "
26349