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 system-config-printer 1.5.18.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME='system-config-printer'
610 PACKAGE_TARNAME='system-config-printer'
611 PACKAGE_VERSION='1.5.18'
612 PACKAGE_STRING='system-config-printer 1.5.18'
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="system-config-printer.py"
617 gt_needs=
618 ac_subst_vars='am__EXEEXT_FALSE
619 am__EXEEXT_TRUE
620 LTLIBOBJS
621 LIBOBJS
622 XMLTO_FALSE
623 XMLTO_TRUE
624 HAVE_SYSTEMD_FALSE
625 HAVE_SYSTEMD_TRUE
626 systemdsystemunitdir
627 libusb_LIBS
628 libusb_CFLAGS
629 libudev_LIBS
630 libudev_CFLAGS
631 udevrulesdir
632 udevdir
633 UDEV_RULES_FALSE
634 UDEV_RULES_TRUE
635 GLIB_LIBS
636 GLIB_CFLAGS
637 cupsserverbindir
638 PKG_CONFIG_LIBDIR
639 PKG_CONFIG_PATH
640 PKG_CONFIG
641 DESKTOPPREFIX
642 DESKTOPVENDOR
643 DATADIRNAME
644 CATOBJEXT
645 GETTEXT_PACKAGE
646 pkgpyexecdir
647 pyexecdir
648 pkgpythondir
649 pythondir
650 PYTHON_EXEC_PREFIX
651 PYTHON_PREFIX
652 PYTHON_PLATFORM
653 PYTHON_VERSION
654 PYTHON
655 POSUB
656 LTLIBINTL
657 LIBINTL
658 INTLLIBS
659 LTLIBICONV
660 LIBICONV
661 INTL_MACOSX_LIBS
662 EGREP
663 GREP
664 CPP
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 XGETTEXT_EXTRA_OPTIONS
690 MSGMERGE_FOR_MSGFMT_OPTION
691 MSGMERGE
692 XGETTEXT_015
693 XGETTEXT
694 GMSGFMT_015
695 GMSGFMT
696 MSGFMT
697 GETTEXT_MACRO_VERSION
698 USE_NLS
699 SED
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 CSCOPE
705 ETAGS
706 CTAGS
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 runstatedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL
769 am__quote'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_nls
775 enable_dependency_tracking
776 with_gnu_ld
777 enable_rpath
778 with_libiconv_prefix
779 with_libintl_prefix
780 with_python_sys_prefix
781 with_python_prefix
782 with_python_exec_prefix
783 with_desktop_vendor
784 with_cups_serverbin_dir
785 with_udev_rules
786 with_udevdir
787 with_systemdsystemunitdir
788 with_xmlto
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP
799 PYTHON
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 GLIB_CFLAGS
804 GLIB_LIBS
805 libudev_CFLAGS
806 libudev_LIBS
807 libusb_CFLAGS
808 libusb_LIBS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: \`$ac_useropt'"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: \`$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -runstatedir | --runstatedir | --runstatedi | --runstated \
1099 | --runstate | --runstat | --runsta | --runst | --runs \
1100 | --run | --ru | --r)
1101 ac_prev=runstatedir ;;
1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104 | --run=* | --ru=* | --r=*)
1105 runstatedir=$ac_optarg ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: \`$ac_useropt'"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: \`$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir runstatedir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 printf "%s\n" X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures system-config-printer 1.5.18 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root
1407 [DATAROOTDIR/doc/system-config-printer]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of system-config-printer 1.5.18:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --disable-nls do not use Native Language Support
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --disable-rpath do not hardcode runtime library paths
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1451 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1452 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1453 --without-libintl-prefix don't search for libintl in includedir and libdir
1454 --with-python-sys-prefix
1455 use Python's sys.prefix and sys.exec_prefix values
1456 --with-python_prefix override the default PYTHON_PREFIX
1457 --with-python_exec_prefix
1458 override the default PYTHON_EXEC_PREFIX
1459 --with-desktop-vendor Specify the vendor for use in calls to
1460 desktop-file-install [default=]
1461 --with-cups-serverbin-dir
1462 set CUPS SERVERBIN dir, default=value from
1463 pkg-config
1464 --with-udev-rules Enable automatic USB print queue configuration
1465 [default=no]
1466 --with-udevdir=DIR Directory for udev helper programs
1467 --with-systemdsystemunitdir=DIR
1468 Directory for systemd service files
1469 --with-xmlto Enable xmlto manual generation [default=yes]
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 PYTHON the Python interpreter
1481 PKG_CONFIG path to pkg-config utility
1482 PKG_CONFIG_PATH
1483 directories to add to pkg-config's search path
1484 PKG_CONFIG_LIBDIR
1485 path overriding pkg-config's built-in search path
1486 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1487 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1488 libudev_CFLAGS
1489 C compiler flags for libudev, overriding pkg-config
1490 libudev_LIBS
1491 linker flags for libudev, overriding pkg-config
1492 libusb_CFLAGS
1493 C compiler flags for libusb, overriding pkg-config
1494 libusb_LIBS linker flags for libusb, overriding pkg-config
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to the package provider.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 system-config-printer configure 1.5.18
1564 generated by GNU Autoconf 2.71
1565
1566 Copyright (C) 2021 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else $as_nop
1606 printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 printf "%s\n" "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 }
1641 then :
1642 ac_retval=0
1643 else $as_nop
1644 printf "%s\n" "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_link ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 printf "%s\n" "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }
1683 then :
1684 ac_retval=0
1685 else $as_nop
1686 printf "%s\n" "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1704 # executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 printf "%s\n" "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 printf "%s\n" "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }
1729 then :
1730 ac_retval=0
1731 else $as_nop
1732 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1733 printf "%s\n" "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737 fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_run
1743 ac_configure_args_raw=
1744 for ac_arg
1745 do
1746 case $ac_arg in
1747 *\'*)
1748 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 esac
1750 as_fn_append ac_configure_args_raw " '$ac_arg'"
1751 done
1752
1753 case $ac_configure_args_raw in
1754 *$as_nl*)
1755 ac_safe_unquote= ;;
1756 *)
1757 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1758 ac_unsafe_a="$ac_unsafe_z#~"
1759 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1760 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1761 esac
1762
1763 cat >config.log <<_ACEOF
1764 This file contains any messages produced by compilers while
1765 running configure, to aid debugging if configure makes a mistake.
1766
1767 It was created by system-config-printer $as_me 1.5.18, which was
1768 generated by GNU Autoconf 2.71. Invocation command line was
1769
1770 $ $0$ac_configure_args_raw
1771
1772 _ACEOF
1773 exec 5>>config.log
1774 {
1775 cat <<_ASUNAME
1776 ## --------- ##
1777 ## Platform. ##
1778 ## --------- ##
1779
1780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785
1786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788
1789 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1790 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1792 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1796
1797 _ASUNAME
1798
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802 IFS=$as_save_IFS
1803 case $as_dir in #(((
1804 '') as_dir=./ ;;
1805 */) ;;
1806 *) as_dir=$as_dir/ ;;
1807 esac
1808 printf "%s\n" "PATH: $as_dir"
1809 done
1810 IFS=$as_save_IFS
1811
1812 } >&5
1813
1814 cat >&5 <<_ACEOF
1815
1816
1817 ## ----------- ##
1818 ## Core tests. ##
1819 ## ----------- ##
1820
1821 _ACEOF
1822
1823
1824 # Keep a trace of the command line.
1825 # Strip out --no-create and --no-recursion so they do not pile up.
1826 # Strip out --silent because we don't want to record it for future runs.
1827 # Also quote any args containing shell meta-characters.
1828 # Make two passes to allow for proper duplicate-argument suppression.
1829 ac_configure_args=
1830 ac_configure_args0=
1831 ac_configure_args1=
1832 ac_must_keep_next=false
1833 for ac_pass in 1 2
1834 do
1835 for ac_arg
1836 do
1837 case $ac_arg in
1838 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1840 | -silent | --silent | --silen | --sile | --sil)
1841 continue ;;
1842 *\'*)
1843 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1844 esac
1845 case $ac_pass in
1846 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1847 2)
1848 as_fn_append ac_configure_args1 " '$ac_arg'"
1849 if test $ac_must_keep_next = true; then
1850 ac_must_keep_next=false # Got value, back to normal.
1851 else
1852 case $ac_arg in
1853 *=* | --config-cache | -C | -disable-* | --disable-* \
1854 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1855 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1856 | -with-* | --with-* | -without-* | --without-* | --x)
1857 case "$ac_configure_args0 " in
1858 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1859 esac
1860 ;;
1861 -* ) ac_must_keep_next=true ;;
1862 esac
1863 fi
1864 as_fn_append ac_configure_args " '$ac_arg'"
1865 ;;
1866 esac
1867 done
1868 done
1869 { ac_configure_args0=; unset ac_configure_args0;}
1870 { ac_configure_args1=; unset ac_configure_args1;}
1871
1872 # When interrupted or exit'd, cleanup temporary files, and complete
1873 # config.log. We remove comments because anyway the quotes in there
1874 # would cause problems or look ugly.
1875 # WARNING: Use '\'' to represent an apostrophe within the trap.
1876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1877 trap 'exit_status=$?
1878 # Sanitize IFS.
1879 IFS=" "" $as_nl"
1880 # Save into config.log some information that might help in debugging.
1881 {
1882 echo
1883
1884 printf "%s\n" "## ---------------- ##
1885 ## Cache variables. ##
1886 ## ---------------- ##"
1887 echo
1888 # The following way of writing the cache mishandles newlines in values,
1889 (
1890 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1891 eval ac_val=\$$ac_var
1892 case $ac_val in #(
1893 *${as_nl}*)
1894 case $ac_var in #(
1895 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1896 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1897 esac
1898 case $ac_var in #(
1899 _ | IFS | as_nl) ;; #(
1900 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1901 *) { eval $ac_var=; unset $ac_var;} ;;
1902 esac ;;
1903 esac
1904 done
1905 (set) 2>&1 |
1906 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1907 *${as_nl}ac_space=\ *)
1908 sed -n \
1909 "s/'\''/'\''\\\\'\'''\''/g;
1910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1911 ;; #(
1912 *)
1913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1914 ;;
1915 esac |
1916 sort
1917 )
1918 echo
1919
1920 printf "%s\n" "## ----------------- ##
1921 ## Output variables. ##
1922 ## ----------------- ##"
1923 echo
1924 for ac_var in $ac_subst_vars
1925 do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in
1928 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929 esac
1930 printf "%s\n" "$ac_var='\''$ac_val'\''"
1931 done | sort
1932 echo
1933
1934 if test -n "$ac_subst_files"; then
1935 printf "%s\n" "## ------------------- ##
1936 ## File substitutions. ##
1937 ## ------------------- ##"
1938 echo
1939 for ac_var in $ac_subst_files
1940 do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in
1943 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1944 esac
1945 printf "%s\n" "$ac_var='\''$ac_val'\''"
1946 done | sort
1947 echo
1948 fi
1949
1950 if test -s confdefs.h; then
1951 printf "%s\n" "## ----------- ##
1952 ## confdefs.h. ##
1953 ## ----------- ##"
1954 echo
1955 cat confdefs.h
1956 echo
1957 fi
1958 test "$ac_signal" != 0 &&
1959 printf "%s\n" "$as_me: caught signal $ac_signal"
1960 printf "%s\n" "$as_me: exit $exit_status"
1961 } >&5
1962 rm -f core *.core core.conftest.* &&
1963 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1964 exit $exit_status
1965 ' 0
1966 for ac_signal in 1 2 13 15; do
1967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1968 done
1969 ac_signal=0
1970
1971 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1972 rm -f -r conftest* confdefs.h
1973
1974 printf "%s\n" "/* confdefs.h */" > confdefs.h
1975
1976 # Predefined preprocessor variables.
1977
1978 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1979
1980 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1981
1982 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1983
1984 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1985
1986 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1987
1988 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1989
1990
1991 # Let the site file select an alternate cache file if it wants to.
1992 # Prefer an explicitly selected file to automatically selected ones.
1993 if test -n "$CONFIG_SITE"; then
1994 ac_site_files="$CONFIG_SITE"
1995 elif test "x$prefix" != xNONE; then
1996 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1997 else
1998 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1999 fi
2000
2001 for ac_site_file in $ac_site_files
2002 do
2003 case $ac_site_file in #(
2004 */*) :
2005 ;; #(
2006 *) :
2007 ac_site_file=./$ac_site_file ;;
2008 esac
2009 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2011 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2012 sed 's/^/| /' "$ac_site_file" >&5
2013 . "$ac_site_file" \
2014 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2015 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2016 as_fn_error $? "failed to load site script $ac_site_file
2017 See \`config.log' for more details" "$LINENO" 5; }
2018 fi
2019 done
2020
2021 if test -r "$cache_file"; then
2022 # Some versions of bash will fail to source /dev/null (special files
2023 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2024 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2026 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2027 case $cache_file in
2028 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2029 *) . "./$cache_file";;
2030 esac
2031 fi
2032 else
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2034 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2035 >$cache_file
2036 fi
2037
2038 gt_needs="$gt_needs "
2039 # Test code for whether the C compiler supports C89 (global declarations)
2040 ac_c_conftest_c89_globals='
2041 /* Does the compiler advertise C89 conformance?
2042 Do not test the value of __STDC__, because some compilers set it to 0
2043 while being otherwise adequately conformant. */
2044 #if !defined __STDC__
2045 # error "Compiler does not advertise C89 conformance"
2046 #endif
2047
2048 #include <stddef.h>
2049 #include <stdarg.h>
2050 struct stat;
2051 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2052 struct buf { int x; };
2053 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (p, i)
2055 char **p;
2056 int i;
2057 {
2058 return p[i];
2059 }
2060 static char *f (char * (*g) (char **, int), char **p, ...)
2061 {
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2068 }
2069
2070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not \xHH hex character constants.
2072 These do not provoke an error unfortunately, instead are silently treated
2073 as an "x". The following induces an error, until -std is added to get
2074 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2075 array size at least. It is necessary to write \x00 == 0 to get something
2076 that is true only with -std. */
2077 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2078
2079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2080 inside strings and character constants. */
2081 #define FOO(x) '\''x'\''
2082 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2083
2084 int test (int i, double x);
2085 struct s1 {int (*f) (int a);};
2086 struct s2 {int (*f) (double a);};
2087 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2088 int, int);'
2089
2090 # Test code for whether the C compiler supports C89 (body of main).
2091 ac_c_conftest_c89_main='
2092 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2093 '
2094
2095 # Test code for whether the C compiler supports C99 (global declarations)
2096 ac_c_conftest_c99_globals='
2097 // Does the compiler advertise C99 conformance?
2098 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2099 # error "Compiler does not advertise C99 conformance"
2100 #endif
2101
2102 #include <stdbool.h>
2103 extern int puts (const char *);
2104 extern int printf (const char *, ...);
2105 extern int dprintf (int, const char *, ...);
2106 extern void *malloc (size_t);
2107
2108 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2109 // dprintf is used instead of fprintf to avoid needing to declare
2110 // FILE and stderr.
2111 #define debug(...) dprintf (2, __VA_ARGS__)
2112 #define showlist(...) puts (#__VA_ARGS__)
2113 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2114 static void
2115 test_varargs_macros (void)
2116 {
2117 int x = 1234;
2118 int y = 5678;
2119 debug ("Flag");
2120 debug ("X = %d\n", x);
2121 showlist (The first, second, and third items.);
2122 report (x>y, "x is %d but y is %d", x, y);
2123 }
2124
2125 // Check long long types.
2126 #define BIG64 18446744073709551615ull
2127 #define BIG32 4294967295ul
2128 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2129 #if !BIG_OK
2130 #error "your preprocessor is broken"
2131 #endif
2132 #if BIG_OK
2133 #else
2134 #error "your preprocessor is broken"
2135 #endif
2136 static long long int bignum = -9223372036854775807LL;
2137 static unsigned long long int ubignum = BIG64;
2138
2139 struct incomplete_array
2140 {
2141 int datasize;
2142 double data[];
2143 };
2144
2145 struct named_init {
2146 int number;
2147 const wchar_t *name;
2148 double average;
2149 };
2150
2151 typedef const char *ccp;
2152
2153 static inline int
2154 test_restrict (ccp restrict text)
2155 {
2156 // See if C++-style comments work.
2157 // Iterate through items via the restricted pointer.
2158 // Also check for declarations in for loops.
2159 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2160 continue;
2161 return 0;
2162 }
2163
2164 // Check varargs and va_copy.
2165 static bool
2166 test_varargs (const char *format, ...)
2167 {
2168 va_list args;
2169 va_start (args, format);
2170 va_list args_copy;
2171 va_copy (args_copy, args);
2172
2173 const char *str = "";
2174 int number = 0;
2175 float fnumber = 0;
2176
2177 while (*format)
2178 {
2179 switch (*format++)
2180 {
2181 case '\''s'\'': // string
2182 str = va_arg (args_copy, const char *);
2183 break;
2184 case '\''d'\'': // int
2185 number = va_arg (args_copy, int);
2186 break;
2187 case '\''f'\'': // float
2188 fnumber = va_arg (args_copy, double);
2189 break;
2190 default:
2191 break;
2192 }
2193 }
2194 va_end (args_copy);
2195 va_end (args);
2196
2197 return *str && number && fnumber;
2198 }
2199 '
2200
2201 # Test code for whether the C compiler supports C99 (body of main).
2202 ac_c_conftest_c99_main='
2203 // Check bool.
2204 _Bool success = false;
2205 success |= (argc != 0);
2206
2207 // Check restrict.
2208 if (test_restrict ("String literal") == 0)
2209 success = true;
2210 char *restrict newvar = "Another string";
2211
2212 // Check varargs.
2213 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2214 test_varargs_macros ();
2215
2216 // Check flexible array members.
2217 struct incomplete_array *ia =
2218 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2219 ia->datasize = 10;
2220 for (int i = 0; i < ia->datasize; ++i)
2221 ia->data[i] = i * 1.234;
2222
2223 // Check named initializers.
2224 struct named_init ni = {
2225 .number = 34,
2226 .name = L"Test wide string",
2227 .average = 543.34343,
2228 };
2229
2230 ni.number = 58;
2231
2232 int dynamic_array[ni.number];
2233 dynamic_array[0] = argv[0][0];
2234 dynamic_array[ni.number - 1] = 543;
2235
2236 // work around unused variable warnings
2237 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2238 || dynamic_array[ni.number - 1] != 543);
2239 '
2240
2241 # Test code for whether the C compiler supports C11 (global declarations)
2242 ac_c_conftest_c11_globals='
2243 // Does the compiler advertise C11 conformance?
2244 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2245 # error "Compiler does not advertise C11 conformance"
2246 #endif
2247
2248 // Check _Alignas.
2249 char _Alignas (double) aligned_as_double;
2250 char _Alignas (0) no_special_alignment;
2251 extern char aligned_as_int;
2252 char _Alignas (0) _Alignas (int) aligned_as_int;
2253
2254 // Check _Alignof.
2255 enum
2256 {
2257 int_alignment = _Alignof (int),
2258 int_array_alignment = _Alignof (int[100]),
2259 char_alignment = _Alignof (char)
2260 };
2261 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2262
2263 // Check _Noreturn.
2264 int _Noreturn does_not_return (void) { for (;;) continue; }
2265
2266 // Check _Static_assert.
2267 struct test_static_assert
2268 {
2269 int x;
2270 _Static_assert (sizeof (int) <= sizeof (long int),
2271 "_Static_assert does not work in struct");
2272 long int y;
2273 };
2274
2275 // Check UTF-8 literals.
2276 #define u8 syntax error!
2277 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2278
2279 // Check duplicate typedefs.
2280 typedef long *long_ptr;
2281 typedef long int *long_ptr;
2282 typedef long_ptr long_ptr;
2283
2284 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2285 struct anonymous
2286 {
2287 union {
2288 struct { int i; int j; };
2289 struct { int k; long int l; } w;
2290 };
2291 int m;
2292 } v1;
2293 '
2294
2295 # Test code for whether the C compiler supports C11 (body of main).
2296 ac_c_conftest_c11_main='
2297 _Static_assert ((offsetof (struct anonymous, i)
2298 == offsetof (struct anonymous, w.k)),
2299 "Anonymous union alignment botch");
2300 v1.i = 2;
2301 v1.w.k = 5;
2302 ok |= v1.i != 5;
2303 '
2304
2305 # Test code for whether the C compiler supports C11 (complete).
2306 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2307 ${ac_c_conftest_c99_globals}
2308 ${ac_c_conftest_c11_globals}
2309
2310 int
2311 main (int argc, char **argv)
2312 {
2313 int ok = 0;
2314 ${ac_c_conftest_c89_main}
2315 ${ac_c_conftest_c99_main}
2316 ${ac_c_conftest_c11_main}
2317 return ok;
2318 }
2319 "
2320
2321 # Test code for whether the C compiler supports C99 (complete).
2322 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2323 ${ac_c_conftest_c99_globals}
2324
2325 int
2326 main (int argc, char **argv)
2327 {
2328 int ok = 0;
2329 ${ac_c_conftest_c89_main}
2330 ${ac_c_conftest_c99_main}
2331 return ok;
2332 }
2333 "
2334
2335 # Test code for whether the C compiler supports C89 (complete).
2336 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2337
2338 int
2339 main (int argc, char **argv)
2340 {
2341 int ok = 0;
2342 ${ac_c_conftest_c89_main}
2343 return ok;
2344 }
2345 "
2346
2347
2348 # Auxiliary files required by this configure script.
2349 ac_aux_files="config.guess config.sub compile config.rpath missing install-sh"
2350
2351 # Locations in which to look for auxiliary files.
2352 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2353
2354 # Search for a directory containing all of the required auxiliary files,
2355 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2356 # If we don't find one directory that contains all the files we need,
2357 # we report the set of missing files from the *first* directory in
2358 # $ac_aux_dir_candidates and give up.
2359 ac_missing_aux_files=""
2360 ac_first_candidate=:
2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 as_found=false
2364 for as_dir in $ac_aux_dir_candidates
2365 do
2366 IFS=$as_save_IFS
2367 case $as_dir in #(((
2368 '') as_dir=./ ;;
2369 */) ;;
2370 *) as_dir=$as_dir/ ;;
2371 esac
2372 as_found=:
2373
2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2375 ac_aux_dir_found=yes
2376 ac_install_sh=
2377 for ac_aux in $ac_aux_files
2378 do
2379 # As a special case, if "install-sh" is required, that requirement
2380 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2381 # and $ac_install_sh is set appropriately for whichever one is found.
2382 if test x"$ac_aux" = x"install-sh"
2383 then
2384 if test -f "${as_dir}install-sh"; then
2385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2386 ac_install_sh="${as_dir}install-sh -c"
2387 elif test -f "${as_dir}install.sh"; then
2388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2389 ac_install_sh="${as_dir}install.sh -c"
2390 elif test -f "${as_dir}shtool"; then
2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2392 ac_install_sh="${as_dir}shtool install -c"
2393 else
2394 ac_aux_dir_found=no
2395 if $ac_first_candidate; then
2396 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2397 else
2398 break
2399 fi
2400 fi
2401 else
2402 if test -f "${as_dir}${ac_aux}"; then
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2404 else
2405 ac_aux_dir_found=no
2406 if $ac_first_candidate; then
2407 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2408 else
2409 break
2410 fi
2411 fi
2412 fi
2413 done
2414 if test "$ac_aux_dir_found" = yes; then
2415 ac_aux_dir="$as_dir"
2416 break
2417 fi
2418 ac_first_candidate=false
2419
2420 as_found=false
2421 done
2422 IFS=$as_save_IFS
2423 if $as_found
2424 then :
2425
2426 else $as_nop
2427 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2428 fi
2429
2430
2431 # These three variables are undocumented and unsupported,
2432 # and are intended to be withdrawn in a future Autoconf release.
2433 # They can cause serious problems if a builder's source tree is in a directory
2434 # whose full name contains unusual characters.
2435 if test -f "${ac_aux_dir}config.guess"; then
2436 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2437 fi
2438 if test -f "${ac_aux_dir}config.sub"; then
2439 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2440 fi
2441 if test -f "$ac_aux_dir/configure"; then
2442 ac_configure="$SHELL ${ac_aux_dir}configure"
2443 fi
2444
2445 # Check that the precious variables saved in the cache have kept the same
2446 # value.
2447 ac_cache_corrupted=false
2448 for ac_var in $ac_precious_vars; do
2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450 eval ac_new_set=\$ac_env_${ac_var}_set
2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452 eval ac_new_val=\$ac_env_${ac_var}_value
2453 case $ac_old_set,$ac_new_set in
2454 set,)
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2458 ,set)
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2460 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2462 ,);;
2463 *)
2464 if test "x$ac_old_val" != "x$ac_new_val"; then
2465 # differences in whitespace do not lead to failure.
2466 ac_old_val_w=`echo x $ac_old_val`
2467 ac_new_val_w=`echo x $ac_new_val`
2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2471 ac_cache_corrupted=:
2472 else
2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2474 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475 eval $ac_var=\$ac_old_val
2476 fi
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2478 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2480 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2481 fi;;
2482 esac
2483 # Pass precious variables to config.status.
2484 if test "$ac_new_set" = set; then
2485 case $ac_new_val in
2486 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 *) ac_arg=$ac_var=$ac_new_val ;;
2488 esac
2489 case " $ac_configure_args " in
2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492 esac
2493 fi
2494 done
2495 if $ac_cache_corrupted; then
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2501 and start over" "$LINENO" 5
2502 fi
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2506
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514
2515 am__api_version='1.16'
2516
2517
2518
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 printf %s "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if test ${ac_cv_path_install+y}
2537 then :
2538 printf %s "(cached) " >&6
2539 else $as_nop
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 case $as_dir in #(((
2545 '') as_dir=./ ;;
2546 */) ;;
2547 *) as_dir=$as_dir/ ;;
2548 esac
2549 # Account for fact that we put trailing slashes in our PATH walk.
2550 case $as_dir in #((
2551 ./ | /[cC]/* | \
2552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2553 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2554 /usr/ucb/* ) ;;
2555 *)
2556 # OSF1 and SCO ODT 3.0 have their own names for install.
2557 # Don't use installbsd from OSF since it installs stuff as root
2558 # by default.
2559 for ac_prog in ginstall scoinst install; do
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2562 if test $ac_prog = install &&
2563 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564 # AIX install. It has an incompatible calling convention.
2565 :
2566 elif test $ac_prog = install &&
2567 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # program-specific install script used by HP pwplus--don't use.
2569 :
2570 else
2571 rm -rf conftest.one conftest.two conftest.dir
2572 echo one > conftest.one
2573 echo two > conftest.two
2574 mkdir conftest.dir
2575 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2576 test -s conftest.one && test -s conftest.two &&
2577 test -s conftest.dir/conftest.one &&
2578 test -s conftest.dir/conftest.two
2579 then
2580 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2581 break 3
2582 fi
2583 fi
2584 fi
2585 done
2586 done
2587 ;;
2588 esac
2589
2590 done
2591 IFS=$as_save_IFS
2592
2593 rm -rf conftest.one conftest.two conftest.dir
2594
2595 fi
2596 if test ${ac_cv_path_install+y}; then
2597 INSTALL=$ac_cv_path_install
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for INSTALL within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 INSTALL=$ac_install_sh
2604 fi
2605 fi
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2607 printf "%s\n" "$INSTALL" >&6; }
2608
2609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2610 # It thinks the first close brace ends the variable substitution.
2611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2612
2613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2614
2615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2616
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2618 printf %s "checking whether build environment is sane... " >&6; }
2619 # Reject unsafe characters in $srcdir or the absolute working directory
2620 # name. Accept space and tab only in the latter.
2621 am_lf='
2622 '
2623 case `pwd` in
2624 *[\\\"\#\$\&\'\`$am_lf]*)
2625 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2626 esac
2627 case $srcdir in
2628 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2629 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2630 esac
2631
2632 # Do 'set' in a subshell so we don't clobber the current shell's
2633 # arguments. Must try -L first in case configure is actually a
2634 # symlink; some systems play weird games with the mod time of symlinks
2635 # (eg FreeBSD returns the mod time of the symlink's containing
2636 # directory).
2637 if (
2638 am_has_slept=no
2639 for am_try in 1 2; do
2640 echo "timestamp, slept: $am_has_slept" > conftest.file
2641 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2642 if test "$*" = "X"; then
2643 # -L didn't work.
2644 set X `ls -t "$srcdir/configure" conftest.file`
2645 fi
2646 if test "$*" != "X $srcdir/configure conftest.file" \
2647 && test "$*" != "X conftest.file $srcdir/configure"; then
2648
2649 # If neither matched, then we have a broken ls. This can happen
2650 # if, for instance, CONFIG_SHELL is bash and it inherits a
2651 # broken ls alias from the environment. This has actually
2652 # happened. Such a system could not be considered "sane".
2653 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2654 alias in your environment" "$LINENO" 5
2655 fi
2656 if test "$2" = conftest.file || test $am_try -eq 2; then
2657 break
2658 fi
2659 # Just in case.
2660 sleep 1
2661 am_has_slept=yes
2662 done
2663 test "$2" = conftest.file
2664 )
2665 then
2666 # Ok.
2667 :
2668 else
2669 as_fn_error $? "newly created file is older than distributed files!
2670 Check your system clock" "$LINENO" 5
2671 fi
2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 printf "%s\n" "yes" >&6; }
2674 # If we didn't sleep, we still need to ensure time stamps of config.status and
2675 # generated files are strictly newer.
2676 am_sleep_pid=
2677 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2678 ( sleep 1 ) &
2679 am_sleep_pid=$!
2680 fi
2681
2682 rm -f conftest.file
2683
2684 test "$program_prefix" != NONE &&
2685 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2686 # Use a double $ so make ignores it.
2687 test "$program_suffix" != NONE &&
2688 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2689 # Double any \ or $.
2690 # By default was `s,x,x', remove it if useless.
2691 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2692 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2693
2694
2695 # Expand $ac_aux_dir to an absolute path.
2696 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2697
2698
2699 if test x"${MISSING+set}" != xset; then
2700 MISSING="\${SHELL} '$am_aux_dir/missing'"
2701 fi
2702 # Use eval to expand $SHELL
2703 if eval "$MISSING --is-lightweight"; then
2704 am_missing_run="$MISSING "
2705 else
2706 am_missing_run=
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2708 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2709 fi
2710
2711 if test x"${install_sh+set}" != xset; then
2712 case $am_aux_dir in
2713 *\ * | *\ *)
2714 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2715 *)
2716 install_sh="\${SHELL} $am_aux_dir/install-sh"
2717 esac
2718 fi
2719
2720 # Installed binaries are usually stripped using 'strip' when the user
2721 # run "make install-strip". However 'strip' might not be the right
2722 # tool to use in cross-compilation environments, therefore Automake
2723 # will honor the 'STRIP' environment variable to overrule this program.
2724 if test "$cross_compiling" != no; then
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}strip; ac_word=$2
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 printf %s "checking for $ac_word... " >&6; }
2730 if test ${ac_cv_prog_STRIP+y}
2731 then :
2732 printf %s "(cached) " >&6
2733 else $as_nop
2734 if test -n "$STRIP"; then
2735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 case $as_dir in #(((
2742 '') as_dir=./ ;;
2743 */) ;;
2744 *) as_dir=$as_dir/ ;;
2745 esac
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 STRIP=$ac_cv_prog_STRIP
2759 if test -n "$STRIP"; then
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2761 printf "%s\n" "$STRIP" >&6; }
2762 else
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 printf "%s\n" "no" >&6; }
2765 fi
2766
2767
2768 fi
2769 if test -z "$ac_cv_prog_STRIP"; then
2770 ac_ct_STRIP=$STRIP
2771 # Extract the first word of "strip", so it can be a program name with args.
2772 set dummy strip; ac_word=$2
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 printf %s "checking for $ac_word... " >&6; }
2775 if test ${ac_cv_prog_ac_ct_STRIP+y}
2776 then :
2777 printf %s "(cached) " >&6
2778 else $as_nop
2779 if test -n "$ac_ct_STRIP"; then
2780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 case $as_dir in #(((
2787 '') as_dir=./ ;;
2788 */) ;;
2789 *) as_dir=$as_dir/ ;;
2790 esac
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_STRIP="strip"
2794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2804 if test -n "$ac_ct_STRIP"; then
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2806 printf "%s\n" "$ac_ct_STRIP" >&6; }
2807 else
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 printf "%s\n" "no" >&6; }
2810 fi
2811
2812 if test "x$ac_ct_STRIP" = x; then
2813 STRIP=":"
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821 STRIP=$ac_ct_STRIP
2822 fi
2823 else
2824 STRIP="$ac_cv_prog_STRIP"
2825 fi
2826
2827 fi
2828 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2829
2830
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2832 printf %s "checking for a race-free mkdir -p... " >&6; }
2833 if test -z "$MKDIR_P"; then
2834 if test ${ac_cv_path_mkdir+y}
2835 then :
2836 printf %s "(cached) " >&6
2837 else $as_nop
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2840 do
2841 IFS=$as_save_IFS
2842 case $as_dir in #(((
2843 '') as_dir=./ ;;
2844 */) ;;
2845 *) as_dir=$as_dir/ ;;
2846 esac
2847 for ac_prog in mkdir gmkdir; do
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2850 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2851 'mkdir ('*'coreutils) '* | \
2852 'BusyBox '* | \
2853 'mkdir (fileutils) '4.1*)
2854 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2855 break 3;;
2856 esac
2857 done
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863
2864 test -d ./--version && rmdir ./--version
2865 if test ${ac_cv_path_mkdir+y}; then
2866 MKDIR_P="$ac_cv_path_mkdir -p"
2867 else
2868 # As a last resort, use the slow shell script. Don't cache a
2869 # value for MKDIR_P within a source directory, because that will
2870 # break other packages using the cache if that directory is
2871 # removed, or if the value is a relative name.
2872 MKDIR_P="$ac_install_sh -d"
2873 fi
2874 fi
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2876 printf "%s\n" "$MKDIR_P" >&6; }
2877
2878 for ac_prog in gawk mawk nawk awk
2879 do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 printf %s "checking for $ac_word... " >&6; }
2884 if test ${ac_cv_prog_AWK+y}
2885 then :
2886 printf %s "(cached) " >&6
2887 else $as_nop
2888 if test -n "$AWK"; then
2889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 case $as_dir in #(((
2896 '') as_dir=./ ;;
2897 */) ;;
2898 *) as_dir=$as_dir/ ;;
2899 esac
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_AWK="$ac_prog"
2903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 AWK=$ac_cv_prog_AWK
2913 if test -n "$AWK"; then
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2915 printf "%s\n" "$AWK" >&6; }
2916 else
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 printf "%s\n" "no" >&6; }
2919 fi
2920
2921
2922 test -n "$AWK" && break
2923 done
2924
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2926 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2927 set x ${MAKE-make}
2928 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2929 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2930 then :
2931 printf %s "(cached) " >&6
2932 else $as_nop
2933 cat >conftest.make <<\_ACEOF
2934 SHELL = /bin/sh
2935 all:
2936 @echo '@@@%%%=$(MAKE)=@@@%%%'
2937 _ACEOF
2938 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2940 *@@@%%%=?*=@@@%%%*)
2941 eval ac_cv_prog_make_${ac_make}_set=yes;;
2942 *)
2943 eval ac_cv_prog_make_${ac_make}_set=no;;
2944 esac
2945 rm -f conftest.make
2946 fi
2947 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 printf "%s\n" "yes" >&6; }
2950 SET_MAKE=
2951 else
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 printf "%s\n" "no" >&6; }
2954 SET_MAKE="MAKE=${MAKE-make}"
2955 fi
2956
2957 rm -rf .tst 2>/dev/null
2958 mkdir .tst 2>/dev/null
2959 if test -d .tst; then
2960 am__leading_dot=.
2961 else
2962 am__leading_dot=_
2963 fi
2964 rmdir .tst 2>/dev/null
2965
2966 # Check whether --enable-silent-rules was given.
2967 if test ${enable_silent_rules+y}
2968 then :
2969 enableval=$enable_silent_rules;
2970 fi
2971
2972 case $enable_silent_rules in # (((
2973 yes) AM_DEFAULT_VERBOSITY=0;;
2974 no) AM_DEFAULT_VERBOSITY=1;;
2975 *) AM_DEFAULT_VERBOSITY=1;;
2976 esac
2977 am_make=${MAKE-make}
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2979 printf %s "checking whether $am_make supports nested variables... " >&6; }
2980 if test ${am_cv_make_support_nested_variables+y}
2981 then :
2982 printf %s "(cached) " >&6
2983 else $as_nop
2984 if printf "%s\n" 'TRUE=$(BAR$(V))
2985 BAR0=false
2986 BAR1=true
2987 V=1
2988 am__doit:
2989 @$(TRUE)
2990 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2991 am_cv_make_support_nested_variables=yes
2992 else
2993 am_cv_make_support_nested_variables=no
2994 fi
2995 fi
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2997 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2998 if test $am_cv_make_support_nested_variables = yes; then
2999 AM_V='$(V)'
3000 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3001 else
3002 AM_V=$AM_DEFAULT_VERBOSITY
3003 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3004 fi
3005 AM_BACKSLASH='\'
3006
3007 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3008 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3009 # is not polluted with repeated "-I."
3010 am__isrc=' -I$(srcdir)'
3011 # test to see if srcdir already configured
3012 if test -f $srcdir/config.status; then
3013 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3014 fi
3015 fi
3016
3017 # test whether we have cygpath
3018 if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3023 fi
3024 fi
3025
3026
3027 # Define the identity of the package.
3028 PACKAGE='system-config-printer'
3029 VERSION='1.5.18'
3030
3031
3032 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3033
3034
3035 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3036
3037 # Some tools Automake needs.
3038
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040
3041
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043
3044
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046
3047
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049
3050
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
3053 # For better backward compatibility. To be removed once Automake 1.9.x
3054 # dies out for good. For more background, see:
3055 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3056 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3057 mkdir_p='$(MKDIR_P)'
3058
3059 # We need awk for the "check" target (and possibly the TAP driver). The
3060 # system "awk" is bad on some platforms.
3061 # Always define AMTAR for backward compatibility. Yes, it's still used
3062 # in the wild :-( We should find a proper way to deprecate it ...
3063 AMTAR='$${TAR-tar}'
3064
3065
3066 # We'll loop over all known methods to create a tar archive until one works.
3067 _am_tools='gnutar pax cpio none'
3068
3069 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3070
3071
3072
3073
3074
3075 # Variables for tags utilities; see am/tags.am
3076 if test -z "$CTAGS"; then
3077 CTAGS=ctags
3078 fi
3079
3080 if test -z "$ETAGS"; then
3081 ETAGS=etags
3082 fi
3083
3084 if test -z "$CSCOPE"; then
3085 CSCOPE=cscope
3086 fi
3087
3088
3089
3090 # POSIX will say in a future version that running "rm -f" with no argument
3091 # is OK; and we want to be able to make that assumption in our Makefile
3092 # recipes. So use an aggressive probe to check that the usage we want is
3093 # actually supported "in the wild" to an acceptable degree.
3094 # See automake bug#10828.
3095 # To make any issue more visible, cause the running configure to be aborted
3096 # by default if the 'rm' program in use doesn't match our expectations; the
3097 # user can still override this though.
3098 if rm -f && rm -fr && rm -rf; then : OK; else
3099 cat >&2 <<'END'
3100 Oops!
3101
3102 Your 'rm' program seems unable to run without file operands specified
3103 on the command line, even when the '-f' option is present. This is contrary
3104 to the behaviour of most rm programs out there, and not conforming with
3105 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3106
3107 Please tell [email protected] about your system, including the value
3108 of your $PATH and any error possibly output before this message. This
3109 can help us improve future automake versions.
3110
3111 END
3112 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3113 echo 'Configuration will proceed anyway, since you have set the' >&2
3114 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3115 echo >&2
3116 else
3117 cat >&2 <<'END'
3118 Aborting the configuration process, to ensure you take notice of the issue.
3119
3120 You can download and install GNU coreutils to get an 'rm' implementation
3121 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3122
3123 If you want to complete the configuration process using your problematic
3124 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3125 to "yes", and re-run configure.
3126
3127 END
3128 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3129 fi
3130 fi
3131
3132
3133
3134
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3136 printf %s "checking for a sed that does not truncate output... " >&6; }
3137 if test ${ac_cv_path_SED+y}
3138 then :
3139 printf %s "(cached) " >&6
3140 else $as_nop
3141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3142 for ac_i in 1 2 3 4 5 6 7; do
3143 ac_script="$ac_script$as_nl$ac_script"
3144 done
3145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3146 { ac_script=; unset ac_script;}
3147 if test -z "$SED"; then
3148 ac_path_SED_found=false
3149 # Loop through the user's path and test for each of PROGNAME-LIST
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_prog in sed gsed
3160 do
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3163 as_fn_executable_p "$ac_path_SED" || continue
3164 # Check for GNU ac_path_SED and select it if it is found.
3165 # Check for GNU $ac_path_SED
3166 case `"$ac_path_SED" --version 2>&1` in
3167 *GNU*)
3168 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3169 *)
3170 ac_count=0
3171 printf %s 0123456789 >"conftest.in"
3172 while :
3173 do
3174 cat "conftest.in" "conftest.in" >"conftest.tmp"
3175 mv "conftest.tmp" "conftest.in"
3176 cp "conftest.in" "conftest.nl"
3177 printf "%s\n" '' >> "conftest.nl"
3178 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3180 as_fn_arith $ac_count + 1 && ac_count=$as_val
3181 if test $ac_count -gt ${ac_path_SED_max-0}; then
3182 # Best one so far, save it but keep looking for a better one
3183 ac_cv_path_SED="$ac_path_SED"
3184 ac_path_SED_max=$ac_count
3185 fi
3186 # 10*(2^10) chars as input seems more than enough
3187 test $ac_count -gt 10 && break
3188 done
3189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3190 esac
3191
3192 $ac_path_SED_found && break 3
3193 done
3194 done
3195 done
3196 IFS=$as_save_IFS
3197 if test -z "$ac_cv_path_SED"; then
3198 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3199 fi
3200 else
3201 ac_cv_path_SED=$SED
3202 fi
3203
3204 fi
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3206 printf "%s\n" "$ac_cv_path_SED" >&6; }
3207 SED="$ac_cv_path_SED"
3208 rm -f conftest.sed
3209
3210
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3212 printf %s "checking whether NLS is requested... " >&6; }
3213 # Check whether --enable-nls was given.
3214 if test ${enable_nls+y}
3215 then :
3216 enableval=$enable_nls; USE_NLS=$enableval
3217 else $as_nop
3218 USE_NLS=yes
3219 fi
3220
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3222 printf "%s\n" "$USE_NLS" >&6; }
3223
3224
3225
3226
3227 GETTEXT_MACRO_VERSION=0.20
3228
3229
3230
3231
3232 # Prepare PATH_SEPARATOR.
3233 # The user is always right.
3234 if test "${PATH_SEPARATOR+set}" != set; then
3235 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3236 # contains only /bin. Note that ksh looks also at the FPATH variable,
3237 # so we have to set that as well for the test.
3238 PATH_SEPARATOR=:
3239 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3240 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3241 || PATH_SEPARATOR=';'
3242 }
3243 fi
3244
3245 # Find out how to test for executable files. Don't use a zero-byte file,
3246 # as systems may use methods other than mode bits to determine executability.
3247 cat >conf$$.file <<_ASEOF
3248 #! /bin/sh
3249 exit 0
3250 _ASEOF
3251 chmod +x conf$$.file
3252 if test -x conf$$.file >/dev/null 2>&1; then
3253 ac_executable_p="test -x"
3254 else
3255 ac_executable_p="test -f"
3256 fi
3257 rm -f conf$$.file
3258
3259 # Extract the first word of "msgfmt", so it can be a program name with args.
3260 set dummy msgfmt; ac_word=$2
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 printf %s "checking for $ac_word... " >&6; }
3263 if test ${ac_cv_path_MSGFMT+y}
3264 then :
3265 printf %s "(cached) " >&6
3266 else $as_nop
3267 case "$MSGFMT" in
3268 [\\/]* | ?:[\\/]*)
3269 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3270 ;;
3271 *)
3272 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3273 for ac_dir in $PATH; do
3274 IFS="$ac_save_IFS"
3275 test -z "$ac_dir" && ac_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3278 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3279 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3280 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3281 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3282 break 2
3283 fi
3284 fi
3285 done
3286 done
3287 IFS="$ac_save_IFS"
3288 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3289 ;;
3290 esac
3291 fi
3292 MSGFMT="$ac_cv_path_MSGFMT"
3293 if test "$MSGFMT" != ":"; then
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3295 printf "%s\n" "$MSGFMT" >&6; }
3296 else
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 printf "%s\n" "no" >&6; }
3299 fi
3300
3301 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3302 set dummy gmsgfmt; ac_word=$2
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 printf %s "checking for $ac_word... " >&6; }
3305 if test ${ac_cv_path_GMSGFMT+y}
3306 then :
3307 printf %s "(cached) " >&6
3308 else $as_nop
3309 case $GMSGFMT in
3310 [\\/]* | ?:[\\/]*)
3311 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3312 ;;
3313 *)
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 case $as_dir in #(((
3319 '') as_dir=./ ;;
3320 */) ;;
3321 *) as_dir=$as_dir/ ;;
3322 esac
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3325 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3334 ;;
3335 esac
3336 fi
3337 GMSGFMT=$ac_cv_path_GMSGFMT
3338 if test -n "$GMSGFMT"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3340 printf "%s\n" "$GMSGFMT" >&6; }
3341 else
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 printf "%s\n" "no" >&6; }
3344 fi
3345
3346
3347
3348 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3349 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3350 *) GMSGFMT_015=$GMSGFMT ;;
3351 esac
3352
3353
3354
3355 # Prepare PATH_SEPARATOR.
3356 # The user is always right.
3357 if test "${PATH_SEPARATOR+set}" != set; then
3358 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3359 # contains only /bin. Note that ksh looks also at the FPATH variable,
3360 # so we have to set that as well for the test.
3361 PATH_SEPARATOR=:
3362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3363 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3364 || PATH_SEPARATOR=';'
3365 }
3366 fi
3367
3368 # Find out how to test for executable files. Don't use a zero-byte file,
3369 # as systems may use methods other than mode bits to determine executability.
3370 cat >conf$$.file <<_ASEOF
3371 #! /bin/sh
3372 exit 0
3373 _ASEOF
3374 chmod +x conf$$.file
3375 if test -x conf$$.file >/dev/null 2>&1; then
3376 ac_executable_p="test -x"
3377 else
3378 ac_executable_p="test -f"
3379 fi
3380 rm -f conf$$.file
3381
3382 # Extract the first word of "xgettext", so it can be a program name with args.
3383 set dummy xgettext; ac_word=$2
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 printf %s "checking for $ac_word... " >&6; }
3386 if test ${ac_cv_path_XGETTEXT+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 case "$XGETTEXT" in
3391 [\\/]* | ?:[\\/]*)
3392 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3393 ;;
3394 *)
3395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3396 for ac_dir in $PATH; do
3397 IFS="$ac_save_IFS"
3398 test -z "$ac_dir" && ac_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3401 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3402 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3403 (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
3404 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3405 break 2
3406 fi
3407 fi
3408 done
3409 done
3410 IFS="$ac_save_IFS"
3411 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3412 ;;
3413 esac
3414 fi
3415 XGETTEXT="$ac_cv_path_XGETTEXT"
3416 if test "$XGETTEXT" != ":"; then
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3418 printf "%s\n" "$XGETTEXT" >&6; }
3419 else
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 fi
3423
3424 rm -f messages.po
3425
3426 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3427 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3428 *) XGETTEXT_015=$XGETTEXT ;;
3429 esac
3430
3431
3432
3433 # Prepare PATH_SEPARATOR.
3434 # The user is always right.
3435 if test "${PATH_SEPARATOR+set}" != set; then
3436 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3437 # contains only /bin. Note that ksh looks also at the FPATH variable,
3438 # so we have to set that as well for the test.
3439 PATH_SEPARATOR=:
3440 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3441 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3442 || PATH_SEPARATOR=';'
3443 }
3444 fi
3445
3446 # Find out how to test for executable files. Don't use a zero-byte file,
3447 # as systems may use methods other than mode bits to determine executability.
3448 cat >conf$$.file <<_ASEOF
3449 #! /bin/sh
3450 exit 0
3451 _ASEOF
3452 chmod +x conf$$.file
3453 if test -x conf$$.file >/dev/null 2>&1; then
3454 ac_executable_p="test -x"
3455 else
3456 ac_executable_p="test -f"
3457 fi
3458 rm -f conf$$.file
3459
3460 # Extract the first word of "msgmerge", so it can be a program name with args.
3461 set dummy msgmerge; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_path_MSGMERGE+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 case "$MSGMERGE" in
3469 [\\/]* | ?:[\\/]*)
3470 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3471 ;;
3472 *)
3473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3474 for ac_dir in $PATH; do
3475 IFS="$ac_save_IFS"
3476 test -z "$ac_dir" && ac_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3479 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3480 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3481 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3482 break 2
3483 fi
3484 fi
3485 done
3486 done
3487 IFS="$ac_save_IFS"
3488 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3489 ;;
3490 esac
3491 fi
3492 MSGMERGE="$ac_cv_path_MSGMERGE"
3493 if test "$MSGMERGE" != ":"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3495 printf "%s\n" "$MSGMERGE" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501
3502 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
3503 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
3504 else
3505 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
3506 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
3507 else
3508 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
3509 fi
3510 fi
3511
3512
3513 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3514
3515
3516 ac_config_commands="$ac_config_commands po-directories"
3517
3518
3519
3520 if test "X$prefix" = "XNONE"; then
3521 acl_final_prefix="$ac_default_prefix"
3522 else
3523 acl_final_prefix="$prefix"
3524 fi
3525 if test "X$exec_prefix" = "XNONE"; then
3526 acl_final_exec_prefix='${prefix}'
3527 else
3528 acl_final_exec_prefix="$exec_prefix"
3529 fi
3530 acl_save_prefix="$prefix"
3531 prefix="$acl_final_prefix"
3532 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3533 prefix="$acl_save_prefix"
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544 DEPDIR="${am__leading_dot}deps"
3545
3546 ac_config_commands="$ac_config_commands depfiles"
3547
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3549 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3550 cat > confinc.mk << 'END'
3551 am__doit:
3552 @echo this is the am__doit target >confinc.out
3553 .PHONY: am__doit
3554 END
3555 am__include="#"
3556 am__quote=
3557 # BSD make does it like this.
3558 echo '.include "confinc.mk" # ignored' > confmf.BSD
3559 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3560 echo 'include confinc.mk # ignored' > confmf.GNU
3561 _am_result=no
3562 for s in GNU BSD; do
3563 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3564 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 case $?:`cat confinc.out 2>/dev/null` in #(
3569 '0:this is the am__doit target') :
3570 case $s in #(
3571 BSD) :
3572 am__include='.include' am__quote='"' ;; #(
3573 *) :
3574 am__include='include' am__quote='' ;;
3575 esac ;; #(
3576 *) :
3577 ;;
3578 esac
3579 if test "$am__include" != "#"; then
3580 _am_result="yes ($s style)"
3581 break
3582 fi
3583 done
3584 rm -f confinc.* confmf.*
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3586 printf "%s\n" "${_am_result}" >&6; }
3587
3588 # Check whether --enable-dependency-tracking was given.
3589 if test ${enable_dependency_tracking+y}
3590 then :
3591 enableval=$enable_dependency_tracking;
3592 fi
3593
3594 if test "x$enable_dependency_tracking" != xno; then
3595 am_depcomp="$ac_aux_dir/depcomp"
3596 AMDEPBACKSLASH='\'
3597 am__nodep='_no'
3598 fi
3599 if test "x$enable_dependency_tracking" != xno; then
3600 AMDEP_TRUE=
3601 AMDEP_FALSE='#'
3602 else
3603 AMDEP_TRUE='#'
3604 AMDEP_FALSE=
3605 fi
3606
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 printf %s "checking for $ac_word... " >&6; }
3618 if test ${ac_cv_prog_CC+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else $as_nop
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 case $as_dir in #(((
3630 '') as_dir=./ ;;
3631 */) ;;
3632 *) as_dir=$as_dir/ ;;
3633 esac
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 printf "%s\n" "$CC" >&6; }
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 fi
3654
3655
3656 fi
3657 if test -z "$ac_cv_prog_CC"; then
3658 ac_ct_CC=$CC
3659 # Extract the first word of "gcc", so it can be a program name with args.
3660 set dummy gcc; ac_word=$2
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 printf %s "checking for $ac_word... " >&6; }
3663 if test ${ac_cv_prog_ac_ct_CC+y}
3664 then :
3665 printf %s "(cached) " >&6
3666 else $as_nop
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 case $as_dir in #(((
3675 '') as_dir=./ ;;
3676 */) ;;
3677 *) as_dir=$as_dir/ ;;
3678 esac
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3694 printf "%s\n" "$ac_ct_CC" >&6; }
3695 else
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 printf "%s\n" "no" >&6; }
3698 fi
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709 CC=$ac_ct_CC
3710 fi
3711 else
3712 CC="$ac_cv_prog_CC"
3713 fi
3714
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}cc; ac_word=$2
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 printf %s "checking for $ac_word... " >&6; }
3721 if test ${ac_cv_prog_CC+y}
3722 then :
3723 printf %s "(cached) " >&6
3724 else $as_nop
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731 IFS=$as_save_IFS
3732 case $as_dir in #(((
3733 '') as_dir=./ ;;
3734 */) ;;
3735 *) as_dir=$as_dir/ ;;
3736 esac
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_CC="${ac_tool_prefix}cc"
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 printf "%s\n" "$CC" >&6; }
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 fi
3761 if test -z "$CC"; then
3762 # Extract the first word of "cc", so it can be a program name with args.
3763 set dummy cc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else $as_nop
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 ac_prog_rejected=no
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 case $as_dir in #(((
3779 '') as_dir=./ ;;
3780 */) ;;
3781 *) as_dir=$as_dir/ ;;
3782 esac
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3785 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3786 ac_prog_rejected=yes
3787 continue
3788 fi
3789 ac_cv_prog_CC="cc"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 if test $ac_prog_rejected = yes; then
3798 # We found a bogon in the path, so make sure we never use it.
3799 set dummy $ac_cv_prog_CC
3800 shift
3801 if test $# != 0; then
3802 # We chose a different compiler from the bogus one.
3803 # However, it has the same basename, so the bogon will be chosen
3804 # first if we set CC to just the basename; use the full file name.
3805 shift
3806 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3807 fi
3808 fi
3809 fi
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 printf "%s\n" "$CC" >&6; }
3815 else
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3818 fi
3819
3820
3821 fi
3822 if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in cl.exe
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 printf %s "checking for $ac_word... " >&6; }
3830 if test ${ac_cv_prog_CC+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 case $as_dir in #(((
3842 '') as_dir=./ ;;
3843 */) ;;
3844 *) as_dir=$as_dir/ ;;
3845 esac
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 printf "%s\n" "$CC" >&6; }
3862 else
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 fi
3866
3867
3868 test -n "$CC" && break
3869 done
3870 fi
3871 if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3874 do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_ac_ct_CC+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else $as_nop
3883 if test -n "$ac_ct_CC"; then
3884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 printf "%s\n" "$ac_ct_CC" >&6; }
3911 else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 fi
3915
3916
3917 test -n "$ac_ct_CC" && break
3918 done
3919
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 CC=$ac_ct_CC
3930 fi
3931 fi
3932
3933 fi
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}clang; ac_word=$2
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 printf %s "checking for $ac_word... " >&6; }
3940 if test ${ac_cv_prog_CC+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else $as_nop
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 case $as_dir in #(((
3952 '') as_dir=./ ;;
3953 */) ;;
3954 *) as_dir=$as_dir/ ;;
3955 esac
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_CC="${ac_tool_prefix}clang"
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi
3967 fi
3968 CC=$ac_cv_prog_CC
3969 if test -n "$CC"; then
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 printf "%s\n" "$CC" >&6; }
3972 else
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 printf "%s\n" "no" >&6; }
3975 fi
3976
3977
3978 fi
3979 if test -z "$ac_cv_prog_CC"; then
3980 ac_ct_CC=$CC
3981 # Extract the first word of "clang", so it can be a program name with args.
3982 set dummy clang; ac_word=$2
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 printf %s "checking for $ac_word... " >&6; }
3985 if test ${ac_cv_prog_ac_ct_CC+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else $as_nop
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 case $as_dir in #(((
3997 '') as_dir=./ ;;
3998 */) ;;
3999 *) as_dir=$as_dir/ ;;
4000 esac
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_CC="clang"
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4014 if test -n "$ac_ct_CC"; then
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4016 printf "%s\n" "$ac_ct_CC" >&6; }
4017 else
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 printf "%s\n" "no" >&6; }
4020 fi
4021
4022 if test "x$ac_ct_CC" = x; then
4023 CC=""
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 CC=$ac_ct_CC
4032 fi
4033 else
4034 CC="$ac_cv_prog_CC"
4035 fi
4036
4037 fi
4038
4039
4040 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error $? "no acceptable C compiler found in \$PATH
4043 See \`config.log' for more details" "$LINENO" 5; }
4044
4045 # Provide some information about the compiler.
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4047 set X $ac_compile
4048 ac_compiler=$2
4049 for ac_option in --version -v -V -qversion -version; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4058 ac_status=$?
4059 if test -s conftest.err; then
4060 sed '10a\
4061 ... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
4064 fi
4065 rm -f conftest.er1 conftest.err
4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4068 done
4069
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main (void)
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 ac_clean_files_save=$ac_clean_files
4082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4083 # Try to create an executable without -o first, disregard a.out.
4084 # It will help us diagnose broken compilers, and finding out an intuition
4085 # of exeext.
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4087 printf %s "checking whether the C compiler works... " >&6; }
4088 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4089
4090 # The possible output files:
4091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092
4093 ac_rmfiles=
4094 for ac_file in $ac_files
4095 do
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4099 esac
4100 done
4101 rm -f $ac_rmfiles
4102
4103 if { { ac_try="$ac_link_default"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 printf "%s\n" "$ac_try_echo"; } >&5
4110 (eval "$ac_link_default") 2>&5
4111 ac_status=$?
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 then :
4115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4118 # so that the user can short-circuit this test for compilers unknown to
4119 # Autoconf.
4120 for ac_file in $ac_files ''
4121 do
4122 test -f "$ac_file" || continue
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4125 ;;
4126 [ab].out )
4127 # We found the default executable, but exeext='' is most
4128 # certainly right.
4129 break;;
4130 *.* )
4131 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4132 then :; else
4133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4134 fi
4135 # We set ac_cv_exeext here because the later test for it is not
4136 # safe: cross compilers may not add the suffix if given an `-o'
4137 # argument, so we may need to know it at that point already.
4138 # Even if this section looks crufty: it has the advantage of
4139 # actually working.
4140 break;;
4141 * )
4142 break;;
4143 esac
4144 done
4145 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146
4147 else $as_nop
4148 ac_file=''
4149 fi
4150 if test -z "$ac_file"
4151 then :
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 printf "%s\n" "no" >&6; }
4154 printf "%s\n" "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error 77 "C compiler cannot create executables
4160 See \`config.log' for more details" "$LINENO" 5; }
4161 else $as_nop
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163 printf "%s\n" "yes" >&6; }
4164 fi
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4166 printf %s "checking for C compiler default output file name... " >&6; }
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4168 printf "%s\n" "$ac_file" >&6; }
4169 ac_exeext=$ac_cv_exeext
4170
4171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4172 ac_clean_files=$ac_clean_files_save
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4174 printf %s "checking for suffix of executables... " >&6; }
4175 if { { ac_try="$ac_link"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 printf "%s\n" "$ac_try_echo"; } >&5
4182 (eval "$ac_link") 2>&5
4183 ac_status=$?
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }
4186 then :
4187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4189 # work properly (i.e., refer to `conftest.exe'), while it won't with
4190 # `rm'.
4191 for ac_file in conftest.exe conftest conftest.*; do
4192 test -f "$ac_file" || continue
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4196 break;;
4197 * ) break;;
4198 esac
4199 done
4200 else $as_nop
4201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4204 See \`config.log' for more details" "$LINENO" 5; }
4205 fi
4206 rm -f conftest conftest$ac_cv_exeext
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4208 printf "%s\n" "$ac_cv_exeext" >&6; }
4209
4210 rm -f conftest.$ac_ext
4211 EXEEXT=$ac_cv_exeext
4212 ac_exeext=$EXEEXT
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdio.h>
4216 int
4217 main (void)
4218 {
4219 FILE *f = fopen ("conftest.out", "w");
4220 return ferror (f) || fclose (f) != 0;
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 ac_clean_files="$ac_clean_files conftest.out"
4227 # Check that the compiler produces executables we can run. If not, either
4228 # the compiler is broken, or we cross compile.
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4230 printf %s "checking whether we are cross compiling... " >&6; }
4231 if test "$cross_compiling" != yes; then
4232 { { ac_try="$ac_link"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 printf "%s\n" "$ac_try_echo"; } >&5
4239 (eval "$ac_link") 2>&5
4240 ac_status=$?
4241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }
4243 if { ac_try='./conftest$ac_cv_exeext'
4244 { { case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 printf "%s\n" "$ac_try_echo"; } >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }; }; then
4254 cross_compiling=no
4255 else
4256 if test "$cross_compiling" = maybe; then
4257 cross_compiling=yes
4258 else
4259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error 77 "cannot run C compiled programs.
4262 If you meant to cross compile, use \`--host'.
4263 See \`config.log' for more details" "$LINENO" 5; }
4264 fi
4265 fi
4266 fi
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4268 printf "%s\n" "$cross_compiling" >&6; }
4269
4270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4271 ac_clean_files=$ac_clean_files_save
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4273 printf %s "checking for suffix of object files... " >&6; }
4274 if test ${ac_cv_objext+y}
4275 then :
4276 printf %s "(cached) " >&6
4277 else $as_nop
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main (void)
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.o conftest.obj
4290 if { { ac_try="$ac_compile"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 printf "%s\n" "$ac_try_echo"; } >&5
4297 (eval "$ac_compile") 2>&5
4298 ac_status=$?
4299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; }
4301 then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4304 case $ac_file in
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309 done
4310 else $as_nop
4311 printf "%s\n" "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details" "$LINENO" 5; }
4318 fi
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 fi
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 printf "%s\n" "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4326 printf %s "checking whether the compiler supports GNU C... " >&6; }
4327 if test ${ac_cv_c_compiler_gnu+y}
4328 then :
4329 printf %s "(cached) " >&6
4330 else $as_nop
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333
4334 int
4335 main (void)
4336 {
4337 #ifndef __GNUC__
4338 choke me
4339 #endif
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"
4346 then :
4347 ac_compiler_gnu=yes
4348 else $as_nop
4349 ac_compiler_gnu=no
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353
4354 fi
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4356 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359 if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361 else
4362 GCC=
4363 fi
4364 ac_test_CFLAGS=${CFLAGS+y}
4365 ac_save_CFLAGS=$CFLAGS
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 printf %s "checking whether $CC accepts -g... " >&6; }
4368 if test ${ac_cv_prog_cc_g+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else $as_nop
4372 ac_save_c_werror_flag=$ac_c_werror_flag
4373 ac_c_werror_flag=yes
4374 ac_cv_prog_cc_g=no
4375 CFLAGS="-g"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378
4379 int
4380 main (void)
4381 {
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"
4388 then :
4389 ac_cv_prog_cc_g=yes
4390 else $as_nop
4391 CFLAGS=""
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394
4395 int
4396 main (void)
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"
4404 then :
4405
4406 else $as_nop
4407 ac_c_werror_flag=$ac_save_c_werror_flag
4408 CFLAGS="-g"
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 int
4413 main (void)
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"
4421 then :
4422 ac_cv_prog_cc_g=yes
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 ac_c_werror_flag=$ac_save_c_werror_flag
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4432 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4433 if test $ac_test_CFLAGS; then
4434 CFLAGS=$ac_save_CFLAGS
4435 elif test $ac_cv_prog_cc_g = yes; then
4436 if test "$GCC" = yes; then
4437 CFLAGS="-g -O2"
4438 else
4439 CFLAGS="-g"
4440 fi
4441 else
4442 if test "$GCC" = yes; then
4443 CFLAGS="-O2"
4444 else
4445 CFLAGS=
4446 fi
4447 fi
4448 ac_prog_cc_stdc=no
4449 if test x$ac_prog_cc_stdc = xno
4450 then :
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4452 printf %s "checking for $CC option to enable C11 features... " >&6; }
4453 if test ${ac_cv_prog_cc_c11+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else $as_nop
4457 ac_cv_prog_cc_c11=no
4458 ac_save_CC=$CC
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 $ac_c_conftest_c11_program
4462 _ACEOF
4463 for ac_arg in '' -std=gnu11
4464 do
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"
4467 then :
4468 ac_cv_prog_cc_c11=$ac_arg
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam
4471 test "x$ac_cv_prog_cc_c11" != "xno" && break
4472 done
4473 rm -f conftest.$ac_ext
4474 CC=$ac_save_CC
4475 fi
4476
4477 if test "x$ac_cv_prog_cc_c11" = xno
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480 printf "%s\n" "unsupported" >&6; }
4481 else $as_nop
4482 if test "x$ac_cv_prog_cc_c11" = x
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4485 printf "%s\n" "none needed" >&6; }
4486 else $as_nop
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4488 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4489 CC="$CC $ac_cv_prog_cc_c11"
4490 fi
4491 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4492 ac_prog_cc_stdc=c11
4493 fi
4494 fi
4495 if test x$ac_prog_cc_stdc = xno
4496 then :
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4498 printf %s "checking for $CC option to enable C99 features... " >&6; }
4499 if test ${ac_cv_prog_cc_c99+y}
4500 then :
4501 printf %s "(cached) " >&6
4502 else $as_nop
4503 ac_cv_prog_cc_c99=no
4504 ac_save_CC=$CC
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 $ac_c_conftest_c99_program
4508 _ACEOF
4509 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4510 do
4511 CC="$ac_save_CC $ac_arg"
4512 if ac_fn_c_try_compile "$LINENO"
4513 then :
4514 ac_cv_prog_cc_c99=$ac_arg
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam
4517 test "x$ac_cv_prog_cc_c99" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC
4521 fi
4522
4523 if test "x$ac_cv_prog_cc_c99" = xno
4524 then :
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 printf "%s\n" "unsupported" >&6; }
4527 else $as_nop
4528 if test "x$ac_cv_prog_cc_c99" = x
4529 then :
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4531 printf "%s\n" "none needed" >&6; }
4532 else $as_nop
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4534 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4535 CC="$CC $ac_cv_prog_cc_c99"
4536 fi
4537 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4538 ac_prog_cc_stdc=c99
4539 fi
4540 fi
4541 if test x$ac_prog_cc_stdc = xno
4542 then :
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4544 printf %s "checking for $CC option to enable C89 features... " >&6; }
4545 if test ${ac_cv_prog_cc_c89+y}
4546 then :
4547 printf %s "(cached) " >&6
4548 else $as_nop
4549 ac_cv_prog_cc_c89=no
4550 ac_save_CC=$CC
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 $ac_c_conftest_c89_program
4554 _ACEOF
4555 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4556 do
4557 CC="$ac_save_CC $ac_arg"
4558 if ac_fn_c_try_compile "$LINENO"
4559 then :
4560 ac_cv_prog_cc_c89=$ac_arg
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.beam
4563 test "x$ac_cv_prog_cc_c89" != "xno" && break
4564 done
4565 rm -f conftest.$ac_ext
4566 CC=$ac_save_CC
4567 fi
4568
4569 if test "x$ac_cv_prog_cc_c89" = xno
4570 then :
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4572 printf "%s\n" "unsupported" >&6; }
4573 else $as_nop
4574 if test "x$ac_cv_prog_cc_c89" = x
4575 then :
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4577 printf "%s\n" "none needed" >&6; }
4578 else $as_nop
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4580 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4581 CC="$CC $ac_cv_prog_cc_c89"
4582 fi
4583 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4584 ac_prog_cc_stdc=c89
4585 fi
4586 fi
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4601 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4602 if test ${am_cv_prog_cc_c_o+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else $as_nop
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main (void)
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 # Make sure it works both with $CC and with simple cc.
4618 # Following AC_PROG_CC_C_O, we do the test twice because some
4619 # compilers refuse to overwrite an existing .o file with -o,
4620 # though they will create one.
4621 am_cv_prog_cc_c_o=yes
4622 for am_i in 1 2; do
4623 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4624 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } \
4628 && test -f conftest2.$ac_objext; then
4629 : OK
4630 else
4631 am_cv_prog_cc_c_o=no
4632 break
4633 fi
4634 done
4635 rm -f core conftest*
4636 unset am_i
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4639 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4640 if test "$am_cv_prog_cc_c_o" != yes; then
4641 # Losing compiler, so override with the script.
4642 # FIXME: It is wrong to rewrite CC.
4643 # But if we don't then we get into trouble of one sort or another.
4644 # A longer-term fix would be to have automake use am__CC in this case,
4645 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4646 CC="$am_aux_dir/compile $CC"
4647 fi
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654
4655 depcc="$CC" am_compiler_list=
4656
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4658 printf %s "checking dependency style of $depcc... " >&6; }
4659 if test ${am_cv_CC_dependencies_compiler_type+y}
4660 then :
4661 printf %s "(cached) " >&6
4662 else $as_nop
4663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4664 # We make a subdir and do the tests there. Otherwise we can end up
4665 # making bogus files that we don't know about and never remove. For
4666 # instance it was reported that on HP-UX the gcc test will end up
4667 # making a dummy file named 'D' -- because '-MD' means "put the output
4668 # in D".
4669 rm -rf conftest.dir
4670 mkdir conftest.dir
4671 # Copy depcomp to subdir because otherwise we won't find it if we're
4672 # using a relative directory.
4673 cp "$am_depcomp" conftest.dir
4674 cd conftest.dir
4675 # We will build objects and dependencies in a subdirectory because
4676 # it helps to detect inapplicable dependency modes. For instance
4677 # both Tru64's cc and ICC support -MD to output dependencies as a
4678 # side effect of compilation, but ICC will put the dependencies in
4679 # the current directory while Tru64 will put them in the object
4680 # directory.
4681 mkdir sub
4682
4683 am_cv_CC_dependencies_compiler_type=none
4684 if test "$am_compiler_list" = ""; then
4685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4686 fi
4687 am__universal=false
4688 case " $depcc " in #(
4689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4690 esac
4691
4692 for depmode in $am_compiler_list; do
4693 # Setup a source with many dependencies, because some compilers
4694 # like to wrap large dependency lists on column 80 (with \), and
4695 # we should not choose a depcomp mode which is confused by this.
4696 #
4697 # We need to recreate these files for each test, as the compiler may
4698 # overwrite some of them when testing with obscure command lines.
4699 # This happens at least with the AIX C compiler.
4700 : > sub/conftest.c
4701 for i in 1 2 3 4 5 6; do
4702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4703 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4704 # Solaris 10 /bin/sh.
4705 echo '/* dummy */' > sub/conftst$i.h
4706 done
4707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4708
4709 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4710 # mode. It turns out that the SunPro C++ compiler does not properly
4711 # handle '-M -o', and we need to detect this. Also, some Intel
4712 # versions had trouble with output in subdirs.
4713 am__obj=sub/conftest.${OBJEXT-o}
4714 am__minus_obj="-o $am__obj"
4715 case $depmode in
4716 gcc)
4717 # This depmode causes a compiler race in universal mode.
4718 test "$am__universal" = false || continue
4719 ;;
4720 nosideeffect)
4721 # After this tag, mechanisms are not by side-effect, so they'll
4722 # only be used when explicitly requested.
4723 if test "x$enable_dependency_tracking" = xyes; then
4724 continue
4725 else
4726 break
4727 fi
4728 ;;
4729 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4730 # This compiler won't grok '-c -o', but also, the minuso test has
4731 # not run yet. These depmodes are late enough in the game, and
4732 # so weak that their functioning should not be impacted.
4733 am__obj=conftest.${OBJEXT-o}
4734 am__minus_obj=
4735 ;;
4736 none) break ;;
4737 esac
4738 if depmode=$depmode \
4739 source=sub/conftest.c object=$am__obj \
4740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4742 >/dev/null 2>conftest.err &&
4743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4747 # icc doesn't choke on unknown options, it will just issue warnings
4748 # or remarks (even with -Werror). So we grep stderr for any message
4749 # that says an option was ignored or not supported.
4750 # When given -MP, icc 7.0 and 7.1 complain thusly:
4751 # icc: Command line warning: ignoring option '-M'; no argument required
4752 # The diagnosis changed in icc 8.0:
4753 # icc: Command line remark: option '-MP' not supported
4754 if (grep 'ignoring option' conftest.err ||
4755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4756 am_cv_CC_dependencies_compiler_type=$depmode
4757 break
4758 fi
4759 fi
4760 done
4761
4762 cd ..
4763 rm -rf conftest.dir
4764 else
4765 am_cv_CC_dependencies_compiler_type=none
4766 fi
4767
4768 fi
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4770 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4771 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4772
4773 if
4774 test "x$enable_dependency_tracking" != xno \
4775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4776 am__fastdepCC_TRUE=
4777 am__fastdepCC_FALSE='#'
4778 else
4779 am__fastdepCC_TRUE='#'
4780 am__fastdepCC_FALSE=
4781 fi
4782
4783
4784
4785
4786 # Make sure we can run config.sub.
4787 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4788 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4789
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4791 printf %s "checking build system type... " >&6; }
4792 if test ${ac_cv_build+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else $as_nop
4796 ac_build_alias=$build_alias
4797 test "x$ac_build_alias" = x &&
4798 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4799 test "x$ac_build_alias" = x &&
4800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4801 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4802 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4803
4804 fi
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4806 printf "%s\n" "$ac_cv_build" >&6; }
4807 case $ac_cv_build in
4808 *-*-*) ;;
4809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4810 esac
4811 build=$ac_cv_build
4812 ac_save_IFS=$IFS; IFS='-'
4813 set x $ac_cv_build
4814 shift
4815 build_cpu=$1
4816 build_vendor=$2
4817 shift; shift
4818 # Remember, the first character of IFS is used to create $*,
4819 # except with old shells:
4820 build_os=$*
4821 IFS=$ac_save_IFS
4822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4823
4824
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4826 printf %s "checking host system type... " >&6; }
4827 if test ${ac_cv_host+y}
4828 then :
4829 printf %s "(cached) " >&6
4830 else $as_nop
4831 if test "x$host_alias" = x; then
4832 ac_cv_host=$ac_cv_build
4833 else
4834 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4835 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4836 fi
4837
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4840 printf "%s\n" "$ac_cv_host" >&6; }
4841 case $ac_cv_host in
4842 *-*-*) ;;
4843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4844 esac
4845 host=$ac_cv_host
4846 ac_save_IFS=$IFS; IFS='-'
4847 set x $ac_cv_host
4848 shift
4849 host_cpu=$1
4850 host_vendor=$2
4851 shift; shift
4852 # Remember, the first character of IFS is used to create $*,
4853 # except with old shells:
4854 host_os=$*
4855 IFS=$ac_save_IFS
4856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4857
4858
4859
4860
4861
4862 # Check whether --with-gnu-ld was given.
4863 if test ${with_gnu_ld+y}
4864 then :
4865 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4866 else $as_nop
4867 with_gnu_ld=no
4868 fi
4869
4870 # Prepare PATH_SEPARATOR.
4871 # The user is always right.
4872 if test "${PATH_SEPARATOR+set}" != set; then
4873 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4874 # contains only /bin. Note that ksh looks also at the FPATH variable,
4875 # so we have to set that as well for the test.
4876 PATH_SEPARATOR=:
4877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4878 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4879 || PATH_SEPARATOR=';'
4880 }
4881 fi
4882
4883 if test -n "$LD"; then
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
4885 printf %s "checking for ld... " >&6; }
4886 elif test "$GCC" = yes; then
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4888 printf %s "checking for ld used by $CC... " >&6; }
4889 elif test "$with_gnu_ld" = yes; then
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4891 printf %s "checking for GNU ld... " >&6; }
4892 else
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4894 printf %s "checking for non-GNU ld... " >&6; }
4895 fi
4896 if test -n "$LD"; then
4897 # Let the user override the test with a path.
4898 :
4899 else
4900 if test ${acl_cv_path_LD+y}
4901 then :
4902 printf %s "(cached) " >&6
4903 else $as_nop
4904
4905 acl_cv_path_LD= # Final result of this test
4906 ac_prog=ld # Program to search in $PATH
4907 if test "$GCC" = yes; then
4908 # Check if gcc -print-prog-name=ld gives a path.
4909 case $host in
4910 *-*-mingw*)
4911 # gcc leaves a trailing carriage return which upsets mingw
4912 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4913 *)
4914 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
4915 esac
4916 case $acl_output in
4917 # Accept absolute paths.
4918 [\\/]* | ?:[\\/]*)
4919 re_direlt='/[^/][^/]*/\.\./'
4920 # Canonicalize the pathname of ld
4921 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
4922 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
4923 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
4924 done
4925 # Got the pathname. No search in PATH is needed.
4926 acl_cv_path_LD="$acl_output"
4927 ac_prog=
4928 ;;
4929 "")
4930 # If it fails, then pretend we aren't using GCC.
4931 ;;
4932 *)
4933 # If it is relative, then search for the first ld in PATH.
4934 with_gnu_ld=unknown
4935 ;;
4936 esac
4937 fi
4938 if test -n "$ac_prog"; then
4939 # Search for $ac_prog in $PATH.
4940 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941 for ac_dir in $PATH; do
4942 IFS="$acl_save_ifs"
4943 test -z "$ac_dir" && ac_dir=.
4944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4945 acl_cv_path_LD="$ac_dir/$ac_prog"
4946 # Check to see if the program is GNU ld. I'd rather use --version,
4947 # but apparently some variants of GNU ld only accept -v.
4948 # Break only if it was the GNU/non-GNU ld that we prefer.
4949 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4950 *GNU* | *'with BFD'*)
4951 test "$with_gnu_ld" != no && break
4952 ;;
4953 *)
4954 test "$with_gnu_ld" != yes && break
4955 ;;
4956 esac
4957 fi
4958 done
4959 IFS="$acl_save_ifs"
4960 fi
4961 case $host in
4962 *-*-aix*)
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 #if defined __powerpc64__ || defined __LP64__
4966 int ok;
4967 #else
4968 error fail
4969 #endif
4970
4971 _ACEOF
4972 if ac_fn_c_try_compile "$LINENO"
4973 then :
4974 # The compiler produces 64-bit code. Add option '-b64' so that the
4975 # linker groks 64-bit object files.
4976 case "$acl_cv_path_LD " in
4977 *" -b64 "*) ;;
4978 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
4979 esac
4980
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4983 ;;
4984 sparc64-*-netbsd*)
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #if defined __sparcv9 || defined __arch64__
4988 int ok;
4989 #else
4990 error fail
4991 #endif
4992
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"
4995 then :
4996
4997 else $as_nop
4998 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
4999 # so that the linker groks 32-bit object files.
5000 case "$acl_cv_path_LD " in
5001 *" -m elf32_sparc "*) ;;
5002 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
5003 esac
5004
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 ;;
5008 esac
5009
5010 fi
5011
5012 LD="$acl_cv_path_LD"
5013 fi
5014 if test -n "$LD"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5016 printf "%s\n" "$LD" >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5020 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5021 fi
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5023 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5024 if test ${acl_cv_prog_gnu_ld+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else $as_nop
5028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5029 case `$LD -v 2>&1 </dev/null` in
5030 *GNU* | *'with BFD'*)
5031 acl_cv_prog_gnu_ld=yes
5032 ;;
5033 *)
5034 acl_cv_prog_gnu_ld=no
5035 ;;
5036 esac
5037 fi
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5039 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
5040 with_gnu_ld=$acl_cv_prog_gnu_ld
5041
5042
5043
5044
5045
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5047 printf %s "checking for shared library run path origin... " >&6; }
5048 if test ${acl_cv_rpath+y}
5049 then :
5050 printf %s "(cached) " >&6
5051 else $as_nop
5052
5053 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5054 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5055 . ./conftest.sh
5056 rm -f ./conftest.sh
5057 acl_cv_rpath=done
5058
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5061 printf "%s\n" "$acl_cv_rpath" >&6; }
5062 wl="$acl_cv_wl"
5063 acl_libext="$acl_cv_libext"
5064 acl_shlibext="$acl_cv_shlibext"
5065 acl_libname_spec="$acl_cv_libname_spec"
5066 acl_library_names_spec="$acl_cv_library_names_spec"
5067 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5068 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5069 acl_hardcode_direct="$acl_cv_hardcode_direct"
5070 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5071 # Check whether --enable-rpath was given.
5072 if test ${enable_rpath+y}
5073 then :
5074 enableval=$enable_rpath; :
5075 else $as_nop
5076 enable_rpath=yes
5077 fi
5078
5079
5080
5081
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
5083 printf %s "checking 32-bit host C ABI... " >&6; }
5084 if test ${gl_cv_host_cpu_c_abi_32bit+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else $as_nop
5088 if test -n "$gl_cv_host_cpu_c_abi"; then
5089 case "$gl_cv_host_cpu_c_abi" in
5090 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
5091 gl_cv_host_cpu_c_abi_32bit=yes ;;
5092 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
5093 gl_cv_host_cpu_c_abi_32bit=no ;;
5094 *)
5095 gl_cv_host_cpu_c_abi_32bit=unknown ;;
5096 esac
5097 else
5098 case "$host_cpu" in
5099
5100 # CPUs that only support a 32-bit ABI.
5101 arc \
5102 | bfin \
5103 | cris* \
5104 | csky \
5105 | epiphany \
5106 | ft32 \
5107 | h8300 \
5108 | m68k \
5109 | microblaze | microblazeel \
5110 | nds32 | nds32le | nds32be \
5111 | nios2 | nios2eb | nios2el \
5112 | or1k* \
5113 | or32 \
5114 | sh | sh1234 | sh1234elb \
5115 | tic6x \
5116 | xtensa* )
5117 gl_cv_host_cpu_c_abi_32bit=yes
5118 ;;
5119
5120 # CPUs that only support a 64-bit ABI.
5121 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
5122 | mmix )
5123 gl_cv_host_cpu_c_abi_32bit=no
5124 ;;
5125
5126 i[34567]86 )
5127 gl_cv_host_cpu_c_abi_32bit=yes
5128 ;;
5129
5130 x86_64 )
5131 # On x86_64 systems, the C compiler may be generating code in one of
5132 # these ABIs:
5133 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
5134 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
5135 # with native Windows (mingw, MSVC).
5136 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
5137 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #if (defined __x86_64__ || defined __amd64__ \
5141 || defined _M_X64 || defined _M_AMD64) \
5142 && !(defined __ILP32__ || defined _ILP32)
5143 int ok;
5144 #else
5145 error fail
5146 #endif
5147
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151 gl_cv_host_cpu_c_abi_32bit=no
5152 else $as_nop
5153 gl_cv_host_cpu_c_abi_32bit=yes
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5156 ;;
5157
5158 arm* | aarch64 )
5159 # Assume arm with EABI.
5160 # On arm64 systems, the C compiler may be generating code in one of
5161 # these ABIs:
5162 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
5163 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
5164 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
5168 int ok;
5169 #else
5170 error fail
5171 #endif
5172
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"
5175 then :
5176 gl_cv_host_cpu_c_abi_32bit=no
5177 else $as_nop
5178 gl_cv_host_cpu_c_abi_32bit=yes
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5181 ;;
5182
5183 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
5184 # On hppa, the C compiler may be generating 32-bit code or 64-bit
5185 # code. In the latter case, it defines _LP64 and __LP64__.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #ifdef __LP64__
5189 int ok;
5190 #else
5191 error fail
5192 #endif
5193
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"
5196 then :
5197 gl_cv_host_cpu_c_abi_32bit=no
5198 else $as_nop
5199 gl_cv_host_cpu_c_abi_32bit=yes
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5202 ;;
5203
5204 ia64* )
5205 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
5206 # 32-bit code. In the latter case, it defines _ILP32.
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #ifdef _ILP32
5210 int ok;
5211 #else
5212 error fail
5213 #endif
5214
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"
5217 then :
5218 gl_cv_host_cpu_c_abi_32bit=yes
5219 else $as_nop
5220 gl_cv_host_cpu_c_abi_32bit=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5223 ;;
5224
5225 mips* )
5226 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
5227 # at 32.
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
5231 int ok;
5232 #else
5233 error fail
5234 #endif
5235
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"
5238 then :
5239 gl_cv_host_cpu_c_abi_32bit=no
5240 else $as_nop
5241 gl_cv_host_cpu_c_abi_32bit=yes
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5244 ;;
5245
5246 powerpc* )
5247 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
5248 # No need to distinguish them here; the caller may distinguish
5249 # them based on the OS.
5250 # On powerpc64 systems, the C compiler may still be generating
5251 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
5252 # be generating 64-bit code.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #if defined __powerpc64__ || defined __LP64__
5256 int ok;
5257 #else
5258 error fail
5259 #endif
5260
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"
5263 then :
5264 gl_cv_host_cpu_c_abi_32bit=no
5265 else $as_nop
5266 gl_cv_host_cpu_c_abi_32bit=yes
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 ;;
5270
5271 rs6000 )
5272 gl_cv_host_cpu_c_abi_32bit=yes
5273 ;;
5274
5275 riscv32 | riscv64 )
5276 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
5277 # Size of 'long' and 'void *':
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #if defined __LP64__
5281 int ok;
5282 #else
5283 error fail
5284 #endif
5285
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"
5288 then :
5289 gl_cv_host_cpu_c_abi_32bit=no
5290 else $as_nop
5291 gl_cv_host_cpu_c_abi_32bit=yes
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5294 ;;
5295
5296 s390* )
5297 # On s390x, the C compiler may be generating 64-bit (= s390x) code
5298 # or 31-bit (= s390) code.
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 #if defined __LP64__ || defined __s390x__
5302 int ok;
5303 #else
5304 error fail
5305 #endif
5306
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"
5309 then :
5310 gl_cv_host_cpu_c_abi_32bit=no
5311 else $as_nop
5312 gl_cv_host_cpu_c_abi_32bit=yes
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5315 ;;
5316
5317 sparc | sparc64 )
5318 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
5319 # C compiler still generates 32-bit code.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #if defined __sparcv9 || defined __arch64__
5323 int ok;
5324 #else
5325 error fail
5326 #endif
5327
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"
5330 then :
5331 gl_cv_host_cpu_c_abi_32bit=no
5332 else $as_nop
5333 gl_cv_host_cpu_c_abi_32bit=yes
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 ;;
5337
5338 *)
5339 gl_cv_host_cpu_c_abi_32bit=unknown
5340 ;;
5341 esac
5342 fi
5343
5344 fi
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
5346 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
5347
5348 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
5349
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5356 printf %s "checking how to run the C preprocessor... " >&6; }
5357 # On Suns, sometimes $CPP names a directory.
5358 if test -n "$CPP" && test -d "$CPP"; then
5359 CPP=
5360 fi
5361 if test -z "$CPP"; then
5362 if test ${ac_cv_prog_CPP+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 # Double quotes because $CC needs to be expanded
5367 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5368 do
5369 ac_preproc_ok=false
5370 for ac_c_preproc_warn_flag in '' yes
5371 do
5372 # Use a header file that comes with gcc, so configuring glibc
5373 # with a fresh cross-compiler works.
5374 # On the NeXT, cc -E runs the code through the compiler's parser,
5375 # not just through cpp. "Syntax error" is here to catch this case.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <limits.h>
5379 Syntax error
5380 _ACEOF
5381 if ac_fn_c_try_cpp "$LINENO"
5382 then :
5383
5384 else $as_nop
5385 # Broken: fails on valid input.
5386 continue
5387 fi
5388 rm -f conftest.err conftest.i conftest.$ac_ext
5389
5390 # OK, works on sane cases. Now check whether nonexistent headers
5391 # can be detected and how.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #include <ac_nonexistent.h>
5395 _ACEOF
5396 if ac_fn_c_try_cpp "$LINENO"
5397 then :
5398 # Broken: success on invalid input.
5399 continue
5400 else $as_nop
5401 # Passes both tests.
5402 ac_preproc_ok=:
5403 break
5404 fi
5405 rm -f conftest.err conftest.i conftest.$ac_ext
5406
5407 done
5408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409 rm -f conftest.i conftest.err conftest.$ac_ext
5410 if $ac_preproc_ok
5411 then :
5412 break
5413 fi
5414
5415 done
5416 ac_cv_prog_CPP=$CPP
5417
5418 fi
5419 CPP=$ac_cv_prog_CPP
5420 else
5421 ac_cv_prog_CPP=$CPP
5422 fi
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424 printf "%s\n" "$CPP" >&6; }
5425 ac_preproc_ok=false
5426 for ac_c_preproc_warn_flag in '' yes
5427 do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #include <limits.h>
5435 Syntax error
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"
5438 then :
5439
5440 else $as_nop
5441 # Broken: fails on valid input.
5442 continue
5443 fi
5444 rm -f conftest.err conftest.i conftest.$ac_ext
5445
5446 # OK, works on sane cases. Now check whether nonexistent headers
5447 # can be detected and how.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <ac_nonexistent.h>
5451 _ACEOF
5452 if ac_fn_c_try_cpp "$LINENO"
5453 then :
5454 # Broken: success on invalid input.
5455 continue
5456 else $as_nop
5457 # Passes both tests.
5458 ac_preproc_ok=:
5459 break
5460 fi
5461 rm -f conftest.err conftest.i conftest.$ac_ext
5462
5463 done
5464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5465 rm -f conftest.i conftest.err conftest.$ac_ext
5466 if $ac_preproc_ok
5467 then :
5468
5469 else $as_nop
5470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5472 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details" "$LINENO" 5; }
5474 fi
5475
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484 printf %s "checking for grep that handles long lines and -e... " >&6; }
5485 if test ${ac_cv_path_GREP+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else $as_nop
5489 if test -z "$GREP"; then
5490 ac_path_GREP_found=false
5491 # Loop through the user's path and test for each of PROGNAME-LIST
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5494 do
5495 IFS=$as_save_IFS
5496 case $as_dir in #(((
5497 '') as_dir=./ ;;
5498 */) ;;
5499 *) as_dir=$as_dir/ ;;
5500 esac
5501 for ac_prog in grep ggrep
5502 do
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5505 as_fn_executable_p "$ac_path_GREP" || continue
5506 # Check for GNU ac_path_GREP and select it if it is found.
5507 # Check for GNU $ac_path_GREP
5508 case `"$ac_path_GREP" --version 2>&1` in
5509 *GNU*)
5510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5511 *)
5512 ac_count=0
5513 printf %s 0123456789 >"conftest.in"
5514 while :
5515 do
5516 cat "conftest.in" "conftest.in" >"conftest.tmp"
5517 mv "conftest.tmp" "conftest.in"
5518 cp "conftest.in" "conftest.nl"
5519 printf "%s\n" 'GREP' >> "conftest.nl"
5520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522 as_fn_arith $ac_count + 1 && ac_count=$as_val
5523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5524 # Best one so far, save it but keep looking for a better one
5525 ac_cv_path_GREP="$ac_path_GREP"
5526 ac_path_GREP_max=$ac_count
5527 fi
5528 # 10*(2^10) chars as input seems more than enough
5529 test $ac_count -gt 10 && break
5530 done
5531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532 esac
5533
5534 $ac_path_GREP_found && break 3
5535 done
5536 done
5537 done
5538 IFS=$as_save_IFS
5539 if test -z "$ac_cv_path_GREP"; then
5540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541 fi
5542 else
5543 ac_cv_path_GREP=$GREP
5544 fi
5545
5546 fi
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5548 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5549 GREP="$ac_cv_path_GREP"
5550
5551
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5553 printf %s "checking for egrep... " >&6; }
5554 if test ${ac_cv_path_EGREP+y}
5555 then :
5556 printf %s "(cached) " >&6
5557 else $as_nop
5558 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5559 then ac_cv_path_EGREP="$GREP -E"
5560 else
5561 if test -z "$EGREP"; then
5562 ac_path_EGREP_found=false
5563 # Loop through the user's path and test for each of PROGNAME-LIST
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5566 do
5567 IFS=$as_save_IFS
5568 case $as_dir in #(((
5569 '') as_dir=./ ;;
5570 */) ;;
5571 *) as_dir=$as_dir/ ;;
5572 esac
5573 for ac_prog in egrep
5574 do
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5577 as_fn_executable_p "$ac_path_EGREP" || continue
5578 # Check for GNU ac_path_EGREP and select it if it is found.
5579 # Check for GNU $ac_path_EGREP
5580 case `"$ac_path_EGREP" --version 2>&1` in
5581 *GNU*)
5582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5583 *)
5584 ac_count=0
5585 printf %s 0123456789 >"conftest.in"
5586 while :
5587 do
5588 cat "conftest.in" "conftest.in" >"conftest.tmp"
5589 mv "conftest.tmp" "conftest.in"
5590 cp "conftest.in" "conftest.nl"
5591 printf "%s\n" 'EGREP' >> "conftest.nl"
5592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5594 as_fn_arith $ac_count + 1 && ac_count=$as_val
5595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5596 # Best one so far, save it but keep looking for a better one
5597 ac_cv_path_EGREP="$ac_path_EGREP"
5598 ac_path_EGREP_max=$ac_count
5599 fi
5600 # 10*(2^10) chars as input seems more than enough
5601 test $ac_count -gt 10 && break
5602 done
5603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5604 esac
5605
5606 $ac_path_EGREP_found && break 3
5607 done
5608 done
5609 done
5610 IFS=$as_save_IFS
5611 if test -z "$ac_cv_path_EGREP"; then
5612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5613 fi
5614 else
5615 ac_cv_path_EGREP=$EGREP
5616 fi
5617
5618 fi
5619 fi
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5621 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5622 EGREP="$ac_cv_path_EGREP"
5623
5624
5625
5626
5627
5628
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
5630 printf %s "checking for ELF binary format... " >&6; }
5631 if test ${gl_cv_elf+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else $as_nop
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
5638 Extensible Linking Format
5639 #endif
5640
5641 _ACEOF
5642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5643 $EGREP "Extensible Linking Format" >/dev/null 2>&1
5644 then :
5645 gl_cv_elf=yes
5646 else $as_nop
5647 gl_cv_elf=no
5648 fi
5649 rm -rf conftest*
5650
5651
5652 fi
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
5654 printf "%s\n" "$gl_cv_elf" >&6; }
5655 if test $gl_cv_elf = yes; then
5656 # Extract the ELF class of a file (5th byte) in decimal.
5657 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
5658 if od -A x < /dev/null >/dev/null 2>/dev/null; then
5659 # Use POSIX od.
5660 func_elfclass ()
5661 {
5662 od -A n -t d1 -j 4 -N 1
5663 }
5664 else
5665 # Use BSD hexdump.
5666 func_elfclass ()
5667 {
5668 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
5669 echo
5670 }
5671 fi
5672 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
5673 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
5674 # not 1 or 2.
5675 case $HOST_CPU_C_ABI_32BIT in
5676 yes)
5677 # 32-bit ABI.
5678 acl_is_expected_elfclass ()
5679 {
5680 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
5681 }
5682 ;;
5683 no)
5684 # 64-bit ABI.
5685 acl_is_expected_elfclass ()
5686 {
5687 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
5688 }
5689 ;;
5690 *)
5691 # Unknown.
5692 acl_is_expected_elfclass ()
5693 {
5694 :
5695 }
5696 ;;
5697 esac
5698 else
5699 acl_is_expected_elfclass ()
5700 {
5701 :
5702 }
5703 fi
5704
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
5706 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
5707 if test ${acl_cv_libdirstems+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else $as_nop
5711 acl_libdirstem=lib
5712 acl_libdirstem2=
5713 acl_libdirstem3=
5714 case "$host_os" in
5715 solaris*)
5716 if test $HOST_CPU_C_ABI_32BIT = no; then
5717 acl_libdirstem2=lib/64
5718 case "$host_cpu" in
5719 sparc*) acl_libdirstem3=lib/sparcv9 ;;
5720 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
5721 esac
5722 fi
5723 ;;
5724 *)
5725 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
5726 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5727 if test $HOST_CPU_C_ABI_32BIT != no; then
5728 # 32-bit or unknown ABI.
5729 if test -d /usr/lib32; then
5730 acl_libdirstem2=lib32
5731 fi
5732 fi
5733 if test $HOST_CPU_C_ABI_32BIT != yes; then
5734 # 64-bit or unknown ABI.
5735 if test -d /usr/lib64; then
5736 acl_libdirstem3=lib64
5737 fi
5738 fi
5739 if test -n "$searchpath"; then
5740 acl_save_IFS="${IFS= }"; IFS=":"
5741 for searchdir in $searchpath; do
5742 if test -d "$searchdir"; then
5743 case "$searchdir" in
5744 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
5745 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
5746 */../ | */.. )
5747 # Better ignore directories of this form. They are misleading.
5748 ;;
5749 *) searchdir=`cd "$searchdir" && pwd`
5750 case "$searchdir" in
5751 */lib32 ) acl_libdirstem2=lib32 ;;
5752 */lib64 ) acl_libdirstem3=lib64 ;;
5753 esac ;;
5754 esac
5755 fi
5756 done
5757 IFS="$acl_save_IFS"
5758 if test $HOST_CPU_C_ABI_32BIT = yes; then
5759 # 32-bit ABI.
5760 acl_libdirstem3=
5761 fi
5762 if test $HOST_CPU_C_ABI_32BIT = no; then
5763 # 64-bit ABI.
5764 acl_libdirstem2=
5765 fi
5766 fi
5767 ;;
5768 esac
5769 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5770 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
5771 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
5772
5773 fi
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
5775 printf "%s\n" "$acl_cv_libdirstems" >&6; }
5776 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
5777 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
5778 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 use_additional=yes
5791
5792 acl_save_prefix="$prefix"
5793 prefix="$acl_final_prefix"
5794 acl_save_exec_prefix="$exec_prefix"
5795 exec_prefix="$acl_final_exec_prefix"
5796
5797 eval additional_includedir=\"$includedir\"
5798 eval additional_libdir=\"$libdir\"
5799 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
5800 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
5801
5802 exec_prefix="$acl_save_exec_prefix"
5803 prefix="$acl_save_prefix"
5804
5805
5806 # Check whether --with-libiconv-prefix was given.
5807 if test ${with_libiconv_prefix+y}
5808 then :
5809 withval=$with_libiconv_prefix;
5810 if test "X$withval" = "Xno"; then
5811 use_additional=no
5812 else
5813 if test "X$withval" = "X"; then
5814
5815 acl_save_prefix="$prefix"
5816 prefix="$acl_final_prefix"
5817 acl_save_exec_prefix="$exec_prefix"
5818 exec_prefix="$acl_final_exec_prefix"
5819
5820 eval additional_includedir=\"$includedir\"
5821 eval additional_libdir=\"$libdir\"
5822 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
5823 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
5824
5825 exec_prefix="$acl_save_exec_prefix"
5826 prefix="$acl_save_prefix"
5827
5828 else
5829 additional_includedir="$withval/include"
5830 additional_libdir="$withval/$acl_libdirstem"
5831 additional_libdir2="$withval/$acl_libdirstem2"
5832 additional_libdir3="$withval/$acl_libdirstem3"
5833 fi
5834 fi
5835
5836 fi
5837
5838 if test "X$additional_libdir2" = "X$additional_libdir"; then
5839 additional_libdir2=
5840 fi
5841 if test "X$additional_libdir3" = "X$additional_libdir"; then
5842 additional_libdir3=
5843 fi
5844 LIBICONV=
5845 LTLIBICONV=
5846 INCICONV=
5847 LIBICONV_PREFIX=
5848 HAVE_LIBICONV=
5849 rpathdirs=
5850 ltrpathdirs=
5851 names_already_handled=
5852 names_next_round='iconv '
5853 while test -n "$names_next_round"; do
5854 names_this_round="$names_next_round"
5855 names_next_round=
5856 for name in $names_this_round; do
5857 already_handled=
5858 for n in $names_already_handled; do
5859 if test "$n" = "$name"; then
5860 already_handled=yes
5861 break
5862 fi
5863 done
5864 if test -z "$already_handled"; then
5865 names_already_handled="$names_already_handled $name"
5866 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5867 eval value=\"\$HAVE_LIB$uppername\"
5868 if test -n "$value"; then
5869 if test "$value" = yes; then
5870 eval value=\"\$LIB$uppername\"
5871 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5872 eval value=\"\$LTLIB$uppername\"
5873 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5874 else
5875 :
5876 fi
5877 else
5878 found_dir=
5879 found_la=
5880 found_so=
5881 found_a=
5882 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5883 if test -n "$acl_shlibext"; then
5884 shrext=".$acl_shlibext" # typically: shrext=.so
5885 else
5886 shrext=
5887 fi
5888 if test $use_additional = yes; then
5889 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
5890 if test "X$found_dir" = "X"; then
5891 eval dir=\$$additional_libdir_variable
5892 if test -n "$dir"; then
5893 if test -n "$acl_shlibext"; then
5894 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
5895 found_dir="$dir"
5896 found_so="$dir/$libname$shrext"
5897 else
5898 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5899 ver=`(cd "$dir" && \
5900 for f in "$libname$shrext".*; do echo "$f"; done \
5901 | sed -e "s,^$libname$shrext\\\\.,," \
5902 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5903 | sed 1q ) 2>/dev/null`
5904 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
5905 found_dir="$dir"
5906 found_so="$dir/$libname$shrext.$ver"
5907 fi
5908 else
5909 eval library_names=\"$acl_library_names_spec\"
5910 for f in $library_names; do
5911 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
5912 found_dir="$dir"
5913 found_so="$dir/$f"
5914 break
5915 fi
5916 done
5917 fi
5918 fi
5919 fi
5920 if test "X$found_dir" = "X"; then
5921 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
5922 found_dir="$dir"
5923 found_a="$dir/$libname.$acl_libext"
5924 fi
5925 fi
5926 if test "X$found_dir" != "X"; then
5927 if test -f "$dir/$libname.la"; then
5928 found_la="$dir/$libname.la"
5929 fi
5930 fi
5931 fi
5932 fi
5933 done
5934 fi
5935 if test "X$found_dir" = "X"; then
5936 for x in $LDFLAGS $LTLIBICONV; do
5937
5938 acl_save_prefix="$prefix"
5939 prefix="$acl_final_prefix"
5940 acl_save_exec_prefix="$exec_prefix"
5941 exec_prefix="$acl_final_exec_prefix"
5942 eval x=\"$x\"
5943 exec_prefix="$acl_save_exec_prefix"
5944 prefix="$acl_save_prefix"
5945
5946 case "$x" in
5947 -L*)
5948 dir=`echo "X$x" | sed -e 's/^X-L//'`
5949 if test -n "$acl_shlibext"; then
5950 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
5951 found_dir="$dir"
5952 found_so="$dir/$libname$shrext"
5953 else
5954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5955 ver=`(cd "$dir" && \
5956 for f in "$libname$shrext".*; do echo "$f"; done \
5957 | sed -e "s,^$libname$shrext\\\\.,," \
5958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5959 | sed 1q ) 2>/dev/null`
5960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
5961 found_dir="$dir"
5962 found_so="$dir/$libname$shrext.$ver"
5963 fi
5964 else
5965 eval library_names=\"$acl_library_names_spec\"
5966 for f in $library_names; do
5967 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
5968 found_dir="$dir"
5969 found_so="$dir/$f"
5970 break
5971 fi
5972 done
5973 fi
5974 fi
5975 fi
5976 if test "X$found_dir" = "X"; then
5977 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
5978 found_dir="$dir"
5979 found_a="$dir/$libname.$acl_libext"
5980 fi
5981 fi
5982 if test "X$found_dir" != "X"; then
5983 if test -f "$dir/$libname.la"; then
5984 found_la="$dir/$libname.la"
5985 fi
5986 fi
5987 ;;
5988 esac
5989 if test "X$found_dir" != "X"; then
5990 break
5991 fi
5992 done
5993 fi
5994 if test "X$found_dir" != "X"; then
5995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5996 if test "X$found_so" != "X"; then
5997 if test "$enable_rpath" = no \
5998 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5999 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6000 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
6001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6002 else
6003 haveit=
6004 for x in $ltrpathdirs; do
6005 if test "X$x" = "X$found_dir"; then
6006 haveit=yes
6007 break
6008 fi
6009 done
6010 if test -z "$haveit"; then
6011 ltrpathdirs="$ltrpathdirs $found_dir"
6012 fi
6013 if test "$acl_hardcode_direct" = yes; then
6014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6015 else
6016 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6018 haveit=
6019 for x in $rpathdirs; do
6020 if test "X$x" = "X$found_dir"; then
6021 haveit=yes
6022 break
6023 fi
6024 done
6025 if test -z "$haveit"; then
6026 rpathdirs="$rpathdirs $found_dir"
6027 fi
6028 else
6029 haveit=
6030 for x in $LDFLAGS $LIBICONV; do
6031
6032 acl_save_prefix="$prefix"
6033 prefix="$acl_final_prefix"
6034 acl_save_exec_prefix="$exec_prefix"
6035 exec_prefix="$acl_final_exec_prefix"
6036 eval x=\"$x\"
6037 exec_prefix="$acl_save_exec_prefix"
6038 prefix="$acl_save_prefix"
6039
6040 if test "X$x" = "X-L$found_dir"; then
6041 haveit=yes
6042 break
6043 fi
6044 done
6045 if test -z "$haveit"; then
6046 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6047 fi
6048 if test "$acl_hardcode_minus_L" != no; then
6049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6050 else
6051 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6052 fi
6053 fi
6054 fi
6055 fi
6056 else
6057 if test "X$found_a" != "X"; then
6058 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6059 else
6060 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6061 fi
6062 fi
6063 additional_includedir=
6064 case "$found_dir" in
6065 */$acl_libdirstem | */$acl_libdirstem/)
6066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6067 if test "$name" = 'iconv'; then
6068 LIBICONV_PREFIX="$basedir"
6069 fi
6070 additional_includedir="$basedir/include"
6071 ;;
6072 */$acl_libdirstem2 | */$acl_libdirstem2/)
6073 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6074 if test "$name" = 'iconv'; then
6075 LIBICONV_PREFIX="$basedir"
6076 fi
6077 additional_includedir="$basedir/include"
6078 ;;
6079 */$acl_libdirstem3 | */$acl_libdirstem3/)
6080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
6081 if test "$name" = 'iconv'; then
6082 LIBICONV_PREFIX="$basedir"
6083 fi
6084 additional_includedir="$basedir/include"
6085 ;;
6086 esac
6087 if test "X$additional_includedir" != "X"; then
6088 if test "X$additional_includedir" != "X/usr/include"; then
6089 haveit=
6090 if test "X$additional_includedir" = "X/usr/local/include"; then
6091 if test -n "$GCC"; then
6092 case $host_os in
6093 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6094 esac
6095 fi
6096 fi
6097 if test -z "$haveit"; then
6098 for x in $CPPFLAGS $INCICONV; do
6099
6100 acl_save_prefix="$prefix"
6101 prefix="$acl_final_prefix"
6102 acl_save_exec_prefix="$exec_prefix"
6103 exec_prefix="$acl_final_exec_prefix"
6104 eval x=\"$x\"
6105 exec_prefix="$acl_save_exec_prefix"
6106 prefix="$acl_save_prefix"
6107
6108 if test "X$x" = "X-I$additional_includedir"; then
6109 haveit=yes
6110 break
6111 fi
6112 done
6113 if test -z "$haveit"; then
6114 if test -d "$additional_includedir"; then
6115 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6116 fi
6117 fi
6118 fi
6119 fi
6120 fi
6121 if test -n "$found_la"; then
6122 save_libdir="$libdir"
6123 case "$found_la" in
6124 */* | *\\*) . "$found_la" ;;
6125 *) . "./$found_la" ;;
6126 esac
6127 libdir="$save_libdir"
6128 for dep in $dependency_libs; do
6129 case "$dep" in
6130 -L*)
6131 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6132 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
6133 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
6134 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
6135 haveit=
6136 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
6137 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
6138 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
6139 if test -n "$GCC"; then
6140 case $host_os in
6141 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6142 esac
6143 fi
6144 fi
6145 if test -z "$haveit"; then
6146 haveit=
6147 for x in $LDFLAGS $LIBICONV; do
6148
6149 acl_save_prefix="$prefix"
6150 prefix="$acl_final_prefix"
6151 acl_save_exec_prefix="$exec_prefix"
6152 exec_prefix="$acl_final_exec_prefix"
6153 eval x=\"$x\"
6154 exec_prefix="$acl_save_exec_prefix"
6155 prefix="$acl_save_prefix"
6156
6157 if test "X$x" = "X-L$dependency_libdir"; then
6158 haveit=yes
6159 break
6160 fi
6161 done
6162 if test -z "$haveit"; then
6163 if test -d "$dependency_libdir"; then
6164 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
6165 fi
6166 fi
6167 haveit=
6168 for x in $LDFLAGS $LTLIBICONV; do
6169
6170 acl_save_prefix="$prefix"
6171 prefix="$acl_final_prefix"
6172 acl_save_exec_prefix="$exec_prefix"
6173 exec_prefix="$acl_final_exec_prefix"
6174 eval x=\"$x\"
6175 exec_prefix="$acl_save_exec_prefix"
6176 prefix="$acl_save_prefix"
6177
6178 if test "X$x" = "X-L$dependency_libdir"; then
6179 haveit=yes
6180 break
6181 fi
6182 done
6183 if test -z "$haveit"; then
6184 if test -d "$dependency_libdir"; then
6185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
6186 fi
6187 fi
6188 fi
6189 fi
6190 ;;
6191 -R*)
6192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6193 if test "$enable_rpath" != no; then
6194 haveit=
6195 for x in $rpathdirs; do
6196 if test "X$x" = "X$dir"; then
6197 haveit=yes
6198 break
6199 fi
6200 done
6201 if test -z "$haveit"; then
6202 rpathdirs="$rpathdirs $dir"
6203 fi
6204 haveit=
6205 for x in $ltrpathdirs; do
6206 if test "X$x" = "X$dir"; then
6207 haveit=yes
6208 break
6209 fi
6210 done
6211 if test -z "$haveit"; then
6212 ltrpathdirs="$ltrpathdirs $dir"
6213 fi
6214 fi
6215 ;;
6216 -l*)
6217 dep=`echo "X$dep" | sed -e 's/^X-l//'`
6218 if test "X$dep" != Xc \
6219 || case $host_os in
6220 linux* | gnu* | k*bsd*-gnu) false ;;
6221 *) true ;;
6222 esac; then
6223 names_next_round="$names_next_round $dep"
6224 fi
6225 ;;
6226 *.la)
6227 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6228 ;;
6229 *)
6230 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6232 ;;
6233 esac
6234 done
6235 fi
6236 else
6237 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6239 fi
6240 fi
6241 fi
6242 done
6243 done
6244 if test "X$rpathdirs" != "X"; then
6245 if test -n "$acl_hardcode_libdir_separator"; then
6246 alldirs=
6247 for found_dir in $rpathdirs; do
6248 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6249 done
6250 acl_save_libdir="$libdir"
6251 libdir="$alldirs"
6252 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6253 libdir="$acl_save_libdir"
6254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6255 else
6256 for found_dir in $rpathdirs; do
6257 acl_save_libdir="$libdir"
6258 libdir="$found_dir"
6259 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6260 libdir="$acl_save_libdir"
6261 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6262 done
6263 fi
6264 fi
6265 if test "X$ltrpathdirs" != "X"; then
6266 for found_dir in $ltrpathdirs; do
6267 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6268 done
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6299 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
6300 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
6301 then :
6302 printf %s "(cached) " >&6
6303 else $as_nop
6304 gt_save_LIBS="$LIBS"
6305 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <CoreFoundation/CFPreferences.h>
6309 int
6310 main (void)
6311 {
6312 CFPreferencesCopyAppValue(NULL, NULL)
6313 ;
6314 return 0;
6315 }
6316 _ACEOF
6317 if ac_fn_c_try_link "$LINENO"
6318 then :
6319 gt_cv_func_CFPreferencesCopyAppValue=yes
6320 else $as_nop
6321 gt_cv_func_CFPreferencesCopyAppValue=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6324 conftest$ac_exeext conftest.$ac_ext
6325 LIBS="$gt_save_LIBS"
6326 fi
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6328 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6329 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6330
6331 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6332
6333 fi
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6335 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6336 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
6337 then :
6338 printf %s "(cached) " >&6
6339 else $as_nop
6340 gt_save_LIBS="$LIBS"
6341 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <CoreFoundation/CFLocale.h>
6345 int
6346 main (void)
6347 {
6348 CFLocaleCopyPreferredLanguages();
6349 ;
6350 return 0;
6351 }
6352 _ACEOF
6353 if ac_fn_c_try_link "$LINENO"
6354 then :
6355 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6356 else $as_nop
6357 gt_cv_func_CFLocaleCopyPreferredLanguages=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6360 conftest$ac_exeext conftest.$ac_ext
6361 LIBS="$gt_save_LIBS"
6362 fi
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6364 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6365 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6366
6367 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6368
6369 fi
6370 INTL_MACOSX_LIBS=
6371 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6372 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6373 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6374 fi
6375
6376
6377
6378
6379
6380
6381 LIBINTL=
6382 LTLIBINTL=
6383 POSUB=
6384
6385 case " $gt_needs " in
6386 *" need-formatstring-macros "*) gt_api_version=3 ;;
6387 *" need-ngettext "*) gt_api_version=2 ;;
6388 *) gt_api_version=1 ;;
6389 esac
6390 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6391 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6392
6393 if test "$USE_NLS" = "yes"; then
6394 gt_use_preinstalled_gnugettext=no
6395
6396
6397 if test $gt_api_version -ge 3; then
6398 gt_revision_test_code='
6399 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6400 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6401 #endif
6402 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6403 '
6404 else
6405 gt_revision_test_code=
6406 fi
6407 if test $gt_api_version -ge 2; then
6408 gt_expression_test_code=' + * ngettext ("", "", 0)'
6409 else
6410 gt_expression_test_code=
6411 fi
6412
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6414 printf %s "checking for GNU gettext in libc... " >&6; }
6415 if eval test \${$gt_func_gnugettext_libc+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421
6422 #include <libintl.h>
6423 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6424 extern int _nl_msg_cat_cntr;
6425 extern int *_nl_domain_bindings;
6426 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6427 #else
6428 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6429 #endif
6430 $gt_revision_test_code
6431
6432 int
6433 main (void)
6434 {
6435
6436 bindtextdomain ("", "");
6437 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 if ac_fn_c_try_link "$LINENO"
6444 then :
6445 eval "$gt_func_gnugettext_libc=yes"
6446 else $as_nop
6447 eval "$gt_func_gnugettext_libc=no"
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6450 conftest$ac_exeext conftest.$ac_ext
6451 fi
6452 eval ac_res=\$$gt_func_gnugettext_libc
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 printf "%s\n" "$ac_res" >&6; }
6455
6456 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6457
6458
6459
6460
6461
6462 am_save_CPPFLAGS="$CPPFLAGS"
6463
6464 for element in $INCICONV; do
6465 haveit=
6466 for x in $CPPFLAGS; do
6467
6468 acl_save_prefix="$prefix"
6469 prefix="$acl_final_prefix"
6470 acl_save_exec_prefix="$exec_prefix"
6471 exec_prefix="$acl_final_exec_prefix"
6472 eval x=\"$x\"
6473 exec_prefix="$acl_save_exec_prefix"
6474 prefix="$acl_save_prefix"
6475
6476 if test "X$x" = "X$element"; then
6477 haveit=yes
6478 break
6479 fi
6480 done
6481 if test -z "$haveit"; then
6482 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6483 fi
6484 done
6485
6486
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6488 printf %s "checking for iconv... " >&6; }
6489 if test ${am_cv_func_iconv+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else $as_nop
6493
6494 am_cv_func_iconv="no, consider installing GNU libiconv"
6495 am_cv_lib_iconv=no
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498
6499 #include <stdlib.h>
6500 #include <iconv.h>
6501
6502 int
6503 main (void)
6504 {
6505 iconv_t cd = iconv_open("","");
6506 iconv(cd,NULL,NULL,NULL,NULL);
6507 iconv_close(cd);
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_link "$LINENO"
6513 then :
6514 am_cv_func_iconv=yes
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6517 conftest$ac_exeext conftest.$ac_ext
6518 if test "$am_cv_func_iconv" != yes; then
6519 am_save_LIBS="$LIBS"
6520 LIBS="$LIBS $LIBICONV"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523
6524 #include <stdlib.h>
6525 #include <iconv.h>
6526
6527 int
6528 main (void)
6529 {
6530 iconv_t cd = iconv_open("","");
6531 iconv(cd,NULL,NULL,NULL,NULL);
6532 iconv_close(cd);
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_link "$LINENO"
6538 then :
6539 am_cv_lib_iconv=yes
6540 am_cv_func_iconv=yes
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6543 conftest$ac_exeext conftest.$ac_ext
6544 LIBS="$am_save_LIBS"
6545 fi
6546
6547 fi
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6549 printf "%s\n" "$am_cv_func_iconv" >&6; }
6550 if test "$am_cv_func_iconv" = yes; then
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6552 printf %s "checking for working iconv... " >&6; }
6553 if test ${am_cv_func_iconv_works+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else $as_nop
6557
6558 am_save_LIBS="$LIBS"
6559 if test $am_cv_lib_iconv = yes; then
6560 LIBS="$LIBS $LIBICONV"
6561 fi
6562 am_cv_func_iconv_works=no
6563 for ac_iconv_const in '' 'const'; do
6564 if test "$cross_compiling" = yes
6565 then :
6566 case "$host_os" in
6567 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6568 *) am_cv_func_iconv_works="guessing yes" ;;
6569 esac
6570 else $as_nop
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573
6574 #include <iconv.h>
6575 #include <string.h>
6576
6577 #ifndef ICONV_CONST
6578 # define ICONV_CONST $ac_iconv_const
6579 #endif
6580
6581 int
6582 main (void)
6583 {
6584 int result = 0;
6585 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
6586 successful returns. This is even documented in
6587 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
6588 {
6589 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6590 if (cd_utf8_to_88591 != (iconv_t)(-1))
6591 {
6592 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6593 char buf[10];
6594 ICONV_CONST char *inptr = input;
6595 size_t inbytesleft = strlen (input);
6596 char *outptr = buf;
6597 size_t outbytesleft = sizeof (buf);
6598 size_t res = iconv (cd_utf8_to_88591,
6599 &inptr, &inbytesleft,
6600 &outptr, &outbytesleft);
6601 if (res == 0)
6602 result |= 1;
6603 iconv_close (cd_utf8_to_88591);
6604 }
6605 }
6606 /* Test against Solaris 10 bug: Failures are not distinguishable from
6607 successful returns. */
6608 {
6609 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6610 if (cd_ascii_to_88591 != (iconv_t)(-1))
6611 {
6612 static ICONV_CONST char input[] = "\263";
6613 char buf[10];
6614 ICONV_CONST char *inptr = input;
6615 size_t inbytesleft = strlen (input);
6616 char *outptr = buf;
6617 size_t outbytesleft = sizeof (buf);
6618 size_t res = iconv (cd_ascii_to_88591,
6619 &inptr, &inbytesleft,
6620 &outptr, &outbytesleft);
6621 if (res == 0)
6622 result |= 2;
6623 iconv_close (cd_ascii_to_88591);
6624 }
6625 }
6626 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6627 {
6628 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6629 if (cd_88591_to_utf8 != (iconv_t)(-1))
6630 {
6631 static ICONV_CONST char input[] = "\304";
6632 static char buf[2] = { (char)0xDE, (char)0xAD };
6633 ICONV_CONST char *inptr = input;
6634 size_t inbytesleft = 1;
6635 char *outptr = buf;
6636 size_t outbytesleft = 1;
6637 size_t res = iconv (cd_88591_to_utf8,
6638 &inptr, &inbytesleft,
6639 &outptr, &outbytesleft);
6640 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6641 result |= 4;
6642 iconv_close (cd_88591_to_utf8);
6643 }
6644 }
6645 #if 0 /* This bug could be worked around by the caller. */
6646 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6647 {
6648 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6649 if (cd_88591_to_utf8 != (iconv_t)(-1))
6650 {
6651 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6652 char buf[50];
6653 ICONV_CONST char *inptr = input;
6654 size_t inbytesleft = strlen (input);
6655 char *outptr = buf;
6656 size_t outbytesleft = sizeof (buf);
6657 size_t res = iconv (cd_88591_to_utf8,
6658 &inptr, &inbytesleft,
6659 &outptr, &outbytesleft);
6660 if ((int)res > 0)
6661 result |= 8;
6662 iconv_close (cd_88591_to_utf8);
6663 }
6664 }
6665 #endif
6666 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6667 provided. */
6668 {
6669 /* Try standardized names. */
6670 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
6671 /* Try IRIX, OSF/1 names. */
6672 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
6673 /* Try AIX names. */
6674 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
6675 /* Try HP-UX names. */
6676 iconv_t cd4 = iconv_open ("utf8", "eucJP");
6677 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
6678 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
6679 result |= 16;
6680 if (cd1 != (iconv_t)(-1))
6681 iconv_close (cd1);
6682 if (cd2 != (iconv_t)(-1))
6683 iconv_close (cd2);
6684 if (cd3 != (iconv_t)(-1))
6685 iconv_close (cd3);
6686 if (cd4 != (iconv_t)(-1))
6687 iconv_close (cd4);
6688 }
6689 return result;
6690
6691 ;
6692 return 0;
6693 }
6694 _ACEOF
6695 if ac_fn_c_try_run "$LINENO"
6696 then :
6697 am_cv_func_iconv_works=yes
6698 fi
6699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6700 conftest.$ac_objext conftest.beam conftest.$ac_ext
6701 fi
6702
6703 test "$am_cv_func_iconv_works" = no || break
6704 done
6705 LIBS="$am_save_LIBS"
6706
6707 fi
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6709 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
6710 case "$am_cv_func_iconv_works" in
6711 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6712 *) am_func_iconv=yes ;;
6713 esac
6714 else
6715 am_func_iconv=no am_cv_lib_iconv=no
6716 fi
6717 if test "$am_func_iconv" = yes; then
6718
6719 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
6720
6721 fi
6722 if test "$am_cv_lib_iconv" = yes; then
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6724 printf %s "checking how to link with libiconv... " >&6; }
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6726 printf "%s\n" "$LIBICONV" >&6; }
6727 else
6728 CPPFLAGS="$am_save_CPPFLAGS"
6729 LIBICONV=
6730 LTLIBICONV=
6731 fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 use_additional=yes
6743
6744 acl_save_prefix="$prefix"
6745 prefix="$acl_final_prefix"
6746 acl_save_exec_prefix="$exec_prefix"
6747 exec_prefix="$acl_final_exec_prefix"
6748
6749 eval additional_includedir=\"$includedir\"
6750 eval additional_libdir=\"$libdir\"
6751 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6752 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6753
6754 exec_prefix="$acl_save_exec_prefix"
6755 prefix="$acl_save_prefix"
6756
6757
6758 # Check whether --with-libintl-prefix was given.
6759 if test ${with_libintl_prefix+y}
6760 then :
6761 withval=$with_libintl_prefix;
6762 if test "X$withval" = "Xno"; then
6763 use_additional=no
6764 else
6765 if test "X$withval" = "X"; then
6766
6767 acl_save_prefix="$prefix"
6768 prefix="$acl_final_prefix"
6769 acl_save_exec_prefix="$exec_prefix"
6770 exec_prefix="$acl_final_exec_prefix"
6771
6772 eval additional_includedir=\"$includedir\"
6773 eval additional_libdir=\"$libdir\"
6774 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6775 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6776
6777 exec_prefix="$acl_save_exec_prefix"
6778 prefix="$acl_save_prefix"
6779
6780 else
6781 additional_includedir="$withval/include"
6782 additional_libdir="$withval/$acl_libdirstem"
6783 additional_libdir2="$withval/$acl_libdirstem2"
6784 additional_libdir3="$withval/$acl_libdirstem3"
6785 fi
6786 fi
6787
6788 fi
6789
6790 if test "X$additional_libdir2" = "X$additional_libdir"; then
6791 additional_libdir2=
6792 fi
6793 if test "X$additional_libdir3" = "X$additional_libdir"; then
6794 additional_libdir3=
6795 fi
6796 LIBINTL=
6797 LTLIBINTL=
6798 INCINTL=
6799 LIBINTL_PREFIX=
6800 HAVE_LIBINTL=
6801 rpathdirs=
6802 ltrpathdirs=
6803 names_already_handled=
6804 names_next_round='intl '
6805 while test -n "$names_next_round"; do
6806 names_this_round="$names_next_round"
6807 names_next_round=
6808 for name in $names_this_round; do
6809 already_handled=
6810 for n in $names_already_handled; do
6811 if test "$n" = "$name"; then
6812 already_handled=yes
6813 break
6814 fi
6815 done
6816 if test -z "$already_handled"; then
6817 names_already_handled="$names_already_handled $name"
6818 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6819 eval value=\"\$HAVE_LIB$uppername\"
6820 if test -n "$value"; then
6821 if test "$value" = yes; then
6822 eval value=\"\$LIB$uppername\"
6823 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6824 eval value=\"\$LTLIB$uppername\"
6825 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6826 else
6827 :
6828 fi
6829 else
6830 found_dir=
6831 found_la=
6832 found_so=
6833 found_a=
6834 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6835 if test -n "$acl_shlibext"; then
6836 shrext=".$acl_shlibext" # typically: shrext=.so
6837 else
6838 shrext=
6839 fi
6840 if test $use_additional = yes; then
6841 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
6842 if test "X$found_dir" = "X"; then
6843 eval dir=\$$additional_libdir_variable
6844 if test -n "$dir"; then
6845 if test -n "$acl_shlibext"; then
6846 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6847 found_dir="$dir"
6848 found_so="$dir/$libname$shrext"
6849 else
6850 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6851 ver=`(cd "$dir" && \
6852 for f in "$libname$shrext".*; do echo "$f"; done \
6853 | sed -e "s,^$libname$shrext\\\\.,," \
6854 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6855 | sed 1q ) 2>/dev/null`
6856 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6857 found_dir="$dir"
6858 found_so="$dir/$libname$shrext.$ver"
6859 fi
6860 else
6861 eval library_names=\"$acl_library_names_spec\"
6862 for f in $library_names; do
6863 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6864 found_dir="$dir"
6865 found_so="$dir/$f"
6866 break
6867 fi
6868 done
6869 fi
6870 fi
6871 fi
6872 if test "X$found_dir" = "X"; then
6873 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6874 found_dir="$dir"
6875 found_a="$dir/$libname.$acl_libext"
6876 fi
6877 fi
6878 if test "X$found_dir" != "X"; then
6879 if test -f "$dir/$libname.la"; then
6880 found_la="$dir/$libname.la"
6881 fi
6882 fi
6883 fi
6884 fi
6885 done
6886 fi
6887 if test "X$found_dir" = "X"; then
6888 for x in $LDFLAGS $LTLIBINTL; do
6889
6890 acl_save_prefix="$prefix"
6891 prefix="$acl_final_prefix"
6892 acl_save_exec_prefix="$exec_prefix"
6893 exec_prefix="$acl_final_exec_prefix"
6894 eval x=\"$x\"
6895 exec_prefix="$acl_save_exec_prefix"
6896 prefix="$acl_save_prefix"
6897
6898 case "$x" in
6899 -L*)
6900 dir=`echo "X$x" | sed -e 's/^X-L//'`
6901 if test -n "$acl_shlibext"; then
6902 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6903 found_dir="$dir"
6904 found_so="$dir/$libname$shrext"
6905 else
6906 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6907 ver=`(cd "$dir" && \
6908 for f in "$libname$shrext".*; do echo "$f"; done \
6909 | sed -e "s,^$libname$shrext\\\\.,," \
6910 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6911 | sed 1q ) 2>/dev/null`
6912 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6913 found_dir="$dir"
6914 found_so="$dir/$libname$shrext.$ver"
6915 fi
6916 else
6917 eval library_names=\"$acl_library_names_spec\"
6918 for f in $library_names; do
6919 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6920 found_dir="$dir"
6921 found_so="$dir/$f"
6922 break
6923 fi
6924 done
6925 fi
6926 fi
6927 fi
6928 if test "X$found_dir" = "X"; then
6929 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6930 found_dir="$dir"
6931 found_a="$dir/$libname.$acl_libext"
6932 fi
6933 fi
6934 if test "X$found_dir" != "X"; then
6935 if test -f "$dir/$libname.la"; then
6936 found_la="$dir/$libname.la"
6937 fi
6938 fi
6939 ;;
6940 esac
6941 if test "X$found_dir" != "X"; then
6942 break
6943 fi
6944 done
6945 fi
6946 if test "X$found_dir" != "X"; then
6947 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6948 if test "X$found_so" != "X"; then
6949 if test "$enable_rpath" = no \
6950 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6951 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6952 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
6953 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6954 else
6955 haveit=
6956 for x in $ltrpathdirs; do
6957 if test "X$x" = "X$found_dir"; then
6958 haveit=yes
6959 break
6960 fi
6961 done
6962 if test -z "$haveit"; then
6963 ltrpathdirs="$ltrpathdirs $found_dir"
6964 fi
6965 if test "$acl_hardcode_direct" = yes; then
6966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6967 else
6968 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6969 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6970 haveit=
6971 for x in $rpathdirs; do
6972 if test "X$x" = "X$found_dir"; then
6973 haveit=yes
6974 break
6975 fi
6976 done
6977 if test -z "$haveit"; then
6978 rpathdirs="$rpathdirs $found_dir"
6979 fi
6980 else
6981 haveit=
6982 for x in $LDFLAGS $LIBINTL; do
6983
6984 acl_save_prefix="$prefix"
6985 prefix="$acl_final_prefix"
6986 acl_save_exec_prefix="$exec_prefix"
6987 exec_prefix="$acl_final_exec_prefix"
6988 eval x=\"$x\"
6989 exec_prefix="$acl_save_exec_prefix"
6990 prefix="$acl_save_prefix"
6991
6992 if test "X$x" = "X-L$found_dir"; then
6993 haveit=yes
6994 break
6995 fi
6996 done
6997 if test -z "$haveit"; then
6998 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6999 fi
7000 if test "$acl_hardcode_minus_L" != no; then
7001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7002 else
7003 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7004 fi
7005 fi
7006 fi
7007 fi
7008 else
7009 if test "X$found_a" != "X"; then
7010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7011 else
7012 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7013 fi
7014 fi
7015 additional_includedir=
7016 case "$found_dir" in
7017 */$acl_libdirstem | */$acl_libdirstem/)
7018 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7019 if test "$name" = 'intl'; then
7020 LIBINTL_PREFIX="$basedir"
7021 fi
7022 additional_includedir="$basedir/include"
7023 ;;
7024 */$acl_libdirstem2 | */$acl_libdirstem2/)
7025 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7026 if test "$name" = 'intl'; then
7027 LIBINTL_PREFIX="$basedir"
7028 fi
7029 additional_includedir="$basedir/include"
7030 ;;
7031 */$acl_libdirstem3 | */$acl_libdirstem3/)
7032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7033 if test "$name" = 'intl'; then
7034 LIBINTL_PREFIX="$basedir"
7035 fi
7036 additional_includedir="$basedir/include"
7037 ;;
7038 esac
7039 if test "X$additional_includedir" != "X"; then
7040 if test "X$additional_includedir" != "X/usr/include"; then
7041 haveit=
7042 if test "X$additional_includedir" = "X/usr/local/include"; then
7043 if test -n "$GCC"; then
7044 case $host_os in
7045 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7046 esac
7047 fi
7048 fi
7049 if test -z "$haveit"; then
7050 for x in $CPPFLAGS $INCINTL; do
7051
7052 acl_save_prefix="$prefix"
7053 prefix="$acl_final_prefix"
7054 acl_save_exec_prefix="$exec_prefix"
7055 exec_prefix="$acl_final_exec_prefix"
7056 eval x=\"$x\"
7057 exec_prefix="$acl_save_exec_prefix"
7058 prefix="$acl_save_prefix"
7059
7060 if test "X$x" = "X-I$additional_includedir"; then
7061 haveit=yes
7062 break
7063 fi
7064 done
7065 if test -z "$haveit"; then
7066 if test -d "$additional_includedir"; then
7067 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7068 fi
7069 fi
7070 fi
7071 fi
7072 fi
7073 if test -n "$found_la"; then
7074 save_libdir="$libdir"
7075 case "$found_la" in
7076 */* | *\\*) . "$found_la" ;;
7077 *) . "./$found_la" ;;
7078 esac
7079 libdir="$save_libdir"
7080 for dep in $dependency_libs; do
7081 case "$dep" in
7082 -L*)
7083 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7084 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7085 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7086 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7087 haveit=
7088 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7089 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7090 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7091 if test -n "$GCC"; then
7092 case $host_os in
7093 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7094 esac
7095 fi
7096 fi
7097 if test -z "$haveit"; then
7098 haveit=
7099 for x in $LDFLAGS $LIBINTL; do
7100
7101 acl_save_prefix="$prefix"
7102 prefix="$acl_final_prefix"
7103 acl_save_exec_prefix="$exec_prefix"
7104 exec_prefix="$acl_final_exec_prefix"
7105 eval x=\"$x\"
7106 exec_prefix="$acl_save_exec_prefix"
7107 prefix="$acl_save_prefix"
7108
7109 if test "X$x" = "X-L$dependency_libdir"; then
7110 haveit=yes
7111 break
7112 fi
7113 done
7114 if test -z "$haveit"; then
7115 if test -d "$dependency_libdir"; then
7116 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
7117 fi
7118 fi
7119 haveit=
7120 for x in $LDFLAGS $LTLIBINTL; do
7121
7122 acl_save_prefix="$prefix"
7123 prefix="$acl_final_prefix"
7124 acl_save_exec_prefix="$exec_prefix"
7125 exec_prefix="$acl_final_exec_prefix"
7126 eval x=\"$x\"
7127 exec_prefix="$acl_save_exec_prefix"
7128 prefix="$acl_save_prefix"
7129
7130 if test "X$x" = "X-L$dependency_libdir"; then
7131 haveit=yes
7132 break
7133 fi
7134 done
7135 if test -z "$haveit"; then
7136 if test -d "$dependency_libdir"; then
7137 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
7138 fi
7139 fi
7140 fi
7141 fi
7142 ;;
7143 -R*)
7144 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7145 if test "$enable_rpath" != no; then
7146 haveit=
7147 for x in $rpathdirs; do
7148 if test "X$x" = "X$dir"; then
7149 haveit=yes
7150 break
7151 fi
7152 done
7153 if test -z "$haveit"; then
7154 rpathdirs="$rpathdirs $dir"
7155 fi
7156 haveit=
7157 for x in $ltrpathdirs; do
7158 if test "X$x" = "X$dir"; then
7159 haveit=yes
7160 break
7161 fi
7162 done
7163 if test -z "$haveit"; then
7164 ltrpathdirs="$ltrpathdirs $dir"
7165 fi
7166 fi
7167 ;;
7168 -l*)
7169 dep=`echo "X$dep" | sed -e 's/^X-l//'`
7170 if test "X$dep" != Xc \
7171 || case $host_os in
7172 linux* | gnu* | k*bsd*-gnu) false ;;
7173 *) true ;;
7174 esac; then
7175 names_next_round="$names_next_round $dep"
7176 fi
7177 ;;
7178 *.la)
7179 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7180 ;;
7181 *)
7182 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7183 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7184 ;;
7185 esac
7186 done
7187 fi
7188 else
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7191 fi
7192 fi
7193 fi
7194 done
7195 done
7196 if test "X$rpathdirs" != "X"; then
7197 if test -n "$acl_hardcode_libdir_separator"; then
7198 alldirs=
7199 for found_dir in $rpathdirs; do
7200 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7201 done
7202 acl_save_libdir="$libdir"
7203 libdir="$alldirs"
7204 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7205 libdir="$acl_save_libdir"
7206 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7207 else
7208 for found_dir in $rpathdirs; do
7209 acl_save_libdir="$libdir"
7210 libdir="$found_dir"
7211 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7212 libdir="$acl_save_libdir"
7213 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7214 done
7215 fi
7216 fi
7217 if test "X$ltrpathdirs" != "X"; then
7218 for found_dir in $ltrpathdirs; do
7219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7220 done
7221 fi
7222
7223
7224
7225
7226
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7228 printf %s "checking for GNU gettext in libintl... " >&6; }
7229 if eval test \${$gt_func_gnugettext_libintl+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else $as_nop
7233 gt_save_CPPFLAGS="$CPPFLAGS"
7234 CPPFLAGS="$CPPFLAGS $INCINTL"
7235 gt_save_LIBS="$LIBS"
7236 LIBS="$LIBS $LIBINTL"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239
7240 #include <libintl.h>
7241 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7242 extern int _nl_msg_cat_cntr;
7243 extern
7244 #ifdef __cplusplus
7245 "C"
7246 #endif
7247 const char *_nl_expand_alias (const char *);
7248 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7249 #else
7250 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7251 #endif
7252 $gt_revision_test_code
7253
7254 int
7255 main (void)
7256 {
7257
7258 bindtextdomain ("", "");
7259 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_link "$LINENO"
7266 then :
7267 eval "$gt_func_gnugettext_libintl=yes"
7268 else $as_nop
7269 eval "$gt_func_gnugettext_libintl=no"
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7272 conftest$ac_exeext conftest.$ac_ext
7273 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7274 LIBS="$LIBS $LIBICONV"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277
7278 #include <libintl.h>
7279 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7280 extern int _nl_msg_cat_cntr;
7281 extern
7282 #ifdef __cplusplus
7283 "C"
7284 #endif
7285 const char *_nl_expand_alias (const char *);
7286 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7287 #else
7288 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7289 #endif
7290 $gt_revision_test_code
7291
7292 int
7293 main (void)
7294 {
7295
7296 bindtextdomain ("", "");
7297 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7298
7299 ;
7300 return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_link "$LINENO"
7304 then :
7305 LIBINTL="$LIBINTL $LIBICONV"
7306 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7307 eval "$gt_func_gnugettext_libintl=yes"
7308
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7311 conftest$ac_exeext conftest.$ac_ext
7312 fi
7313 CPPFLAGS="$gt_save_CPPFLAGS"
7314 LIBS="$gt_save_LIBS"
7315 fi
7316 eval ac_res=\$$gt_func_gnugettext_libintl
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7318 printf "%s\n" "$ac_res" >&6; }
7319 fi
7320
7321 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7322 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7323 && test "$PACKAGE" != gettext-runtime \
7324 && test "$PACKAGE" != gettext-tools \
7325 && test "$PACKAGE" != libintl; }; then
7326 gt_use_preinstalled_gnugettext=yes
7327 else
7328 LIBINTL=
7329 LTLIBINTL=
7330 INCINTL=
7331 fi
7332
7333
7334
7335 if test -n "$INTL_MACOSX_LIBS"; then
7336 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7337 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7338 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7339 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7340 fi
7341 fi
7342
7343 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7344 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7345
7346 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
7347
7348 else
7349 USE_NLS=no
7350 fi
7351 fi
7352
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7354 printf %s "checking whether to use NLS... " >&6; }
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7356 printf "%s\n" "$USE_NLS" >&6; }
7357 if test "$USE_NLS" = "yes"; then
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7359 printf %s "checking where the gettext function comes from... " >&6; }
7360 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7361 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7362 gt_source="external libintl"
7363 else
7364 gt_source="libc"
7365 fi
7366 else
7367 gt_source="included intl directory"
7368 fi
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7370 printf "%s\n" "$gt_source" >&6; }
7371 fi
7372
7373 if test "$USE_NLS" = "yes"; then
7374
7375 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7376 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7378 printf %s "checking how to link with libintl... " >&6; }
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7380 printf "%s\n" "$LIBINTL" >&6; }
7381
7382 for element in $INCINTL; do
7383 haveit=
7384 for x in $CPPFLAGS; do
7385
7386 acl_save_prefix="$prefix"
7387 prefix="$acl_final_prefix"
7388 acl_save_exec_prefix="$exec_prefix"
7389 exec_prefix="$acl_final_exec_prefix"
7390 eval x=\"$x\"
7391 exec_prefix="$acl_save_exec_prefix"
7392 prefix="$acl_save_prefix"
7393
7394 if test "X$x" = "X$element"; then
7395 haveit=yes
7396 break
7397 fi
7398 done
7399 if test -z "$haveit"; then
7400 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7401 fi
7402 done
7403
7404 fi
7405
7406
7407 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
7408
7409
7410 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
7411
7412 fi
7413
7414 POSUB=po
7415 fi
7416
7417
7418
7419
7420 INTLLIBS="$LIBINTL"
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 if test -n "$PYTHON"; then
7435 # If the user set $PYTHON, use it and don't search something else.
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
7437 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
7438 prog="import sys
7439 # split strings by '.' and convert to numeric. Append some zeros
7440 # because we need at least 4 digits for the hex conversion.
7441 # map returns an iterator in Python 3.0 and a list in 2.x
7442 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
7443 minverhex = 0
7444 # xrange is not present in Python 3.0 and range returns an iterator
7445 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7446 sys.exit(sys.hexversion < minverhex)"
7447 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7448 ($PYTHON -c "$prog") >&5 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }
7452 then :
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7454 printf "%s\n" "yes" >&6; }
7455 else $as_nop
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 printf "%s\n" "no" >&6; }
7458 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
7459 fi
7460 am_display_PYTHON=$PYTHON
7461 else
7462 # Otherwise, try each interpreter until we find one that satisfies
7463 # VERSION.
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
7465 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
7466 if test ${am_cv_pathless_PYTHON+y}
7467 then :
7468 printf %s "(cached) " >&6
7469 else $as_nop
7470
7471 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7472 test "$am_cv_pathless_PYTHON" = none && break
7473 prog="import sys
7474 # split strings by '.' and convert to numeric. Append some zeros
7475 # because we need at least 4 digits for the hex conversion.
7476 # map returns an iterator in Python 3.0 and a list in 2.x
7477 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
7478 minverhex = 0
7479 # xrange is not present in Python 3.0 and range returns an iterator
7480 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7481 sys.exit(sys.hexversion < minverhex)"
7482 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7483 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }
7487 then :
7488 break
7489 fi
7490 done
7491 fi
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7493 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
7494 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7495 if test "$am_cv_pathless_PYTHON" = none; then
7496 PYTHON=:
7497 else
7498 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7499 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 printf %s "checking for $ac_word... " >&6; }
7502 if test ${ac_cv_path_PYTHON+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else $as_nop
7506 case $PYTHON in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514 IFS=$as_save_IFS
7515 case $as_dir in #(((
7516 '') as_dir=./ ;;
7517 */) ;;
7518 *) as_dir=$as_dir/ ;;
7519 esac
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7522 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 ;;
7531 esac
7532 fi
7533 PYTHON=$ac_cv_path_PYTHON
7534 if test -n "$PYTHON"; then
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7536 printf "%s\n" "$PYTHON" >&6; }
7537 else
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 printf "%s\n" "no" >&6; }
7540 fi
7541
7542
7543 fi
7544 am_display_PYTHON=$am_cv_pathless_PYTHON
7545 fi
7546
7547
7548 if test "$PYTHON" = :; then
7549 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
7550 else
7551
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7553 printf %s "checking for $am_display_PYTHON version... " >&6; }
7554 if test ${am_cv_python_version+y}
7555 then :
7556 printf %s "(cached) " >&6
7557 else $as_nop
7558 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
7559 fi
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7561 printf "%s\n" "$am_cv_python_version" >&6; }
7562 PYTHON_VERSION=$am_cv_python_version
7563
7564
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7566 printf %s "checking for $am_display_PYTHON platform... " >&6; }
7567 if test ${am_cv_python_platform+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7572 fi
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7574 printf "%s\n" "$am_cv_python_platform" >&6; }
7575 PYTHON_PLATFORM=$am_cv_python_platform
7576
7577
7578 if test "x$prefix" = xNONE; then
7579 am__usable_prefix=$ac_default_prefix
7580 else
7581 am__usable_prefix=$prefix
7582 fi
7583
7584 # Allow user to request using sys.* values from Python,
7585 # instead of the GNU $prefix values.
7586
7587 # Check whether --with-python-sys-prefix was given.
7588 if test ${with_python_sys_prefix+y}
7589 then :
7590 withval=$with_python_sys_prefix; am_use_python_sys=:
7591 else $as_nop
7592 am_use_python_sys=false
7593 fi
7594
7595
7596 # Allow user to override whatever the default Python prefix is.
7597
7598 # Check whether --with-python_prefix was given.
7599 if test ${with_python_prefix+y}
7600 then :
7601 withval=$with_python_prefix; am_python_prefix_subst=$withval
7602 am_cv_python_prefix=$withval
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
7604 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
7606 printf "%s\n" "$am_cv_python_prefix" >&6; }
7607 else $as_nop
7608
7609 if $am_use_python_sys; then
7610 # using python sys.prefix value, not GNU
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
7612 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
7613 if test ${am_cv_python_prefix+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else $as_nop
7617 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
7618 fi
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
7620 printf "%s\n" "$am_cv_python_prefix" >&6; }
7621
7622 case $am_cv_python_prefix in
7623 $am__usable_prefix*)
7624 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
7625 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
7626 ;;
7627 *)
7628 am_python_prefix_subst=$am_cv_python_prefix
7629 ;;
7630 esac
7631 else # using GNU prefix value, not python sys.prefix
7632 am_python_prefix_subst='${prefix}'
7633 am_python_prefix=$am_python_prefix_subst
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
7635 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
7637 printf "%s\n" "$am_python_prefix" >&6; }
7638 fi
7639 fi
7640
7641 # Substituting python_prefix_subst value.
7642 PYTHON_PREFIX=$am_python_prefix_subst
7643
7644
7645 # emacs-page Now do it all over again for Python exec_prefix, but with yet
7646 # another conditional: fall back to regular prefix if that was specified.
7647
7648 # Check whether --with-python_exec_prefix was given.
7649 if test ${with_python_exec_prefix+y}
7650 then :
7651 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
7652 am_cv_python_exec_prefix=$withval
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
7654 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7656 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7657 else $as_nop
7658
7659 # no explicit --with-python_exec_prefix, but if
7660 # --with-python_prefix was given, use its value for python_exec_prefix too.
7661 if test -n "$with_python_prefix"
7662 then :
7663 am_python_exec_prefix_subst=$with_python_prefix
7664 am_cv_python_exec_prefix=$with_python_prefix
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
7666 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7668 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7669 else $as_nop
7670
7671 # Set am__usable_exec_prefix whether using GNU or Python values,
7672 # since we use that variable for pyexecdir.
7673 if test "x$exec_prefix" = xNONE; then
7674 am__usable_exec_prefix=$am__usable_prefix
7675 else
7676 am__usable_exec_prefix=$exec_prefix
7677 fi
7678 #
7679 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
7681 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
7682 if test ${am_cv_python_exec_prefix+y}
7683 then :
7684 printf %s "(cached) " >&6
7685 else $as_nop
7686 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
7687 fi
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7689 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7690 case $am_cv_python_exec_prefix in
7691 $am__usable_exec_prefix*)
7692 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
7693 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
7694 ;;
7695 *)
7696 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
7697 ;;
7698 esac
7699 else # using GNU $exec_prefix, not python sys.exec_prefix
7700 am_python_exec_prefix_subst='${exec_prefix}'
7701 am_python_exec_prefix=$am_python_exec_prefix_subst
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
7703 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
7705 printf "%s\n" "$am_python_exec_prefix" >&6; }
7706 fi
7707 fi
7708 fi
7709
7710 # Substituting python_exec_prefix_subst.
7711 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
7712
7713
7714 # Factor out some code duplication into this shell variable.
7715 am_python_setup_sysconfig="\
7716 import sys
7717 # Prefer sysconfig over distutils.sysconfig, for better compatibility
7718 # with python 3.x. See automake bug#10227.
7719 try:
7720 import sysconfig
7721 except ImportError:
7722 can_use_sysconfig = 0
7723 else:
7724 can_use_sysconfig = 1
7725 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
7726 # <https://github.com/pypa/virtualenv/issues/118>
7727 try:
7728 from platform import python_implementation
7729 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
7730 can_use_sysconfig = 0
7731 except ImportError:
7732 pass"
7733
7734
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
7736 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
7737 if test ${am_cv_python_pythondir+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 if test "x$am_cv_python_prefix" = x; then
7742 am_py_prefix=$am__usable_prefix
7743 else
7744 am_py_prefix=$am_cv_python_prefix
7745 fi
7746 am_cv_python_pythondir=`$PYTHON -c "
7747 $am_python_setup_sysconfig
7748 if can_use_sysconfig:
7749 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
7750 else:
7751 from distutils import sysconfig
7752 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
7753 sys.stdout.write(sitedir)"`
7754 #
7755 case $am_cv_python_pythondir in
7756 $am_py_prefix*)
7757 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7758 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
7759 ;;
7760 *)
7761 case $am_py_prefix in
7762 /usr|/System*) ;;
7763 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
7764 ;;
7765 esac
7766 ;;
7767 esac
7768
7769 fi
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7771 printf "%s\n" "$am_cv_python_pythondir" >&6; }
7772 pythondir=$am_cv_python_pythondir
7773
7774
7775 pkgpythondir=\${pythondir}/$PACKAGE
7776
7777
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
7779 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
7780 if test ${am_cv_python_pyexecdir+y}
7781 then :
7782 printf %s "(cached) " >&6
7783 else $as_nop
7784 if test "x$am_cv_python_exec_prefix" = x; then
7785 am_py_exec_prefix=$am__usable_exec_prefix
7786 else
7787 am_py_exec_prefix=$am_cv_python_exec_prefix
7788 fi
7789 am_cv_python_pyexecdir=`$PYTHON -c "
7790 $am_python_setup_sysconfig
7791 if can_use_sysconfig:
7792 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
7793 else:
7794 from distutils import sysconfig
7795 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
7796 sys.stdout.write(sitedir)"`
7797 #
7798 case $am_cv_python_pyexecdir in
7799 $am_py_exec_prefix*)
7800 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7801 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
7802 ;;
7803 *)
7804 case $am_py_exec_prefix in
7805 /usr|/System*) ;;
7806 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
7807 ;;
7808 esac
7809 ;;
7810 esac
7811
7812 fi
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7814 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
7815 pyexecdir=$am_cv_python_pyexecdir
7816
7817
7818 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7819
7820
7821
7822 fi
7823
7824 PACKAGE="system-config-printer"
7825 VERSION="1.5.18"
7826 GETTEXT_PACKAGE="system-config-printer"
7827 CATOBJEXT=".gmo"
7828 DATADIRNAME=share
7829
7830
7831
7832
7833
7834
7835 # Let distributor specify if they want to use a vendor with desktop-file-install
7836
7837 # Check whether --with-desktop-vendor was given.
7838 if test ${with_desktop_vendor+y}
7839 then :
7840 withval=$with_desktop_vendor;
7841 else $as_nop
7842 with_desktop_vendor=""
7843 fi
7844
7845
7846 VENDOR=$with_desktop_vendor
7847 if test "x$VENDOR" = "x"; then
7848 DESKTOPVENDOR=
7849 DESKTOPPREFIX=
7850 else
7851 DESKTOPVENDOR="--vendor $VENDOR"
7852 DESKTOPPREFIX="$VENDOR-"
7853 fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_path_PKG_CONFIG+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else $as_nop
7874 case $PKG_CONFIG in
7875 [\\/]* | ?:[\\/]*)
7876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7877 ;;
7878 *)
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882 IFS=$as_save_IFS
7883 case $as_dir in #(((
7884 '') as_dir=./ ;;
7885 */) ;;
7886 *) as_dir=$as_dir/ ;;
7887 esac
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7890 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898 ;;
7899 esac
7900 fi
7901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7902 if test -n "$PKG_CONFIG"; then
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7904 printf "%s\n" "$PKG_CONFIG" >&6; }
7905 else
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 printf "%s\n" "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_path_PKG_CONFIG"; then
7913 ac_pt_PKG_CONFIG=$PKG_CONFIG
7914 # Extract the first word of "pkg-config", so it can be a program name with args.
7915 set dummy pkg-config; ac_word=$2
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 printf %s "checking for $ac_word... " >&6; }
7918 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else $as_nop
7922 case $ac_pt_PKG_CONFIG in
7923 [\\/]* | ?:[\\/]*)
7924 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7925 ;;
7926 *)
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 case $as_dir in #(((
7932 '') as_dir=./ ;;
7933 */) ;;
7934 *) as_dir=$as_dir/ ;;
7935 esac
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7938 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 ;;
7947 esac
7948 fi
7949 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7950 if test -n "$ac_pt_PKG_CONFIG"; then
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7952 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7953 else
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 printf "%s\n" "no" >&6; }
7956 fi
7957
7958 if test "x$ac_pt_PKG_CONFIG" = x; then
7959 PKG_CONFIG=""
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 PKG_CONFIG=$ac_pt_PKG_CONFIG
7968 fi
7969 else
7970 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7971 fi
7972
7973 fi
7974 if test -n "$PKG_CONFIG"; then
7975 _pkg_min_version=0.9.0
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7977 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7978 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7980 printf "%s\n" "yes" >&6; }
7981 else
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 printf "%s\n" "no" >&6; }
7984 PKG_CONFIG=""
7985 fi
7986 fi
7987
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CUPS SERVERBIN dir" >&5
7989 printf %s "checking for CUPS SERVERBIN dir... " >&6; }
7990
7991 # Check whether --with-cups_serverbin_dir was given.
7992 if test ${with_cups_serverbin_dir+y}
7993 then :
7994 withval=$with_cups_serverbin_dir;
7995 cupsserverbindir="$withval"
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
7997 printf "%s\n" "$withval" >&6; }
7998
7999 else $as_nop
8000
8001 if test "x$PKG_CONFIG" != x
8002 then :
8003
8004 if $PKG_CONFIG --exists cups
8005 then :
8006
8007 cupsserverbindir=$($PKG_CONFIG --variable=cups_serverbin cups)
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cupsserverbindir" >&5
8009 printf "%s\n" "$cupsserverbindir" >&6; }
8010
8011 else $as_nop
8012
8013 as_fn_error $? "No CUPS pkgconfig file present and no CUPS SERVERBIN dir defined in configure options." "$LINENO" 5
8014
8015 fi
8016
8017 else $as_nop
8018
8019 as_fn_error $? "No pkg-config present and no CUPS SERVERBIN dir defined in configure options." "$LINENO" 5
8020
8021 fi
8022
8023 fi
8024
8025
8026 if test "x$cupsserverbindir" = x
8027 then :
8028
8029 as_fn_error $? "No CUPS SERVERBIN dir defined in CUPS pkgconfig file or configure options." "$LINENO" 5
8030
8031 fi
8032
8033
8034
8035
8036 pkg_failed=no
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
8038 printf %s "checking for GLIB... " >&6; }
8039
8040 if test -n "$GLIB_CFLAGS"; then
8041 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8042 elif test -n "$PKG_CONFIG"; then
8043 if test -n "$PKG_CONFIG" && \
8044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
8045 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8046 ac_status=$?
8047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048 test $ac_status = 0; }; then
8049 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8050 test "x$?" != "x0" && pkg_failed=yes
8051 else
8052 pkg_failed=yes
8053 fi
8054 else
8055 pkg_failed=untried
8056 fi
8057 if test -n "$GLIB_LIBS"; then
8058 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8059 elif test -n "$PKG_CONFIG"; then
8060 if test -n "$PKG_CONFIG" && \
8061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
8062 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8063 ac_status=$?
8064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065 test $ac_status = 0; }; then
8066 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8067 test "x$?" != "x0" && pkg_failed=yes
8068 else
8069 pkg_failed=yes
8070 fi
8071 else
8072 pkg_failed=untried
8073 fi
8074
8075
8076
8077 if test $pkg_failed = yes; then
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 printf "%s\n" "no" >&6; }
8080
8081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8082 _pkg_short_errors_supported=yes
8083 else
8084 _pkg_short_errors_supported=no
8085 fi
8086 if test $_pkg_short_errors_supported = yes; then
8087 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
8088 else
8089 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
8090 fi
8091 # Put the nasty error message in config.log where it belongs
8092 echo "$GLIB_PKG_ERRORS" >&5
8093
8094 has_glib=no
8095 elif test $pkg_failed = untried; then
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 has_glib=no
8099 else
8100 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8101 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8103 printf "%s\n" "yes" >&6; }
8104 has_glib=yes
8105 fi
8106
8107
8108 # Check whether --with-udev-rules was given.
8109 if test ${with_udev_rules+y}
8110 then :
8111 withval=$with_udev_rules;
8112 else $as_nop
8113 with_udev_rules=no
8114 fi
8115
8116 if test x$with_udev_rules != xno; then
8117 UDEV_RULES_TRUE=
8118 UDEV_RULES_FALSE='#'
8119 else
8120 UDEV_RULES_TRUE='#'
8121 UDEV_RULES_FALSE=
8122 fi
8123
8124
8125
8126 # Check whether --with-udevdir was given.
8127 if test ${with_udevdir+y}
8128 then :
8129 withval=$with_udevdir;
8130 else $as_nop
8131 with_udevdir=$($PKG_CONFIG --variable=udevdir udev)
8132 fi
8133
8134 if test "x$with_udevdir" != xno; then
8135 udevdir=$with_udevdir
8136
8137 udevrulesdir=$with_udevdir/rules.d
8138
8139 fi
8140
8141 if test "x$with_udev_rules" != xno -a "x$with_udevdir" != xno; then
8142
8143 pkg_failed=no
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
8145 printf %s "checking for libudev... " >&6; }
8146
8147 if test -n "$libudev_CFLAGS"; then
8148 pkg_cv_libudev_CFLAGS="$libudev_CFLAGS"
8149 elif test -n "$PKG_CONFIG"; then
8150 if test -n "$PKG_CONFIG" && \
8151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 172\""; } >&5
8152 ($PKG_CONFIG --exists --print-errors "libudev >= 172") 2>&5
8153 ac_status=$?
8154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155 test $ac_status = 0; }; then
8156 pkg_cv_libudev_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 172" 2>/dev/null`
8157 test "x$?" != "x0" && pkg_failed=yes
8158 else
8159 pkg_failed=yes
8160 fi
8161 else
8162 pkg_failed=untried
8163 fi
8164 if test -n "$libudev_LIBS"; then
8165 pkg_cv_libudev_LIBS="$libudev_LIBS"
8166 elif test -n "$PKG_CONFIG"; then
8167 if test -n "$PKG_CONFIG" && \
8168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 172\""; } >&5
8169 ($PKG_CONFIG --exists --print-errors "libudev >= 172") 2>&5
8170 ac_status=$?
8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8172 test $ac_status = 0; }; then
8173 pkg_cv_libudev_LIBS=`$PKG_CONFIG --libs "libudev >= 172" 2>/dev/null`
8174 test "x$?" != "x0" && pkg_failed=yes
8175 else
8176 pkg_failed=yes
8177 fi
8178 else
8179 pkg_failed=untried
8180 fi
8181
8182
8183
8184 if test $pkg_failed = yes; then
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 printf "%s\n" "no" >&6; }
8187
8188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8189 _pkg_short_errors_supported=yes
8190 else
8191 _pkg_short_errors_supported=no
8192 fi
8193 if test $_pkg_short_errors_supported = yes; then
8194 libudev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 172" 2>&1`
8195 else
8196 libudev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 172" 2>&1`
8197 fi
8198 # Put the nasty error message in config.log where it belongs
8199 echo "$libudev_PKG_ERRORS" >&5
8200
8201 has_libudev=no
8202 elif test $pkg_failed = untried; then
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 printf "%s\n" "no" >&6; }
8205 has_libudev=no
8206 else
8207 libudev_CFLAGS=$pkg_cv_libudev_CFLAGS
8208 libudev_LIBS=$pkg_cv_libudev_LIBS
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210 printf "%s\n" "yes" >&6; }
8211 has_libudev=yes
8212 fi
8213
8214 pkg_failed=no
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
8216 printf %s "checking for libusb... " >&6; }
8217
8218 if test -n "$libusb_CFLAGS"; then
8219 pkg_cv_libusb_CFLAGS="$libusb_CFLAGS"
8220 elif test -n "$PKG_CONFIG"; then
8221 if test -n "$PKG_CONFIG" && \
8222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
8223 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
8224 ac_status=$?
8225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8226 test $ac_status = 0; }; then
8227 pkg_cv_libusb_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
8228 test "x$?" != "x0" && pkg_failed=yes
8229 else
8230 pkg_failed=yes
8231 fi
8232 else
8233 pkg_failed=untried
8234 fi
8235 if test -n "$libusb_LIBS"; then
8236 pkg_cv_libusb_LIBS="$libusb_LIBS"
8237 elif test -n "$PKG_CONFIG"; then
8238 if test -n "$PKG_CONFIG" && \
8239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
8240 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
8241 ac_status=$?
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 pkg_cv_libusb_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
8245 test "x$?" != "x0" && pkg_failed=yes
8246 else
8247 pkg_failed=yes
8248 fi
8249 else
8250 pkg_failed=untried
8251 fi
8252
8253
8254
8255 if test $pkg_failed = yes; then
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 printf "%s\n" "no" >&6; }
8258
8259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8260 _pkg_short_errors_supported=yes
8261 else
8262 _pkg_short_errors_supported=no
8263 fi
8264 if test $_pkg_short_errors_supported = yes; then
8265 libusb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
8266 else
8267 libusb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
8268 fi
8269 # Put the nasty error message in config.log where it belongs
8270 echo "$libusb_PKG_ERRORS" >&5
8271
8272 has_libusb=no
8273 elif test $pkg_failed = untried; then
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 printf "%s\n" "no" >&6; }
8276 has_libusb=no
8277 else
8278 libusb_CFLAGS=$pkg_cv_libusb_CFLAGS
8279 libusb_LIBS=$pkg_cv_libusb_LIBS
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8281 printf "%s\n" "yes" >&6; }
8282 has_libusb=yes
8283 fi
8284 if test x$has_glib == xno -o \
8285 x$has_udev == xno -o \
8286 x$has_libudev == xno -o \
8287 x$has_libusb == xno ; then
8288 as_fn_error $? "Missing packages" "$LINENO" 5
8289 fi
8290
8291
8292 fi
8293
8294
8295 # Check whether --with-systemdsystemunitdir was given.
8296 if test ${with_systemdsystemunitdir+y}
8297 then :
8298 withval=$with_systemdsystemunitdir;
8299 else $as_nop
8300 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
8301 fi
8302
8303 if test "x$with_systemdsystemunitdir" != xno; then
8304 systemdsystemunitdir=$with_systemdsystemunitdir
8305
8306 fi
8307 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
8308 HAVE_SYSTEMD_TRUE=
8309 HAVE_SYSTEMD_FALSE='#'
8310 else
8311 HAVE_SYSTEMD_TRUE='#'
8312 HAVE_SYSTEMD_FALSE=
8313 fi
8314
8315
8316
8317 # Check whether --with-xmlto was given.
8318 if test ${with_xmlto+y}
8319 then :
8320 withval=$with_xmlto;
8321 fi
8322
8323 if test x$with_xmlto != xno; then
8324 XMLTO_TRUE=
8325 XMLTO_FALSE='#'
8326 else
8327 XMLTO_TRUE='#'
8328 XMLTO_FALSE=
8329 fi
8330
8331
8332 ac_config_files="$ac_config_files Makefile po/Makefile.in system-config-printer system-config-printer-applet install-printerdriver dbus/scp-dbus-service udev/[email protected]"
8333
8334 cat >confcache <<\_ACEOF
8335 # This file is a shell script that caches the results of configure
8336 # tests run on this system so they can be shared between configure
8337 # scripts and configure runs, see configure's option --config-cache.
8338 # It is not useful on other systems. If it contains results you don't
8339 # want to keep, you may remove or edit it.
8340 #
8341 # config.status only pays attention to the cache file if you give it
8342 # the --recheck option to rerun configure.
8343 #
8344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8346 # following values.
8347
8348 _ACEOF
8349
8350 # The following way of writing the cache mishandles newlines in values,
8351 # but we know of no workaround that is simple, portable, and efficient.
8352 # So, we kill variables containing newlines.
8353 # Ultrix sh set writes to stderr and can't be redirected directly,
8354 # and sets the high bit in the cache file unless we assign to the vars.
8355 (
8356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8357 eval ac_val=\$$ac_var
8358 case $ac_val in #(
8359 *${as_nl}*)
8360 case $ac_var in #(
8361 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8362 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8363 esac
8364 case $ac_var in #(
8365 _ | IFS | as_nl) ;; #(
8366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8367 *) { eval $ac_var=; unset $ac_var;} ;;
8368 esac ;;
8369 esac
8370 done
8371
8372 (set) 2>&1 |
8373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8374 *${as_nl}ac_space=\ *)
8375 # `set' does not quote correctly, so add quotes: double-quote
8376 # substitution turns \\\\ into \\, and sed turns \\ into \.
8377 sed -n \
8378 "s/'/'\\\\''/g;
8379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8380 ;; #(
8381 *)
8382 # `set' quotes correctly as required by POSIX, so do not add quotes.
8383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8384 ;;
8385 esac |
8386 sort
8387 ) |
8388 sed '
8389 /^ac_cv_env_/b end
8390 t clear
8391 :clear
8392 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8393 t end
8394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8395 :end' >>confcache
8396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8397 if test -w "$cache_file"; then
8398 if test "x$cache_file" != "x/dev/null"; then
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8400 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8401 if test ! -f "$cache_file" || test -h "$cache_file"; then
8402 cat confcache >"$cache_file"
8403 else
8404 case $cache_file in #(
8405 */* | ?:*)
8406 mv -f confcache "$cache_file"$$ &&
8407 mv -f "$cache_file"$$ "$cache_file" ;; #(
8408 *)
8409 mv -f confcache "$cache_file" ;;
8410 esac
8411 fi
8412 fi
8413 else
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8415 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8416 fi
8417 fi
8418 rm -f confcache
8419
8420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8421 # Let make expand exec_prefix.
8422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8423
8424 # Transform confdefs.h into DEFS.
8425 # Protect against shell expansion while executing Makefile rules.
8426 # Protect against Makefile macro expansion.
8427 #
8428 # If the first sed substitution is executed (which looks for macros that
8429 # take arguments), then branch to the quote section. Otherwise,
8430 # look for a macro that doesn't take arguments.
8431 ac_script='
8432 :mline
8433 /\\$/{
8434 N
8435 s,\\\n,,
8436 b mline
8437 }
8438 t clear
8439 :clear
8440 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8441 t quote
8442 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8443 t quote
8444 b any
8445 :quote
8446 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8447 s/\[/\\&/g
8448 s/\]/\\&/g
8449 s/\$/$$/g
8450 H
8451 :any
8452 ${
8453 g
8454 s/^\n//
8455 s/\n/ /g
8456 p
8457 }
8458 '
8459 DEFS=`sed -n "$ac_script" confdefs.h`
8460
8461
8462 ac_libobjs=
8463 ac_ltlibobjs=
8464 U=
8465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8466 # 1. Remove the extension, and $U if already installed.
8467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8468 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8470 # will be set to the directory where LIBOBJS objects are built.
8471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8473 done
8474 LIBOBJS=$ac_libobjs
8475
8476 LTLIBOBJS=$ac_ltlibobjs
8477
8478
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8480 printf %s "checking that generated files are newer than configure... " >&6; }
8481 if test -n "$am_sleep_pid"; then
8482 # Hide warnings about reused PIDs.
8483 wait $am_sleep_pid 2>/dev/null
8484 fi
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8486 printf "%s\n" "done" >&6; }
8487 if test -n "$EXEEXT"; then
8488 am__EXEEXT_TRUE=
8489 am__EXEEXT_FALSE='#'
8490 else
8491 am__EXEEXT_TRUE='#'
8492 am__EXEEXT_FALSE=
8493 fi
8494
8495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8496 as_fn_error $? "conditional \"AMDEP\" was never defined.
8497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8498 fi
8499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8502 fi
8503 if test -z "${UDEV_RULES_TRUE}" && test -z "${UDEV_RULES_FALSE}"; then
8504 as_fn_error $? "conditional \"UDEV_RULES\" was never defined.
8505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8506 fi
8507 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
8508 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
8509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8510 fi
8511 if test -z "${XMLTO_TRUE}" && test -z "${XMLTO_FALSE}"; then
8512 as_fn_error $? "conditional \"XMLTO\" was never defined.
8513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8514 fi
8515
8516 : "${CONFIG_STATUS=./config.status}"
8517 ac_write_fail=0
8518 ac_clean_files_save=$ac_clean_files
8519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8521 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8522 as_write_fail=0
8523 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8524 #! $SHELL
8525 # Generated by $as_me.
8526 # Run this file to recreate the current configuration.
8527 # Compiler output produced by configure, useful for debugging
8528 # configure, is in config.log if it exists.
8529
8530 debug=false
8531 ac_cs_recheck=false
8532 ac_cs_silent=false
8533
8534 SHELL=\${CONFIG_SHELL-$SHELL}
8535 export SHELL
8536 _ASEOF
8537 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8538 ## -------------------- ##
8539 ## M4sh Initialization. ##
8540 ## -------------------- ##
8541
8542 # Be more Bourne compatible
8543 DUALCASE=1; export DUALCASE # for MKS sh
8544 as_nop=:
8545 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8546 then :
8547 emulate sh
8548 NULLCMD=:
8549 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8550 # is contrary to our usage. Disable this feature.
8551 alias -g '${1+"$@"}'='"$@"'
8552 setopt NO_GLOB_SUBST
8553 else $as_nop
8554 case `(set -o) 2>/dev/null` in #(
8555 *posix*) :
8556 set -o posix ;; #(
8557 *) :
8558 ;;
8559 esac
8560 fi
8561
8562
8563
8564 # Reset variables that may have inherited troublesome values from
8565 # the environment.
8566
8567 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8568 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8569 # side effect of setting IFS to empty, thus disabling word splitting.)
8570 # Quoting is to prevent editors from complaining about space-tab.
8571 as_nl='
8572 '
8573 export as_nl
8574 IFS=" "" $as_nl"
8575
8576 PS1='$ '
8577 PS2='> '
8578 PS4='+ '
8579
8580 # Ensure predictable behavior from utilities with locale-dependent output.
8581 LC_ALL=C
8582 export LC_ALL
8583 LANGUAGE=C
8584 export LANGUAGE
8585
8586 # We cannot yet rely on "unset" to work, but we need these variables
8587 # to be unset--not just set to an empty or harmless value--now, to
8588 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8589 # also avoids known problems related to "unset" and subshell syntax
8590 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8591 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8592 do eval test \${$as_var+y} \
8593 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8594 done
8595
8596 # Ensure that fds 0, 1, and 2 are open.
8597 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8598 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8599 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8600
8601 # The user is always right.
8602 if ${PATH_SEPARATOR+false} :; then
8603 PATH_SEPARATOR=:
8604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8605 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8606 PATH_SEPARATOR=';'
8607 }
8608 fi
8609
8610
8611 # Find who we are. Look in the path if we contain no directory separator.
8612 as_myself=
8613 case $0 in #((
8614 *[\\/]* ) as_myself=$0 ;;
8615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 case $as_dir in #(((
8620 '') as_dir=./ ;;
8621 */) ;;
8622 *) as_dir=$as_dir/ ;;
8623 esac
8624 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8625 done
8626 IFS=$as_save_IFS
8627
8628 ;;
8629 esac
8630 # We did not find ourselves, most probably we were run as `sh COMMAND'
8631 # in which case we are not to be found in the path.
8632 if test "x$as_myself" = x; then
8633 as_myself=$0
8634 fi
8635 if test ! -f "$as_myself"; then
8636 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8637 exit 1
8638 fi
8639
8640
8641
8642 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8643 # ----------------------------------------
8644 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8645 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8646 # script with STATUS, using 1 if that was 0.
8647 as_fn_error ()
8648 {
8649 as_status=$1; test $as_status -eq 0 && as_status=1
8650 if test "$4"; then
8651 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8653 fi
8654 printf "%s\n" "$as_me: error: $2" >&2
8655 as_fn_exit $as_status
8656 } # as_fn_error
8657
8658
8659
8660 # as_fn_set_status STATUS
8661 # -----------------------
8662 # Set $? to STATUS, without forking.
8663 as_fn_set_status ()
8664 {
8665 return $1
8666 } # as_fn_set_status
8667
8668 # as_fn_exit STATUS
8669 # -----------------
8670 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8671 as_fn_exit ()
8672 {
8673 set +e
8674 as_fn_set_status $1
8675 exit $1
8676 } # as_fn_exit
8677
8678 # as_fn_unset VAR
8679 # ---------------
8680 # Portably unset VAR.
8681 as_fn_unset ()
8682 {
8683 { eval $1=; unset $1;}
8684 }
8685 as_unset=as_fn_unset
8686
8687 # as_fn_append VAR VALUE
8688 # ----------------------
8689 # Append the text in VALUE to the end of the definition contained in VAR. Take
8690 # advantage of any shell optimizations that allow amortized linear growth over
8691 # repeated appends, instead of the typical quadratic growth present in naive
8692 # implementations.
8693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8694 then :
8695 eval 'as_fn_append ()
8696 {
8697 eval $1+=\$2
8698 }'
8699 else $as_nop
8700 as_fn_append ()
8701 {
8702 eval $1=\$$1\$2
8703 }
8704 fi # as_fn_append
8705
8706 # as_fn_arith ARG...
8707 # ------------------
8708 # Perform arithmetic evaluation on the ARGs, and store the result in the
8709 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8710 # must be portable across $(()) and expr.
8711 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8712 then :
8713 eval 'as_fn_arith ()
8714 {
8715 as_val=$(( $* ))
8716 }'
8717 else $as_nop
8718 as_fn_arith ()
8719 {
8720 as_val=`expr "$@" || test $? -eq 1`
8721 }
8722 fi # as_fn_arith
8723
8724
8725 if expr a : '\(a\)' >/dev/null 2>&1 &&
8726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8727 as_expr=expr
8728 else
8729 as_expr=false
8730 fi
8731
8732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8733 as_basename=basename
8734 else
8735 as_basename=false
8736 fi
8737
8738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8739 as_dirname=dirname
8740 else
8741 as_dirname=false
8742 fi
8743
8744 as_me=`$as_basename -- "$0" ||
8745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8746 X"$0" : 'X\(//\)$' \| \
8747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8748 printf "%s\n" X/"$0" |
8749 sed '/^.*\/\([^/][^/]*\)\/*$/{
8750 s//\1/
8751 q
8752 }
8753 /^X\/\(\/\/\)$/{
8754 s//\1/
8755 q
8756 }
8757 /^X\/\(\/\).*/{
8758 s//\1/
8759 q
8760 }
8761 s/.*/./; q'`
8762
8763 # Avoid depending upon Character Ranges.
8764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8767 as_cr_digits='0123456789'
8768 as_cr_alnum=$as_cr_Letters$as_cr_digits
8769
8770
8771 # Determine whether it's possible to make 'echo' print without a newline.
8772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8773 # for compatibility with existing Makefiles.
8774 ECHO_C= ECHO_N= ECHO_T=
8775 case `echo -n x` in #(((((
8776 -n*)
8777 case `echo 'xy\c'` in
8778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8779 xy) ECHO_C='\c';;
8780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8781 ECHO_T=' ';;
8782 esac;;
8783 *)
8784 ECHO_N='-n';;
8785 esac
8786
8787 # For backward compatibility with old third-party macros, we provide
8788 # the shell variables $as_echo and $as_echo_n. New code should use
8789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8790 as_echo='printf %s\n'
8791 as_echo_n='printf %s'
8792
8793 rm -f conf$$ conf$$.exe conf$$.file
8794 if test -d conf$$.dir; then
8795 rm -f conf$$.dir/conf$$.file
8796 else
8797 rm -f conf$$.dir
8798 mkdir conf$$.dir 2>/dev/null
8799 fi
8800 if (echo >conf$$.file) 2>/dev/null; then
8801 if ln -s conf$$.file conf$$ 2>/dev/null; then
8802 as_ln_s='ln -s'
8803 # ... but there are two gotchas:
8804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8806 # In both cases, we have to default to `cp -pR'.
8807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8808 as_ln_s='cp -pR'
8809 elif ln conf$$.file conf$$ 2>/dev/null; then
8810 as_ln_s=ln
8811 else
8812 as_ln_s='cp -pR'
8813 fi
8814 else
8815 as_ln_s='cp -pR'
8816 fi
8817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8818 rmdir conf$$.dir 2>/dev/null
8819
8820
8821 # as_fn_mkdir_p
8822 # -------------
8823 # Create "$as_dir" as a directory, including parents if necessary.
8824 as_fn_mkdir_p ()
8825 {
8826
8827 case $as_dir in #(
8828 -*) as_dir=./$as_dir;;
8829 esac
8830 test -d "$as_dir" || eval $as_mkdir_p || {
8831 as_dirs=
8832 while :; do
8833 case $as_dir in #(
8834 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8835 *) as_qdir=$as_dir;;
8836 esac
8837 as_dirs="'$as_qdir' $as_dirs"
8838 as_dir=`$as_dirname -- "$as_dir" ||
8839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8840 X"$as_dir" : 'X\(//\)[^/]' \| \
8841 X"$as_dir" : 'X\(//\)$' \| \
8842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8843 printf "%s\n" X"$as_dir" |
8844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8845 s//\1/
8846 q
8847 }
8848 /^X\(\/\/\)[^/].*/{
8849 s//\1/
8850 q
8851 }
8852 /^X\(\/\/\)$/{
8853 s//\1/
8854 q
8855 }
8856 /^X\(\/\).*/{
8857 s//\1/
8858 q
8859 }
8860 s/.*/./; q'`
8861 test -d "$as_dir" && break
8862 done
8863 test -z "$as_dirs" || eval "mkdir $as_dirs"
8864 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8865
8866
8867 } # as_fn_mkdir_p
8868 if mkdir -p . 2>/dev/null; then
8869 as_mkdir_p='mkdir -p "$as_dir"'
8870 else
8871 test -d ./-p && rmdir ./-p
8872 as_mkdir_p=false
8873 fi
8874
8875
8876 # as_fn_executable_p FILE
8877 # -----------------------
8878 # Test if FILE is an executable regular file.
8879 as_fn_executable_p ()
8880 {
8881 test -f "$1" && test -x "$1"
8882 } # as_fn_executable_p
8883 as_test_x='test -x'
8884 as_executable_p=as_fn_executable_p
8885
8886 # Sed expression to map a string onto a valid CPP name.
8887 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8888
8889 # Sed expression to map a string onto a valid variable name.
8890 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8891
8892
8893 exec 6>&1
8894 ## ----------------------------------- ##
8895 ## Main body of $CONFIG_STATUS script. ##
8896 ## ----------------------------------- ##
8897 _ASEOF
8898 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8899
8900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8901 # Save the log message, to keep $0 and so on meaningful, and to
8902 # report actual input values of CONFIG_FILES etc. instead of their
8903 # values after options handling.
8904 ac_log="
8905 This file was extended by system-config-printer $as_me 1.5.18, which was
8906 generated by GNU Autoconf 2.71. Invocation command line was
8907
8908 CONFIG_FILES = $CONFIG_FILES
8909 CONFIG_HEADERS = $CONFIG_HEADERS
8910 CONFIG_LINKS = $CONFIG_LINKS
8911 CONFIG_COMMANDS = $CONFIG_COMMANDS
8912 $ $0 $@
8913
8914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8915 "
8916
8917 _ACEOF
8918
8919 case $ac_config_files in *"
8920 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8921 esac
8922
8923
8924
8925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8926 # Files that config.status was made for.
8927 config_files="$ac_config_files"
8928 config_commands="$ac_config_commands"
8929
8930 _ACEOF
8931
8932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8933 ac_cs_usage="\
8934 \`$as_me' instantiates files and other configuration actions
8935 from templates according to the current configuration. Unless the files
8936 and actions are specified as TAGs, all are instantiated by default.
8937
8938 Usage: $0 [OPTION]... [TAG]...
8939
8940 -h, --help print this help, then exit
8941 -V, --version print version number and configuration settings, then exit
8942 --config print configuration, then exit
8943 -q, --quiet, --silent
8944 do not print progress messages
8945 -d, --debug don't remove temporary files
8946 --recheck update $as_me by reconfiguring in the same conditions
8947 --file=FILE[:TEMPLATE]
8948 instantiate the configuration file FILE
8949
8950 Configuration files:
8951 $config_files
8952
8953 Configuration commands:
8954 $config_commands
8955
8956 Report bugs to the package provider."
8957
8958 _ACEOF
8959 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8960 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8962 ac_cs_config='$ac_cs_config_escaped'
8963 ac_cs_version="\\
8964 system-config-printer config.status 1.5.18
8965 configured by $0, generated by GNU Autoconf 2.71,
8966 with options \\"\$ac_cs_config\\"
8967
8968 Copyright (C) 2021 Free Software Foundation, Inc.
8969 This config.status script is free software; the Free Software Foundation
8970 gives unlimited permission to copy, distribute and modify it."
8971
8972 ac_pwd='$ac_pwd'
8973 srcdir='$srcdir'
8974 INSTALL='$INSTALL'
8975 MKDIR_P='$MKDIR_P'
8976 AWK='$AWK'
8977 test -n "\$AWK" || AWK=awk
8978 _ACEOF
8979
8980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8981 # The default lists apply if the user does not specify any file.
8982 ac_need_defaults=:
8983 while test $# != 0
8984 do
8985 case $1 in
8986 --*=?*)
8987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8988 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8989 ac_shift=:
8990 ;;
8991 --*=)
8992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8993 ac_optarg=
8994 ac_shift=:
8995 ;;
8996 *)
8997 ac_option=$1
8998 ac_optarg=$2
8999 ac_shift=shift
9000 ;;
9001 esac
9002
9003 case $ac_option in
9004 # Handling of the options.
9005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9006 ac_cs_recheck=: ;;
9007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9008 printf "%s\n" "$ac_cs_version"; exit ;;
9009 --config | --confi | --conf | --con | --co | --c )
9010 printf "%s\n" "$ac_cs_config"; exit ;;
9011 --debug | --debu | --deb | --de | --d | -d )
9012 debug=: ;;
9013 --file | --fil | --fi | --f )
9014 $ac_shift
9015 case $ac_optarg in
9016 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9017 '') as_fn_error $? "missing file argument" ;;
9018 esac
9019 as_fn_append CONFIG_FILES " '$ac_optarg'"
9020 ac_need_defaults=false;;
9021 --he | --h | --help | --hel | -h )
9022 printf "%s\n" "$ac_cs_usage"; exit ;;
9023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9025 ac_cs_silent=: ;;
9026
9027 # This is an error.
9028 -*) as_fn_error $? "unrecognized option: \`$1'
9029 Try \`$0 --help' for more information." ;;
9030
9031 *) as_fn_append ac_config_targets " $1"
9032 ac_need_defaults=false ;;
9033
9034 esac
9035 shift
9036 done
9037
9038 ac_configure_extra_args=
9039
9040 if $ac_cs_silent; then
9041 exec 6>/dev/null
9042 ac_configure_extra_args="$ac_configure_extra_args --silent"
9043 fi
9044
9045 _ACEOF
9046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9047 if \$ac_cs_recheck; then
9048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9049 shift
9050 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9051 CONFIG_SHELL='$SHELL'
9052 export CONFIG_SHELL
9053 exec "\$@"
9054 fi
9055
9056 _ACEOF
9057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9058 exec 5>>config.log
9059 {
9060 echo
9061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9062 ## Running $as_me. ##
9063 _ASBOX
9064 printf "%s\n" "$ac_log"
9065 } >&5
9066
9067 _ACEOF
9068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069 #
9070 # INIT-COMMANDS
9071 #
9072 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9073 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
9074 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
9075 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9076 LINGUAS="${LINGUAS-%UNSET%}"
9077
9078 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9079
9080 _ACEOF
9081
9082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9083
9084 # Handling of arguments.
9085 for ac_config_target in $ac_config_targets
9086 do
9087 case $ac_config_target in
9088 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9089 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9091 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9092 "system-config-printer") CONFIG_FILES="$CONFIG_FILES system-config-printer" ;;
9093 "system-config-printer-applet") CONFIG_FILES="$CONFIG_FILES system-config-printer-applet" ;;
9094 "install-printerdriver") CONFIG_FILES="$CONFIG_FILES install-printerdriver" ;;
9095 "dbus/scp-dbus-service") CONFIG_FILES="$CONFIG_FILES dbus/scp-dbus-service" ;;
9096 "udev/[email protected]") CONFIG_FILES="$CONFIG_FILES udev/[email protected]" ;;
9097
9098 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9099 esac
9100 done
9101
9102
9103 # If the user did not use the arguments to specify the items to instantiate,
9104 # then the envvar interface is used. Set only those that are not.
9105 # We use the long form for the default assignment because of an extremely
9106 # bizarre bug on SunOS 4.1.3.
9107 if $ac_need_defaults; then
9108 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9109 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9110 fi
9111
9112 # Have a temporary directory for convenience. Make it in the build tree
9113 # simply because there is no reason against having it here, and in addition,
9114 # creating and moving files from /tmp can sometimes cause problems.
9115 # Hook for its removal unless debugging.
9116 # Note that there is a small window in which the directory will not be cleaned:
9117 # after its creation but before its name has been assigned to `$tmp'.
9118 $debug ||
9119 {
9120 tmp= ac_tmp=
9121 trap 'exit_status=$?
9122 : "${ac_tmp:=$tmp}"
9123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9124 ' 0
9125 trap 'as_fn_exit 1' 1 2 13 15
9126 }
9127 # Create a (secure) tmp directory for tmp files.
9128
9129 {
9130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9131 test -d "$tmp"
9132 } ||
9133 {
9134 tmp=./conf$$-$RANDOM
9135 (umask 077 && mkdir "$tmp")
9136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9137 ac_tmp=$tmp
9138
9139 # Set up the scripts for CONFIG_FILES section.
9140 # No need to generate them if there are no CONFIG_FILES.
9141 # This happens for instance with `./config.status config.h'.
9142 if test -n "$CONFIG_FILES"; then
9143
9144
9145 ac_cr=`echo X | tr X '\015'`
9146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9147 # But we know of no other shell where ac_cr would be empty at this
9148 # point, so we can use a bashism as a fallback.
9149 if test "x$ac_cr" = x; then
9150 eval ac_cr=\$\'\\r\'
9151 fi
9152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9154 ac_cs_awk_cr='\\r'
9155 else
9156 ac_cs_awk_cr=$ac_cr
9157 fi
9158
9159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9160 _ACEOF
9161
9162
9163 {
9164 echo "cat >conf$$subs.awk <<_ACEOF" &&
9165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9166 echo "_ACEOF"
9167 } >conf$$subs.sh ||
9168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9170 ac_delim='%!_!# '
9171 for ac_last_try in false false false false false :; do
9172 . ./conf$$subs.sh ||
9173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9174
9175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9176 if test $ac_delim_n = $ac_delim_num; then
9177 break
9178 elif $ac_last_try; then
9179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9180 else
9181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9182 fi
9183 done
9184 rm -f conf$$subs.sh
9185
9186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9188 _ACEOF
9189 sed -n '
9190 h
9191 s/^/S["/; s/!.*/"]=/
9192 p
9193 g
9194 s/^[^!]*!//
9195 :repl
9196 t repl
9197 s/'"$ac_delim"'$//
9198 t delim
9199 :nl
9200 h
9201 s/\(.\{148\}\)..*/\1/
9202 t more1
9203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9204 p
9205 n
9206 b repl
9207 :more1
9208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9209 p
9210 g
9211 s/.\{148\}//
9212 t nl
9213 :delim
9214 h
9215 s/\(.\{148\}\)..*/\1/
9216 t more2
9217 s/["\\]/\\&/g; s/^/"/; s/$/"/
9218 p
9219 b
9220 :more2
9221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9222 p
9223 g
9224 s/.\{148\}//
9225 t delim
9226 ' <conf$$subs.awk | sed '
9227 /^[^""]/{
9228 N
9229 s/\n//
9230 }
9231 ' >>$CONFIG_STATUS || ac_write_fail=1
9232 rm -f conf$$subs.awk
9233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9234 _ACAWK
9235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9236 for (key in S) S_is_set[key] = 1
9237 FS = ""
9238
9239 }
9240 {
9241 line = $ 0
9242 nfields = split(line, field, "@")
9243 substed = 0
9244 len = length(field[1])
9245 for (i = 2; i < nfields; i++) {
9246 key = field[i]
9247 keylen = length(key)
9248 if (S_is_set[key]) {
9249 value = S[key]
9250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9251 len += length(value) + length(field[++i])
9252 substed = 1
9253 } else
9254 len += 1 + keylen
9255 }
9256
9257 print line
9258 }
9259
9260 _ACAWK
9261 _ACEOF
9262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9265 else
9266 cat
9267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9269 _ACEOF
9270
9271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9273 # trailing colons and then remove the whole line if VPATH becomes empty
9274 # (actually we leave an empty line to preserve line numbers).
9275 if test "x$srcdir" = x.; then
9276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9277 h
9278 s///
9279 s/^/:/
9280 s/[ ]*$/:/
9281 s/:\$(srcdir):/:/g
9282 s/:\${srcdir}:/:/g
9283 s/:@srcdir@:/:/g
9284 s/^:*//
9285 s/:*$//
9286 x
9287 s/\(=[ ]*\).*/\1/
9288 G
9289 s/\n//
9290 s/^[^=]*=[ ]*$//
9291 }'
9292 fi
9293
9294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9295 fi # test -n "$CONFIG_FILES"
9296
9297
9298 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
9299 shift
9300 for ac_tag
9301 do
9302 case $ac_tag in
9303 :[FHLC]) ac_mode=$ac_tag; continue;;
9304 esac
9305 case $ac_mode$ac_tag in
9306 :[FHL]*:*);;
9307 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9308 :[FH]-) ac_tag=-:-;;
9309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9310 esac
9311 ac_save_IFS=$IFS
9312 IFS=:
9313 set x $ac_tag
9314 IFS=$ac_save_IFS
9315 shift
9316 ac_file=$1
9317 shift
9318
9319 case $ac_mode in
9320 :L) ac_source=$1;;
9321 :[FH])
9322 ac_file_inputs=
9323 for ac_f
9324 do
9325 case $ac_f in
9326 -) ac_f="$ac_tmp/stdin";;
9327 *) # Look for the file first in the build tree, then in the source tree
9328 # (if the path is not absolute). The absolute path cannot be DOS-style,
9329 # because $ac_f cannot contain `:'.
9330 test -f "$ac_f" ||
9331 case $ac_f in
9332 [\\/$]*) false;;
9333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9334 esac ||
9335 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9336 esac
9337 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9338 as_fn_append ac_file_inputs " '$ac_f'"
9339 done
9340
9341 # Let's still pretend it is `configure' which instantiates (i.e., don't
9342 # use $as_me), people would be surprised to read:
9343 # /* config.h. Generated by config.status. */
9344 configure_input='Generated from '`
9345 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9346 `' by configure.'
9347 if test x"$ac_file" != x-; then
9348 configure_input="$ac_file. $configure_input"
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9350 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9351 fi
9352 # Neutralize special characters interpreted by sed in replacement strings.
9353 case $configure_input in #(
9354 *\&* | *\|* | *\\* )
9355 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9356 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9357 *) ac_sed_conf_input=$configure_input;;
9358 esac
9359
9360 case $ac_tag in
9361 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9363 esac
9364 ;;
9365 esac
9366
9367 ac_dir=`$as_dirname -- "$ac_file" ||
9368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9369 X"$ac_file" : 'X\(//\)[^/]' \| \
9370 X"$ac_file" : 'X\(//\)$' \| \
9371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9372 printf "%s\n" X"$ac_file" |
9373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9374 s//\1/
9375 q
9376 }
9377 /^X\(\/\/\)[^/].*/{
9378 s//\1/
9379 q
9380 }
9381 /^X\(\/\/\)$/{
9382 s//\1/
9383 q
9384 }
9385 /^X\(\/\).*/{
9386 s//\1/
9387 q
9388 }
9389 s/.*/./; q'`
9390 as_dir="$ac_dir"; as_fn_mkdir_p
9391 ac_builddir=.
9392
9393 case "$ac_dir" in
9394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9395 *)
9396 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9397 # A ".." for each directory in $ac_dir_suffix.
9398 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9399 case $ac_top_builddir_sub in
9400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9402 esac ;;
9403 esac
9404 ac_abs_top_builddir=$ac_pwd
9405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9406 # for backward compatibility:
9407 ac_top_builddir=$ac_top_build_prefix
9408
9409 case $srcdir in
9410 .) # We are building in place.
9411 ac_srcdir=.
9412 ac_top_srcdir=$ac_top_builddir_sub
9413 ac_abs_top_srcdir=$ac_pwd ;;
9414 [\\/]* | ?:[\\/]* ) # Absolute name.
9415 ac_srcdir=$srcdir$ac_dir_suffix;
9416 ac_top_srcdir=$srcdir
9417 ac_abs_top_srcdir=$srcdir ;;
9418 *) # Relative name.
9419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9420 ac_top_srcdir=$ac_top_build_prefix$srcdir
9421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9422 esac
9423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9424
9425
9426 case $ac_mode in
9427 :F)
9428 #
9429 # CONFIG_FILE
9430 #
9431
9432 case $INSTALL in
9433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9435 esac
9436 ac_MKDIR_P=$MKDIR_P
9437 case $MKDIR_P in
9438 [\\/$]* | ?:[\\/]* ) ;;
9439 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9440 esac
9441 _ACEOF
9442
9443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9444 # If the template does not know about datarootdir, expand it.
9445 # FIXME: This hack should be removed a few years after 2.60.
9446 ac_datarootdir_hack=; ac_datarootdir_seen=
9447 ac_sed_dataroot='
9448 /datarootdir/ {
9449 p
9450 q
9451 }
9452 /@datadir@/p
9453 /@docdir@/p
9454 /@infodir@/p
9455 /@localedir@/p
9456 /@mandir@/p'
9457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9458 *datarootdir*) ac_datarootdir_seen=yes;;
9459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9461 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9462 _ACEOF
9463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9464 ac_datarootdir_hack='
9465 s&@datadir@&$datadir&g
9466 s&@docdir@&$docdir&g
9467 s&@infodir@&$infodir&g
9468 s&@localedir@&$localedir&g
9469 s&@mandir@&$mandir&g
9470 s&\\\${datarootdir}&$datarootdir&g' ;;
9471 esac
9472 _ACEOF
9473
9474 # Neutralize VPATH when `$srcdir' = `.'.
9475 # Shell code in configure.ac might set extrasub.
9476 # FIXME: do we really want to maintain this feature?
9477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9478 ac_sed_extra="$ac_vpsub
9479 $extrasub
9480 _ACEOF
9481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9482 :t
9483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9484 s|@configure_input@|$ac_sed_conf_input|;t t
9485 s&@top_builddir@&$ac_top_builddir_sub&;t t
9486 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9487 s&@srcdir@&$ac_srcdir&;t t
9488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9489 s&@top_srcdir@&$ac_top_srcdir&;t t
9490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9491 s&@builddir@&$ac_builddir&;t t
9492 s&@abs_builddir@&$ac_abs_builddir&;t t
9493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9494 s&@INSTALL@&$ac_INSTALL&;t t
9495 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9496 $ac_datarootdir_hack
9497 "
9498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9499 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9500
9501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9502 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9504 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9506 which seems to be undefined. Please make sure it is defined" >&5
9507 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9508 which seems to be undefined. Please make sure it is defined" >&2;}
9509
9510 rm -f "$ac_tmp/stdin"
9511 case $ac_file in
9512 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9513 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9514 esac \
9515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9516 ;;
9517
9518
9519 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9520 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9521 ;;
9522 esac
9523
9524
9525 case $ac_file$ac_mode in
9526 "po-directories":C)
9527 for ac_file in $CONFIG_FILES; do
9528 # Support "outfile[:infile[:infile...]]"
9529 case "$ac_file" in
9530 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9531 esac
9532 # PO directories have a Makefile.in generated from Makefile.in.in.
9533 case "$ac_file" in */Makefile.in)
9534 # Adjust a relative srcdir.
9535 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9536 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9537 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9538 # In autoconf-2.13 it is called $ac_given_srcdir.
9539 # In autoconf-2.50 it is called $srcdir.
9540 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9541 case "$ac_given_srcdir" in
9542 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9543 /*) top_srcdir="$ac_given_srcdir" ;;
9544 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9545 esac
9546 # Treat a directory as a PO directory if and only if it has a
9547 # POTFILES.in file. This allows packages to have multiple PO
9548 # directories under different names or in different locations.
9549 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9550 rm -f "$ac_dir/POTFILES"
9551 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9552 gt_tab=`printf '\t'`
9553 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"
9554 POMAKEFILEDEPS="POTFILES.in"
9555 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9556 # on $ac_dir but don't depend on user-specified configuration
9557 # parameters.
9558 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9559 # The LINGUAS file contains the set of available languages.
9560 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9561 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9562 fi
9563 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9564 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9565 else
9566 # The set of available languages was given in configure.in.
9567 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
9568 fi
9569 # Compute POFILES
9570 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9571 # Compute UPDATEPOFILES
9572 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9573 # Compute DUMMYPOFILES
9574 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9575 # Compute GMOFILES
9576 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9577 case "$ac_given_srcdir" in
9578 .) srcdirpre= ;;
9579 *) srcdirpre='$(srcdir)/' ;;
9580 esac
9581 POFILES=
9582 UPDATEPOFILES=
9583 DUMMYPOFILES=
9584 GMOFILES=
9585 for lang in $ALL_LINGUAS; do
9586 POFILES="$POFILES $srcdirpre$lang.po"
9587 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9588 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9589 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9590 done
9591 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9592 # environment variable.
9593 INST_LINGUAS=
9594 if test -n "$ALL_LINGUAS"; then
9595 for presentlang in $ALL_LINGUAS; do
9596 useit=no
9597 if test "%UNSET%" != "$LINGUAS"; then
9598 desiredlanguages="$LINGUAS"
9599 else
9600 desiredlanguages="$ALL_LINGUAS"
9601 fi
9602 for desiredlang in $desiredlanguages; do
9603 # Use the presentlang catalog if desiredlang is
9604 # a. equal to presentlang, or
9605 # b. a variant of presentlang (because in this case,
9606 # presentlang can be used as a fallback for messages
9607 # which are not translated in the desiredlang catalog).
9608 case "$desiredlang" in
9609 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
9610 useit=yes
9611 ;;
9612 esac
9613 done
9614 if test $useit = yes; then
9615 INST_LINGUAS="$INST_LINGUAS $presentlang"
9616 fi
9617 done
9618 fi
9619 CATALOGS=
9620 if test -n "$INST_LINGUAS"; then
9621 for lang in $INST_LINGUAS; do
9622 CATALOGS="$CATALOGS $lang.gmo"
9623 done
9624 fi
9625 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9626 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"
9627 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9628 if test -f "$f"; then
9629 case "$f" in
9630 *.orig | *.bak | *~) ;;
9631 *) cat "$f" >> "$ac_dir/Makefile" ;;
9632 esac
9633 fi
9634 done
9635 fi
9636 ;;
9637 esac
9638 done ;;
9639 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9640 # Older Autoconf quotes --file arguments for eval, but not when files
9641 # are listed without --file. Let's play safe and only enable the eval
9642 # if we detect the quoting.
9643 # TODO: see whether this extra hack can be removed once we start
9644 # requiring Autoconf 2.70 or later.
9645 case $CONFIG_FILES in #(
9646 *\'*) :
9647 eval set x "$CONFIG_FILES" ;; #(
9648 *) :
9649 set x $CONFIG_FILES ;; #(
9650 *) :
9651 ;;
9652 esac
9653 shift
9654 # Used to flag and report bootstrapping failures.
9655 am_rc=0
9656 for am_mf
9657 do
9658 # Strip MF so we end up with the name of the file.
9659 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9660 # Check whether this is an Automake generated Makefile which includes
9661 # dependency-tracking related rules and includes.
9662 # Grep'ing the whole file directly is not great: AIX grep has a line
9663 # limit of 2048, but all sed's we know have understand at least 4000.
9664 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9665 || continue
9666 am_dirpart=`$as_dirname -- "$am_mf" ||
9667 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$am_mf" : 'X\(//\)[^/]' \| \
9669 X"$am_mf" : 'X\(//\)$' \| \
9670 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9671 printf "%s\n" X"$am_mf" |
9672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9673 s//\1/
9674 q
9675 }
9676 /^X\(\/\/\)[^/].*/{
9677 s//\1/
9678 q
9679 }
9680 /^X\(\/\/\)$/{
9681 s//\1/
9682 q
9683 }
9684 /^X\(\/\).*/{
9685 s//\1/
9686 q
9687 }
9688 s/.*/./; q'`
9689 am_filepart=`$as_basename -- "$am_mf" ||
9690 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9691 X"$am_mf" : 'X\(//\)$' \| \
9692 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9693 printf "%s\n" X/"$am_mf" |
9694 sed '/^.*\/\([^/][^/]*\)\/*$/{
9695 s//\1/
9696 q
9697 }
9698 /^X\/\(\/\/\)$/{
9699 s//\1/
9700 q
9701 }
9702 /^X\/\(\/\).*/{
9703 s//\1/
9704 q
9705 }
9706 s/.*/./; q'`
9707 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9708 && sed -e '/# am--include-marker/d' "$am_filepart" \
9709 | $MAKE -f - am--depfiles" >&5
9710 (cd "$am_dirpart" \
9711 && sed -e '/# am--include-marker/d' "$am_filepart" \
9712 | $MAKE -f - am--depfiles) >&5 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } || am_rc=$?
9716 done
9717 if test $am_rc -ne 0; then
9718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9719 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9720 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9721 for automatic dependency tracking. If GNU make was not used, consider
9722 re-running the configure script with MAKE=\"gmake\" (or whatever is
9723 necessary). You can also try re-running configure with the
9724 '--disable-dependency-tracking' option to at least be able to build
9725 the package (albeit without support for automatic dependency tracking).
9726 See \`config.log' for more details" "$LINENO" 5; }
9727 fi
9728 { am_dirpart=; unset am_dirpart;}
9729 { am_filepart=; unset am_filepart;}
9730 { am_mf=; unset am_mf;}
9731 { am_rc=; unset am_rc;}
9732 rm -f conftest-deps.mk
9733 }
9734 ;;
9735
9736 esac
9737 done # for ac_tag
9738
9739
9740 as_fn_exit 0
9741 _ACEOF
9742 ac_clean_files=$ac_clean_files_save
9743
9744 test $ac_write_fail = 0 ||
9745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9746
9747
9748 # configure is writing to config.log, and then calls config.status.
9749 # config.status does its own redirection, appending to config.log.
9750 # Unfortunately, on DOS this fails, as config.log is still kept open
9751 # by configure, so config.status won't be able to write to it; its
9752 # output is simply discarded. So we exec the FD to /dev/null,
9753 # effectively closing config.log, so it can be properly (re)opened and
9754 # appended to by config.status. When coming back to configure, we
9755 # need to make the FD available again.
9756 if test "$no_create" != yes; then
9757 ac_cs_success=:
9758 ac_config_status_args=
9759 test "$silent" = yes &&
9760 ac_config_status_args="$ac_config_status_args --quiet"
9761 exec 5>/dev/null
9762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9763 exec 5>>config.log
9764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9765 # would make configure fail if this is the last instruction.
9766 $ac_cs_success || as_fn_exit 1
9767 fi
9768 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9770 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9771 fi
9772
9773