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 lightdm-gtk-greeter 2.0.9.
4 #
5 # Report bugs to <https://github.com/xubuntu/lightdm-gtk-greeter>.
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/xubuntu/lightdm-gtk-greeter 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='lightdm-gtk-greeter'
623 PACKAGE_TARNAME='lightdm-gtk-greeter'
624 PACKAGE_VERSION='2.0.9'
625 PACKAGE_STRING='lightdm-gtk-greeter 2.0.9'
626 PACKAGE_BUGREPORT='https://github.com/xubuntu/lightdm-gtk-greeter'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/lightdm-gtk-greeter.c"
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 gt_needs=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 POSUB
668 LTLIBINTL
669 LIBINTL
670 INTLLIBS
671 LTLIBICONV
672 LIBICONV
673 INTL_MACOSX_LIBS
674 XGETTEXT_EXTRA_OPTIONS
675 MSGMERGE_FOR_MSGFMT_OPTION
676 MSGMERGE
677 XGETTEXT_015
678 XGETTEXT
679 GMSGFMT_015
680 GMSGFMT
681 MSGFMT
682 GETTEXT_MACRO_VERSION
683 USE_NLS
684 GETTEXT_PACKAGE
685 LIBXKLAVIER_LIBS
686 LIBXKLAVIER_CFLAGS
687 UNITY_LIBIDO_LIBS
688 UNITY_LIBIDO_CFLAGS
689 AYATANA_LIBIDO_LIBS
690 AYATANA_LIBIDO_CFLAGS
691 SYSTEMD_SERVICE_DIR
692 HAVE_UNITY_LIBINDICATOR_FALSE
693 HAVE_UNITY_LIBINDICATOR_TRUE
694 UNITY_INDICATORDIR
695 UNITY_LIBINDICATOR_LIBS
696 UNITY_LIBINDICATOR_CFLAGS
697 CPP
698 AYATANA_INDICATORDIR
699 INDICATORDIR
700 AYATANA_LIBINDICATOR_LIBS
701 AYATANA_LIBINDICATOR_CFLAGS
702 LIBX11_LIBS
703 LIBX11_CFLAGS
704 LIGHTDMGOBJECT_LIBS
705 LIGHTDMGOBJECT_CFLAGS
706 GMODULE_LIBS
707 GMODULE_CFLAGS
708 GTK_LIBS
709 GTK_CFLAGS
710 HAVE_INTROSPECTION_FALSE
711 HAVE_INTROSPECTION_TRUE
712 INTROSPECTION_MAKEFILE
713 INTROSPECTION_LIBS
714 INTROSPECTION_CFLAGS
715 INTROSPECTION_TYPELIBDIR
716 INTROSPECTION_GIRDIR
717 INTROSPECTION_GENERATE
718 INTROSPECTION_COMPILER
719 INTROSPECTION_SCANNER
720 _GI_EXP_LIBDIR
721 _GI_EXP_DATADIR
722 PKG_CONFIG_LIBDIR
723 PKG_CONFIG_PATH
724 PKG_CONFIG
725 MAINT
726 MAINTAINER_MODE_FALSE
727 MAINTAINER_MODE_TRUE
728 AM_BACKSLASH
729 AM_DEFAULT_VERBOSITY
730 AM_DEFAULT_V
731 AM_V
732 CSCOPE
733 ETAGS
734 CTAGS
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__include
743 DEPDIR
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 LT_SYS_LIBRARY_PATH
766 OTOOL64
767 OTOOL
768 LIPO
769 NMEDIT
770 DSYMUTIL
771 MANIFEST_TOOL
772 AWK
773 RANLIB
774 STRIP
775 ac_ct_AR
776 AR
777 DLLTOOL
778 OBJDUMP
779 FILECMD
780 LN_S
781 NM
782 ac_ct_DUMPBIN
783 DUMPBIN
784 LD
785 FGREP
786 EGREP
787 GREP
788 SED
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 LIBTOOL
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 runstatedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL
844 am__quote'
845 ac_subst_files=''
846 ac_user_opts='
847 enable_option_checking
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 with_aix_soname
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 enable_dependency_tracking
857 enable_silent_rules
858 enable_maintainer_mode
859 enable_introspection
860 enable_libindicator
861 with_libindicator
862 with_systemd_service_dir
863 enable_libido
864 with_libxklavier
865 enable_at_spi_command
866 enable_indicator_services_command
867 enable_kill_on_sigterm
868 enable_nls
869 enable_rpath
870 with_libiconv_prefix
871 with_libintl_prefix
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 LT_SYS_LIBRARY_PATH
882 PKG_CONFIG
883 PKG_CONFIG_PATH
884 PKG_CONFIG_LIBDIR
885 GTK_CFLAGS
886 GTK_LIBS
887 GMODULE_CFLAGS
888 GMODULE_LIBS
889 LIGHTDMGOBJECT_CFLAGS
890 LIGHTDMGOBJECT_LIBS
891 LIBX11_CFLAGS
892 LIBX11_LIBS
893 AYATANA_LIBINDICATOR_CFLAGS
894 AYATANA_LIBINDICATOR_LIBS
895 CPP
896 UNITY_LIBINDICATOR_CFLAGS
897 UNITY_LIBINDICATOR_LIBS
898 AYATANA_LIBIDO_CFLAGS
899 AYATANA_LIBIDO_LIBS
900 UNITY_LIBIDO_CFLAGS
901 UNITY_LIBIDO_LIBS
902 LIBXKLAVIER_CFLAGS
903 LIBXKLAVIER_LIBS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 runstatedir='${localstatedir}/run'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: \`$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: \`$ac_useropt'"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 printf "%s\n" X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures lightdm-gtk-greeter 2.0.9 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root
1502 [DATAROOTDIR/doc/lightdm-gtk-greeter]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1508
1509 cat <<\_ACEOF
1510
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of lightdm-gtk-greeter 2.0.9:";;
1525 esac
1526 cat <<\_ACEOF
1527
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --enable-dependency-tracking
1538 do not reject slow dependency extractors
1539 --disable-dependency-tracking
1540 speeds up one-time build
1541 --enable-silent-rules less verbose build output (undo: "make V=1")
1542 --disable-silent-rules verbose build output (undo: "make V=0")
1543 --disable-maintainer-mode
1544 disable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-introspection=[no/auto/yes]
1547 Enable introspection for this build
1548 --enable-libindicator Enable libindicator support
1549 --disable-libindicator Disable libindicator support
1550 --enable-libido Enable libido support
1551 --disable-libido Disable libido support
1552 --enable-at-spi-command=command
1553 Try to start at-spi service]
1554 --disable-at-spi-command
1555 Do not start at-spi service
1556 --enable-indicator-services-command=command
1557 Try to start indicators service]
1558 --disable-indicator-services-command
1559 Do not start indicators service
1560 --enable-kill-on-sigterm
1561 Kill greeter instance on SIGTERM, see LP1445461
1562 --disable-kill-on-sigterm
1563 Don't kill greeter on SIGTERM, see LP1445461'
1564 --disable-nls do not use Native Language Support
1565 --disable-rpath do not hardcode runtime library paths
1566
1567 Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-aix-soname=aix|svr4|both
1573 shared library versioning (aka "SONAME") variant to
1574 provide on AIX, [default=aix].
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1577 compiler's sysroot if not specified).
1578 --with-libindicator=ayatana|unity
1579 Preferred indicator backend [default=ayatana]
1580 --with-systemd-service-dir=path
1581 Path where systemd indicator service units are
1582 stored
1583 --with-libxklavier Use libxklavier to manage layouts (instead of
1584 LightDM API)
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1587 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1588 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1589 --without-libintl-prefix don't search for libintl in includedir and libdir
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 LT_SYS_LIBRARY_PATH
1600 User-defined run-time library search path.
1601 PKG_CONFIG path to pkg-config utility
1602 PKG_CONFIG_PATH
1603 directories to add to pkg-config's search path
1604 PKG_CONFIG_LIBDIR
1605 path overriding pkg-config's built-in search path
1606 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1607 GTK_LIBS linker flags for GTK, overriding pkg-config
1608 GMODULE_CFLAGS
1609 C compiler flags for GMODULE, overriding pkg-config
1610 GMODULE_LIBS
1611 linker flags for GMODULE, overriding pkg-config
1612 LIGHTDMGOBJECT_CFLAGS
1613 C compiler flags for LIGHTDMGOBJECT, overriding pkg-config
1614 LIGHTDMGOBJECT_LIBS
1615 linker flags for LIGHTDMGOBJECT, overriding pkg-config
1616 LIBX11_CFLAGS
1617 C compiler flags for LIBX11, overriding pkg-config
1618 LIBX11_LIBS linker flags for LIBX11, overriding pkg-config
1619 AYATANA_LIBINDICATOR_CFLAGS
1620 C compiler flags for AYATANA_LIBINDICATOR, overriding pkg-config
1621 AYATANA_LIBINDICATOR_LIBS
1622 linker flags for AYATANA_LIBINDICATOR, overriding pkg-config
1623 CPP C preprocessor
1624 UNITY_LIBINDICATOR_CFLAGS
1625 C compiler flags for UNITY_LIBINDICATOR, overriding pkg-config
1626 UNITY_LIBINDICATOR_LIBS
1627 linker flags for UNITY_LIBINDICATOR, overriding pkg-config
1628 AYATANA_LIBIDO_CFLAGS
1629 C compiler flags for AYATANA_LIBIDO, overriding pkg-config
1630 AYATANA_LIBIDO_LIBS
1631 linker flags for AYATANA_LIBIDO, overriding pkg-config
1632 UNITY_LIBIDO_CFLAGS
1633 C compiler flags for UNITY_LIBIDO, overriding pkg-config
1634 UNITY_LIBIDO_LIBS
1635 linker flags for UNITY_LIBIDO, overriding pkg-config
1636 LIBXKLAVIER_CFLAGS
1637 C compiler flags for LIBXKLAVIER, overriding pkg-config
1638 LIBXKLAVIER_LIBS
1639 linker flags for LIBXKLAVIER, overriding pkg-config
1640
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1643
1644 Report bugs to <https://github.com/xubuntu/lightdm-gtk-greeter>.
1645 _ACEOF
1646 ac_status=$?
1647 fi
1648
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 continue
1655 ac_builddir=.
1656
1657 case "$ac_dir" in
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *)
1660 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1661 # A ".." for each directory in $ac_dir_suffix.
1662 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 esac ;;
1667 esac
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1672
1673 case $srcdir in
1674 .) # We are building in place.
1675 ac_srcdir=.
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
1679 ac_srcdir=$srcdir$ac_dir_suffix;
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1682 *) # Relative name.
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 esac
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for configure.gnu first; this name is used for a wrapper for
1691 # Metaconfig's "Configure" on case-insensitive file systems.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 lightdm-gtk-greeter configure 2.0.9
1709 generated by GNU Autoconf 2.71
1710
1711 Copyright (C) 2021 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1716 fi
1717
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1721
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest.beam
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 printf "%s\n" "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext
1748 then :
1749 ac_retval=0
1750 else $as_nop
1751 printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_compile
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 printf "%s\n" "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 test -x conftest$ac_exeext
1789 }
1790 then :
1791 ac_retval=0
1792 else $as_nop
1793 printf "%s\n" "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_link
1807
1808 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists and can be compiled using the include files in
1811 # INCLUDES, setting the cache variable VAR accordingly.
1812 ac_fn_c_check_header_compile ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819 printf %s "(cached) " >&6
1820 else $as_nop
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1828 eval "$3=yes"
1829 else $as_nop
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 printf "%s\n" "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_compile
1840
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 printf %s "checking for $2... " >&6; }
1849 if eval test \${$3+y}
1850 then :
1851 printf %s "(cached) " >&6
1852 else $as_nop
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below. */
1861
1862 #include <limits.h>
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main (void)
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"
1888 then :
1889 eval "$3=yes"
1890 else $as_nop
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf "%s\n" "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_try_cpp LINENO
1904 # ----------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_c_try_cpp ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 printf "%s\n" "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1927 }
1928 then :
1929 ac_retval=0
1930 else $as_nop
1931 printf "%s\n" "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934 ac_retval=1
1935 fi
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1938
1939 } # ac_fn_c_try_cpp
1940
1941 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1942 # ----------------------------------------------
1943 # Tests whether HEADER exists and can be preprocessed (in isolation), setting
1944 # the cache variable VAR accordingly.
1945 ac_fn_c_check_header_preproc ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 printf %s "checking for $2... " >&6; }
1950 if eval test \${$3+y}
1951 then :
1952 printf %s "(cached) " >&6
1953 else $as_nop
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"
1959 then :
1960 eval "$3=yes"
1961 else $as_nop
1962 eval "$3=no"
1963 fi
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 printf "%s\n" "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_header_preproc
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1976 # executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 printf "%s\n" "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 printf "%s\n" "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }
2001 then :
2002 ac_retval=0
2003 else $as_nop
2004 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2005 printf "%s\n" "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status
2009 fi
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_run
2015 ac_configure_args_raw=
2016 for ac_arg
2017 do
2018 case $ac_arg in
2019 *\'*)
2020 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 esac
2022 as_fn_append ac_configure_args_raw " '$ac_arg'"
2023 done
2024
2025 case $ac_configure_args_raw in
2026 *$as_nl*)
2027 ac_safe_unquote= ;;
2028 *)
2029 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2030 ac_unsafe_a="$ac_unsafe_z#~"
2031 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2032 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2033 esac
2034
2035 cat >config.log <<_ACEOF
2036 This file contains any messages produced by compilers while
2037 running configure, to aid debugging if configure makes a mistake.
2038
2039 It was created by lightdm-gtk-greeter $as_me 2.0.9, which was
2040 generated by GNU Autoconf 2.71. Invocation command line was
2041
2042 $ $0$ac_configure_args_raw
2043
2044 _ACEOF
2045 exec 5>>config.log
2046 {
2047 cat <<_ASUNAME
2048 ## --------- ##
2049 ## Platform. ##
2050 ## --------- ##
2051
2052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057
2058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2060
2061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2068
2069 _ASUNAME
2070
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074 IFS=$as_save_IFS
2075 case $as_dir in #(((
2076 '') as_dir=./ ;;
2077 */) ;;
2078 *) as_dir=$as_dir/ ;;
2079 esac
2080 printf "%s\n" "PATH: $as_dir"
2081 done
2082 IFS=$as_save_IFS
2083
2084 } >&5
2085
2086 cat >&5 <<_ACEOF
2087
2088
2089 ## ----------- ##
2090 ## Core tests. ##
2091 ## ----------- ##
2092
2093 _ACEOF
2094
2095
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_configure_args=
2102 ac_configure_args0=
2103 ac_configure_args1=
2104 ac_must_keep_next=false
2105 for ac_pass in 1 2
2106 do
2107 for ac_arg
2108 do
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
2114 *\'*)
2115 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 esac
2117 case $ac_pass in
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2119 2)
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2132 ;;
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2135 fi
2136 as_fn_append ac_configure_args " '$ac_arg'"
2137 ;;
2138 esac
2139 done
2140 done
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2143
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log. We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150 # Sanitize IFS.
2151 IFS=" "" $as_nl"
2152 # Save into config.log some information that might help in debugging.
2153 {
2154 echo
2155
2156 printf "%s\n" "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2161 (
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2184 *)
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 ;;
2187 esac |
2188 sort
2189 )
2190 echo
2191
2192 printf "%s\n" "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2195 echo
2196 for ac_var in $ac_subst_vars
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 printf "%s\n" "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205
2206 if test -n "$ac_subst_files"; then
2207 printf "%s\n" "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2210 echo
2211 for ac_var in $ac_subst_files
2212 do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 printf "%s\n" "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2220 fi
2221
2222 if test -s confdefs.h; then
2223 printf "%s\n" "## ----------- ##
2224 ## confdefs.h. ##
2225 ## ----------- ##"
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 printf "%s\n" "$as_me: caught signal $ac_signal"
2232 printf "%s\n" "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 printf "%s\n" "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2251
2252 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2253
2254 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2255
2256 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2257
2258 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2259
2260 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2261
2262
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2265 if test -n "$CONFIG_SITE"; then
2266 ac_site_files="$CONFIG_SITE"
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2269 else
2270 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2271 fi
2272
2273 for ac_site_file in $ac_site_files
2274 do
2275 case $ac_site_file in #(
2276 */*) :
2277 ;; #(
2278 *) :
2279 ac_site_file=./$ac_site_file ;;
2280 esac
2281 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2285 . "$ac_site_file" \
2286 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2290 fi
2291 done
2292
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304 else
2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308 fi
2309
2310 # Test code for whether the C compiler supports C89 (global declarations)
2311 ac_c_conftest_c89_globals='
2312 /* Does the compiler advertise C89 conformance?
2313 Do not test the value of __STDC__, because some compilers set it to 0
2314 while being otherwise adequately conformant. */
2315 #if !defined __STDC__
2316 # error "Compiler does not advertise C89 conformance"
2317 #endif
2318
2319 #include <stddef.h>
2320 #include <stdarg.h>
2321 struct stat;
2322 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2323 struct buf { int x; };
2324 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2326 char **p;
2327 int i;
2328 {
2329 return p[i];
2330 }
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2332 {
2333 char *s;
2334 va_list v;
2335 va_start (v,p);
2336 s = g (p, va_arg (v,int));
2337 va_end (v);
2338 return s;
2339 }
2340
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2342 function prototypes and stuff, but not \xHH hex character constants.
2343 These do not provoke an error unfortunately, instead are silently treated
2344 as an "x". The following induces an error, until -std is added to get
2345 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2346 array size at least. It is necessary to write \x00 == 0 to get something
2347 that is true only with -std. */
2348 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2349
2350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2351 inside strings and character constants. */
2352 #define FOO(x) '\''x'\''
2353 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2354
2355 int test (int i, double x);
2356 struct s1 {int (*f) (int a);};
2357 struct s2 {int (*f) (double a);};
2358 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2359 int, int);'
2360
2361 # Test code for whether the C compiler supports C89 (body of main).
2362 ac_c_conftest_c89_main='
2363 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2364 '
2365
2366 # Test code for whether the C compiler supports C99 (global declarations)
2367 ac_c_conftest_c99_globals='
2368 // Does the compiler advertise C99 conformance?
2369 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2370 # error "Compiler does not advertise C99 conformance"
2371 #endif
2372
2373 #include <stdbool.h>
2374 extern int puts (const char *);
2375 extern int printf (const char *, ...);
2376 extern int dprintf (int, const char *, ...);
2377 extern void *malloc (size_t);
2378
2379 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2380 // dprintf is used instead of fprintf to avoid needing to declare
2381 // FILE and stderr.
2382 #define debug(...) dprintf (2, __VA_ARGS__)
2383 #define showlist(...) puts (#__VA_ARGS__)
2384 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2385 static void
2386 test_varargs_macros (void)
2387 {
2388 int x = 1234;
2389 int y = 5678;
2390 debug ("Flag");
2391 debug ("X = %d\n", x);
2392 showlist (The first, second, and third items.);
2393 report (x>y, "x is %d but y is %d", x, y);
2394 }
2395
2396 // Check long long types.
2397 #define BIG64 18446744073709551615ull
2398 #define BIG32 4294967295ul
2399 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2400 #if !BIG_OK
2401 #error "your preprocessor is broken"
2402 #endif
2403 #if BIG_OK
2404 #else
2405 #error "your preprocessor is broken"
2406 #endif
2407 static long long int bignum = -9223372036854775807LL;
2408 static unsigned long long int ubignum = BIG64;
2409
2410 struct incomplete_array
2411 {
2412 int datasize;
2413 double data[];
2414 };
2415
2416 struct named_init {
2417 int number;
2418 const wchar_t *name;
2419 double average;
2420 };
2421
2422 typedef const char *ccp;
2423
2424 static inline int
2425 test_restrict (ccp restrict text)
2426 {
2427 // See if C++-style comments work.
2428 // Iterate through items via the restricted pointer.
2429 // Also check for declarations in for loops.
2430 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2431 continue;
2432 return 0;
2433 }
2434
2435 // Check varargs and va_copy.
2436 static bool
2437 test_varargs (const char *format, ...)
2438 {
2439 va_list args;
2440 va_start (args, format);
2441 va_list args_copy;
2442 va_copy (args_copy, args);
2443
2444 const char *str = "";
2445 int number = 0;
2446 float fnumber = 0;
2447
2448 while (*format)
2449 {
2450 switch (*format++)
2451 {
2452 case '\''s'\'': // string
2453 str = va_arg (args_copy, const char *);
2454 break;
2455 case '\''d'\'': // int
2456 number = va_arg (args_copy, int);
2457 break;
2458 case '\''f'\'': // float
2459 fnumber = va_arg (args_copy, double);
2460 break;
2461 default:
2462 break;
2463 }
2464 }
2465 va_end (args_copy);
2466 va_end (args);
2467
2468 return *str && number && fnumber;
2469 }
2470 '
2471
2472 # Test code for whether the C compiler supports C99 (body of main).
2473 ac_c_conftest_c99_main='
2474 // Check bool.
2475 _Bool success = false;
2476 success |= (argc != 0);
2477
2478 // Check restrict.
2479 if (test_restrict ("String literal") == 0)
2480 success = true;
2481 char *restrict newvar = "Another string";
2482
2483 // Check varargs.
2484 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2485 test_varargs_macros ();
2486
2487 // Check flexible array members.
2488 struct incomplete_array *ia =
2489 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2490 ia->datasize = 10;
2491 for (int i = 0; i < ia->datasize; ++i)
2492 ia->data[i] = i * 1.234;
2493
2494 // Check named initializers.
2495 struct named_init ni = {
2496 .number = 34,
2497 .name = L"Test wide string",
2498 .average = 543.34343,
2499 };
2500
2501 ni.number = 58;
2502
2503 int dynamic_array[ni.number];
2504 dynamic_array[0] = argv[0][0];
2505 dynamic_array[ni.number - 1] = 543;
2506
2507 // work around unused variable warnings
2508 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2509 || dynamic_array[ni.number - 1] != 543);
2510 '
2511
2512 # Test code for whether the C compiler supports C11 (global declarations)
2513 ac_c_conftest_c11_globals='
2514 // Does the compiler advertise C11 conformance?
2515 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2516 # error "Compiler does not advertise C11 conformance"
2517 #endif
2518
2519 // Check _Alignas.
2520 char _Alignas (double) aligned_as_double;
2521 char _Alignas (0) no_special_alignment;
2522 extern char aligned_as_int;
2523 char _Alignas (0) _Alignas (int) aligned_as_int;
2524
2525 // Check _Alignof.
2526 enum
2527 {
2528 int_alignment = _Alignof (int),
2529 int_array_alignment = _Alignof (int[100]),
2530 char_alignment = _Alignof (char)
2531 };
2532 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2533
2534 // Check _Noreturn.
2535 int _Noreturn does_not_return (void) { for (;;) continue; }
2536
2537 // Check _Static_assert.
2538 struct test_static_assert
2539 {
2540 int x;
2541 _Static_assert (sizeof (int) <= sizeof (long int),
2542 "_Static_assert does not work in struct");
2543 long int y;
2544 };
2545
2546 // Check UTF-8 literals.
2547 #define u8 syntax error!
2548 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2549
2550 // Check duplicate typedefs.
2551 typedef long *long_ptr;
2552 typedef long int *long_ptr;
2553 typedef long_ptr long_ptr;
2554
2555 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2556 struct anonymous
2557 {
2558 union {
2559 struct { int i; int j; };
2560 struct { int k; long int l; } w;
2561 };
2562 int m;
2563 } v1;
2564 '
2565
2566 # Test code for whether the C compiler supports C11 (body of main).
2567 ac_c_conftest_c11_main='
2568 _Static_assert ((offsetof (struct anonymous, i)
2569 == offsetof (struct anonymous, w.k)),
2570 "Anonymous union alignment botch");
2571 v1.i = 2;
2572 v1.w.k = 5;
2573 ok |= v1.i != 5;
2574 '
2575
2576 # Test code for whether the C compiler supports C11 (complete).
2577 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2578 ${ac_c_conftest_c99_globals}
2579 ${ac_c_conftest_c11_globals}
2580
2581 int
2582 main (int argc, char **argv)
2583 {
2584 int ok = 0;
2585 ${ac_c_conftest_c89_main}
2586 ${ac_c_conftest_c99_main}
2587 ${ac_c_conftest_c11_main}
2588 return ok;
2589 }
2590 "
2591
2592 # Test code for whether the C compiler supports C99 (complete).
2593 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2594 ${ac_c_conftest_c99_globals}
2595
2596 int
2597 main (int argc, char **argv)
2598 {
2599 int ok = 0;
2600 ${ac_c_conftest_c89_main}
2601 ${ac_c_conftest_c99_main}
2602 return ok;
2603 }
2604 "
2605
2606 # Test code for whether the C compiler supports C89 (complete).
2607 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2608
2609 int
2610 main (int argc, char **argv)
2611 {
2612 int ok = 0;
2613 ${ac_c_conftest_c89_main}
2614 return ok;
2615 }
2616 "
2617
2618 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2619 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2620 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2621 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2622 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2623 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2624 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2625 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2626 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2627 gt_needs="$gt_needs "
2628
2629 # Auxiliary files required by this configure script.
2630 ac_aux_files="config.rpath missing install-sh compile config.guess config.sub ltmain.sh"
2631
2632 # Locations in which to look for auxiliary files.
2633 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2634
2635 # Search for a directory containing all of the required auxiliary files,
2636 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2637 # If we don't find one directory that contains all the files we need,
2638 # we report the set of missing files from the *first* directory in
2639 # $ac_aux_dir_candidates and give up.
2640 ac_missing_aux_files=""
2641 ac_first_candidate=:
2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 as_found=false
2645 for as_dir in $ac_aux_dir_candidates
2646 do
2647 IFS=$as_save_IFS
2648 case $as_dir in #(((
2649 '') as_dir=./ ;;
2650 */) ;;
2651 *) as_dir=$as_dir/ ;;
2652 esac
2653 as_found=:
2654
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2656 ac_aux_dir_found=yes
2657 ac_install_sh=
2658 for ac_aux in $ac_aux_files
2659 do
2660 # As a special case, if "install-sh" is required, that requirement
2661 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2662 # and $ac_install_sh is set appropriately for whichever one is found.
2663 if test x"$ac_aux" = x"install-sh"
2664 then
2665 if test -f "${as_dir}install-sh"; then
2666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2667 ac_install_sh="${as_dir}install-sh -c"
2668 elif test -f "${as_dir}install.sh"; then
2669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2670 ac_install_sh="${as_dir}install.sh -c"
2671 elif test -f "${as_dir}shtool"; then
2672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2673 ac_install_sh="${as_dir}shtool install -c"
2674 else
2675 ac_aux_dir_found=no
2676 if $ac_first_candidate; then
2677 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2678 else
2679 break
2680 fi
2681 fi
2682 else
2683 if test -f "${as_dir}${ac_aux}"; then
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2685 else
2686 ac_aux_dir_found=no
2687 if $ac_first_candidate; then
2688 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2689 else
2690 break
2691 fi
2692 fi
2693 fi
2694 done
2695 if test "$ac_aux_dir_found" = yes; then
2696 ac_aux_dir="$as_dir"
2697 break
2698 fi
2699 ac_first_candidate=false
2700
2701 as_found=false
2702 done
2703 IFS=$as_save_IFS
2704 if $as_found
2705 then :
2706
2707 else $as_nop
2708 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2709 fi
2710
2711
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 if test -f "${ac_aux_dir}config.guess"; then
2717 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2718 fi
2719 if test -f "${ac_aux_dir}config.sub"; then
2720 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2721 fi
2722 if test -f "$ac_aux_dir/configure"; then
2723 ac_configure="$SHELL ${ac_aux_dir}configure"
2724 fi
2725
2726 # Check that the precious variables saved in the cache have kept the same
2727 # value.
2728 ac_cache_corrupted=false
2729 for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2735 set,)
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2737 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2739 ,set)
2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2741 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2743 ,);;
2744 *)
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x $ac_old_val`
2748 ac_new_val_w=`echo x $ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2752 ac_cache_corrupted=:
2753 else
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2755 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2757 fi
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2759 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2761 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2762 fi;;
2763 esac
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2766 case $ac_new_val in
2767 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2769 esac
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 esac
2774 fi
2775 done
2776 if $ac_cache_corrupted; then
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2782 and start over" "$LINENO" 5
2783 fi
2784 ## -------------------- ##
2785 ## Main body of script. ##
2786 ## -------------------- ##
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794
2795 ac_config_headers="$ac_config_headers config.h"
2796
2797
2798
2799
2800
2801
2802 case `pwd` in
2803 *\ * | *\ *)
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2805 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2806 esac
2807
2808
2809
2810 macro_version='2.4.7'
2811 macro_revision='2.4.7'
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826 ltmain=$ac_aux_dir/ltmain.sh
2827
2828
2829
2830 # Make sure we can run config.sub.
2831 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2832 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2833
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2835 printf %s "checking build system type... " >&6; }
2836 if test ${ac_cv_build+y}
2837 then :
2838 printf %s "(cached) " >&6
2839 else $as_nop
2840 ac_build_alias=$build_alias
2841 test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2843 test "x$ac_build_alias" = x &&
2844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2845 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2846 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2847
2848 fi
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2850 printf "%s\n" "$ac_cv_build" >&6; }
2851 case $ac_cv_build in
2852 *-*-*) ;;
2853 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2854 esac
2855 build=$ac_cv_build
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_build
2858 shift
2859 build_cpu=$1
2860 build_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 build_os=$*
2865 IFS=$ac_save_IFS
2866 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2867
2868
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2870 printf %s "checking host system type... " >&6; }
2871 if test ${ac_cv_host+y}
2872 then :
2873 printf %s "(cached) " >&6
2874 else $as_nop
2875 if test "x$host_alias" = x; then
2876 ac_cv_host=$ac_cv_build
2877 else
2878 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2879 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2880 fi
2881
2882 fi
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2884 printf "%s\n" "$ac_cv_host" >&6; }
2885 case $ac_cv_host in
2886 *-*-*) ;;
2887 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2888 esac
2889 host=$ac_cv_host
2890 ac_save_IFS=$IFS; IFS='-'
2891 set x $ac_cv_host
2892 shift
2893 host_cpu=$1
2894 host_vendor=$2
2895 shift; shift
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2898 host_os=$*
2899 IFS=$ac_save_IFS
2900 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2901
2902
2903 # Backslashify metacharacters that are still active within
2904 # double-quoted strings.
2905 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2906
2907 # Same as above, but do not quote variable references.
2908 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2909
2910 # Sed substitution to delay expansion of an escaped shell variable in a
2911 # double_quote_subst'ed string.
2912 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2913
2914 # Sed substitution to delay expansion of an escaped single quote.
2915 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2916
2917 # Sed substitution to avoid accidental globbing in evaled expressions
2918 no_glob_subst='s/\*/\\\*/g'
2919
2920 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2921 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2923
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2925 printf %s "checking how to print strings... " >&6; }
2926 # Test print first, because it will be a builtin if present.
2927 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2928 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2929 ECHO='print -r --'
2930 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2931 ECHO='printf %s\n'
2932 else
2933 # Use this function as a fallback that always works.
2934 func_fallback_echo ()
2935 {
2936 eval 'cat <<_LTECHO_EOF
2937 $1
2938 _LTECHO_EOF'
2939 }
2940 ECHO='func_fallback_echo'
2941 fi
2942
2943 # func_echo_all arg...
2944 # Invoke $ECHO with all args, space-separated.
2945 func_echo_all ()
2946 {
2947 $ECHO ""
2948 }
2949
2950 case $ECHO in
2951 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2952 printf "%s\n" "printf" >&6; } ;;
2953 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2954 printf "%s\n" "print -r" >&6; } ;;
2955 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2956 printf "%s\n" "cat" >&6; } ;;
2957 esac
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981 # Expand $ac_aux_dir to an absolute path.
2982 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2983
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_CC+y}
2995 then :
2996 printf %s "(cached) " >&6
2997 else $as_nop
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 case $as_dir in #(((
3006 '') as_dir=./ ;;
3007 */) ;;
3008 *) as_dir=$as_dir/ ;;
3009 esac
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 printf "%s\n" "$CC" >&6; }
3026 else
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 printf "%s\n" "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$ac_cv_prog_CC"; then
3034 ac_ct_CC=$CC
3035 # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 printf %s "checking for $ac_word... " >&6; }
3039 if test ${ac_cv_prog_ac_ct_CC+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else $as_nop
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 case $as_dir in #(((
3051 '') as_dir=./ ;;
3052 */) ;;
3053 *) as_dir=$as_dir/ ;;
3054 esac
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 printf "%s\n" "$ac_ct_CC" >&6; }
3071 else
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 printf "%s\n" "no" >&6; }
3074 fi
3075
3076 if test "x$ac_ct_CC" = x; then
3077 CC=""
3078 else
3079 case $cross_compiling:$ac_tool_warned in
3080 yes:)
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3084 esac
3085 CC=$ac_ct_CC
3086 fi
3087 else
3088 CC="$ac_cv_prog_CC"
3089 fi
3090
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 printf %s "checking for $ac_word... " >&6; }
3097 if test ${ac_cv_prog_CC+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else $as_nop
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 case $as_dir in #(((
3109 '') as_dir=./ ;;
3110 */) ;;
3111 *) as_dir=$as_dir/ ;;
3112 esac
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="${ac_tool_prefix}cc"
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 printf "%s\n" "$CC" >&6; }
3129 else
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 printf "%s\n" "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 fi
3137 if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139 set dummy cc; ac_word=$2
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 printf %s "checking for $ac_word... " >&6; }
3142 if test ${ac_cv_prog_CC+y}
3143 then :
3144 printf %s "(cached) " >&6
3145 else $as_nop
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 ac_prog_rejected=no
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 case $as_dir in #(((
3155 '') as_dir=./ ;;
3156 */) ;;
3157 *) as_dir=$as_dir/ ;;
3158 esac
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3162 ac_prog_rejected=yes
3163 continue
3164 fi
3165 ac_cv_prog_CC="cc"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy $ac_cv_prog_CC
3176 shift
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3181 shift
3182 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3183 fi
3184 fi
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 printf "%s\n" "$CC" >&6; }
3191 else
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 printf "%s\n" "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 for ac_prog in cl.exe
3201 do
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 printf %s "checking for $ac_word... " >&6; }
3206 if test ${ac_cv_prog_CC+y}
3207 then :
3208 printf %s "(cached) " >&6
3209 else $as_nop
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 case $as_dir in #(((
3218 '') as_dir=./ ;;
3219 */) ;;
3220 *) as_dir=$as_dir/ ;;
3221 esac
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 printf "%s\n" "$CC" >&6; }
3238 else
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 printf "%s\n" "no" >&6; }
3241 fi
3242
3243
3244 test -n "$CC" && break
3245 done
3246 fi
3247 if test -z "$CC"; then
3248 ac_ct_CC=$CC
3249 for ac_prog in cl.exe
3250 do
3251 # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 printf %s "checking for $ac_word... " >&6; }
3255 if test ${ac_cv_prog_ac_ct_CC+y}
3256 then :
3257 printf %s "(cached) " >&6
3258 else $as_nop
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 case $as_dir in #(((
3267 '') as_dir=./ ;;
3268 */) ;;
3269 *) as_dir=$as_dir/ ;;
3270 esac
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_ac_ct_CC="$ac_prog"
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 printf "%s\n" "$ac_ct_CC" >&6; }
3287 else
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf "%s\n" "no" >&6; }
3290 fi
3291
3292
3293 test -n "$ac_ct_CC" && break
3294 done
3295
3296 if test "x$ac_ct_CC" = x; then
3297 CC=""
3298 else
3299 case $cross_compiling:$ac_tool_warned in
3300 yes:)
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303 ac_tool_warned=yes ;;
3304 esac
3305 CC=$ac_ct_CC
3306 fi
3307 fi
3308
3309 fi
3310 if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}clang; ac_word=$2
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 printf %s "checking for $ac_word... " >&6; }
3316 if test ${ac_cv_prog_CC+y}
3317 then :
3318 printf %s "(cached) " >&6
3319 else $as_nop
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 case $as_dir in #(((
3328 '') as_dir=./ ;;
3329 */) ;;
3330 *) as_dir=$as_dir/ ;;
3331 esac
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}clang"
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 printf "%s\n" "$CC" >&6; }
3348 else
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 printf "%s\n" "no" >&6; }
3351 fi
3352
3353
3354 fi
3355 if test -z "$ac_cv_prog_CC"; then
3356 ac_ct_CC=$CC
3357 # Extract the first word of "clang", so it can be a program name with args.
3358 set dummy clang; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_ac_ct_CC+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_ac_ct_CC="clang"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 printf "%s\n" "$ac_ct_CC" >&6; }
3393 else
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3396 fi
3397
3398 if test "x$ac_ct_CC" = x; then
3399 CC=""
3400 else
3401 case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407 CC=$ac_ct_CC
3408 fi
3409 else
3410 CC="$ac_cv_prog_CC"
3411 fi
3412
3413 fi
3414
3415
3416 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details" "$LINENO" 5; }
3420
3421 # Provide some information about the compiler.
3422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423 set X $ac_compile
3424 ac_compiler=$2
3425 for ac_option in --version -v -V -qversion -version; do
3426 { { ac_try="$ac_compiler $ac_option >&5"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 printf "%s\n" "$ac_try_echo"; } >&5
3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434 ac_status=$?
3435 if test -s conftest.err; then
3436 sed '10a\
3437 ... rest of stderr output deleted ...
3438 10q' conftest.err >conftest.er1
3439 cat conftest.er1 >&5
3440 fi
3441 rm -f conftest.er1 conftest.err
3442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 done
3445
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main (void)
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3461 # of exeext.
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3463 printf %s "checking whether the C compiler works... " >&6; }
3464 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468
3469 ac_rmfiles=
3470 for ac_file in $ac_files
3471 do
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475 esac
3476 done
3477 rm -f $ac_rmfiles
3478
3479 if { { ac_try="$ac_link_default"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 printf "%s\n" "$ac_try_echo"; } >&5
3486 (eval "$ac_link_default") 2>&5
3487 ac_status=$?
3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 then :
3491 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3492 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3493 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3494 # so that the user can short-circuit this test for compilers unknown to
3495 # Autoconf.
3496 for ac_file in $ac_files ''
3497 do
3498 test -f "$ac_file" || continue
3499 case $ac_file in
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501 ;;
3502 [ab].out )
3503 # We found the default executable, but exeext='' is most
3504 # certainly right.
3505 break;;
3506 *.* )
3507 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3508 then :; else
3509 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 fi
3511 # We set ac_cv_exeext here because the later test for it is not
3512 # safe: cross compilers may not add the suffix if given an `-o'
3513 # argument, so we may need to know it at that point already.
3514 # Even if this section looks crufty: it has the advantage of
3515 # actually working.
3516 break;;
3517 * )
3518 break;;
3519 esac
3520 done
3521 test "$ac_cv_exeext" = no && ac_cv_exeext=
3522
3523 else $as_nop
3524 ac_file=''
3525 fi
3526 if test -z "$ac_file"
3527 then :
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 printf "%s\n" "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error 77 "C compiler cannot create executables
3536 See \`config.log' for more details" "$LINENO" 5; }
3537 else $as_nop
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 printf "%s\n" "yes" >&6; }
3540 fi
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542 printf %s "checking for C compiler default output file name... " >&6; }
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3544 printf "%s\n" "$ac_file" >&6; }
3545 ac_exeext=$ac_cv_exeext
3546
3547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3548 ac_clean_files=$ac_clean_files_save
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3550 printf %s "checking for suffix of executables... " >&6; }
3551 if { { ac_try="$ac_link"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 printf "%s\n" "$ac_try_echo"; } >&5
3558 (eval "$ac_link") 2>&5
3559 ac_status=$?
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 then :
3563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3565 # work properly (i.e., refer to `conftest.exe'), while it won't with
3566 # `rm'.
3567 for ac_file in conftest.exe conftest conftest.*; do
3568 test -f "$ac_file" || continue
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 break;;
3573 * ) break;;
3574 esac
3575 done
3576 else $as_nop
3577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3580 See \`config.log' for more details" "$LINENO" 5; }
3581 fi
3582 rm -f conftest conftest$ac_cv_exeext
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3584 printf "%s\n" "$ac_cv_exeext" >&6; }
3585
3586 rm -f conftest.$ac_ext
3587 EXEEXT=$ac_cv_exeext
3588 ac_exeext=$EXEEXT
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591 #include <stdio.h>
3592 int
3593 main (void)
3594 {
3595 FILE *f = fopen ("conftest.out", "w");
3596 return ferror (f) || fclose (f) != 0;
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files="$ac_clean_files conftest.out"
3603 # Check that the compiler produces executables we can run. If not, either
3604 # the compiler is broken, or we cross compile.
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3606 printf %s "checking whether we are cross compiling... " >&6; }
3607 if test "$cross_compiling" != yes; then
3608 { { ac_try="$ac_link"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 printf "%s\n" "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3619 if { ac_try='./conftest$ac_cv_exeext'
3620 { { case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 printf "%s\n" "$ac_try_echo"; } >&5
3626 (eval "$ac_try") 2>&5
3627 ac_status=$?
3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; }; then
3630 cross_compiling=no
3631 else
3632 if test "$cross_compiling" = maybe; then
3633 cross_compiling=yes
3634 else
3635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error 77 "cannot run C compiled programs.
3638 If you meant to cross compile, use \`--host'.
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 fi
3642 fi
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3644 printf "%s\n" "$cross_compiling" >&6; }
3645
3646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3647 ac_clean_files=$ac_clean_files_save
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3649 printf %s "checking for suffix of object files... " >&6; }
3650 if test ${ac_cv_objext+y}
3651 then :
3652 printf %s "(cached) " >&6
3653 else $as_nop
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main (void)
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 printf "%s\n" "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }
3677 then :
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 break;;
3684 esac
3685 done
3686 else $as_nop
3687 printf "%s\n" "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details" "$LINENO" 5; }
3694 fi
3695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 fi
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698 printf "%s\n" "$ac_cv_objext" >&6; }
3699 OBJEXT=$ac_cv_objext
3700 ac_objext=$OBJEXT
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3702 printf %s "checking whether the compiler supports GNU C... " >&6; }
3703 if test ${ac_cv_c_compiler_gnu+y}
3704 then :
3705 printf %s "(cached) " >&6
3706 else $as_nop
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main (void)
3712 {
3713 #ifndef __GNUC__
3714 choke me
3715 #endif
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"
3722 then :
3723 ac_compiler_gnu=yes
3724 else $as_nop
3725 ac_compiler_gnu=no
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729
3730 fi
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735 if test $ac_compiler_gnu = yes; then
3736 GCC=yes
3737 else
3738 GCC=
3739 fi
3740 ac_test_CFLAGS=${CFLAGS+y}
3741 ac_save_CFLAGS=$CFLAGS
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 printf %s "checking whether $CC accepts -g... " >&6; }
3744 if test ${ac_cv_prog_cc_g+y}
3745 then :
3746 printf %s "(cached) " >&6
3747 else $as_nop
3748 ac_save_c_werror_flag=$ac_c_werror_flag
3749 ac_c_werror_flag=yes
3750 ac_cv_prog_cc_g=no
3751 CFLAGS="-g"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main (void)
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"
3764 then :
3765 ac_cv_prog_cc_g=yes
3766 else $as_nop
3767 CFLAGS=""
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main (void)
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"
3780 then :
3781
3782 else $as_nop
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3784 CFLAGS="-g"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788 int
3789 main (void)
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"
3797 then :
3798 ac_cv_prog_cc_g=yes
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3806 fi
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3809 if test $ac_test_CFLAGS; then
3810 CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812 if test "$GCC" = yes; then
3813 CFLAGS="-g -O2"
3814 else
3815 CFLAGS="-g"
3816 fi
3817 else
3818 if test "$GCC" = yes; then
3819 CFLAGS="-O2"
3820 else
3821 CFLAGS=
3822 fi
3823 fi
3824 ac_prog_cc_stdc=no
3825 if test x$ac_prog_cc_stdc = xno
3826 then :
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3828 printf %s "checking for $CC option to enable C11 features... " >&6; }
3829 if test ${ac_cv_prog_cc_c11+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else $as_nop
3833 ac_cv_prog_cc_c11=no
3834 ac_save_CC=$CC
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 $ac_c_conftest_c11_program
3838 _ACEOF
3839 for ac_arg in '' -std=gnu11
3840 do
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"
3843 then :
3844 ac_cv_prog_cc_c11=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.beam
3847 test "x$ac_cv_prog_cc_c11" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851 fi
3852
3853 if test "x$ac_cv_prog_cc_c11" = xno
3854 then :
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 printf "%s\n" "unsupported" >&6; }
3857 else $as_nop
3858 if test "x$ac_cv_prog_cc_c11" = x
3859 then :
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3861 printf "%s\n" "none needed" >&6; }
3862 else $as_nop
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3864 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3865 CC="$CC $ac_cv_prog_cc_c11"
3866 fi
3867 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3868 ac_prog_cc_stdc=c11
3869 fi
3870 fi
3871 if test x$ac_prog_cc_stdc = xno
3872 then :
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3874 printf %s "checking for $CC option to enable C99 features... " >&6; }
3875 if test ${ac_cv_prog_cc_c99+y}
3876 then :
3877 printf %s "(cached) " >&6
3878 else $as_nop
3879 ac_cv_prog_cc_c99=no
3880 ac_save_CC=$CC
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 $ac_c_conftest_c99_program
3884 _ACEOF
3885 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3886 do
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"
3889 then :
3890 ac_cv_prog_cc_c99=$ac_arg
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext conftest.beam
3893 test "x$ac_cv_prog_cc_c99" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3897 fi
3898
3899 if test "x$ac_cv_prog_cc_c99" = xno
3900 then :
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3902 printf "%s\n" "unsupported" >&6; }
3903 else $as_nop
3904 if test "x$ac_cv_prog_cc_c99" = x
3905 then :
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3907 printf "%s\n" "none needed" >&6; }
3908 else $as_nop
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3910 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3911 CC="$CC $ac_cv_prog_cc_c99"
3912 fi
3913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3914 ac_prog_cc_stdc=c99
3915 fi
3916 fi
3917 if test x$ac_prog_cc_stdc = xno
3918 then :
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3920 printf %s "checking for $CC option to enable C89 features... " >&6; }
3921 if test ${ac_cv_prog_cc_c89+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else $as_nop
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 $ac_c_conftest_c89_program
3930 _ACEOF
3931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3932 do
3933 CC="$ac_save_CC $ac_arg"
3934 if ac_fn_c_try_compile "$LINENO"
3935 then :
3936 ac_cv_prog_cc_c89=$ac_arg
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.beam
3939 test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943 fi
3944
3945 if test "x$ac_cv_prog_cc_c89" = xno
3946 then :
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 printf "%s\n" "unsupported" >&6; }
3949 else $as_nop
3950 if test "x$ac_cv_prog_cc_c89" = x
3951 then :
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3953 printf "%s\n" "none needed" >&6; }
3954 else $as_nop
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3957 CC="$CC $ac_cv_prog_cc_c89"
3958 fi
3959 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3960 ac_prog_cc_stdc=c89
3961 fi
3962 fi
3963
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3977 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3978 if test ${am_cv_prog_cc_c_o+y}
3979 then :
3980 printf %s "(cached) " >&6
3981 else $as_nop
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984
3985 int
3986 main (void)
3987 {
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 # Make sure it works both with $CC and with simple cc.
3994 # Following AC_PROG_CC_C_O, we do the test twice because some
3995 # compilers refuse to overwrite an existing .o file with -o,
3996 # though they will create one.
3997 am_cv_prog_cc_c_o=yes
3998 for am_i in 1 2; do
3999 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4000 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } \
4004 && test -f conftest2.$ac_objext; then
4005 : OK
4006 else
4007 am_cv_prog_cc_c_o=no
4008 break
4009 fi
4010 done
4011 rm -f core conftest*
4012 unset am_i
4013 fi
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4015 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4016 if test "$am_cv_prog_cc_c_o" != yes; then
4017 # Losing compiler, so override with the script.
4018 # FIXME: It is wrong to rewrite CC.
4019 # But if we don't then we get into trouble of one sort or another.
4020 # A longer-term fix would be to have automake use am__CC in this case,
4021 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4022 CC="$am_aux_dir/compile $CC"
4023 fi
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4032 printf %s "checking for a sed that does not truncate output... " >&6; }
4033 if test ${ac_cv_path_SED+y}
4034 then :
4035 printf %s "(cached) " >&6
4036 else $as_nop
4037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4038 for ac_i in 1 2 3 4 5 6 7; do
4039 ac_script="$ac_script$as_nl$ac_script"
4040 done
4041 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4042 { ac_script=; unset ac_script;}
4043 if test -z "$SED"; then
4044 ac_path_SED_found=false
4045 # Loop through the user's path and test for each of PROGNAME-LIST
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 case $as_dir in #(((
4051 '') as_dir=./ ;;
4052 */) ;;
4053 *) as_dir=$as_dir/ ;;
4054 esac
4055 for ac_prog in sed gsed
4056 do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4059 as_fn_executable_p "$ac_path_SED" || continue
4060 # Check for GNU ac_path_SED and select it if it is found.
4061 # Check for GNU $ac_path_SED
4062 case `"$ac_path_SED" --version 2>&1` in
4063 *GNU*)
4064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4065 *)
4066 ac_count=0
4067 printf %s 0123456789 >"conftest.in"
4068 while :
4069 do
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 printf "%s\n" '' >> "conftest.nl"
4074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 as_fn_arith $ac_count + 1 && ac_count=$as_val
4077 if test $ac_count -gt ${ac_path_SED_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_SED="$ac_path_SED"
4080 ac_path_SED_max=$ac_count
4081 fi
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4084 done
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4087
4088 $ac_path_SED_found && break 3
4089 done
4090 done
4091 done
4092 IFS=$as_save_IFS
4093 if test -z "$ac_cv_path_SED"; then
4094 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4095 fi
4096 else
4097 ac_cv_path_SED=$SED
4098 fi
4099
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4102 printf "%s\n" "$ac_cv_path_SED" >&6; }
4103 SED="$ac_cv_path_SED"
4104 rm -f conftest.sed
4105
4106 test -z "$SED" && SED=sed
4107 Xsed="$SED -e 1s/^X//"
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4120 printf %s "checking for grep that handles long lines and -e... " >&6; }
4121 if test ${ac_cv_path_GREP+y}
4122 then :
4123 printf %s "(cached) " >&6
4124 else $as_nop
4125 if test -z "$GREP"; then
4126 ac_path_GREP_found=false
4127 # Loop through the user's path and test for each of PROGNAME-LIST
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 do
4131 IFS=$as_save_IFS
4132 case $as_dir in #(((
4133 '') as_dir=./ ;;
4134 */) ;;
4135 *) as_dir=$as_dir/ ;;
4136 esac
4137 for ac_prog in grep ggrep
4138 do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4141 as_fn_executable_p "$ac_path_GREP" || continue
4142 # Check for GNU ac_path_GREP and select it if it is found.
4143 # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4145 *GNU*)
4146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 *)
4148 ac_count=0
4149 printf %s 0123456789 >"conftest.in"
4150 while :
4151 do
4152 cat "conftest.in" "conftest.in" >"conftest.tmp"
4153 mv "conftest.tmp" "conftest.in"
4154 cp "conftest.in" "conftest.nl"
4155 printf "%s\n" 'GREP' >> "conftest.nl"
4156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158 as_fn_arith $ac_count + 1 && ac_count=$as_val
4159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160 # Best one so far, save it but keep looking for a better one
4161 ac_cv_path_GREP="$ac_path_GREP"
4162 ac_path_GREP_max=$ac_count
4163 fi
4164 # 10*(2^10) chars as input seems more than enough
4165 test $ac_count -gt 10 && break
4166 done
4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 esac
4169
4170 $ac_path_GREP_found && break 3
4171 done
4172 done
4173 done
4174 IFS=$as_save_IFS
4175 if test -z "$ac_cv_path_GREP"; then
4176 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177 fi
4178 else
4179 ac_cv_path_GREP=$GREP
4180 fi
4181
4182 fi
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4184 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4185 GREP="$ac_cv_path_GREP"
4186
4187
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4189 printf %s "checking for egrep... " >&6; }
4190 if test ${ac_cv_path_EGREP+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else $as_nop
4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195 then ac_cv_path_EGREP="$GREP -E"
4196 else
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203 IFS=$as_save_IFS
4204 case $as_dir in #(((
4205 '') as_dir=./ ;;
4206 */) ;;
4207 *) as_dir=$as_dir/ ;;
4208 esac
4209 for ac_prog in egrep
4210 do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4213 as_fn_executable_p "$ac_path_EGREP" || continue
4214 # Check for GNU ac_path_EGREP and select it if it is found.
4215 # Check for GNU $ac_path_EGREP
4216 case `"$ac_path_EGREP" --version 2>&1` in
4217 *GNU*)
4218 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4219 *)
4220 ac_count=0
4221 printf %s 0123456789 >"conftest.in"
4222 while :
4223 do
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 printf "%s\n" 'EGREP' >> "conftest.nl"
4228 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 as_fn_arith $ac_count + 1 && ac_count=$as_val
4231 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_EGREP="$ac_path_EGREP"
4234 ac_path_EGREP_max=$ac_count
4235 fi
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4238 done
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242 $ac_path_EGREP_found && break 3
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 if test -z "$ac_cv_path_EGREP"; then
4248 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 fi
4250 else
4251 ac_cv_path_EGREP=$EGREP
4252 fi
4253
4254 fi
4255 fi
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4257 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4258 EGREP="$ac_cv_path_EGREP"
4259
4260
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4262 printf %s "checking for fgrep... " >&6; }
4263 if test ${ac_cv_path_FGREP+y}
4264 then :
4265 printf %s "(cached) " >&6
4266 else $as_nop
4267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4268 then ac_cv_path_FGREP="$GREP -F"
4269 else
4270 if test -z "$FGREP"; then
4271 ac_path_FGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 case $as_dir in #(((
4278 '') as_dir=./ ;;
4279 */) ;;
4280 *) as_dir=$as_dir/ ;;
4281 esac
4282 for ac_prog in fgrep
4283 do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4286 as_fn_executable_p "$ac_path_FGREP" || continue
4287 # Check for GNU ac_path_FGREP and select it if it is found.
4288 # Check for GNU $ac_path_FGREP
4289 case `"$ac_path_FGREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4292 *)
4293 ac_count=0
4294 printf %s 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 printf "%s\n" 'FGREP' >> "conftest.nl"
4301 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_FGREP="$ac_path_FGREP"
4307 ac_path_FGREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315 $ac_path_FGREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_FGREP"; then
4321 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 fi
4323 else
4324 ac_cv_path_FGREP=$FGREP
4325 fi
4326
4327 fi
4328 fi
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4330 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4331 FGREP="$ac_cv_path_FGREP"
4332
4333
4334 test -z "$GREP" && GREP=grep
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 # Check whether --with-gnu-ld was given.
4355 if test ${with_gnu_ld+y}
4356 then :
4357 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4358 else $as_nop
4359 with_gnu_ld=no
4360 fi
4361
4362 ac_prog=ld
4363 if test yes = "$GCC"; then
4364 # Check if gcc -print-prog-name=ld gives a path.
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4366 printf %s "checking for ld used by $CC... " >&6; }
4367 case $host in
4368 *-*-mingw*)
4369 # gcc leaves a trailing carriage return, which upsets mingw
4370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4371 *)
4372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4373 esac
4374 case $ac_prog in
4375 # Accept absolute paths.
4376 [\\/]* | ?:[\\/]*)
4377 re_direlt='/[^/][^/]*/\.\./'
4378 # Canonicalize the pathname of ld
4379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4382 done
4383 test -z "$LD" && LD=$ac_prog
4384 ;;
4385 "")
4386 # If it fails, then pretend we aren't using GCC.
4387 ac_prog=ld
4388 ;;
4389 *)
4390 # If it is relative, then search for the first ld in PATH.
4391 with_gnu_ld=unknown
4392 ;;
4393 esac
4394 elif test yes = "$with_gnu_ld"; then
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4396 printf %s "checking for GNU ld... " >&6; }
4397 else
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4399 printf %s "checking for non-GNU ld... " >&6; }
4400 fi
4401 if test ${lt_cv_path_LD+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else $as_nop
4405 if test -z "$LD"; then
4406 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4407 for ac_dir in $PATH; do
4408 IFS=$lt_save_ifs
4409 test -z "$ac_dir" && ac_dir=.
4410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4411 lt_cv_path_LD=$ac_dir/$ac_prog
4412 # Check to see if the program is GNU ld. I'd rather use --version,
4413 # but apparently some variants of GNU ld only accept -v.
4414 # Break only if it was the GNU/non-GNU ld that we prefer.
4415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4416 *GNU* | *'with BFD'*)
4417 test no != "$with_gnu_ld" && break
4418 ;;
4419 *)
4420 test yes != "$with_gnu_ld" && break
4421 ;;
4422 esac
4423 fi
4424 done
4425 IFS=$lt_save_ifs
4426 else
4427 lt_cv_path_LD=$LD # Let the user override the test with a path.
4428 fi
4429 fi
4430
4431 LD=$lt_cv_path_LD
4432 if test -n "$LD"; then
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4434 printf "%s\n" "$LD" >&6; }
4435 else
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 printf "%s\n" "no" >&6; }
4438 fi
4439 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4441 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4442 if test ${lt_cv_prog_gnu_ld+y}
4443 then :
4444 printf %s "(cached) " >&6
4445 else $as_nop
4446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4447 case `$LD -v 2>&1 </dev/null` in
4448 *GNU* | *'with BFD'*)
4449 lt_cv_prog_gnu_ld=yes
4450 ;;
4451 *)
4452 lt_cv_prog_gnu_ld=no
4453 ;;
4454 esac
4455 fi
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4457 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4458 with_gnu_ld=$lt_cv_prog_gnu_ld
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4469 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4470 if test ${lt_cv_path_NM+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else $as_nop
4474 if test -n "$NM"; then
4475 # Let the user override the test.
4476 lt_cv_path_NM=$NM
4477 else
4478 lt_nm_to_check=${ac_tool_prefix}nm
4479 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4480 lt_nm_to_check="$lt_nm_to_check nm"
4481 fi
4482 for lt_tmp_nm in $lt_nm_to_check; do
4483 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4484 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4485 IFS=$lt_save_ifs
4486 test -z "$ac_dir" && ac_dir=.
4487 tmp_nm=$ac_dir/$lt_tmp_nm
4488 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4489 # Check to see if the nm accepts a BSD-compat flag.
4490 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4491 # nm: unknown option "B" ignored
4492 # Tru64's nm complains that /dev/null is an invalid object file
4493 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4494 case $build_os in
4495 mingw*) lt_bad_file=conftest.nm/nofile ;;
4496 *) lt_bad_file=/dev/null ;;
4497 esac
4498 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4499 *$lt_bad_file* | *'Invalid file or object type'*)
4500 lt_cv_path_NM="$tmp_nm -B"
4501 break 2
4502 ;;
4503 *)
4504 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4505 */dev/null*)
4506 lt_cv_path_NM="$tmp_nm -p"
4507 break 2
4508 ;;
4509 *)
4510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4511 continue # so that we can try to find one that supports BSD flags
4512 ;;
4513 esac
4514 ;;
4515 esac
4516 fi
4517 done
4518 IFS=$lt_save_ifs
4519 done
4520 : ${lt_cv_path_NM=no}
4521 fi
4522 fi
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4524 printf "%s\n" "$lt_cv_path_NM" >&6; }
4525 if test no != "$lt_cv_path_NM"; then
4526 NM=$lt_cv_path_NM
4527 else
4528 # Didn't find any BSD compatible name lister, look for dumpbin.
4529 if test -n "$DUMPBIN"; then :
4530 # Let the user override the test.
4531 else
4532 if test -n "$ac_tool_prefix"; then
4533 for ac_prog in dumpbin "link -dump"
4534 do
4535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 printf %s "checking for $ac_word... " >&6; }
4539 if test ${ac_cv_prog_DUMPBIN+y}
4540 then :
4541 printf %s "(cached) " >&6
4542 else $as_nop
4543 if test -n "$DUMPBIN"; then
4544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549 IFS=$as_save_IFS
4550 case $as_dir in #(((
4551 '') as_dir=./ ;;
4552 */) ;;
4553 *) as_dir=$as_dir/ ;;
4554 esac
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565 fi
4566 fi
4567 DUMPBIN=$ac_cv_prog_DUMPBIN
4568 if test -n "$DUMPBIN"; then
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4570 printf "%s\n" "$DUMPBIN" >&6; }
4571 else
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 printf "%s\n" "no" >&6; }
4574 fi
4575
4576
4577 test -n "$DUMPBIN" && break
4578 done
4579 fi
4580 if test -z "$DUMPBIN"; then
4581 ac_ct_DUMPBIN=$DUMPBIN
4582 for ac_prog in dumpbin "link -dump"
4583 do
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 printf %s "checking for $ac_word... " >&6; }
4588 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 if test -n "$ac_ct_DUMPBIN"; then
4593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 case $as_dir in #(((
4600 '') as_dir=./ ;;
4601 */) ;;
4602 *) as_dir=$as_dir/ ;;
4603 esac
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4617 if test -n "$ac_ct_DUMPBIN"; then
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4619 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4620 else
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 printf "%s\n" "no" >&6; }
4623 fi
4624
4625
4626 test -n "$ac_ct_DUMPBIN" && break
4627 done
4628
4629 if test "x$ac_ct_DUMPBIN" = x; then
4630 DUMPBIN=":"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 DUMPBIN=$ac_ct_DUMPBIN
4639 fi
4640 fi
4641
4642 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4643 *COFF*)
4644 DUMPBIN="$DUMPBIN -symbols -headers"
4645 ;;
4646 *)
4647 DUMPBIN=:
4648 ;;
4649 esac
4650 fi
4651
4652 if test : != "$DUMPBIN"; then
4653 NM=$DUMPBIN
4654 fi
4655 fi
4656 test -z "$NM" && NM=nm
4657
4658
4659
4660
4661
4662
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4664 printf %s "checking the name lister ($NM) interface... " >&6; }
4665 if test ${lt_cv_nm_interface+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else $as_nop
4669 lt_cv_nm_interface="BSD nm"
4670 echo "int some_variable = 0;" > conftest.$ac_ext
4671 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4672 (eval "$ac_compile" 2>conftest.err)
4673 cat conftest.err >&5
4674 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4675 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4676 cat conftest.err >&5
4677 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4678 cat conftest.out >&5
4679 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4680 lt_cv_nm_interface="MS dumpbin"
4681 fi
4682 rm -f conftest*
4683 fi
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4685 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4686
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4688 printf %s "checking whether ln -s works... " >&6; }
4689 LN_S=$as_ln_s
4690 if test "$LN_S" = "ln -s"; then
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 printf "%s\n" "yes" >&6; }
4693 else
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4695 printf "%s\n" "no, using $LN_S" >&6; }
4696 fi
4697
4698 # find the maximum length of command line arguments
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4700 printf %s "checking the maximum length of command line arguments... " >&6; }
4701 if test ${lt_cv_sys_max_cmd_len+y}
4702 then :
4703 printf %s "(cached) " >&6
4704 else $as_nop
4705 i=0
4706 teststring=ABCD
4707
4708 case $build_os in
4709 msdosdjgpp*)
4710 # On DJGPP, this test can blow up pretty badly due to problems in libc
4711 # (any single argument exceeding 2000 bytes causes a buffer overrun
4712 # during glob expansion). Even if it were fixed, the result of this
4713 # check would be larger than it should be.
4714 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4715 ;;
4716
4717 gnu*)
4718 # Under GNU Hurd, this test is not required because there is
4719 # no limit to the length of command line arguments.
4720 # Libtool will interpret -1 as no limit whatsoever
4721 lt_cv_sys_max_cmd_len=-1;
4722 ;;
4723
4724 cygwin* | mingw* | cegcc*)
4725 # On Win9x/ME, this test blows up -- it succeeds, but takes
4726 # about 5 minutes as the teststring grows exponentially.
4727 # Worse, since 9x/ME are not pre-emptively multitasking,
4728 # you end up with a "frozen" computer, even though with patience
4729 # the test eventually succeeds (with a max line length of 256k).
4730 # Instead, let's just punt: use the minimum linelength reported by
4731 # all of the supported platforms: 8192 (on NT/2K/XP).
4732 lt_cv_sys_max_cmd_len=8192;
4733 ;;
4734
4735 mint*)
4736 # On MiNT this can take a long time and run out of memory.
4737 lt_cv_sys_max_cmd_len=8192;
4738 ;;
4739
4740 amigaos*)
4741 # On AmigaOS with pdksh, this test takes hours, literally.
4742 # So we just punt and use a minimum line length of 8192.
4743 lt_cv_sys_max_cmd_len=8192;
4744 ;;
4745
4746 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4747 # This has been around since 386BSD, at least. Likely further.
4748 if test -x /sbin/sysctl; then
4749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4750 elif test -x /usr/sbin/sysctl; then
4751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4752 else
4753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4754 fi
4755 # And add a safety zone
4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 ;;
4759
4760 interix*)
4761 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4762 lt_cv_sys_max_cmd_len=196608
4763 ;;
4764
4765 os2*)
4766 # The test takes a long time on OS/2.
4767 lt_cv_sys_max_cmd_len=8192
4768 ;;
4769
4770 osf*)
4771 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4772 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4773 # nice to cause kernel panics so lets avoid the loop below.
4774 # First set a reasonable default.
4775 lt_cv_sys_max_cmd_len=16384
4776 #
4777 if test -x /sbin/sysconfig; then
4778 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4779 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4780 esac
4781 fi
4782 ;;
4783 sco3.2v5*)
4784 lt_cv_sys_max_cmd_len=102400
4785 ;;
4786 sysv5* | sco5v6* | sysv4.2uw2*)
4787 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4788 if test -n "$kargmax"; then
4789 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
4790 else
4791 lt_cv_sys_max_cmd_len=32768
4792 fi
4793 ;;
4794 *)
4795 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4796 if test -n "$lt_cv_sys_max_cmd_len" && \
4797 test undefined != "$lt_cv_sys_max_cmd_len"; then
4798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4800 else
4801 # Make teststring a little bigger before we do anything with it.
4802 # a 1K string should be a reasonable start.
4803 for i in 1 2 3 4 5 6 7 8; do
4804 teststring=$teststring$teststring
4805 done
4806 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4807 # If test is not a shell built-in, we'll probably end up computing a
4808 # maximum length that is only half of the actual maximum length, but
4809 # we can't tell.
4810 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4811 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4812 test 17 != "$i" # 1/2 MB should be enough
4813 do
4814 i=`expr $i + 1`
4815 teststring=$teststring$teststring
4816 done
4817 # Only check the string length outside the loop.
4818 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4819 teststring=
4820 # Add a significant safety factor because C++ compilers can tack on
4821 # massive amounts of additional arguments before passing them to the
4822 # linker. It appears as though 1/2 is a usable value.
4823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4824 fi
4825 ;;
4826 esac
4827
4828 fi
4829
4830 if test -n "$lt_cv_sys_max_cmd_len"; then
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4832 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4833 else
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4835 printf "%s\n" "none" >&6; }
4836 fi
4837 max_cmd_len=$lt_cv_sys_max_cmd_len
4838
4839
4840
4841
4842
4843
4844 : ${CP="cp -f"}
4845 : ${MV="mv -f"}
4846 : ${RM="rm -f"}
4847
4848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4849 lt_unset=unset
4850 else
4851 lt_unset=false
4852 fi
4853
4854
4855
4856
4857
4858 # test EBCDIC or ASCII
4859 case `echo X|tr X '\101'` in
4860 A) # ASCII based system
4861 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4862 lt_SP2NL='tr \040 \012'
4863 lt_NL2SP='tr \015\012 \040\040'
4864 ;;
4865 *) # EBCDIC based system
4866 lt_SP2NL='tr \100 \n'
4867 lt_NL2SP='tr \r\n \100\100'
4868 ;;
4869 esac
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4880 printf %s "checking how to convert $build file names to $host format... " >&6; }
4881 if test ${lt_cv_to_host_file_cmd+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else $as_nop
4885 case $host in
4886 *-*-mingw* )
4887 case $build in
4888 *-*-mingw* ) # actually msys
4889 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4890 ;;
4891 *-*-cygwin* )
4892 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4893 ;;
4894 * ) # otherwise, assume *nix
4895 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4896 ;;
4897 esac
4898 ;;
4899 *-*-cygwin* )
4900 case $build in
4901 *-*-mingw* ) # actually msys
4902 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4903 ;;
4904 *-*-cygwin* )
4905 lt_cv_to_host_file_cmd=func_convert_file_noop
4906 ;;
4907 * ) # otherwise, assume *nix
4908 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4909 ;;
4910 esac
4911 ;;
4912 * ) # unhandled hosts (and "normal" native builds)
4913 lt_cv_to_host_file_cmd=func_convert_file_noop
4914 ;;
4915 esac
4916
4917 fi
4918
4919 to_host_file_cmd=$lt_cv_to_host_file_cmd
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4921 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4922
4923
4924
4925
4926
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4928 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4929 if test ${lt_cv_to_tool_file_cmd+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else $as_nop
4933 #assume ordinary cross tools, or native build.
4934 lt_cv_to_tool_file_cmd=func_convert_file_noop
4935 case $host in
4936 *-*-mingw* )
4937 case $build in
4938 *-*-mingw* ) # actually msys
4939 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4940 ;;
4941 esac
4942 ;;
4943 esac
4944
4945 fi
4946
4947 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4949 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4950
4951
4952
4953
4954
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4956 printf %s "checking for $LD option to reload object files... " >&6; }
4957 if test ${lt_cv_ld_reload_flag+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else $as_nop
4961 lt_cv_ld_reload_flag='-r'
4962 fi
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4964 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4965 reload_flag=$lt_cv_ld_reload_flag
4966 case $reload_flag in
4967 "" | " "*) ;;
4968 *) reload_flag=" $reload_flag" ;;
4969 esac
4970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4971 case $host_os in
4972 cygwin* | mingw* | pw32* | cegcc*)
4973 if test yes != "$GCC"; then
4974 reload_cmds=false
4975 fi
4976 ;;
4977 darwin*)
4978 if test yes = "$GCC"; then
4979 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4980 else
4981 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4982 fi
4983 ;;
4984 esac
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
4996 set dummy ${ac_tool_prefix}file; ac_word=$2
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 printf %s "checking for $ac_word... " >&6; }
4999 if test ${ac_cv_prog_FILECMD+y}
5000 then :
5001 printf %s "(cached) " >&6
5002 else $as_nop
5003 if test -n "$FILECMD"; then
5004 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 case $as_dir in #(((
5011 '') as_dir=./ ;;
5012 */) ;;
5013 *) as_dir=$as_dir/ ;;
5014 esac
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 FILECMD=$ac_cv_prog_FILECMD
5028 if test -n "$FILECMD"; then
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5030 printf "%s\n" "$FILECMD" >&6; }
5031 else
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 printf "%s\n" "no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$ac_cv_prog_FILECMD"; then
5039 ac_ct_FILECMD=$FILECMD
5040 # Extract the first word of "file", so it can be a program name with args.
5041 set dummy file; ac_word=$2
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 printf %s "checking for $ac_word... " >&6; }
5044 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5045 then :
5046 printf %s "(cached) " >&6
5047 else $as_nop
5048 if test -n "$ac_ct_FILECMD"; then
5049 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 case $as_dir in #(((
5056 '') as_dir=./ ;;
5057 */) ;;
5058 *) as_dir=$as_dir/ ;;
5059 esac
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_ac_ct_FILECMD="file"
5063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5073 if test -n "$ac_ct_FILECMD"; then
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5075 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5076 else
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 printf "%s\n" "no" >&6; }
5079 fi
5080
5081 if test "x$ac_ct_FILECMD" = x; then
5082 FILECMD=":"
5083 else
5084 case $cross_compiling:$ac_tool_warned in
5085 yes:)
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5088 ac_tool_warned=yes ;;
5089 esac
5090 FILECMD=$ac_ct_FILECMD
5091 fi
5092 else
5093 FILECMD="$ac_cv_prog_FILECMD"
5094 fi
5095
5096
5097
5098
5099
5100
5101
5102 if test -n "$ac_tool_prefix"; then
5103 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5104 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 printf %s "checking for $ac_word... " >&6; }
5107 if test ${ac_cv_prog_OBJDUMP+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else $as_nop
5111 if test -n "$OBJDUMP"; then
5112 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 case $as_dir in #(((
5119 '') as_dir=./ ;;
5120 */) ;;
5121 *) as_dir=$as_dir/ ;;
5122 esac
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 OBJDUMP=$ac_cv_prog_OBJDUMP
5136 if test -n "$OBJDUMP"; then
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5138 printf "%s\n" "$OBJDUMP" >&6; }
5139 else
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 printf "%s\n" "no" >&6; }
5142 fi
5143
5144
5145 fi
5146 if test -z "$ac_cv_prog_OBJDUMP"; then
5147 ac_ct_OBJDUMP=$OBJDUMP
5148 # Extract the first word of "objdump", so it can be a program name with args.
5149 set dummy objdump; ac_word=$2
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 printf %s "checking for $ac_word... " >&6; }
5152 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5153 then :
5154 printf %s "(cached) " >&6
5155 else $as_nop
5156 if test -n "$ac_ct_OBJDUMP"; then
5157 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 case $as_dir in #(((
5164 '') as_dir=./ ;;
5165 */) ;;
5166 *) as_dir=$as_dir/ ;;
5167 esac
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5181 if test -n "$ac_ct_OBJDUMP"; then
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5183 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5184 else
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 printf "%s\n" "no" >&6; }
5187 fi
5188
5189 if test "x$ac_ct_OBJDUMP" = x; then
5190 OBJDUMP="false"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198 OBJDUMP=$ac_ct_OBJDUMP
5199 fi
5200 else
5201 OBJDUMP="$ac_cv_prog_OBJDUMP"
5202 fi
5203
5204 test -z "$OBJDUMP" && OBJDUMP=objdump
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5215 printf %s "checking how to recognize dependent libraries... " >&6; }
5216 if test ${lt_cv_deplibs_check_method+y}
5217 then :
5218 printf %s "(cached) " >&6
5219 else $as_nop
5220 lt_cv_file_magic_cmd='$MAGIC_CMD'
5221 lt_cv_file_magic_test_file=
5222 lt_cv_deplibs_check_method='unknown'
5223 # Need to set the preceding variable on all platforms that support
5224 # interlibrary dependencies.
5225 # 'none' -- dependencies not supported.
5226 # 'unknown' -- same as none, but documents that we really don't know.
5227 # 'pass_all' -- all dependencies passed with no checks.
5228 # 'test_compile' -- check by making test program.
5229 # 'file_magic [[regex]]' -- check by looking for files in library path
5230 # that responds to the $file_magic_cmd with a given extended regex.
5231 # If you have 'file' or equivalent on your system and you're not sure
5232 # whether 'pass_all' will *always* work, you probably want this one.
5233
5234 case $host_os in
5235 aix[4-9]*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239 beos*)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
5242
5243 bsdi[45]*)
5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5245 lt_cv_file_magic_cmd='$FILECMD -L'
5246 lt_cv_file_magic_test_file=/shlib/libc.so
5247 ;;
5248
5249 cygwin*)
5250 # func_win32_libid is a shell function defined in ltmain.sh
5251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5252 lt_cv_file_magic_cmd='func_win32_libid'
5253 ;;
5254
5255 mingw* | pw32*)
5256 # Base MSYS/MinGW do not provide the 'file' command needed by
5257 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5258 # unless we find 'file', for example because we are cross-compiling.
5259 if ( file / ) >/dev/null 2>&1; then
5260 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5261 lt_cv_file_magic_cmd='func_win32_libid'
5262 else
5263 # Keep this pattern in sync with the one in func_win32_libid.
5264 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5265 lt_cv_file_magic_cmd='$OBJDUMP -f'
5266 fi
5267 ;;
5268
5269 cegcc*)
5270 # use the weaker test based on 'objdump'. See mingw*.
5271 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5272 lt_cv_file_magic_cmd='$OBJDUMP -f'
5273 ;;
5274
5275 darwin* | rhapsody*)
5276 lt_cv_deplibs_check_method=pass_all
5277 ;;
5278
5279 freebsd* | dragonfly* | midnightbsd*)
5280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5281 case $host_cpu in
5282 i*86 )
5283 # Not sure whether the presence of OpenBSD here was a mistake.
5284 # Let's accept both of them until this is cleared up.
5285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5286 lt_cv_file_magic_cmd=$FILECMD
5287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5288 ;;
5289 esac
5290 else
5291 lt_cv_deplibs_check_method=pass_all
5292 fi
5293 ;;
5294
5295 haiku*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 hpux10.20* | hpux11*)
5300 lt_cv_file_magic_cmd=$FILECMD
5301 case $host_cpu in
5302 ia64*)
5303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5305 ;;
5306 hppa*64*)
5307 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]'
5308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5309 ;;
5310 *)
5311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5313 ;;
5314 esac
5315 ;;
5316
5317 interix[3-9]*)
5318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5320 ;;
5321
5322 irix5* | irix6* | nonstopux*)
5323 case $LD in
5324 *-32|*"-32 ") libmagic=32-bit;;
5325 *-n32|*"-n32 ") libmagic=N32;;
5326 *-64|*"-64 ") libmagic=64-bit;;
5327 *) libmagic=never-match;;
5328 esac
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 # This must be glibc/ELF.
5333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337 netbsd* | netbsdelf*-gnu)
5338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5340 else
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5342 fi
5343 ;;
5344
5345 newos6*)
5346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5347 lt_cv_file_magic_cmd=$FILECMD
5348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5349 ;;
5350
5351 *nto* | *qnx*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355 openbsd* | bitrig*)
5356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5358 else
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5360 fi
5361 ;;
5362
5363 osf3* | osf4* | osf5*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
5367 rdos*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371 solaris*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374
5375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
5379 sysv4 | sysv4.3*)
5380 case $host_vendor in
5381 motorola)
5382 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]'
5383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5384 ;;
5385 ncr)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388 sequent)
5389 lt_cv_file_magic_cmd='/bin/file'
5390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5391 ;;
5392 sni)
5393 lt_cv_file_magic_cmd='/bin/file'
5394 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5395 lt_cv_file_magic_test_file=/lib/libc.so
5396 ;;
5397 siemens)
5398 lt_cv_deplibs_check_method=pass_all
5399 ;;
5400 pc)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403 esac
5404 ;;
5405
5406 tpf*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409 os2*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412 esac
5413
5414 fi
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5416 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5417
5418 file_magic_glob=
5419 want_nocaseglob=no
5420 if test "$build" = "$host"; then
5421 case $host_os in
5422 mingw* | pw32*)
5423 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5424 want_nocaseglob=yes
5425 else
5426 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5427 fi
5428 ;;
5429 esac
5430 fi
5431
5432 file_magic_cmd=$lt_cv_file_magic_cmd
5433 deplibs_check_method=$lt_cv_deplibs_check_method
5434 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 if test -n "$ac_tool_prefix"; then
5458 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 printf %s "checking for $ac_word... " >&6; }
5462 if test ${ac_cv_prog_DLLTOOL+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else $as_nop
5466 if test -n "$DLLTOOL"; then
5467 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 case $as_dir in #(((
5474 '') as_dir=./ ;;
5475 */) ;;
5476 *) as_dir=$as_dir/ ;;
5477 esac
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 DLLTOOL=$ac_cv_prog_DLLTOOL
5491 if test -n "$DLLTOOL"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5493 printf "%s\n" "$DLLTOOL" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 printf "%s\n" "no" >&6; }
5497 fi
5498
5499
5500 fi
5501 if test -z "$ac_cv_prog_DLLTOOL"; then
5502 ac_ct_DLLTOOL=$DLLTOOL
5503 # Extract the first word of "dlltool", so it can be a program name with args.
5504 set dummy dlltool; ac_word=$2
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 printf %s "checking for $ac_word... " >&6; }
5507 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5508 then :
5509 printf %s "(cached) " >&6
5510 else $as_nop
5511 if test -n "$ac_ct_DLLTOOL"; then
5512 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 case $as_dir in #(((
5519 '') as_dir=./ ;;
5520 */) ;;
5521 *) as_dir=$as_dir/ ;;
5522 esac
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5532
5533 fi
5534 fi
5535 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5536 if test -n "$ac_ct_DLLTOOL"; then
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5538 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5539 else
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 printf "%s\n" "no" >&6; }
5542 fi
5543
5544 if test "x$ac_ct_DLLTOOL" = x; then
5545 DLLTOOL="false"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 DLLTOOL=$ac_ct_DLLTOOL
5554 fi
5555 else
5556 DLLTOOL="$ac_cv_prog_DLLTOOL"
5557 fi
5558
5559 test -z "$DLLTOOL" && DLLTOOL=dlltool
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5571 printf %s "checking how to associate runtime and link libraries... " >&6; }
5572 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5573 then :
5574 printf %s "(cached) " >&6
5575 else $as_nop
5576 lt_cv_sharedlib_from_linklib_cmd='unknown'
5577
5578 case $host_os in
5579 cygwin* | mingw* | pw32* | cegcc*)
5580 # two different shell functions defined in ltmain.sh;
5581 # decide which one to use based on capabilities of $DLLTOOL
5582 case `$DLLTOOL --help 2>&1` in
5583 *--identify-strict*)
5584 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5585 ;;
5586 *)
5587 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5588 ;;
5589 esac
5590 ;;
5591 *)
5592 # fallback: assume linklib IS sharedlib
5593 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5594 ;;
5595 esac
5596
5597 fi
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5599 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5600 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5601 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5602
5603
5604
5605
5606
5607
5608
5609
5610 if test -n "$ac_tool_prefix"; then
5611 for ac_prog in ar
5612 do
5613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 printf %s "checking for $ac_word... " >&6; }
5617 if test ${ac_cv_prog_AR+y}
5618 then :
5619 printf %s "(cached) " >&6
5620 else $as_nop
5621 if test -n "$AR"; then
5622 ac_cv_prog_AR="$AR" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627 IFS=$as_save_IFS
5628 case $as_dir in #(((
5629 '') as_dir=./ ;;
5630 */) ;;
5631 *) as_dir=$as_dir/ ;;
5632 esac
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 AR=$ac_cv_prog_AR
5646 if test -n "$AR"; then
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5648 printf "%s\n" "$AR" >&6; }
5649 else
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 printf "%s\n" "no" >&6; }
5652 fi
5653
5654
5655 test -n "$AR" && break
5656 done
5657 fi
5658 if test -z "$AR"; then
5659 ac_ct_AR=$AR
5660 for ac_prog in ar
5661 do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 printf %s "checking for $ac_word... " >&6; }
5666 if test ${ac_cv_prog_ac_ct_AR+y}
5667 then :
5668 printf %s "(cached) " >&6
5669 else $as_nop
5670 if test -n "$ac_ct_AR"; then
5671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 case $as_dir in #(((
5678 '') as_dir=./ ;;
5679 */) ;;
5680 *) as_dir=$as_dir/ ;;
5681 esac
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_AR="$ac_prog"
5685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5695 if test -n "$ac_ct_AR"; then
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5697 printf "%s\n" "$ac_ct_AR" >&6; }
5698 else
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 printf "%s\n" "no" >&6; }
5701 fi
5702
5703
5704 test -n "$ac_ct_AR" && break
5705 done
5706
5707 if test "x$ac_ct_AR" = x; then
5708 AR="false"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 AR=$ac_ct_AR
5717 fi
5718 fi
5719
5720 : ${AR=ar}
5721
5722
5723
5724
5725
5726
5727 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5728 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5729 # higher priority because thats what people were doing historically (setting
5730 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
5731 # variable obsoleted/removed.
5732
5733 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5734 lt_ar_flags=$AR_FLAGS
5735
5736
5737
5738
5739
5740
5741 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
5742 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5743
5744
5745
5746
5747
5748
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5750 printf %s "checking for archiver @FILE support... " >&6; }
5751 if test ${lt_cv_ar_at_file+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else $as_nop
5755 lt_cv_ar_at_file=no
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758
5759 int
5760 main (void)
5761 {
5762
5763 ;
5764 return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"
5768 then :
5769 echo conftest.$ac_objext > conftest.lst
5770 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5772 (eval $lt_ar_try) 2>&5
5773 ac_status=$?
5774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775 test $ac_status = 0; }
5776 if test 0 -eq "$ac_status"; then
5777 # Ensure the archiver fails upon bogus file names.
5778 rm -f conftest.$ac_objext libconftest.a
5779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5780 (eval $lt_ar_try) 2>&5
5781 ac_status=$?
5782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }
5784 if test 0 -ne "$ac_status"; then
5785 lt_cv_ar_at_file=@
5786 fi
5787 fi
5788 rm -f conftest.* libconftest.a
5789
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5792
5793 fi
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5795 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5796
5797 if test no = "$lt_cv_ar_at_file"; then
5798 archiver_list_spec=
5799 else
5800 archiver_list_spec=$lt_cv_ar_at_file
5801 fi
5802
5803
5804
5805
5806
5807
5808
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}strip; ac_word=$2
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 printf %s "checking for $ac_word... " >&6; }
5814 if test ${ac_cv_prog_STRIP+y}
5815 then :
5816 printf %s "(cached) " >&6
5817 else $as_nop
5818 if test -n "$STRIP"; then
5819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 case $as_dir in #(((
5826 '') as_dir=./ ;;
5827 */) ;;
5828 *) as_dir=$as_dir/ ;;
5829 esac
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 STRIP=$ac_cv_prog_STRIP
5843 if test -n "$STRIP"; then
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5845 printf "%s\n" "$STRIP" >&6; }
5846 else
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 printf "%s\n" "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_STRIP"; then
5854 ac_ct_STRIP=$STRIP
5855 # Extract the first word of "strip", so it can be a program name with args.
5856 set dummy strip; ac_word=$2
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 printf %s "checking for $ac_word... " >&6; }
5859 if test ${ac_cv_prog_ac_ct_STRIP+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else $as_nop
5863 if test -n "$ac_ct_STRIP"; then
5864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 case $as_dir in #(((
5871 '') as_dir=./ ;;
5872 */) ;;
5873 *) as_dir=$as_dir/ ;;
5874 esac
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_STRIP="strip"
5878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881 done
5882 done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5888 if test -n "$ac_ct_STRIP"; then
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5890 printf "%s\n" "$ac_ct_STRIP" >&6; }
5891 else
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 printf "%s\n" "no" >&6; }
5894 fi
5895
5896 if test "x$ac_ct_STRIP" = x; then
5897 STRIP=":"
5898 else
5899 case $cross_compiling:$ac_tool_warned in
5900 yes:)
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903 ac_tool_warned=yes ;;
5904 esac
5905 STRIP=$ac_ct_STRIP
5906 fi
5907 else
5908 STRIP="$ac_cv_prog_STRIP"
5909 fi
5910
5911 test -z "$STRIP" && STRIP=:
5912
5913
5914
5915
5916
5917
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 printf %s "checking for $ac_word... " >&6; }
5923 if test ${ac_cv_prog_RANLIB+y}
5924 then :
5925 printf %s "(cached) " >&6
5926 else $as_nop
5927 if test -n "$RANLIB"; then
5928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 case $as_dir in #(((
5935 '') as_dir=./ ;;
5936 */) ;;
5937 *) as_dir=$as_dir/ ;;
5938 esac
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 RANLIB=$ac_cv_prog_RANLIB
5952 if test -n "$RANLIB"; then
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5954 printf "%s\n" "$RANLIB" >&6; }
5955 else
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 printf "%s\n" "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_RANLIB"; then
5963 ac_ct_RANLIB=$RANLIB
5964 # Extract the first word of "ranlib", so it can be a program name with args.
5965 set dummy ranlib; ac_word=$2
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 printf %s "checking for $ac_word... " >&6; }
5968 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5969 then :
5970 printf %s "(cached) " >&6
5971 else $as_nop
5972 if test -n "$ac_ct_RANLIB"; then
5973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 case $as_dir in #(((
5980 '') as_dir=./ ;;
5981 */) ;;
5982 *) as_dir=$as_dir/ ;;
5983 esac
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_ac_ct_RANLIB="ranlib"
5987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997 if test -n "$ac_ct_RANLIB"; then
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5999 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6000 else
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 printf "%s\n" "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_RANLIB" = x; then
6006 RANLIB=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 RANLIB=$ac_ct_RANLIB
6015 fi
6016 else
6017 RANLIB="$ac_cv_prog_RANLIB"
6018 fi
6019
6020 test -z "$RANLIB" && RANLIB=:
6021
6022
6023
6024
6025
6026
6027 # Determine commands to create old-style static archives.
6028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6029 old_postinstall_cmds='chmod 644 $oldlib'
6030 old_postuninstall_cmds=
6031
6032 if test -n "$RANLIB"; then
6033 case $host_os in
6034 bitrig* | openbsd*)
6035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6036 ;;
6037 *)
6038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6039 ;;
6040 esac
6041 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6042 fi
6043
6044 case $host_os in
6045 darwin*)
6046 lock_old_archive_extraction=yes ;;
6047 *)
6048 lock_old_archive_extraction=no ;;
6049 esac
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 for ac_prog in gawk mawk nawk awk
6072 do
6073 # Extract the first word of "$ac_prog", so it can be a program name with args.
6074 set dummy $ac_prog; ac_word=$2
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 printf %s "checking for $ac_word... " >&6; }
6077 if test ${ac_cv_prog_AWK+y}
6078 then :
6079 printf %s "(cached) " >&6
6080 else $as_nop
6081 if test -n "$AWK"; then
6082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 case $as_dir in #(((
6089 '') as_dir=./ ;;
6090 */) ;;
6091 *) as_dir=$as_dir/ ;;
6092 esac
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_AWK="$ac_prog"
6096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 AWK=$ac_cv_prog_AWK
6106 if test -n "$AWK"; then
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6108 printf "%s\n" "$AWK" >&6; }
6109 else
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 printf "%s\n" "no" >&6; }
6112 fi
6113
6114
6115 test -n "$AWK" && break
6116 done
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 # If no C compiler was specified, use CC.
6137 LTCC=${LTCC-"$CC"}
6138
6139 # If no C compiler flags were specified, use CFLAGS.
6140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6141
6142 # Allow CC to be a program name with arguments.
6143 compiler=$CC
6144
6145
6146 # Check for command to grab the raw symbol name followed by C symbol from nm.
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6148 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6149 if test ${lt_cv_sys_global_symbol_pipe+y}
6150 then :
6151 printf %s "(cached) " >&6
6152 else $as_nop
6153
6154 # These are sane defaults that work on at least a few old systems.
6155 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6156
6157 # Character class describing NM global symbol codes.
6158 symcode='[BCDEGRST]'
6159
6160 # Regexp to match symbols that can be accessed directly from C.
6161 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6162
6163 # Define system-specific variables.
6164 case $host_os in
6165 aix*)
6166 symcode='[BCDT]'
6167 ;;
6168 cygwin* | mingw* | pw32* | cegcc*)
6169 symcode='[ABCDGISTW]'
6170 ;;
6171 hpux*)
6172 if test ia64 = "$host_cpu"; then
6173 symcode='[ABCDEGRST]'
6174 fi
6175 ;;
6176 irix* | nonstopux*)
6177 symcode='[BCDEGRST]'
6178 ;;
6179 osf*)
6180 symcode='[BCDEGQRST]'
6181 ;;
6182 solaris*)
6183 symcode='[BDRT]'
6184 ;;
6185 sco3.2v5*)
6186 symcode='[DT]'
6187 ;;
6188 sysv4.2uw2*)
6189 symcode='[DT]'
6190 ;;
6191 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6192 symcode='[ABDT]'
6193 ;;
6194 sysv4)
6195 symcode='[DFNSTU]'
6196 ;;
6197 esac
6198
6199 # If we're using GNU nm, then use its standard symbol codes.
6200 case `$NM -V 2>&1` in
6201 *GNU* | *'with BFD'*)
6202 symcode='[ABCDGIRSTW]' ;;
6203 esac
6204
6205 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6206 # Gets list of data symbols to import.
6207 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6208 # Adjust the below global symbol transforms to fixup imported variables.
6209 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6210 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6211 lt_c_name_lib_hook="\
6212 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6213 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6214 else
6215 # Disable hooks by default.
6216 lt_cv_sys_global_symbol_to_import=
6217 lt_cdecl_hook=
6218 lt_c_name_hook=
6219 lt_c_name_lib_hook=
6220 fi
6221
6222 # Transform an extracted symbol line into a proper C declaration.
6223 # Some systems (esp. on ia64) link data and code symbols differently,
6224 # so use this general approach.
6225 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6226 $lt_cdecl_hook\
6227 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6228 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6229
6230 # Transform an extracted symbol line into symbol name and symbol address
6231 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6232 $lt_c_name_hook\
6233 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6234 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6235
6236 # Transform an extracted symbol line into symbol name with lib prefix and
6237 # symbol address.
6238 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6239 $lt_c_name_lib_hook\
6240 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6241 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6242 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6243
6244 # Handle CRLF in mingw tool chain
6245 opt_cr=
6246 case $build_os in
6247 mingw*)
6248 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6249 ;;
6250 esac
6251
6252 # Try without a prefix underscore, then with it.
6253 for ac_symprfx in "" "_"; do
6254
6255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6256 symxfrm="\\1 $ac_symprfx\\2 \\2"
6257
6258 # Write the raw and C identifiers.
6259 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6260 # Fake it for dumpbin and say T for any non-static function,
6261 # D for any global variable and I for any imported variable.
6262 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6263 # which start with @ or ?.
6264 lt_cv_sys_global_symbol_pipe="$AWK '"\
6265 " {last_section=section; section=\$ 3};"\
6266 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6267 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6268 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6269 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6270 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6271 " \$ 0!~/External *\|/{next};"\
6272 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6273 " {if(hide[section]) next};"\
6274 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6275 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6276 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6277 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6278 " ' prfx=^$ac_symprfx"
6279 else
6280 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6281 fi
6282 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6283
6284 # Check to see that the pipe works correctly.
6285 pipe_works=no
6286
6287 rm -f conftest*
6288 cat > conftest.$ac_ext <<_LT_EOF
6289 #ifdef __cplusplus
6290 extern "C" {
6291 #endif
6292 char nm_test_var;
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6295 #ifdef __cplusplus
6296 }
6297 #endif
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6299 _LT_EOF
6300
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 # Now try to grab the symbols.
6307 nlist=conftest.nm
6308 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6309 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6310 # Try sorting and uniquifying the output.
6311 if sort "$nlist" | uniq > "$nlist"T; then
6312 mv -f "$nlist"T "$nlist"
6313 else
6314 rm -f "$nlist"T
6315 fi
6316
6317 # Make sure that we snagged all the symbols we need.
6318 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6319 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6320 cat <<_LT_EOF > conftest.$ac_ext
6321 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6322 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6323 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6324 relocations are performed -- see ld's documentation on pseudo-relocs. */
6325 # define LT_DLSYM_CONST
6326 #elif defined __osf__
6327 /* This system does not cope well with relocations in const data. */
6328 # define LT_DLSYM_CONST
6329 #else
6330 # define LT_DLSYM_CONST const
6331 #endif
6332
6333 #ifdef __cplusplus
6334 extern "C" {
6335 #endif
6336
6337 _LT_EOF
6338 # Now generate the symbol file.
6339 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6340
6341 cat <<_LT_EOF >> conftest.$ac_ext
6342
6343 /* The mapping between symbol names and symbols. */
6344 LT_DLSYM_CONST struct {
6345 const char *name;
6346 void *address;
6347 }
6348 lt__PROGRAM__LTX_preloaded_symbols[] =
6349 {
6350 { "@PROGRAM@", (void *) 0 },
6351 _LT_EOF
6352 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6353 cat <<\_LT_EOF >> conftest.$ac_ext
6354 {0, (void *) 0}
6355 };
6356
6357 /* This works around a problem in FreeBSD linker */
6358 #ifdef FREEBSD_WORKAROUND
6359 static const void *lt_preloaded_setup() {
6360 return lt__PROGRAM__LTX_preloaded_symbols;
6361 }
6362 #endif
6363
6364 #ifdef __cplusplus
6365 }
6366 #endif
6367 _LT_EOF
6368 # Now try linking the two files.
6369 mv conftest.$ac_objext conftstm.$ac_objext
6370 lt_globsym_save_LIBS=$LIBS
6371 lt_globsym_save_CFLAGS=$CFLAGS
6372 LIBS=conftstm.$ac_objext
6373 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6375 (eval $ac_link) 2>&5
6376 ac_status=$?
6377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6379 pipe_works=yes
6380 fi
6381 LIBS=$lt_globsym_save_LIBS
6382 CFLAGS=$lt_globsym_save_CFLAGS
6383 else
6384 echo "cannot find nm_test_func in $nlist" >&5
6385 fi
6386 else
6387 echo "cannot find nm_test_var in $nlist" >&5
6388 fi
6389 else
6390 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6391 fi
6392 else
6393 echo "$progname: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 fi
6396 rm -rf conftest* conftst*
6397
6398 # Do not use the global_symbol_pipe unless it works.
6399 if test yes = "$pipe_works"; then
6400 break
6401 else
6402 lt_cv_sys_global_symbol_pipe=
6403 fi
6404 done
6405
6406 fi
6407
6408 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6409 lt_cv_sys_global_symbol_to_cdecl=
6410 fi
6411 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6413 printf "%s\n" "failed" >&6; }
6414 else
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6416 printf "%s\n" "ok" >&6; }
6417 fi
6418
6419 # Response file support.
6420 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6421 nm_file_list_spec='@'
6422 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6423 nm_file_list_spec='@'
6424 fi
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6463 printf %s "checking for sysroot... " >&6; }
6464
6465 # Check whether --with-sysroot was given.
6466 if test ${with_sysroot+y}
6467 then :
6468 withval=$with_sysroot;
6469 else $as_nop
6470 with_sysroot=no
6471 fi
6472
6473
6474 lt_sysroot=
6475 case $with_sysroot in #(
6476 yes)
6477 if test yes = "$GCC"; then
6478 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6479 fi
6480 ;; #(
6481 /*)
6482 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6483 ;; #(
6484 no|'')
6485 ;; #(
6486 *)
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6488 printf "%s\n" "$with_sysroot" >&6; }
6489 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6490 ;;
6491 esac
6492
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6494 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6495
6496
6497
6498
6499
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6501 printf %s "checking for a working dd... " >&6; }
6502 if test ${ac_cv_path_lt_DD+y}
6503 then :
6504 printf %s "(cached) " >&6
6505 else $as_nop
6506 printf 0123456789abcdef0123456789abcdef >conftest.i
6507 cat conftest.i conftest.i >conftest2.i
6508 : ${lt_DD:=$DD}
6509 if test -z "$lt_DD"; then
6510 ac_path_lt_DD_found=false
6511 # Loop through the user's path and test for each of PROGNAME-LIST
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 case $as_dir in #(((
6517 '') as_dir=./ ;;
6518 */) ;;
6519 *) as_dir=$as_dir/ ;;
6520 esac
6521 for ac_prog in dd
6522 do
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6525 as_fn_executable_p "$ac_path_lt_DD" || continue
6526 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6527 cmp -s conftest.i conftest.out \
6528 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6529 fi
6530 $ac_path_lt_DD_found && break 3
6531 done
6532 done
6533 done
6534 IFS=$as_save_IFS
6535 if test -z "$ac_cv_path_lt_DD"; then
6536 :
6537 fi
6538 else
6539 ac_cv_path_lt_DD=$lt_DD
6540 fi
6541
6542 rm -f conftest.i conftest2.i conftest.out
6543 fi
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6545 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6546
6547
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6549 printf %s "checking how to truncate binary pipes... " >&6; }
6550 if test ${lt_cv_truncate_bin+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else $as_nop
6554 printf 0123456789abcdef0123456789abcdef >conftest.i
6555 cat conftest.i conftest.i >conftest2.i
6556 lt_cv_truncate_bin=
6557 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6558 cmp -s conftest.i conftest.out \
6559 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6560 fi
6561 rm -f conftest.i conftest2.i conftest.out
6562 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6563 fi
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6565 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6566
6567
6568
6569
6570
6571
6572
6573 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6574 func_cc_basename ()
6575 {
6576 for cc_temp in $*""; do
6577 case $cc_temp in
6578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6580 \-*) ;;
6581 *) break;;
6582 esac
6583 done
6584 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6585 }
6586
6587 # Check whether --enable-libtool-lock was given.
6588 if test ${enable_libtool_lock+y}
6589 then :
6590 enableval=$enable_libtool_lock;
6591 fi
6592
6593 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6594
6595 # Some flags need to be propagated to the compiler or linker for good
6596 # libtool support.
6597 case $host in
6598 ia64-*-hpux*)
6599 # Find out what ABI is being produced by ac_compile, and set mode
6600 # options accordingly.
6601 echo 'int i;' > conftest.$ac_ext
6602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603 (eval $ac_compile) 2>&5
6604 ac_status=$?
6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; }; then
6607 case `$FILECMD conftest.$ac_objext` in
6608 *ELF-32*)
6609 HPUX_IA64_MODE=32
6610 ;;
6611 *ELF-64*)
6612 HPUX_IA64_MODE=64
6613 ;;
6614 esac
6615 fi
6616 rm -rf conftest*
6617 ;;
6618 *-*-irix6*)
6619 # Find out what ABI is being produced by ac_compile, and set linker
6620 # options accordingly.
6621 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 if test yes = "$lt_cv_prog_gnu_ld"; then
6628 case `$FILECMD conftest.$ac_objext` in
6629 *32-bit*)
6630 LD="${LD-ld} -melf32bsmip"
6631 ;;
6632 *N32*)
6633 LD="${LD-ld} -melf32bmipn32"
6634 ;;
6635 *64-bit*)
6636 LD="${LD-ld} -melf64bmip"
6637 ;;
6638 esac
6639 else
6640 case `$FILECMD conftest.$ac_objext` in
6641 *32-bit*)
6642 LD="${LD-ld} -32"
6643 ;;
6644 *N32*)
6645 LD="${LD-ld} -n32"
6646 ;;
6647 *64-bit*)
6648 LD="${LD-ld} -64"
6649 ;;
6650 esac
6651 fi
6652 fi
6653 rm -rf conftest*
6654 ;;
6655
6656 mips64*-*linux*)
6657 # Find out what ABI is being produced by ac_compile, and set linker
6658 # options accordingly.
6659 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664 test $ac_status = 0; }; then
6665 emul=elf
6666 case `$FILECMD conftest.$ac_objext` in
6667 *32-bit*)
6668 emul="${emul}32"
6669 ;;
6670 *64-bit*)
6671 emul="${emul}64"
6672 ;;
6673 esac
6674 case `$FILECMD conftest.$ac_objext` in
6675 *MSB*)
6676 emul="${emul}btsmip"
6677 ;;
6678 *LSB*)
6679 emul="${emul}ltsmip"
6680 ;;
6681 esac
6682 case `$FILECMD conftest.$ac_objext` in
6683 *N32*)
6684 emul="${emul}n32"
6685 ;;
6686 esac
6687 LD="${LD-ld} -m $emul"
6688 fi
6689 rm -rf conftest*
6690 ;;
6691
6692 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6693 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6694 # Find out what ABI is being produced by ac_compile, and set linker
6695 # options accordingly. Note that the listed cases only cover the
6696 # situations where additional linker options are needed (such as when
6697 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6698 # vice versa); the common cases where no linker options are needed do
6699 # not appear in the list.
6700 echo 'int i;' > conftest.$ac_ext
6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6703 ac_status=$?
6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 case `$FILECMD conftest.o` in
6707 *32-bit*)
6708 case $host in
6709 x86_64-*kfreebsd*-gnu)
6710 LD="${LD-ld} -m elf_i386_fbsd"
6711 ;;
6712 x86_64-*linux*)
6713 case `$FILECMD conftest.o` in
6714 *x86-64*)
6715 LD="${LD-ld} -m elf32_x86_64"
6716 ;;
6717 *)
6718 LD="${LD-ld} -m elf_i386"
6719 ;;
6720 esac
6721 ;;
6722 powerpc64le-*linux*)
6723 LD="${LD-ld} -m elf32lppclinux"
6724 ;;
6725 powerpc64-*linux*)
6726 LD="${LD-ld} -m elf32ppclinux"
6727 ;;
6728 s390x-*linux*)
6729 LD="${LD-ld} -m elf_s390"
6730 ;;
6731 sparc64-*linux*)
6732 LD="${LD-ld} -m elf32_sparc"
6733 ;;
6734 esac
6735 ;;
6736 *64-bit*)
6737 case $host in
6738 x86_64-*kfreebsd*-gnu)
6739 LD="${LD-ld} -m elf_x86_64_fbsd"
6740 ;;
6741 x86_64-*linux*)
6742 LD="${LD-ld} -m elf_x86_64"
6743 ;;
6744 powerpcle-*linux*)
6745 LD="${LD-ld} -m elf64lppc"
6746 ;;
6747 powerpc-*linux*)
6748 LD="${LD-ld} -m elf64ppc"
6749 ;;
6750 s390*-*linux*|s390*-*tpf*)
6751 LD="${LD-ld} -m elf64_s390"
6752 ;;
6753 sparc*-*linux*)
6754 LD="${LD-ld} -m elf64_sparc"
6755 ;;
6756 esac
6757 ;;
6758 esac
6759 fi
6760 rm -rf conftest*
6761 ;;
6762
6763 *-*-sco3.2v5*)
6764 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6765 SAVE_CFLAGS=$CFLAGS
6766 CFLAGS="$CFLAGS -belf"
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6768 printf %s "checking whether the C compiler needs -belf... " >&6; }
6769 if test ${lt_cv_cc_needs_belf+y}
6770 then :
6771 printf %s "(cached) " >&6
6772 else $as_nop
6773 ac_ext=c
6774 ac_cpp='$CPP $CPPFLAGS'
6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 int
6783 main (void)
6784 {
6785
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"
6791 then :
6792 lt_cv_cc_needs_belf=yes
6793 else $as_nop
6794 lt_cv_cc_needs_belf=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6797 conftest$ac_exeext conftest.$ac_ext
6798 ac_ext=c
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804 fi
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6806 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6807 if test yes != "$lt_cv_cc_needs_belf"; then
6808 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6809 CFLAGS=$SAVE_CFLAGS
6810 fi
6811 ;;
6812 *-*solaris*)
6813 # Find out what ABI is being produced by ac_compile, and set linker
6814 # options accordingly.
6815 echo 'int i;' > conftest.$ac_ext
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6818 ac_status=$?
6819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 case `$FILECMD conftest.o` in
6822 *64-bit*)
6823 case $lt_cv_prog_gnu_ld in
6824 yes*)
6825 case $host in
6826 i?86-*-solaris*|x86_64-*-solaris*)
6827 LD="${LD-ld} -m elf_x86_64"
6828 ;;
6829 sparc*-*-solaris*)
6830 LD="${LD-ld} -m elf64_sparc"
6831 ;;
6832 esac
6833 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6834 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6835 LD=${LD-ld}_sol2
6836 fi
6837 ;;
6838 *)
6839 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6840 LD="${LD-ld} -64"
6841 fi
6842 ;;
6843 esac
6844 ;;
6845 esac
6846 fi
6847 rm -rf conftest*
6848 ;;
6849 esac
6850
6851 need_locks=$enable_libtool_lock
6852
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}mt; ac_word=$2
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 printf %s "checking for $ac_word... " >&6; }
6858 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6859 then :
6860 printf %s "(cached) " >&6
6861 else $as_nop
6862 if test -n "$MANIFEST_TOOL"; then
6863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 case $as_dir in #(((
6870 '') as_dir=./ ;;
6871 */) ;;
6872 *) as_dir=$as_dir/ ;;
6873 esac
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6887 if test -n "$MANIFEST_TOOL"; then
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6889 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6890 else
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 printf "%s\n" "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6898 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6899 # Extract the first word of "mt", so it can be a program name with args.
6900 set dummy mt; ac_word=$2
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 printf %s "checking for $ac_word... " >&6; }
6903 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6904 then :
6905 printf %s "(cached) " >&6
6906 else $as_nop
6907 if test -n "$ac_ct_MANIFEST_TOOL"; then
6908 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 case $as_dir in #(((
6915 '') as_dir=./ ;;
6916 */) ;;
6917 *) as_dir=$as_dir/ ;;
6918 esac
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6932 if test -n "$ac_ct_MANIFEST_TOOL"; then
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6934 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6935 else
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 printf "%s\n" "no" >&6; }
6938 fi
6939
6940 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6941 MANIFEST_TOOL=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6950 fi
6951 else
6952 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6953 fi
6954
6955 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6957 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6958 if test ${lt_cv_path_mainfest_tool+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else $as_nop
6962 lt_cv_path_mainfest_tool=no
6963 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6964 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6965 cat conftest.err >&5
6966 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6967 lt_cv_path_mainfest_tool=yes
6968 fi
6969 rm -f conftest*
6970 fi
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6972 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6973 if test yes != "$lt_cv_path_mainfest_tool"; then
6974 MANIFEST_TOOL=:
6975 fi
6976
6977
6978
6979
6980
6981
6982 case $host_os in
6983 rhapsody* | darwin*)
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 printf %s "checking for $ac_word... " >&6; }
6989 if test ${ac_cv_prog_DSYMUTIL+y}
6990 then :
6991 printf %s "(cached) " >&6
6992 else $as_nop
6993 if test -n "$DSYMUTIL"; then
6994 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999 IFS=$as_save_IFS
7000 case $as_dir in #(((
7001 '') as_dir=./ ;;
7002 */) ;;
7003 *) as_dir=$as_dir/ ;;
7004 esac
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7018 if test -n "$DSYMUTIL"; then
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7020 printf "%s\n" "$DSYMUTIL" >&6; }
7021 else
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 printf "%s\n" "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_DSYMUTIL"; then
7029 ac_ct_DSYMUTIL=$DSYMUTIL
7030 # Extract the first word of "dsymutil", so it can be a program name with args.
7031 set dummy dsymutil; ac_word=$2
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 printf %s "checking for $ac_word... " >&6; }
7034 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7035 then :
7036 printf %s "(cached) " >&6
7037 else $as_nop
7038 if test -n "$ac_ct_DSYMUTIL"; then
7039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 case $as_dir in #(((
7046 '') as_dir=./ ;;
7047 */) ;;
7048 *) as_dir=$as_dir/ ;;
7049 esac
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7063 if test -n "$ac_ct_DSYMUTIL"; then
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7065 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7066 else
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 printf "%s\n" "no" >&6; }
7069 fi
7070
7071 if test "x$ac_ct_DSYMUTIL" = x; then
7072 DSYMUTIL=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 DSYMUTIL=$ac_ct_DSYMUTIL
7081 fi
7082 else
7083 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7084 fi
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 printf %s "checking for $ac_word... " >&6; }
7091 if test ${ac_cv_prog_NMEDIT+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else $as_nop
7095 if test -n "$NMEDIT"; then
7096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 case $as_dir in #(((
7103 '') as_dir=./ ;;
7104 */) ;;
7105 *) as_dir=$as_dir/ ;;
7106 esac
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 NMEDIT=$ac_cv_prog_NMEDIT
7120 if test -n "$NMEDIT"; then
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7122 printf "%s\n" "$NMEDIT" >&6; }
7123 else
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 printf "%s\n" "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_NMEDIT"; then
7131 ac_ct_NMEDIT=$NMEDIT
7132 # Extract the first word of "nmedit", so it can be a program name with args.
7133 set dummy nmedit; ac_word=$2
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 printf %s "checking for $ac_word... " >&6; }
7136 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7137 then :
7138 printf %s "(cached) " >&6
7139 else $as_nop
7140 if test -n "$ac_ct_NMEDIT"; then
7141 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 case $as_dir in #(((
7148 '') as_dir=./ ;;
7149 */) ;;
7150 *) as_dir=$as_dir/ ;;
7151 esac
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165 if test -n "$ac_ct_NMEDIT"; then
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7167 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7168 else
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 printf "%s\n" "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_NMEDIT" = x; then
7174 NMEDIT=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 NMEDIT=$ac_ct_NMEDIT
7183 fi
7184 else
7185 NMEDIT="$ac_cv_prog_NMEDIT"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 printf %s "checking for $ac_word... " >&6; }
7193 if test ${ac_cv_prog_LIPO+y}
7194 then :
7195 printf %s "(cached) " >&6
7196 else $as_nop
7197 if test -n "$LIPO"; then
7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 case $as_dir in #(((
7205 '') as_dir=./ ;;
7206 */) ;;
7207 *) as_dir=$as_dir/ ;;
7208 esac
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 LIPO=$ac_cv_prog_LIPO
7222 if test -n "$LIPO"; then
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7224 printf "%s\n" "$LIPO" >&6; }
7225 else
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 printf "%s\n" "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_LIPO"; then
7233 ac_ct_LIPO=$LIPO
7234 # Extract the first word of "lipo", so it can be a program name with args.
7235 set dummy lipo; ac_word=$2
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 printf %s "checking for $ac_word... " >&6; }
7238 if test ${ac_cv_prog_ac_ct_LIPO+y}
7239 then :
7240 printf %s "(cached) " >&6
7241 else $as_nop
7242 if test -n "$ac_ct_LIPO"; then
7243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 case $as_dir in #(((
7250 '') as_dir=./ ;;
7251 */) ;;
7252 *) as_dir=$as_dir/ ;;
7253 esac
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_ac_ct_LIPO="lipo"
7257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7267 if test -n "$ac_ct_LIPO"; then
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7269 printf "%s\n" "$ac_ct_LIPO" >&6; }
7270 else
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 printf "%s\n" "no" >&6; }
7273 fi
7274
7275 if test "x$ac_ct_LIPO" = x; then
7276 LIPO=":"
7277 else
7278 case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284 LIPO=$ac_ct_LIPO
7285 fi
7286 else
7287 LIPO="$ac_cv_prog_LIPO"
7288 fi
7289
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}otool; ac_word=$2
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 printf %s "checking for $ac_word... " >&6; }
7295 if test ${ac_cv_prog_OTOOL+y}
7296 then :
7297 printf %s "(cached) " >&6
7298 else $as_nop
7299 if test -n "$OTOOL"; then
7300 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305 IFS=$as_save_IFS
7306 case $as_dir in #(((
7307 '') as_dir=./ ;;
7308 */) ;;
7309 *) as_dir=$as_dir/ ;;
7310 esac
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 OTOOL=$ac_cv_prog_OTOOL
7324 if test -n "$OTOOL"; then
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7326 printf "%s\n" "$OTOOL" >&6; }
7327 else
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 printf "%s\n" "no" >&6; }
7330 fi
7331
7332
7333 fi
7334 if test -z "$ac_cv_prog_OTOOL"; then
7335 ac_ct_OTOOL=$OTOOL
7336 # Extract the first word of "otool", so it can be a program name with args.
7337 set dummy otool; ac_word=$2
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 printf %s "checking for $ac_word... " >&6; }
7340 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7341 then :
7342 printf %s "(cached) " >&6
7343 else $as_nop
7344 if test -n "$ac_ct_OTOOL"; then
7345 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 case $as_dir in #(((
7352 '') as_dir=./ ;;
7353 */) ;;
7354 *) as_dir=$as_dir/ ;;
7355 esac
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_ac_ct_OTOOL="otool"
7359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7369 if test -n "$ac_ct_OTOOL"; then
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7371 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7372 else
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 printf "%s\n" "no" >&6; }
7375 fi
7376
7377 if test "x$ac_ct_OTOOL" = x; then
7378 OTOOL=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386 OTOOL=$ac_ct_OTOOL
7387 fi
7388 else
7389 OTOOL="$ac_cv_prog_OTOOL"
7390 fi
7391
7392 if test -n "$ac_tool_prefix"; then
7393 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 printf %s "checking for $ac_word... " >&6; }
7397 if test ${ac_cv_prog_OTOOL64+y}
7398 then :
7399 printf %s "(cached) " >&6
7400 else $as_nop
7401 if test -n "$OTOOL64"; then
7402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 case $as_dir in #(((
7409 '') as_dir=./ ;;
7410 */) ;;
7411 *) as_dir=$as_dir/ ;;
7412 esac
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 OTOOL64=$ac_cv_prog_OTOOL64
7426 if test -n "$OTOOL64"; then
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7428 printf "%s\n" "$OTOOL64" >&6; }
7429 else
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 printf "%s\n" "no" >&6; }
7432 fi
7433
7434
7435 fi
7436 if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64", so it can be a program name with args.
7439 set dummy otool64; ac_word=$2
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 printf %s "checking for $ac_word... " >&6; }
7442 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
7446 if test -n "$ac_ct_OTOOL64"; then
7447 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452 IFS=$as_save_IFS
7453 case $as_dir in #(((
7454 '') as_dir=./ ;;
7455 */) ;;
7456 *) as_dir=$as_dir/ ;;
7457 esac
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_OTOOL64="otool64"
7461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7471 if test -n "$ac_ct_OTOOL64"; then
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7473 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7474 else
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 printf "%s\n" "no" >&6; }
7477 fi
7478
7479 if test "x$ac_ct_OTOOL64" = x; then
7480 OTOOL64=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488 OTOOL64=$ac_ct_OTOOL64
7489 fi
7490 else
7491 OTOOL64="$ac_cv_prog_OTOOL64"
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7521 printf %s "checking for -single_module linker flag... " >&6; }
7522 if test ${lt_cv_apple_cc_single_mod+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else $as_nop
7526 lt_cv_apple_cc_single_mod=no
7527 if test -z "$LT_MULTI_MODULE"; then
7528 # By default we will add the -single_module flag. You can override
7529 # by either setting the environment variable LT_MULTI_MODULE
7530 # non-empty at configure time, or by adding -multi_module to the
7531 # link flags.
7532 rm -rf libconftest.dylib*
7533 echo "int foo(void){return 1;}" > conftest.c
7534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c" >&5
7536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7537 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7538 _lt_result=$?
7539 # If there is a non-empty error log, and "single_module"
7540 # appears in it, assume the flag caused a linker warning
7541 if test -s conftest.err && $GREP single_module conftest.err; then
7542 cat conftest.err >&5
7543 # Otherwise, if the output was created with a 0 exit code from
7544 # the compiler, it worked.
7545 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7546 lt_cv_apple_cc_single_mod=yes
7547 else
7548 cat conftest.err >&5
7549 fi
7550 rm -rf libconftest.dylib*
7551 rm -f conftest.*
7552 fi
7553 fi
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7555 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7556
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7558 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7559 if test ${lt_cv_ld_exported_symbols_list+y}
7560 then :
7561 printf %s "(cached) " >&6
7562 else $as_nop
7563 lt_cv_ld_exported_symbols_list=no
7564 save_LDFLAGS=$LDFLAGS
7565 echo "_main" > conftest.sym
7566 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569
7570 int
7571 main (void)
7572 {
7573
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"
7579 then :
7580 lt_cv_ld_exported_symbols_list=yes
7581 else $as_nop
7582 lt_cv_ld_exported_symbols_list=no
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7585 conftest$ac_exeext conftest.$ac_ext
7586 LDFLAGS=$save_LDFLAGS
7587
7588 fi
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7590 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7591
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7593 printf %s "checking for -force_load linker flag... " >&6; }
7594 if test ${lt_cv_ld_force_load+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 lt_cv_ld_force_load=no
7599 cat > conftest.c << _LT_EOF
7600 int forced_loaded() { return 2;}
7601 _LT_EOF
7602 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7603 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7604 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7605 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7606 echo "$RANLIB libconftest.a" >&5
7607 $RANLIB libconftest.a 2>&5
7608 cat > conftest.c << _LT_EOF
7609 int main() { return 0;}
7610 _LT_EOF
7611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7613 _lt_result=$?
7614 if test -s conftest.err && $GREP force_load conftest.err; then
7615 cat conftest.err >&5
7616 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7617 lt_cv_ld_force_load=yes
7618 else
7619 cat conftest.err >&5
7620 fi
7621 rm -f conftest.err libconftest.a conftest conftest.c
7622 rm -rf conftest.dSYM
7623
7624 fi
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7626 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7627 case $host_os in
7628 rhapsody* | darwin1.[012])
7629 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7630 darwin1.*)
7631 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7632 darwin*)
7633 case $MACOSX_DEPLOYMENT_TARGET,$host in
7634 10.[012],*|,*powerpc*-darwin[5-8]*)
7635 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7636 *)
7637 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7638 esac
7639 ;;
7640 esac
7641 if test yes = "$lt_cv_apple_cc_single_mod"; then
7642 _lt_dar_single_mod='$single_module'
7643 fi
7644 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7645 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7646 else
7647 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7648 fi
7649 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7650 _lt_dsymutil='~$DSYMUTIL $lib || :'
7651 else
7652 _lt_dsymutil=
7653 fi
7654 ;;
7655 esac
7656
7657 # func_munge_path_list VARIABLE PATH
7658 # -----------------------------------
7659 # VARIABLE is name of variable containing _space_ separated list of
7660 # directories to be munged by the contents of PATH, which is string
7661 # having a format:
7662 # "DIR[:DIR]:"
7663 # string "DIR[ DIR]" will be prepended to VARIABLE
7664 # ":DIR[:DIR]"
7665 # string "DIR[ DIR]" will be appended to VARIABLE
7666 # "DIRP[:DIRP]::[DIRA:]DIRA"
7667 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7668 # "DIRA[ DIRA]" will be appended to VARIABLE
7669 # "DIR[:DIR]"
7670 # VARIABLE will be replaced by "DIR[ DIR]"
7671 func_munge_path_list ()
7672 {
7673 case x$2 in
7674 x)
7675 ;;
7676 *:)
7677 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7678 ;;
7679 x:*)
7680 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7681 ;;
7682 *::*)
7683 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7684 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7685 ;;
7686 *)
7687 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7688 ;;
7689 esac
7690 }
7691
7692 ac_header= ac_cache=
7693 for ac_item in $ac_header_c_list
7694 do
7695 if test $ac_cache; then
7696 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7697 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7698 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7699 fi
7700 ac_header= ac_cache=
7701 elif test $ac_header; then
7702 ac_cache=$ac_item
7703 else
7704 ac_header=$ac_item
7705 fi
7706 done
7707
7708
7709
7710
7711
7712
7713
7714
7715 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7716 then :
7717
7718 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7719
7720 fi
7721 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7722 "
7723 if test "x$ac_cv_header_dlfcn_h" = xyes
7724 then :
7725 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7726
7727 fi
7728
7729
7730
7731
7732
7733 # Set options
7734
7735
7736
7737 enable_dlopen=no
7738
7739
7740 enable_win32_dll=no
7741
7742
7743 # Check whether --enable-shared was given.
7744 if test ${enable_shared+y}
7745 then :
7746 enableval=$enable_shared; p=${PACKAGE-default}
7747 case $enableval in
7748 yes) enable_shared=yes ;;
7749 no) enable_shared=no ;;
7750 *)
7751 enable_shared=no
7752 # Look at the argument we got. We use all the common list separators.
7753 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7754 for pkg in $enableval; do
7755 IFS=$lt_save_ifs
7756 if test "X$pkg" = "X$p"; then
7757 enable_shared=yes
7758 fi
7759 done
7760 IFS=$lt_save_ifs
7761 ;;
7762 esac
7763 else $as_nop
7764 enable_shared=yes
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775 # Check whether --enable-static was given.
7776 if test ${enable_static+y}
7777 then :
7778 enableval=$enable_static; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_static=yes ;;
7781 no) enable_static=no ;;
7782 *)
7783 enable_static=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7786 for pkg in $enableval; do
7787 IFS=$lt_save_ifs
7788 if test "X$pkg" = "X$p"; then
7789 enable_static=yes
7790 fi
7791 done
7792 IFS=$lt_save_ifs
7793 ;;
7794 esac
7795 else $as_nop
7796 enable_static=yes
7797 fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 # Check whether --with-pic was given.
7809 if test ${with_pic+y}
7810 then :
7811 withval=$with_pic; lt_p=${PACKAGE-default}
7812 case $withval in
7813 yes|no) pic_mode=$withval ;;
7814 *)
7815 pic_mode=default
7816 # Look at the argument we got. We use all the common list separators.
7817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7818 for lt_pkg in $withval; do
7819 IFS=$lt_save_ifs
7820 if test "X$lt_pkg" = "X$lt_p"; then
7821 pic_mode=yes
7822 fi
7823 done
7824 IFS=$lt_save_ifs
7825 ;;
7826 esac
7827 else $as_nop
7828 pic_mode=default
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838 # Check whether --enable-fast-install was given.
7839 if test ${enable_fast_install+y}
7840 then :
7841 enableval=$enable_fast_install; p=${PACKAGE-default}
7842 case $enableval in
7843 yes) enable_fast_install=yes ;;
7844 no) enable_fast_install=no ;;
7845 *)
7846 enable_fast_install=no
7847 # Look at the argument we got. We use all the common list separators.
7848 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7849 for pkg in $enableval; do
7850 IFS=$lt_save_ifs
7851 if test "X$pkg" = "X$p"; then
7852 enable_fast_install=yes
7853 fi
7854 done
7855 IFS=$lt_save_ifs
7856 ;;
7857 esac
7858 else $as_nop
7859 enable_fast_install=yes
7860 fi
7861
7862
7863
7864
7865
7866
7867
7868
7869 shared_archive_member_spec=
7870 case $host,$enable_shared in
7871 power*-*-aix[5-9]*,yes)
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7873 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7874
7875 # Check whether --with-aix-soname was given.
7876 if test ${with_aix_soname+y}
7877 then :
7878 withval=$with_aix_soname; case $withval in
7879 aix|svr4|both)
7880 ;;
7881 *)
7882 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7883 ;;
7884 esac
7885 lt_cv_with_aix_soname=$with_aix_soname
7886 else $as_nop
7887 if test ${lt_cv_with_aix_soname+y}
7888 then :
7889 printf %s "(cached) " >&6
7890 else $as_nop
7891 lt_cv_with_aix_soname=aix
7892 fi
7893
7894 with_aix_soname=$lt_cv_with_aix_soname
7895 fi
7896
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7898 printf "%s\n" "$with_aix_soname" >&6; }
7899 if test aix != "$with_aix_soname"; then
7900 # For the AIX way of multilib, we name the shared archive member
7901 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7902 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7903 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7904 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7905 if test 64 = "${OBJECT_MODE-32}"; then
7906 shared_archive_member_spec=shr_64
7907 else
7908 shared_archive_member_spec=shr
7909 fi
7910 fi
7911 ;;
7912 *)
7913 with_aix_soname=aix
7914 ;;
7915 esac
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 # This can be used to rebuild libtool when needed
7927 LIBTOOL_DEPS=$ltmain
7928
7929 # Always use our own libtool.
7930 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 test -z "$LN_S" && LN_S="ln -s"
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 if test -n "${ZSH_VERSION+set}"; then
7977 setopt NO_GLOB_SUBST
7978 fi
7979
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7981 printf %s "checking for objdir... " >&6; }
7982 if test ${lt_cv_objdir+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else $as_nop
7986 rm -f .libs 2>/dev/null
7987 mkdir .libs 2>/dev/null
7988 if test -d .libs; then
7989 lt_cv_objdir=.libs
7990 else
7991 # MS-DOS does not allow filenames that begin with a dot.
7992 lt_cv_objdir=_libs
7993 fi
7994 rmdir .libs 2>/dev/null
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7997 printf "%s\n" "$lt_cv_objdir" >&6; }
7998 objdir=$lt_cv_objdir
7999
8000
8001
8002
8003
8004 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8005
8006
8007
8008
8009 case $host_os in
8010 aix3*)
8011 # AIX sometimes has problems with the GCC collect2 program. For some
8012 # reason, if we set the COLLECT_NAMES environment variable, the problems
8013 # vanish in a puff of smoke.
8014 if test set != "${COLLECT_NAMES+set}"; then
8015 COLLECT_NAMES=
8016 export COLLECT_NAMES
8017 fi
8018 ;;
8019 esac
8020
8021 # Global variables:
8022 ofile=libtool
8023 can_build_shared=yes
8024
8025 # All known linkers require a '.a' archive for static linking (except MSVC and
8026 # ICC, which need '.lib').
8027 libext=a
8028
8029 with_gnu_ld=$lt_cv_prog_gnu_ld
8030
8031 old_CC=$CC
8032 old_CFLAGS=$CFLAGS
8033
8034 # Set sane defaults for various variables
8035 test -z "$CC" && CC=cc
8036 test -z "$LTCC" && LTCC=$CC
8037 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8038 test -z "$LD" && LD=ld
8039 test -z "$ac_objext" && ac_objext=o
8040
8041 func_cc_basename $compiler
8042 cc_basename=$func_cc_basename_result
8043
8044
8045 # Only perform the check for file, if the check method requires it
8046 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8047 case $deplibs_check_method in
8048 file_magic*)
8049 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8051 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8052 if test ${lt_cv_path_MAGIC_CMD+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else $as_nop
8056 case $MAGIC_CMD in
8057 [\\/*] | ?:[\\/]*)
8058 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8059 ;;
8060 *)
8061 lt_save_MAGIC_CMD=$MAGIC_CMD
8062 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8064 for ac_dir in $ac_dummy; do
8065 IFS=$lt_save_ifs
8066 test -z "$ac_dir" && ac_dir=.
8067 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8068 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8069 if test -n "$file_magic_test_file"; then
8070 case $deplibs_check_method in
8071 "file_magic "*)
8072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8073 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 $EGREP "$file_magic_regex" > /dev/null; then
8076 :
8077 else
8078 cat <<_LT_EOF 1>&2
8079
8080 *** Warning: the command libtool uses to detect shared libraries,
8081 *** $file_magic_cmd, produces output that libtool cannot recognize.
8082 *** The result is that libtool may fail to recognize shared libraries
8083 *** as such. This will affect the creation of libtool libraries that
8084 *** depend on shared libraries, but programs linked with such libtool
8085 *** libraries will work regardless of this problem. Nevertheless, you
8086 *** may want to report the problem to your system manager and/or to
8087 *** [email protected]
8088
8089 _LT_EOF
8090 fi ;;
8091 esac
8092 fi
8093 break
8094 fi
8095 done
8096 IFS=$lt_save_ifs
8097 MAGIC_CMD=$lt_save_MAGIC_CMD
8098 ;;
8099 esac
8100 fi
8101
8102 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8103 if test -n "$MAGIC_CMD"; then
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8105 printf "%s\n" "$MAGIC_CMD" >&6; }
8106 else
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 printf "%s\n" "no" >&6; }
8109 fi
8110
8111
8112
8113
8114
8115 if test -z "$lt_cv_path_MAGIC_CMD"; then
8116 if test -n "$ac_tool_prefix"; then
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8118 printf %s "checking for file... " >&6; }
8119 if test ${lt_cv_path_MAGIC_CMD+y}
8120 then :
8121 printf %s "(cached) " >&6
8122 else $as_nop
8123 case $MAGIC_CMD in
8124 [\\/*] | ?:[\\/]*)
8125 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8126 ;;
8127 *)
8128 lt_save_MAGIC_CMD=$MAGIC_CMD
8129 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8131 for ac_dir in $ac_dummy; do
8132 IFS=$lt_save_ifs
8133 test -z "$ac_dir" && ac_dir=.
8134 if test -f "$ac_dir/file"; then
8135 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8136 if test -n "$file_magic_test_file"; then
8137 case $deplibs_check_method in
8138 "file_magic "*)
8139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8140 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8142 $EGREP "$file_magic_regex" > /dev/null; then
8143 :
8144 else
8145 cat <<_LT_EOF 1>&2
8146
8147 *** Warning: the command libtool uses to detect shared libraries,
8148 *** $file_magic_cmd, produces output that libtool cannot recognize.
8149 *** The result is that libtool may fail to recognize shared libraries
8150 *** as such. This will affect the creation of libtool libraries that
8151 *** depend on shared libraries, but programs linked with such libtool
8152 *** libraries will work regardless of this problem. Nevertheless, you
8153 *** may want to report the problem to your system manager and/or to
8154 *** [email protected]
8155
8156 _LT_EOF
8157 fi ;;
8158 esac
8159 fi
8160 break
8161 fi
8162 done
8163 IFS=$lt_save_ifs
8164 MAGIC_CMD=$lt_save_MAGIC_CMD
8165 ;;
8166 esac
8167 fi
8168
8169 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8170 if test -n "$MAGIC_CMD"; then
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8172 printf "%s\n" "$MAGIC_CMD" >&6; }
8173 else
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
8176 fi
8177
8178
8179 else
8180 MAGIC_CMD=:
8181 fi
8182 fi
8183
8184 fi
8185 ;;
8186 esac
8187
8188 # Use C for the default configuration in the libtool script
8189
8190 lt_save_CC=$CC
8191 ac_ext=c
8192 ac_cpp='$CPP $CPPFLAGS'
8193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
8197
8198 # Source file extension for C test sources.
8199 ac_ext=c
8200
8201 # Object file extension for compiled C test sources.
8202 objext=o
8203 objext=$objext
8204
8205 # Code to be used in simple compile tests
8206 lt_simple_compile_test_code="int some_variable = 0;"
8207
8208 # Code to be used in simple link tests
8209 lt_simple_link_test_code='int main(){return(0);}'
8210
8211
8212
8213
8214
8215
8216
8217 # If no C compiler was specified, use CC.
8218 LTCC=${LTCC-"$CC"}
8219
8220 # If no C compiler flags were specified, use CFLAGS.
8221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8222
8223 # Allow CC to be a program name with arguments.
8224 compiler=$CC
8225
8226 # Save the default compiler, since it gets overwritten when the other
8227 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8228 compiler_DEFAULT=$CC
8229
8230 # save warnings/boilerplate of simple test code
8231 ac_outfile=conftest.$ac_objext
8232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8234 _lt_compiler_boilerplate=`cat conftest.err`
8235 $RM conftest*
8236
8237 ac_outfile=conftest.$ac_objext
8238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8240 _lt_linker_boilerplate=`cat conftest.err`
8241 $RM -r conftest*
8242
8243
8244 ## CAVEAT EMPTOR:
8245 ## There is no encapsulation within the following macros, do not change
8246 ## the running order or otherwise move them around unless you know exactly
8247 ## what you are doing...
8248 if test -n "$compiler"; then
8249
8250 lt_prog_compiler_no_builtin_flag=
8251
8252 if test yes = "$GCC"; then
8253 case $cc_basename in
8254 nvcc*)
8255 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8256 *)
8257 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8258 esac
8259
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8261 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8262 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 lt_cv_prog_compiler_rtti_exceptions=no
8267 ac_outfile=conftest.$ac_objext
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8270 # Insert the option either (1) after the last *FLAGS variable, or
8271 # (2) before a word containing "conftest.", or (3) at the end.
8272 # Note that $ac_compile itself does not contain backslashes and begins
8273 # with a dollar sign (not a hyphen), so the echo should work correctly.
8274 # The option is referenced via a variable to avoid confusing sed.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>conftest.err)
8281 ac_status=$?
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s "$ac_outfile"; then
8285 # The compiler can only warn and ignore the option if not recognized
8286 # So say no if there are warnings other than the usual output.
8287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8290 lt_cv_prog_compiler_rtti_exceptions=yes
8291 fi
8292 fi
8293 $RM conftest*
8294
8295 fi
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8297 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8298
8299 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8301 else
8302 :
8303 fi
8304
8305 fi
8306
8307
8308
8309
8310
8311
8312 lt_prog_compiler_wl=
8313 lt_prog_compiler_pic=
8314 lt_prog_compiler_static=
8315
8316
8317 if test yes = "$GCC"; then
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_static='-static'
8320
8321 case $host_os in
8322 aix*)
8323 # All AIX code is PIC.
8324 if test ia64 = "$host_cpu"; then
8325 # AIX 5 now supports IA64 processor
8326 lt_prog_compiler_static='-Bstatic'
8327 fi
8328 lt_prog_compiler_pic='-fPIC'
8329 ;;
8330
8331 amigaos*)
8332 case $host_cpu in
8333 powerpc)
8334 # see comment about AmigaOS4 .so support
8335 lt_prog_compiler_pic='-fPIC'
8336 ;;
8337 m68k)
8338 # FIXME: we need at least 68020 code to build shared libraries, but
8339 # adding the '-m68020' flag to GCC prevents building anything better,
8340 # like '-m68040'.
8341 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8342 ;;
8343 esac
8344 ;;
8345
8346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8347 # PIC is the default for these OSes.
8348 ;;
8349
8350 mingw* | cygwin* | pw32* | os2* | cegcc*)
8351 # This hack is so that the source file can tell whether it is being
8352 # built for inclusion in a dll (and should export symbols for example).
8353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8354 # (--disable-auto-import) libraries
8355 lt_prog_compiler_pic='-DDLL_EXPORT'
8356 case $host_os in
8357 os2*)
8358 lt_prog_compiler_static='$wl-static'
8359 ;;
8360 esac
8361 ;;
8362
8363 darwin* | rhapsody*)
8364 # PIC is the default on this platform
8365 # Common symbols not allowed in MH_DYLIB files
8366 lt_prog_compiler_pic='-fno-common'
8367 ;;
8368
8369 haiku*)
8370 # PIC is the default for Haiku.
8371 # The "-static" flag exists, but is broken.
8372 lt_prog_compiler_static=
8373 ;;
8374
8375 hpux*)
8376 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8377 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8378 # sets the default TLS model and affects inlining.
8379 case $host_cpu in
8380 hppa*64*)
8381 # +Z the default
8382 ;;
8383 *)
8384 lt_prog_compiler_pic='-fPIC'
8385 ;;
8386 esac
8387 ;;
8388
8389 interix[3-9]*)
8390 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8391 # Instead, we relocate shared libraries at runtime.
8392 ;;
8393
8394 msdosdjgpp*)
8395 # Just because we use GCC doesn't mean we suddenly get shared libraries
8396 # on systems that don't support them.
8397 lt_prog_compiler_can_build_shared=no
8398 enable_shared=no
8399 ;;
8400
8401 *nto* | *qnx*)
8402 # QNX uses GNU C++, but need to define -shared option too, otherwise
8403 # it will coredump.
8404 lt_prog_compiler_pic='-fPIC -shared'
8405 ;;
8406
8407 sysv4*MP*)
8408 if test -d /usr/nec; then
8409 lt_prog_compiler_pic=-Kconform_pic
8410 fi
8411 ;;
8412
8413 *)
8414 lt_prog_compiler_pic='-fPIC'
8415 ;;
8416 esac
8417
8418 case $cc_basename in
8419 nvcc*) # Cuda Compiler Driver 2.2
8420 lt_prog_compiler_wl='-Xlinker '
8421 if test -n "$lt_prog_compiler_pic"; then
8422 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8423 fi
8424 ;;
8425 esac
8426 else
8427 # PORTME Check for flag to pass linker flags through the system compiler.
8428 case $host_os in
8429 aix*)
8430 lt_prog_compiler_wl='-Wl,'
8431 if test ia64 = "$host_cpu"; then
8432 # AIX 5 now supports IA64 processor
8433 lt_prog_compiler_static='-Bstatic'
8434 else
8435 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8436 fi
8437 ;;
8438
8439 darwin* | rhapsody*)
8440 # PIC is the default on this platform
8441 # Common symbols not allowed in MH_DYLIB files
8442 lt_prog_compiler_pic='-fno-common'
8443 case $cc_basename in
8444 nagfor*)
8445 # NAG Fortran compiler
8446 lt_prog_compiler_wl='-Wl,-Wl,,'
8447 lt_prog_compiler_pic='-PIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 ;;
8450 esac
8451 ;;
8452
8453 mingw* | cygwin* | pw32* | os2* | cegcc*)
8454 # This hack is so that the source file can tell whether it is being
8455 # built for inclusion in a dll (and should export symbols for example).
8456 lt_prog_compiler_pic='-DDLL_EXPORT'
8457 case $host_os in
8458 os2*)
8459 lt_prog_compiler_static='$wl-static'
8460 ;;
8461 esac
8462 ;;
8463
8464 hpux9* | hpux10* | hpux11*)
8465 lt_prog_compiler_wl='-Wl,'
8466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8467 # not for PA HP-UX.
8468 case $host_cpu in
8469 hppa*64*|ia64*)
8470 # +Z the default
8471 ;;
8472 *)
8473 lt_prog_compiler_pic='+Z'
8474 ;;
8475 esac
8476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8477 lt_prog_compiler_static='$wl-a ${wl}archive'
8478 ;;
8479
8480 irix5* | irix6* | nonstopux*)
8481 lt_prog_compiler_wl='-Wl,'
8482 # PIC (with -KPIC) is the default.
8483 lt_prog_compiler_static='-non_shared'
8484 ;;
8485
8486 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8487 case $cc_basename in
8488 # old Intel for x86_64, which still supported -KPIC.
8489 ecc*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-static'
8493 ;;
8494 # flang / f18. f95 an alias for gfortran or flang on Debian
8495 flang* | f18* | f95*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-fPIC'
8498 lt_prog_compiler_static='-static'
8499 ;;
8500 # icc used to be incompatible with GCC.
8501 # ICC 10 doesn't accept -KPIC any more.
8502 icc* | ifort*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-fPIC'
8505 lt_prog_compiler_static='-static'
8506 ;;
8507 # Lahey Fortran 8.1.
8508 lf95*)
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_pic='--shared'
8511 lt_prog_compiler_static='--static'
8512 ;;
8513 nagfor*)
8514 # NAG Fortran compiler
8515 lt_prog_compiler_wl='-Wl,-Wl,,'
8516 lt_prog_compiler_pic='-PIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 ;;
8519 tcc*)
8520 # Fabrice Bellard et al's Tiny C Compiler
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='-fPIC'
8523 lt_prog_compiler_static='-static'
8524 ;;
8525 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8526 # Portland Group compilers (*not* the Pentium gcc compiler,
8527 # which looks to be a dead project)
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_pic='-fpic'
8530 lt_prog_compiler_static='-Bstatic'
8531 ;;
8532 ccc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 # All Alpha code is PIC.
8535 lt_prog_compiler_static='-non_shared'
8536 ;;
8537 xl* | bgxl* | bgf* | mpixl*)
8538 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-qpic'
8541 lt_prog_compiler_static='-qstaticlink'
8542 ;;
8543 *)
8544 case `$CC -V 2>&1 | $SED 5q` in
8545 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8546 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8549 lt_prog_compiler_wl=''
8550 ;;
8551 *Sun\ F* | *Sun*Fortran*)
8552 lt_prog_compiler_pic='-KPIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 lt_prog_compiler_wl='-Qoption ld '
8555 ;;
8556 *Sun\ C*)
8557 # Sun C 5.9
8558 lt_prog_compiler_pic='-KPIC'
8559 lt_prog_compiler_static='-Bstatic'
8560 lt_prog_compiler_wl='-Wl,'
8561 ;;
8562 *Intel*\ [CF]*Compiler*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-fPIC'
8565 lt_prog_compiler_static='-static'
8566 ;;
8567 *Portland\ Group*)
8568 lt_prog_compiler_wl='-Wl,'
8569 lt_prog_compiler_pic='-fpic'
8570 lt_prog_compiler_static='-Bstatic'
8571 ;;
8572 esac
8573 ;;
8574 esac
8575 ;;
8576
8577 newsos6)
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 ;;
8581
8582 *nto* | *qnx*)
8583 # QNX uses GNU C++, but need to define -shared option too, otherwise
8584 # it will coredump.
8585 lt_prog_compiler_pic='-fPIC -shared'
8586 ;;
8587
8588 osf3* | osf4* | osf5*)
8589 lt_prog_compiler_wl='-Wl,'
8590 # All OSF/1 code is PIC.
8591 lt_prog_compiler_static='-non_shared'
8592 ;;
8593
8594 rdos*)
8595 lt_prog_compiler_static='-non_shared'
8596 ;;
8597
8598 solaris*)
8599 lt_prog_compiler_pic='-KPIC'
8600 lt_prog_compiler_static='-Bstatic'
8601 case $cc_basename in
8602 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8603 lt_prog_compiler_wl='-Qoption ld ';;
8604 *)
8605 lt_prog_compiler_wl='-Wl,';;
8606 esac
8607 ;;
8608
8609 sunos4*)
8610 lt_prog_compiler_wl='-Qoption ld '
8611 lt_prog_compiler_pic='-PIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 ;;
8614
8615 sysv4 | sysv4.2uw2* | sysv4.3*)
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 ;;
8620
8621 sysv4*MP*)
8622 if test -d /usr/nec; then
8623 lt_prog_compiler_pic='-Kconform_pic'
8624 lt_prog_compiler_static='-Bstatic'
8625 fi
8626 ;;
8627
8628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 ;;
8633
8634 unicos*)
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_can_build_shared=no
8637 ;;
8638
8639 uts4*)
8640 lt_prog_compiler_pic='-pic'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643
8644 *)
8645 lt_prog_compiler_can_build_shared=no
8646 ;;
8647 esac
8648 fi
8649
8650 case $host_os in
8651 # For platforms that do not support PIC, -DPIC is meaningless:
8652 *djgpp*)
8653 lt_prog_compiler_pic=
8654 ;;
8655 *)
8656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8657 ;;
8658 esac
8659
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8661 printf %s "checking for $compiler option to produce PIC... " >&6; }
8662 if test ${lt_cv_prog_compiler_pic+y}
8663 then :
8664 printf %s "(cached) " >&6
8665 else $as_nop
8666 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8667 fi
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8669 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8670 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8671
8672 #
8673 # Check to make sure the PIC flag actually works.
8674 #
8675 if test -n "$lt_prog_compiler_pic"; then
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8677 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8678 if test ${lt_cv_prog_compiler_pic_works+y}
8679 then :
8680 printf %s "(cached) " >&6
8681 else $as_nop
8682 lt_cv_prog_compiler_pic_works=no
8683 ac_outfile=conftest.$ac_objext
8684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8686 # Insert the option either (1) after the last *FLAGS variable, or
8687 # (2) before a word containing "conftest.", or (3) at the end.
8688 # Note that $ac_compile itself does not contain backslashes and begins
8689 # with a dollar sign (not a hyphen), so the echo should work correctly.
8690 # The option is referenced via a variable to avoid confusing sed.
8691 lt_compile=`echo "$ac_compile" | $SED \
8692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694 -e 's:$: $lt_compiler_flag:'`
8695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696 (eval "$lt_compile" 2>conftest.err)
8697 ac_status=$?
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 if (exit $ac_status) && test -s "$ac_outfile"; then
8701 # The compiler can only warn and ignore the option if not recognized
8702 # So say no if there are warnings other than the usual output.
8703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8706 lt_cv_prog_compiler_pic_works=yes
8707 fi
8708 fi
8709 $RM conftest*
8710
8711 fi
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8713 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8714
8715 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8716 case $lt_prog_compiler_pic in
8717 "" | " "*) ;;
8718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8719 esac
8720 else
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_can_build_shared=no
8723 fi
8724
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 #
8738 # Check to make sure the static flag actually works.
8739 #
8740 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8742 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8743 if test ${lt_cv_prog_compiler_static_works+y}
8744 then :
8745 printf %s "(cached) " >&6
8746 else $as_nop
8747 lt_cv_prog_compiler_static_works=no
8748 save_LDFLAGS=$LDFLAGS
8749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752 # The linker can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 if test -s conftest.err; then
8755 # Append any errors to the config.log.
8756 cat conftest.err 1>&5
8757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 else
8763 lt_cv_prog_compiler_static_works=yes
8764 fi
8765 fi
8766 $RM -r conftest*
8767 LDFLAGS=$save_LDFLAGS
8768
8769 fi
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8771 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8772
8773 if test yes = "$lt_cv_prog_compiler_static_works"; then
8774 :
8775 else
8776 lt_prog_compiler_static=
8777 fi
8778
8779
8780
8781
8782
8783
8784
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8786 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8787 if test ${lt_cv_prog_compiler_c_o+y}
8788 then :
8789 printf %s "(cached) " >&6
8790 else $as_nop
8791 lt_cv_prog_compiler_c_o=no
8792 $RM -r conftest 2>/dev/null
8793 mkdir conftest
8794 cd conftest
8795 mkdir out
8796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8797
8798 lt_compiler_flag="-o out/conftest2.$ac_objext"
8799 # Insert the option either (1) after the last *FLAGS variable, or
8800 # (2) before a word containing "conftest.", or (3) at the end.
8801 # Note that $ac_compile itself does not contain backslashes and begins
8802 # with a dollar sign (not a hyphen), so the echo should work correctly.
8803 lt_compile=`echo "$ac_compile" | $SED \
8804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8806 -e 's:$: $lt_compiler_flag:'`
8807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8808 (eval "$lt_compile" 2>out/conftest.err)
8809 ac_status=$?
8810 cat out/conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8813 then
8814 # The compiler can only warn and ignore the option if not recognized
8815 # So say no if there are warnings
8816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8819 lt_cv_prog_compiler_c_o=yes
8820 fi
8821 fi
8822 chmod u+w . 2>&5
8823 $RM conftest*
8824 # SGI C++ compiler will create directory out/ii_files/ for
8825 # template instantiation
8826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8827 $RM out/* && rmdir out
8828 cd ..
8829 $RM -r conftest
8830 $RM conftest*
8831
8832 fi
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8834 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8835
8836
8837
8838
8839
8840
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8843 if test ${lt_cv_prog_compiler_c_o+y}
8844 then :
8845 printf %s "(cached) " >&6
8846 else $as_nop
8847 lt_cv_prog_compiler_c_o=no
8848 $RM -r conftest 2>/dev/null
8849 mkdir conftest
8850 cd conftest
8851 mkdir out
8852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8853
8854 lt_compiler_flag="-o out/conftest2.$ac_objext"
8855 # Insert the option either (1) after the last *FLAGS variable, or
8856 # (2) before a word containing "conftest.", or (3) at the end.
8857 # Note that $ac_compile itself does not contain backslashes and begins
8858 # with a dollar sign (not a hyphen), so the echo should work correctly.
8859 lt_compile=`echo "$ac_compile" | $SED \
8860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862 -e 's:$: $lt_compiler_flag:'`
8863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864 (eval "$lt_compile" 2>out/conftest.err)
8865 ac_status=$?
8866 cat out/conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869 then
8870 # The compiler can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler_c_o=yes
8876 fi
8877 fi
8878 chmod u+w . 2>&5
8879 $RM conftest*
8880 # SGI C++ compiler will create directory out/ii_files/ for
8881 # template instantiation
8882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8883 $RM out/* && rmdir out
8884 cd ..
8885 $RM -r conftest
8886 $RM conftest*
8887
8888 fi
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8890 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8891
8892
8893
8894
8895 hard_links=nottested
8896 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8897 # do not overwrite the value of need_locks provided by the user
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8899 printf %s "checking if we can lock with hard links... " >&6; }
8900 hard_links=yes
8901 $RM conftest*
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 touch conftest.a
8904 ln conftest.a conftest.b 2>&5 || hard_links=no
8905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8907 printf "%s\n" "$hard_links" >&6; }
8908 if test no = "$hard_links"; then
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8910 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8911 need_locks=warn
8912 fi
8913 else
8914 need_locks=no
8915 fi
8916
8917
8918
8919
8920
8921
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8923 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8924
8925 runpath_var=
8926 allow_undefined_flag=
8927 always_export_symbols=no
8928 archive_cmds=
8929 archive_expsym_cmds=
8930 compiler_needs_object=no
8931 enable_shared_with_static_runtimes=no
8932 export_dynamic_flag_spec=
8933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8934 hardcode_automatic=no
8935 hardcode_direct=no
8936 hardcode_direct_absolute=no
8937 hardcode_libdir_flag_spec=
8938 hardcode_libdir_separator=
8939 hardcode_minus_L=no
8940 hardcode_shlibpath_var=unsupported
8941 inherit_rpath=no
8942 link_all_deplibs=unknown
8943 module_cmds=
8944 module_expsym_cmds=
8945 old_archive_from_new_cmds=
8946 old_archive_from_expsyms_cmds=
8947 thread_safe_flag_spec=
8948 whole_archive_flag_spec=
8949 # include_expsyms should be a list of space-separated symbols to be *always*
8950 # included in the symbol list
8951 include_expsyms=
8952 # exclude_expsyms can be an extended regexp of symbols to exclude
8953 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8954 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8955 # as well as any symbol that contains 'd'.
8956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8958 # platforms (ab)use it in PIC code, but their linkers get confused if
8959 # the symbol is explicitly referenced. Since portable code cannot
8960 # rely on this symbol name, it's probably fine to never include it in
8961 # preloaded symbol tables.
8962 # Exclude shared library initialization/finalization symbols.
8963 extract_expsyms_cmds=
8964
8965 case $host_os in
8966 cygwin* | mingw* | pw32* | cegcc*)
8967 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
8968 # When not using gcc, we currently assume that we are using
8969 # Microsoft Visual C++ or Intel C++ Compiler.
8970 if test yes != "$GCC"; then
8971 with_gnu_ld=no
8972 fi
8973 ;;
8974 interix*)
8975 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
8976 with_gnu_ld=yes
8977 ;;
8978 openbsd* | bitrig*)
8979 with_gnu_ld=no
8980 ;;
8981 linux* | k*bsd*-gnu | gnu*)
8982 link_all_deplibs=no
8983 ;;
8984 esac
8985
8986 ld_shlibs=yes
8987
8988 # On some targets, GNU ld is compatible enough with the native linker
8989 # that we're better off using the native interface for both.
8990 lt_use_gnu_ld_interface=no
8991 if test yes = "$with_gnu_ld"; then
8992 case $host_os in
8993 aix*)
8994 # The AIX port of GNU ld has always aspired to compatibility
8995 # with the native linker. However, as the warning in the GNU ld
8996 # block says, versions before 2.19.5* couldn't really create working
8997 # shared libraries, regardless of the interface used.
8998 case `$LD -v 2>&1` in
8999 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9000 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9001 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9002 *)
9003 lt_use_gnu_ld_interface=yes
9004 ;;
9005 esac
9006 ;;
9007 *)
9008 lt_use_gnu_ld_interface=yes
9009 ;;
9010 esac
9011 fi
9012
9013 if test yes = "$lt_use_gnu_ld_interface"; then
9014 # If archive_cmds runs LD, not CC, wlarc should be empty
9015 wlarc='$wl'
9016
9017 # Set some defaults for GNU ld with shared library support. These
9018 # are reset later if shared libraries are not supported. Putting them
9019 # here allows them to be overridden if necessary.
9020 runpath_var=LD_RUN_PATH
9021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9022 export_dynamic_flag_spec='$wl--export-dynamic'
9023 # ancient GNU ld didn't support --whole-archive et. al.
9024 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9025 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9026 else
9027 whole_archive_flag_spec=
9028 fi
9029 supports_anon_versioning=no
9030 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9031 *GNU\ gold*) supports_anon_versioning=yes ;;
9032 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9033 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9034 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9035 *\ 2.11.*) ;; # other 2.11 versions
9036 *) supports_anon_versioning=yes ;;
9037 esac
9038
9039 # See if GNU ld supports shared libraries.
9040 case $host_os in
9041 aix[3-9]*)
9042 # On AIX/PPC, the GNU linker is very broken
9043 if test ia64 != "$host_cpu"; then
9044 ld_shlibs=no
9045 cat <<_LT_EOF 1>&2
9046
9047 *** Warning: the GNU linker, at least up to release 2.19, is reported
9048 *** to be unable to reliably create shared libraries on AIX.
9049 *** Therefore, libtool is disabling shared libraries support. If you
9050 *** really care for shared libraries, you may want to install binutils
9051 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9052 *** You will then need to restart the configuration process.
9053
9054 _LT_EOF
9055 fi
9056 ;;
9057
9058 amigaos*)
9059 case $host_cpu in
9060 powerpc)
9061 # see comment about AmigaOS4 .so support
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9063 archive_expsym_cmds=''
9064 ;;
9065 m68k)
9066 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)'
9067 hardcode_libdir_flag_spec='-L$libdir'
9068 hardcode_minus_L=yes
9069 ;;
9070 esac
9071 ;;
9072
9073 beos*)
9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9075 allow_undefined_flag=unsupported
9076 # Joseph Beckenbach <[email protected]> says some releases of gcc
9077 # support --undefined. This deserves some investigation. FIXME
9078 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9079 else
9080 ld_shlibs=no
9081 fi
9082 ;;
9083
9084 cygwin* | mingw* | pw32* | cegcc*)
9085 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9086 # as there is no search path for DLLs.
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 export_dynamic_flag_spec='$wl--export-all-symbols'
9089 allow_undefined_flag=unsupported
9090 always_export_symbols=no
9091 enable_shared_with_static_runtimes=yes
9092 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'
9093 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9094
9095 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9097 # If the export-symbols file already is a .def file, use it as
9098 # is; otherwise, prepend EXPORTS...
9099 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9100 cp $export_symbols $output_objdir/$soname.def;
9101 else
9102 echo EXPORTS > $output_objdir/$soname.def;
9103 cat $export_symbols >> $output_objdir/$soname.def;
9104 fi~
9105 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9106 else
9107 ld_shlibs=no
9108 fi
9109 ;;
9110
9111 haiku*)
9112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9113 link_all_deplibs=yes
9114 ;;
9115
9116 os2*)
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_minus_L=yes
9119 allow_undefined_flag=unsupported
9120 shrext_cmds=.dll
9121 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9124 $ECHO EXPORTS >> $output_objdir/$libname.def~
9125 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9126 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9127 emximp -o $lib $output_objdir/$libname.def'
9128 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9129 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9130 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9131 $ECHO EXPORTS >> $output_objdir/$libname.def~
9132 prefix_cmds="$SED"~
9133 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9134 prefix_cmds="$prefix_cmds -e 1d";
9135 fi~
9136 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9137 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9139 emximp -o $lib $output_objdir/$libname.def'
9140 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9141 enable_shared_with_static_runtimes=yes
9142 file_list_spec='@'
9143 ;;
9144
9145 interix[3-9]*)
9146 hardcode_direct=no
9147 hardcode_shlibpath_var=no
9148 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9149 export_dynamic_flag_spec='$wl-E'
9150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9151 # Instead, shared libraries are loaded at an image base (0x10000000 by
9152 # default) and relocated if they conflict, which is a slow very memory
9153 # consuming and fragmenting process. To avoid this, we pick a random,
9154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9155 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9157 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'
9158 ;;
9159
9160 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9161 tmp_diet=no
9162 if test linux-dietlibc = "$host_os"; then
9163 case $cc_basename in
9164 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9165 esac
9166 fi
9167 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9168 && test no = "$tmp_diet"
9169 then
9170 tmp_addflag=' $pic_flag'
9171 tmp_sharedflag='-shared'
9172 case $cc_basename,$host_cpu in
9173 pgcc*) # Portland Group C compiler
9174 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'
9175 tmp_addflag=' $pic_flag'
9176 ;;
9177 pgf77* | pgf90* | pgf95* | pgfortran*)
9178 # Portland Group f77 and f90 compilers
9179 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'
9180 tmp_addflag=' $pic_flag -Mnomain' ;;
9181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9182 tmp_addflag=' -i_dynamic' ;;
9183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9184 tmp_addflag=' -i_dynamic -nofor_main' ;;
9185 ifc* | ifort*) # Intel Fortran compiler
9186 tmp_addflag=' -nofor_main' ;;
9187 lf95*) # Lahey Fortran 8.1
9188 whole_archive_flag_spec=
9189 tmp_sharedflag='--shared' ;;
9190 nagfor*) # NAGFOR 5.3
9191 tmp_sharedflag='-Wl,-shared' ;;
9192 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9193 tmp_sharedflag='-qmkshrobj'
9194 tmp_addflag= ;;
9195 nvcc*) # Cuda Compiler Driver 2.2
9196 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'
9197 compiler_needs_object=yes
9198 ;;
9199 esac
9200 case `$CC -V 2>&1 | $SED 5q` in
9201 *Sun\ C*) # Sun C 5.9
9202 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'
9203 compiler_needs_object=yes
9204 tmp_sharedflag='-G' ;;
9205 *Sun\ F*) # Sun Fortran 8.3
9206 tmp_sharedflag='-G' ;;
9207 esac
9208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9209
9210 if test yes = "$supports_anon_versioning"; then
9211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9212 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9213 echo "local: *; };" >> $output_objdir/$libname.ver~
9214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9215 fi
9216
9217 case $cc_basename in
9218 tcc*)
9219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9220 export_dynamic_flag_spec='-rdynamic'
9221 ;;
9222 xlf* | bgf* | bgxlf* | mpixlf*)
9223 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9224 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9226 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9227 if test yes = "$supports_anon_versioning"; then
9228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230 echo "local: *; };" >> $output_objdir/$libname.ver~
9231 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9232 fi
9233 ;;
9234 esac
9235 else
9236 ld_shlibs=no
9237 fi
9238 ;;
9239
9240 netbsd* | netbsdelf*-gnu)
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9243 wlarc=
9244 else
9245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9247 fi
9248 ;;
9249
9250 solaris*)
9251 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9252 ld_shlibs=no
9253 cat <<_LT_EOF 1>&2
9254
9255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9256 *** create shared libraries on Solaris systems. Therefore, libtool
9257 *** is disabling shared libraries support. We urge you to upgrade GNU
9258 *** binutils to release 2.9.1 or newer. Another option is to modify
9259 *** your PATH or compiler configuration so that the native linker is
9260 *** used, and then restart.
9261
9262 _LT_EOF
9263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9272 case `$LD -v 2>&1` in
9273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9274 ld_shlibs=no
9275 cat <<_LT_EOF 1>&2
9276
9277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9278 *** reliably create shared libraries on SCO systems. Therefore, libtool
9279 *** is disabling shared libraries support. We urge you to upgrade GNU
9280 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9281 *** your PATH or compiler configuration so that the native linker is
9282 *** used, and then restart.
9283
9284 _LT_EOF
9285 ;;
9286 *)
9287 # For security reasons, it is highly recommended that you always
9288 # use absolute paths for naming shared libraries, and exclude the
9289 # DT_RUNPATH tag from executables and libraries. But doing so
9290 # requires that you compile everything twice, which is a pain.
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9295 else
9296 ld_shlibs=no
9297 fi
9298 ;;
9299 esac
9300 ;;
9301
9302 sunos4*)
9303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9304 wlarc=
9305 hardcode_direct=yes
9306 hardcode_shlibpath_var=no
9307 ;;
9308
9309 *)
9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317 esac
9318
9319 if test no = "$ld_shlibs"; then
9320 runpath_var=
9321 hardcode_libdir_flag_spec=
9322 export_dynamic_flag_spec=
9323 whole_archive_flag_spec=
9324 fi
9325 else
9326 # PORTME fill in a description of your system's linker (not GNU ld)
9327 case $host_os in
9328 aix3*)
9329 allow_undefined_flag=unsupported
9330 always_export_symbols=yes
9331 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'
9332 # Note: this linker hardcodes the directories in LIBPATH if there
9333 # are no directories specified by -L.
9334 hardcode_minus_L=yes
9335 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9336 # Neither direct hardcoding nor static linking is supported with a
9337 # broken collect2.
9338 hardcode_direct=unsupported
9339 fi
9340 ;;
9341
9342 aix[4-9]*)
9343 if test ia64 = "$host_cpu"; then
9344 # On IA64, the linker does run time linking by default, so we don't
9345 # have to do anything special.
9346 aix_use_runtimelinking=no
9347 exp_sym_flag='-Bexport'
9348 no_entry_flag=
9349 else
9350 # If we're using GNU nm, then we don't want the "-C" option.
9351 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9352 # Without the "-l" option, or with the "-B" option, AIX nm treats
9353 # weak defined symbols like other global defined symbols, whereas
9354 # GNU nm marks them as "W".
9355 # While the 'weak' keyword is ignored in the Export File, we need
9356 # it in the Import File for the 'aix-soname' feature, so we have
9357 # to replace the "-B" option with "-P" for AIX nm.
9358 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9359 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'
9360 else
9361 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 == "L") || (\$ 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'
9362 fi
9363 aix_use_runtimelinking=no
9364
9365 # Test if we are trying to use run time linking or normal
9366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9367 # have runtime linking enabled, and use it for executables.
9368 # For shared libraries, we enable/disable runtime linking
9369 # depending on the kind of the shared library created -
9370 # when "with_aix_soname,aix_use_runtimelinking" is:
9371 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9372 # "aix,yes" lib.so shared, rtl:yes, for executables
9373 # lib.a static archive
9374 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9375 # lib.a(lib.so.V) shared, rtl:no, for executables
9376 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9377 # lib.a(lib.so.V) shared, rtl:no
9378 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9379 # lib.a static archive
9380 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9381 for ld_flag in $LDFLAGS; do
9382 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9383 aix_use_runtimelinking=yes
9384 break
9385 fi
9386 done
9387 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9388 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9389 # so we don't have lib.a shared libs to link our executables.
9390 # We have to force runtime linking in this case.
9391 aix_use_runtimelinking=yes
9392 LDFLAGS="$LDFLAGS -Wl,-brtl"
9393 fi
9394 ;;
9395 esac
9396
9397 exp_sym_flag='-bexport'
9398 no_entry_flag='-bnoentry'
9399 fi
9400
9401 # When large executables or shared objects are built, AIX ld can
9402 # have problems creating the table of contents. If linking a library
9403 # or program results in "error TOC overflow" add -mminimal-toc to
9404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9406
9407 archive_cmds=''
9408 hardcode_direct=yes
9409 hardcode_direct_absolute=yes
9410 hardcode_libdir_separator=':'
9411 link_all_deplibs=yes
9412 file_list_spec='$wl-f,'
9413 case $with_aix_soname,$aix_use_runtimelinking in
9414 aix,*) ;; # traditional, no import file
9415 svr4,* | *,yes) # use import file
9416 # The Import File defines what to hardcode.
9417 hardcode_direct=no
9418 hardcode_direct_absolute=no
9419 ;;
9420 esac
9421
9422 if test yes = "$GCC"; then
9423 case $host_os in aix4.[012]|aix4.[012].*)
9424 # We only want to do this on AIX 4.2 and lower, the check
9425 # below for broken collect2 doesn't work under 4.3+
9426 collect2name=`$CC -print-prog-name=collect2`
9427 if test -f "$collect2name" &&
9428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9429 then
9430 # We have reworked collect2
9431 :
9432 else
9433 # We have old collect2
9434 hardcode_direct=unsupported
9435 # It fails to find uninstalled libraries when the uninstalled
9436 # path is not listed in the libpath. Setting hardcode_minus_L
9437 # to unsupported forces relinking
9438 hardcode_minus_L=yes
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_libdir_separator=
9441 fi
9442 ;;
9443 esac
9444 shared_flag='-shared'
9445 if test yes = "$aix_use_runtimelinking"; then
9446 shared_flag="$shared_flag "'$wl-G'
9447 fi
9448 # Need to ensure runtime linking is disabled for the traditional
9449 # shared library, or the linker may eventually find shared libraries
9450 # /with/ Import File - we do not want to mix them.
9451 shared_flag_aix='-shared'
9452 shared_flag_svr4='-shared $wl-G'
9453 else
9454 # not using gcc
9455 if test ia64 = "$host_cpu"; then
9456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9457 # chokes on -Wl,-G. The following line is correct:
9458 shared_flag='-G'
9459 else
9460 if test yes = "$aix_use_runtimelinking"; then
9461 shared_flag='$wl-G'
9462 else
9463 shared_flag='$wl-bM:SRE'
9464 fi
9465 shared_flag_aix='$wl-bM:SRE'
9466 shared_flag_svr4='$wl-G'
9467 fi
9468 fi
9469
9470 export_dynamic_flag_spec='$wl-bexpall'
9471 # It seems that -bexpall does not export symbols beginning with
9472 # underscore (_), so it is better to generate a list of symbols to export.
9473 always_export_symbols=yes
9474 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9475 # Warning - without using the other runtime loading flags (-brtl),
9476 # -berok will link without error, but may produce a broken library.
9477 allow_undefined_flag='-berok'
9478 # Determine the default libpath from the value encoded in an
9479 # empty executable.
9480 if test set = "${lt_cv_aix_libpath+set}"; then
9481 aix_libpath=$lt_cv_aix_libpath
9482 else
9483 if test ${lt_cv_aix_libpath_+y}
9484 then :
9485 printf %s "(cached) " >&6
9486 else $as_nop
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489
9490 int
9491 main (void)
9492 {
9493
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"
9499 then :
9500
9501 lt_aix_libpath_sed='
9502 /Import File Strings/,/^$/ {
9503 /^0/ {
9504 s/^0 *\([^ ]*\) *$/\1/
9505 p
9506 }
9507 }'
9508 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509 # Check for a 64-bit object if we didn't find anything.
9510 if test -z "$lt_cv_aix_libpath_"; then
9511 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 fi
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9515 conftest$ac_exeext conftest.$ac_ext
9516 if test -z "$lt_cv_aix_libpath_"; then
9517 lt_cv_aix_libpath_=/usr/lib:/lib
9518 fi
9519
9520 fi
9521
9522 aix_libpath=$lt_cv_aix_libpath_
9523 fi
9524
9525 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9526 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
9527 else
9528 if test ia64 = "$host_cpu"; then
9529 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9530 allow_undefined_flag="-z nodefs"
9531 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"
9532 else
9533 # Determine the default libpath from the value encoded in an
9534 # empty executable.
9535 if test set = "${lt_cv_aix_libpath+set}"; then
9536 aix_libpath=$lt_cv_aix_libpath
9537 else
9538 if test ${lt_cv_aix_libpath_+y}
9539 then :
9540 printf %s "(cached) " >&6
9541 else $as_nop
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544
9545 int
9546 main (void)
9547 {
9548
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 if ac_fn_c_try_link "$LINENO"
9554 then :
9555
9556 lt_aix_libpath_sed='
9557 /Import File Strings/,/^$/ {
9558 /^0/ {
9559 s/^0 *\([^ ]*\) *$/\1/
9560 p
9561 }
9562 }'
9563 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564 # Check for a 64-bit object if we didn't find anything.
9565 if test -z "$lt_cv_aix_libpath_"; then
9566 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 fi
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9570 conftest$ac_exeext conftest.$ac_ext
9571 if test -z "$lt_cv_aix_libpath_"; then
9572 lt_cv_aix_libpath_=/usr/lib:/lib
9573 fi
9574
9575 fi
9576
9577 aix_libpath=$lt_cv_aix_libpath_
9578 fi
9579
9580 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9581 # Warning - without using the other run time loading flags,
9582 # -berok will link without error, but may produce a broken library.
9583 no_undefined_flag=' $wl-bernotok'
9584 allow_undefined_flag=' $wl-berok'
9585 if test yes = "$with_gnu_ld"; then
9586 # We only use this code for GNU lds that support --whole-archive.
9587 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9588 else
9589 # Exported symbols can be pulled into shared objects from archives
9590 whole_archive_flag_spec='$convenience'
9591 fi
9592 archive_cmds_need_lc=yes
9593 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9594 # -brtl affects multiple linker settings, -berok does not and is overridden later
9595 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9596 if test svr4 != "$with_aix_soname"; then
9597 # This is similar to how AIX traditionally builds its shared libraries.
9598 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'
9599 fi
9600 if test aix != "$with_aix_soname"; then
9601 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'
9602 else
9603 # used by -dlpreopen to get the symbols
9604 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9605 fi
9606 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9607 fi
9608 fi
9609 ;;
9610
9611 amigaos*)
9612 case $host_cpu in
9613 powerpc)
9614 # see comment about AmigaOS4 .so support
9615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616 archive_expsym_cmds=''
9617 ;;
9618 m68k)
9619 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)'
9620 hardcode_libdir_flag_spec='-L$libdir'
9621 hardcode_minus_L=yes
9622 ;;
9623 esac
9624 ;;
9625
9626 bsdi[45]*)
9627 export_dynamic_flag_spec=-rdynamic
9628 ;;
9629
9630 cygwin* | mingw* | pw32* | cegcc*)
9631 # When not using gcc, we currently assume that we are using
9632 # Microsoft Visual C++ or Intel C++ Compiler.
9633 # hardcode_libdir_flag_spec is actually meaningless, as there is
9634 # no search path for DLLs.
9635 case $cc_basename in
9636 cl* | icl*)
9637 # Native MSVC or ICC
9638 hardcode_libdir_flag_spec=' '
9639 allow_undefined_flag=unsupported
9640 always_export_symbols=yes
9641 file_list_spec='@'
9642 # Tell ltmain to make .lib files, not .a files.
9643 libext=lib
9644 # Tell ltmain to make .dll files, not .so files.
9645 shrext_cmds=.dll
9646 # FIXME: Setting linknames here is a bad hack.
9647 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9648 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9649 cp "$export_symbols" "$output_objdir/$soname.def";
9650 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9651 else
9652 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9653 fi~
9654 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9655 linknames='
9656 # The linker will not automatically build a static lib if we build a DLL.
9657 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9658 enable_shared_with_static_runtimes=yes
9659 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9661 # Don't use ranlib
9662 old_postinstall_cmds='chmod 644 $oldlib'
9663 postlink_cmds='lt_outputfile="@OUTPUT@"~
9664 lt_tool_outputfile="@TOOL_OUTPUT@"~
9665 case $lt_outputfile in
9666 *.exe|*.EXE) ;;
9667 *)
9668 lt_outputfile=$lt_outputfile.exe
9669 lt_tool_outputfile=$lt_tool_outputfile.exe
9670 ;;
9671 esac~
9672 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9673 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9674 $RM "$lt_outputfile.manifest";
9675 fi'
9676 ;;
9677 *)
9678 # Assume MSVC and ICC wrapper
9679 hardcode_libdir_flag_spec=' '
9680 allow_undefined_flag=unsupported
9681 # Tell ltmain to make .lib files, not .a files.
9682 libext=lib
9683 # Tell ltmain to make .dll files, not .so files.
9684 shrext_cmds=.dll
9685 # FIXME: Setting linknames here is a bad hack.
9686 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9687 # The linker will automatically build a .lib file if we build a DLL.
9688 old_archive_from_new_cmds='true'
9689 # FIXME: Should let the user specify the lib program.
9690 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9691 enable_shared_with_static_runtimes=yes
9692 ;;
9693 esac
9694 ;;
9695
9696 darwin* | rhapsody*)
9697
9698
9699 archive_cmds_need_lc=no
9700 hardcode_direct=no
9701 hardcode_automatic=yes
9702 hardcode_shlibpath_var=unsupported
9703 if test yes = "$lt_cv_ld_force_load"; then
9704 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\"`'
9705
9706 else
9707 whole_archive_flag_spec=''
9708 fi
9709 link_all_deplibs=yes
9710 allow_undefined_flag=$_lt_dar_allow_undefined
9711 case $cc_basename in
9712 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9713 *) _lt_dar_can_shared=$GCC ;;
9714 esac
9715 if test yes = "$_lt_dar_can_shared"; then
9716 output_verbose_link_cmd=func_echo_all
9717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9719 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"
9720 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"
9721
9722 else
9723 ld_shlibs=no
9724 fi
9725
9726 ;;
9727
9728 dgux*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9735 # support. Future versions do this automatically, but an explicit c++rt0.o
9736 # does not break anything, and helps significantly (at the cost of a little
9737 # extra space).
9738 freebsd2.2*)
9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9740 hardcode_libdir_flag_spec='-R$libdir'
9741 hardcode_direct=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9746 freebsd2.*)
9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_direct=yes
9749 hardcode_minus_L=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9754 freebsd* | dragonfly* | midnightbsd*)
9755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9756 hardcode_libdir_flag_spec='-R$libdir'
9757 hardcode_direct=yes
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 hpux9*)
9762 if test yes = "$GCC"; then
9763 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'
9764 else
9765 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'
9766 fi
9767 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9768 hardcode_libdir_separator=:
9769 hardcode_direct=yes
9770
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L=yes
9774 export_dynamic_flag_spec='$wl-E'
9775 ;;
9776
9777 hpux10*)
9778 if test yes,no = "$GCC,$with_gnu_ld"; then
9779 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9780 else
9781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9782 fi
9783 if test no = "$with_gnu_ld"; then
9784 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9785 hardcode_libdir_separator=:
9786 hardcode_direct=yes
9787 hardcode_direct_absolute=yes
9788 export_dynamic_flag_spec='$wl-E'
9789 # hardcode_minus_L: Not really in the search PATH,
9790 # but as the default location of the library.
9791 hardcode_minus_L=yes
9792 fi
9793 ;;
9794
9795 hpux11*)
9796 if test yes,no = "$GCC,$with_gnu_ld"; then
9797 case $host_cpu in
9798 hppa*64*)
9799 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 ia64*)
9802 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9803 ;;
9804 *)
9805 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 ;;
9807 esac
9808 else
9809 case $host_cpu in
9810 hppa*64*)
9811 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 ;;
9813 ia64*)
9814 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815 ;;
9816 *)
9817
9818 # Older versions of the 11.00 compiler do not understand -b yet
9819 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9821 printf %s "checking if $CC understands -b... " >&6; }
9822 if test ${lt_cv_prog_compiler__b+y}
9823 then :
9824 printf %s "(cached) " >&6
9825 else $as_nop
9826 lt_cv_prog_compiler__b=no
9827 save_LDFLAGS=$LDFLAGS
9828 LDFLAGS="$LDFLAGS -b"
9829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9831 # The linker can only warn and ignore the option if not recognized
9832 # So say no if there are warnings
9833 if test -s conftest.err; then
9834 # Append any errors to the config.log.
9835 cat conftest.err 1>&5
9836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838 if diff conftest.exp conftest.er2 >/dev/null; then
9839 lt_cv_prog_compiler__b=yes
9840 fi
9841 else
9842 lt_cv_prog_compiler__b=yes
9843 fi
9844 fi
9845 $RM -r conftest*
9846 LDFLAGS=$save_LDFLAGS
9847
9848 fi
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9850 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9851
9852 if test yes = "$lt_cv_prog_compiler__b"; then
9853 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856 fi
9857
9858 ;;
9859 esac
9860 fi
9861 if test no = "$with_gnu_ld"; then
9862 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9863 hardcode_libdir_separator=:
9864
9865 case $host_cpu in
9866 hppa*64*|ia64*)
9867 hardcode_direct=no
9868 hardcode_shlibpath_var=no
9869 ;;
9870 *)
9871 hardcode_direct=yes
9872 hardcode_direct_absolute=yes
9873 export_dynamic_flag_spec='$wl-E'
9874
9875 # hardcode_minus_L: Not really in the search PATH,
9876 # but as the default location of the library.
9877 hardcode_minus_L=yes
9878 ;;
9879 esac
9880 fi
9881 ;;
9882
9883 irix5* | irix6* | nonstopux*)
9884 if test yes = "$GCC"; then
9885 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'
9886 # Try to use the -exported_symbol ld option, if it does not
9887 # work, assume that -exports_file does not work either and
9888 # implicitly export all symbols.
9889 # This should be the same for all languages, so no per-tag cache variable.
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9891 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9892 if test ${lt_cv_irix_exported_symbol+y}
9893 then :
9894 printf %s "(cached) " >&6
9895 else $as_nop
9896 save_LDFLAGS=$LDFLAGS
9897 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 int foo (void) { return 0; }
9901 _ACEOF
9902 if ac_fn_c_try_link "$LINENO"
9903 then :
9904 lt_cv_irix_exported_symbol=yes
9905 else $as_nop
9906 lt_cv_irix_exported_symbol=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LDFLAGS=$save_LDFLAGS
9911 fi
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9913 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9914 if test yes = "$lt_cv_irix_exported_symbol"; then
9915 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'
9916 fi
9917 link_all_deplibs=no
9918 else
9919 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'
9920 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'
9921 fi
9922 archive_cmds_need_lc='no'
9923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9924 hardcode_libdir_separator=:
9925 inherit_rpath=yes
9926 link_all_deplibs=yes
9927 ;;
9928
9929 linux*)
9930 case $cc_basename in
9931 tcc*)
9932 # Fabrice Bellard et al's Tiny C Compiler
9933 ld_shlibs=yes
9934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9936 ;;
9937 esac
9938 ;;
9939
9940 netbsd* | netbsdelf*-gnu)
9941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9943 else
9944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9945 fi
9946 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_direct=yes
9948 hardcode_shlibpath_var=no
9949 ;;
9950
9951 newsos6)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_direct=yes
9954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9955 hardcode_libdir_separator=:
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 *nto* | *qnx*)
9960 ;;
9961
9962 openbsd* | bitrig*)
9963 if test -f /usr/libexec/ld.so; then
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 hardcode_direct_absolute=yes
9967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9970 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9971 export_dynamic_flag_spec='$wl-E'
9972 else
9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9975 fi
9976 else
9977 ld_shlibs=no
9978 fi
9979 ;;
9980
9981 os2*)
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_minus_L=yes
9984 allow_undefined_flag=unsupported
9985 shrext_cmds=.dll
9986 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9987 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9988 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9989 $ECHO EXPORTS >> $output_objdir/$libname.def~
9990 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9991 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9992 emximp -o $lib $output_objdir/$libname.def'
9993 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996 $ECHO EXPORTS >> $output_objdir/$libname.def~
9997 prefix_cmds="$SED"~
9998 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9999 prefix_cmds="$prefix_cmds -e 1d";
10000 fi~
10001 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10002 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10003 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10004 emximp -o $lib $output_objdir/$libname.def'
10005 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10006 enable_shared_with_static_runtimes=yes
10007 file_list_spec='@'
10008 ;;
10009
10010 osf3*)
10011 if test yes = "$GCC"; then
10012 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10013 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'
10014 else
10015 allow_undefined_flag=' -expect_unresolved \*'
10016 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'
10017 fi
10018 archive_cmds_need_lc='no'
10019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020 hardcode_libdir_separator=:
10021 ;;
10022
10023 osf4* | osf5*) # as osf3* with the addition of -msym flag
10024 if test yes = "$GCC"; then
10025 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10026 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'
10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028 else
10029 allow_undefined_flag=' -expect_unresolved \*'
10030 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'
10031 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~
10032 $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'
10033
10034 # Both c and cxx compiler support -rpath directly
10035 hardcode_libdir_flag_spec='-rpath $libdir'
10036 fi
10037 archive_cmds_need_lc='no'
10038 hardcode_libdir_separator=:
10039 ;;
10040
10041 solaris*)
10042 no_undefined_flag=' -z defs'
10043 if test yes = "$GCC"; then
10044 wlarc='$wl'
10045 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047 $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'
10048 else
10049 case `$CC -V 2>&1` in
10050 *"Compilers 5.0"*)
10051 wlarc=''
10052 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10054 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10055 ;;
10056 *)
10057 wlarc='$wl'
10058 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10061 ;;
10062 esac
10063 fi
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 hardcode_shlibpath_var=no
10066 case $host_os in
10067 solaris2.[0-5] | solaris2.[0-5].*) ;;
10068 *)
10069 # The compiler driver will combine and reorder linker options,
10070 # but understands '-z linker_flag'. GCC discards it without '$wl',
10071 # but is careful enough not to reorder.
10072 # Supported since Solaris 2.6 (maybe 2.5.1?)
10073 if test yes = "$GCC"; then
10074 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10075 else
10076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10077 fi
10078 ;;
10079 esac
10080 link_all_deplibs=yes
10081 ;;
10082
10083 sunos4*)
10084 if test sequent = "$host_vendor"; then
10085 # Use $CC to link under sequent, because it throws in some extra .o
10086 # files that make .init and .fini sections work.
10087 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10088 else
10089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10090 fi
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_direct=yes
10093 hardcode_minus_L=yes
10094 hardcode_shlibpath_var=no
10095 ;;
10096
10097 sysv4)
10098 case $host_vendor in
10099 sni)
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_direct=yes # is this really true???
10102 ;;
10103 siemens)
10104 ## LD is ld it makes a PLAMLIB
10105 ## CC just makes a GrossModule.
10106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10107 reload_cmds='$CC -r -o $output$reload_objs'
10108 hardcode_direct=no
10109 ;;
10110 motorola)
10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10113 ;;
10114 esac
10115 runpath_var='LD_RUN_PATH'
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 sysv4.3*)
10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_shlibpath_var=no
10122 export_dynamic_flag_spec='-Bexport'
10123 ;;
10124
10125 sysv4*MP*)
10126 if test -d /usr/nec; then
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_shlibpath_var=no
10129 runpath_var=LD_RUN_PATH
10130 hardcode_runpath_var=yes
10131 ld_shlibs=yes
10132 fi
10133 ;;
10134
10135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10136 no_undefined_flag='$wl-z,text'
10137 archive_cmds_need_lc=no
10138 hardcode_shlibpath_var=no
10139 runpath_var='LD_RUN_PATH'
10140
10141 if test yes = "$GCC"; then
10142 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 else
10145 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 fi
10148 ;;
10149
10150 sysv5* | sco3.2v5* | sco5v6*)
10151 # Note: We CANNOT use -z defs as we might desire, because we do not
10152 # link with -lc, and that would cause any symbols used from libc to
10153 # always be unresolved, which means just about no library would
10154 # ever link correctly. If we're not using GNU ld we use -z text
10155 # though, which does catch some bad symbols but isn't as heavy-handed
10156 # as -z defs.
10157 no_undefined_flag='$wl-z,text'
10158 allow_undefined_flag='$wl-z,nodefs'
10159 archive_cmds_need_lc=no
10160 hardcode_shlibpath_var=no
10161 hardcode_libdir_flag_spec='$wl-R,$libdir'
10162 hardcode_libdir_separator=':'
10163 link_all_deplibs=yes
10164 export_dynamic_flag_spec='$wl-Bexport'
10165 runpath_var='LD_RUN_PATH'
10166
10167 if test yes = "$GCC"; then
10168 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 else
10171 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 fi
10174 ;;
10175
10176 uts4*)
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_shlibpath_var=no
10180 ;;
10181
10182 *)
10183 ld_shlibs=no
10184 ;;
10185 esac
10186
10187 if test sni = "$host_vendor"; then
10188 case $host in
10189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10190 export_dynamic_flag_spec='$wl-Blargedynsym'
10191 ;;
10192 esac
10193 fi
10194 fi
10195
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10197 printf "%s\n" "$ld_shlibs" >&6; }
10198 test no = "$ld_shlibs" && can_build_shared=no
10199
10200 with_gnu_ld=$with_gnu_ld
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 #
10217 # Do we need to explicitly link libc?
10218 #
10219 case "x$archive_cmds_need_lc" in
10220 x|xyes)
10221 # Assume -lc should be added
10222 archive_cmds_need_lc=yes
10223
10224 if test yes,yes = "$GCC,$enable_shared"; then
10225 case $archive_cmds in
10226 *'~'*)
10227 # FIXME: we may have to deal with multi-command sequences.
10228 ;;
10229 '$CC '*)
10230 # Test whether the compiler implicitly links with -lc since on some
10231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10232 # to ld, don't add -lc before -lgcc.
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10234 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10235 if test ${lt_cv_archive_cmds_need_lc+y}
10236 then :
10237 printf %s "(cached) " >&6
10238 else $as_nop
10239 $RM conftest*
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243 (eval $ac_compile) 2>&5
10244 ac_status=$?
10245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; } 2>conftest.err; then
10247 soname=conftest
10248 lib=conftest
10249 libobjs=conftest.$ac_objext
10250 deplibs=
10251 wl=$lt_prog_compiler_wl
10252 pic_flag=$lt_prog_compiler_pic
10253 compiler_flags=-v
10254 linker_flags=-v
10255 verstring=
10256 output_objdir=.
10257 libname=conftest
10258 lt_save_allow_undefined_flag=$allow_undefined_flag
10259 allow_undefined_flag=
10260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10262 ac_status=$?
10263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264 test $ac_status = 0; }
10265 then
10266 lt_cv_archive_cmds_need_lc=no
10267 else
10268 lt_cv_archive_cmds_need_lc=yes
10269 fi
10270 allow_undefined_flag=$lt_save_allow_undefined_flag
10271 else
10272 cat conftest.err 1>&5
10273 fi
10274 $RM conftest*
10275
10276 fi
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10278 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10280 ;;
10281 esac
10282 fi
10283 ;;
10284 esac
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
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
10435
10436
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10438 printf %s "checking dynamic linker characteristics... " >&6; }
10439
10440 if test yes = "$GCC"; then
10441 case $host_os in
10442 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10443 *) lt_awk_arg='/^libraries:/' ;;
10444 esac
10445 case $host_os in
10446 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10447 *) lt_sed_strip_eq='s|=/|/|g' ;;
10448 esac
10449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10450 case $lt_search_path_spec in
10451 *\;*)
10452 # if the path contains ";" then we assume it to be the separator
10453 # otherwise default to the standard path separator (i.e. ":") - it is
10454 # assumed that no part of a normal pathname contains ";" but that should
10455 # okay in the real world where ";" in dirpaths is itself problematic.
10456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10457 ;;
10458 *)
10459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10460 ;;
10461 esac
10462 # Ok, now we have the path, separated by spaces, we can step through it
10463 # and add multilib dir if necessary...
10464 lt_tmp_lt_search_path_spec=
10465 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10466 # ...but if some path component already ends with the multilib dir we assume
10467 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10468 case "$lt_multi_os_dir; $lt_search_path_spec " in
10469 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10470 lt_multi_os_dir=
10471 ;;
10472 esac
10473 for lt_sys_path in $lt_search_path_spec; do
10474 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10476 elif test -n "$lt_multi_os_dir"; then
10477 test -d "$lt_sys_path" && \
10478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10479 fi
10480 done
10481 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10482 BEGIN {RS = " "; FS = "/|\n";} {
10483 lt_foo = "";
10484 lt_count = 0;
10485 for (lt_i = NF; lt_i > 0; lt_i--) {
10486 if ($lt_i != "" && $lt_i != ".") {
10487 if ($lt_i == "..") {
10488 lt_count++;
10489 } else {
10490 if (lt_count == 0) {
10491 lt_foo = "/" $lt_i lt_foo;
10492 } else {
10493 lt_count--;
10494 }
10495 }
10496 }
10497 }
10498 if (lt_foo != "") { lt_freq[lt_foo]++; }
10499 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10500 }'`
10501 # AWK program above erroneously prepends '/' to C:/dos/paths
10502 # for these hosts.
10503 case $host_os in
10504 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10505 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10506 esac
10507 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10508 else
10509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10510 fi
10511 library_names_spec=
10512 libname_spec='lib$name'
10513 soname_spec=
10514 shrext_cmds=.so
10515 postinstall_cmds=
10516 postuninstall_cmds=
10517 finish_cmds=
10518 finish_eval=
10519 shlibpath_var=
10520 shlibpath_overrides_runpath=unknown
10521 version_type=none
10522 dynamic_linker="$host_os ld.so"
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10524 need_lib_prefix=unknown
10525 hardcode_into_libs=no
10526
10527 # when you set need_version to no, make sure it does not cause -set_version
10528 # flags to be left without arguments
10529 need_version=unknown
10530
10531
10532
10533 case $host_os in
10534 aix3*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10537 shlibpath_var=LIBPATH
10538
10539 # AIX 3 has no versioning support, so we append a major version to the name.
10540 soname_spec='$libname$release$shared_ext$major'
10541 ;;
10542
10543 aix[4-9]*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 need_lib_prefix=no
10546 need_version=no
10547 hardcode_into_libs=yes
10548 if test ia64 = "$host_cpu"; then
10549 # AIX 5 supports IA64
10550 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 else
10553 # With GCC up to 2.95.x, collect2 would create an import file
10554 # for dependence libraries. The import file would start with
10555 # the line '#! .'. This would cause the generated library to
10556 # depend on '.', always an invalid library. This was fixed in
10557 # development snapshots of GCC prior to 3.0.
10558 case $host_os in
10559 aix4 | aix4.[01] | aix4.[01].*)
10560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10561 echo ' yes '
10562 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10563 :
10564 else
10565 can_build_shared=no
10566 fi
10567 ;;
10568 esac
10569 # Using Import Files as archive members, it is possible to support
10570 # filename-based versioning of shared library archives on AIX. While
10571 # this would work for both with and without runtime linking, it will
10572 # prevent static linking of such archives. So we do filename-based
10573 # shared library versioning with .so extension only, which is used
10574 # when both runtime linking and shared linking is enabled.
10575 # Unfortunately, runtime linking may impact performance, so we do
10576 # not want this to be the default eventually. Also, we use the
10577 # versioned .so libs for executables only if there is the -brtl
10578 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10579 # To allow for filename-based versioning support, we need to create
10580 # libNAME.so.V as an archive file, containing:
10581 # *) an Import File, referring to the versioned filename of the
10582 # archive as well as the shared archive member, telling the
10583 # bitwidth (32 or 64) of that shared object, and providing the
10584 # list of exported symbols of that shared object, eventually
10585 # decorated with the 'weak' keyword
10586 # *) the shared object with the F_LOADONLY flag set, to really avoid
10587 # it being seen by the linker.
10588 # At run time we better use the real file rather than another symlink,
10589 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10590
10591 case $with_aix_soname,$aix_use_runtimelinking in
10592 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10593 # soname into executable. Probably we can add versioning support to
10594 # collect2, so additional links can be useful in future.
10595 aix,yes) # traditional libtool
10596 dynamic_linker='AIX unversionable lib.so'
10597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10598 # instead of lib<name>.a to let people know that these are not
10599 # typical AIX shared libraries.
10600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10601 ;;
10602 aix,no) # traditional AIX only
10603 dynamic_linker='AIX lib.a(lib.so.V)'
10604 # We preserve .a as extension for shared libraries through AIX4.2
10605 # and later when we are not doing run time linking.
10606 library_names_spec='$libname$release.a $libname.a'
10607 soname_spec='$libname$release$shared_ext$major'
10608 ;;
10609 svr4,*) # full svr4 only
10610 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10611 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10612 # We do not specify a path in Import Files, so LIBPATH fires.
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615 *,yes) # both, prefer svr4
10616 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10617 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10618 # unpreferred sharedlib libNAME.a needs extra handling
10619 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"'
10620 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"'
10621 # We do not specify a path in Import Files, so LIBPATH fires.
10622 shlibpath_overrides_runpath=yes
10623 ;;
10624 *,no) # both, prefer aix
10625 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10626 library_names_spec='$libname$release.a $libname.a'
10627 soname_spec='$libname$release$shared_ext$major'
10628 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10629 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)'
10630 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"'
10631 ;;
10632 esac
10633 shlibpath_var=LIBPATH
10634 fi
10635 ;;
10636
10637 amigaos*)
10638 case $host_cpu in
10639 powerpc)
10640 # Since July 2007 AmigaOS4 officially supports .so libraries.
10641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10643 ;;
10644 m68k)
10645 library_names_spec='$libname.ixlibrary $libname.a'
10646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10647 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'
10648 ;;
10649 esac
10650 ;;
10651
10652 beos*)
10653 library_names_spec='$libname$shared_ext'
10654 dynamic_linker="$host_os ld.so"
10655 shlibpath_var=LIBRARY_PATH
10656 ;;
10657
10658 bsdi[45]*)
10659 version_type=linux # correct to gnu/linux during the next big refactor
10660 need_version=no
10661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10662 soname_spec='$libname$release$shared_ext$major'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10667 # the default ld.so.conf also contains /usr/contrib/lib and
10668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10669 # libtool to hard-code these into programs
10670 ;;
10671
10672 cygwin* | mingw* | pw32* | cegcc*)
10673 version_type=windows
10674 shrext_cmds=.dll
10675 need_version=no
10676 need_lib_prefix=no
10677
10678 case $GCC,$cc_basename in
10679 yes,*)
10680 # gcc
10681 library_names_spec='$libname.dll.a'
10682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10683 postinstall_cmds='base_file=`basename \$file`~
10684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10685 dldir=$destdir/`dirname \$dlpath`~
10686 test -d \$dldir || mkdir -p \$dldir~
10687 $install_prog $dir/$dlname \$dldir/$dlname~
10688 chmod a+x \$dldir/$dlname~
10689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10691 fi'
10692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10693 dlpath=$dir/\$dldll~
10694 $RM \$dlpath'
10695 shlibpath_overrides_runpath=yes
10696
10697 case $host_os in
10698 cygwin*)
10699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10700 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10701
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10703 ;;
10704 mingw* | cegcc*)
10705 # MinGW DLLs use traditional 'lib' prefix
10706 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10707 ;;
10708 pw32*)
10709 # pw32 DLLs use 'pw' prefix rather than 'lib'
10710 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711 ;;
10712 esac
10713 dynamic_linker='Win32 ld.exe'
10714 ;;
10715
10716 *,cl* | *,icl*)
10717 # Native MSVC or ICC
10718 libname_spec='$name'
10719 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10720 library_names_spec='$libname.dll.lib'
10721
10722 case $build_os in
10723 mingw*)
10724 sys_lib_search_path_spec=
10725 lt_save_ifs=$IFS
10726 IFS=';'
10727 for lt_path in $LIB
10728 do
10729 IFS=$lt_save_ifs
10730 # Let DOS variable expansion print the short 8.3 style file name.
10731 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10732 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10733 done
10734 IFS=$lt_save_ifs
10735 # Convert to MSYS style.
10736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10737 ;;
10738 cygwin*)
10739 # Convert to unix form, then to dos form, then back to unix form
10740 # but this time dos style (no spaces!) so that the unix form looks
10741 # like /cygdrive/c/PROGRA~1:/cygdr...
10742 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10743 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10744 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10745 ;;
10746 *)
10747 sys_lib_search_path_spec=$LIB
10748 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10749 # It is most probably a Windows format PATH.
10750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10751 else
10752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10753 fi
10754 # FIXME: find the short name or the path components, as spaces are
10755 # common. (e.g. "Program Files" -> "PROGRA~1")
10756 ;;
10757 esac
10758
10759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10760 postinstall_cmds='base_file=`basename \$file`~
10761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10762 dldir=$destdir/`dirname \$dlpath`~
10763 test -d \$dldir || mkdir -p \$dldir~
10764 $install_prog $dir/$dlname \$dldir/$dlname'
10765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10766 dlpath=$dir/\$dldll~
10767 $RM \$dlpath'
10768 shlibpath_overrides_runpath=yes
10769 dynamic_linker='Win32 link.exe'
10770 ;;
10771
10772 *)
10773 # Assume MSVC and ICC wrapper
10774 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10775 dynamic_linker='Win32 ld.exe'
10776 ;;
10777 esac
10778 # FIXME: first we should search . and the directory the executable is in
10779 shlibpath_var=PATH
10780 ;;
10781
10782 darwin* | rhapsody*)
10783 dynamic_linker="$host_os dyld"
10784 version_type=darwin
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10788 soname_spec='$libname$release$major$shared_ext'
10789 shlibpath_overrides_runpath=yes
10790 shlibpath_var=DYLD_LIBRARY_PATH
10791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10792
10793 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10795 ;;
10796
10797 dgux*)
10798 version_type=linux # correct to gnu/linux during the next big refactor
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802 soname_spec='$libname$release$shared_ext$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 ;;
10805
10806 freebsd* | dragonfly* | midnightbsd*)
10807 # DragonFly does not have aout. When/if they implement a new
10808 # versioning mechanism, adjust this.
10809 if test -x /usr/bin/objformat; then
10810 objformat=`/usr/bin/objformat`
10811 else
10812 case $host_os in
10813 freebsd[23].*) objformat=aout ;;
10814 *) objformat=elf ;;
10815 esac
10816 fi
10817 version_type=freebsd-$objformat
10818 case $version_type in
10819 freebsd-elf*)
10820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10821 soname_spec='$libname$release$shared_ext$major'
10822 need_version=no
10823 need_lib_prefix=no
10824 ;;
10825 freebsd-*)
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10827 need_version=yes
10828 ;;
10829 esac
10830 shlibpath_var=LD_LIBRARY_PATH
10831 case $host_os in
10832 freebsd2.*)
10833 shlibpath_overrides_runpath=yes
10834 ;;
10835 freebsd3.[01]* | freebsdelf3.[01]*)
10836 shlibpath_overrides_runpath=yes
10837 hardcode_into_libs=yes
10838 ;;
10839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10841 shlibpath_overrides_runpath=no
10842 hardcode_into_libs=yes
10843 ;;
10844 *) # from 4.6 on, and DragonFly
10845 shlibpath_overrides_runpath=yes
10846 hardcode_into_libs=yes
10847 ;;
10848 esac
10849 ;;
10850
10851 haiku*)
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 need_lib_prefix=no
10854 need_version=no
10855 dynamic_linker="$host_os runtime_loader"
10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10857 soname_spec='$libname$release$shared_ext$major'
10858 shlibpath_var=LIBRARY_PATH
10859 shlibpath_overrides_runpath=no
10860 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10861 hardcode_into_libs=yes
10862 ;;
10863
10864 hpux9* | hpux10* | hpux11*)
10865 # Give a soname corresponding to the major version so that dld.sl refuses to
10866 # link against other versions.
10867 version_type=sunos
10868 need_lib_prefix=no
10869 need_version=no
10870 case $host_cpu in
10871 ia64*)
10872 shrext_cmds='.so'
10873 hardcode_into_libs=yes
10874 dynamic_linker="$host_os dld.so"
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878 soname_spec='$libname$release$shared_ext$major'
10879 if test 32 = "$HPUX_IA64_MODE"; then
10880 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10881 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10882 else
10883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10884 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10885 fi
10886 ;;
10887 hppa*64*)
10888 shrext_cmds='.sl'
10889 hardcode_into_libs=yes
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 soname_spec='$libname$release$shared_ext$major'
10895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 ;;
10898 *)
10899 shrext_cmds='.sl'
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=SHLIB_PATH
10902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 ;;
10906 esac
10907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10908 postinstall_cmds='chmod 555 $lib'
10909 # or fails outright, so override atomically:
10910 install_override_mode=555
10911 ;;
10912
10913 interix[3-9]*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=no
10922 hardcode_into_libs=yes
10923 ;;
10924
10925 irix5* | irix6* | nonstopux*)
10926 case $host_os in
10927 nonstopux*) version_type=nonstopux ;;
10928 *)
10929 if test yes = "$lt_cv_prog_gnu_ld"; then
10930 version_type=linux # correct to gnu/linux during the next big refactor
10931 else
10932 version_type=irix
10933 fi ;;
10934 esac
10935 need_lib_prefix=no
10936 need_version=no
10937 soname_spec='$libname$release$shared_ext$major'
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10939 case $host_os in
10940 irix5* | nonstopux*)
10941 libsuff= shlibsuff=
10942 ;;
10943 *)
10944 case $LD in # libtool.m4 will add one of these switches to LD
10945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10946 libsuff= shlibsuff= libmagic=32-bit;;
10947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10948 libsuff=32 shlibsuff=N32 libmagic=N32;;
10949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10951 *) libsuff= shlibsuff= libmagic=never-match;;
10952 esac
10953 ;;
10954 esac
10955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10956 shlibpath_overrides_runpath=no
10957 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10958 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10959 hardcode_into_libs=yes
10960 ;;
10961
10962 # No shared lib support for Linux oldld, aout, or coff.
10963 linux*oldld* | linux*aout* | linux*coff*)
10964 dynamic_linker=no
10965 ;;
10966
10967 linux*android*)
10968 version_type=none # Android doesn't support versioned libraries.
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='$libname$release$shared_ext'
10972 soname_spec='$libname$release$shared_ext'
10973 finish_cmds=
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10981
10982 dynamic_linker='Android linker'
10983 # Don't embed -rpath directories since the linker doesn't support them.
10984 hardcode_libdir_flag_spec='-L$libdir'
10985 ;;
10986
10987 # This must be glibc/ELF.
10988 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10989 version_type=linux # correct to gnu/linux during the next big refactor
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10993 soname_spec='$libname$release$shared_ext$major'
10994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=no
10997
10998 # Some binutils ld are patched to set DT_RUNPATH
10999 if test ${lt_cv_shlibpath_overrides_runpath+y}
11000 then :
11001 printf %s "(cached) " >&6
11002 else $as_nop
11003 lt_cv_shlibpath_overrides_runpath=no
11004 save_LDFLAGS=$LDFLAGS
11005 save_libdir=$libdir
11006 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11007 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010
11011 int
11012 main (void)
11013 {
11014
11015 ;
11016 return 0;
11017 }
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"
11020 then :
11021 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11022 then :
11023 lt_cv_shlibpath_overrides_runpath=yes
11024 fi
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LDFLAGS=$save_LDFLAGS
11029 libdir=$save_libdir
11030
11031 fi
11032
11033 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11034
11035 # This implies no fast_install, which is unacceptable.
11036 # Some rework will be needed to allow for fast_install
11037 # before this can be enabled.
11038 hardcode_into_libs=yes
11039
11040 # Ideally, we could use ldconfig to report *all* directores which are
11041 # searched for libraries, however this is still not possible. Aside from not
11042 # being certain /sbin/ldconfig is available, command
11043 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11044 # even though it is searched at run-time. Try to do the best guess by
11045 # appending ld.so.conf contents (and includes) to the search path.
11046 if test -f /etc/ld.so.conf; then
11047 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' ' '`
11048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11049 fi
11050
11051 # We used to test for /lib/ld.so.1 and disable shared libraries on
11052 # powerpc, because MkLinux only supported shared libraries with the
11053 # GNU dynamic linker. Since this was broken with cross compilers,
11054 # most powerpc-linux boxes support dynamic linking these days and
11055 # people can always --disable-shared, the test was removed, and we
11056 # assume the GNU/Linux dynamic linker is in use.
11057 dynamic_linker='GNU/Linux ld.so'
11058 ;;
11059
11060 netbsdelf*-gnu)
11061 version_type=linux
11062 need_lib_prefix=no
11063 need_version=no
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 dynamic_linker='NetBSD ld.elf_so'
11070 ;;
11071
11072 netbsd*)
11073 version_type=sunos
11074 need_lib_prefix=no
11075 need_version=no
11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 dynamic_linker='NetBSD (a.out) ld.so'
11080 else
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
11083 dynamic_linker='NetBSD ld.elf_so'
11084 fi
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 ;;
11089
11090 newsos6)
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 ;;
11096
11097 *nto* | *qnx*)
11098 version_type=qnx
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11106 dynamic_linker='ldqnx.so'
11107 ;;
11108
11109 openbsd* | bitrig*)
11110 version_type=sunos
11111 sys_lib_dlsearch_path_spec=/usr/lib
11112 need_lib_prefix=no
11113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11114 need_version=no
11115 else
11116 need_version=yes
11117 fi
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 ;;
11123
11124 os2*)
11125 libname_spec='$name'
11126 version_type=windows
11127 shrext_cmds=.dll
11128 need_version=no
11129 need_lib_prefix=no
11130 # OS/2 can only load a DLL with a base name of 8 characters or less.
11131 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11132 v=$($ECHO $release$versuffix | tr -d .-);
11133 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11134 $ECHO $n$v`$shared_ext'
11135 library_names_spec='${libname}_dll.$libext'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=BEGINLIBPATH
11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11140 postinstall_cmds='base_file=`basename \$file`~
11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11142 dldir=$destdir/`dirname \$dlpath`~
11143 test -d \$dldir || mkdir -p \$dldir~
11144 $install_prog $dir/$dlname \$dldir/$dlname~
11145 chmod a+x \$dldir/$dlname~
11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11148 fi'
11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11150 dlpath=$dir/\$dldll~
11151 $RM \$dlpath'
11152 ;;
11153
11154 osf3* | osf4* | osf5*)
11155 version_type=osf
11156 need_lib_prefix=no
11157 need_version=no
11158 soname_spec='$libname$release$shared_ext$major'
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11163 ;;
11164
11165 rdos*)
11166 dynamic_linker=no
11167 ;;
11168
11169 solaris*)
11170 version_type=linux # correct to gnu/linux during the next big refactor
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 hardcode_into_libs=yes
11178 # ldd complains unless libraries are executable
11179 postinstall_cmds='chmod +x $lib'
11180 ;;
11181
11182 sunos4*)
11183 version_type=sunos
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 if test yes = "$with_gnu_ld"; then
11189 need_lib_prefix=no
11190 fi
11191 need_version=yes
11192 ;;
11193
11194 sysv4 | sysv4.3*)
11195 version_type=linux # correct to gnu/linux during the next big refactor
11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197 soname_spec='$libname$release$shared_ext$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 case $host_vendor in
11200 sni)
11201 shlibpath_overrides_runpath=no
11202 need_lib_prefix=no
11203 runpath_var=LD_RUN_PATH
11204 ;;
11205 siemens)
11206 need_lib_prefix=no
11207 ;;
11208 motorola)
11209 need_lib_prefix=no
11210 need_version=no
11211 shlibpath_overrides_runpath=no
11212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11213 ;;
11214 esac
11215 ;;
11216
11217 sysv4*MP*)
11218 if test -d /usr/nec; then
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11221 soname_spec='$libname$shared_ext.$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 fi
11224 ;;
11225
11226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11227 version_type=sco
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11231 soname_spec='$libname$release$shared_ext$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 if test yes = "$with_gnu_ld"; then
11236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11237 else
11238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11239 case $host_os in
11240 sco3.2v5*)
11241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11242 ;;
11243 esac
11244 fi
11245 sys_lib_dlsearch_path_spec='/usr/lib'
11246 ;;
11247
11248 tpf*)
11249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11250 version_type=linux # correct to gnu/linux during the next big refactor
11251 need_lib_prefix=no
11252 need_version=no
11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=no
11256 hardcode_into_libs=yes
11257 ;;
11258
11259 uts4*)
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262 soname_spec='$libname$release$shared_ext$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 ;;
11265
11266 *)
11267 dynamic_linker=no
11268 ;;
11269 esac
11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11271 printf "%s\n" "$dynamic_linker" >&6; }
11272 test no = "$dynamic_linker" && can_build_shared=no
11273
11274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11275 if test yes = "$GCC"; then
11276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11277 fi
11278
11279 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11280 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11281 fi
11282
11283 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11284 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11285 fi
11286
11287 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11288 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11289
11290 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11291 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11292
11293 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11294 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11393 printf %s "checking how to hardcode library paths into programs... " >&6; }
11394 hardcode_action=
11395 if test -n "$hardcode_libdir_flag_spec" ||
11396 test -n "$runpath_var" ||
11397 test yes = "$hardcode_automatic"; then
11398
11399 # We can hardcode non-existent directories.
11400 if test no != "$hardcode_direct" &&
11401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11402 # have to relink, otherwise we might link with an installed library
11403 # when we should be linking with a yet-to-be-installed one
11404 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11405 test no != "$hardcode_minus_L"; then
11406 # Linking always hardcodes the temporary library directory.
11407 hardcode_action=relink
11408 else
11409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11410 hardcode_action=immediate
11411 fi
11412 else
11413 # We cannot hardcode anything, or else we can only hardcode existing
11414 # directories.
11415 hardcode_action=unsupported
11416 fi
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11418 printf "%s\n" "$hardcode_action" >&6; }
11419
11420 if test relink = "$hardcode_action" ||
11421 test yes = "$inherit_rpath"; then
11422 # Fast installation is not supported
11423 enable_fast_install=no
11424 elif test yes = "$shlibpath_overrides_runpath" ||
11425 test no = "$enable_shared"; then
11426 # Fast installation is not necessary
11427 enable_fast_install=needless
11428 fi
11429
11430
11431
11432
11433
11434
11435 if test yes != "$enable_dlopen"; then
11436 enable_dlopen=unknown
11437 enable_dlopen_self=unknown
11438 enable_dlopen_self_static=unknown
11439 else
11440 lt_cv_dlopen=no
11441 lt_cv_dlopen_libs=
11442
11443 case $host_os in
11444 beos*)
11445 lt_cv_dlopen=load_add_on
11446 lt_cv_dlopen_libs=
11447 lt_cv_dlopen_self=yes
11448 ;;
11449
11450 mingw* | pw32* | cegcc*)
11451 lt_cv_dlopen=LoadLibrary
11452 lt_cv_dlopen_libs=
11453 ;;
11454
11455 cygwin*)
11456 lt_cv_dlopen=dlopen
11457 lt_cv_dlopen_libs=
11458 ;;
11459
11460 darwin*)
11461 # if libdl is installed we need to link against it
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11463 printf %s "checking for dlopen in -ldl... " >&6; }
11464 if test ${ac_cv_lib_dl_dlopen+y}
11465 then :
11466 printf %s "(cached) " >&6
11467 else $as_nop
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldl $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 char dlopen ();
11477 int
11478 main (void)
11479 {
11480 return dlopen ();
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"
11486 then :
11487 ac_cv_lib_dl_dlopen=yes
11488 else $as_nop
11489 ac_cv_lib_dl_dlopen=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11497 if test "x$ac_cv_lib_dl_dlopen" = xyes
11498 then :
11499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11500 else $as_nop
11501
11502 lt_cv_dlopen=dyld
11503 lt_cv_dlopen_libs=
11504 lt_cv_dlopen_self=yes
11505
11506 fi
11507
11508 ;;
11509
11510 tpf*)
11511 # Don't try to run any link tests for TPF. We know it's impossible
11512 # because TPF is a cross-compiler, and we know how we open DSOs.
11513 lt_cv_dlopen=dlopen
11514 lt_cv_dlopen_libs=
11515 lt_cv_dlopen_self=no
11516 ;;
11517
11518 *)
11519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520 if test "x$ac_cv_func_shl_load" = xyes
11521 then :
11522 lt_cv_dlopen=shl_load
11523 else $as_nop
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11525 printf %s "checking for shl_load in -ldld... " >&6; }
11526 if test ${ac_cv_lib_dld_shl_load+y}
11527 then :
11528 printf %s "(cached) " >&6
11529 else $as_nop
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldld $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 char shl_load ();
11539 int
11540 main (void)
11541 {
11542 return shl_load ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"
11548 then :
11549 ac_cv_lib_dld_shl_load=yes
11550 else $as_nop
11551 ac_cv_lib_dld_shl_load=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11558 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11559 if test "x$ac_cv_lib_dld_shl_load" = xyes
11560 then :
11561 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11562 else $as_nop
11563 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11564 if test "x$ac_cv_func_dlopen" = xyes
11565 then :
11566 lt_cv_dlopen=dlopen
11567 else $as_nop
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11569 printf %s "checking for dlopen in -ldl... " >&6; }
11570 if test ${ac_cv_lib_dl_dlopen+y}
11571 then :
11572 printf %s "(cached) " >&6
11573 else $as_nop
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-ldl $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 char dlopen ();
11583 int
11584 main (void)
11585 {
11586 return dlopen ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"
11592 then :
11593 ac_cv_lib_dl_dlopen=yes
11594 else $as_nop
11595 ac_cv_lib_dl_dlopen=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11602 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11603 if test "x$ac_cv_lib_dl_dlopen" = xyes
11604 then :
11605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11606 else $as_nop
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11608 printf %s "checking for dlopen in -lsvld... " >&6; }
11609 if test ${ac_cv_lib_svld_dlopen+y}
11610 then :
11611 printf %s "(cached) " >&6
11612 else $as_nop
11613 ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-lsvld $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11621 char dlopen ();
11622 int
11623 main (void)
11624 {
11625 return dlopen ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"
11631 then :
11632 ac_cv_lib_svld_dlopen=yes
11633 else $as_nop
11634 ac_cv_lib_svld_dlopen=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11641 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11642 if test "x$ac_cv_lib_svld_dlopen" = xyes
11643 then :
11644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11645 else $as_nop
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11647 printf %s "checking for dld_link in -ldld... " >&6; }
11648 if test ${ac_cv_lib_dld_dld_link+y}
11649 then :
11650 printf %s "(cached) " >&6
11651 else $as_nop
11652 ac_check_lib_save_LIBS=$LIBS
11653 LIBS="-ldld $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660 char dld_link ();
11661 int
11662 main (void)
11663 {
11664 return dld_link ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"
11670 then :
11671 ac_cv_lib_dld_dld_link=yes
11672 else $as_nop
11673 ac_cv_lib_dld_dld_link=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11680 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11681 if test "x$ac_cv_lib_dld_dld_link" = xyes
11682 then :
11683 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701 ;;
11702 esac
11703
11704 if test no = "$lt_cv_dlopen"; then
11705 enable_dlopen=no
11706 else
11707 enable_dlopen=yes
11708 fi
11709
11710 case $lt_cv_dlopen in
11711 dlopen)
11712 save_CPPFLAGS=$CPPFLAGS
11713 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11714
11715 save_LDFLAGS=$LDFLAGS
11716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11717
11718 save_LIBS=$LIBS
11719 LIBS="$lt_cv_dlopen_libs $LIBS"
11720
11721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11722 printf %s "checking whether a program can dlopen itself... " >&6; }
11723 if test ${lt_cv_dlopen_self+y}
11724 then :
11725 printf %s "(cached) " >&6
11726 else $as_nop
11727 if test yes = "$cross_compiling"; then :
11728 lt_cv_dlopen_self=cross
11729 else
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11735
11736 #if HAVE_DLFCN_H
11737 #include <dlfcn.h>
11738 #endif
11739
11740 #include <stdio.h>
11741
11742 #ifdef RTLD_GLOBAL
11743 # define LT_DLGLOBAL RTLD_GLOBAL
11744 #else
11745 # ifdef DL_GLOBAL
11746 # define LT_DLGLOBAL DL_GLOBAL
11747 # else
11748 # define LT_DLGLOBAL 0
11749 # endif
11750 #endif
11751
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11755 # ifdef RTLD_LAZY
11756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11757 # else
11758 # ifdef DL_LAZY
11759 # define LT_DLLAZY_OR_NOW DL_LAZY
11760 # else
11761 # ifdef RTLD_NOW
11762 # define LT_DLLAZY_OR_NOW RTLD_NOW
11763 # else
11764 # ifdef DL_NOW
11765 # define LT_DLLAZY_OR_NOW DL_NOW
11766 # else
11767 # define LT_DLLAZY_OR_NOW 0
11768 # endif
11769 # endif
11770 # endif
11771 # endif
11772 #endif
11773
11774 /* When -fvisibility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11778 #endif
11779
11780 int fnord () { return 42; }
11781 int main ()
11782 {
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11785
11786 if (self)
11787 {
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11789 else
11790 {
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11793 }
11794 /* dlclose (self); */
11795 }
11796 else
11797 puts (dlerror ());
11798
11799 return status;
11800 }
11801 _LT_EOF
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11804 ac_status=$?
11805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11808 lt_status=$?
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11813 esac
11814 else :
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11817 fi
11818 fi
11819 rm -fr conftest*
11820
11821
11822 fi
11823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11825
11826 if test yes = "$lt_cv_dlopen_self"; then
11827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11830 if test ${lt_cv_dlopen_self_static+y}
11831 then :
11832 printf %s "(cached) " >&6
11833 else $as_nop
11834 if test yes = "$cross_compiling"; then :
11835 lt_cv_dlopen_self_static=cross
11836 else
11837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11838 lt_status=$lt_dlunknown
11839 cat > conftest.$ac_ext <<_LT_EOF
11840 #line $LINENO "configure"
11841 #include "confdefs.h"
11842
11843 #if HAVE_DLFCN_H
11844 #include <dlfcn.h>
11845 #endif
11846
11847 #include <stdio.h>
11848
11849 #ifdef RTLD_GLOBAL
11850 # define LT_DLGLOBAL RTLD_GLOBAL
11851 #else
11852 # ifdef DL_GLOBAL
11853 # define LT_DLGLOBAL DL_GLOBAL
11854 # else
11855 # define LT_DLGLOBAL 0
11856 # endif
11857 #endif
11858
11859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11860 find out it does not work in some platform. */
11861 #ifndef LT_DLLAZY_OR_NOW
11862 # ifdef RTLD_LAZY
11863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11864 # else
11865 # ifdef DL_LAZY
11866 # define LT_DLLAZY_OR_NOW DL_LAZY
11867 # else
11868 # ifdef RTLD_NOW
11869 # define LT_DLLAZY_OR_NOW RTLD_NOW
11870 # else
11871 # ifdef DL_NOW
11872 # define LT_DLLAZY_OR_NOW DL_NOW
11873 # else
11874 # define LT_DLLAZY_OR_NOW 0
11875 # endif
11876 # endif
11877 # endif
11878 # endif
11879 #endif
11880
11881 /* When -fvisibility=hidden is used, assume the code has been annotated
11882 correspondingly for the symbols needed. */
11883 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11884 int fnord () __attribute__((visibility("default")));
11885 #endif
11886
11887 int fnord () { return 42; }
11888 int main ()
11889 {
11890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891 int status = $lt_dlunknown;
11892
11893 if (self)
11894 {
11895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11896 else
11897 {
11898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11899 else puts (dlerror ());
11900 }
11901 /* dlclose (self); */
11902 }
11903 else
11904 puts (dlerror ());
11905
11906 return status;
11907 }
11908 _LT_EOF
11909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11910 (eval $ac_link) 2>&5
11911 ac_status=$?
11912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11913 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11914 (./conftest; exit; ) >&5 2>/dev/null
11915 lt_status=$?
11916 case x$lt_status in
11917 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11919 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11920 esac
11921 else :
11922 # compilation failed
11923 lt_cv_dlopen_self_static=no
11924 fi
11925 fi
11926 rm -fr conftest*
11927
11928
11929 fi
11930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11931 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11932 fi
11933
11934 CPPFLAGS=$save_CPPFLAGS
11935 LDFLAGS=$save_LDFLAGS
11936 LIBS=$save_LIBS
11937 ;;
11938 esac
11939
11940 case $lt_cv_dlopen_self in
11941 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11942 *) enable_dlopen_self=unknown ;;
11943 esac
11944
11945 case $lt_cv_dlopen_self_static in
11946 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11947 *) enable_dlopen_self_static=unknown ;;
11948 esac
11949 fi
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967 striplib=
11968 old_striplib=
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11970 printf %s "checking whether stripping libraries is possible... " >&6; }
11971 if test -z "$STRIP"; then
11972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 printf "%s\n" "no" >&6; }
11974 else
11975 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11976 old_striplib="$STRIP --strip-debug"
11977 striplib="$STRIP --strip-unneeded"
11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979 printf "%s\n" "yes" >&6; }
11980 else
11981 case $host_os in
11982 darwin*)
11983 # FIXME - insert some real tests, host_os isn't really good enough
11984 striplib="$STRIP -x"
11985 old_striplib="$STRIP -S"
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 printf "%s\n" "yes" >&6; }
11988 ;;
11989 freebsd*)
11990 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11991 old_striplib="$STRIP --strip-debug"
11992 striplib="$STRIP --strip-unneeded"
11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 printf "%s\n" "yes" >&6; }
11995 else
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 printf "%s\n" "no" >&6; }
11998 fi
11999 ;;
12000 *)
12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 printf "%s\n" "no" >&6; }
12003 ;;
12004 esac
12005 fi
12006 fi
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 # Report what library types will actually be built
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12021 printf %s "checking if libtool supports shared libraries... " >&6; }
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12023 printf "%s\n" "$can_build_shared" >&6; }
12024
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12026 printf %s "checking whether to build shared libraries... " >&6; }
12027 test no = "$can_build_shared" && enable_shared=no
12028
12029 # On AIX, shared libraries and static libraries use the same namespace, and
12030 # are all built from PIC.
12031 case $host_os in
12032 aix3*)
12033 test yes = "$enable_shared" && enable_static=no
12034 if test -n "$RANLIB"; then
12035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12036 postinstall_cmds='$RANLIB $lib'
12037 fi
12038 ;;
12039
12040 aix[4-9]*)
12041 if test ia64 != "$host_cpu"; then
12042 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12043 yes,aix,yes) ;; # shared object as lib.so file only
12044 yes,svr4,*) ;; # shared object as lib.so archive member only
12045 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12046 esac
12047 fi
12048 ;;
12049 esac
12050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12051 printf "%s\n" "$enable_shared" >&6; }
12052
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12054 printf %s "checking whether to build static libraries... " >&6; }
12055 # Make sure either enable_shared or enable_static is yes.
12056 test yes = "$enable_shared" || enable_static=yes
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12058 printf "%s\n" "$enable_static" >&6; }
12059
12060
12061
12062
12063 fi
12064 ac_ext=c
12065 ac_cpp='$CPP $CPPFLAGS'
12066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12069
12070 CC=$lt_save_CC
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086 ac_config_commands="$ac_config_commands libtool"
12087
12088
12089
12090
12091 # Only expand once:
12092
12093
12094 am__api_version='1.16'
12095
12096
12097 # Find a good install program. We prefer a C program (faster),
12098 # so one script is as good as another. But avoid the broken or
12099 # incompatible versions:
12100 # SysV /etc/install, /usr/sbin/install
12101 # SunOS /usr/etc/install
12102 # IRIX /sbin/install
12103 # AIX /bin/install
12104 # AmigaOS /C/install, which installs bootblocks on floppy discs
12105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12108 # OS/2's system install, which has a completely different semantic
12109 # ./install, which can be erroneously created by make from ./install.sh.
12110 # Reject install programs that cannot install multiple files.
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12112 printf %s "checking for a BSD-compatible install... " >&6; }
12113 if test -z "$INSTALL"; then
12114 if test ${ac_cv_path_install+y}
12115 then :
12116 printf %s "(cached) " >&6
12117 else $as_nop
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121 IFS=$as_save_IFS
12122 case $as_dir in #(((
12123 '') as_dir=./ ;;
12124 */) ;;
12125 *) as_dir=$as_dir/ ;;
12126 esac
12127 # Account for fact that we put trailing slashes in our PATH walk.
12128 case $as_dir in #((
12129 ./ | /[cC]/* | \
12130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12131 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12132 /usr/ucb/* ) ;;
12133 *)
12134 # OSF1 and SCO ODT 3.0 have their own names for install.
12135 # Don't use installbsd from OSF since it installs stuff as root
12136 # by default.
12137 for ac_prog in ginstall scoinst install; do
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12140 if test $ac_prog = install &&
12141 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12142 # AIX install. It has an incompatible calling convention.
12143 :
12144 elif test $ac_prog = install &&
12145 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12146 # program-specific install script used by HP pwplus--don't use.
12147 :
12148 else
12149 rm -rf conftest.one conftest.two conftest.dir
12150 echo one > conftest.one
12151 echo two > conftest.two
12152 mkdir conftest.dir
12153 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12154 test -s conftest.one && test -s conftest.two &&
12155 test -s conftest.dir/conftest.one &&
12156 test -s conftest.dir/conftest.two
12157 then
12158 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12159 break 3
12160 fi
12161 fi
12162 fi
12163 done
12164 done
12165 ;;
12166 esac
12167
12168 done
12169 IFS=$as_save_IFS
12170
12171 rm -rf conftest.one conftest.two conftest.dir
12172
12173 fi
12174 if test ${ac_cv_path_install+y}; then
12175 INSTALL=$ac_cv_path_install
12176 else
12177 # As a last resort, use the slow shell script. Don't cache a
12178 # value for INSTALL within a source directory, because that will
12179 # break other packages using the cache if that directory is
12180 # removed, or if the value is a relative name.
12181 INSTALL=$ac_install_sh
12182 fi
12183 fi
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12185 printf "%s\n" "$INSTALL" >&6; }
12186
12187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12188 # It thinks the first close brace ends the variable substitution.
12189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12190
12191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12192
12193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12194
12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12196 printf %s "checking whether build environment is sane... " >&6; }
12197 # Reject unsafe characters in $srcdir or the absolute working directory
12198 # name. Accept space and tab only in the latter.
12199 am_lf='
12200 '
12201 case `pwd` in
12202 *[\\\"\#\$\&\'\`$am_lf]*)
12203 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12204 esac
12205 case $srcdir in
12206 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12207 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12208 esac
12209
12210 # Do 'set' in a subshell so we don't clobber the current shell's
12211 # arguments. Must try -L first in case configure is actually a
12212 # symlink; some systems play weird games with the mod time of symlinks
12213 # (eg FreeBSD returns the mod time of the symlink's containing
12214 # directory).
12215 if (
12216 am_has_slept=no
12217 for am_try in 1 2; do
12218 echo "timestamp, slept: $am_has_slept" > conftest.file
12219 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12220 if test "$*" = "X"; then
12221 # -L didn't work.
12222 set X `ls -t "$srcdir/configure" conftest.file`
12223 fi
12224 if test "$*" != "X $srcdir/configure conftest.file" \
12225 && test "$*" != "X conftest.file $srcdir/configure"; then
12226
12227 # If neither matched, then we have a broken ls. This can happen
12228 # if, for instance, CONFIG_SHELL is bash and it inherits a
12229 # broken ls alias from the environment. This has actually
12230 # happened. Such a system could not be considered "sane".
12231 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12232 alias in your environment" "$LINENO" 5
12233 fi
12234 if test "$2" = conftest.file || test $am_try -eq 2; then
12235 break
12236 fi
12237 # Just in case.
12238 sleep 1
12239 am_has_slept=yes
12240 done
12241 test "$2" = conftest.file
12242 )
12243 then
12244 # Ok.
12245 :
12246 else
12247 as_fn_error $? "newly created file is older than distributed files!
12248 Check your system clock" "$LINENO" 5
12249 fi
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251 printf "%s\n" "yes" >&6; }
12252 # If we didn't sleep, we still need to ensure time stamps of config.status and
12253 # generated files are strictly newer.
12254 am_sleep_pid=
12255 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12256 ( sleep 1 ) &
12257 am_sleep_pid=$!
12258 fi
12259
12260 rm -f conftest.file
12261
12262 test "$program_prefix" != NONE &&
12263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12264 # Use a double $ so make ignores it.
12265 test "$program_suffix" != NONE &&
12266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12267 # Double any \ or $.
12268 # By default was `s,x,x', remove it if useless.
12269 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12270 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
12271
12272
12273 if test x"${MISSING+set}" != xset; then
12274 MISSING="\${SHELL} '$am_aux_dir/missing'"
12275 fi
12276 # Use eval to expand $SHELL
12277 if eval "$MISSING --is-lightweight"; then
12278 am_missing_run="$MISSING "
12279 else
12280 am_missing_run=
12281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12282 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12283 fi
12284
12285 if test x"${install_sh+set}" != xset; then
12286 case $am_aux_dir in
12287 *\ * | *\ *)
12288 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12289 *)
12290 install_sh="\${SHELL} $am_aux_dir/install-sh"
12291 esac
12292 fi
12293
12294 # Installed binaries are usually stripped using 'strip' when the user
12295 # run "make install-strip". However 'strip' might not be the right
12296 # tool to use in cross-compilation environments, therefore Automake
12297 # will honor the 'STRIP' environment variable to overrule this program.
12298 if test "$cross_compiling" != no; then
12299 if test -n "$ac_tool_prefix"; then
12300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12301 set dummy ${ac_tool_prefix}strip; ac_word=$2
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 printf %s "checking for $ac_word... " >&6; }
12304 if test ${ac_cv_prog_STRIP+y}
12305 then :
12306 printf %s "(cached) " >&6
12307 else $as_nop
12308 if test -n "$STRIP"; then
12309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314 IFS=$as_save_IFS
12315 case $as_dir in #(((
12316 '') as_dir=./ ;;
12317 */) ;;
12318 *) as_dir=$as_dir/ ;;
12319 esac
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330 fi
12331 fi
12332 STRIP=$ac_cv_prog_STRIP
12333 if test -n "$STRIP"; then
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12335 printf "%s\n" "$STRIP" >&6; }
12336 else
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 printf "%s\n" "no" >&6; }
12339 fi
12340
12341
12342 fi
12343 if test -z "$ac_cv_prog_STRIP"; then
12344 ac_ct_STRIP=$STRIP
12345 # Extract the first word of "strip", so it can be a program name with args.
12346 set dummy strip; ac_word=$2
12347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 printf %s "checking for $ac_word... " >&6; }
12349 if test ${ac_cv_prog_ac_ct_STRIP+y}
12350 then :
12351 printf %s "(cached) " >&6
12352 else $as_nop
12353 if test -n "$ac_ct_STRIP"; then
12354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359 IFS=$as_save_IFS
12360 case $as_dir in #(((
12361 '') as_dir=./ ;;
12362 */) ;;
12363 *) as_dir=$as_dir/ ;;
12364 esac
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12367 ac_cv_prog_ac_ct_STRIP="strip"
12368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12369 break 2
12370 fi
12371 done
12372 done
12373 IFS=$as_save_IFS
12374
12375 fi
12376 fi
12377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12378 if test -n "$ac_ct_STRIP"; then
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12380 printf "%s\n" "$ac_ct_STRIP" >&6; }
12381 else
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 printf "%s\n" "no" >&6; }
12384 fi
12385
12386 if test "x$ac_ct_STRIP" = x; then
12387 STRIP=":"
12388 else
12389 case $cross_compiling:$ac_tool_warned in
12390 yes:)
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393 ac_tool_warned=yes ;;
12394 esac
12395 STRIP=$ac_ct_STRIP
12396 fi
12397 else
12398 STRIP="$ac_cv_prog_STRIP"
12399 fi
12400
12401 fi
12402 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12403
12404
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
12406 printf %s "checking for a race-free mkdir -p... " >&6; }
12407 if test -z "$MKDIR_P"; then
12408 if test ${ac_cv_path_mkdir+y}
12409 then :
12410 printf %s "(cached) " >&6
12411 else $as_nop
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12414 do
12415 IFS=$as_save_IFS
12416 case $as_dir in #(((
12417 '') as_dir=./ ;;
12418 */) ;;
12419 *) as_dir=$as_dir/ ;;
12420 esac
12421 for ac_prog in mkdir gmkdir; do
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
12424 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
12425 'mkdir ('*'coreutils) '* | \
12426 'BusyBox '* | \
12427 'mkdir (fileutils) '4.1*)
12428 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
12429 break 3;;
12430 esac
12431 done
12432 done
12433 done
12434 IFS=$as_save_IFS
12435
12436 fi
12437
12438 test -d ./--version && rmdir ./--version
12439 if test ${ac_cv_path_mkdir+y}; then
12440 MKDIR_P="$ac_cv_path_mkdir -p"
12441 else
12442 # As a last resort, use the slow shell script. Don't cache a
12443 # value for MKDIR_P within a source directory, because that will
12444 # break other packages using the cache if that directory is
12445 # removed, or if the value is a relative name.
12446 MKDIR_P="$ac_install_sh -d"
12447 fi
12448 fi
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12450 printf "%s\n" "$MKDIR_P" >&6; }
12451
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12453 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12454 set x ${MAKE-make}
12455 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12456 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
12457 then :
12458 printf %s "(cached) " >&6
12459 else $as_nop
12460 cat >conftest.make <<\_ACEOF
12461 SHELL = /bin/sh
12462 all:
12463 @echo '@@@%%%=$(MAKE)=@@@%%%'
12464 _ACEOF
12465 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12466 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12467 *@@@%%%=?*=@@@%%%*)
12468 eval ac_cv_prog_make_${ac_make}_set=yes;;
12469 *)
12470 eval ac_cv_prog_make_${ac_make}_set=no;;
12471 esac
12472 rm -f conftest.make
12473 fi
12474 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476 printf "%s\n" "yes" >&6; }
12477 SET_MAKE=
12478 else
12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 printf "%s\n" "no" >&6; }
12481 SET_MAKE="MAKE=${MAKE-make}"
12482 fi
12483
12484 rm -rf .tst 2>/dev/null
12485 mkdir .tst 2>/dev/null
12486 if test -d .tst; then
12487 am__leading_dot=.
12488 else
12489 am__leading_dot=_
12490 fi
12491 rmdir .tst 2>/dev/null
12492
12493 DEPDIR="${am__leading_dot}deps"
12494
12495 ac_config_commands="$ac_config_commands depfiles"
12496
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12498 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
12499 cat > confinc.mk << 'END'
12500 am__doit:
12501 @echo this is the am__doit target >confinc.out
12502 .PHONY: am__doit
12503 END
12504 am__include="#"
12505 am__quote=
12506 # BSD make does it like this.
12507 echo '.include "confinc.mk" # ignored' > confmf.BSD
12508 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12509 echo 'include confinc.mk # ignored' > confmf.GNU
12510 _am_result=no
12511 for s in GNU BSD; do
12512 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12513 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }
12517 case $?:`cat confinc.out 2>/dev/null` in #(
12518 '0:this is the am__doit target') :
12519 case $s in #(
12520 BSD) :
12521 am__include='.include' am__quote='"' ;; #(
12522 *) :
12523 am__include='include' am__quote='' ;;
12524 esac ;; #(
12525 *) :
12526 ;;
12527 esac
12528 if test "$am__include" != "#"; then
12529 _am_result="yes ($s style)"
12530 break
12531 fi
12532 done
12533 rm -f confinc.* confmf.*
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12535 printf "%s\n" "${_am_result}" >&6; }
12536
12537 # Check whether --enable-dependency-tracking was given.
12538 if test ${enable_dependency_tracking+y}
12539 then :
12540 enableval=$enable_dependency_tracking;
12541 fi
12542
12543 if test "x$enable_dependency_tracking" != xno; then
12544 am_depcomp="$ac_aux_dir/depcomp"
12545 AMDEPBACKSLASH='\'
12546 am__nodep='_no'
12547 fi
12548 if test "x$enable_dependency_tracking" != xno; then
12549 AMDEP_TRUE=
12550 AMDEP_FALSE='#'
12551 else
12552 AMDEP_TRUE='#'
12553 AMDEP_FALSE=
12554 fi
12555
12556
12557 # Check whether --enable-silent-rules was given.
12558 if test ${enable_silent_rules+y}
12559 then :
12560 enableval=$enable_silent_rules;
12561 fi
12562
12563 case $enable_silent_rules in # (((
12564 yes) AM_DEFAULT_VERBOSITY=0;;
12565 no) AM_DEFAULT_VERBOSITY=1;;
12566 *) AM_DEFAULT_VERBOSITY=1;;
12567 esac
12568 am_make=${MAKE-make}
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12570 printf %s "checking whether $am_make supports nested variables... " >&6; }
12571 if test ${am_cv_make_support_nested_variables+y}
12572 then :
12573 printf %s "(cached) " >&6
12574 else $as_nop
12575 if printf "%s\n" 'TRUE=$(BAR$(V))
12576 BAR0=false
12577 BAR1=true
12578 V=1
12579 am__doit:
12580 @$(TRUE)
12581 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12582 am_cv_make_support_nested_variables=yes
12583 else
12584 am_cv_make_support_nested_variables=no
12585 fi
12586 fi
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12588 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12589 if test $am_cv_make_support_nested_variables = yes; then
12590 AM_V='$(V)'
12591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12592 else
12593 AM_V=$AM_DEFAULT_VERBOSITY
12594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12595 fi
12596 AM_BACKSLASH='\'
12597
12598 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12599 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12600 # is not polluted with repeated "-I."
12601 am__isrc=' -I$(srcdir)'
12602 # test to see if srcdir already configured
12603 if test -f $srcdir/config.status; then
12604 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12605 fi
12606 fi
12607
12608 # test whether we have cygpath
12609 if test -z "$CYGPATH_W"; then
12610 if (cygpath --version) >/dev/null 2>/dev/null; then
12611 CYGPATH_W='cygpath -w'
12612 else
12613 CYGPATH_W=echo
12614 fi
12615 fi
12616
12617
12618 # Define the identity of the package.
12619 PACKAGE='lightdm-gtk-greeter'
12620 VERSION='2.0.9'
12621
12622
12623 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
12624
12625
12626 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
12627
12628 # Some tools Automake needs.
12629
12630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12631
12632
12633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12634
12635
12636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12637
12638
12639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12640
12641
12642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12643
12644 # For better backward compatibility. To be removed once Automake 1.9.x
12645 # dies out for good. For more background, see:
12646 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12647 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12648 mkdir_p='$(MKDIR_P)'
12649
12650 # We need awk for the "check" target (and possibly the TAP driver). The
12651 # system "awk" is bad on some platforms.
12652 # Always define AMTAR for backward compatibility. Yes, it's still used
12653 # in the wild :-( We should find a proper way to deprecate it ...
12654 AMTAR='$${TAR-tar}'
12655
12656
12657 # We'll loop over all known methods to create a tar archive until one works.
12658 _am_tools='gnutar plaintar pax cpio none'
12659
12660 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
12661 # There is notably a 21 bits limit for the UID and the GID. In fact,
12662 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
12663 # and bug#13588).
12664 am_max_uid=2097151 # 2^21 - 1
12665 am_max_gid=$am_max_uid
12666 # The $UID and $GID variables are not portable, so we need to resort
12667 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
12668 # below are definitely unexpected, so allow the users to see them
12669 # (that is, avoid stderr redirection).
12670 am_uid=`id -u || echo unknown`
12671 am_gid=`id -g || echo unknown`
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
12673 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
12674 if test $am_uid -le $am_max_uid; then
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12676 printf "%s\n" "yes" >&6; }
12677 else
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 printf "%s\n" "no" >&6; }
12680 _am_tools=none
12681 fi
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
12683 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
12684 if test $am_gid -le $am_max_gid; then
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12686 printf "%s\n" "yes" >&6; }
12687 else
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 printf "%s\n" "no" >&6; }
12690 _am_tools=none
12691 fi
12692
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
12694 printf %s "checking how to create a ustar tar archive... " >&6; }
12695
12696 # Go ahead even if we have the value already cached. We do so because we
12697 # need to set the values for the 'am__tar' and 'am__untar' variables.
12698 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
12699
12700 for _am_tool in $_am_tools; do
12701 case $_am_tool in
12702 gnutar)
12703 for _am_tar in tar gnutar gtar; do
12704 { echo "$as_me:$LINENO: $_am_tar --version" >&5
12705 ($_am_tar --version) >&5 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } && break
12709 done
12710 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
12711 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
12712 am__untar="$_am_tar -xf -"
12713 ;;
12714 plaintar)
12715 # Must skip GNU tar: if it does not support --format= it doesn't create
12716 # ustar tarball either.
12717 (tar --version) >/dev/null 2>&1 && continue
12718 am__tar='tar chf - "$$tardir"'
12719 am__tar_='tar chf - "$tardir"'
12720 am__untar='tar xf -'
12721 ;;
12722 pax)
12723 am__tar='pax -L -x ustar -w "$$tardir"'
12724 am__tar_='pax -L -x ustar -w "$tardir"'
12725 am__untar='pax -r'
12726 ;;
12727 cpio)
12728 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
12729 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
12730 am__untar='cpio -i -H ustar -d'
12731 ;;
12732 none)
12733 am__tar=false
12734 am__tar_=false
12735 am__untar=false
12736 ;;
12737 esac
12738
12739 # If the value was cached, stop now. We just wanted to have am__tar
12740 # and am__untar set.
12741 test -n "${am_cv_prog_tar_ustar}" && break
12742
12743 # tar/untar a dummy directory, and stop if the command works.
12744 rm -rf conftest.dir
12745 mkdir conftest.dir
12746 echo GrepMe > conftest.dir/file
12747 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
12748 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }
12752 rm -rf conftest.dir
12753 if test -s conftest.tar; then
12754 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
12755 ($am__untar <conftest.tar) >&5 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }
12759 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
12760 (cat conftest.dir/file) >&5 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }
12764 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
12765 fi
12766 done
12767 rm -rf conftest.dir
12768
12769 if test ${am_cv_prog_tar_ustar+y}
12770 then :
12771 printf %s "(cached) " >&6
12772 else $as_nop
12773 am_cv_prog_tar_ustar=$_am_tool
12774 fi
12775
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
12777 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
12778
12779
12780
12781
12782
12783 depcc="$CC" am_compiler_list=
12784
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12786 printf %s "checking dependency style of $depcc... " >&6; }
12787 if test ${am_cv_CC_dependencies_compiler_type+y}
12788 then :
12789 printf %s "(cached) " >&6
12790 else $as_nop
12791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12792 # We make a subdir and do the tests there. Otherwise we can end up
12793 # making bogus files that we don't know about and never remove. For
12794 # instance it was reported that on HP-UX the gcc test will end up
12795 # making a dummy file named 'D' -- because '-MD' means "put the output
12796 # in D".
12797 rm -rf conftest.dir
12798 mkdir conftest.dir
12799 # Copy depcomp to subdir because otherwise we won't find it if we're
12800 # using a relative directory.
12801 cp "$am_depcomp" conftest.dir
12802 cd conftest.dir
12803 # We will build objects and dependencies in a subdirectory because
12804 # it helps to detect inapplicable dependency modes. For instance
12805 # both Tru64's cc and ICC support -MD to output dependencies as a
12806 # side effect of compilation, but ICC will put the dependencies in
12807 # the current directory while Tru64 will put them in the object
12808 # directory.
12809 mkdir sub
12810
12811 am_cv_CC_dependencies_compiler_type=none
12812 if test "$am_compiler_list" = ""; then
12813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12814 fi
12815 am__universal=false
12816 case " $depcc " in #(
12817 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12818 esac
12819
12820 for depmode in $am_compiler_list; do
12821 # Setup a source with many dependencies, because some compilers
12822 # like to wrap large dependency lists on column 80 (with \), and
12823 # we should not choose a depcomp mode which is confused by this.
12824 #
12825 # We need to recreate these files for each test, as the compiler may
12826 # overwrite some of them when testing with obscure command lines.
12827 # This happens at least with the AIX C compiler.
12828 : > sub/conftest.c
12829 for i in 1 2 3 4 5 6; do
12830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12831 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12832 # Solaris 10 /bin/sh.
12833 echo '/* dummy */' > sub/conftst$i.h
12834 done
12835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12836
12837 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12838 # mode. It turns out that the SunPro C++ compiler does not properly
12839 # handle '-M -o', and we need to detect this. Also, some Intel
12840 # versions had trouble with output in subdirs.
12841 am__obj=sub/conftest.${OBJEXT-o}
12842 am__minus_obj="-o $am__obj"
12843 case $depmode in
12844 gcc)
12845 # This depmode causes a compiler race in universal mode.
12846 test "$am__universal" = false || continue
12847 ;;
12848 nosideeffect)
12849 # After this tag, mechanisms are not by side-effect, so they'll
12850 # only be used when explicitly requested.
12851 if test "x$enable_dependency_tracking" = xyes; then
12852 continue
12853 else
12854 break
12855 fi
12856 ;;
12857 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12858 # This compiler won't grok '-c -o', but also, the minuso test has
12859 # not run yet. These depmodes are late enough in the game, and
12860 # so weak that their functioning should not be impacted.
12861 am__obj=conftest.${OBJEXT-o}
12862 am__minus_obj=
12863 ;;
12864 none) break ;;
12865 esac
12866 if depmode=$depmode \
12867 source=sub/conftest.c object=$am__obj \
12868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12870 >/dev/null 2>conftest.err &&
12871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12875 # icc doesn't choke on unknown options, it will just issue warnings
12876 # or remarks (even with -Werror). So we grep stderr for any message
12877 # that says an option was ignored or not supported.
12878 # When given -MP, icc 7.0 and 7.1 complain thusly:
12879 # icc: Command line warning: ignoring option '-M'; no argument required
12880 # The diagnosis changed in icc 8.0:
12881 # icc: Command line remark: option '-MP' not supported
12882 if (grep 'ignoring option' conftest.err ||
12883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12884 am_cv_CC_dependencies_compiler_type=$depmode
12885 break
12886 fi
12887 fi
12888 done
12889
12890 cd ..
12891 rm -rf conftest.dir
12892 else
12893 am_cv_CC_dependencies_compiler_type=none
12894 fi
12895
12896 fi
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12898 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
12899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12900
12901 if
12902 test "x$enable_dependency_tracking" != xno \
12903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12904 am__fastdepCC_TRUE=
12905 am__fastdepCC_FALSE='#'
12906 else
12907 am__fastdepCC_TRUE='#'
12908 am__fastdepCC_FALSE=
12909 fi
12910
12911
12912 # Variables for tags utilities; see am/tags.am
12913 if test -z "$CTAGS"; then
12914 CTAGS=ctags
12915 fi
12916
12917 if test -z "$ETAGS"; then
12918 ETAGS=etags
12919 fi
12920
12921 if test -z "$CSCOPE"; then
12922 CSCOPE=cscope
12923 fi
12924
12925
12926
12927 # POSIX will say in a future version that running "rm -f" with no argument
12928 # is OK; and we want to be able to make that assumption in our Makefile
12929 # recipes. So use an aggressive probe to check that the usage we want is
12930 # actually supported "in the wild" to an acceptable degree.
12931 # See automake bug#10828.
12932 # To make any issue more visible, cause the running configure to be aborted
12933 # by default if the 'rm' program in use doesn't match our expectations; the
12934 # user can still override this though.
12935 if rm -f && rm -fr && rm -rf; then : OK; else
12936 cat >&2 <<'END'
12937 Oops!
12938
12939 Your 'rm' program seems unable to run without file operands specified
12940 on the command line, even when the '-f' option is present. This is contrary
12941 to the behaviour of most rm programs out there, and not conforming with
12942 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12943
12944 Please tell [email protected] about your system, including the value
12945 of your $PATH and any error possibly output before this message. This
12946 can help us improve future automake versions.
12947
12948 END
12949 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12950 echo 'Configuration will proceed anyway, since you have set the' >&2
12951 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12952 echo >&2
12953 else
12954 cat >&2 <<'END'
12955 Aborting the configuration process, to ensure you take notice of the issue.
12956
12957 You can download and install GNU coreutils to get an 'rm' implementation
12958 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12959
12960 If you want to complete the configuration process using your problematic
12961 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12962 to "yes", and re-run configure.
12963
12964 END
12965 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12966 fi
12967 fi
12968
12969
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12971 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12972 # Check whether --enable-maintainer-mode was given.
12973 if test ${enable_maintainer_mode+y}
12974 then :
12975 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12976 else $as_nop
12977 USE_MAINTAINER_MODE=yes
12978 fi
12979
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12981 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12982 if test $USE_MAINTAINER_MODE = yes; then
12983 MAINTAINER_MODE_TRUE=
12984 MAINTAINER_MODE_FALSE='#'
12985 else
12986 MAINTAINER_MODE_TRUE='#'
12987 MAINTAINER_MODE_FALSE=
12988 fi
12989
12990 MAINT=$MAINTAINER_MODE_TRUE
12991
12992
12993
12994 # Use AM_SILENT_RULES if present
12995 # Check whether --enable-silent-rules was given.
12996 if test ${enable_silent_rules+y}
12997 then :
12998 enableval=$enable_silent_rules;
12999 fi
13000
13001 case $enable_silent_rules in # (((
13002 yes) AM_DEFAULT_VERBOSITY=0;;
13003 no) AM_DEFAULT_VERBOSITY=1;;
13004 *) AM_DEFAULT_VERBOSITY=0;;
13005 esac
13006 am_make=${MAKE-make}
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13008 printf %s "checking whether $am_make supports nested variables... " >&6; }
13009 if test ${am_cv_make_support_nested_variables+y}
13010 then :
13011 printf %s "(cached) " >&6
13012 else $as_nop
13013 if printf "%s\n" 'TRUE=$(BAR$(V))
13014 BAR0=false
13015 BAR1=true
13016 V=1
13017 am__doit:
13018 @$(TRUE)
13019 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13020 am_cv_make_support_nested_variables=yes
13021 else
13022 am_cv_make_support_nested_variables=no
13023 fi
13024 fi
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13026 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13027 if test $am_cv_make_support_nested_variables = yes; then
13028 AM_V='$(V)'
13029 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13030 else
13031 AM_V=$AM_DEFAULT_VERBOSITY
13032 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13033 fi
13034 AM_BACKSLASH='\'
13035
13036
13037 ac_ext=c
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13042 if test -n "$ac_tool_prefix"; then
13043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 printf %s "checking for $ac_word... " >&6; }
13047 if test ${ac_cv_prog_CC+y}
13048 then :
13049 printf %s "(cached) " >&6
13050 else $as_nop
13051 if test -n "$CC"; then
13052 ac_cv_prog_CC="$CC" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057 IFS=$as_save_IFS
13058 case $as_dir in #(((
13059 '') as_dir=./ ;;
13060 */) ;;
13061 *) as_dir=$as_dir/ ;;
13062 esac
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069 done
13070 done
13071 IFS=$as_save_IFS
13072
13073 fi
13074 fi
13075 CC=$ac_cv_prog_CC
13076 if test -n "$CC"; then
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13078 printf "%s\n" "$CC" >&6; }
13079 else
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 printf "%s\n" "no" >&6; }
13082 fi
13083
13084
13085 fi
13086 if test -z "$ac_cv_prog_CC"; then
13087 ac_ct_CC=$CC
13088 # Extract the first word of "gcc", so it can be a program name with args.
13089 set dummy gcc; ac_word=$2
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 printf %s "checking for $ac_word... " >&6; }
13092 if test ${ac_cv_prog_ac_ct_CC+y}
13093 then :
13094 printf %s "(cached) " >&6
13095 else $as_nop
13096 if test -n "$ac_ct_CC"; then
13097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102 IFS=$as_save_IFS
13103 case $as_dir in #(((
13104 '') as_dir=./ ;;
13105 */) ;;
13106 *) as_dir=$as_dir/ ;;
13107 esac
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13110 ac_cv_prog_ac_ct_CC="gcc"
13111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13121 if test -n "$ac_ct_CC"; then
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13123 printf "%s\n" "$ac_ct_CC" >&6; }
13124 else
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 printf "%s\n" "no" >&6; }
13127 fi
13128
13129 if test "x$ac_ct_CC" = x; then
13130 CC=""
13131 else
13132 case $cross_compiling:$ac_tool_warned in
13133 yes:)
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13137 esac
13138 CC=$ac_ct_CC
13139 fi
13140 else
13141 CC="$ac_cv_prog_CC"
13142 fi
13143
13144 if test -z "$CC"; then
13145 if test -n "$ac_tool_prefix"; then
13146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13147 set dummy ${ac_tool_prefix}cc; ac_word=$2
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 printf %s "checking for $ac_word... " >&6; }
13150 if test ${ac_cv_prog_CC+y}
13151 then :
13152 printf %s "(cached) " >&6
13153 else $as_nop
13154 if test -n "$CC"; then
13155 ac_cv_prog_CC="$CC" # Let the user override the test.
13156 else
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13159 do
13160 IFS=$as_save_IFS
13161 case $as_dir in #(((
13162 '') as_dir=./ ;;
13163 */) ;;
13164 *) as_dir=$as_dir/ ;;
13165 esac
13166 for ac_exec_ext in '' $ac_executable_extensions; do
13167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13168 ac_cv_prog_CC="${ac_tool_prefix}cc"
13169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13170 break 2
13171 fi
13172 done
13173 done
13174 IFS=$as_save_IFS
13175
13176 fi
13177 fi
13178 CC=$ac_cv_prog_CC
13179 if test -n "$CC"; then
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13181 printf "%s\n" "$CC" >&6; }
13182 else
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 printf "%s\n" "no" >&6; }
13185 fi
13186
13187
13188 fi
13189 fi
13190 if test -z "$CC"; then
13191 # Extract the first word of "cc", so it can be a program name with args.
13192 set dummy cc; ac_word=$2
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 printf %s "checking for $ac_word... " >&6; }
13195 if test ${ac_cv_prog_CC+y}
13196 then :
13197 printf %s "(cached) " >&6
13198 else $as_nop
13199 if test -n "$CC"; then
13200 ac_cv_prog_CC="$CC" # Let the user override the test.
13201 else
13202 ac_prog_rejected=no
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206 IFS=$as_save_IFS
13207 case $as_dir in #(((
13208 '') as_dir=./ ;;
13209 */) ;;
13210 *) as_dir=$as_dir/ ;;
13211 esac
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13214 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13215 ac_prog_rejected=yes
13216 continue
13217 fi
13218 ac_cv_prog_CC="cc"
13219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 if test $ac_prog_rejected = yes; then
13227 # We found a bogon in the path, so make sure we never use it.
13228 set dummy $ac_cv_prog_CC
13229 shift
13230 if test $# != 0; then
13231 # We chose a different compiler from the bogus one.
13232 # However, it has the same basename, so the bogon will be chosen
13233 # first if we set CC to just the basename; use the full file name.
13234 shift
13235 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13236 fi
13237 fi
13238 fi
13239 fi
13240 CC=$ac_cv_prog_CC
13241 if test -n "$CC"; then
13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13243 printf "%s\n" "$CC" >&6; }
13244 else
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 printf "%s\n" "no" >&6; }
13247 fi
13248
13249
13250 fi
13251 if test -z "$CC"; then
13252 if test -n "$ac_tool_prefix"; then
13253 for ac_prog in cl.exe
13254 do
13255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 printf %s "checking for $ac_word... " >&6; }
13259 if test ${ac_cv_prog_CC+y}
13260 then :
13261 printf %s "(cached) " >&6
13262 else $as_nop
13263 if test -n "$CC"; then
13264 ac_cv_prog_CC="$CC" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269 IFS=$as_save_IFS
13270 case $as_dir in #(((
13271 '') as_dir=./ ;;
13272 */) ;;
13273 *) as_dir=$as_dir/ ;;
13274 esac
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13279 break 2
13280 fi
13281 done
13282 done
13283 IFS=$as_save_IFS
13284
13285 fi
13286 fi
13287 CC=$ac_cv_prog_CC
13288 if test -n "$CC"; then
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13290 printf "%s\n" "$CC" >&6; }
13291 else
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 printf "%s\n" "no" >&6; }
13294 fi
13295
13296
13297 test -n "$CC" && break
13298 done
13299 fi
13300 if test -z "$CC"; then
13301 ac_ct_CC=$CC
13302 for ac_prog in cl.exe
13303 do
13304 # Extract the first word of "$ac_prog", so it can be a program name with args.
13305 set dummy $ac_prog; ac_word=$2
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 printf %s "checking for $ac_word... " >&6; }
13308 if test ${ac_cv_prog_ac_ct_CC+y}
13309 then :
13310 printf %s "(cached) " >&6
13311 else $as_nop
13312 if test -n "$ac_ct_CC"; then
13313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318 IFS=$as_save_IFS
13319 case $as_dir in #(((
13320 '') as_dir=./ ;;
13321 */) ;;
13322 *) as_dir=$as_dir/ ;;
13323 esac
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13326 ac_cv_prog_ac_ct_CC="$ac_prog"
13327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13328 break 2
13329 fi
13330 done
13331 done
13332 IFS=$as_save_IFS
13333
13334 fi
13335 fi
13336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13337 if test -n "$ac_ct_CC"; then
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13339 printf "%s\n" "$ac_ct_CC" >&6; }
13340 else
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 printf "%s\n" "no" >&6; }
13343 fi
13344
13345
13346 test -n "$ac_ct_CC" && break
13347 done
13348
13349 if test "x$ac_ct_CC" = x; then
13350 CC=""
13351 else
13352 case $cross_compiling:$ac_tool_warned in
13353 yes:)
13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356 ac_tool_warned=yes ;;
13357 esac
13358 CC=$ac_ct_CC
13359 fi
13360 fi
13361
13362 fi
13363 if test -z "$CC"; then
13364 if test -n "$ac_tool_prefix"; then
13365 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13366 set dummy ${ac_tool_prefix}clang; ac_word=$2
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 printf %s "checking for $ac_word... " >&6; }
13369 if test ${ac_cv_prog_CC+y}
13370 then :
13371 printf %s "(cached) " >&6
13372 else $as_nop
13373 if test -n "$CC"; then
13374 ac_cv_prog_CC="$CC" # Let the user override the test.
13375 else
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13378 do
13379 IFS=$as_save_IFS
13380 case $as_dir in #(((
13381 '') as_dir=./ ;;
13382 */) ;;
13383 *) as_dir=$as_dir/ ;;
13384 esac
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13387 ac_cv_prog_CC="${ac_tool_prefix}clang"
13388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13389 break 2
13390 fi
13391 done
13392 done
13393 IFS=$as_save_IFS
13394
13395 fi
13396 fi
13397 CC=$ac_cv_prog_CC
13398 if test -n "$CC"; then
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13400 printf "%s\n" "$CC" >&6; }
13401 else
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 printf "%s\n" "no" >&6; }
13404 fi
13405
13406
13407 fi
13408 if test -z "$ac_cv_prog_CC"; then
13409 ac_ct_CC=$CC
13410 # Extract the first word of "clang", so it can be a program name with args.
13411 set dummy clang; ac_word=$2
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 printf %s "checking for $ac_word... " >&6; }
13414 if test ${ac_cv_prog_ac_ct_CC+y}
13415 then :
13416 printf %s "(cached) " >&6
13417 else $as_nop
13418 if test -n "$ac_ct_CC"; then
13419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424 IFS=$as_save_IFS
13425 case $as_dir in #(((
13426 '') as_dir=./ ;;
13427 */) ;;
13428 *) as_dir=$as_dir/ ;;
13429 esac
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_ac_ct_CC="clang"
13433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 fi
13441 fi
13442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13443 if test -n "$ac_ct_CC"; then
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13445 printf "%s\n" "$ac_ct_CC" >&6; }
13446 else
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 printf "%s\n" "no" >&6; }
13449 fi
13450
13451 if test "x$ac_ct_CC" = x; then
13452 CC=""
13453 else
13454 case $cross_compiling:$ac_tool_warned in
13455 yes:)
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458 ac_tool_warned=yes ;;
13459 esac
13460 CC=$ac_ct_CC
13461 fi
13462 else
13463 CC="$ac_cv_prog_CC"
13464 fi
13465
13466 fi
13467
13468
13469 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13471 as_fn_error $? "no acceptable C compiler found in \$PATH
13472 See \`config.log' for more details" "$LINENO" 5; }
13473
13474 # Provide some information about the compiler.
13475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13476 set X $ac_compile
13477 ac_compiler=$2
13478 for ac_option in --version -v -V -qversion -version; do
13479 { { ac_try="$ac_compiler $ac_option >&5"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13485 printf "%s\n" "$ac_try_echo"; } >&5
13486 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13487 ac_status=$?
13488 if test -s conftest.err; then
13489 sed '10a\
13490 ... rest of stderr output deleted ...
13491 10q' conftest.err >conftest.er1
13492 cat conftest.er1 >&5
13493 fi
13494 rm -f conftest.er1 conftest.err
13495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496 test $ac_status = 0; }
13497 done
13498
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13500 printf %s "checking whether the compiler supports GNU C... " >&6; }
13501 if test ${ac_cv_c_compiler_gnu+y}
13502 then :
13503 printf %s "(cached) " >&6
13504 else $as_nop
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507
13508 int
13509 main (void)
13510 {
13511 #ifndef __GNUC__
13512 choke me
13513 #endif
13514
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_compile "$LINENO"
13520 then :
13521 ac_compiler_gnu=yes
13522 else $as_nop
13523 ac_compiler_gnu=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13527
13528 fi
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13530 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13532
13533 if test $ac_compiler_gnu = yes; then
13534 GCC=yes
13535 else
13536 GCC=
13537 fi
13538 ac_test_CFLAGS=${CFLAGS+y}
13539 ac_save_CFLAGS=$CFLAGS
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13541 printf %s "checking whether $CC accepts -g... " >&6; }
13542 if test ${ac_cv_prog_cc_g+y}
13543 then :
13544 printf %s "(cached) " >&6
13545 else $as_nop
13546 ac_save_c_werror_flag=$ac_c_werror_flag
13547 ac_c_werror_flag=yes
13548 ac_cv_prog_cc_g=no
13549 CFLAGS="-g"
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552
13553 int
13554 main (void)
13555 {
13556
13557 ;
13558 return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_c_try_compile "$LINENO"
13562 then :
13563 ac_cv_prog_cc_g=yes
13564 else $as_nop
13565 CFLAGS=""
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 int
13570 main (void)
13571 {
13572
13573 ;
13574 return 0;
13575 }
13576 _ACEOF
13577 if ac_fn_c_try_compile "$LINENO"
13578 then :
13579
13580 else $as_nop
13581 ac_c_werror_flag=$ac_save_c_werror_flag
13582 CFLAGS="-g"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585
13586 int
13587 main (void)
13588 {
13589
13590 ;
13591 return 0;
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"
13595 then :
13596 ac_cv_prog_cc_g=yes
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13603 ac_c_werror_flag=$ac_save_c_werror_flag
13604 fi
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13606 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13607 if test $ac_test_CFLAGS; then
13608 CFLAGS=$ac_save_CFLAGS
13609 elif test $ac_cv_prog_cc_g = yes; then
13610 if test "$GCC" = yes; then
13611 CFLAGS="-g -O2"
13612 else
13613 CFLAGS="-g"
13614 fi
13615 else
13616 if test "$GCC" = yes; then
13617 CFLAGS="-O2"
13618 else
13619 CFLAGS=
13620 fi
13621 fi
13622 ac_prog_cc_stdc=no
13623 if test x$ac_prog_cc_stdc = xno
13624 then :
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13626 printf %s "checking for $CC option to enable C11 features... " >&6; }
13627 if test ${ac_cv_prog_cc_c11+y}
13628 then :
13629 printf %s "(cached) " >&6
13630 else $as_nop
13631 ac_cv_prog_cc_c11=no
13632 ac_save_CC=$CC
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 $ac_c_conftest_c11_program
13636 _ACEOF
13637 for ac_arg in '' -std=gnu11
13638 do
13639 CC="$ac_save_CC $ac_arg"
13640 if ac_fn_c_try_compile "$LINENO"
13641 then :
13642 ac_cv_prog_cc_c11=$ac_arg
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.beam
13645 test "x$ac_cv_prog_cc_c11" != "xno" && break
13646 done
13647 rm -f conftest.$ac_ext
13648 CC=$ac_save_CC
13649 fi
13650
13651 if test "x$ac_cv_prog_cc_c11" = xno
13652 then :
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13654 printf "%s\n" "unsupported" >&6; }
13655 else $as_nop
13656 if test "x$ac_cv_prog_cc_c11" = x
13657 then :
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13659 printf "%s\n" "none needed" >&6; }
13660 else $as_nop
13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13662 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13663 CC="$CC $ac_cv_prog_cc_c11"
13664 fi
13665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13666 ac_prog_cc_stdc=c11
13667 fi
13668 fi
13669 if test x$ac_prog_cc_stdc = xno
13670 then :
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13672 printf %s "checking for $CC option to enable C99 features... " >&6; }
13673 if test ${ac_cv_prog_cc_c99+y}
13674 then :
13675 printf %s "(cached) " >&6
13676 else $as_nop
13677 ac_cv_prog_cc_c99=no
13678 ac_save_CC=$CC
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 $ac_c_conftest_c99_program
13682 _ACEOF
13683 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13684 do
13685 CC="$ac_save_CC $ac_arg"
13686 if ac_fn_c_try_compile "$LINENO"
13687 then :
13688 ac_cv_prog_cc_c99=$ac_arg
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.beam
13691 test "x$ac_cv_prog_cc_c99" != "xno" && break
13692 done
13693 rm -f conftest.$ac_ext
13694 CC=$ac_save_CC
13695 fi
13696
13697 if test "x$ac_cv_prog_cc_c99" = xno
13698 then :
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13700 printf "%s\n" "unsupported" >&6; }
13701 else $as_nop
13702 if test "x$ac_cv_prog_cc_c99" = x
13703 then :
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13705 printf "%s\n" "none needed" >&6; }
13706 else $as_nop
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13708 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13709 CC="$CC $ac_cv_prog_cc_c99"
13710 fi
13711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13712 ac_prog_cc_stdc=c99
13713 fi
13714 fi
13715 if test x$ac_prog_cc_stdc = xno
13716 then :
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13718 printf %s "checking for $CC option to enable C89 features... " >&6; }
13719 if test ${ac_cv_prog_cc_c89+y}
13720 then :
13721 printf %s "(cached) " >&6
13722 else $as_nop
13723 ac_cv_prog_cc_c89=no
13724 ac_save_CC=$CC
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 $ac_c_conftest_c89_program
13728 _ACEOF
13729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13730 do
13731 CC="$ac_save_CC $ac_arg"
13732 if ac_fn_c_try_compile "$LINENO"
13733 then :
13734 ac_cv_prog_cc_c89=$ac_arg
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.beam
13737 test "x$ac_cv_prog_cc_c89" != "xno" && break
13738 done
13739 rm -f conftest.$ac_ext
13740 CC=$ac_save_CC
13741 fi
13742
13743 if test "x$ac_cv_prog_cc_c89" = xno
13744 then :
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13746 printf "%s\n" "unsupported" >&6; }
13747 else $as_nop
13748 if test "x$ac_cv_prog_cc_c89" = x
13749 then :
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13751 printf "%s\n" "none needed" >&6; }
13752 else $as_nop
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13754 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13755 CC="$CC $ac_cv_prog_cc_c89"
13756 fi
13757 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13758 ac_prog_cc_stdc=c89
13759 fi
13760 fi
13761
13762 ac_ext=c
13763 ac_cpp='$CPP $CPPFLAGS'
13764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13767
13768
13769 ac_ext=c
13770 ac_cpp='$CPP $CPPFLAGS'
13771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13775 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13776 if test ${am_cv_prog_cc_c_o+y}
13777 then :
13778 printf %s "(cached) " >&6
13779 else $as_nop
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782
13783 int
13784 main (void)
13785 {
13786
13787 ;
13788 return 0;
13789 }
13790 _ACEOF
13791 # Make sure it works both with $CC and with simple cc.
13792 # Following AC_PROG_CC_C_O, we do the test twice because some
13793 # compilers refuse to overwrite an existing .o file with -o,
13794 # though they will create one.
13795 am_cv_prog_cc_c_o=yes
13796 for am_i in 1 2; do
13797 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13798 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } \
13802 && test -f conftest2.$ac_objext; then
13803 : OK
13804 else
13805 am_cv_prog_cc_c_o=no
13806 break
13807 fi
13808 done
13809 rm -f core conftest*
13810 unset am_i
13811 fi
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13813 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13814 if test "$am_cv_prog_cc_c_o" != yes; then
13815 # Losing compiler, so override with the script.
13816 # FIXME: It is wrong to rewrite CC.
13817 # But if we don't then we get into trouble of one sort or another.
13818 # A longer-term fix would be to have automake use am__CC in this case,
13819 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13820 CC="$am_aux_dir/compile $CC"
13821 fi
13822 ac_ext=c
13823 ac_cpp='$CPP $CPPFLAGS'
13824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13838 if test -n "$ac_tool_prefix"; then
13839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13840 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842 printf %s "checking for $ac_word... " >&6; }
13843 if test ${ac_cv_path_PKG_CONFIG+y}
13844 then :
13845 printf %s "(cached) " >&6
13846 else $as_nop
13847 case $PKG_CONFIG in
13848 [\\/]* | ?:[\\/]*)
13849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13850 ;;
13851 *)
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13854 do
13855 IFS=$as_save_IFS
13856 case $as_dir in #(((
13857 '') as_dir=./ ;;
13858 */) ;;
13859 *) as_dir=$as_dir/ ;;
13860 esac
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13863 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13865 break 2
13866 fi
13867 done
13868 done
13869 IFS=$as_save_IFS
13870
13871 ;;
13872 esac
13873 fi
13874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13875 if test -n "$PKG_CONFIG"; then
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13877 printf "%s\n" "$PKG_CONFIG" >&6; }
13878 else
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 printf "%s\n" "no" >&6; }
13881 fi
13882
13883
13884 fi
13885 if test -z "$ac_cv_path_PKG_CONFIG"; then
13886 ac_pt_PKG_CONFIG=$PKG_CONFIG
13887 # Extract the first word of "pkg-config", so it can be a program name with args.
13888 set dummy pkg-config; ac_word=$2
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 printf %s "checking for $ac_word... " >&6; }
13891 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13892 then :
13893 printf %s "(cached) " >&6
13894 else $as_nop
13895 case $ac_pt_PKG_CONFIG in
13896 [\\/]* | ?:[\\/]*)
13897 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13898 ;;
13899 *)
13900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13901 for as_dir in $PATH
13902 do
13903 IFS=$as_save_IFS
13904 case $as_dir in #(((
13905 '') as_dir=./ ;;
13906 */) ;;
13907 *) as_dir=$as_dir/ ;;
13908 esac
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13911 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13913 break 2
13914 fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 ;;
13920 esac
13921 fi
13922 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13923 if test -n "$ac_pt_PKG_CONFIG"; then
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13925 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13926 else
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 printf "%s\n" "no" >&6; }
13929 fi
13930
13931 if test "x$ac_pt_PKG_CONFIG" = x; then
13932 PKG_CONFIG=""
13933 else
13934 case $cross_compiling:$ac_tool_warned in
13935 yes:)
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13938 ac_tool_warned=yes ;;
13939 esac
13940 PKG_CONFIG=$ac_pt_PKG_CONFIG
13941 fi
13942 else
13943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13944 fi
13945
13946 fi
13947 if test -n "$PKG_CONFIG"; then
13948 _pkg_min_version=0.9.0
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13950 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13951 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953 printf "%s\n" "yes" >&6; }
13954 else
13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956 printf "%s\n" "no" >&6; }
13957 PKG_CONFIG=""
13958 fi
13959 fi
13960
13961
13962
13963 # Check whether --enable-introspection was given.
13964 if test ${enable_introspection+y}
13965 then :
13966 enableval=$enable_introspection;
13967 else $as_nop
13968 enable_introspection=auto
13969 fi
13970
13971
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13973 printf %s "checking for gobject-introspection... " >&6; }
13974
13975 case $enable_introspection in #(
13976 no) :
13977 found_introspection="no (disabled, use --enable-introspection to enable)"
13978 ;; #(
13979 yes) :
13980 if test -n "$PKG_CONFIG" && \
13981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13982 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13983 ac_status=$?
13984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985 test $ac_status = 0; }; then
13986 :
13987 else
13988 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13989 fi
13990 if test -n "$PKG_CONFIG" && \
13991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13992 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13993 ac_status=$?
13994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13995 test $ac_status = 0; }; then
13996 found_introspection=yes
13997 else
13998 as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build lightdm-gtk-greeter" "$LINENO" 5
13999 fi
14000 ;; #(
14001 auto) :
14002 if test -n "$PKG_CONFIG" && \
14003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
14004 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
14005 ac_status=$?
14006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; }; then
14008 found_introspection=yes
14009 else
14010 found_introspection=no
14011 fi
14012 enable_introspection=$found_introspection
14013 ;; #(
14014 *) :
14015 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14016 ;;
14017 esac
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14019 printf "%s\n" "$found_introspection" >&6; }
14020
14021
14022 EXP_VAR=_GI_EXP_DATADIR
14023 FROM_VAR="$datadir"
14024
14025 prefix_save=$prefix
14026 exec_prefix_save=$exec_prefix
14027
14028 if test "x$prefix" = "xNONE"; then
14029 prefix="$ac_default_prefix"
14030 fi
14031 if test "x$exec_prefix" = "xNONE"; then
14032 exec_prefix=$prefix
14033 fi
14034
14035 full_var="$FROM_VAR"
14036 while true; do
14037 new_full_var="`eval echo $full_var`"
14038 if test "x$new_full_var" = "x$full_var"; then break; fi
14039 full_var=$new_full_var
14040 done
14041
14042 full_var=$new_full_var
14043 _GI_EXP_DATADIR="$full_var"
14044
14045
14046 prefix=$prefix_save
14047 exec_prefix=$exec_prefix_save
14048
14049
14050 EXP_VAR=_GI_EXP_LIBDIR
14051 FROM_VAR="$libdir"
14052
14053 prefix_save=$prefix
14054 exec_prefix_save=$exec_prefix
14055
14056 if test "x$prefix" = "xNONE"; then
14057 prefix="$ac_default_prefix"
14058 fi
14059 if test "x$exec_prefix" = "xNONE"; then
14060 exec_prefix=$prefix
14061 fi
14062
14063 full_var="$FROM_VAR"
14064 while true; do
14065 new_full_var="`eval echo $full_var`"
14066 if test "x$new_full_var" = "x$full_var"; then break; fi
14067 full_var=$new_full_var
14068 done
14069
14070 full_var=$new_full_var
14071 _GI_EXP_LIBDIR="$full_var"
14072
14073
14074 prefix=$prefix_save
14075 exec_prefix=$exec_prefix_save
14076
14077
14078 INTROSPECTION_SCANNER=
14079 INTROSPECTION_COMPILER=
14080 INTROSPECTION_GENERATE=
14081 INTROSPECTION_GIRDIR=
14082 INTROSPECTION_TYPELIBDIR=
14083 if test "x$found_introspection" = "xyes"; then
14084 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14085 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14086 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14087 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
14088 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
14089 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14090 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14091 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14092 fi
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102 if test "x$found_introspection" = "xyes"; then
14103 HAVE_INTROSPECTION_TRUE=
14104 HAVE_INTROSPECTION_FALSE='#'
14105 else
14106 HAVE_INTROSPECTION_TRUE='#'
14107 HAVE_INTROSPECTION_FALSE=
14108 fi
14109
14110
14111
14112
14113
14114 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14115 if test "x$ac_cv_header_stdlib_h" = xyes
14116 then :
14117 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14118
14119 fi
14120
14121
14122
14123
14124 pkg_failed=no
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0" >&5
14126 printf %s "checking for gtk+-3.0... " >&6; }
14127
14128 if test -n "$GTK_CFLAGS"; then
14129 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14130 elif test -n "$PKG_CONFIG"; then
14131 if test -n "$PKG_CONFIG" && \
14132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
14133 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
14134 ac_status=$?
14135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; }; then
14137 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
14138 test "x$?" != "x0" && pkg_failed=yes
14139 else
14140 pkg_failed=yes
14141 fi
14142 else
14143 pkg_failed=untried
14144 fi
14145 if test -n "$GTK_LIBS"; then
14146 pkg_cv_GTK_LIBS="$GTK_LIBS"
14147 elif test -n "$PKG_CONFIG"; then
14148 if test -n "$PKG_CONFIG" && \
14149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
14150 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
14151 ac_status=$?
14152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14153 test $ac_status = 0; }; then
14154 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
14155 test "x$?" != "x0" && pkg_failed=yes
14156 else
14157 pkg_failed=yes
14158 fi
14159 else
14160 pkg_failed=untried
14161 fi
14162
14163
14164
14165 if test $pkg_failed = yes; then
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 printf "%s\n" "no" >&6; }
14168
14169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14170 _pkg_short_errors_supported=yes
14171 else
14172 _pkg_short_errors_supported=no
14173 fi
14174 if test $_pkg_short_errors_supported = yes; then
14175 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
14176 else
14177 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
14178 fi
14179 # Put the nasty error message in config.log where it belongs
14180 echo "$GTK_PKG_ERRORS" >&5
14181
14182 as_fn_error $? "Package requirements (gtk+-3.0) were not met:
14183
14184 $GTK_PKG_ERRORS
14185
14186 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14187 installed software in a non-standard prefix.
14188
14189 Alternatively, you may set the environment variables GTK_CFLAGS
14190 and GTK_LIBS to avoid the need to call pkg-config.
14191 See the pkg-config man page for more details." "$LINENO" 5
14192 elif test $pkg_failed = untried; then
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 printf "%s\n" "no" >&6; }
14195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14197 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14198 is in your PATH or set the PKG_CONFIG environment variable to the full
14199 path to pkg-config.
14200
14201 Alternatively, you may set the environment variables GTK_CFLAGS
14202 and GTK_LIBS to avoid the need to call pkg-config.
14203 See the pkg-config man page for more details.
14204
14205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14206 See \`config.log' for more details" "$LINENO" 5; }
14207 else
14208 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14209 GTK_LIBS=$pkg_cv_GTK_LIBS
14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14211 printf "%s\n" "yes" >&6; }
14212
14213 fi
14214
14215 pkg_failed=no
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-export-2.0" >&5
14217 printf %s "checking for gmodule-export-2.0... " >&6; }
14218
14219 if test -n "$GMODULE_CFLAGS"; then
14220 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
14221 elif test -n "$PKG_CONFIG"; then
14222 if test -n "$PKG_CONFIG" && \
14223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-export-2.0\""; } >&5
14224 ($PKG_CONFIG --exists --print-errors "gmodule-export-2.0") 2>&5
14225 ac_status=$?
14226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; then
14228 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-export-2.0" 2>/dev/null`
14229 test "x$?" != "x0" && pkg_failed=yes
14230 else
14231 pkg_failed=yes
14232 fi
14233 else
14234 pkg_failed=untried
14235 fi
14236 if test -n "$GMODULE_LIBS"; then
14237 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
14238 elif test -n "$PKG_CONFIG"; then
14239 if test -n "$PKG_CONFIG" && \
14240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-export-2.0\""; } >&5
14241 ($PKG_CONFIG --exists --print-errors "gmodule-export-2.0") 2>&5
14242 ac_status=$?
14243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 test $ac_status = 0; }; then
14245 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-export-2.0" 2>/dev/null`
14246 test "x$?" != "x0" && pkg_failed=yes
14247 else
14248 pkg_failed=yes
14249 fi
14250 else
14251 pkg_failed=untried
14252 fi
14253
14254
14255
14256 if test $pkg_failed = yes; then
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 printf "%s\n" "no" >&6; }
14259
14260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14261 _pkg_short_errors_supported=yes
14262 else
14263 _pkg_short_errors_supported=no
14264 fi
14265 if test $_pkg_short_errors_supported = yes; then
14266 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-export-2.0" 2>&1`
14267 else
14268 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-export-2.0" 2>&1`
14269 fi
14270 # Put the nasty error message in config.log where it belongs
14271 echo "$GMODULE_PKG_ERRORS" >&5
14272
14273 as_fn_error $? "Package requirements (gmodule-export-2.0) were not met:
14274
14275 $GMODULE_PKG_ERRORS
14276
14277 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14278 installed software in a non-standard prefix.
14279
14280 Alternatively, you may set the environment variables GMODULE_CFLAGS
14281 and GMODULE_LIBS to avoid the need to call pkg-config.
14282 See the pkg-config man page for more details." "$LINENO" 5
14283 elif test $pkg_failed = untried; then
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 printf "%s\n" "no" >&6; }
14286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14287 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14288 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14289 is in your PATH or set the PKG_CONFIG environment variable to the full
14290 path to pkg-config.
14291
14292 Alternatively, you may set the environment variables GMODULE_CFLAGS
14293 and GMODULE_LIBS to avoid the need to call pkg-config.
14294 See the pkg-config man page for more details.
14295
14296 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14297 See \`config.log' for more details" "$LINENO" 5; }
14298 else
14299 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
14300 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302 printf "%s\n" "yes" >&6; }
14303
14304 fi
14305
14306 pkg_failed=no
14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblightdm-gobject-1 >= 1.19.2" >&5
14308 printf %s "checking for liblightdm-gobject-1 >= 1.19.2... " >&6; }
14309
14310 if test -n "$LIGHTDMGOBJECT_CFLAGS"; then
14311 pkg_cv_LIGHTDMGOBJECT_CFLAGS="$LIGHTDMGOBJECT_CFLAGS"
14312 elif test -n "$PKG_CONFIG"; then
14313 if test -n "$PKG_CONFIG" && \
14314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.19.2\""; } >&5
14315 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.19.2") 2>&5
14316 ac_status=$?
14317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14318 test $ac_status = 0; }; then
14319 pkg_cv_LIGHTDMGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "liblightdm-gobject-1 >= 1.19.2" 2>/dev/null`
14320 test "x$?" != "x0" && pkg_failed=yes
14321 else
14322 pkg_failed=yes
14323 fi
14324 else
14325 pkg_failed=untried
14326 fi
14327 if test -n "$LIGHTDMGOBJECT_LIBS"; then
14328 pkg_cv_LIGHTDMGOBJECT_LIBS="$LIGHTDMGOBJECT_LIBS"
14329 elif test -n "$PKG_CONFIG"; then
14330 if test -n "$PKG_CONFIG" && \
14331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.19.2\""; } >&5
14332 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.19.2") 2>&5
14333 ac_status=$?
14334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14335 test $ac_status = 0; }; then
14336 pkg_cv_LIGHTDMGOBJECT_LIBS=`$PKG_CONFIG --libs "liblightdm-gobject-1 >= 1.19.2" 2>/dev/null`
14337 test "x$?" != "x0" && pkg_failed=yes
14338 else
14339 pkg_failed=yes
14340 fi
14341 else
14342 pkg_failed=untried
14343 fi
14344
14345
14346
14347 if test $pkg_failed = yes; then
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 printf "%s\n" "no" >&6; }
14350
14351 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14352 _pkg_short_errors_supported=yes
14353 else
14354 _pkg_short_errors_supported=no
14355 fi
14356 if test $_pkg_short_errors_supported = yes; then
14357 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.19.2" 2>&1`
14358 else
14359 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.19.2" 2>&1`
14360 fi
14361 # Put the nasty error message in config.log where it belongs
14362 echo "$LIGHTDMGOBJECT_PKG_ERRORS" >&5
14363
14364
14365 pkg_failed=no
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblightdm-gobject-1 >= 1.3.5" >&5
14367 printf %s "checking for liblightdm-gobject-1 >= 1.3.5... " >&6; }
14368
14369 if test -n "$LIGHTDMGOBJECT_CFLAGS"; then
14370 pkg_cv_LIGHTDMGOBJECT_CFLAGS="$LIGHTDMGOBJECT_CFLAGS"
14371 elif test -n "$PKG_CONFIG"; then
14372 if test -n "$PKG_CONFIG" && \
14373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.3.5\""; } >&5
14374 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.3.5") 2>&5
14375 ac_status=$?
14376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; then
14378 pkg_cv_LIGHTDMGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "liblightdm-gobject-1 >= 1.3.5" 2>/dev/null`
14379 test "x$?" != "x0" && pkg_failed=yes
14380 else
14381 pkg_failed=yes
14382 fi
14383 else
14384 pkg_failed=untried
14385 fi
14386 if test -n "$LIGHTDMGOBJECT_LIBS"; then
14387 pkg_cv_LIGHTDMGOBJECT_LIBS="$LIGHTDMGOBJECT_LIBS"
14388 elif test -n "$PKG_CONFIG"; then
14389 if test -n "$PKG_CONFIG" && \
14390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.3.5\""; } >&5
14391 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.3.5") 2>&5
14392 ac_status=$?
14393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14394 test $ac_status = 0; }; then
14395 pkg_cv_LIGHTDMGOBJECT_LIBS=`$PKG_CONFIG --libs "liblightdm-gobject-1 >= 1.3.5" 2>/dev/null`
14396 test "x$?" != "x0" && pkg_failed=yes
14397 else
14398 pkg_failed=yes
14399 fi
14400 else
14401 pkg_failed=untried
14402 fi
14403
14404
14405
14406 if test $pkg_failed = yes; then
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 printf "%s\n" "no" >&6; }
14409
14410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14411 _pkg_short_errors_supported=yes
14412 else
14413 _pkg_short_errors_supported=no
14414 fi
14415 if test $_pkg_short_errors_supported = yes; then
14416 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.3.5" 2>&1`
14417 else
14418 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.3.5" 2>&1`
14419 fi
14420 # Put the nasty error message in config.log where it belongs
14421 echo "$LIGHTDMGOBJECT_PKG_ERRORS" >&5
14422
14423 as_fn_error $? "Package requirements (liblightdm-gobject-1 >= 1.3.5) were not met:
14424
14425 $LIGHTDMGOBJECT_PKG_ERRORS
14426
14427 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14428 installed software in a non-standard prefix.
14429
14430 Alternatively, you may set the environment variables LIGHTDMGOBJECT_CFLAGS
14431 and LIGHTDMGOBJECT_LIBS to avoid the need to call pkg-config.
14432 See the pkg-config man page for more details." "$LINENO" 5
14433 elif test $pkg_failed = untried; then
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 printf "%s\n" "no" >&6; }
14436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14437 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14438 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14439 is in your PATH or set the PKG_CONFIG environment variable to the full
14440 path to pkg-config.
14441
14442 Alternatively, you may set the environment variables LIGHTDMGOBJECT_CFLAGS
14443 and LIGHTDMGOBJECT_LIBS to avoid the need to call pkg-config.
14444 See the pkg-config man page for more details.
14445
14446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14447 See \`config.log' for more details" "$LINENO" 5; }
14448 else
14449 LIGHTDMGOBJECT_CFLAGS=$pkg_cv_LIGHTDMGOBJECT_CFLAGS
14450 LIGHTDMGOBJECT_LIBS=$pkg_cv_LIGHTDMGOBJECT_LIBS
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 printf "%s\n" "yes" >&6; }
14453
14454 fi
14455
14456 elif test $pkg_failed = untried; then
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 printf "%s\n" "no" >&6; }
14459
14460 pkg_failed=no
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblightdm-gobject-1 >= 1.3.5" >&5
14462 printf %s "checking for liblightdm-gobject-1 >= 1.3.5... " >&6; }
14463
14464 if test -n "$LIGHTDMGOBJECT_CFLAGS"; then
14465 pkg_cv_LIGHTDMGOBJECT_CFLAGS="$LIGHTDMGOBJECT_CFLAGS"
14466 elif test -n "$PKG_CONFIG"; then
14467 if test -n "$PKG_CONFIG" && \
14468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.3.5\""; } >&5
14469 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.3.5") 2>&5
14470 ac_status=$?
14471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14472 test $ac_status = 0; }; then
14473 pkg_cv_LIGHTDMGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "liblightdm-gobject-1 >= 1.3.5" 2>/dev/null`
14474 test "x$?" != "x0" && pkg_failed=yes
14475 else
14476 pkg_failed=yes
14477 fi
14478 else
14479 pkg_failed=untried
14480 fi
14481 if test -n "$LIGHTDMGOBJECT_LIBS"; then
14482 pkg_cv_LIGHTDMGOBJECT_LIBS="$LIGHTDMGOBJECT_LIBS"
14483 elif test -n "$PKG_CONFIG"; then
14484 if test -n "$PKG_CONFIG" && \
14485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblightdm-gobject-1 >= 1.3.5\""; } >&5
14486 ($PKG_CONFIG --exists --print-errors "liblightdm-gobject-1 >= 1.3.5") 2>&5
14487 ac_status=$?
14488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; then
14490 pkg_cv_LIGHTDMGOBJECT_LIBS=`$PKG_CONFIG --libs "liblightdm-gobject-1 >= 1.3.5" 2>/dev/null`
14491 test "x$?" != "x0" && pkg_failed=yes
14492 else
14493 pkg_failed=yes
14494 fi
14495 else
14496 pkg_failed=untried
14497 fi
14498
14499
14500
14501 if test $pkg_failed = yes; then
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 printf "%s\n" "no" >&6; }
14504
14505 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14506 _pkg_short_errors_supported=yes
14507 else
14508 _pkg_short_errors_supported=no
14509 fi
14510 if test $_pkg_short_errors_supported = yes; then
14511 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.3.5" 2>&1`
14512 else
14513 LIGHTDMGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblightdm-gobject-1 >= 1.3.5" 2>&1`
14514 fi
14515 # Put the nasty error message in config.log where it belongs
14516 echo "$LIGHTDMGOBJECT_PKG_ERRORS" >&5
14517
14518 as_fn_error $? "Package requirements (liblightdm-gobject-1 >= 1.3.5) were not met:
14519
14520 $LIGHTDMGOBJECT_PKG_ERRORS
14521
14522 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14523 installed software in a non-standard prefix.
14524
14525 Alternatively, you may set the environment variables LIGHTDMGOBJECT_CFLAGS
14526 and LIGHTDMGOBJECT_LIBS to avoid the need to call pkg-config.
14527 See the pkg-config man page for more details." "$LINENO" 5
14528 elif test $pkg_failed = untried; then
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 printf "%s\n" "no" >&6; }
14531 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14532 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14533 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14534 is in your PATH or set the PKG_CONFIG environment variable to the full
14535 path to pkg-config.
14536
14537 Alternatively, you may set the environment variables LIGHTDMGOBJECT_CFLAGS
14538 and LIGHTDMGOBJECT_LIBS to avoid the need to call pkg-config.
14539 See the pkg-config man page for more details.
14540
14541 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14542 See \`config.log' for more details" "$LINENO" 5; }
14543 else
14544 LIGHTDMGOBJECT_CFLAGS=$pkg_cv_LIGHTDMGOBJECT_CFLAGS
14545 LIGHTDMGOBJECT_LIBS=$pkg_cv_LIGHTDMGOBJECT_LIBS
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14547 printf "%s\n" "yes" >&6; }
14548
14549 fi
14550
14551 else
14552 LIGHTDMGOBJECT_CFLAGS=$pkg_cv_LIGHTDMGOBJECT_CFLAGS
14553 LIGHTDMGOBJECT_LIBS=$pkg_cv_LIGHTDMGOBJECT_LIBS
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14555 printf "%s\n" "yes" >&6; }
14556
14557 printf "%s\n" "#define HAVE_LIBLIGHTDMGOBJECT_1_19_2 1" >>confdefs.h
14558
14559 fi
14560
14561 pkg_failed=no
14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
14563 printf %s "checking for x11... " >&6; }
14564
14565 if test -n "$LIBX11_CFLAGS"; then
14566 pkg_cv_LIBX11_CFLAGS="$LIBX11_CFLAGS"
14567 elif test -n "$PKG_CONFIG"; then
14568 if test -n "$PKG_CONFIG" && \
14569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14570 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14571 ac_status=$?
14572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14573 test $ac_status = 0; }; then
14574 pkg_cv_LIBX11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14575 test "x$?" != "x0" && pkg_failed=yes
14576 else
14577 pkg_failed=yes
14578 fi
14579 else
14580 pkg_failed=untried
14581 fi
14582 if test -n "$LIBX11_LIBS"; then
14583 pkg_cv_LIBX11_LIBS="$LIBX11_LIBS"
14584 elif test -n "$PKG_CONFIG"; then
14585 if test -n "$PKG_CONFIG" && \
14586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14587 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14588 ac_status=$?
14589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }; then
14591 pkg_cv_LIBX11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14592 test "x$?" != "x0" && pkg_failed=yes
14593 else
14594 pkg_failed=yes
14595 fi
14596 else
14597 pkg_failed=untried
14598 fi
14599
14600
14601
14602 if test $pkg_failed = yes; then
14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604 printf "%s\n" "no" >&6; }
14605
14606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14607 _pkg_short_errors_supported=yes
14608 else
14609 _pkg_short_errors_supported=no
14610 fi
14611 if test $_pkg_short_errors_supported = yes; then
14612 LIBX11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
14613 else
14614 LIBX11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
14615 fi
14616 # Put the nasty error message in config.log where it belongs
14617 echo "$LIBX11_PKG_ERRORS" >&5
14618
14619 as_fn_error $? "Package requirements (x11) were not met:
14620
14621 $LIBX11_PKG_ERRORS
14622
14623 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14624 installed software in a non-standard prefix.
14625
14626 Alternatively, you may set the environment variables LIBX11_CFLAGS
14627 and LIBX11_LIBS to avoid the need to call pkg-config.
14628 See the pkg-config man page for more details." "$LINENO" 5
14629 elif test $pkg_failed = untried; then
14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 printf "%s\n" "no" >&6; }
14632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14633 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14634 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14635 is in your PATH or set the PKG_CONFIG environment variable to the full
14636 path to pkg-config.
14637
14638 Alternatively, you may set the environment variables LIBX11_CFLAGS
14639 and LIBX11_LIBS to avoid the need to call pkg-config.
14640 See the pkg-config man page for more details.
14641
14642 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14643 See \`config.log' for more details" "$LINENO" 5; }
14644 else
14645 LIBX11_CFLAGS=$pkg_cv_LIBX11_CFLAGS
14646 LIBX11_LIBS=$pkg_cv_LIBX11_LIBS
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 printf "%s\n" "yes" >&6; }
14649
14650 fi
14651
14652
14653 AYATANA_INDICATOR_REQUIRED_VERSION=0.6.0
14654 AYATANA_INDICATOR_PKG=ayatana-indicator3-0.4
14655 AYATANA_IDO_REQUIRED_VERSION=0.4.0
14656 AYATANA_IDO_PKG=libayatana-ido3-0.4
14657
14658 UNITY_INDICATOR_REQUIRED_VERSION=0.3.92
14659 UNITY_INDICATOR_PKG=indicator3-0.4
14660 UNITY_IDO_REQUIRED_VERSION=13.10
14661 UNITY_IDO_PKG=libido3-0.1
14662
14663
14664 # Check whether --enable-libindicator was given.
14665 if test ${enable_libindicator+y}
14666 then :
14667 enableval=$enable_libindicator;
14668 else $as_nop
14669 enable_libindicator=yes
14670 fi
14671
14672
14673
14674 # Check whether --with-libindicator was given.
14675 if test ${with_libindicator+y}
14676 then :
14677 withval=$with_libindicator;
14678 fi
14679
14680 have_indicator_ng=no
14681
14682 ac_ext=c
14683 ac_cpp='$CPP $CPPFLAGS'
14684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14688 printf %s "checking how to run the C preprocessor... " >&6; }
14689 # On Suns, sometimes $CPP names a directory.
14690 if test -n "$CPP" && test -d "$CPP"; then
14691 CPP=
14692 fi
14693 if test -z "$CPP"; then
14694 if test ${ac_cv_prog_CPP+y}
14695 then :
14696 printf %s "(cached) " >&6
14697 else $as_nop
14698 # Double quotes because $CC needs to be expanded
14699 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14700 do
14701 ac_preproc_ok=false
14702 for ac_c_preproc_warn_flag in '' yes
14703 do
14704 # Use a header file that comes with gcc, so configuring glibc
14705 # with a fresh cross-compiler works.
14706 # On the NeXT, cc -E runs the code through the compiler's parser,
14707 # not just through cpp. "Syntax error" is here to catch this case.
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #include <limits.h>
14711 Syntax error
14712 _ACEOF
14713 if ac_fn_c_try_cpp "$LINENO"
14714 then :
14715
14716 else $as_nop
14717 # Broken: fails on valid input.
14718 continue
14719 fi
14720 rm -f conftest.err conftest.i conftest.$ac_ext
14721
14722 # OK, works on sane cases. Now check whether nonexistent headers
14723 # can be detected and how.
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 #include <ac_nonexistent.h>
14727 _ACEOF
14728 if ac_fn_c_try_cpp "$LINENO"
14729 then :
14730 # Broken: success on invalid input.
14731 continue
14732 else $as_nop
14733 # Passes both tests.
14734 ac_preproc_ok=:
14735 break
14736 fi
14737 rm -f conftest.err conftest.i conftest.$ac_ext
14738
14739 done
14740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14741 rm -f conftest.i conftest.err conftest.$ac_ext
14742 if $ac_preproc_ok
14743 then :
14744 break
14745 fi
14746
14747 done
14748 ac_cv_prog_CPP=$CPP
14749
14750 fi
14751 CPP=$ac_cv_prog_CPP
14752 else
14753 ac_cv_prog_CPP=$CPP
14754 fi
14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14756 printf "%s\n" "$CPP" >&6; }
14757 ac_preproc_ok=false
14758 for ac_c_preproc_warn_flag in '' yes
14759 do
14760 # Use a header file that comes with gcc, so configuring glibc
14761 # with a fresh cross-compiler works.
14762 # On the NeXT, cc -E runs the code through the compiler's parser,
14763 # not just through cpp. "Syntax error" is here to catch this case.
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 #include <limits.h>
14767 Syntax error
14768 _ACEOF
14769 if ac_fn_c_try_cpp "$LINENO"
14770 then :
14771
14772 else $as_nop
14773 # Broken: fails on valid input.
14774 continue
14775 fi
14776 rm -f conftest.err conftest.i conftest.$ac_ext
14777
14778 # OK, works on sane cases. Now check whether nonexistent headers
14779 # can be detected and how.
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 #include <ac_nonexistent.h>
14783 _ACEOF
14784 if ac_fn_c_try_cpp "$LINENO"
14785 then :
14786 # Broken: success on invalid input.
14787 continue
14788 else $as_nop
14789 # Passes both tests.
14790 ac_preproc_ok=:
14791 break
14792 fi
14793 rm -f conftest.err conftest.i conftest.$ac_ext
14794
14795 done
14796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14797 rm -f conftest.i conftest.err conftest.$ac_ext
14798 if $ac_preproc_ok
14799 then :
14800
14801 else $as_nop
14802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14803 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14804 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14805 See \`config.log' for more details" "$LINENO" 5; }
14806 fi
14807
14808 ac_ext=c
14809 ac_cpp='$CPP $CPPFLAGS'
14810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14813
14814
14815 if test "x$enable_libindicator" = "xyes"
14816 then :
14817
14818 if test "x$with_libindicator" != "xunity" && $PKG_CONFIG --exists "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" >/dev/null 2>&1
14819 then :
14820
14821
14822 pkg_failed=no
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" >&5
14824 printf %s "checking for $AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION... " >&6; }
14825
14826 if test -n "$AYATANA_LIBINDICATOR_CFLAGS"; then
14827 pkg_cv_AYATANA_LIBINDICATOR_CFLAGS="$AYATANA_LIBINDICATOR_CFLAGS"
14828 elif test -n "$PKG_CONFIG"; then
14829 if test -n "$PKG_CONFIG" && \
14830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$AYATANA_INDICATOR_PKG >= \$AYATANA_INDICATOR_REQUIRED_VERSION\""; } >&5
14831 ($PKG_CONFIG --exists --print-errors "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION") 2>&5
14832 ac_status=$?
14833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 test $ac_status = 0; }; then
14835 pkg_cv_AYATANA_LIBINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" 2>/dev/null`
14836 test "x$?" != "x0" && pkg_failed=yes
14837 else
14838 pkg_failed=yes
14839 fi
14840 else
14841 pkg_failed=untried
14842 fi
14843 if test -n "$AYATANA_LIBINDICATOR_LIBS"; then
14844 pkg_cv_AYATANA_LIBINDICATOR_LIBS="$AYATANA_LIBINDICATOR_LIBS"
14845 elif test -n "$PKG_CONFIG"; then
14846 if test -n "$PKG_CONFIG" && \
14847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$AYATANA_INDICATOR_PKG >= \$AYATANA_INDICATOR_REQUIRED_VERSION\""; } >&5
14848 ($PKG_CONFIG --exists --print-errors "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION") 2>&5
14849 ac_status=$?
14850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14851 test $ac_status = 0; }; then
14852 pkg_cv_AYATANA_LIBINDICATOR_LIBS=`$PKG_CONFIG --libs "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" 2>/dev/null`
14853 test "x$?" != "x0" && pkg_failed=yes
14854 else
14855 pkg_failed=yes
14856 fi
14857 else
14858 pkg_failed=untried
14859 fi
14860
14861
14862
14863 if test $pkg_failed = yes; then
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 printf "%s\n" "no" >&6; }
14866
14867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14868 _pkg_short_errors_supported=yes
14869 else
14870 _pkg_short_errors_supported=no
14871 fi
14872 if test $_pkg_short_errors_supported = yes; then
14873 AYATANA_LIBINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" 2>&1`
14874 else
14875 AYATANA_LIBINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" 2>&1`
14876 fi
14877 # Put the nasty error message in config.log where it belongs
14878 echo "$AYATANA_LIBINDICATOR_PKG_ERRORS" >&5
14879
14880 as_fn_error $? "Package requirements ($AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION) were not met:
14881
14882 $AYATANA_LIBINDICATOR_PKG_ERRORS
14883
14884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14885 installed software in a non-standard prefix.
14886
14887 Alternatively, you may set the environment variables AYATANA_LIBINDICATOR_CFLAGS
14888 and AYATANA_LIBINDICATOR_LIBS to avoid the need to call pkg-config.
14889 See the pkg-config man page for more details." "$LINENO" 5
14890 elif test $pkg_failed = untried; then
14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892 printf "%s\n" "no" >&6; }
14893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14895 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14896 is in your PATH or set the PKG_CONFIG environment variable to the full
14897 path to pkg-config.
14898
14899 Alternatively, you may set the environment variables AYATANA_LIBINDICATOR_CFLAGS
14900 and AYATANA_LIBINDICATOR_LIBS to avoid the need to call pkg-config.
14901 See the pkg-config man page for more details.
14902
14903 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14904 See \`config.log' for more details" "$LINENO" 5; }
14905 else
14906 AYATANA_LIBINDICATOR_CFLAGS=$pkg_cv_AYATANA_LIBINDICATOR_CFLAGS
14907 AYATANA_LIBINDICATOR_LIBS=$pkg_cv_AYATANA_LIBINDICATOR_LIBS
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14909 printf "%s\n" "yes" >&6; }
14910
14911 have_ayatana_libindicator=yes
14912 have_libindicator=yes
14913 INDICATORDIR=`$PKG_CONFIG --variable=indicatordir $AYATANA_INDICATOR_PKG`
14914
14915 AYATANA_INDICATORDIR="${prefix}/share/ayatana/indicators"
14916
14917
14918 printf "%s\n" "#define HAVE_LIBINDICATOR 1" >>confdefs.h
14919
14920
14921 printf "%s\n" "#define HAVE_AYATANA_LIBINDICATOR 1" >>confdefs.h
14922
14923
14924 CPPFLAGS_OLD="$CPPFLAGS"
14925 CPPFLAGS=`$PKG_CONFIG --cflags ${AYATANA_INDICATOR_PKG}`
14926 ac_fn_c_check_header_preproc "$LINENO" "libayatana-indicator/indicator-ng.h" "ac_cv_header_libayatana_indicator_indicator_ng_h"
14927 if test "x$ac_cv_header_libayatana_indicator_indicator_ng_h" = xyes
14928 then :
14929
14930 have_indicator_ng=yes
14931
14932 printf "%s\n" "#define HAVE_LIBINDICATOR_NG 1" >>confdefs.h
14933
14934
14935 printf "%s\n" "#define HAVE_AYATANA_LIBINDICATOR_NG 1" >>confdefs.h
14936
14937
14938 fi
14939
14940 CPPFLAGS="$CPPFLAGS_OLD"
14941
14942 fi
14943
14944 else $as_nop
14945
14946 if test "x$with_libindicator" != "xunity"
14947 then :
14948
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $AYATANA_INDICATOR_PKG" >&5
14950 printf %s "checking for optional package $AYATANA_INDICATOR_PKG... " >&6; }
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14952 printf "%s\n" "not found" >&6; }
14953
14954 fi
14955 if $PKG_CONFIG --exists "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" >/dev/null 2>&1
14956 then :
14957
14958
14959 pkg_failed=no
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" >&5
14961 printf %s "checking for $UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION... " >&6; }
14962
14963 if test -n "$UNITY_LIBINDICATOR_CFLAGS"; then
14964 pkg_cv_UNITY_LIBINDICATOR_CFLAGS="$UNITY_LIBINDICATOR_CFLAGS"
14965 elif test -n "$PKG_CONFIG"; then
14966 if test -n "$PKG_CONFIG" && \
14967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$UNITY_INDICATOR_PKG >= \$UNITY_INDICATOR_REQUIRED_VERSION\""; } >&5
14968 ($PKG_CONFIG --exists --print-errors "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION") 2>&5
14969 ac_status=$?
14970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14971 test $ac_status = 0; }; then
14972 pkg_cv_UNITY_LIBINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" 2>/dev/null`
14973 test "x$?" != "x0" && pkg_failed=yes
14974 else
14975 pkg_failed=yes
14976 fi
14977 else
14978 pkg_failed=untried
14979 fi
14980 if test -n "$UNITY_LIBINDICATOR_LIBS"; then
14981 pkg_cv_UNITY_LIBINDICATOR_LIBS="$UNITY_LIBINDICATOR_LIBS"
14982 elif test -n "$PKG_CONFIG"; then
14983 if test -n "$PKG_CONFIG" && \
14984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$UNITY_INDICATOR_PKG >= \$UNITY_INDICATOR_REQUIRED_VERSION\""; } >&5
14985 ($PKG_CONFIG --exists --print-errors "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION") 2>&5
14986 ac_status=$?
14987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14988 test $ac_status = 0; }; then
14989 pkg_cv_UNITY_LIBINDICATOR_LIBS=`$PKG_CONFIG --libs "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" 2>/dev/null`
14990 test "x$?" != "x0" && pkg_failed=yes
14991 else
14992 pkg_failed=yes
14993 fi
14994 else
14995 pkg_failed=untried
14996 fi
14997
14998
14999
15000 if test $pkg_failed = yes; then
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 printf "%s\n" "no" >&6; }
15003
15004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15005 _pkg_short_errors_supported=yes
15006 else
15007 _pkg_short_errors_supported=no
15008 fi
15009 if test $_pkg_short_errors_supported = yes; then
15010 UNITY_LIBINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" 2>&1`
15011 else
15012 UNITY_LIBINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION" 2>&1`
15013 fi
15014 # Put the nasty error message in config.log where it belongs
15015 echo "$UNITY_LIBINDICATOR_PKG_ERRORS" >&5
15016
15017 as_fn_error $? "Package requirements ($UNITY_INDICATOR_PKG >= $UNITY_INDICATOR_REQUIRED_VERSION) were not met:
15018
15019 $UNITY_LIBINDICATOR_PKG_ERRORS
15020
15021 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15022 installed software in a non-standard prefix.
15023
15024 Alternatively, you may set the environment variables UNITY_LIBINDICATOR_CFLAGS
15025 and UNITY_LIBINDICATOR_LIBS to avoid the need to call pkg-config.
15026 See the pkg-config man page for more details." "$LINENO" 5
15027 elif test $pkg_failed = untried; then
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15030 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15031 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15032 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15033 is in your PATH or set the PKG_CONFIG environment variable to the full
15034 path to pkg-config.
15035
15036 Alternatively, you may set the environment variables UNITY_LIBINDICATOR_CFLAGS
15037 and UNITY_LIBINDICATOR_LIBS to avoid the need to call pkg-config.
15038 See the pkg-config man page for more details.
15039
15040 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15041 See \`config.log' for more details" "$LINENO" 5; }
15042 else
15043 UNITY_LIBINDICATOR_CFLAGS=$pkg_cv_UNITY_LIBINDICATOR_CFLAGS
15044 UNITY_LIBINDICATOR_LIBS=$pkg_cv_UNITY_LIBINDICATOR_LIBS
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15046 printf "%s\n" "yes" >&6; }
15047
15048 have_unity_libindicator=yes
15049 have_libindicator=yes
15050 INDICATORDIR=`$PKG_CONFIG --variable=indicatordir $UNITY_INDICATOR_PKG`
15051
15052 UNITY_INDICATORDIR="${prefix}/share/unity/indicators"
15053
15054
15055 printf "%s\n" "#define HAVE_LIBINDICATOR 1" >>confdefs.h
15056
15057
15058 printf "%s\n" "#define HAVE_UNITY_LIBINDICATOR 1" >>confdefs.h
15059
15060
15061 CPPFLAGS_OLD="$CPPFLAGS"
15062 CPPFLAGS=`$PKG_CONFIG --cflags ${UNITY_INDICATOR_PKG}`
15063 ac_fn_c_check_header_preproc "$LINENO" "libindicator/indicator-ng.h" "ac_cv_header_libindicator_indicator_ng_h"
15064 if test "x$ac_cv_header_libindicator_indicator_ng_h" = xyes
15065 then :
15066
15067 have_indicator_ng=yes
15068
15069 printf "%s\n" "#define HAVE_LIBINDICATOR_NG 1" >>confdefs.h
15070
15071
15072 printf "%s\n" "#define HAVE_UNITY_LIBINDICATOR_NG 1" >>confdefs.h
15073
15074
15075 fi
15076
15077 CPPFLAGS="$CPPFLAGS_OLD"
15078
15079 fi
15080
15081 else $as_nop
15082
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $UNITY_INDICATOR_PKG" >&5
15084 printf %s "checking for optional package $UNITY_INDICATOR_PKG... " >&6; }
15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15086 printf "%s\n" "not found" >&6; }
15087
15088 fi
15089
15090 fi
15091
15092 else $as_nop
15093
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $AYATANA_INDICATOR_PKG or $UNITY_INDICATOR_PKG" >&5
15095 printf %s "checking for optional package $AYATANA_INDICATOR_PKG or $UNITY_INDICATOR_PKG... " >&6; }
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15097 printf "%s\n" "disabled" >&6; }
15098
15099 fi
15100
15101 if test "x$have_unity_libindicator" = "xyes"; then
15102 HAVE_UNITY_LIBINDICATOR_TRUE=
15103 HAVE_UNITY_LIBINDICATOR_FALSE='#'
15104 else
15105 HAVE_UNITY_LIBINDICATOR_TRUE='#'
15106 HAVE_UNITY_LIBINDICATOR_FALSE=
15107 fi
15108
15109
15110
15111 # Check whether --with-systemd-service-dir was given.
15112 if test ${with_systemd_service_dir+y}
15113 then :
15114 withval=$with_systemd_service_dir;
15115 fi
15116
15117 if test "x$with_systemd_service_dir" = "x" || test "x$with_systemd_service_dir" = "x"
15118 then :
15119
15120 with_systemd_service_dir="/usr/lib/systemd/user"
15121
15122 fi
15123 SYSTEMD_SERVICE_DIR="$with_systemd_service_dir"
15124
15125
15126
15127 # Check whether --enable-libido was given.
15128 if test ${enable_libido+y}
15129 then :
15130 enableval=$enable_libido;
15131 else $as_nop
15132 enable_libido=yes
15133 fi
15134
15135
15136 have_ido=no
15137
15138 if test "x$enable_libido" = "xyes" && test "x$have_libindicator" = "xyes"
15139 then :
15140
15141 if test "x$have_ayatana_libindicator" = "xyes" && $PKG_CONFIG --exists "$AYATANA_IDO_PKG" >/dev/null 2>&1
15142 then :
15143
15144
15145 pkg_failed=no
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION" >&5
15147 printf %s "checking for $AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION... " >&6; }
15148
15149 if test -n "$AYATANA_LIBIDO_CFLAGS"; then
15150 pkg_cv_AYATANA_LIBIDO_CFLAGS="$AYATANA_LIBIDO_CFLAGS"
15151 elif test -n "$PKG_CONFIG"; then
15152 if test -n "$PKG_CONFIG" && \
15153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$AYATANA_IDO_PKG >= \$AYATANA_IDO_REQUIRED_VERSION\""; } >&5
15154 ($PKG_CONFIG --exists --print-errors "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION") 2>&5
15155 ac_status=$?
15156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; }; then
15158 pkg_cv_AYATANA_LIBIDO_CFLAGS=`$PKG_CONFIG --cflags "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION" 2>/dev/null`
15159 test "x$?" != "x0" && pkg_failed=yes
15160 else
15161 pkg_failed=yes
15162 fi
15163 else
15164 pkg_failed=untried
15165 fi
15166 if test -n "$AYATANA_LIBIDO_LIBS"; then
15167 pkg_cv_AYATANA_LIBIDO_LIBS="$AYATANA_LIBIDO_LIBS"
15168 elif test -n "$PKG_CONFIG"; then
15169 if test -n "$PKG_CONFIG" && \
15170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$AYATANA_IDO_PKG >= \$AYATANA_IDO_REQUIRED_VERSION\""; } >&5
15171 ($PKG_CONFIG --exists --print-errors "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION") 2>&5
15172 ac_status=$?
15173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }; then
15175 pkg_cv_AYATANA_LIBIDO_LIBS=`$PKG_CONFIG --libs "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION" 2>/dev/null`
15176 test "x$?" != "x0" && pkg_failed=yes
15177 else
15178 pkg_failed=yes
15179 fi
15180 else
15181 pkg_failed=untried
15182 fi
15183
15184
15185
15186 if test $pkg_failed = yes; then
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 printf "%s\n" "no" >&6; }
15189
15190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15191 _pkg_short_errors_supported=yes
15192 else
15193 _pkg_short_errors_supported=no
15194 fi
15195 if test $_pkg_short_errors_supported = yes; then
15196 AYATANA_LIBIDO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION" 2>&1`
15197 else
15198 AYATANA_LIBIDO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION" 2>&1`
15199 fi
15200 # Put the nasty error message in config.log where it belongs
15201 echo "$AYATANA_LIBIDO_PKG_ERRORS" >&5
15202
15203 as_fn_error $? "Package requirements ($AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION) were not met:
15204
15205 $AYATANA_LIBIDO_PKG_ERRORS
15206
15207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15208 installed software in a non-standard prefix.
15209
15210 Alternatively, you may set the environment variables AYATANA_LIBIDO_CFLAGS
15211 and AYATANA_LIBIDO_LIBS to avoid the need to call pkg-config.
15212 See the pkg-config man page for more details." "$LINENO" 5
15213 elif test $pkg_failed = untried; then
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15215 printf "%s\n" "no" >&6; }
15216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15218 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15219 is in your PATH or set the PKG_CONFIG environment variable to the full
15220 path to pkg-config.
15221
15222 Alternatively, you may set the environment variables AYATANA_LIBIDO_CFLAGS
15223 and AYATANA_LIBIDO_LIBS to avoid the need to call pkg-config.
15224 See the pkg-config man page for more details.
15225
15226 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15227 See \`config.log' for more details" "$LINENO" 5; }
15228 else
15229 AYATANA_LIBIDO_CFLAGS=$pkg_cv_AYATANA_LIBIDO_CFLAGS
15230 AYATANA_LIBIDO_LIBS=$pkg_cv_AYATANA_LIBIDO_LIBS
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15232 printf "%s\n" "yes" >&6; }
15233
15234 have_ido=yes
15235
15236 printf "%s\n" "#define HAVE_LIBIDO 1" >>confdefs.h
15237
15238
15239 printf "%s\n" "#define HAVE_AYATANA_LIBIDO 1" >>confdefs.h
15240
15241
15242 fi
15243
15244 else $as_nop
15245
15246 if test "x$have_ayatana_libindicator" = "xyes"
15247 then :
15248
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $AYATANA_IDO_PKG" >&5
15250 printf %s "checking for optional package $AYATANA_IDO_PKG... " >&6; }
15251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15252 printf "%s\n" "not found" >&6; }
15253
15254 fi
15255 if $PKG_CONFIG --exists "$UNITY_IDO_PKG" >/dev/null 2>&1
15256 then :
15257
15258
15259 pkg_failed=no
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION" >&5
15261 printf %s "checking for $UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION... " >&6; }
15262
15263 if test -n "$UNITY_LIBIDO_CFLAGS"; then
15264 pkg_cv_UNITY_LIBIDO_CFLAGS="$UNITY_LIBIDO_CFLAGS"
15265 elif test -n "$PKG_CONFIG"; then
15266 if test -n "$PKG_CONFIG" && \
15267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$UNITY_IDO_PKG >= \$UNITY_IDO_REQUIRED_VERSION\""; } >&5
15268 ($PKG_CONFIG --exists --print-errors "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION") 2>&5
15269 ac_status=$?
15270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15271 test $ac_status = 0; }; then
15272 pkg_cv_UNITY_LIBIDO_CFLAGS=`$PKG_CONFIG --cflags "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION" 2>/dev/null`
15273 test "x$?" != "x0" && pkg_failed=yes
15274 else
15275 pkg_failed=yes
15276 fi
15277 else
15278 pkg_failed=untried
15279 fi
15280 if test -n "$UNITY_LIBIDO_LIBS"; then
15281 pkg_cv_UNITY_LIBIDO_LIBS="$UNITY_LIBIDO_LIBS"
15282 elif test -n "$PKG_CONFIG"; then
15283 if test -n "$PKG_CONFIG" && \
15284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$UNITY_IDO_PKG >= \$UNITY_IDO_REQUIRED_VERSION\""; } >&5
15285 ($PKG_CONFIG --exists --print-errors "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION") 2>&5
15286 ac_status=$?
15287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15288 test $ac_status = 0; }; then
15289 pkg_cv_UNITY_LIBIDO_LIBS=`$PKG_CONFIG --libs "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION" 2>/dev/null`
15290 test "x$?" != "x0" && pkg_failed=yes
15291 else
15292 pkg_failed=yes
15293 fi
15294 else
15295 pkg_failed=untried
15296 fi
15297
15298
15299
15300 if test $pkg_failed = yes; then
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 printf "%s\n" "no" >&6; }
15303
15304 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15305 _pkg_short_errors_supported=yes
15306 else
15307 _pkg_short_errors_supported=no
15308 fi
15309 if test $_pkg_short_errors_supported = yes; then
15310 UNITY_LIBIDO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION" 2>&1`
15311 else
15312 UNITY_LIBIDO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION" 2>&1`
15313 fi
15314 # Put the nasty error message in config.log where it belongs
15315 echo "$UNITY_LIBIDO_PKG_ERRORS" >&5
15316
15317 as_fn_error $? "Package requirements ($UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION) were not met:
15318
15319 $UNITY_LIBIDO_PKG_ERRORS
15320
15321 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15322 installed software in a non-standard prefix.
15323
15324 Alternatively, you may set the environment variables UNITY_LIBIDO_CFLAGS
15325 and UNITY_LIBIDO_LIBS to avoid the need to call pkg-config.
15326 See the pkg-config man page for more details." "$LINENO" 5
15327 elif test $pkg_failed = untried; then
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 printf "%s\n" "no" >&6; }
15330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15331 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15332 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15333 is in your PATH or set the PKG_CONFIG environment variable to the full
15334 path to pkg-config.
15335
15336 Alternatively, you may set the environment variables UNITY_LIBIDO_CFLAGS
15337 and UNITY_LIBIDO_LIBS to avoid the need to call pkg-config.
15338 See the pkg-config man page for more details.
15339
15340 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15341 See \`config.log' for more details" "$LINENO" 5; }
15342 else
15343 UNITY_LIBIDO_CFLAGS=$pkg_cv_UNITY_LIBIDO_CFLAGS
15344 UNITY_LIBIDO_LIBS=$pkg_cv_UNITY_LIBIDO_LIBS
15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15346 printf "%s\n" "yes" >&6; }
15347
15348 have_ido=yes
15349
15350 printf "%s\n" "#define HAVE_LIBIDO 1" >>confdefs.h
15351
15352
15353 printf "%s\n" "#define HAVE_UNITY_LIBIDO 1" >>confdefs.h
15354
15355
15356 fi
15357
15358 else $as_nop
15359
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $UNITY_IDO_PKG" >&5
15361 printf %s "checking for optional package $UNITY_IDO_PKG... " >&6; }
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15363 printf "%s\n" "not found" >&6; }
15364
15365 fi
15366
15367 fi
15368
15369 else $as_nop
15370
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optional package $AYATANA_IDO_PKG or $UNITY_IDO_PKG" >&5
15372 printf %s "checking for optional package $AYATANA_IDO_PKG or $UNITY_IDO_PKG... " >&6; }
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15374 printf "%s\n" "disabled" >&6; }
15375
15376 fi
15377
15378
15379
15380 # Check whether --with-libxklavier was given.
15381 if test ${with_libxklavier+y}
15382 then :
15383 withval=$with_libxklavier;
15384 fi
15385
15386
15387 if test "x$with_libxklavier" = "xyes"
15388 then :
15389
15390
15391 pkg_failed=no
15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxklavier" >&5
15393 printf %s "checking for libxklavier... " >&6; }
15394
15395 if test -n "$LIBXKLAVIER_CFLAGS"; then
15396 pkg_cv_LIBXKLAVIER_CFLAGS="$LIBXKLAVIER_CFLAGS"
15397 elif test -n "$PKG_CONFIG"; then
15398 if test -n "$PKG_CONFIG" && \
15399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxklavier\""; } >&5
15400 ($PKG_CONFIG --exists --print-errors "libxklavier") 2>&5
15401 ac_status=$?
15402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403 test $ac_status = 0; }; then
15404 pkg_cv_LIBXKLAVIER_CFLAGS=`$PKG_CONFIG --cflags "libxklavier" 2>/dev/null`
15405 test "x$?" != "x0" && pkg_failed=yes
15406 else
15407 pkg_failed=yes
15408 fi
15409 else
15410 pkg_failed=untried
15411 fi
15412 if test -n "$LIBXKLAVIER_LIBS"; then
15413 pkg_cv_LIBXKLAVIER_LIBS="$LIBXKLAVIER_LIBS"
15414 elif test -n "$PKG_CONFIG"; then
15415 if test -n "$PKG_CONFIG" && \
15416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxklavier\""; } >&5
15417 ($PKG_CONFIG --exists --print-errors "libxklavier") 2>&5
15418 ac_status=$?
15419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420 test $ac_status = 0; }; then
15421 pkg_cv_LIBXKLAVIER_LIBS=`$PKG_CONFIG --libs "libxklavier" 2>/dev/null`
15422 test "x$?" != "x0" && pkg_failed=yes
15423 else
15424 pkg_failed=yes
15425 fi
15426 else
15427 pkg_failed=untried
15428 fi
15429
15430
15431
15432 if test $pkg_failed = yes; then
15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15434 printf "%s\n" "no" >&6; }
15435
15436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15437 _pkg_short_errors_supported=yes
15438 else
15439 _pkg_short_errors_supported=no
15440 fi
15441 if test $_pkg_short_errors_supported = yes; then
15442 LIBXKLAVIER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxklavier" 2>&1`
15443 else
15444 LIBXKLAVIER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxklavier" 2>&1`
15445 fi
15446 # Put the nasty error message in config.log where it belongs
15447 echo "$LIBXKLAVIER_PKG_ERRORS" >&5
15448
15449 as_fn_error $? "Package requirements (libxklavier) were not met:
15450
15451 $LIBXKLAVIER_PKG_ERRORS
15452
15453 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15454 installed software in a non-standard prefix.
15455
15456 Alternatively, you may set the environment variables LIBXKLAVIER_CFLAGS
15457 and LIBXKLAVIER_LIBS to avoid the need to call pkg-config.
15458 See the pkg-config man page for more details." "$LINENO" 5
15459 elif test $pkg_failed = untried; then
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461 printf "%s\n" "no" >&6; }
15462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15464 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15465 is in your PATH or set the PKG_CONFIG environment variable to the full
15466 path to pkg-config.
15467
15468 Alternatively, you may set the environment variables LIBXKLAVIER_CFLAGS
15469 and LIBXKLAVIER_LIBS to avoid the need to call pkg-config.
15470 See the pkg-config man page for more details.
15471
15472 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15473 See \`config.log' for more details" "$LINENO" 5; }
15474 else
15475 LIBXKLAVIER_CFLAGS=$pkg_cv_LIBXKLAVIER_CFLAGS
15476 LIBXKLAVIER_LIBS=$pkg_cv_LIBXKLAVIER_LIBS
15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15478 printf "%s\n" "yes" >&6; }
15479 have_xklavier=yes
15480 fi
15481
15482 printf "%s\n" "#define HAVE_LIBXKLAVIER 1" >>confdefs.h
15483
15484
15485 else $as_nop
15486
15487 with_libxklavier=no
15488
15489 fi
15490
15491
15492 # Check whether --enable-at-spi-command was given.
15493 if test ${enable_at_spi_command+y}
15494 then :
15495 enableval=$enable_at_spi_command;
15496 fi
15497
15498
15499 if test "x$enable_at_spi_command" != "xno"
15500 then :
15501
15502 if test "x$enable_at_spi_command" = "xyes" || test "x$enable_at_spi_command" = "x"; then
15503 enable_at_spi_command="/usr/libexec/at-spi-bus-launcher --launch-immediately"
15504 fi
15505
15506 printf "%s\n" "#define AT_SPI_COMMAND \"$enable_at_spi_command\"" >>confdefs.h
15507
15508
15509 fi
15510
15511
15512 # Check whether --enable-indicator-services-command was given.
15513 if test ${enable_indicator_services_command+y}
15514 then :
15515 enableval=$enable_indicator_services_command;
15516 fi
15517
15518
15519 if test "x$enable_indicator_services_command" != "xno"
15520 then :
15521
15522 if test "x$enable_indicator_services_command" = "xyes" || test "x$enable_indicator_services_command" = "x"; then
15523 enable_indicator_services_command="systemd --user indicator-services-start"
15524 fi
15525
15526 printf "%s\n" "#define INDICATOR_SERVICES_COMMAND \"$enable_indicator_services_command\"" >>confdefs.h
15527
15528
15529 fi
15530
15531
15532 # Check whether --enable-kill-on-sigterm was given.
15533 if test ${enable_kill_on_sigterm+y}
15534 then :
15535 enableval=$enable_kill_on_sigterm;
15536 else $as_nop
15537 enable_kill_on_sigterm=no
15538 fi
15539
15540
15541 if test "x$enable_kill_on_sigterm" = "xyes"
15542 then :
15543
15544
15545 printf "%s\n" "#define KILL_ON_SIGTERM 1" >>confdefs.h
15546
15547
15548 fi
15549
15550
15551 GETTEXT_PACKAGE="lightdm-gtk-greeter"
15552
15553
15554 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
15555
15556
15557
15558
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15560 printf %s "checking whether NLS is requested... " >&6; }
15561 # Check whether --enable-nls was given.
15562 if test ${enable_nls+y}
15563 then :
15564 enableval=$enable_nls; USE_NLS=$enableval
15565 else $as_nop
15566 USE_NLS=yes
15567 fi
15568
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15570 printf "%s\n" "$USE_NLS" >&6; }
15571
15572
15573
15574
15575 GETTEXT_MACRO_VERSION=0.20
15576
15577
15578
15579
15580 # Prepare PATH_SEPARATOR.
15581 # The user is always right.
15582 if test "${PATH_SEPARATOR+set}" != set; then
15583 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15584 # contains only /bin. Note that ksh looks also at the FPATH variable,
15585 # so we have to set that as well for the test.
15586 PATH_SEPARATOR=:
15587 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15588 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15589 || PATH_SEPARATOR=';'
15590 }
15591 fi
15592
15593 # Find out how to test for executable files. Don't use a zero-byte file,
15594 # as systems may use methods other than mode bits to determine executability.
15595 cat >conf$$.file <<_ASEOF
15596 #! /bin/sh
15597 exit 0
15598 _ASEOF
15599 chmod +x conf$$.file
15600 if test -x conf$$.file >/dev/null 2>&1; then
15601 ac_executable_p="test -x"
15602 else
15603 ac_executable_p="test -f"
15604 fi
15605 rm -f conf$$.file
15606
15607 # Extract the first word of "msgfmt", so it can be a program name with args.
15608 set dummy msgfmt; ac_word=$2
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15610 printf %s "checking for $ac_word... " >&6; }
15611 if test ${ac_cv_path_MSGFMT+y}
15612 then :
15613 printf %s "(cached) " >&6
15614 else $as_nop
15615 case "$MSGFMT" in
15616 [\\/]* | ?:[\\/]*)
15617 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15618 ;;
15619 *)
15620 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15621 for ac_dir in $PATH; do
15622 IFS="$ac_save_IFS"
15623 test -z "$ac_dir" && ac_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15626 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15627 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15628 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15629 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15630 break 2
15631 fi
15632 fi
15633 done
15634 done
15635 IFS="$ac_save_IFS"
15636 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15637 ;;
15638 esac
15639 fi
15640 MSGFMT="$ac_cv_path_MSGFMT"
15641 if test "$MSGFMT" != ":"; then
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15643 printf "%s\n" "$MSGFMT" >&6; }
15644 else
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 printf "%s\n" "no" >&6; }
15647 fi
15648
15649 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15650 set dummy gmsgfmt; ac_word=$2
15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15652 printf %s "checking for $ac_word... " >&6; }
15653 if test ${ac_cv_path_GMSGFMT+y}
15654 then :
15655 printf %s "(cached) " >&6
15656 else $as_nop
15657 case $GMSGFMT in
15658 [\\/]* | ?:[\\/]*)
15659 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15660 ;;
15661 *)
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15664 do
15665 IFS=$as_save_IFS
15666 case $as_dir in #(((
15667 '') as_dir=./ ;;
15668 */) ;;
15669 *) as_dir=$as_dir/ ;;
15670 esac
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15673 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
15674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15675 break 2
15676 fi
15677 done
15678 done
15679 IFS=$as_save_IFS
15680
15681 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15682 ;;
15683 esac
15684 fi
15685 GMSGFMT=$ac_cv_path_GMSGFMT
15686 if test -n "$GMSGFMT"; then
15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15688 printf "%s\n" "$GMSGFMT" >&6; }
15689 else
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 printf "%s\n" "no" >&6; }
15692 fi
15693
15694
15695
15696 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15697 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15698 *) GMSGFMT_015=$GMSGFMT ;;
15699 esac
15700
15701
15702
15703 # Prepare PATH_SEPARATOR.
15704 # The user is always right.
15705 if test "${PATH_SEPARATOR+set}" != set; then
15706 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15707 # contains only /bin. Note that ksh looks also at the FPATH variable,
15708 # so we have to set that as well for the test.
15709 PATH_SEPARATOR=:
15710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15711 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15712 || PATH_SEPARATOR=';'
15713 }
15714 fi
15715
15716 # Find out how to test for executable files. Don't use a zero-byte file,
15717 # as systems may use methods other than mode bits to determine executability.
15718 cat >conf$$.file <<_ASEOF
15719 #! /bin/sh
15720 exit 0
15721 _ASEOF
15722 chmod +x conf$$.file
15723 if test -x conf$$.file >/dev/null 2>&1; then
15724 ac_executable_p="test -x"
15725 else
15726 ac_executable_p="test -f"
15727 fi
15728 rm -f conf$$.file
15729
15730 # Extract the first word of "xgettext", so it can be a program name with args.
15731 set dummy xgettext; ac_word=$2
15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15733 printf %s "checking for $ac_word... " >&6; }
15734 if test ${ac_cv_path_XGETTEXT+y}
15735 then :
15736 printf %s "(cached) " >&6
15737 else $as_nop
15738 case "$XGETTEXT" in
15739 [\\/]* | ?:[\\/]*)
15740 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15741 ;;
15742 *)
15743 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15744 for ac_dir in $PATH; do
15745 IFS="$ac_save_IFS"
15746 test -z "$ac_dir" && ac_dir=.
15747 for ac_exec_ext in '' $ac_executable_extensions; do
15748 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15749 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15750 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15751 (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
15752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15753 break 2
15754 fi
15755 fi
15756 done
15757 done
15758 IFS="$ac_save_IFS"
15759 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15760 ;;
15761 esac
15762 fi
15763 XGETTEXT="$ac_cv_path_XGETTEXT"
15764 if test "$XGETTEXT" != ":"; then
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15766 printf "%s\n" "$XGETTEXT" >&6; }
15767 else
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 printf "%s\n" "no" >&6; }
15770 fi
15771
15772 rm -f messages.po
15773
15774 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15775 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15776 *) XGETTEXT_015=$XGETTEXT ;;
15777 esac
15778
15779
15780
15781 # Prepare PATH_SEPARATOR.
15782 # The user is always right.
15783 if test "${PATH_SEPARATOR+set}" != set; then
15784 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15785 # contains only /bin. Note that ksh looks also at the FPATH variable,
15786 # so we have to set that as well for the test.
15787 PATH_SEPARATOR=:
15788 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15789 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15790 || PATH_SEPARATOR=';'
15791 }
15792 fi
15793
15794 # Find out how to test for executable files. Don't use a zero-byte file,
15795 # as systems may use methods other than mode bits to determine executability.
15796 cat >conf$$.file <<_ASEOF
15797 #! /bin/sh
15798 exit 0
15799 _ASEOF
15800 chmod +x conf$$.file
15801 if test -x conf$$.file >/dev/null 2>&1; then
15802 ac_executable_p="test -x"
15803 else
15804 ac_executable_p="test -f"
15805 fi
15806 rm -f conf$$.file
15807
15808 # Extract the first word of "msgmerge", so it can be a program name with args.
15809 set dummy msgmerge; ac_word=$2
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811 printf %s "checking for $ac_word... " >&6; }
15812 if test ${ac_cv_path_MSGMERGE+y}
15813 then :
15814 printf %s "(cached) " >&6
15815 else $as_nop
15816 case "$MSGMERGE" in
15817 [\\/]* | ?:[\\/]*)
15818 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15819 ;;
15820 *)
15821 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15822 for ac_dir in $PATH; do
15823 IFS="$ac_save_IFS"
15824 test -z "$ac_dir" && ac_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15827 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15828 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15829 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15830 break 2
15831 fi
15832 fi
15833 done
15834 done
15835 IFS="$ac_save_IFS"
15836 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15837 ;;
15838 esac
15839 fi
15840 MSGMERGE="$ac_cv_path_MSGMERGE"
15841 if test "$MSGMERGE" != ":"; then
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15843 printf "%s\n" "$MSGMERGE" >&6; }
15844 else
15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 printf "%s\n" "no" >&6; }
15847 fi
15848
15849
15850 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
15851 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
15852 else
15853 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
15854 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
15855 else
15856 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
15857 fi
15858 fi
15859
15860
15861 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15862
15863
15864 ac_config_commands="$ac_config_commands po-directories"
15865
15866
15867
15868 if test "X$prefix" = "XNONE"; then
15869 acl_final_prefix="$ac_default_prefix"
15870 else
15871 acl_final_prefix="$prefix"
15872 fi
15873 if test "X$exec_prefix" = "XNONE"; then
15874 acl_final_exec_prefix='${prefix}'
15875 else
15876 acl_final_exec_prefix="$exec_prefix"
15877 fi
15878 acl_save_prefix="$prefix"
15879 prefix="$acl_final_prefix"
15880 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15881 prefix="$acl_save_prefix"
15882
15883
15884
15885 # Check whether --with-gnu-ld was given.
15886 if test ${with_gnu_ld+y}
15887 then :
15888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15889 else $as_nop
15890 with_gnu_ld=no
15891 fi
15892
15893 # Prepare PATH_SEPARATOR.
15894 # The user is always right.
15895 if test "${PATH_SEPARATOR+set}" != set; then
15896 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15897 # contains only /bin. Note that ksh looks also at the FPATH variable,
15898 # so we have to set that as well for the test.
15899 PATH_SEPARATOR=:
15900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15901 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15902 || PATH_SEPARATOR=';'
15903 }
15904 fi
15905
15906 if test -n "$LD"; then
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
15908 printf %s "checking for ld... " >&6; }
15909 elif test "$GCC" = yes; then
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15911 printf %s "checking for ld used by $CC... " >&6; }
15912 elif test "$with_gnu_ld" = yes; then
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15914 printf %s "checking for GNU ld... " >&6; }
15915 else
15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15917 printf %s "checking for non-GNU ld... " >&6; }
15918 fi
15919 if test -n "$LD"; then
15920 # Let the user override the test with a path.
15921 :
15922 else
15923 if test ${acl_cv_path_LD+y}
15924 then :
15925 printf %s "(cached) " >&6
15926 else $as_nop
15927
15928 acl_cv_path_LD= # Final result of this test
15929 ac_prog=ld # Program to search in $PATH
15930 if test "$GCC" = yes; then
15931 # Check if gcc -print-prog-name=ld gives a path.
15932 case $host in
15933 *-*-mingw*)
15934 # gcc leaves a trailing carriage return which upsets mingw
15935 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15936 *)
15937 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
15938 esac
15939 case $acl_output in
15940 # Accept absolute paths.
15941 [\\/]* | ?:[\\/]*)
15942 re_direlt='/[^/][^/]*/\.\./'
15943 # Canonicalize the pathname of ld
15944 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
15945 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
15946 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
15947 done
15948 # Got the pathname. No search in PATH is needed.
15949 acl_cv_path_LD="$acl_output"
15950 ac_prog=
15951 ;;
15952 "")
15953 # If it fails, then pretend we aren't using GCC.
15954 ;;
15955 *)
15956 # If it is relative, then search for the first ld in PATH.
15957 with_gnu_ld=unknown
15958 ;;
15959 esac
15960 fi
15961 if test -n "$ac_prog"; then
15962 # Search for $ac_prog in $PATH.
15963 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15964 for ac_dir in $PATH; do
15965 IFS="$acl_save_ifs"
15966 test -z "$ac_dir" && ac_dir=.
15967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15968 acl_cv_path_LD="$ac_dir/$ac_prog"
15969 # Check to see if the program is GNU ld. I'd rather use --version,
15970 # but apparently some variants of GNU ld only accept -v.
15971 # Break only if it was the GNU/non-GNU ld that we prefer.
15972 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15973 *GNU* | *'with BFD'*)
15974 test "$with_gnu_ld" != no && break
15975 ;;
15976 *)
15977 test "$with_gnu_ld" != yes && break
15978 ;;
15979 esac
15980 fi
15981 done
15982 IFS="$acl_save_ifs"
15983 fi
15984 case $host in
15985 *-*-aix*)
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #if defined __powerpc64__ || defined _ARCH_PPC64
15989 int ok;
15990 #else
15991 error fail
15992 #endif
15993
15994 _ACEOF
15995 if ac_fn_c_try_compile "$LINENO"
15996 then :
15997 # The compiler produces 64-bit code. Add option '-b64' so that the
15998 # linker groks 64-bit object files.
15999 case "$acl_cv_path_LD " in
16000 *" -b64 "*) ;;
16001 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
16002 esac
16003
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16006 ;;
16007 sparc64-*-netbsd*)
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 #if defined __sparcv9 || defined __arch64__
16011 int ok;
16012 #else
16013 error fail
16014 #endif
16015
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"
16018 then :
16019
16020 else $as_nop
16021 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
16022 # so that the linker groks 32-bit object files.
16023 case "$acl_cv_path_LD " in
16024 *" -m elf32_sparc "*) ;;
16025 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
16026 esac
16027
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16030 ;;
16031 esac
16032
16033 fi
16034
16035 LD="$acl_cv_path_LD"
16036 fi
16037 if test -n "$LD"; then
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16039 printf "%s\n" "$LD" >&6; }
16040 else
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042 printf "%s\n" "no" >&6; }
16043 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16044 fi
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16046 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16047 if test ${acl_cv_prog_gnu_ld+y}
16048 then :
16049 printf %s "(cached) " >&6
16050 else $as_nop
16051 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16052 case `$LD -v 2>&1 </dev/null` in
16053 *GNU* | *'with BFD'*)
16054 acl_cv_prog_gnu_ld=yes
16055 ;;
16056 *)
16057 acl_cv_prog_gnu_ld=no
16058 ;;
16059 esac
16060 fi
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16062 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
16063 with_gnu_ld=$acl_cv_prog_gnu_ld
16064
16065
16066
16067
16068
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16070 printf %s "checking for shared library run path origin... " >&6; }
16071 if test ${acl_cv_rpath+y}
16072 then :
16073 printf %s "(cached) " >&6
16074 else $as_nop
16075
16076 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16077 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16078 . ./conftest.sh
16079 rm -f ./conftest.sh
16080 acl_cv_rpath=done
16081
16082 fi
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16084 printf "%s\n" "$acl_cv_rpath" >&6; }
16085 wl="$acl_cv_wl"
16086 acl_libext="$acl_cv_libext"
16087 acl_shlibext="$acl_cv_shlibext"
16088 acl_libname_spec="$acl_cv_libname_spec"
16089 acl_library_names_spec="$acl_cv_library_names_spec"
16090 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16091 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16092 acl_hardcode_direct="$acl_cv_hardcode_direct"
16093 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16094 # Check whether --enable-rpath was given.
16095 if test ${enable_rpath+y}
16096 then :
16097 enableval=$enable_rpath; :
16098 else $as_nop
16099 enable_rpath=yes
16100 fi
16101
16102
16103
16104
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
16106 printf %s "checking 32-bit host C ABI... " >&6; }
16107 if test ${gl_cv_host_cpu_c_abi_32bit+y}
16108 then :
16109 printf %s "(cached) " >&6
16110 else $as_nop
16111 if test -n "$gl_cv_host_cpu_c_abi"; then
16112 case "$gl_cv_host_cpu_c_abi" in
16113 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
16114 gl_cv_host_cpu_c_abi_32bit=yes ;;
16115 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
16116 gl_cv_host_cpu_c_abi_32bit=no ;;
16117 *)
16118 gl_cv_host_cpu_c_abi_32bit=unknown ;;
16119 esac
16120 else
16121 case "$host_cpu" in
16122
16123 # CPUs that only support a 32-bit ABI.
16124 arc \
16125 | bfin \
16126 | cris* \
16127 | csky \
16128 | epiphany \
16129 | ft32 \
16130 | h8300 \
16131 | m68k \
16132 | microblaze | microblazeel \
16133 | nds32 | nds32le | nds32be \
16134 | nios2 | nios2eb | nios2el \
16135 | or1k* \
16136 | or32 \
16137 | sh | sh1234 | sh1234elb \
16138 | tic6x \
16139 | xtensa* )
16140 gl_cv_host_cpu_c_abi_32bit=yes
16141 ;;
16142
16143 # CPUs that only support a 64-bit ABI.
16144 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
16145 | mmix )
16146 gl_cv_host_cpu_c_abi_32bit=no
16147 ;;
16148
16149 i[34567]86 )
16150 gl_cv_host_cpu_c_abi_32bit=yes
16151 ;;
16152
16153 x86_64 )
16154 # On x86_64 systems, the C compiler may be generating code in one of
16155 # these ABIs:
16156 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
16157 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
16158 # with native Windows (mingw, MSVC).
16159 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
16160 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #if (defined __x86_64__ || defined __amd64__ \
16164 || defined _M_X64 || defined _M_AMD64) \
16165 && !(defined __ILP32__ || defined _ILP32)
16166 int ok;
16167 #else
16168 error fail
16169 #endif
16170
16171 _ACEOF
16172 if ac_fn_c_try_compile "$LINENO"
16173 then :
16174 gl_cv_host_cpu_c_abi_32bit=no
16175 else $as_nop
16176 gl_cv_host_cpu_c_abi_32bit=yes
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16179 ;;
16180
16181 arm* | aarch64 )
16182 # Assume arm with EABI.
16183 # On arm64 systems, the C compiler may be generating code in one of
16184 # these ABIs:
16185 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
16186 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
16187 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
16191 int ok;
16192 #else
16193 error fail
16194 #endif
16195
16196 _ACEOF
16197 if ac_fn_c_try_compile "$LINENO"
16198 then :
16199 gl_cv_host_cpu_c_abi_32bit=no
16200 else $as_nop
16201 gl_cv_host_cpu_c_abi_32bit=yes
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16204 ;;
16205
16206 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
16207 # On hppa, the C compiler may be generating 32-bit code or 64-bit
16208 # code. In the latter case, it defines _LP64 and __LP64__.
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 #ifdef __LP64__
16212 int ok;
16213 #else
16214 error fail
16215 #endif
16216
16217 _ACEOF
16218 if ac_fn_c_try_compile "$LINENO"
16219 then :
16220 gl_cv_host_cpu_c_abi_32bit=no
16221 else $as_nop
16222 gl_cv_host_cpu_c_abi_32bit=yes
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16225 ;;
16226
16227 ia64* )
16228 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
16229 # 32-bit code. In the latter case, it defines _ILP32.
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16232 #ifdef _ILP32
16233 int ok;
16234 #else
16235 error fail
16236 #endif
16237
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"
16240 then :
16241 gl_cv_host_cpu_c_abi_32bit=yes
16242 else $as_nop
16243 gl_cv_host_cpu_c_abi_32bit=no
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16246 ;;
16247
16248 mips* )
16249 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
16250 # at 32.
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
16254 int ok;
16255 #else
16256 error fail
16257 #endif
16258
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"
16261 then :
16262 gl_cv_host_cpu_c_abi_32bit=no
16263 else $as_nop
16264 gl_cv_host_cpu_c_abi_32bit=yes
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16267 ;;
16268
16269 powerpc* )
16270 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
16271 # No need to distinguish them here; the caller may distinguish
16272 # them based on the OS.
16273 # On powerpc64 systems, the C compiler may still be generating
16274 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
16275 # be generating 64-bit code.
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #if defined __powerpc64__ || defined _ARCH_PPC64
16279 int ok;
16280 #else
16281 error fail
16282 #endif
16283
16284 _ACEOF
16285 if ac_fn_c_try_compile "$LINENO"
16286 then :
16287 gl_cv_host_cpu_c_abi_32bit=no
16288 else $as_nop
16289 gl_cv_host_cpu_c_abi_32bit=yes
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16292 ;;
16293
16294 rs6000 )
16295 gl_cv_host_cpu_c_abi_32bit=yes
16296 ;;
16297
16298 riscv32 | riscv64 )
16299 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
16300 # Size of 'long' and 'void *':
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 #if defined __LP64__
16304 int ok;
16305 #else
16306 error fail
16307 #endif
16308
16309 _ACEOF
16310 if ac_fn_c_try_compile "$LINENO"
16311 then :
16312 gl_cv_host_cpu_c_abi_32bit=no
16313 else $as_nop
16314 gl_cv_host_cpu_c_abi_32bit=yes
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16317 ;;
16318
16319 s390* )
16320 # On s390x, the C compiler may be generating 64-bit (= s390x) code
16321 # or 31-bit (= s390) code.
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 #if defined __LP64__ || defined __s390x__
16325 int ok;
16326 #else
16327 error fail
16328 #endif
16329
16330 _ACEOF
16331 if ac_fn_c_try_compile "$LINENO"
16332 then :
16333 gl_cv_host_cpu_c_abi_32bit=no
16334 else $as_nop
16335 gl_cv_host_cpu_c_abi_32bit=yes
16336 fi
16337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16338 ;;
16339
16340 sparc | sparc64 )
16341 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
16342 # C compiler still generates 32-bit code.
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #if defined __sparcv9 || defined __arch64__
16346 int ok;
16347 #else
16348 error fail
16349 #endif
16350
16351 _ACEOF
16352 if ac_fn_c_try_compile "$LINENO"
16353 then :
16354 gl_cv_host_cpu_c_abi_32bit=no
16355 else $as_nop
16356 gl_cv_host_cpu_c_abi_32bit=yes
16357 fi
16358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16359 ;;
16360
16361 *)
16362 gl_cv_host_cpu_c_abi_32bit=unknown
16363 ;;
16364 esac
16365 fi
16366
16367 fi
16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
16369 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
16370
16371 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
16372
16373
16374
16375
16376
16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
16378 printf %s "checking for ELF binary format... " >&6; }
16379 if test ${gl_cv_elf+y}
16380 then :
16381 printf %s "(cached) " >&6
16382 else $as_nop
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #ifdef __ELF__
16386 Extensible Linking Format
16387 #endif
16388
16389 _ACEOF
16390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16391 $EGREP "Extensible Linking Format" >/dev/null 2>&1
16392 then :
16393 gl_cv_elf=yes
16394 else $as_nop
16395 gl_cv_elf=no
16396 fi
16397 rm -rf conftest*
16398
16399
16400 fi
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
16402 printf "%s\n" "$gl_cv_elf" >&6; }
16403 if test $gl_cv_elf; then
16404 # Extract the ELF class of a file (5th byte) in decimal.
16405 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
16406 if od -A x < /dev/null >/dev/null 2>/dev/null; then
16407 # Use POSIX od.
16408 func_elfclass ()
16409 {
16410 od -A n -t d1 -j 4 -N 1
16411 }
16412 else
16413 # Use BSD hexdump.
16414 func_elfclass ()
16415 {
16416 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
16417 echo
16418 }
16419 fi
16420 case $HOST_CPU_C_ABI_32BIT in
16421 yes)
16422 # 32-bit ABI.
16423 acl_is_expected_elfclass ()
16424 {
16425 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
16426 }
16427 ;;
16428 no)
16429 # 64-bit ABI.
16430 acl_is_expected_elfclass ()
16431 {
16432 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
16433 }
16434 ;;
16435 *)
16436 # Unknown.
16437 acl_is_expected_elfclass ()
16438 {
16439 :
16440 }
16441 ;;
16442 esac
16443 else
16444 acl_is_expected_elfclass ()
16445 {
16446 :
16447 }
16448 fi
16449
16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
16451 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
16452 if test ${acl_cv_libdirstems+y}
16453 then :
16454 printf %s "(cached) " >&6
16455 else $as_nop
16456 acl_libdirstem=lib
16457 acl_libdirstem2=
16458 acl_libdirstem3=
16459 case "$host_os" in
16460 solaris*)
16461 if test $HOST_CPU_C_ABI_32BIT = no; then
16462 acl_libdirstem2=lib/64
16463 case "$host_cpu" in
16464 sparc*) acl_libdirstem3=lib/sparcv9 ;;
16465 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
16466 esac
16467 fi
16468 ;;
16469 *)
16470 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
16471 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16472 if test $HOST_CPU_C_ABI_32BIT != no; then
16473 # 32-bit or unknown ABI.
16474 if test -d /usr/lib32; then
16475 acl_libdirstem2=lib32
16476 fi
16477 fi
16478 if test $HOST_CPU_C_ABI_32BIT != yes; then
16479 # 64-bit or unknown ABI.
16480 if test -d /usr/lib64; then
16481 acl_libdirstem3=lib64
16482 fi
16483 fi
16484 if test -n "$searchpath"; then
16485 acl_save_IFS="${IFS= }"; IFS=":"
16486 for searchdir in $searchpath; do
16487 if test -d "$searchdir"; then
16488 case "$searchdir" in
16489 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
16490 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
16491 */../ | */.. )
16492 # Better ignore directories of this form. They are misleading.
16493 ;;
16494 *) searchdir=`cd "$searchdir" && pwd`
16495 case "$searchdir" in
16496 */lib32 ) acl_libdirstem2=lib32 ;;
16497 */lib64 ) acl_libdirstem3=lib64 ;;
16498 esac ;;
16499 esac
16500 fi
16501 done
16502 IFS="$acl_save_IFS"
16503 if test $HOST_CPU_C_ABI_32BIT = yes; then
16504 # 32-bit ABI.
16505 acl_libdirstem3=
16506 fi
16507 if test $HOST_CPU_C_ABI_32BIT = no; then
16508 # 64-bit ABI.
16509 acl_libdirstem2=
16510 fi
16511 fi
16512 ;;
16513 esac
16514 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16515 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
16516 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
16517
16518 fi
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
16520 printf "%s\n" "$acl_cv_libdirstems" >&6; }
16521 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
16522 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
16523 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535 use_additional=yes
16536
16537 acl_save_prefix="$prefix"
16538 prefix="$acl_final_prefix"
16539 acl_save_exec_prefix="$exec_prefix"
16540 exec_prefix="$acl_final_exec_prefix"
16541
16542 eval additional_includedir=\"$includedir\"
16543 eval additional_libdir=\"$libdir\"
16544 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16545 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16546
16547 exec_prefix="$acl_save_exec_prefix"
16548 prefix="$acl_save_prefix"
16549
16550
16551 # Check whether --with-libiconv-prefix was given.
16552 if test ${with_libiconv_prefix+y}
16553 then :
16554 withval=$with_libiconv_prefix;
16555 if test "X$withval" = "Xno"; then
16556 use_additional=no
16557 else
16558 if test "X$withval" = "X"; then
16559
16560 acl_save_prefix="$prefix"
16561 prefix="$acl_final_prefix"
16562 acl_save_exec_prefix="$exec_prefix"
16563 exec_prefix="$acl_final_exec_prefix"
16564
16565 eval additional_includedir=\"$includedir\"
16566 eval additional_libdir=\"$libdir\"
16567 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16568 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16569
16570 exec_prefix="$acl_save_exec_prefix"
16571 prefix="$acl_save_prefix"
16572
16573 else
16574 additional_includedir="$withval/include"
16575 additional_libdir="$withval/$acl_libdirstem"
16576 additional_libdir2="$withval/$acl_libdirstem2"
16577 additional_libdir3="$withval/$acl_libdirstem3"
16578 fi
16579 fi
16580
16581 fi
16582
16583 if test "X$additional_libdir2" = "X$additional_libdir"; then
16584 additional_libdir2=
16585 fi
16586 if test "X$additional_libdir3" = "X$additional_libdir"; then
16587 additional_libdir3=
16588 fi
16589 LIBICONV=
16590 LTLIBICONV=
16591 INCICONV=
16592 LIBICONV_PREFIX=
16593 HAVE_LIBICONV=
16594 rpathdirs=
16595 ltrpathdirs=
16596 names_already_handled=
16597 names_next_round='iconv '
16598 while test -n "$names_next_round"; do
16599 names_this_round="$names_next_round"
16600 names_next_round=
16601 for name in $names_this_round; do
16602 already_handled=
16603 for n in $names_already_handled; do
16604 if test "$n" = "$name"; then
16605 already_handled=yes
16606 break
16607 fi
16608 done
16609 if test -z "$already_handled"; then
16610 names_already_handled="$names_already_handled $name"
16611 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16612 eval value=\"\$HAVE_LIB$uppername\"
16613 if test -n "$value"; then
16614 if test "$value" = yes; then
16615 eval value=\"\$LIB$uppername\"
16616 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16617 eval value=\"\$LTLIB$uppername\"
16618 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16619 else
16620 :
16621 fi
16622 else
16623 found_dir=
16624 found_la=
16625 found_so=
16626 found_a=
16627 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16628 if test -n "$acl_shlibext"; then
16629 shrext=".$acl_shlibext" # typically: shrext=.so
16630 else
16631 shrext=
16632 fi
16633 if test $use_additional = yes; then
16634 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16635 if test "X$found_dir" = "X"; then
16636 eval dir=\$$additional_libdir_variable
16637 if test -n "$dir"; then
16638 if test -n "$acl_shlibext"; then
16639 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16640 found_dir="$dir"
16641 found_so="$dir/$libname$shrext"
16642 else
16643 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16644 ver=`(cd "$dir" && \
16645 for f in "$libname$shrext".*; do echo "$f"; done \
16646 | sed -e "s,^$libname$shrext\\\\.,," \
16647 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16648 | sed 1q ) 2>/dev/null`
16649 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16650 found_dir="$dir"
16651 found_so="$dir/$libname$shrext.$ver"
16652 fi
16653 else
16654 eval library_names=\"$acl_library_names_spec\"
16655 for f in $library_names; do
16656 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16657 found_dir="$dir"
16658 found_so="$dir/$f"
16659 break
16660 fi
16661 done
16662 fi
16663 fi
16664 fi
16665 if test "X$found_dir" = "X"; then
16666 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16667 found_dir="$dir"
16668 found_a="$dir/$libname.$acl_libext"
16669 fi
16670 fi
16671 if test "X$found_dir" != "X"; then
16672 if test -f "$dir/$libname.la"; then
16673 found_la="$dir/$libname.la"
16674 fi
16675 fi
16676 fi
16677 fi
16678 done
16679 fi
16680 if test "X$found_dir" = "X"; then
16681 for x in $LDFLAGS $LTLIBICONV; do
16682
16683 acl_save_prefix="$prefix"
16684 prefix="$acl_final_prefix"
16685 acl_save_exec_prefix="$exec_prefix"
16686 exec_prefix="$acl_final_exec_prefix"
16687 eval x=\"$x\"
16688 exec_prefix="$acl_save_exec_prefix"
16689 prefix="$acl_save_prefix"
16690
16691 case "$x" in
16692 -L*)
16693 dir=`echo "X$x" | sed -e 's/^X-L//'`
16694 if test -n "$acl_shlibext"; then
16695 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16696 found_dir="$dir"
16697 found_so="$dir/$libname$shrext"
16698 else
16699 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16700 ver=`(cd "$dir" && \
16701 for f in "$libname$shrext".*; do echo "$f"; done \
16702 | sed -e "s,^$libname$shrext\\\\.,," \
16703 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16704 | sed 1q ) 2>/dev/null`
16705 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16706 found_dir="$dir"
16707 found_so="$dir/$libname$shrext.$ver"
16708 fi
16709 else
16710 eval library_names=\"$acl_library_names_spec\"
16711 for f in $library_names; do
16712 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16713 found_dir="$dir"
16714 found_so="$dir/$f"
16715 break
16716 fi
16717 done
16718 fi
16719 fi
16720 fi
16721 if test "X$found_dir" = "X"; then
16722 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16723 found_dir="$dir"
16724 found_a="$dir/$libname.$acl_libext"
16725 fi
16726 fi
16727 if test "X$found_dir" != "X"; then
16728 if test -f "$dir/$libname.la"; then
16729 found_la="$dir/$libname.la"
16730 fi
16731 fi
16732 ;;
16733 esac
16734 if test "X$found_dir" != "X"; then
16735 break
16736 fi
16737 done
16738 fi
16739 if test "X$found_dir" != "X"; then
16740 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16741 if test "X$found_so" != "X"; then
16742 if test "$enable_rpath" = no \
16743 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16744 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
16745 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
16746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16747 else
16748 haveit=
16749 for x in $ltrpathdirs; do
16750 if test "X$x" = "X$found_dir"; then
16751 haveit=yes
16752 break
16753 fi
16754 done
16755 if test -z "$haveit"; then
16756 ltrpathdirs="$ltrpathdirs $found_dir"
16757 fi
16758 if test "$acl_hardcode_direct" = yes; then
16759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16760 else
16761 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16763 haveit=
16764 for x in $rpathdirs; do
16765 if test "X$x" = "X$found_dir"; then
16766 haveit=yes
16767 break
16768 fi
16769 done
16770 if test -z "$haveit"; then
16771 rpathdirs="$rpathdirs $found_dir"
16772 fi
16773 else
16774 haveit=
16775 for x in $LDFLAGS $LIBICONV; do
16776
16777 acl_save_prefix="$prefix"
16778 prefix="$acl_final_prefix"
16779 acl_save_exec_prefix="$exec_prefix"
16780 exec_prefix="$acl_final_exec_prefix"
16781 eval x=\"$x\"
16782 exec_prefix="$acl_save_exec_prefix"
16783 prefix="$acl_save_prefix"
16784
16785 if test "X$x" = "X-L$found_dir"; then
16786 haveit=yes
16787 break
16788 fi
16789 done
16790 if test -z "$haveit"; then
16791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16792 fi
16793 if test "$acl_hardcode_minus_L" != no; then
16794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16795 else
16796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16797 fi
16798 fi
16799 fi
16800 fi
16801 else
16802 if test "X$found_a" != "X"; then
16803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16804 else
16805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16806 fi
16807 fi
16808 additional_includedir=
16809 case "$found_dir" in
16810 */$acl_libdirstem | */$acl_libdirstem/)
16811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16812 if test "$name" = 'iconv'; then
16813 LIBICONV_PREFIX="$basedir"
16814 fi
16815 additional_includedir="$basedir/include"
16816 ;;
16817 */$acl_libdirstem2 | */$acl_libdirstem2/)
16818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16819 if test "$name" = 'iconv'; then
16820 LIBICONV_PREFIX="$basedir"
16821 fi
16822 additional_includedir="$basedir/include"
16823 ;;
16824 */$acl_libdirstem3 | */$acl_libdirstem3/)
16825 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
16826 if test "$name" = 'iconv'; then
16827 LIBICONV_PREFIX="$basedir"
16828 fi
16829 additional_includedir="$basedir/include"
16830 ;;
16831 esac
16832 if test "X$additional_includedir" != "X"; then
16833 if test "X$additional_includedir" != "X/usr/include"; then
16834 haveit=
16835 if test "X$additional_includedir" = "X/usr/local/include"; then
16836 if test -n "$GCC"; then
16837 case $host_os in
16838 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16839 esac
16840 fi
16841 fi
16842 if test -z "$haveit"; then
16843 for x in $CPPFLAGS $INCICONV; do
16844
16845 acl_save_prefix="$prefix"
16846 prefix="$acl_final_prefix"
16847 acl_save_exec_prefix="$exec_prefix"
16848 exec_prefix="$acl_final_exec_prefix"
16849 eval x=\"$x\"
16850 exec_prefix="$acl_save_exec_prefix"
16851 prefix="$acl_save_prefix"
16852
16853 if test "X$x" = "X-I$additional_includedir"; then
16854 haveit=yes
16855 break
16856 fi
16857 done
16858 if test -z "$haveit"; then
16859 if test -d "$additional_includedir"; then
16860 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16861 fi
16862 fi
16863 fi
16864 fi
16865 fi
16866 if test -n "$found_la"; then
16867 save_libdir="$libdir"
16868 case "$found_la" in
16869 */* | *\\*) . "$found_la" ;;
16870 *) . "./$found_la" ;;
16871 esac
16872 libdir="$save_libdir"
16873 for dep in $dependency_libs; do
16874 case "$dep" in
16875 -L*)
16876 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16877 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
16878 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
16879 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
16880 haveit=
16881 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
16882 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
16883 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
16884 if test -n "$GCC"; then
16885 case $host_os in
16886 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16887 esac
16888 fi
16889 fi
16890 if test -z "$haveit"; then
16891 haveit=
16892 for x in $LDFLAGS $LIBICONV; do
16893
16894 acl_save_prefix="$prefix"
16895 prefix="$acl_final_prefix"
16896 acl_save_exec_prefix="$exec_prefix"
16897 exec_prefix="$acl_final_exec_prefix"
16898 eval x=\"$x\"
16899 exec_prefix="$acl_save_exec_prefix"
16900 prefix="$acl_save_prefix"
16901
16902 if test "X$x" = "X-L$dependency_libdir"; then
16903 haveit=yes
16904 break
16905 fi
16906 done
16907 if test -z "$haveit"; then
16908 if test -d "$dependency_libdir"; then
16909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
16910 fi
16911 fi
16912 haveit=
16913 for x in $LDFLAGS $LTLIBICONV; do
16914
16915 acl_save_prefix="$prefix"
16916 prefix="$acl_final_prefix"
16917 acl_save_exec_prefix="$exec_prefix"
16918 exec_prefix="$acl_final_exec_prefix"
16919 eval x=\"$x\"
16920 exec_prefix="$acl_save_exec_prefix"
16921 prefix="$acl_save_prefix"
16922
16923 if test "X$x" = "X-L$dependency_libdir"; then
16924 haveit=yes
16925 break
16926 fi
16927 done
16928 if test -z "$haveit"; then
16929 if test -d "$dependency_libdir"; then
16930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
16931 fi
16932 fi
16933 fi
16934 fi
16935 ;;
16936 -R*)
16937 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16938 if test "$enable_rpath" != no; then
16939 haveit=
16940 for x in $rpathdirs; do
16941 if test "X$x" = "X$dir"; then
16942 haveit=yes
16943 break
16944 fi
16945 done
16946 if test -z "$haveit"; then
16947 rpathdirs="$rpathdirs $dir"
16948 fi
16949 haveit=
16950 for x in $ltrpathdirs; do
16951 if test "X$x" = "X$dir"; then
16952 haveit=yes
16953 break
16954 fi
16955 done
16956 if test -z "$haveit"; then
16957 ltrpathdirs="$ltrpathdirs $dir"
16958 fi
16959 fi
16960 ;;
16961 -l*)
16962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16963 ;;
16964 *.la)
16965 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16966 ;;
16967 *)
16968 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16970 ;;
16971 esac
16972 done
16973 fi
16974 else
16975 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16977 fi
16978 fi
16979 fi
16980 done
16981 done
16982 if test "X$rpathdirs" != "X"; then
16983 if test -n "$acl_hardcode_libdir_separator"; then
16984 alldirs=
16985 for found_dir in $rpathdirs; do
16986 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16987 done
16988 acl_save_libdir="$libdir"
16989 libdir="$alldirs"
16990 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16991 libdir="$acl_save_libdir"
16992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16993 else
16994 for found_dir in $rpathdirs; do
16995 acl_save_libdir="$libdir"
16996 libdir="$found_dir"
16997 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16998 libdir="$acl_save_libdir"
16999 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17000 done
17001 fi
17002 fi
17003 if test "X$ltrpathdirs" != "X"; then
17004 for found_dir in $ltrpathdirs; do
17005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17006 done
17007 fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17038 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17039 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
17040 then :
17041 printf %s "(cached) " >&6
17042 else $as_nop
17043 gt_save_LIBS="$LIBS"
17044 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <CoreFoundation/CFPreferences.h>
17048 int
17049 main (void)
17050 {
17051 CFPreferencesCopyAppValue(NULL, NULL)
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_link "$LINENO"
17057 then :
17058 gt_cv_func_CFPreferencesCopyAppValue=yes
17059 else $as_nop
17060 gt_cv_func_CFPreferencesCopyAppValue=no
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17063 conftest$ac_exeext conftest.$ac_ext
17064 LIBS="$gt_save_LIBS"
17065 fi
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17067 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17068 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17069
17070 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17071
17072 fi
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17074 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17075 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
17076 then :
17077 printf %s "(cached) " >&6
17078 else $as_nop
17079 gt_save_LIBS="$LIBS"
17080 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083 #include <CoreFoundation/CFLocale.h>
17084 int
17085 main (void)
17086 {
17087 CFLocaleCopyPreferredLanguages();
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"
17093 then :
17094 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17095 else $as_nop
17096 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17099 conftest$ac_exeext conftest.$ac_ext
17100 LIBS="$gt_save_LIBS"
17101 fi
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17103 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17104 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17105
17106 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17107
17108 fi
17109 INTL_MACOSX_LIBS=
17110 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17111 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17112 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17113 fi
17114
17115
17116
17117
17118
17119
17120 LIBINTL=
17121 LTLIBINTL=
17122 POSUB=
17123
17124 case " $gt_needs " in
17125 *" need-formatstring-macros "*) gt_api_version=3 ;;
17126 *" need-ngettext "*) gt_api_version=2 ;;
17127 *) gt_api_version=1 ;;
17128 esac
17129 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17130 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17131
17132 if test "$USE_NLS" = "yes"; then
17133 gt_use_preinstalled_gnugettext=no
17134
17135
17136 if test $gt_api_version -ge 3; then
17137 gt_revision_test_code='
17138 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17139 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17140 #endif
17141 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17142 '
17143 else
17144 gt_revision_test_code=
17145 fi
17146 if test $gt_api_version -ge 2; then
17147 gt_expression_test_code=' + * ngettext ("", "", 0)'
17148 else
17149 gt_expression_test_code=
17150 fi
17151
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17153 printf %s "checking for GNU gettext in libc... " >&6; }
17154 if eval test \${$gt_func_gnugettext_libc+y}
17155 then :
17156 printf %s "(cached) " >&6
17157 else $as_nop
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17160
17161 #include <libintl.h>
17162 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17163 extern int _nl_msg_cat_cntr;
17164 extern int *_nl_domain_bindings;
17165 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17166 #else
17167 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17168 #endif
17169 $gt_revision_test_code
17170
17171 int
17172 main (void)
17173 {
17174
17175 bindtextdomain ("", "");
17176 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17177
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 if ac_fn_c_try_link "$LINENO"
17183 then :
17184 eval "$gt_func_gnugettext_libc=yes"
17185 else $as_nop
17186 eval "$gt_func_gnugettext_libc=no"
17187 fi
17188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189 conftest$ac_exeext conftest.$ac_ext
17190 fi
17191 eval ac_res=\$$gt_func_gnugettext_libc
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17193 printf "%s\n" "$ac_res" >&6; }
17194
17195 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17196
17197
17198
17199
17200
17201 am_save_CPPFLAGS="$CPPFLAGS"
17202
17203 for element in $INCICONV; do
17204 haveit=
17205 for x in $CPPFLAGS; do
17206
17207 acl_save_prefix="$prefix"
17208 prefix="$acl_final_prefix"
17209 acl_save_exec_prefix="$exec_prefix"
17210 exec_prefix="$acl_final_exec_prefix"
17211 eval x=\"$x\"
17212 exec_prefix="$acl_save_exec_prefix"
17213 prefix="$acl_save_prefix"
17214
17215 if test "X$x" = "X$element"; then
17216 haveit=yes
17217 break
17218 fi
17219 done
17220 if test -z "$haveit"; then
17221 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17222 fi
17223 done
17224
17225
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17227 printf %s "checking for iconv... " >&6; }
17228 if test ${am_cv_func_iconv+y}
17229 then :
17230 printf %s "(cached) " >&6
17231 else $as_nop
17232
17233 am_cv_func_iconv="no, consider installing GNU libiconv"
17234 am_cv_lib_iconv=no
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h. */
17237
17238 #include <stdlib.h>
17239 #include <iconv.h>
17240
17241 int
17242 main (void)
17243 {
17244 iconv_t cd = iconv_open("","");
17245 iconv(cd,NULL,NULL,NULL,NULL);
17246 iconv_close(cd);
17247 ;
17248 return 0;
17249 }
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"
17252 then :
17253 am_cv_func_iconv=yes
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17256 conftest$ac_exeext conftest.$ac_ext
17257 if test "$am_cv_func_iconv" != yes; then
17258 am_save_LIBS="$LIBS"
17259 LIBS="$LIBS $LIBICONV"
17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17261 /* end confdefs.h. */
17262
17263 #include <stdlib.h>
17264 #include <iconv.h>
17265
17266 int
17267 main (void)
17268 {
17269 iconv_t cd = iconv_open("","");
17270 iconv(cd,NULL,NULL,NULL,NULL);
17271 iconv_close(cd);
17272 ;
17273 return 0;
17274 }
17275 _ACEOF
17276 if ac_fn_c_try_link "$LINENO"
17277 then :
17278 am_cv_lib_iconv=yes
17279 am_cv_func_iconv=yes
17280 fi
17281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS="$am_save_LIBS"
17284 fi
17285
17286 fi
17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17288 printf "%s\n" "$am_cv_func_iconv" >&6; }
17289 if test "$am_cv_func_iconv" = yes; then
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17291 printf %s "checking for working iconv... " >&6; }
17292 if test ${am_cv_func_iconv_works+y}
17293 then :
17294 printf %s "(cached) " >&6
17295 else $as_nop
17296
17297 am_save_LIBS="$LIBS"
17298 if test $am_cv_lib_iconv = yes; then
17299 LIBS="$LIBS $LIBICONV"
17300 fi
17301 am_cv_func_iconv_works=no
17302 for ac_iconv_const in '' 'const'; do
17303 if test "$cross_compiling" = yes
17304 then :
17305 case "$host_os" in
17306 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17307 *) am_cv_func_iconv_works="guessing yes" ;;
17308 esac
17309 else $as_nop
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312
17313 #include <iconv.h>
17314 #include <string.h>
17315
17316 #ifndef ICONV_CONST
17317 # define ICONV_CONST $ac_iconv_const
17318 #endif
17319
17320 int
17321 main (void)
17322 {
17323 int result = 0;
17324 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17325 returns. */
17326 {
17327 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17328 if (cd_utf8_to_88591 != (iconv_t)(-1))
17329 {
17330 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17331 char buf[10];
17332 ICONV_CONST char *inptr = input;
17333 size_t inbytesleft = strlen (input);
17334 char *outptr = buf;
17335 size_t outbytesleft = sizeof (buf);
17336 size_t res = iconv (cd_utf8_to_88591,
17337 &inptr, &inbytesleft,
17338 &outptr, &outbytesleft);
17339 if (res == 0)
17340 result |= 1;
17341 iconv_close (cd_utf8_to_88591);
17342 }
17343 }
17344 /* Test against Solaris 10 bug: Failures are not distinguishable from
17345 successful returns. */
17346 {
17347 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17348 if (cd_ascii_to_88591 != (iconv_t)(-1))
17349 {
17350 static ICONV_CONST char input[] = "\263";
17351 char buf[10];
17352 ICONV_CONST char *inptr = input;
17353 size_t inbytesleft = strlen (input);
17354 char *outptr = buf;
17355 size_t outbytesleft = sizeof (buf);
17356 size_t res = iconv (cd_ascii_to_88591,
17357 &inptr, &inbytesleft,
17358 &outptr, &outbytesleft);
17359 if (res == 0)
17360 result |= 2;
17361 iconv_close (cd_ascii_to_88591);
17362 }
17363 }
17364 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17365 {
17366 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17367 if (cd_88591_to_utf8 != (iconv_t)(-1))
17368 {
17369 static ICONV_CONST char input[] = "\304";
17370 static char buf[2] = { (char)0xDE, (char)0xAD };
17371 ICONV_CONST char *inptr = input;
17372 size_t inbytesleft = 1;
17373 char *outptr = buf;
17374 size_t outbytesleft = 1;
17375 size_t res = iconv (cd_88591_to_utf8,
17376 &inptr, &inbytesleft,
17377 &outptr, &outbytesleft);
17378 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17379 result |= 4;
17380 iconv_close (cd_88591_to_utf8);
17381 }
17382 }
17383 #if 0 /* This bug could be worked around by the caller. */
17384 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17385 {
17386 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17387 if (cd_88591_to_utf8 != (iconv_t)(-1))
17388 {
17389 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17390 char buf[50];
17391 ICONV_CONST char *inptr = input;
17392 size_t inbytesleft = strlen (input);
17393 char *outptr = buf;
17394 size_t outbytesleft = sizeof (buf);
17395 size_t res = iconv (cd_88591_to_utf8,
17396 &inptr, &inbytesleft,
17397 &outptr, &outbytesleft);
17398 if ((int)res > 0)
17399 result |= 8;
17400 iconv_close (cd_88591_to_utf8);
17401 }
17402 }
17403 #endif
17404 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17405 provided. */
17406 {
17407 /* Try standardized names. */
17408 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17409 /* Try IRIX, OSF/1 names. */
17410 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17411 /* Try AIX names. */
17412 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17413 /* Try HP-UX names. */
17414 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17415 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17416 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17417 result |= 16;
17418 if (cd1 != (iconv_t)(-1))
17419 iconv_close (cd1);
17420 if (cd2 != (iconv_t)(-1))
17421 iconv_close (cd2);
17422 if (cd3 != (iconv_t)(-1))
17423 iconv_close (cd3);
17424 if (cd4 != (iconv_t)(-1))
17425 iconv_close (cd4);
17426 }
17427 return result;
17428
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_run "$LINENO"
17434 then :
17435 am_cv_func_iconv_works=yes
17436 fi
17437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17438 conftest.$ac_objext conftest.beam conftest.$ac_ext
17439 fi
17440
17441 test "$am_cv_func_iconv_works" = no || break
17442 done
17443 LIBS="$am_save_LIBS"
17444
17445 fi
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17447 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17448 case "$am_cv_func_iconv_works" in
17449 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17450 *) am_func_iconv=yes ;;
17451 esac
17452 else
17453 am_func_iconv=no am_cv_lib_iconv=no
17454 fi
17455 if test "$am_func_iconv" = yes; then
17456
17457 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17458
17459 fi
17460 if test "$am_cv_lib_iconv" = yes; then
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17462 printf %s "checking how to link with libiconv... " >&6; }
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17464 printf "%s\n" "$LIBICONV" >&6; }
17465 else
17466 CPPFLAGS="$am_save_CPPFLAGS"
17467 LIBICONV=
17468 LTLIBICONV=
17469 fi
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480 use_additional=yes
17481
17482 acl_save_prefix="$prefix"
17483 prefix="$acl_final_prefix"
17484 acl_save_exec_prefix="$exec_prefix"
17485 exec_prefix="$acl_final_exec_prefix"
17486
17487 eval additional_includedir=\"$includedir\"
17488 eval additional_libdir=\"$libdir\"
17489 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17490 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17491
17492 exec_prefix="$acl_save_exec_prefix"
17493 prefix="$acl_save_prefix"
17494
17495
17496 # Check whether --with-libintl-prefix was given.
17497 if test ${with_libintl_prefix+y}
17498 then :
17499 withval=$with_libintl_prefix;
17500 if test "X$withval" = "Xno"; then
17501 use_additional=no
17502 else
17503 if test "X$withval" = "X"; then
17504
17505 acl_save_prefix="$prefix"
17506 prefix="$acl_final_prefix"
17507 acl_save_exec_prefix="$exec_prefix"
17508 exec_prefix="$acl_final_exec_prefix"
17509
17510 eval additional_includedir=\"$includedir\"
17511 eval additional_libdir=\"$libdir\"
17512 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17513 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17514
17515 exec_prefix="$acl_save_exec_prefix"
17516 prefix="$acl_save_prefix"
17517
17518 else
17519 additional_includedir="$withval/include"
17520 additional_libdir="$withval/$acl_libdirstem"
17521 additional_libdir2="$withval/$acl_libdirstem2"
17522 additional_libdir3="$withval/$acl_libdirstem3"
17523 fi
17524 fi
17525
17526 fi
17527
17528 if test "X$additional_libdir2" = "X$additional_libdir"; then
17529 additional_libdir2=
17530 fi
17531 if test "X$additional_libdir3" = "X$additional_libdir"; then
17532 additional_libdir3=
17533 fi
17534 LIBINTL=
17535 LTLIBINTL=
17536 INCINTL=
17537 LIBINTL_PREFIX=
17538 HAVE_LIBINTL=
17539 rpathdirs=
17540 ltrpathdirs=
17541 names_already_handled=
17542 names_next_round='intl '
17543 while test -n "$names_next_round"; do
17544 names_this_round="$names_next_round"
17545 names_next_round=
17546 for name in $names_this_round; do
17547 already_handled=
17548 for n in $names_already_handled; do
17549 if test "$n" = "$name"; then
17550 already_handled=yes
17551 break
17552 fi
17553 done
17554 if test -z "$already_handled"; then
17555 names_already_handled="$names_already_handled $name"
17556 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17557 eval value=\"\$HAVE_LIB$uppername\"
17558 if test -n "$value"; then
17559 if test "$value" = yes; then
17560 eval value=\"\$LIB$uppername\"
17561 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17562 eval value=\"\$LTLIB$uppername\"
17563 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17564 else
17565 :
17566 fi
17567 else
17568 found_dir=
17569 found_la=
17570 found_so=
17571 found_a=
17572 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17573 if test -n "$acl_shlibext"; then
17574 shrext=".$acl_shlibext" # typically: shrext=.so
17575 else
17576 shrext=
17577 fi
17578 if test $use_additional = yes; then
17579 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17580 if test "X$found_dir" = "X"; then
17581 eval dir=\$$additional_libdir_variable
17582 if test -n "$dir"; then
17583 if test -n "$acl_shlibext"; then
17584 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17585 found_dir="$dir"
17586 found_so="$dir/$libname$shrext"
17587 else
17588 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17589 ver=`(cd "$dir" && \
17590 for f in "$libname$shrext".*; do echo "$f"; done \
17591 | sed -e "s,^$libname$shrext\\\\.,," \
17592 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17593 | sed 1q ) 2>/dev/null`
17594 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17595 found_dir="$dir"
17596 found_so="$dir/$libname$shrext.$ver"
17597 fi
17598 else
17599 eval library_names=\"$acl_library_names_spec\"
17600 for f in $library_names; do
17601 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17602 found_dir="$dir"
17603 found_so="$dir/$f"
17604 break
17605 fi
17606 done
17607 fi
17608 fi
17609 fi
17610 if test "X$found_dir" = "X"; then
17611 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17612 found_dir="$dir"
17613 found_a="$dir/$libname.$acl_libext"
17614 fi
17615 fi
17616 if test "X$found_dir" != "X"; then
17617 if test -f "$dir/$libname.la"; then
17618 found_la="$dir/$libname.la"
17619 fi
17620 fi
17621 fi
17622 fi
17623 done
17624 fi
17625 if test "X$found_dir" = "X"; then
17626 for x in $LDFLAGS $LTLIBINTL; do
17627
17628 acl_save_prefix="$prefix"
17629 prefix="$acl_final_prefix"
17630 acl_save_exec_prefix="$exec_prefix"
17631 exec_prefix="$acl_final_exec_prefix"
17632 eval x=\"$x\"
17633 exec_prefix="$acl_save_exec_prefix"
17634 prefix="$acl_save_prefix"
17635
17636 case "$x" in
17637 -L*)
17638 dir=`echo "X$x" | sed -e 's/^X-L//'`
17639 if test -n "$acl_shlibext"; then
17640 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17641 found_dir="$dir"
17642 found_so="$dir/$libname$shrext"
17643 else
17644 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17645 ver=`(cd "$dir" && \
17646 for f in "$libname$shrext".*; do echo "$f"; done \
17647 | sed -e "s,^$libname$shrext\\\\.,," \
17648 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17649 | sed 1q ) 2>/dev/null`
17650 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17651 found_dir="$dir"
17652 found_so="$dir/$libname$shrext.$ver"
17653 fi
17654 else
17655 eval library_names=\"$acl_library_names_spec\"
17656 for f in $library_names; do
17657 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17658 found_dir="$dir"
17659 found_so="$dir/$f"
17660 break
17661 fi
17662 done
17663 fi
17664 fi
17665 fi
17666 if test "X$found_dir" = "X"; then
17667 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17668 found_dir="$dir"
17669 found_a="$dir/$libname.$acl_libext"
17670 fi
17671 fi
17672 if test "X$found_dir" != "X"; then
17673 if test -f "$dir/$libname.la"; then
17674 found_la="$dir/$libname.la"
17675 fi
17676 fi
17677 ;;
17678 esac
17679 if test "X$found_dir" != "X"; then
17680 break
17681 fi
17682 done
17683 fi
17684 if test "X$found_dir" != "X"; then
17685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17686 if test "X$found_so" != "X"; then
17687 if test "$enable_rpath" = no \
17688 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17689 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17690 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17691 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17692 else
17693 haveit=
17694 for x in $ltrpathdirs; do
17695 if test "X$x" = "X$found_dir"; then
17696 haveit=yes
17697 break
17698 fi
17699 done
17700 if test -z "$haveit"; then
17701 ltrpathdirs="$ltrpathdirs $found_dir"
17702 fi
17703 if test "$acl_hardcode_direct" = yes; then
17704 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17705 else
17706 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17708 haveit=
17709 for x in $rpathdirs; do
17710 if test "X$x" = "X$found_dir"; then
17711 haveit=yes
17712 break
17713 fi
17714 done
17715 if test -z "$haveit"; then
17716 rpathdirs="$rpathdirs $found_dir"
17717 fi
17718 else
17719 haveit=
17720 for x in $LDFLAGS $LIBINTL; do
17721
17722 acl_save_prefix="$prefix"
17723 prefix="$acl_final_prefix"
17724 acl_save_exec_prefix="$exec_prefix"
17725 exec_prefix="$acl_final_exec_prefix"
17726 eval x=\"$x\"
17727 exec_prefix="$acl_save_exec_prefix"
17728 prefix="$acl_save_prefix"
17729
17730 if test "X$x" = "X-L$found_dir"; then
17731 haveit=yes
17732 break
17733 fi
17734 done
17735 if test -z "$haveit"; then
17736 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17737 fi
17738 if test "$acl_hardcode_minus_L" != no; then
17739 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17740 else
17741 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17742 fi
17743 fi
17744 fi
17745 fi
17746 else
17747 if test "X$found_a" != "X"; then
17748 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17749 else
17750 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17751 fi
17752 fi
17753 additional_includedir=
17754 case "$found_dir" in
17755 */$acl_libdirstem | */$acl_libdirstem/)
17756 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17757 if test "$name" = 'intl'; then
17758 LIBINTL_PREFIX="$basedir"
17759 fi
17760 additional_includedir="$basedir/include"
17761 ;;
17762 */$acl_libdirstem2 | */$acl_libdirstem2/)
17763 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17764 if test "$name" = 'intl'; then
17765 LIBINTL_PREFIX="$basedir"
17766 fi
17767 additional_includedir="$basedir/include"
17768 ;;
17769 */$acl_libdirstem3 | */$acl_libdirstem3/)
17770 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17771 if test "$name" = 'intl'; then
17772 LIBINTL_PREFIX="$basedir"
17773 fi
17774 additional_includedir="$basedir/include"
17775 ;;
17776 esac
17777 if test "X$additional_includedir" != "X"; then
17778 if test "X$additional_includedir" != "X/usr/include"; then
17779 haveit=
17780 if test "X$additional_includedir" = "X/usr/local/include"; then
17781 if test -n "$GCC"; then
17782 case $host_os in
17783 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17784 esac
17785 fi
17786 fi
17787 if test -z "$haveit"; then
17788 for x in $CPPFLAGS $INCINTL; do
17789
17790 acl_save_prefix="$prefix"
17791 prefix="$acl_final_prefix"
17792 acl_save_exec_prefix="$exec_prefix"
17793 exec_prefix="$acl_final_exec_prefix"
17794 eval x=\"$x\"
17795 exec_prefix="$acl_save_exec_prefix"
17796 prefix="$acl_save_prefix"
17797
17798 if test "X$x" = "X-I$additional_includedir"; then
17799 haveit=yes
17800 break
17801 fi
17802 done
17803 if test -z "$haveit"; then
17804 if test -d "$additional_includedir"; then
17805 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17806 fi
17807 fi
17808 fi
17809 fi
17810 fi
17811 if test -n "$found_la"; then
17812 save_libdir="$libdir"
17813 case "$found_la" in
17814 */* | *\\*) . "$found_la" ;;
17815 *) . "./$found_la" ;;
17816 esac
17817 libdir="$save_libdir"
17818 for dep in $dependency_libs; do
17819 case "$dep" in
17820 -L*)
17821 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17822 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17823 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17824 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17825 haveit=
17826 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17827 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17828 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17829 if test -n "$GCC"; then
17830 case $host_os in
17831 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17832 esac
17833 fi
17834 fi
17835 if test -z "$haveit"; then
17836 haveit=
17837 for x in $LDFLAGS $LIBINTL; do
17838
17839 acl_save_prefix="$prefix"
17840 prefix="$acl_final_prefix"
17841 acl_save_exec_prefix="$exec_prefix"
17842 exec_prefix="$acl_final_exec_prefix"
17843 eval x=\"$x\"
17844 exec_prefix="$acl_save_exec_prefix"
17845 prefix="$acl_save_prefix"
17846
17847 if test "X$x" = "X-L$dependency_libdir"; then
17848 haveit=yes
17849 break
17850 fi
17851 done
17852 if test -z "$haveit"; then
17853 if test -d "$dependency_libdir"; then
17854 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
17855 fi
17856 fi
17857 haveit=
17858 for x in $LDFLAGS $LTLIBINTL; do
17859
17860 acl_save_prefix="$prefix"
17861 prefix="$acl_final_prefix"
17862 acl_save_exec_prefix="$exec_prefix"
17863 exec_prefix="$acl_final_exec_prefix"
17864 eval x=\"$x\"
17865 exec_prefix="$acl_save_exec_prefix"
17866 prefix="$acl_save_prefix"
17867
17868 if test "X$x" = "X-L$dependency_libdir"; then
17869 haveit=yes
17870 break
17871 fi
17872 done
17873 if test -z "$haveit"; then
17874 if test -d "$dependency_libdir"; then
17875 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
17876 fi
17877 fi
17878 fi
17879 fi
17880 ;;
17881 -R*)
17882 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17883 if test "$enable_rpath" != no; then
17884 haveit=
17885 for x in $rpathdirs; do
17886 if test "X$x" = "X$dir"; then
17887 haveit=yes
17888 break
17889 fi
17890 done
17891 if test -z "$haveit"; then
17892 rpathdirs="$rpathdirs $dir"
17893 fi
17894 haveit=
17895 for x in $ltrpathdirs; do
17896 if test "X$x" = "X$dir"; then
17897 haveit=yes
17898 break
17899 fi
17900 done
17901 if test -z "$haveit"; then
17902 ltrpathdirs="$ltrpathdirs $dir"
17903 fi
17904 fi
17905 ;;
17906 -l*)
17907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17908 ;;
17909 *.la)
17910 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17911 ;;
17912 *)
17913 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17915 ;;
17916 esac
17917 done
17918 fi
17919 else
17920 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17922 fi
17923 fi
17924 fi
17925 done
17926 done
17927 if test "X$rpathdirs" != "X"; then
17928 if test -n "$acl_hardcode_libdir_separator"; then
17929 alldirs=
17930 for found_dir in $rpathdirs; do
17931 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17932 done
17933 acl_save_libdir="$libdir"
17934 libdir="$alldirs"
17935 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17936 libdir="$acl_save_libdir"
17937 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17938 else
17939 for found_dir in $rpathdirs; do
17940 acl_save_libdir="$libdir"
17941 libdir="$found_dir"
17942 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17943 libdir="$acl_save_libdir"
17944 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17945 done
17946 fi
17947 fi
17948 if test "X$ltrpathdirs" != "X"; then
17949 for found_dir in $ltrpathdirs; do
17950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17951 done
17952 fi
17953
17954
17955
17956
17957
17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17959 printf %s "checking for GNU gettext in libintl... " >&6; }
17960 if eval test \${$gt_func_gnugettext_libintl+y}
17961 then :
17962 printf %s "(cached) " >&6
17963 else $as_nop
17964 gt_save_CPPFLAGS="$CPPFLAGS"
17965 CPPFLAGS="$CPPFLAGS $INCINTL"
17966 gt_save_LIBS="$LIBS"
17967 LIBS="$LIBS $LIBINTL"
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970
17971 #include <libintl.h>
17972 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17973 extern int _nl_msg_cat_cntr;
17974 extern
17975 #ifdef __cplusplus
17976 "C"
17977 #endif
17978 const char *_nl_expand_alias (const char *);
17979 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17980 #else
17981 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17982 #endif
17983 $gt_revision_test_code
17984
17985 int
17986 main (void)
17987 {
17988
17989 bindtextdomain ("", "");
17990 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17991
17992 ;
17993 return 0;
17994 }
17995 _ACEOF
17996 if ac_fn_c_try_link "$LINENO"
17997 then :
17998 eval "$gt_func_gnugettext_libintl=yes"
17999 else $as_nop
18000 eval "$gt_func_gnugettext_libintl=no"
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18003 conftest$ac_exeext conftest.$ac_ext
18004 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18005 LIBS="$LIBS $LIBICONV"
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18008
18009 #include <libintl.h>
18010 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18011 extern int _nl_msg_cat_cntr;
18012 extern
18013 #ifdef __cplusplus
18014 "C"
18015 #endif
18016 const char *_nl_expand_alias (const char *);
18017 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18018 #else
18019 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18020 #endif
18021 $gt_revision_test_code
18022
18023 int
18024 main (void)
18025 {
18026
18027 bindtextdomain ("", "");
18028 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18029
18030 ;
18031 return 0;
18032 }
18033 _ACEOF
18034 if ac_fn_c_try_link "$LINENO"
18035 then :
18036 LIBINTL="$LIBINTL $LIBICONV"
18037 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18038 eval "$gt_func_gnugettext_libintl=yes"
18039
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18042 conftest$ac_exeext conftest.$ac_ext
18043 fi
18044 CPPFLAGS="$gt_save_CPPFLAGS"
18045 LIBS="$gt_save_LIBS"
18046 fi
18047 eval ac_res=\$$gt_func_gnugettext_libintl
18048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18049 printf "%s\n" "$ac_res" >&6; }
18050 fi
18051
18052 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18053 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18054 && test "$PACKAGE" != gettext-runtime \
18055 && test "$PACKAGE" != gettext-tools; }; then
18056 gt_use_preinstalled_gnugettext=yes
18057 else
18058 LIBINTL=
18059 LTLIBINTL=
18060 INCINTL=
18061 fi
18062
18063
18064
18065 if test -n "$INTL_MACOSX_LIBS"; then
18066 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18067 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18068 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18069 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18070 fi
18071 fi
18072
18073 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18074 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18075
18076 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
18077
18078 else
18079 USE_NLS=no
18080 fi
18081 fi
18082
18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18084 printf %s "checking whether to use NLS... " >&6; }
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18086 printf "%s\n" "$USE_NLS" >&6; }
18087 if test "$USE_NLS" = "yes"; then
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18089 printf %s "checking where the gettext function comes from... " >&6; }
18090 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18091 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18092 gt_source="external libintl"
18093 else
18094 gt_source="libc"
18095 fi
18096 else
18097 gt_source="included intl directory"
18098 fi
18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18100 printf "%s\n" "$gt_source" >&6; }
18101 fi
18102
18103 if test "$USE_NLS" = "yes"; then
18104
18105 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18106 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18108 printf %s "checking how to link with libintl... " >&6; }
18109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18110 printf "%s\n" "$LIBINTL" >&6; }
18111
18112 for element in $INCINTL; do
18113 haveit=
18114 for x in $CPPFLAGS; do
18115
18116 acl_save_prefix="$prefix"
18117 prefix="$acl_final_prefix"
18118 acl_save_exec_prefix="$exec_prefix"
18119 exec_prefix="$acl_final_exec_prefix"
18120 eval x=\"$x\"
18121 exec_prefix="$acl_save_exec_prefix"
18122 prefix="$acl_save_prefix"
18123
18124 if test "X$x" = "X$element"; then
18125 haveit=yes
18126 break
18127 fi
18128 done
18129 if test -z "$haveit"; then
18130 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18131 fi
18132 done
18133
18134 fi
18135
18136
18137 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
18138
18139
18140 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
18141
18142 fi
18143
18144 POSUB=po
18145 fi
18146
18147
18148
18149 INTLLIBS="$LIBINTL"
18150
18151
18152
18153
18154
18155
18156
18157
18158 ac_config_files="$ac_config_files Makefile data/Makefile data/badges/Makefile po/Makefile.in src/Makefile"
18159
18160 cat >confcache <<\_ACEOF
18161 # This file is a shell script that caches the results of configure
18162 # tests run on this system so they can be shared between configure
18163 # scripts and configure runs, see configure's option --config-cache.
18164 # It is not useful on other systems. If it contains results you don't
18165 # want to keep, you may remove or edit it.
18166 #
18167 # config.status only pays attention to the cache file if you give it
18168 # the --recheck option to rerun configure.
18169 #
18170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18172 # following values.
18173
18174 _ACEOF
18175
18176 # The following way of writing the cache mishandles newlines in values,
18177 # but we know of no workaround that is simple, portable, and efficient.
18178 # So, we kill variables containing newlines.
18179 # Ultrix sh set writes to stderr and can't be redirected directly,
18180 # and sets the high bit in the cache file unless we assign to the vars.
18181 (
18182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18183 eval ac_val=\$$ac_var
18184 case $ac_val in #(
18185 *${as_nl}*)
18186 case $ac_var in #(
18187 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18188 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18189 esac
18190 case $ac_var in #(
18191 _ | IFS | as_nl) ;; #(
18192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18193 *) { eval $ac_var=; unset $ac_var;} ;;
18194 esac ;;
18195 esac
18196 done
18197
18198 (set) 2>&1 |
18199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18200 *${as_nl}ac_space=\ *)
18201 # `set' does not quote correctly, so add quotes: double-quote
18202 # substitution turns \\\\ into \\, and sed turns \\ into \.
18203 sed -n \
18204 "s/'/'\\\\''/g;
18205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18206 ;; #(
18207 *)
18208 # `set' quotes correctly as required by POSIX, so do not add quotes.
18209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18210 ;;
18211 esac |
18212 sort
18213 ) |
18214 sed '
18215 /^ac_cv_env_/b end
18216 t clear
18217 :clear
18218 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18219 t end
18220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18221 :end' >>confcache
18222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18223 if test -w "$cache_file"; then
18224 if test "x$cache_file" != "x/dev/null"; then
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18226 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18227 if test ! -f "$cache_file" || test -h "$cache_file"; then
18228 cat confcache >"$cache_file"
18229 else
18230 case $cache_file in #(
18231 */* | ?:*)
18232 mv -f confcache "$cache_file"$$ &&
18233 mv -f "$cache_file"$$ "$cache_file" ;; #(
18234 *)
18235 mv -f confcache "$cache_file" ;;
18236 esac
18237 fi
18238 fi
18239 else
18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18241 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18242 fi
18243 fi
18244 rm -f confcache
18245
18246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18247 # Let make expand exec_prefix.
18248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18249
18250 DEFS=-DHAVE_CONFIG_H
18251
18252 ac_libobjs=
18253 ac_ltlibobjs=
18254 U=
18255 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18256 # 1. Remove the extension, and $U if already installed.
18257 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18258 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18260 # will be set to the directory where LIBOBJS objects are built.
18261 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18262 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18263 done
18264 LIBOBJS=$ac_libobjs
18265
18266 LTLIBOBJS=$ac_ltlibobjs
18267
18268
18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18270 printf %s "checking that generated files are newer than configure... " >&6; }
18271 if test -n "$am_sleep_pid"; then
18272 # Hide warnings about reused PIDs.
18273 wait $am_sleep_pid 2>/dev/null
18274 fi
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18276 printf "%s\n" "done" >&6; }
18277 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18278 as_fn_error $? "conditional \"AMDEP\" was never defined.
18279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18280 fi
18281 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18284 fi
18285 if test -n "$EXEEXT"; then
18286 am__EXEEXT_TRUE=
18287 am__EXEEXT_FALSE='#'
18288 else
18289 am__EXEEXT_TRUE='#'
18290 am__EXEEXT_FALSE=
18291 fi
18292
18293 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18294 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18296 fi
18297 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
18298 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
18299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18300 fi
18301 if test -z "${HAVE_UNITY_LIBINDICATOR_TRUE}" && test -z "${HAVE_UNITY_LIBINDICATOR_FALSE}"; then
18302 as_fn_error $? "conditional \"HAVE_UNITY_LIBINDICATOR\" was never defined.
18303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18304 fi
18305
18306 : "${CONFIG_STATUS=./config.status}"
18307 ac_write_fail=0
18308 ac_clean_files_save=$ac_clean_files
18309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18311 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18312 as_write_fail=0
18313 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18314 #! $SHELL
18315 # Generated by $as_me.
18316 # Run this file to recreate the current configuration.
18317 # Compiler output produced by configure, useful for debugging
18318 # configure, is in config.log if it exists.
18319
18320 debug=false
18321 ac_cs_recheck=false
18322 ac_cs_silent=false
18323
18324 SHELL=\${CONFIG_SHELL-$SHELL}
18325 export SHELL
18326 _ASEOF
18327 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18328 ## -------------------- ##
18329 ## M4sh Initialization. ##
18330 ## -------------------- ##
18331
18332 # Be more Bourne compatible
18333 DUALCASE=1; export DUALCASE # for MKS sh
18334 as_nop=:
18335 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18336 then :
18337 emulate sh
18338 NULLCMD=:
18339 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18340 # is contrary to our usage. Disable this feature.
18341 alias -g '${1+"$@"}'='"$@"'
18342 setopt NO_GLOB_SUBST
18343 else $as_nop
18344 case `(set -o) 2>/dev/null` in #(
18345 *posix*) :
18346 set -o posix ;; #(
18347 *) :
18348 ;;
18349 esac
18350 fi
18351
18352
18353
18354 # Reset variables that may have inherited troublesome values from
18355 # the environment.
18356
18357 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18358 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18359 # side effect of setting IFS to empty, thus disabling word splitting.)
18360 # Quoting is to prevent editors from complaining about space-tab.
18361 as_nl='
18362 '
18363 export as_nl
18364 IFS=" "" $as_nl"
18365
18366 PS1='$ '
18367 PS2='> '
18368 PS4='+ '
18369
18370 # Ensure predictable behavior from utilities with locale-dependent output.
18371 LC_ALL=C
18372 export LC_ALL
18373 LANGUAGE=C
18374 export LANGUAGE
18375
18376 # We cannot yet rely on "unset" to work, but we need these variables
18377 # to be unset--not just set to an empty or harmless value--now, to
18378 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18379 # also avoids known problems related to "unset" and subshell syntax
18380 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18381 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18382 do eval test \${$as_var+y} \
18383 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18384 done
18385
18386 # Ensure that fds 0, 1, and 2 are open.
18387 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18388 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18389 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18390
18391 # The user is always right.
18392 if ${PATH_SEPARATOR+false} :; then
18393 PATH_SEPARATOR=:
18394 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18395 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18396 PATH_SEPARATOR=';'
18397 }
18398 fi
18399
18400
18401 # Find who we are. Look in the path if we contain no directory separator.
18402 as_myself=
18403 case $0 in #((
18404 *[\\/]* ) as_myself=$0 ;;
18405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18406 for as_dir in $PATH
18407 do
18408 IFS=$as_save_IFS
18409 case $as_dir in #(((
18410 '') as_dir=./ ;;
18411 */) ;;
18412 *) as_dir=$as_dir/ ;;
18413 esac
18414 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18415 done
18416 IFS=$as_save_IFS
18417
18418 ;;
18419 esac
18420 # We did not find ourselves, most probably we were run as `sh COMMAND'
18421 # in which case we are not to be found in the path.
18422 if test "x$as_myself" = x; then
18423 as_myself=$0
18424 fi
18425 if test ! -f "$as_myself"; then
18426 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18427 exit 1
18428 fi
18429
18430
18431
18432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18433 # ----------------------------------------
18434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18436 # script with STATUS, using 1 if that was 0.
18437 as_fn_error ()
18438 {
18439 as_status=$1; test $as_status -eq 0 && as_status=1
18440 if test "$4"; then
18441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18443 fi
18444 printf "%s\n" "$as_me: error: $2" >&2
18445 as_fn_exit $as_status
18446 } # as_fn_error
18447
18448
18449
18450 # as_fn_set_status STATUS
18451 # -----------------------
18452 # Set $? to STATUS, without forking.
18453 as_fn_set_status ()
18454 {
18455 return $1
18456 } # as_fn_set_status
18457
18458 # as_fn_exit STATUS
18459 # -----------------
18460 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18461 as_fn_exit ()
18462 {
18463 set +e
18464 as_fn_set_status $1
18465 exit $1
18466 } # as_fn_exit
18467
18468 # as_fn_unset VAR
18469 # ---------------
18470 # Portably unset VAR.
18471 as_fn_unset ()
18472 {
18473 { eval $1=; unset $1;}
18474 }
18475 as_unset=as_fn_unset
18476
18477 # as_fn_append VAR VALUE
18478 # ----------------------
18479 # Append the text in VALUE to the end of the definition contained in VAR. Take
18480 # advantage of any shell optimizations that allow amortized linear growth over
18481 # repeated appends, instead of the typical quadratic growth present in naive
18482 # implementations.
18483 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18484 then :
18485 eval 'as_fn_append ()
18486 {
18487 eval $1+=\$2
18488 }'
18489 else $as_nop
18490 as_fn_append ()
18491 {
18492 eval $1=\$$1\$2
18493 }
18494 fi # as_fn_append
18495
18496 # as_fn_arith ARG...
18497 # ------------------
18498 # Perform arithmetic evaluation on the ARGs, and store the result in the
18499 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18500 # must be portable across $(()) and expr.
18501 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18502 then :
18503 eval 'as_fn_arith ()
18504 {
18505 as_val=$(( $* ))
18506 }'
18507 else $as_nop
18508 as_fn_arith ()
18509 {
18510 as_val=`expr "$@" || test $? -eq 1`
18511 }
18512 fi # as_fn_arith
18513
18514
18515 if expr a : '\(a\)' >/dev/null 2>&1 &&
18516 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18517 as_expr=expr
18518 else
18519 as_expr=false
18520 fi
18521
18522 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18523 as_basename=basename
18524 else
18525 as_basename=false
18526 fi
18527
18528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18529 as_dirname=dirname
18530 else
18531 as_dirname=false
18532 fi
18533
18534 as_me=`$as_basename -- "$0" ||
18535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18536 X"$0" : 'X\(//\)$' \| \
18537 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18538 printf "%s\n" X/"$0" |
18539 sed '/^.*\/\([^/][^/]*\)\/*$/{
18540 s//\1/
18541 q
18542 }
18543 /^X\/\(\/\/\)$/{
18544 s//\1/
18545 q
18546 }
18547 /^X\/\(\/\).*/{
18548 s//\1/
18549 q
18550 }
18551 s/.*/./; q'`
18552
18553 # Avoid depending upon Character Ranges.
18554 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18555 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18556 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18557 as_cr_digits='0123456789'
18558 as_cr_alnum=$as_cr_Letters$as_cr_digits
18559
18560
18561 # Determine whether it's possible to make 'echo' print without a newline.
18562 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18563 # for compatibility with existing Makefiles.
18564 ECHO_C= ECHO_N= ECHO_T=
18565 case `echo -n x` in #(((((
18566 -n*)
18567 case `echo 'xy\c'` in
18568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18569 xy) ECHO_C='\c';;
18570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18571 ECHO_T=' ';;
18572 esac;;
18573 *)
18574 ECHO_N='-n';;
18575 esac
18576
18577 # For backward compatibility with old third-party macros, we provide
18578 # the shell variables $as_echo and $as_echo_n. New code should use
18579 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18580 as_echo='printf %s\n'
18581 as_echo_n='printf %s'
18582
18583 rm -f conf$$ conf$$.exe conf$$.file
18584 if test -d conf$$.dir; then
18585 rm -f conf$$.dir/conf$$.file
18586 else
18587 rm -f conf$$.dir
18588 mkdir conf$$.dir 2>/dev/null
18589 fi
18590 if (echo >conf$$.file) 2>/dev/null; then
18591 if ln -s conf$$.file conf$$ 2>/dev/null; then
18592 as_ln_s='ln -s'
18593 # ... but there are two gotchas:
18594 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18595 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18596 # In both cases, we have to default to `cp -pR'.
18597 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18598 as_ln_s='cp -pR'
18599 elif ln conf$$.file conf$$ 2>/dev/null; then
18600 as_ln_s=ln
18601 else
18602 as_ln_s='cp -pR'
18603 fi
18604 else
18605 as_ln_s='cp -pR'
18606 fi
18607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18608 rmdir conf$$.dir 2>/dev/null
18609
18610
18611 # as_fn_mkdir_p
18612 # -------------
18613 # Create "$as_dir" as a directory, including parents if necessary.
18614 as_fn_mkdir_p ()
18615 {
18616
18617 case $as_dir in #(
18618 -*) as_dir=./$as_dir;;
18619 esac
18620 test -d "$as_dir" || eval $as_mkdir_p || {
18621 as_dirs=
18622 while :; do
18623 case $as_dir in #(
18624 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18625 *) as_qdir=$as_dir;;
18626 esac
18627 as_dirs="'$as_qdir' $as_dirs"
18628 as_dir=`$as_dirname -- "$as_dir" ||
18629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18630 X"$as_dir" : 'X\(//\)[^/]' \| \
18631 X"$as_dir" : 'X\(//\)$' \| \
18632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18633 printf "%s\n" X"$as_dir" |
18634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18635 s//\1/
18636 q
18637 }
18638 /^X\(\/\/\)[^/].*/{
18639 s//\1/
18640 q
18641 }
18642 /^X\(\/\/\)$/{
18643 s//\1/
18644 q
18645 }
18646 /^X\(\/\).*/{
18647 s//\1/
18648 q
18649 }
18650 s/.*/./; q'`
18651 test -d "$as_dir" && break
18652 done
18653 test -z "$as_dirs" || eval "mkdir $as_dirs"
18654 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18655
18656
18657 } # as_fn_mkdir_p
18658 if mkdir -p . 2>/dev/null; then
18659 as_mkdir_p='mkdir -p "$as_dir"'
18660 else
18661 test -d ./-p && rmdir ./-p
18662 as_mkdir_p=false
18663 fi
18664
18665
18666 # as_fn_executable_p FILE
18667 # -----------------------
18668 # Test if FILE is an executable regular file.
18669 as_fn_executable_p ()
18670 {
18671 test -f "$1" && test -x "$1"
18672 } # as_fn_executable_p
18673 as_test_x='test -x'
18674 as_executable_p=as_fn_executable_p
18675
18676 # Sed expression to map a string onto a valid CPP name.
18677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18678
18679 # Sed expression to map a string onto a valid variable name.
18680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18681
18682
18683 exec 6>&1
18684 ## ----------------------------------- ##
18685 ## Main body of $CONFIG_STATUS script. ##
18686 ## ----------------------------------- ##
18687 _ASEOF
18688 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18689
18690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18691 # Save the log message, to keep $0 and so on meaningful, and to
18692 # report actual input values of CONFIG_FILES etc. instead of their
18693 # values after options handling.
18694 ac_log="
18695 This file was extended by lightdm-gtk-greeter $as_me 2.0.9, which was
18696 generated by GNU Autoconf 2.71. Invocation command line was
18697
18698 CONFIG_FILES = $CONFIG_FILES
18699 CONFIG_HEADERS = $CONFIG_HEADERS
18700 CONFIG_LINKS = $CONFIG_LINKS
18701 CONFIG_COMMANDS = $CONFIG_COMMANDS
18702 $ $0 $@
18703
18704 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18705 "
18706
18707 _ACEOF
18708
18709 case $ac_config_files in *"
18710 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18711 esac
18712
18713 case $ac_config_headers in *"
18714 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18715 esac
18716
18717
18718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18719 # Files that config.status was made for.
18720 config_files="$ac_config_files"
18721 config_headers="$ac_config_headers"
18722 config_commands="$ac_config_commands"
18723
18724 _ACEOF
18725
18726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18727 ac_cs_usage="\
18728 \`$as_me' instantiates files and other configuration actions
18729 from templates according to the current configuration. Unless the files
18730 and actions are specified as TAGs, all are instantiated by default.
18731
18732 Usage: $0 [OPTION]... [TAG]...
18733
18734 -h, --help print this help, then exit
18735 -V, --version print version number and configuration settings, then exit
18736 --config print configuration, then exit
18737 -q, --quiet, --silent
18738 do not print progress messages
18739 -d, --debug don't remove temporary files
18740 --recheck update $as_me by reconfiguring in the same conditions
18741 --file=FILE[:TEMPLATE]
18742 instantiate the configuration file FILE
18743 --header=FILE[:TEMPLATE]
18744 instantiate the configuration header FILE
18745
18746 Configuration files:
18747 $config_files
18748
18749 Configuration headers:
18750 $config_headers
18751
18752 Configuration commands:
18753 $config_commands
18754
18755 Report bugs to <https://github.com/xubuntu/lightdm-gtk-greeter>."
18756
18757 _ACEOF
18758 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18759 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18761 ac_cs_config='$ac_cs_config_escaped'
18762 ac_cs_version="\\
18763 lightdm-gtk-greeter config.status 2.0.9
18764 configured by $0, generated by GNU Autoconf 2.71,
18765 with options \\"\$ac_cs_config\\"
18766
18767 Copyright (C) 2021 Free Software Foundation, Inc.
18768 This config.status script is free software; the Free Software Foundation
18769 gives unlimited permission to copy, distribute and modify it."
18770
18771 ac_pwd='$ac_pwd'
18772 srcdir='$srcdir'
18773 INSTALL='$INSTALL'
18774 MKDIR_P='$MKDIR_P'
18775 AWK='$AWK'
18776 test -n "\$AWK" || AWK=awk
18777 _ACEOF
18778
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 # The default lists apply if the user does not specify any file.
18781 ac_need_defaults=:
18782 while test $# != 0
18783 do
18784 case $1 in
18785 --*=?*)
18786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18787 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18788 ac_shift=:
18789 ;;
18790 --*=)
18791 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18792 ac_optarg=
18793 ac_shift=:
18794 ;;
18795 *)
18796 ac_option=$1
18797 ac_optarg=$2
18798 ac_shift=shift
18799 ;;
18800 esac
18801
18802 case $ac_option in
18803 # Handling of the options.
18804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18805 ac_cs_recheck=: ;;
18806 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18807 printf "%s\n" "$ac_cs_version"; exit ;;
18808 --config | --confi | --conf | --con | --co | --c )
18809 printf "%s\n" "$ac_cs_config"; exit ;;
18810 --debug | --debu | --deb | --de | --d | -d )
18811 debug=: ;;
18812 --file | --fil | --fi | --f )
18813 $ac_shift
18814 case $ac_optarg in
18815 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18816 '') as_fn_error $? "missing file argument" ;;
18817 esac
18818 as_fn_append CONFIG_FILES " '$ac_optarg'"
18819 ac_need_defaults=false;;
18820 --header | --heade | --head | --hea )
18821 $ac_shift
18822 case $ac_optarg in
18823 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18824 esac
18825 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18826 ac_need_defaults=false;;
18827 --he | --h)
18828 # Conflict between --help and --header
18829 as_fn_error $? "ambiguous option: \`$1'
18830 Try \`$0 --help' for more information.";;
18831 --help | --hel | -h )
18832 printf "%s\n" "$ac_cs_usage"; exit ;;
18833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18835 ac_cs_silent=: ;;
18836
18837 # This is an error.
18838 -*) as_fn_error $? "unrecognized option: \`$1'
18839 Try \`$0 --help' for more information." ;;
18840
18841 *) as_fn_append ac_config_targets " $1"
18842 ac_need_defaults=false ;;
18843
18844 esac
18845 shift
18846 done
18847
18848 ac_configure_extra_args=
18849
18850 if $ac_cs_silent; then
18851 exec 6>/dev/null
18852 ac_configure_extra_args="$ac_configure_extra_args --silent"
18853 fi
18854
18855 _ACEOF
18856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18857 if \$ac_cs_recheck; then
18858 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18859 shift
18860 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18861 CONFIG_SHELL='$SHELL'
18862 export CONFIG_SHELL
18863 exec "\$@"
18864 fi
18865
18866 _ACEOF
18867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18868 exec 5>>config.log
18869 {
18870 echo
18871 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18872 ## Running $as_me. ##
18873 _ASBOX
18874 printf "%s\n" "$ac_log"
18875 } >&5
18876
18877 _ACEOF
18878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18879 #
18880 # INIT-COMMANDS
18881 #
18882
18883
18884 # The HP-UX ksh and POSIX shell print the target directory to stdout
18885 # if CDPATH is set.
18886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18887
18888 sed_quote_subst='$sed_quote_subst'
18889 double_quote_subst='$double_quote_subst'
18890 delay_variable_subst='$delay_variable_subst'
18891 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18892 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18893 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18894 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18895 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18896 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18897 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18925 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18926 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18927 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18928 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18929 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18930 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18931 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18932 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18933 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18934 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18935 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18936 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18937 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18938 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18939 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18940 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18941 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18942 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18943 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18944 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18945 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18946 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18947 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18948 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18949 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18950 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18951 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"`'
18952 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18953 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18954 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18955 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18956 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18957 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18958 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18959 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18960 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18961 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18962 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18963 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18964 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18965 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18966 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18967 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18968 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18969 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18970 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18971 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18972 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18973 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18974 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18975 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18976 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18977 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18978 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18979 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18980 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18981 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18982 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18983 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18984 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18985 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18986 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18987 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18988 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18989 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18990 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18991 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18992 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18993 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18994 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18995 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18996 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18997 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18998 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18999 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19000 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19001 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19002 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19003 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19004 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19005 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19006 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19007 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19008 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19009 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19010 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19011 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19012 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19013 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19014 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19015 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19016 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19017 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19018 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19019 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19020 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19021 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19022 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19023 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19024 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19025 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19026 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19027 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19028
19029 LTCC='$LTCC'
19030 LTCFLAGS='$LTCFLAGS'
19031 compiler='$compiler_DEFAULT'
19032
19033 # A function that is used when there is no print builtin or printf.
19034 func_fallback_echo ()
19035 {
19036 eval 'cat <<_LTECHO_EOF
19037 \$1
19038 _LTECHO_EOF'
19039 }
19040
19041 # Quote evaled strings.
19042 for var in SHELL \
19043 ECHO \
19044 PATH_SEPARATOR \
19045 SED \
19046 GREP \
19047 EGREP \
19048 FGREP \
19049 LD \
19050 NM \
19051 LN_S \
19052 lt_SP2NL \
19053 lt_NL2SP \
19054 reload_flag \
19055 FILECMD \
19056 OBJDUMP \
19057 deplibs_check_method \
19058 file_magic_cmd \
19059 file_magic_glob \
19060 want_nocaseglob \
19061 DLLTOOL \
19062 sharedlib_from_linklib_cmd \
19063 AR \
19064 archiver_list_spec \
19065 STRIP \
19066 RANLIB \
19067 CC \
19068 CFLAGS \
19069 compiler \
19070 lt_cv_sys_global_symbol_pipe \
19071 lt_cv_sys_global_symbol_to_cdecl \
19072 lt_cv_sys_global_symbol_to_import \
19073 lt_cv_sys_global_symbol_to_c_name_address \
19074 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19075 lt_cv_nm_interface \
19076 nm_file_list_spec \
19077 lt_cv_truncate_bin \
19078 lt_prog_compiler_no_builtin_flag \
19079 lt_prog_compiler_pic \
19080 lt_prog_compiler_wl \
19081 lt_prog_compiler_static \
19082 lt_cv_prog_compiler_c_o \
19083 need_locks \
19084 MANIFEST_TOOL \
19085 DSYMUTIL \
19086 NMEDIT \
19087 LIPO \
19088 OTOOL \
19089 OTOOL64 \
19090 shrext_cmds \
19091 export_dynamic_flag_spec \
19092 whole_archive_flag_spec \
19093 compiler_needs_object \
19094 with_gnu_ld \
19095 allow_undefined_flag \
19096 no_undefined_flag \
19097 hardcode_libdir_flag_spec \
19098 hardcode_libdir_separator \
19099 exclude_expsyms \
19100 include_expsyms \
19101 file_list_spec \
19102 variables_saved_for_relink \
19103 libname_spec \
19104 library_names_spec \
19105 soname_spec \
19106 install_override_mode \
19107 finish_eval \
19108 old_striplib \
19109 striplib; do
19110 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19111 *[\\\\\\\`\\"\\\$]*)
19112 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19113 ;;
19114 *)
19115 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19116 ;;
19117 esac
19118 done
19119
19120 # Double-quote double-evaled strings.
19121 for var in reload_cmds \
19122 old_postinstall_cmds \
19123 old_postuninstall_cmds \
19124 old_archive_cmds \
19125 extract_expsyms_cmds \
19126 old_archive_from_new_cmds \
19127 old_archive_from_expsyms_cmds \
19128 archive_cmds \
19129 archive_expsym_cmds \
19130 module_cmds \
19131 module_expsym_cmds \
19132 export_symbols_cmds \
19133 prelink_cmds \
19134 postlink_cmds \
19135 postinstall_cmds \
19136 postuninstall_cmds \
19137 finish_cmds \
19138 sys_lib_search_path_spec \
19139 configure_time_dlsearch_path \
19140 configure_time_lt_sys_library_path; do
19141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19142 *[\\\\\\\`\\"\\\$]*)
19143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19144 ;;
19145 *)
19146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19147 ;;
19148 esac
19149 done
19150
19151 ac_aux_dir='$ac_aux_dir'
19152
19153 # See if we are running on zsh, and set the options that allow our
19154 # commands through without removal of \ escapes INIT.
19155 if test -n "\${ZSH_VERSION+set}"; then
19156 setopt NO_GLOB_SUBST
19157 fi
19158
19159
19160 PACKAGE='$PACKAGE'
19161 VERSION='$VERSION'
19162 RM='$RM'
19163 ofile='$ofile'
19164
19165
19166
19167 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19168 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19169 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
19170 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
19171 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19172 LINGUAS="${LINGUAS-%UNSET%}"
19173
19174
19175 _ACEOF
19176
19177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19178
19179 # Handling of arguments.
19180 for ac_config_target in $ac_config_targets
19181 do
19182 case $ac_config_target in
19183 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19184 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19185 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19186 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19188 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
19189 "data/badges/Makefile") CONFIG_FILES="$CONFIG_FILES data/badges/Makefile" ;;
19190 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19191 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19192
19193 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19194 esac
19195 done
19196
19197
19198 # If the user did not use the arguments to specify the items to instantiate,
19199 # then the envvar interface is used. Set only those that are not.
19200 # We use the long form for the default assignment because of an extremely
19201 # bizarre bug on SunOS 4.1.3.
19202 if $ac_need_defaults; then
19203 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19204 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19205 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19206 fi
19207
19208 # Have a temporary directory for convenience. Make it in the build tree
19209 # simply because there is no reason against having it here, and in addition,
19210 # creating and moving files from /tmp can sometimes cause problems.
19211 # Hook for its removal unless debugging.
19212 # Note that there is a small window in which the directory will not be cleaned:
19213 # after its creation but before its name has been assigned to `$tmp'.
19214 $debug ||
19215 {
19216 tmp= ac_tmp=
19217 trap 'exit_status=$?
19218 : "${ac_tmp:=$tmp}"
19219 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19220 ' 0
19221 trap 'as_fn_exit 1' 1 2 13 15
19222 }
19223 # Create a (secure) tmp directory for tmp files.
19224
19225 {
19226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19227 test -d "$tmp"
19228 } ||
19229 {
19230 tmp=./conf$$-$RANDOM
19231 (umask 077 && mkdir "$tmp")
19232 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19233 ac_tmp=$tmp
19234
19235 # Set up the scripts for CONFIG_FILES section.
19236 # No need to generate them if there are no CONFIG_FILES.
19237 # This happens for instance with `./config.status config.h'.
19238 if test -n "$CONFIG_FILES"; then
19239
19240
19241 ac_cr=`echo X | tr X '\015'`
19242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19243 # But we know of no other shell where ac_cr would be empty at this
19244 # point, so we can use a bashism as a fallback.
19245 if test "x$ac_cr" = x; then
19246 eval ac_cr=\$\'\\r\'
19247 fi
19248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19250 ac_cs_awk_cr='\\r'
19251 else
19252 ac_cs_awk_cr=$ac_cr
19253 fi
19254
19255 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19256 _ACEOF
19257
19258
19259 {
19260 echo "cat >conf$$subs.awk <<_ACEOF" &&
19261 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19262 echo "_ACEOF"
19263 } >conf$$subs.sh ||
19264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19265 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19266 ac_delim='%!_!# '
19267 for ac_last_try in false false false false false :; do
19268 . ./conf$$subs.sh ||
19269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19270
19271 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19272 if test $ac_delim_n = $ac_delim_num; then
19273 break
19274 elif $ac_last_try; then
19275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19276 else
19277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19278 fi
19279 done
19280 rm -f conf$$subs.sh
19281
19282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19283 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19284 _ACEOF
19285 sed -n '
19286 h
19287 s/^/S["/; s/!.*/"]=/
19288 p
19289 g
19290 s/^[^!]*!//
19291 :repl
19292 t repl
19293 s/'"$ac_delim"'$//
19294 t delim
19295 :nl
19296 h
19297 s/\(.\{148\}\)..*/\1/
19298 t more1
19299 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19300 p
19301 n
19302 b repl
19303 :more1
19304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19305 p
19306 g
19307 s/.\{148\}//
19308 t nl
19309 :delim
19310 h
19311 s/\(.\{148\}\)..*/\1/
19312 t more2
19313 s/["\\]/\\&/g; s/^/"/; s/$/"/
19314 p
19315 b
19316 :more2
19317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19318 p
19319 g
19320 s/.\{148\}//
19321 t delim
19322 ' <conf$$subs.awk | sed '
19323 /^[^""]/{
19324 N
19325 s/\n//
19326 }
19327 ' >>$CONFIG_STATUS || ac_write_fail=1
19328 rm -f conf$$subs.awk
19329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19330 _ACAWK
19331 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19332 for (key in S) S_is_set[key] = 1
19333 FS = ""
19334
19335 }
19336 {
19337 line = $ 0
19338 nfields = split(line, field, "@")
19339 substed = 0
19340 len = length(field[1])
19341 for (i = 2; i < nfields; i++) {
19342 key = field[i]
19343 keylen = length(key)
19344 if (S_is_set[key]) {
19345 value = S[key]
19346 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19347 len += length(value) + length(field[++i])
19348 substed = 1
19349 } else
19350 len += 1 + keylen
19351 }
19352
19353 print line
19354 }
19355
19356 _ACAWK
19357 _ACEOF
19358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19360 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19361 else
19362 cat
19363 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19364 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19365 _ACEOF
19366
19367 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19368 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19369 # trailing colons and then remove the whole line if VPATH becomes empty
19370 # (actually we leave an empty line to preserve line numbers).
19371 if test "x$srcdir" = x.; then
19372 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19373 h
19374 s///
19375 s/^/:/
19376 s/[ ]*$/:/
19377 s/:\$(srcdir):/:/g
19378 s/:\${srcdir}:/:/g
19379 s/:@srcdir@:/:/g
19380 s/^:*//
19381 s/:*$//
19382 x
19383 s/\(=[ ]*\).*/\1/
19384 G
19385 s/\n//
19386 s/^[^=]*=[ ]*$//
19387 }'
19388 fi
19389
19390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391 fi # test -n "$CONFIG_FILES"
19392
19393 # Set up the scripts for CONFIG_HEADERS section.
19394 # No need to generate them if there are no CONFIG_HEADERS.
19395 # This happens for instance with `./config.status Makefile'.
19396 if test -n "$CONFIG_HEADERS"; then
19397 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19398 BEGIN {
19399 _ACEOF
19400
19401 # Transform confdefs.h into an awk script `defines.awk', embedded as
19402 # here-document in config.status, that substitutes the proper values into
19403 # config.h.in to produce config.h.
19404
19405 # Create a delimiter string that does not exist in confdefs.h, to ease
19406 # handling of long lines.
19407 ac_delim='%!_!# '
19408 for ac_last_try in false false :; do
19409 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19410 if test -z "$ac_tt"; then
19411 break
19412 elif $ac_last_try; then
19413 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19414 else
19415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19416 fi
19417 done
19418
19419 # For the awk script, D is an array of macro values keyed by name,
19420 # likewise P contains macro parameters if any. Preserve backslash
19421 # newline sequences.
19422
19423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19424 sed -n '
19425 s/.\{148\}/&'"$ac_delim"'/g
19426 t rset
19427 :rset
19428 s/^[ ]*#[ ]*define[ ][ ]*/ /
19429 t def
19430 d
19431 :def
19432 s/\\$//
19433 t bsnl
19434 s/["\\]/\\&/g
19435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19436 D["\1"]=" \3"/p
19437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19438 d
19439 :bsnl
19440 s/["\\]/\\&/g
19441 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19442 D["\1"]=" \3\\\\\\n"\\/p
19443 t cont
19444 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19445 t cont
19446 d
19447 :cont
19448 n
19449 s/.\{148\}/&'"$ac_delim"'/g
19450 t clear
19451 :clear
19452 s/\\$//
19453 t bsnlc
19454 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19455 d
19456 :bsnlc
19457 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19458 b cont
19459 ' <confdefs.h | sed '
19460 s/'"$ac_delim"'/"\\\
19461 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19462
19463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19464 for (key in D) D_is_set[key] = 1
19465 FS = ""
19466 }
19467 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19468 line = \$ 0
19469 split(line, arg, " ")
19470 if (arg[1] == "#") {
19471 defundef = arg[2]
19472 mac1 = arg[3]
19473 } else {
19474 defundef = substr(arg[1], 2)
19475 mac1 = arg[2]
19476 }
19477 split(mac1, mac2, "(") #)
19478 macro = mac2[1]
19479 prefix = substr(line, 1, index(line, defundef) - 1)
19480 if (D_is_set[macro]) {
19481 # Preserve the white space surrounding the "#".
19482 print prefix "define", macro P[macro] D[macro]
19483 next
19484 } else {
19485 # Replace #undef with comments. This is necessary, for example,
19486 # in the case of _POSIX_SOURCE, which is predefined and required
19487 # on some systems where configure will not decide to define it.
19488 if (defundef == "undef") {
19489 print "/*", prefix defundef, macro, "*/"
19490 next
19491 }
19492 }
19493 }
19494 { print }
19495 _ACAWK
19496 _ACEOF
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19499 fi # test -n "$CONFIG_HEADERS"
19500
19501
19502 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19503 shift
19504 for ac_tag
19505 do
19506 case $ac_tag in
19507 :[FHLC]) ac_mode=$ac_tag; continue;;
19508 esac
19509 case $ac_mode$ac_tag in
19510 :[FHL]*:*);;
19511 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19512 :[FH]-) ac_tag=-:-;;
19513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19514 esac
19515 ac_save_IFS=$IFS
19516 IFS=:
19517 set x $ac_tag
19518 IFS=$ac_save_IFS
19519 shift
19520 ac_file=$1
19521 shift
19522
19523 case $ac_mode in
19524 :L) ac_source=$1;;
19525 :[FH])
19526 ac_file_inputs=
19527 for ac_f
19528 do
19529 case $ac_f in
19530 -) ac_f="$ac_tmp/stdin";;
19531 *) # Look for the file first in the build tree, then in the source tree
19532 # (if the path is not absolute). The absolute path cannot be DOS-style,
19533 # because $ac_f cannot contain `:'.
19534 test -f "$ac_f" ||
19535 case $ac_f in
19536 [\\/$]*) false;;
19537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19538 esac ||
19539 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19540 esac
19541 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19542 as_fn_append ac_file_inputs " '$ac_f'"
19543 done
19544
19545 # Let's still pretend it is `configure' which instantiates (i.e., don't
19546 # use $as_me), people would be surprised to read:
19547 # /* config.h. Generated by config.status. */
19548 configure_input='Generated from '`
19549 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19550 `' by configure.'
19551 if test x"$ac_file" != x-; then
19552 configure_input="$ac_file. $configure_input"
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19554 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19555 fi
19556 # Neutralize special characters interpreted by sed in replacement strings.
19557 case $configure_input in #(
19558 *\&* | *\|* | *\\* )
19559 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19561 *) ac_sed_conf_input=$configure_input;;
19562 esac
19563
19564 case $ac_tag in
19565 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19567 esac
19568 ;;
19569 esac
19570
19571 ac_dir=`$as_dirname -- "$ac_file" ||
19572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19573 X"$ac_file" : 'X\(//\)[^/]' \| \
19574 X"$ac_file" : 'X\(//\)$' \| \
19575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19576 printf "%s\n" X"$ac_file" |
19577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19578 s//\1/
19579 q
19580 }
19581 /^X\(\/\/\)[^/].*/{
19582 s//\1/
19583 q
19584 }
19585 /^X\(\/\/\)$/{
19586 s//\1/
19587 q
19588 }
19589 /^X\(\/\).*/{
19590 s//\1/
19591 q
19592 }
19593 s/.*/./; q'`
19594 as_dir="$ac_dir"; as_fn_mkdir_p
19595 ac_builddir=.
19596
19597 case "$ac_dir" in
19598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19599 *)
19600 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19601 # A ".." for each directory in $ac_dir_suffix.
19602 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19603 case $ac_top_builddir_sub in
19604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19606 esac ;;
19607 esac
19608 ac_abs_top_builddir=$ac_pwd
19609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19610 # for backward compatibility:
19611 ac_top_builddir=$ac_top_build_prefix
19612
19613 case $srcdir in
19614 .) # We are building in place.
19615 ac_srcdir=.
19616 ac_top_srcdir=$ac_top_builddir_sub
19617 ac_abs_top_srcdir=$ac_pwd ;;
19618 [\\/]* | ?:[\\/]* ) # Absolute name.
19619 ac_srcdir=$srcdir$ac_dir_suffix;
19620 ac_top_srcdir=$srcdir
19621 ac_abs_top_srcdir=$srcdir ;;
19622 *) # Relative name.
19623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19624 ac_top_srcdir=$ac_top_build_prefix$srcdir
19625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19626 esac
19627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19628
19629
19630 case $ac_mode in
19631 :F)
19632 #
19633 # CONFIG_FILE
19634 #
19635
19636 case $INSTALL in
19637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19639 esac
19640 ac_MKDIR_P=$MKDIR_P
19641 case $MKDIR_P in
19642 [\\/$]* | ?:[\\/]* ) ;;
19643 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19644 esac
19645 _ACEOF
19646
19647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19648 # If the template does not know about datarootdir, expand it.
19649 # FIXME: This hack should be removed a few years after 2.60.
19650 ac_datarootdir_hack=; ac_datarootdir_seen=
19651 ac_sed_dataroot='
19652 /datarootdir/ {
19653 p
19654 q
19655 }
19656 /@datadir@/p
19657 /@docdir@/p
19658 /@infodir@/p
19659 /@localedir@/p
19660 /@mandir@/p'
19661 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19662 *datarootdir*) ac_datarootdir_seen=yes;;
19663 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19665 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19666 _ACEOF
19667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19668 ac_datarootdir_hack='
19669 s&@datadir@&$datadir&g
19670 s&@docdir@&$docdir&g
19671 s&@infodir@&$infodir&g
19672 s&@localedir@&$localedir&g
19673 s&@mandir@&$mandir&g
19674 s&\\\${datarootdir}&$datarootdir&g' ;;
19675 esac
19676 _ACEOF
19677
19678 # Neutralize VPATH when `$srcdir' = `.'.
19679 # Shell code in configure.ac might set extrasub.
19680 # FIXME: do we really want to maintain this feature?
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 ac_sed_extra="$ac_vpsub
19683 $extrasub
19684 _ACEOF
19685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19686 :t
19687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19688 s|@configure_input@|$ac_sed_conf_input|;t t
19689 s&@top_builddir@&$ac_top_builddir_sub&;t t
19690 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19691 s&@srcdir@&$ac_srcdir&;t t
19692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19693 s&@top_srcdir@&$ac_top_srcdir&;t t
19694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19695 s&@builddir@&$ac_builddir&;t t
19696 s&@abs_builddir@&$ac_abs_builddir&;t t
19697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19698 s&@INSTALL@&$ac_INSTALL&;t t
19699 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19700 $ac_datarootdir_hack
19701 "
19702 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19703 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19704
19705 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19706 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19707 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19708 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19710 which seems to be undefined. Please make sure it is defined" >&5
19711 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19712 which seems to be undefined. Please make sure it is defined" >&2;}
19713
19714 rm -f "$ac_tmp/stdin"
19715 case $ac_file in
19716 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19717 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19718 esac \
19719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19720 ;;
19721 :H)
19722 #
19723 # CONFIG_HEADER
19724 #
19725 if test x"$ac_file" != x-; then
19726 {
19727 printf "%s\n" "/* $configure_input */" >&1 \
19728 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19729 } >"$ac_tmp/config.h" \
19730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19731 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19733 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19734 else
19735 rm -f "$ac_file"
19736 mv "$ac_tmp/config.h" "$ac_file" \
19737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19738 fi
19739 else
19740 printf "%s\n" "/* $configure_input */" >&1 \
19741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19742 || as_fn_error $? "could not create -" "$LINENO" 5
19743 fi
19744 # Compute "$ac_file"'s index in $config_headers.
19745 _am_arg="$ac_file"
19746 _am_stamp_count=1
19747 for _am_header in $config_headers :; do
19748 case $_am_header in
19749 $_am_arg | $_am_arg:* )
19750 break ;;
19751 * )
19752 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19753 esac
19754 done
19755 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19756 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19757 X"$_am_arg" : 'X\(//\)[^/]' \| \
19758 X"$_am_arg" : 'X\(//\)$' \| \
19759 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19760 printf "%s\n" X"$_am_arg" |
19761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19762 s//\1/
19763 q
19764 }
19765 /^X\(\/\/\)[^/].*/{
19766 s//\1/
19767 q
19768 }
19769 /^X\(\/\/\)$/{
19770 s//\1/
19771 q
19772 }
19773 /^X\(\/\).*/{
19774 s//\1/
19775 q
19776 }
19777 s/.*/./; q'`/stamp-h$_am_stamp_count
19778 ;;
19779
19780 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19781 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19782 ;;
19783 esac
19784
19785
19786 case $ac_file$ac_mode in
19787 "libtool":C)
19788
19789 # See if we are running on zsh, and set the options that allow our
19790 # commands through without removal of \ escapes.
19791 if test -n "${ZSH_VERSION+set}"; then
19792 setopt NO_GLOB_SUBST
19793 fi
19794
19795 cfgfile=${ofile}T
19796 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19797 $RM "$cfgfile"
19798
19799 cat <<_LT_EOF >> "$cfgfile"
19800 #! $SHELL
19801 # Generated automatically by $as_me ($PACKAGE) $VERSION
19802 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19803
19804 # Provide generalized library-building support services.
19805 # Written by Gordon Matzigkeit, 1996
19806
19807 # Copyright (C) 2014 Free Software Foundation, Inc.
19808 # This is free software; see the source for copying conditions. There is NO
19809 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19810
19811 # GNU Libtool is free software; you can redistribute it and/or modify
19812 # it under the terms of the GNU General Public License as published by
19813 # the Free Software Foundation; either version 2 of of the License, or
19814 # (at your option) any later version.
19815 #
19816 # As a special exception to the GNU General Public License, if you
19817 # distribute this file as part of a program or library that is built
19818 # using GNU Libtool, you may include this file under the same
19819 # distribution terms that you use for the rest of that program.
19820 #
19821 # GNU Libtool is distributed in the hope that it will be useful, but
19822 # WITHOUT ANY WARRANTY; without even the implied warranty of
19823 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19824 # GNU General Public License for more details.
19825 #
19826 # You should have received a copy of the GNU General Public License
19827 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19828
19829
19830 # The names of the tagged configurations supported by this script.
19831 available_tags=''
19832
19833 # Configured defaults for sys_lib_dlsearch_path munging.
19834 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19835
19836 # ### BEGIN LIBTOOL CONFIG
19837
19838 # Which release of libtool.m4 was used?
19839 macro_version=$macro_version
19840 macro_revision=$macro_revision
19841
19842 # Whether or not to build shared libraries.
19843 build_libtool_libs=$enable_shared
19844
19845 # Whether or not to build static libraries.
19846 build_old_libs=$enable_static
19847
19848 # What type of objects to build.
19849 pic_mode=$pic_mode
19850
19851 # Whether or not to optimize for fast installation.
19852 fast_install=$enable_fast_install
19853
19854 # Shared archive member basename,for filename based shared library versioning on AIX.
19855 shared_archive_member_spec=$shared_archive_member_spec
19856
19857 # Shell to use when invoking shell scripts.
19858 SHELL=$lt_SHELL
19859
19860 # An echo program that protects backslashes.
19861 ECHO=$lt_ECHO
19862
19863 # The PATH separator for the build system.
19864 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19865
19866 # The host system.
19867 host_alias=$host_alias
19868 host=$host
19869 host_os=$host_os
19870
19871 # The build system.
19872 build_alias=$build_alias
19873 build=$build
19874 build_os=$build_os
19875
19876 # A sed program that does not truncate output.
19877 SED=$lt_SED
19878
19879 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19880 Xsed="\$SED -e 1s/^X//"
19881
19882 # A grep program that handles long lines.
19883 GREP=$lt_GREP
19884
19885 # An ERE matcher.
19886 EGREP=$lt_EGREP
19887
19888 # A literal string matcher.
19889 FGREP=$lt_FGREP
19890
19891 # A BSD- or MS-compatible name lister.
19892 NM=$lt_NM
19893
19894 # Whether we need soft or hard links.
19895 LN_S=$lt_LN_S
19896
19897 # What is the maximum length of a command?
19898 max_cmd_len=$max_cmd_len
19899
19900 # Object file suffix (normally "o").
19901 objext=$ac_objext
19902
19903 # Executable file suffix (normally "").
19904 exeext=$exeext
19905
19906 # whether the shell understands "unset".
19907 lt_unset=$lt_unset
19908
19909 # turn spaces into newlines.
19910 SP2NL=$lt_lt_SP2NL
19911
19912 # turn newlines into spaces.
19913 NL2SP=$lt_lt_NL2SP
19914
19915 # convert \$build file names to \$host format.
19916 to_host_file_cmd=$lt_cv_to_host_file_cmd
19917
19918 # convert \$build files to toolchain format.
19919 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19920
19921 # A file(cmd) program that detects file types.
19922 FILECMD=$lt_FILECMD
19923
19924 # An object symbol dumper.
19925 OBJDUMP=$lt_OBJDUMP
19926
19927 # Method to check whether dependent libraries are shared objects.
19928 deplibs_check_method=$lt_deplibs_check_method
19929
19930 # Command to use when deplibs_check_method = "file_magic".
19931 file_magic_cmd=$lt_file_magic_cmd
19932
19933 # How to find potential files when deplibs_check_method = "file_magic".
19934 file_magic_glob=$lt_file_magic_glob
19935
19936 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19937 want_nocaseglob=$lt_want_nocaseglob
19938
19939 # DLL creation program.
19940 DLLTOOL=$lt_DLLTOOL
19941
19942 # Command to associate shared and link libraries.
19943 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19944
19945 # The archiver.
19946 AR=$lt_AR
19947
19948 # Flags to create an archive (by configure).
19949 lt_ar_flags=$lt_ar_flags
19950
19951 # Flags to create an archive.
19952 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19953
19954 # How to feed a file listing to the archiver.
19955 archiver_list_spec=$lt_archiver_list_spec
19956
19957 # A symbol stripping program.
19958 STRIP=$lt_STRIP
19959
19960 # Commands used to install an old-style archive.
19961 RANLIB=$lt_RANLIB
19962 old_postinstall_cmds=$lt_old_postinstall_cmds
19963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19964
19965 # Whether to use a lock for old archive extraction.
19966 lock_old_archive_extraction=$lock_old_archive_extraction
19967
19968 # A C compiler.
19969 LTCC=$lt_CC
19970
19971 # LTCC compiler flags.
19972 LTCFLAGS=$lt_CFLAGS
19973
19974 # Take the output of nm and produce a listing of raw symbols and C names.
19975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19976
19977 # Transform the output of nm in a proper C declaration.
19978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19979
19980 # Transform the output of nm into a list of symbols to manually relocate.
19981 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19982
19983 # Transform the output of nm in a C name address pair.
19984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19985
19986 # Transform the output of nm in a C name address pair when lib prefix is needed.
19987 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19988
19989 # The name lister interface.
19990 nm_interface=$lt_lt_cv_nm_interface
19991
19992 # Specify filename containing input files for \$NM.
19993 nm_file_list_spec=$lt_nm_file_list_spec
19994
19995 # The root where to search for dependent libraries,and where our libraries should be installed.
19996 lt_sysroot=$lt_sysroot
19997
19998 # Command to truncate a binary pipe.
19999 lt_truncate_bin=$lt_lt_cv_truncate_bin
20000
20001 # The name of the directory that contains temporary libtool files.
20002 objdir=$objdir
20003
20004 # Used to examine libraries when file_magic_cmd begins with "file".
20005 MAGIC_CMD=$MAGIC_CMD
20006
20007 # Must we lock files when doing compilation?
20008 need_locks=$lt_need_locks
20009
20010 # Manifest tool.
20011 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20012
20013 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20014 DSYMUTIL=$lt_DSYMUTIL
20015
20016 # Tool to change global to local symbols on Mac OS X.
20017 NMEDIT=$lt_NMEDIT
20018
20019 # Tool to manipulate fat objects and archives on Mac OS X.
20020 LIPO=$lt_LIPO
20021
20022 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20023 OTOOL=$lt_OTOOL
20024
20025 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20026 OTOOL64=$lt_OTOOL64
20027
20028 # Old archive suffix (normally "a").
20029 libext=$libext
20030
20031 # Shared library suffix (normally ".so").
20032 shrext_cmds=$lt_shrext_cmds
20033
20034 # The commands to extract the exported symbol list from a shared archive.
20035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20036
20037 # Variables whose values should be saved in libtool wrapper scripts and
20038 # restored at link time.
20039 variables_saved_for_relink=$lt_variables_saved_for_relink
20040
20041 # Do we need the "lib" prefix for modules?
20042 need_lib_prefix=$need_lib_prefix
20043
20044 # Do we need a version for libraries?
20045 need_version=$need_version
20046
20047 # Library versioning type.
20048 version_type=$version_type
20049
20050 # Shared library runtime path variable.
20051 runpath_var=$runpath_var
20052
20053 # Shared library path variable.
20054 shlibpath_var=$shlibpath_var
20055
20056 # Is shlibpath searched before the hard-coded library search path?
20057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20058
20059 # Format of library name prefix.
20060 libname_spec=$lt_libname_spec
20061
20062 # List of archive names. First name is the real one, the rest are links.
20063 # The last name is the one that the linker finds with -lNAME
20064 library_names_spec=$lt_library_names_spec
20065
20066 # The coded name of the library, if different from the real name.
20067 soname_spec=$lt_soname_spec
20068
20069 # Permission mode override for installation of shared libraries.
20070 install_override_mode=$lt_install_override_mode
20071
20072 # Command to use after installation of a shared archive.
20073 postinstall_cmds=$lt_postinstall_cmds
20074
20075 # Command to use after uninstallation of a shared archive.
20076 postuninstall_cmds=$lt_postuninstall_cmds
20077
20078 # Commands used to finish a libtool library installation in a directory.
20079 finish_cmds=$lt_finish_cmds
20080
20081 # As "finish_cmds", except a single script fragment to be evaled but
20082 # not shown.
20083 finish_eval=$lt_finish_eval
20084
20085 # Whether we should hardcode library paths into libraries.
20086 hardcode_into_libs=$hardcode_into_libs
20087
20088 # Compile-time system search path for libraries.
20089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20090
20091 # Detected run-time system search path for libraries.
20092 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20093
20094 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20095 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20096
20097 # Whether dlopen is supported.
20098 dlopen_support=$enable_dlopen
20099
20100 # Whether dlopen of programs is supported.
20101 dlopen_self=$enable_dlopen_self
20102
20103 # Whether dlopen of statically linked programs is supported.
20104 dlopen_self_static=$enable_dlopen_self_static
20105
20106 # Commands to strip libraries.
20107 old_striplib=$lt_old_striplib
20108 striplib=$lt_striplib
20109
20110
20111 # The linker used to build libraries.
20112 LD=$lt_LD
20113
20114 # How to create reloadable object files.
20115 reload_flag=$lt_reload_flag
20116 reload_cmds=$lt_reload_cmds
20117
20118 # Commands used to build an old-style archive.
20119 old_archive_cmds=$lt_old_archive_cmds
20120
20121 # A language specific compiler.
20122 CC=$lt_compiler
20123
20124 # Is the compiler the GNU compiler?
20125 with_gcc=$GCC
20126
20127 # Compiler flag to turn off builtin functions.
20128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20129
20130 # Additional compiler flags for building library objects.
20131 pic_flag=$lt_lt_prog_compiler_pic
20132
20133 # How to pass a linker flag through the compiler.
20134 wl=$lt_lt_prog_compiler_wl
20135
20136 # Compiler flag to prevent dynamic linking.
20137 link_static_flag=$lt_lt_prog_compiler_static
20138
20139 # Does compiler simultaneously support -c and -o options?
20140 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20141
20142 # Whether or not to add -lc for building shared libraries.
20143 build_libtool_need_lc=$archive_cmds_need_lc
20144
20145 # Whether or not to disallow shared libs when runtime libs are static.
20146 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20147
20148 # Compiler flag to allow reflexive dlopens.
20149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20150
20151 # Compiler flag to generate shared objects directly from archives.
20152 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20153
20154 # Whether the compiler copes with passing no objects directly.
20155 compiler_needs_object=$lt_compiler_needs_object
20156
20157 # Create an old-style archive from a shared archive.
20158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20159
20160 # Create a temporary old-style archive to link instead of a shared archive.
20161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20162
20163 # Commands used to build a shared archive.
20164 archive_cmds=$lt_archive_cmds
20165 archive_expsym_cmds=$lt_archive_expsym_cmds
20166
20167 # Commands used to build a loadable module if different from building
20168 # a shared archive.
20169 module_cmds=$lt_module_cmds
20170 module_expsym_cmds=$lt_module_expsym_cmds
20171
20172 # Whether we are building with GNU ld or not.
20173 with_gnu_ld=$lt_with_gnu_ld
20174
20175 # Flag that allows shared libraries with undefined symbols to be built.
20176 allow_undefined_flag=$lt_allow_undefined_flag
20177
20178 # Flag that enforces no undefined symbols.
20179 no_undefined_flag=$lt_no_undefined_flag
20180
20181 # Flag to hardcode \$libdir into a binary during linking.
20182 # This must work even if \$libdir does not exist
20183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20184
20185 # Whether we need a single "-rpath" flag with a separated argument.
20186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20187
20188 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20189 # DIR into the resulting binary.
20190 hardcode_direct=$hardcode_direct
20191
20192 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20193 # DIR into the resulting binary and the resulting library dependency is
20194 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20195 # library is relocated.
20196 hardcode_direct_absolute=$hardcode_direct_absolute
20197
20198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20199 # into the resulting binary.
20200 hardcode_minus_L=$hardcode_minus_L
20201
20202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20203 # into the resulting binary.
20204 hardcode_shlibpath_var=$hardcode_shlibpath_var
20205
20206 # Set to "yes" if building a shared library automatically hardcodes DIR
20207 # into the library and all subsequent libraries and executables linked
20208 # against it.
20209 hardcode_automatic=$hardcode_automatic
20210
20211 # Set to yes if linker adds runtime paths of dependent libraries
20212 # to runtime path list.
20213 inherit_rpath=$inherit_rpath
20214
20215 # Whether libtool must link a program against all its dependency libraries.
20216 link_all_deplibs=$link_all_deplibs
20217
20218 # Set to "yes" if exported symbols are required.
20219 always_export_symbols=$always_export_symbols
20220
20221 # The commands to list exported symbols.
20222 export_symbols_cmds=$lt_export_symbols_cmds
20223
20224 # Symbols that should not be listed in the preloaded symbols.
20225 exclude_expsyms=$lt_exclude_expsyms
20226
20227 # Symbols that must always be exported.
20228 include_expsyms=$lt_include_expsyms
20229
20230 # Commands necessary for linking programs (against libraries) with templates.
20231 prelink_cmds=$lt_prelink_cmds
20232
20233 # Commands necessary for finishing linking programs.
20234 postlink_cmds=$lt_postlink_cmds
20235
20236 # Specify filename containing input files.
20237 file_list_spec=$lt_file_list_spec
20238
20239 # How to hardcode a shared library path into an executable.
20240 hardcode_action=$hardcode_action
20241
20242 # ### END LIBTOOL CONFIG
20243
20244 _LT_EOF
20245
20246 cat <<'_LT_EOF' >> "$cfgfile"
20247
20248 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20249
20250 # func_munge_path_list VARIABLE PATH
20251 # -----------------------------------
20252 # VARIABLE is name of variable containing _space_ separated list of
20253 # directories to be munged by the contents of PATH, which is string
20254 # having a format:
20255 # "DIR[:DIR]:"
20256 # string "DIR[ DIR]" will be prepended to VARIABLE
20257 # ":DIR[:DIR]"
20258 # string "DIR[ DIR]" will be appended to VARIABLE
20259 # "DIRP[:DIRP]::[DIRA:]DIRA"
20260 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20261 # "DIRA[ DIRA]" will be appended to VARIABLE
20262 # "DIR[:DIR]"
20263 # VARIABLE will be replaced by "DIR[ DIR]"
20264 func_munge_path_list ()
20265 {
20266 case x$2 in
20267 x)
20268 ;;
20269 *:)
20270 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20271 ;;
20272 x:*)
20273 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20274 ;;
20275 *::*)
20276 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20277 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20278 ;;
20279 *)
20280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20281 ;;
20282 esac
20283 }
20284
20285
20286 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20287 func_cc_basename ()
20288 {
20289 for cc_temp in $*""; do
20290 case $cc_temp in
20291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20293 \-*) ;;
20294 *) break;;
20295 esac
20296 done
20297 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20298 }
20299
20300
20301 # ### END FUNCTIONS SHARED WITH CONFIGURE
20302
20303 _LT_EOF
20304
20305 case $host_os in
20306 aix3*)
20307 cat <<\_LT_EOF >> "$cfgfile"
20308 # AIX sometimes has problems with the GCC collect2 program. For some
20309 # reason, if we set the COLLECT_NAMES environment variable, the problems
20310 # vanish in a puff of smoke.
20311 if test set != "${COLLECT_NAMES+set}"; then
20312 COLLECT_NAMES=
20313 export COLLECT_NAMES
20314 fi
20315 _LT_EOF
20316 ;;
20317 esac
20318
20319
20320
20321 ltmain=$ac_aux_dir/ltmain.sh
20322
20323
20324 # We use sed instead of cat because bash on DJGPP gets confused if
20325 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20326 # text mode, it properly converts lines to CR/LF. This bash problem
20327 # is reportedly fixed, but why not run on old versions too?
20328 $SED '$q' "$ltmain" >> "$cfgfile" \
20329 || (rm -f "$cfgfile"; exit 1)
20330
20331 mv -f "$cfgfile" "$ofile" ||
20332 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20333 chmod +x "$ofile"
20334
20335 ;;
20336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20337 # Older Autoconf quotes --file arguments for eval, but not when files
20338 # are listed without --file. Let's play safe and only enable the eval
20339 # if we detect the quoting.
20340 # TODO: see whether this extra hack can be removed once we start
20341 # requiring Autoconf 2.70 or later.
20342 case $CONFIG_FILES in #(
20343 *\'*) :
20344 eval set x "$CONFIG_FILES" ;; #(
20345 *) :
20346 set x $CONFIG_FILES ;; #(
20347 *) :
20348 ;;
20349 esac
20350 shift
20351 # Used to flag and report bootstrapping failures.
20352 am_rc=0
20353 for am_mf
20354 do
20355 # Strip MF so we end up with the name of the file.
20356 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20357 # Check whether this is an Automake generated Makefile which includes
20358 # dependency-tracking related rules and includes.
20359 # Grep'ing the whole file directly is not great: AIX grep has a line
20360 # limit of 2048, but all sed's we know have understand at least 4000.
20361 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20362 || continue
20363 am_dirpart=`$as_dirname -- "$am_mf" ||
20364 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20365 X"$am_mf" : 'X\(//\)[^/]' \| \
20366 X"$am_mf" : 'X\(//\)$' \| \
20367 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20368 printf "%s\n" X"$am_mf" |
20369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20370 s//\1/
20371 q
20372 }
20373 /^X\(\/\/\)[^/].*/{
20374 s//\1/
20375 q
20376 }
20377 /^X\(\/\/\)$/{
20378 s//\1/
20379 q
20380 }
20381 /^X\(\/\).*/{
20382 s//\1/
20383 q
20384 }
20385 s/.*/./; q'`
20386 am_filepart=`$as_basename -- "$am_mf" ||
20387 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20388 X"$am_mf" : 'X\(//\)$' \| \
20389 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20390 printf "%s\n" X/"$am_mf" |
20391 sed '/^.*\/\([^/][^/]*\)\/*$/{
20392 s//\1/
20393 q
20394 }
20395 /^X\/\(\/\/\)$/{
20396 s//\1/
20397 q
20398 }
20399 /^X\/\(\/\).*/{
20400 s//\1/
20401 q
20402 }
20403 s/.*/./; q'`
20404 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20405 && sed -e '/# am--include-marker/d' "$am_filepart" \
20406 | $MAKE -f - am--depfiles" >&5
20407 (cd "$am_dirpart" \
20408 && sed -e '/# am--include-marker/d' "$am_filepart" \
20409 | $MAKE -f - am--depfiles) >&5 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } || am_rc=$?
20413 done
20414 if test $am_rc -ne 0; then
20415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20417 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20418 for automatic dependency tracking. If GNU make was not used, consider
20419 re-running the configure script with MAKE=\"gmake\" (or whatever is
20420 necessary). You can also try re-running configure with the
20421 '--disable-dependency-tracking' option to at least be able to build
20422 the package (albeit without support for automatic dependency tracking).
20423 See \`config.log' for more details" "$LINENO" 5; }
20424 fi
20425 { am_dirpart=; unset am_dirpart;}
20426 { am_filepart=; unset am_filepart;}
20427 { am_mf=; unset am_mf;}
20428 { am_rc=; unset am_rc;}
20429 rm -f conftest-deps.mk
20430 }
20431 ;;
20432 "po-directories":C)
20433 for ac_file in $CONFIG_FILES; do
20434 # Support "outfile[:infile[:infile...]]"
20435 case "$ac_file" in
20436 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20437 esac
20438 # PO directories have a Makefile.in generated from Makefile.in.in.
20439 case "$ac_file" in */Makefile.in)
20440 # Adjust a relative srcdir.
20441 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20442 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20443 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20444 # In autoconf-2.13 it is called $ac_given_srcdir.
20445 # In autoconf-2.50 it is called $srcdir.
20446 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20447 case "$ac_given_srcdir" in
20448 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20449 /*) top_srcdir="$ac_given_srcdir" ;;
20450 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20451 esac
20452 # Treat a directory as a PO directory if and only if it has a
20453 # POTFILES.in file. This allows packages to have multiple PO
20454 # directories under different names or in different locations.
20455 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20456 rm -f "$ac_dir/POTFILES"
20457 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20458 gt_tab=`printf '\t'`
20459 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"
20460 POMAKEFILEDEPS="POTFILES.in"
20461 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20462 # on $ac_dir but don't depend on user-specified configuration
20463 # parameters.
20464 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20465 # The LINGUAS file contains the set of available languages.
20466 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20467 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20468 fi
20469 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20470 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20471 else
20472 # The set of available languages was given in configure.in.
20473 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
20474 fi
20475 # Compute POFILES
20476 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20477 # Compute UPDATEPOFILES
20478 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20479 # Compute DUMMYPOFILES
20480 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20481 # Compute GMOFILES
20482 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20483 case "$ac_given_srcdir" in
20484 .) srcdirpre= ;;
20485 *) srcdirpre='$(srcdir)/' ;;
20486 esac
20487 POFILES=
20488 UPDATEPOFILES=
20489 DUMMYPOFILES=
20490 GMOFILES=
20491 for lang in $ALL_LINGUAS; do
20492 POFILES="$POFILES $srcdirpre$lang.po"
20493 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20494 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20495 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20496 done
20497 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20498 # environment variable.
20499 INST_LINGUAS=
20500 if test -n "$ALL_LINGUAS"; then
20501 for presentlang in $ALL_LINGUAS; do
20502 useit=no
20503 if test "%UNSET%" != "$LINGUAS"; then
20504 desiredlanguages="$LINGUAS"
20505 else
20506 desiredlanguages="$ALL_LINGUAS"
20507 fi
20508 for desiredlang in $desiredlanguages; do
20509 # Use the presentlang catalog if desiredlang is
20510 # a. equal to presentlang, or
20511 # b. a variant of presentlang (because in this case,
20512 # presentlang can be used as a fallback for messages
20513 # which are not translated in the desiredlang catalog).
20514 case "$desiredlang" in
20515 "$presentlang"*) useit=yes;;
20516 esac
20517 done
20518 if test $useit = yes; then
20519 INST_LINGUAS="$INST_LINGUAS $presentlang"
20520 fi
20521 done
20522 fi
20523 CATALOGS=
20524 if test -n "$INST_LINGUAS"; then
20525 for lang in $INST_LINGUAS; do
20526 CATALOGS="$CATALOGS $lang.gmo"
20527 done
20528 fi
20529 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20530 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"
20531 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20532 if test -f "$f"; then
20533 case "$f" in
20534 *.orig | *.bak | *~) ;;
20535 *) cat "$f" >> "$ac_dir/Makefile" ;;
20536 esac
20537 fi
20538 done
20539 fi
20540 ;;
20541 esac
20542 done ;;
20543
20544 esac
20545 done # for ac_tag
20546
20547
20548 as_fn_exit 0
20549 _ACEOF
20550 ac_clean_files=$ac_clean_files_save
20551
20552 test $ac_write_fail = 0 ||
20553 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20554
20555
20556 # configure is writing to config.log, and then calls config.status.
20557 # config.status does its own redirection, appending to config.log.
20558 # Unfortunately, on DOS this fails, as config.log is still kept open
20559 # by configure, so config.status won't be able to write to it; its
20560 # output is simply discarded. So we exec the FD to /dev/null,
20561 # effectively closing config.log, so it can be properly (re)opened and
20562 # appended to by config.status. When coming back to configure, we
20563 # need to make the FD available again.
20564 if test "$no_create" != yes; then
20565 ac_cs_success=:
20566 ac_config_status_args=
20567 test "$silent" = yes &&
20568 ac_config_status_args="$ac_config_status_args --quiet"
20569 exec 5>/dev/null
20570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20571 exec 5>>config.log
20572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20573 # would make configure fail if this is the last instruction.
20574 $ac_cs_success || as_fn_exit 1
20575 fi
20576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20578 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20579 fi
20580
20581
20582 if test "x$have_libindicator" = "xyes"
20583 then :
20584
20585 if test "x$have_ayatana_libindicator" = "xyes"
20586 then :
20587
20588 indicator_backend="ayatana"
20589
20590 else $as_nop
20591
20592 indicator_backend="unity"
20593
20594 fi
20595
20596 else $as_nop
20597
20598 indicator_backend="disabled"
20599
20600 fi
20601
20602 echo "
20603 ------------------------------------------------------
20604 LightDM GTK Greeter $VERSION
20605 ====================================
20606
20607 Installation:
20608 =============
20609 Prefix: $prefix
20610 AT-SPI Service: $enable_at_spi_command
20611 Use libxklavier: $with_libxklavier
20612 Enable SIGTERM Handler: $enable_kill_on_sigterm
20613
20614 Indicators:
20615 ===========
20616 Indicator Support: $indicator_backend
20617 Indicator Services Command: $enable_indicator_services_command
20618 systemd Services: $with_systemd_service_dir
20619 Indicator NG: $have_indicator_ng
20620 IDO: $have_ido
20621
20622 ------------------------------------------------------
20623
20624 Configuration finished, type make to compile"
20625