Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.72 for gutenprint 5.3.6-2026-02-01T02-18-9b0bdf87.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 #
16 #
17 # Parts of this configure script come from the 'configure.ac' file, and
18 # are not based on freely-redistributable m4 macros; you can redistribute
19 # them and/or modify them under the terms of the GNU General Public
20 # as published by the Free Software Foundation; either version 2, or (at
21 # your option) any later version.
22 #
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 # GNU General Public License for more details.
27 #
28 # You should have received a copy of the GNU General Public License
29 # along with this program. If not, see <https://www.gnu.org/licenses/>.
30 #
31 ## -------------------- ##
32 ## M4sh Initialization. ##
33 ## -------------------- ##
34
35 # Be more Bourne compatible
36 DUALCASE=1; export DUALCASE # for MKS sh
37 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
38 then :
39 emulate sh
40 NULLCMD=:
41 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 # is contrary to our usage. Disable this feature.
43 alias -g '${1+"$@"}'='"$@"'
44 setopt NO_GLOB_SUBST
45 else case e in #(
46 e) case `(set -o) 2>/dev/null` in #(
47 *posix*) :
48 set -o posix ;; #(
49 *) :
50 ;;
51 esac ;;
52 esac
53 fi
54
55
56
57 # Reset variables that may have inherited troublesome values from
58 # the environment.
59
60 # IFS needs to be set, to space, tab, and newline, in precisely that order.
61 # (If _AS_PATH_WALK were called with IFS unset, it would have the
62 # side effect of setting IFS to empty, thus disabling word splitting.)
63 # Quoting is to prevent editors from complaining about space-tab.
64 as_nl='
65 '
66 export as_nl
67 IFS=" "" $as_nl"
68
69 PS1='$ '
70 PS2='> '
71 PS4='+ '
72
73 # Ensure predictable behavior from utilities with locale-dependent output.
74 LC_ALL=C
75 export LC_ALL
76 LANGUAGE=C
77 export LANGUAGE
78
79 # We cannot yet rely on "unset" to work, but we need these variables
80 # to be unset--not just set to an empty or harmless value--now, to
81 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
82 # also avoids known problems related to "unset" and subshell syntax
83 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
84 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
85 do eval test \${$as_var+y} \
86 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
87 done
88
89 # Ensure that fds 0, 1, and 2 are open.
90 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
91 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
92 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
93
94 # The user is always right.
95 if ${PATH_SEPARATOR+false} :; then
96 PATH_SEPARATOR=:
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99 PATH_SEPARATOR=';'
100 }
101 fi
102
103
104 # Find who we are. Look in the path if we contain no directory separator.
105 as_myself=
106 case $0 in #((
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111 IFS=$as_save_IFS
112 case $as_dir in #(((
113 '') as_dir=./ ;;
114 */) ;;
115 *) as_dir=$as_dir/ ;;
116 esac
117 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
118 done
119 IFS=$as_save_IFS
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as 'sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
130 exit 1
131 fi
132
133
134 # Use a proper internal environment variable to ensure we don't fall
135 # into an infinite loop, continuously re-executing ourselves.
136 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
137 _as_can_reexec=no; export _as_can_reexec;
138 # We cannot yet assume a decent shell, so we have to provide a
139 # neutralization value for shells without unset; and this also
140 # works around shells that cannot unset nonexistent variables.
141 # Preserve -v and -x to the replacement shell.
142 BASH_ENV=/dev/null
143 ENV=/dev/null
144 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
145 case $- in # ((((
146 *v*x* | *x*v* ) as_opts=-vx ;;
147 *v* ) as_opts=-v ;;
148 *x* ) as_opts=-x ;;
149 * ) as_opts= ;;
150 esac
151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152 # Admittedly, this is quite paranoid, since all the known shells bail
153 # out after a failed 'exec'.
154 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
155 exit 255
156 fi
157 # We don't want this to propagate to other subprocesses.
158 { _as_can_reexec=; unset _as_can_reexec;}
159 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
161 then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else case e in #(
169 e) case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
190 then :
191
192 else case e in #(
193 e) exitcode=1; echo positional parameters were not saved. ;;
194 esac
195 fi
196 test x\$exitcode = x0 || exit 1
197 blah=\$(echo \$(echo blah))
198 test x\"\$blah\" = xblah || exit 1
199 test -x / || exit 1"
200 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204
205 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209 PATH=/empty FPATH=/empty; export PATH FPATH
210 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
211 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
212 test \$(( 1 + 1 )) = 2 || exit 1"
213 if (eval "$as_required") 2>/dev/null
214 then :
215 as_have_required=yes
216 else case e in #(
217 e) as_have_required=no ;;
218 esac
219 fi
220 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
221 then :
222
223 else case e in #(
224 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 as_found=false
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228 IFS=$as_save_IFS
229 case $as_dir in #(((
230 '') as_dir=./ ;;
231 */) ;;
232 *) as_dir=$as_dir/ ;;
233 esac
234 as_found=:
235 case $as_dir in #(
236 /*)
237 for as_base in sh bash ksh sh5; do
238 # Try only shells that exist, to save several forks.
239 as_shell=$as_dir$as_base
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 then :
243 CONFIG_SHELL=$as_shell as_have_required=yes
244 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
245 then :
246 break 2
247 fi
248 fi
249 done;;
250 esac
251 as_found=false
252 done
253 IFS=$as_save_IFS
254 if $as_found
255 then :
256
257 else case e in #(
258 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
259 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
260 then :
261 CONFIG_SHELL=$SHELL as_have_required=yes
262 fi ;;
263 esac
264 fi
265
266
267 if test "x$CONFIG_SHELL" != x
268 then :
269 export CONFIG_SHELL
270 # We cannot yet assume a decent shell, so we have to provide a
271 # neutralization value for shells without unset; and this also
272 # works around shells that cannot unset nonexistent variables.
273 # Preserve -v and -x to the replacement shell.
274 BASH_ENV=/dev/null
275 ENV=/dev/null
276 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
277 case $- in # ((((
278 *v*x* | *x*v* ) as_opts=-vx ;;
279 *v* ) as_opts=-v ;;
280 *x* ) as_opts=-x ;;
281 * ) as_opts= ;;
282 esac
283 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
284 # Admittedly, this is quite paranoid, since all the known shells bail
285 # out after a failed 'exec'.
286 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
287 exit 255
288 fi
289
290 if test x$as_have_required = xno
291 then :
292 printf "%s\n" "$0: This script requires a shell more modern than all"
293 printf "%s\n" "$0: the shells that I found on your system."
294 if test ${ZSH_VERSION+y} ; then
295 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
296 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
297 else
298 printf "%s\n" "$0: Please tell [email protected] and
299 $0: [email protected] about your
300 $0: system, including any error possibly output before this
301 $0: message. Then install a modern shell, or manually run
302 $0: the script under such a shell if you do have one."
303 fi
304 exit 1
305 fi ;;
306 esac
307 fi
308 fi
309 SHELL=${CONFIG_SHELL-/bin/sh}
310 export SHELL
311 # Unset more variables known to interfere with behavior of common tools.
312 CLICOLOR_FORCE= GREP_OPTIONS=
313 unset CLICOLOR_FORCE GREP_OPTIONS
314
315 ## --------------------- ##
316 ## M4sh Shell Functions. ##
317 ## --------------------- ##
318 # as_fn_unset VAR
319 # ---------------
320 # Portably unset VAR.
321 as_fn_unset ()
322 {
323 { eval $1=; unset $1;}
324 }
325 as_unset=as_fn_unset
326
327
328 # as_fn_set_status STATUS
329 # -----------------------
330 # Set $? to STATUS, without forking.
331 as_fn_set_status ()
332 {
333 return $1
334 } # as_fn_set_status
335
336 # as_fn_exit STATUS
337 # -----------------
338 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
339 as_fn_exit ()
340 {
341 set +e
342 as_fn_set_status $1
343 exit $1
344 } # as_fn_exit
345
346 # as_fn_mkdir_p
347 # -------------
348 # Create "$as_dir" as a directory, including parents if necessary.
349 as_fn_mkdir_p ()
350 {
351
352 case $as_dir in #(
353 -*) as_dir=./$as_dir;;
354 esac
355 test -d "$as_dir" || eval $as_mkdir_p || {
356 as_dirs=
357 while :; do
358 case $as_dir in #(
359 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
360 *) as_qdir=$as_dir;;
361 esac
362 as_dirs="'$as_qdir' $as_dirs"
363 as_dir=`$as_dirname -- "$as_dir" ||
364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
365 X"$as_dir" : 'X\(//\)[^/]' \| \
366 X"$as_dir" : 'X\(//\)$' \| \
367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
368 printf "%s\n" X"$as_dir" |
369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370 s//\1/
371 q
372 }
373 /^X\(\/\/\)[^/].*/{
374 s//\1/
375 q
376 }
377 /^X\(\/\/\)$/{
378 s//\1/
379 q
380 }
381 /^X\(\/\).*/{
382 s//\1/
383 q
384 }
385 s/.*/./; q'`
386 test -d "$as_dir" && break
387 done
388 test -z "$as_dirs" || eval "mkdir $as_dirs"
389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
390
391
392 } # as_fn_mkdir_p
393
394 # as_fn_executable_p FILE
395 # -----------------------
396 # Test if FILE is an executable regular file.
397 as_fn_executable_p ()
398 {
399 test -f "$1" && test -x "$1"
400 } # as_fn_executable_p
401 # as_fn_append VAR VALUE
402 # ----------------------
403 # Append the text in VALUE to the end of the definition contained in VAR. Take
404 # advantage of any shell optimizations that allow amortized linear growth over
405 # repeated appends, instead of the typical quadratic growth present in naive
406 # implementations.
407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
408 then :
409 eval 'as_fn_append ()
410 {
411 eval $1+=\$2
412 }'
413 else case e in #(
414 e) as_fn_append ()
415 {
416 eval $1=\$$1\$2
417 } ;;
418 esac
419 fi # as_fn_append
420
421 # as_fn_arith ARG...
422 # ------------------
423 # Perform arithmetic evaluation on the ARGs, and store the result in the
424 # global $as_val. Take advantage of shells that can avoid forks. The arguments
425 # must be portable across $(()) and expr.
426 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
427 then :
428 eval 'as_fn_arith ()
429 {
430 as_val=$(( $* ))
431 }'
432 else case e in #(
433 e) as_fn_arith ()
434 {
435 as_val=`expr "$@" || test $? -eq 1`
436 } ;;
437 esac
438 fi # as_fn_arith
439
440
441 # as_fn_error STATUS ERROR [LINENO LOG_FD]
442 # ----------------------------------------
443 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
444 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
445 # script with STATUS, using 1 if that was 0.
446 as_fn_error ()
447 {
448 as_status=$1; test $as_status -eq 0 && as_status=1
449 if test "$4"; then
450 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
452 fi
453 printf "%s\n" "$as_me: error: $2" >&2
454 as_fn_exit $as_status
455 } # as_fn_error
456
457 if expr a : '\(a\)' >/dev/null 2>&1 &&
458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
459 as_expr=expr
460 else
461 as_expr=false
462 fi
463
464 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
465 as_basename=basename
466 else
467 as_basename=false
468 fi
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
474 fi
475
476 as_me=`$as_basename -- "$0" ||
477 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
478 X"$0" : 'X\(//\)$' \| \
479 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
480 printf "%s\n" X/"$0" |
481 sed '/^.*\/\([^/][^/]*\)\/*$/{
482 s//\1/
483 q
484 }
485 /^X\/\(\/\/\)$/{
486 s//\1/
487 q
488 }
489 /^X\/\(\/\).*/{
490 s//\1/
491 q
492 }
493 s/.*/./; q'`
494
495 # Avoid depending upon Character Ranges.
496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
499 as_cr_digits='0123456789'
500 as_cr_alnum=$as_cr_Letters$as_cr_digits
501
502
503 as_lineno_1=$LINENO as_lineno_1a=$LINENO
504 as_lineno_2=$LINENO as_lineno_2a=$LINENO
505 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
506 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
507 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
508 sed -n '
509 p
510 /[$]LINENO/=
511 ' <$as_myself |
512 sed '
513 t clear
514 :clear
515 s/[$]LINENO.*/&-/
516 t lineno
517 b
518 :lineno
519 N
520 :loop
521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
522 t loop
523 s/-\n.*//
524 ' >$as_me.lineno &&
525 chmod +x "$as_me.lineno" ||
526 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
527
528 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
529 # already done that, so ensure we don't try to do so again and fall
530 # in an infinite loop. This has already happened in practice.
531 _as_can_reexec=no; export _as_can_reexec
532 # Don't try to exec as it changes $[0], causing all sort of problems
533 # (the dirname of $[0] is not the place where we might find the
534 # original and so on. Autoconf is especially sensitive to this).
535 . "./$as_me.lineno"
536 # Exit status is that of the last command.
537 exit
538 }
539
540
541 # Determine whether it's possible to make 'echo' print without a newline.
542 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
543 # for compatibility with existing Makefiles.
544 ECHO_C= ECHO_N= ECHO_T=
545 case `echo -n x` in #(((((
546 -n*)
547 case `echo 'xy\c'` in
548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
549 xy) ECHO_C='\c';;
550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
551 ECHO_T=' ';;
552 esac;;
553 *)
554 ECHO_N='-n';;
555 esac
556
557 # For backward compatibility with old third-party macros, we provide
558 # the shell variables $as_echo and $as_echo_n. New code should use
559 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
560 as_echo='printf %s\n'
561 as_echo_n='printf %s'
562
563 rm -f conf$$ conf$$.exe conf$$.file
564 if test -d conf$$.dir; then
565 rm -f conf$$.dir/conf$$.file
566 else
567 rm -f conf$$.dir
568 mkdir conf$$.dir 2>/dev/null
569 fi
570 if (echo >conf$$.file) 2>/dev/null; then
571 if ln -s conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s='ln -s'
573 # ... but there are two gotchas:
574 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
575 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
576 # In both cases, we have to default to 'cp -pR'.
577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
578 as_ln_s='cp -pR'
579 elif ln conf$$.file conf$$ 2>/dev/null; then
580 as_ln_s=ln
581 else
582 as_ln_s='cp -pR'
583 fi
584 else
585 as_ln_s='cp -pR'
586 fi
587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
588 rmdir conf$$.dir 2>/dev/null
589
590 if mkdir -p . 2>/dev/null; then
591 as_mkdir_p='mkdir -p "$as_dir"'
592 else
593 test -d ./-p && rmdir ./-p
594 as_mkdir_p=false
595 fi
596
597 as_test_x='test -x'
598 as_executable_p=as_fn_executable_p
599
600 # Sed expression to map a string onto a valid CPP name.
601 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
602 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
603
604 # Sed expression to map a string onto a valid variable name.
605 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
606 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
607
608 SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='gutenprint'
633 PACKAGE_TARNAME='gutenprint'
634 PACKAGE_VERSION='5.3.6-2026-02-01T02-18-9b0bdf87'
635 PACKAGE_STRING='gutenprint 5.3.6-2026-02-01T02-18-9b0bdf87'
636 PACKAGE_BUGREPORT='[email protected]'
637 PACKAGE_URL='https://gimp-print.sourceforge.net'
638
639 ac_unique_file="src/main/print-vars.c"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stddef.h>
643 #ifdef HAVE_STDIO_H
644 # include <stdio.h>
645 #endif
646 #ifdef HAVE_STDLIB_H
647 # include <stdlib.h>
648 #endif
649 #ifdef HAVE_STRING_H
650 # include <string.h>
651 #endif
652 #ifdef HAVE_INTTYPES_H
653 # include <inttypes.h>
654 #endif
655 #ifdef HAVE_STDINT_H
656 # include <stdint.h>
657 #endif
658 #ifdef HAVE_STRINGS_H
659 # include <strings.h>
660 #endif
661 #ifdef HAVE_SYS_TYPES_H
662 # include <sys/types.h>
663 #endif
664 #ifdef HAVE_SYS_STAT_H
665 # include <sys/stat.h>
666 #endif
667 #ifdef HAVE_UNISTD_H
668 # include <unistd.h>
669 #endif"
670
671 ac_header_c_list=
672 gt_needs=
673 ac_subst_vars='LTALLOCA
674 am__EXEEXT_FALSE
675 am__EXEEXT_TRUE
676 LTLIBOBJS
677 LIBOBJS
678 MINIMAL_PRINTERS_TO_TEST
679 PKGROOT
680 LIBUSB_BACKEND_LIBDEPS
681 GUTENPRINT_RELEASE_VERSION
682 GUTENPRINT_BASE_VERSION
683 BUILD_CUPS_PPDS
684 WHICH_PPDS
685 MAINTAINER_CFLAGS
686 LIBREADLINE_DEPS
687 LIBM
688 gutenprintui2_libdeps
689 gutenprintui2_libs
690 gutenprintui2_cflags
691 gutenprint_libdeps
692 gutenprint_libs
693 gutenprint_cflags
694 GUTENPRINTUI2_VERSION
695 GUTENPRINTUI2_LIBDEPS
696 GUTENPRINTUI2_LIBS
697 GUTENPRINTUI2_CFLAGS
698 GUTENPRINT_LIBDEPS
699 GUTENPRINT_LIBS
700 GUTENPRINT_CFLAGS
701 gimp2_plug_indir
702 RM
703 GENPPD_LIBS
704 CUPS_PPD_PS_LEVEL
705 CUPS_LIBS
706 CUPS_CFLAGS
707 cups_conf_serverroot
708 cups_conf_serverbin
709 cups_conf_datadir
710 cups_sbindir
711 cups_bindir
712 cups_exec_prefix
713 cups_prefix
714 PKGMODULEDIR
715 PKGXMLDATADIR
716 PACKAGE_BIN_DIR
717 PACKAGE_LIB_DIR
718 PACKAGE_DATA_DIR
719 PACKAGE_LOCALE_DIR
720 RELEASE_DATE
721 BUILD_GENPPD_STATIC_FALSE
722 BUILD_GENPPD_STATIC_TRUE
723 BUILD_MODULES_FALSE
724 BUILD_MODULES_TRUE
725 BUILD_LIBUSB_BACKENDS_FALSE
726 BUILD_LIBUSB_BACKENDS_TRUE
727 INSTALL_USER_GUIDE_FALSE
728 INSTALL_USER_GUIDE_TRUE
729 INSTALL_SAMPLES_FALSE
730 INSTALL_SAMPLES_TRUE
731 BUILD_GIMP2_AS_GUTENPRINT_FALSE
732 BUILD_GIMP2_AS_GUTENPRINT_TRUE
733 BUILD_DOC_FALSE
734 BUILD_DOC_TRUE
735 BUILD_GIMP2_FALSE
736 BUILD_GIMP2_TRUE
737 BUILD_LIBGUTENPRINTUI2_FALSE
738 BUILD_LIBGUTENPRINTUI2_TRUE
739 BUILD_TESTPATTERN_FALSE
740 BUILD_TESTPATTERN_TRUE
741 BUILD_TEST_FALSE
742 BUILD_TEST_TRUE
743 BUILD_ESCPUTIL_FALSE
744 BUILD_ESCPUTIL_TRUE
745 USE_LEVEL3_PS_FALSE
746 USE_LEVEL3_PS_TRUE
747 BUILD_SIMPLIFIED_CUPS_PPDS_FALSE
748 BUILD_SIMPLIFIED_CUPS_PPDS_TRUE
749 BUILD_GLOBALIZED_CUPS_PPDS_FALSE
750 BUILD_GLOBALIZED_CUPS_PPDS_TRUE
751 BUILD_TRANSLATED_CUPS_PPDS_FALSE
752 BUILD_TRANSLATED_CUPS_PPDS_TRUE
753 CUPS_PPDS_AT_TOP_LEVEL_FALSE
754 CUPS_PPDS_AT_TOP_LEVEL_TRUE
755 BUILD_CUPS_PPDS_FALSE
756 BUILD_CUPS_PPDS_TRUE
757 BUILD_CUPS_1_2_FALSE
758 BUILD_CUPS_1_2_TRUE
759 BUILD_CUPS_FALSE
760 BUILD_CUPS_TRUE
761 GNUCFLAGS
762 CSUF
763 COMPRESS
764 BASH
765 ZPAQ
766 RZIP
767 LRZIP
768 BZIP2
769 GZIP
770 XZ
771 DOXYGEN
772 DB2HTML
773 DB2PS
774 DVIPDF
775 DB2PDF
776 DVIPS
777 TEXI2HTML
778 BASHREAL
779 CONVERT
780 GLIB_MKENUMS
781 PERL
782 FIND
783 TRUE
784 TEST
785 YFLAGS
786 YACC
787 LEXLIB
788 LEX_OUTPUT_ROOT
789 LEX
790 GIMP2_LIBS
791 GIMP2_CFLAGS
792 GTK2_LIBS
793 GTK2_CFLAGS
794 GIMPTOOL2_CHECK
795 LIBUSB_LIBS
796 LIBUSB_CFLAGS
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 ENABLE_SHARED
801 ENABLE_STATIC
802 USE_NLS_FALSE
803 USE_NLS_TRUE
804 POSUB
805 LTLIBINTL
806 LIBINTL
807 INTLLIBS
808 LTLIBICONV
809 LIBICONV
810 INTL_MACOSX_LIBS
811 MSGMERGE
812 XGETTEXT_015
813 XGETTEXT
814 GMSGFMT_015
815 MSGFMT_015
816 GMSGFMT
817 MSGFMT
818 USE_NLS
819 CUPS_CONFIG
820 MAINT
821 MAINTAINER_MODE_FALSE
822 MAINTAINER_MODE_TRUE
823 LIBTOOL_DEPS
824 LT_SYS_LIBRARY_PATH
825 OTOOL64
826 OTOOL
827 LIPO
828 NMEDIT
829 DSYMUTIL
830 MANIFEST_TOOL
831 RANLIB
832 ac_ct_AR
833 AR
834 DLLTOOL
835 OBJDUMP
836 FILECMD
837 LN_S
838 NM
839 ac_ct_DUMPBIN
840 DUMPBIN
841 LD
842 FGREP
843 EGREP
844 GREP
845 SED
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 am__nodep
850 AMDEPBACKSLASH
851 AMDEP_FALSE
852 AMDEP_TRUE
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 LIBTOOL
871 ALL_LINGUAS
872 am__xargs_n
873 am__rm_f_notfound
874 AM_BACKSLASH
875 AM_DEFAULT_VERBOSITY
876 AM_DEFAULT_V
877 AM_V
878 CSCOPE
879 ETAGS
880 CTAGS
881 am__untar
882 am__tar
883 AMTAR
884 am__leading_dot
885 SET_MAKE
886 AWK
887 mkdir_p
888 MKDIR_P
889 INSTALL_STRIP_PROGRAM
890 STRIP
891 install_sh
892 MAKEINFO
893 AUTOHEADER
894 AUTOMAKE
895 AUTOCONF
896 ACLOCAL
897 VERSION
898 PACKAGE
899 CYGPATH_W
900 am__isrc
901 INSTALL_DATA
902 INSTALL_SCRIPT
903 INSTALL_PROGRAM
904 GUTENPRINTUI2_BINARY_AGE
905 GUTENPRINTUI2_INTERFACE_AGE
906 GUTENPRINTUI2_CURRENT_INTERFACE
907 GUTENPRINT_VERSION
908 GUTENPRINT_BINARY_AGE
909 GUTENPRINT_INTERFACE_AGE
910 GUTENPRINT_CURRENT_INTERFACE
911 GUTENPRINT_MICRO_VERSION
912 GUTENPRINT_MINOR_VERSION
913 GUTENPRINT_MAJOR_VERSION
914 target_alias
915 host_alias
916 build_alias
917 LIBS
918 ECHO_T
919 ECHO_N
920 ECHO_C
921 DEFS
922 mandir
923 localedir
924 libdir
925 psdir
926 pdfdir
927 dvidir
928 htmldir
929 infodir
930 docdir
931 oldincludedir
932 includedir
933 runstatedir
934 localstatedir
935 sharedstatedir
936 sysconfdir
937 datadir
938 datarootdir
939 libexecdir
940 sbindir
941 bindir
942 program_transform_name
943 prefix
944 exec_prefix
945 PACKAGE_URL
946 PACKAGE_BUGREPORT
947 PACKAGE_STRING
948 PACKAGE_VERSION
949 PACKAGE_TARNAME
950 PACKAGE_NAME
951 PATH_SEPARATOR
952 SHELL
953 am__quote'
954 ac_subst_files=''
955 ac_user_opts='
956 enable_option_checking
957 enable_silent_rules
958 enable_shared
959 enable_static
960 enable_pic
961 with_pic
962 enable_fast_install
963 enable_aix_soname
964 with_aix_soname
965 enable_dependency_tracking
966 with_gnu_ld
967 with_sysroot
968 enable_libtool_lock
969 enable_maintainer_mode
970 with_cups_config
971 with_cups
972 enable_nls
973 enable_rpath
974 with_libiconv_prefix
975 with_libintl_prefix
976 enable_nls_macosx
977 enable_cups_ppds
978 enable_cups_1_2_enhancements
979 enable_translated_cups_ppds
980 enable_globalized_cups_ppds
981 enable_simplified_cups_ppds
982 enable_cups_ppds_at_top_level
983 enable_cups_level3_ppds
984 enable_static_genppd
985 with_modules
986 enable_debug
987 enable_profile
988 with_readline
989 enable_user_install
990 with_gimp2
991 with_gimp2_as_gutenprint
992 enable_libgutenprintui2
993 enable_samples
994 enable_escputil
995 enable_test
996 with_doc
997 enable_testpattern
998 with_cups_nickname
999 with_archflags
1000 '
1001 ac_precious_vars='build_alias
1002 host_alias
1003 target_alias
1004 CC
1005 CFLAGS
1006 LDFLAGS
1007 LIBS
1008 CPPFLAGS
1009 LT_SYS_LIBRARY_PATH
1010 PKG_CONFIG
1011 PKG_CONFIG_PATH
1012 PKG_CONFIG_LIBDIR
1013 LIBUSB_CFLAGS
1014 LIBUSB_LIBS
1015 GTK2_CFLAGS
1016 GTK2_LIBS
1017 GIMP2_CFLAGS
1018 GIMP2_LIBS
1019 YACC
1020 YFLAGS'
1021
1022
1023 # Initialize some variables set by options.
1024 ac_init_help=
1025 ac_init_version=false
1026 ac_unrecognized_opts=
1027 ac_unrecognized_sep=
1028 # The variables have the same names as the options, with
1029 # dashes changed to underlines.
1030 cache_file=/dev/null
1031 exec_prefix=NONE
1032 no_create=
1033 no_recursion=
1034 prefix=NONE
1035 program_prefix=NONE
1036 program_suffix=NONE
1037 program_transform_name=s,x,x,
1038 silent=
1039 site=
1040 srcdir=
1041 verbose=
1042 x_includes=NONE
1043 x_libraries=NONE
1044
1045 # Installation directory options.
1046 # These are left unexpanded so users can "make install exec_prefix=/foo"
1047 # and all the variables that are supposed to be based on exec_prefix
1048 # by default will actually change.
1049 # Use braces instead of parens because sh, perl, etc. also accept them.
1050 # (The list follows the same order as the GNU Coding Standards.)
1051 bindir='${exec_prefix}/bin'
1052 sbindir='${exec_prefix}/sbin'
1053 libexecdir='${exec_prefix}/libexec'
1054 datarootdir='${prefix}/share'
1055 datadir='${datarootdir}'
1056 sysconfdir='${prefix}/etc'
1057 sharedstatedir='${prefix}/com'
1058 localstatedir='${prefix}/var'
1059 runstatedir='${localstatedir}/run'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1081 fi
1082
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1088
1089 case $ac_dashdash$ac_option in
1090 --)
1091 ac_dashdash=yes ;;
1092
1093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1094 ac_prev=bindir ;;
1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096 bindir=$ac_optarg ;;
1097
1098 -build | --build | --buil | --bui | --bu)
1099 ac_prev=build_alias ;;
1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101 build_alias=$ac_optarg ;;
1102
1103 -cache-file | --cache-file | --cache-fil | --cache-fi \
1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105 ac_prev=cache_file ;;
1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108 cache_file=$ac_optarg ;;
1109
1110 --config-cache | -C)
1111 cache_file=config.cache ;;
1112
1113 -datadir | --datadir | --datadi | --datad)
1114 ac_prev=datadir ;;
1115 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116 datadir=$ac_optarg ;;
1117
1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119 | --dataroo | --dataro | --datar)
1120 ac_prev=datarootdir ;;
1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123 datarootdir=$ac_optarg ;;
1124
1125 -disable-* | --disable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid feature name: '$ac_useropt'"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval enable_$ac_useropt=no ;;
1140
1141 -docdir | --docdir | --docdi | --doc | --do)
1142 ac_prev=docdir ;;
1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144 docdir=$ac_optarg ;;
1145
1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147 ac_prev=dvidir ;;
1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149 dvidir=$ac_optarg ;;
1150
1151 -enable-* | --enable-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid feature name: '$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "enable_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval enable_$ac_useropt=\$ac_optarg ;;
1166
1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169 | --exec | --exe | --ex)
1170 ac_prev=exec_prefix ;;
1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173 | --exec=* | --exe=* | --ex=*)
1174 exec_prefix=$ac_optarg ;;
1175
1176 -gas | --gas | --ga | --g)
1177 # Obsolete; use --with-gas.
1178 with_gas=yes ;;
1179
1180 -help | --help | --hel | --he | -h)
1181 ac_init_help=long ;;
1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183 ac_init_help=recursive ;;
1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185 ac_init_help=short ;;
1186
1187 -host | --host | --hos | --ho)
1188 ac_prev=host_alias ;;
1189 -host=* | --host=* | --hos=* | --ho=*)
1190 host_alias=$ac_optarg ;;
1191
1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193 ac_prev=htmldir ;;
1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195 | --ht=*)
1196 htmldir=$ac_optarg ;;
1197
1198 -includedir | --includedir | --includedi | --included | --include \
1199 | --includ | --inclu | --incl | --inc)
1200 ac_prev=includedir ;;
1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202 | --includ=* | --inclu=* | --incl=* | --inc=*)
1203 includedir=$ac_optarg ;;
1204
1205 -infodir | --infodir | --infodi | --infod | --info | --inf)
1206 ac_prev=infodir ;;
1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208 infodir=$ac_optarg ;;
1209
1210 -libdir | --libdir | --libdi | --libd)
1211 ac_prev=libdir ;;
1212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213 libdir=$ac_optarg ;;
1214
1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216 | --libexe | --libex | --libe)
1217 ac_prev=libexecdir ;;
1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219 | --libexe=* | --libex=* | --libe=*)
1220 libexecdir=$ac_optarg ;;
1221
1222 -localedir | --localedir | --localedi | --localed | --locale)
1223 ac_prev=localedir ;;
1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225 localedir=$ac_optarg ;;
1226
1227 -localstatedir | --localstatedir | --localstatedi | --localstated \
1228 | --localstate | --localstat | --localsta | --localst | --locals)
1229 ac_prev=localstatedir ;;
1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232 localstatedir=$ac_optarg ;;
1233
1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235 ac_prev=mandir ;;
1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237 mandir=$ac_optarg ;;
1238
1239 -nfp | --nfp | --nf)
1240 # Obsolete; use --without-fp.
1241 with_fp=no ;;
1242
1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244 | --no-cr | --no-c | -n)
1245 no_create=yes ;;
1246
1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249 no_recursion=yes ;;
1250
1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253 | --oldin | --oldi | --old | --ol | --o)
1254 ac_prev=oldincludedir ;;
1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258 oldincludedir=$ac_optarg ;;
1259
1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261 ac_prev=prefix ;;
1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263 prefix=$ac_optarg ;;
1264
1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266 | --program-pre | --program-pr | --program-p)
1267 ac_prev=program_prefix ;;
1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270 program_prefix=$ac_optarg ;;
1271
1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273 | --program-suf | --program-su | --program-s)
1274 ac_prev=program_suffix ;;
1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277 program_suffix=$ac_optarg ;;
1278
1279 -program-transform-name | --program-transform-name \
1280 | --program-transform-nam | --program-transform-na \
1281 | --program-transform-n | --program-transform- \
1282 | --program-transform | --program-transfor \
1283 | --program-transfo | --program-transf \
1284 | --program-trans | --program-tran \
1285 | --progr-tra | --program-tr | --program-t)
1286 ac_prev=program_transform_name ;;
1287 -program-transform-name=* | --program-transform-name=* \
1288 | --program-transform-nam=* | --program-transform-na=* \
1289 | --program-transform-n=* | --program-transform-=* \
1290 | --program-transform=* | --program-transfor=* \
1291 | --program-transfo=* | --program-transf=* \
1292 | --program-trans=* | --program-tran=* \
1293 | --progr-tra=* | --program-tr=* | --program-t=*)
1294 program_transform_name=$ac_optarg ;;
1295
1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297 ac_prev=pdfdir ;;
1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299 pdfdir=$ac_optarg ;;
1300
1301 -psdir | --psdir | --psdi | --psd | --ps)
1302 ac_prev=psdir ;;
1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304 psdir=$ac_optarg ;;
1305
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1308 silent=yes ;;
1309
1310 -runstatedir | --runstatedir | --runstatedi | --runstated \
1311 | --runstate | --runstat | --runsta | --runst | --runs \
1312 | --run | --ru | --r)
1313 ac_prev=runstatedir ;;
1314 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1315 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1316 | --run=* | --ru=* | --r=*)
1317 runstatedir=$ac_optarg ;;
1318
1319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1320 ac_prev=sbindir ;;
1321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1322 | --sbi=* | --sb=*)
1323 sbindir=$ac_optarg ;;
1324
1325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1327 | --sharedst | --shareds | --shared | --share | --shar \
1328 | --sha | --sh)
1329 ac_prev=sharedstatedir ;;
1330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1333 | --sha=* | --sh=*)
1334 sharedstatedir=$ac_optarg ;;
1335
1336 -site | --site | --sit)
1337 ac_prev=site ;;
1338 -site=* | --site=* | --sit=*)
1339 site=$ac_optarg ;;
1340
1341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1342 ac_prev=srcdir ;;
1343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1344 srcdir=$ac_optarg ;;
1345
1346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1347 | --syscon | --sysco | --sysc | --sys | --sy)
1348 ac_prev=sysconfdir ;;
1349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1351 sysconfdir=$ac_optarg ;;
1352
1353 -target | --target | --targe | --targ | --tar | --ta | --t)
1354 ac_prev=target_alias ;;
1355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1356 target_alias=$ac_optarg ;;
1357
1358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359 verbose=yes ;;
1360
1361 -version | --version | --versio | --versi | --vers | -V)
1362 ac_init_version=: ;;
1363
1364 -with-* | --with-*)
1365 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error $? "invalid package name: '$ac_useropt'"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1372 *"
1373 "with_$ac_useropt"
1374 "*) ;;
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1377 esac
1378 eval with_$ac_useropt=\$ac_optarg ;;
1379
1380 -without-* | --without-*)
1381 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384 as_fn_error $? "invalid package name: '$ac_useropt'"
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1388 *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1393 esac
1394 eval with_$ac_useropt=no ;;
1395
1396 --x)
1397 # Obsolete; use --with-x.
1398 with_x=yes ;;
1399
1400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401 | --x-incl | --x-inc | --x-in | --x-i)
1402 ac_prev=x_includes ;;
1403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405 x_includes=$ac_optarg ;;
1406
1407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409 ac_prev=x_libraries ;;
1410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412 x_libraries=$ac_optarg ;;
1413
1414 -*) as_fn_error $? "unrecognized option: '$ac_option'
1415 Try '$0 --help' for more information"
1416 ;;
1417
1418 *=*)
1419 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420 # Reject names that are not valid shell variable names.
1421 case $ac_envvar in #(
1422 '' | [0-9]* | *[!_$as_cr_alnum]* )
1423 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1424 esac
1425 eval $ac_envvar=\$ac_optarg
1426 export $ac_envvar ;;
1427
1428 *)
1429 # FIXME: should be removed in autoconf 3.0.
1430 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1431 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1433 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1434 ;;
1435
1436 esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441 as_fn_error $? "missing argument to $ac_option"
1442 fi
1443
1444 if test -n "$ac_unrecognized_opts"; then
1445 case $enable_option_checking in
1446 no) ;;
1447 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1448 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1449 esac
1450 fi
1451
1452 # Check all directory arguments for consistency.
1453 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1454 datadir sysconfdir sharedstatedir localstatedir includedir \
1455 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1456 libdir localedir mandir runstatedir
1457 do
1458 eval ac_val=\$$ac_var
1459 # Remove trailing slashes.
1460 case $ac_val in
1461 */ )
1462 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1463 eval $ac_var=\$ac_val;;
1464 esac
1465 # Be sure to have absolute directory names.
1466 case $ac_val in
1467 [\\/$]* | ?:[\\/]* ) continue;;
1468 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469 esac
1470 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1471 done
1472
1473 # There might be people who depend on the old broken behavior: '$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1476 build=$build_alias
1477 host=$host_alias
1478 target=$target_alias
1479
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482 if test "x$build_alias" = x; then
1483 cross_compiling=maybe
1484 elif test "x$build_alias" != "x$host_alias"; then
1485 cross_compiling=yes
1486 fi
1487 fi
1488
1489 ac_tool_prefix=
1490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1491
1492 test "$silent" = yes && exec 6>/dev/null
1493
1494
1495 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1496 ac_ls_di=`ls -di .` &&
1497 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1498 as_fn_error $? "working directory cannot be determined"
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500 as_fn_error $? "pwd does not report name of working directory"
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$as_myself" ||
1508 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$as_myself" : 'X\(//\)[^/]' \| \
1510 X"$as_myself" : 'X\(//\)$' \| \
1511 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1512 printf "%s\n" X"$as_myself" |
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514 s//\1/
1515 q
1516 }
1517 /^X\(\/\/\)[^/].*/{
1518 s//\1/
1519 q
1520 }
1521 /^X\(\/\/\)$/{
1522 s//\1/
1523 q
1524 }
1525 /^X\(\/\).*/{
1526 s//\1/
1527 q
1528 }
1529 s/.*/./; q'`
1530 srcdir=$ac_confdir
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 srcdir=..
1533 fi
1534 else
1535 ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1540 fi
1541 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1542 ac_abs_confdir=`(
1543 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1544 pwd)`
1545 # When building in place, set srcdir=.
1546 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 srcdir=.
1548 fi
1549 # Remove unnecessary trailing slashes from srcdir.
1550 # Double slashes in file names in object file debugging info
1551 # mess up M-x gdb in Emacs.
1552 case $srcdir in
1553 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 esac
1555 for ac_var in $ac_precious_vars; do
1556 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_env_${ac_var}_value=\$${ac_var}
1558 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1560 done
1561
1562 #
1563 # Report the --help message.
1564 #
1565 if test "$ac_init_help" = "long"; then
1566 # Omit some internal or obsolete options to make the list less imposing.
1567 # This message is too long to be a string in the A/UX 3.1 sh.
1568 cat <<_ACEOF
1569 'configure' configures gutenprint 5.3.6-2026-02-01T02-18-9b0bdf87 to adapt to many kinds of systems.
1570
1571 Usage: $0 [OPTION]... [VAR=VALUE]...
1572
1573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1574 VAR=VALUE. See below for descriptions of some of the useful variables.
1575
1576 Defaults for the options are specified in brackets.
1577
1578 Configuration:
1579 -h, --help display this help and exit
1580 --help=short display options specific to this package
1581 --help=recursive display the short help of all the included packages
1582 -V, --version display version information and exit
1583 -q, --quiet, --silent do not print 'checking ...' messages
1584 --cache-file=FILE cache test results in FILE [disabled]
1585 -C, --config-cache alias for '--cache-file=config.cache'
1586 -n, --no-create do not create output files
1587 --srcdir=DIR find the sources in DIR [configure dir or '..']
1588
1589 Installation directories:
1590 --prefix=PREFIX install architecture-independent files in PREFIX
1591 [$ac_default_prefix]
1592 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 [PREFIX]
1594
1595 By default, 'make install' will install all the files in
1596 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1597 an installation prefix other than '$ac_default_prefix' using '--prefix',
1598 for instance '--prefix=\$HOME'.
1599
1600 For better control, use the options below.
1601
1602 Fine tuning of the installation directories:
1603 --bindir=DIR user executables [EPREFIX/bin]
1604 --sbindir=DIR system admin executables [EPREFIX/sbin]
1605 --libexecdir=DIR program executables [EPREFIX/libexec]
1606 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1607 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1608 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1609 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1610 --libdir=DIR object code libraries [EPREFIX/lib]
1611 --includedir=DIR C header files [PREFIX/include]
1612 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1613 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1614 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1615 --infodir=DIR info documentation [DATAROOTDIR/info]
1616 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1617 --mandir=DIR man documentation [DATAROOTDIR/man]
1618 --docdir=DIR documentation root [DATAROOTDIR/doc/gutenprint]
1619 --htmldir=DIR html documentation [DOCDIR]
1620 --dvidir=DIR dvi documentation [DOCDIR]
1621 --pdfdir=DIR pdf documentation [DOCDIR]
1622 --psdir=DIR ps documentation [DOCDIR]
1623 _ACEOF
1624
1625 cat <<\_ACEOF
1626
1627 Program names:
1628 --program-prefix=PREFIX prepend PREFIX to installed program names
1629 --program-suffix=SUFFIX append SUFFIX to installed program names
1630 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1631
1632 System types:
1633 --build=BUILD configure for building on BUILD [guessed]
1634 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1635 _ACEOF
1636 fi
1637
1638 if test -n "$ac_init_help"; then
1639 case $ac_init_help in
1640 short | recursive ) echo "Configuration of gutenprint 5.3.6-2026-02-01T02-18-9b0bdf87:";;
1641 esac
1642 cat <<\_ACEOF
1643
1644 Optional Features:
1645 --disable-option-checking ignore unrecognized --enable/--with options
1646 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1647 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1648 --enable-silent-rules less verbose build output (undo: "make V=1")
1649 --disable-silent-rules verbose build output (undo: "make V=0")
1650 --enable-shared[=PKGS] build shared libraries [default=yes]
1651 --enable-static[=PKGS] build static libraries [default=yes]
1652 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1653 both]
1654 --enable-fast-install[=PKGS]
1655 optimize for fast installation [default=yes]
1656 --enable-aix-soname=aix|svr4|both
1657 shared library versioning (aka "SONAME") variant to
1658 provide on AIX, [default=aix].
1659 --enable-dependency-tracking
1660 do not reject slow dependency extractors
1661 --disable-dependency-tracking
1662 speeds up one-time build
1663 --disable-libtool-lock avoid locking (might break parallel builds)
1664 --enable-maintainer-mode
1665 enable make rules and dependencies not useful (and
1666 sometimes confusing) to the casual installer
1667 --disable-nls do not use Native Language Support
1668 --disable-rpath do not hardcode runtime library paths
1669 --enable-nls-macosx build CUPS PPD files [(automatic)]
1670 --enable-cups-ppds build CUPS PPD files [(automatic)]
1671 --enable-cups-1_2-enhancements
1672 build CUPS 1.2 enhancements [(automatic)]
1673 --enable-translated-cups-ppds
1674 build translated CUPS PPD files [(automatic)]
1675 --enable-globalized-cups-ppds
1676 build globalized CUPS PPD files [(automatic)]
1677 --enable-simplified-cups-ppds
1678 build simplified CUPS PPD files (options: yes, no,
1679 only) [no]
1680 --enable-cups-ppds-at-top-level
1681 place CUPS PPD files at top level [no]
1682 --enable-cups-level3-ppds
1683 generate PostScript level 3 PPD files [(automatic)]
1684 --enable-static-genppd build a statically-linked cups-genppd and
1685 rastertogutenprint. WARNING: Please read the README
1686 and NEWS (release notes) CAREFULLY before using
1687 --disable-static-genppd! [(automatic)]
1688 --enable-debug turn on debugging in build [no]
1689 --enable-profile turn on profiling in build [no]
1690 --enable-user-install install GIMP2 plugin in home directory [no]
1691 --enable-libgutenprintui2
1692 build Gutenprint GTK+-2.0 user interface library
1693 [(automatic)]
1694 --enable-samples install sample images [yes]
1695 --enable-escputil build escputil [yes]
1696 --enable-test build test programs [yes]
1697 --enable-testpattern build testpattern generator [(automatic)]
1698
1699 Optional Packages:
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1703 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1704 compiler's sysroot if not specified).
1705 --with-cups-config=path Specify path to cups-config executable.
1706 --with-cups=PREFIX whether to build CUPS driver (default PREFIX=/usr)
1707 [(automatic)]
1708 --with-gnu-ld assume the C compiler uses GNU ld default=no
1709 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1710 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1711 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1712 --without-libintl-prefix don't search for libintl in includedir and libdir
1713 --with-modules enable loadable modules (options: ltdl, dlopen,
1714 static) [(automatic)]
1715 --with-readline use readline (default tries -lncurses, -lcurses,
1716 -ltermcap) [yes]
1717 --with-gimp2 build GIMP 2.x Print plugin [(automatic)]
1718 --with-gimp2-as-gutenprint
1719 name GIMP 2.x Print plugin gutenprint (requires GIMP
1720 2.2; normally used with GIMP 2.4 or above)
1721 [(automatic)]
1722 --with-doc build Gutenprint documentation [yes]
1723 --with-cups-nickname="nickname suffix"
1724 Suffix to add to PPD NickName, default=" - CUPS+Gutenprint v"
1725 --with-archflags="..." additional options for CFLAGS and LDFLAGS
1726
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1735 LT_SYS_LIBRARY_PATH
1736 User-defined run-time library search path.
1737 PKG_CONFIG path to pkg-config utility
1738 PKG_CONFIG_PATH
1739 directories to add to pkg-config's search path
1740 PKG_CONFIG_LIBDIR
1741 path overriding pkg-config's built-in search path
1742 LIBUSB_CFLAGS
1743 C compiler flags for LIBUSB, overriding pkg-config
1744 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1745 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1746 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1747 GIMP2_CFLAGS
1748 C compiler flags for GIMP2, overriding pkg-config
1749 GIMP2_LIBS linker flags for GIMP2, overriding pkg-config
1750 YACC The 'Yet Another Compiler Compiler' implementation to use.
1751 Defaults to the first program found out of: 'bison -y', 'byacc',
1752 'yacc'.
1753 YFLAGS The list of arguments that will be passed by default to $YACC.
1754 This script will default YFLAGS to the empty string to avoid a
1755 default value of '-d' given by some make applications.
1756
1757 Use these variables to override the choices made by 'configure' or to help
1758 it to find libraries and programs with nonstandard names/locations.
1759
1760 Report bugs to <[email protected]>.
1761 gutenprint home page: <https://gimp-print.sourceforge.net>.
1762 _ACEOF
1763 ac_status=$?
1764 fi
1765
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771 continue
1772 ac_builddir=.
1773
1774 case "$ac_dir" in
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *)
1777 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783 esac ;;
1784 esac
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1789
1790 case $srcdir in
1791 .) # We are building in place.
1792 ac_srcdir=.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1799 *) # Relative name.
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 esac
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for configure.gnu first; this name is used for a wrapper for
1808 # Metaconfig's "Configure" on case-insensitive file systems.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 gutenprint configure 5.3.6-2026-02-01T02-18-9b0bdf87
1826 generated by GNU Autoconf 2.72
1827
1828 Copyright (C) 2023 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831
1832
1833 Parts of this configure script come from the 'configure.ac' file, and
1834 are not based on freely-redistributable m4 macros; you can redistribute
1835 them and/or modify them under the terms of the GNU General Public
1836 as published by the Free Software Foundation; either version 2, or (at
1837 your option) any later version.
1838
1839 This program is distributed in the hope that it will be useful,
1840 but WITHOUT ANY WARRANTY; without even the implied warranty of
1841 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1842 GNU General Public License for more details.
1843
1844 You should have received a copy of the GNU General Public License
1845 along with this program. If not, see <https://www.gnu.org/licenses/>.
1846
1847 _ACEOF
1848 exit
1849 fi
1850
1851 ## ------------------------ ##
1852 ## Autoconf initialization. ##
1853 ## ------------------------ ##
1854
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest.beam
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 printf "%s\n" "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext
1881 then :
1882 ac_retval=0
1883 else case e in #(
1884 e) printf "%s\n" "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1 ;;
1888 esac
1889 fi
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_compile
1894
1895 # ac_fn_c_try_link LINENO
1896 # -----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_c_try_link ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 printf "%s\n" "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }
1924 then :
1925 ac_retval=0
1926 else case e in #(
1927 e) printf "%s\n" "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1 ;;
1931 esac
1932 fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_link
1942
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 printf %s "checking for $2... " >&6; }
1952 if eval test \${$3+y}
1953 then :
1954 printf %s "(cached) " >&6
1955 else case e in #(
1956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"
1962 then :
1963 eval "$3=yes"
1964 else case e in #(
1965 e) eval "$3=no" ;;
1966 esac
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1969 esac
1970 fi
1971 eval ac_res=\$$3
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 printf "%s\n" "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_header_compile
1977
1978 # ac_fn_c_check_func LINENO FUNC VAR
1979 # ----------------------------------
1980 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1981 ac_fn_c_check_func ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 printf %s "checking for $2... " >&6; }
1986 if eval test \${$3+y}
1987 then :
1988 printf %s "(cached) " >&6
1989 else case e in #(
1990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1994 #define $2 innocuous_$2
1995
1996 /* System header to define __stub macros and hopefully few prototypes,
1997 which can conflict with char $2 (void); below. */
1998
1999 #include <limits.h>
2000 #undef $2
2001
2002 /* Override any GCC internal prototype to avoid an error.
2003 Use char because int might match the return type of a GCC
2004 builtin and then its argument prototype would still apply. */
2005 #ifdef __cplusplus
2006 extern "C"
2007 #endif
2008 char $2 (void);
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined __stub_$2 || defined __stub___$2
2013 choke me
2014 #endif
2015
2016 int
2017 main (void)
2018 {
2019 return $2 ();
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_link "$LINENO"
2025 then :
2026 eval "$3=yes"
2027 else case e in #(
2028 e) eval "$3=no" ;;
2029 esac
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2032 conftest$ac_exeext conftest.$ac_ext ;;
2033 esac
2034 fi
2035 eval ac_res=\$$3
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 printf "%s\n" "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_func
2041
2042 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043 # -------------------------------------------
2044 # Tests whether TYPE exists after having included INCLUDES, setting cache
2045 # variable VAR accordingly.
2046 ac_fn_c_check_type ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 printf %s "checking for $2... " >&6; }
2051 if eval test \${$3+y}
2052 then :
2053 printf %s "(cached) " >&6
2054 else case e in #(
2055 e) eval "$3=no"
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main (void)
2061 {
2062 if (sizeof ($2))
2063 return 0;
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"
2069 then :
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main (void)
2075 {
2076 if (sizeof (($2)))
2077 return 0;
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"
2083 then :
2084
2085 else case e in #(
2086 e) eval "$3=yes" ;;
2087 esac
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2092 esac
2093 fi
2094 eval ac_res=\$$3
2095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 printf "%s\n" "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099 } # ac_fn_c_check_type
2100
2101 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2102 # ------------------------------------------------------------------
2103 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2104 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2105 ac_fn_check_decl ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 as_decl_name=`echo $2|sed 's/ *(.*//'`
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2110 printf %s "checking whether $as_decl_name is declared... " >&6; }
2111 if eval test \${$3+y}
2112 then :
2113 printf %s "(cached) " >&6
2114 else case e in #(
2115 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2116 eval ac_save_FLAGS=\$$6
2117 as_fn_append $6 " $5"
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main (void)
2123 {
2124 #ifndef $as_decl_name
2125 #ifdef __cplusplus
2126 (void) $as_decl_use;
2127 #else
2128 (void) $as_decl_name;
2129 #endif
2130 #endif
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"
2137 then :
2138 eval "$3=yes"
2139 else case e in #(
2140 e) eval "$3=no" ;;
2141 esac
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 eval $6=\$ac_save_FLAGS
2145 ;;
2146 esac
2147 fi
2148 eval ac_res=\$$3
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 printf "%s\n" "$ac_res" >&6; }
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152
2153 } # ac_fn_check_decl
2154 ac_configure_args_raw=
2155 for ac_arg
2156 do
2157 case $ac_arg in
2158 *\'*)
2159 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 esac
2161 as_fn_append ac_configure_args_raw " '$ac_arg'"
2162 done
2163
2164 case $ac_configure_args_raw in
2165 *$as_nl*)
2166 ac_safe_unquote= ;;
2167 *)
2168 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2169 ac_unsafe_a="$ac_unsafe_z#~"
2170 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2171 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2172 esac
2173
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by gutenprint $as_me 5.3.6-2026-02-01T02-18-9b0bdf87, which was
2179 generated by GNU Autoconf 2.72. Invocation command line was
2180
2181 $ $0$ac_configure_args_raw
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 case $as_dir in #(((
2215 '') as_dir=./ ;;
2216 */) ;;
2217 *) as_dir=$as_dir/ ;;
2218 esac
2219 printf "%s\n" "PATH: $as_dir"
2220 done
2221 IFS=$as_save_IFS
2222
2223 } >&5
2224
2225 cat >&5 <<_ACEOF
2226
2227
2228 ## ----------- ##
2229 ## Core tests. ##
2230 ## ----------- ##
2231
2232 _ACEOF
2233
2234
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2240 ac_configure_args=
2241 ac_configure_args0=
2242 ac_configure_args1=
2243 ac_must_keep_next=false
2244 for ac_pass in 1 2
2245 do
2246 for ac_arg
2247 do
2248 case $ac_arg in
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2252 continue ;;
2253 *\'*)
2254 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 esac
2256 case $ac_pass in
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258 2)
2259 as_fn_append ac_configure_args1 " '$ac_arg'"
2260 if test $ac_must_keep_next = true; then
2261 ac_must_keep_next=false # Got value, back to normal.
2262 else
2263 case $ac_arg in
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 esac
2271 ;;
2272 -* ) ac_must_keep_next=true ;;
2273 esac
2274 fi
2275 as_fn_append ac_configure_args " '$ac_arg'"
2276 ;;
2277 esac
2278 done
2279 done
2280 { ac_configure_args0=; unset ac_configure_args0;}
2281 { ac_configure_args1=; unset ac_configure_args1;}
2282
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log. We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289 # Sanitize IFS.
2290 IFS=" "" $as_nl"
2291 # Save into config.log some information that might help in debugging.
2292 {
2293 echo
2294
2295 printf "%s\n" "## ---------------- ##
2296 ## Cache variables. ##
2297 ## ---------------- ##"
2298 echo
2299 # The following way of writing the cache mishandles newlines in values,
2300 (
2301 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in #(
2304 *${as_nl}*)
2305 case $ac_var in #(
2306 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2307 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308 esac
2309 case $ac_var in #(
2310 _ | IFS | as_nl) ;; #(
2311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2312 *) { eval $ac_var=; unset $ac_var;} ;;
2313 esac ;;
2314 esac
2315 done
2316 (set) 2>&1 |
2317 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2318 *${as_nl}ac_space=\ *)
2319 sed -n \
2320 "s/'\''/'\''\\\\'\'''\''/g;
2321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322 ;; #(
2323 *)
2324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2325 ;;
2326 esac |
2327 sort
2328 )
2329 echo
2330
2331 printf "%s\n" "## ----------------- ##
2332 ## Output variables. ##
2333 ## ----------------- ##"
2334 echo
2335 for ac_var in $ac_subst_vars
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 printf "%s\n" "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344
2345 if test -n "$ac_subst_files"; then
2346 printf "%s\n" "## ------------------- ##
2347 ## File substitutions. ##
2348 ## ------------------- ##"
2349 echo
2350 for ac_var in $ac_subst_files
2351 do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 printf "%s\n" "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2359 fi
2360
2361 if test -s confdefs.h; then
2362 printf "%s\n" "## ----------- ##
2363 ## confdefs.h. ##
2364 ## ----------- ##"
2365 echo
2366 cat confdefs.h
2367 echo
2368 fi
2369 test "$ac_signal" != 0 &&
2370 printf "%s\n" "$as_me: caught signal $ac_signal"
2371 printf "%s\n" "$as_me: exit $exit_status"
2372 } >&5
2373 rm -f core *.core core.conftest.* &&
2374 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 exit $exit_status
2376 ' 0
2377 for ac_signal in 1 2 13 15; do
2378 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379 done
2380 ac_signal=0
2381
2382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2383 rm -f -r conftest* confdefs.h
2384
2385 printf "%s\n" "/* confdefs.h */" > confdefs.h
2386
2387 # Predefined preprocessor variables.
2388
2389 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2390
2391 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2392
2393 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2394
2395 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2396
2397 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2398
2399 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2400
2401
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 if test -n "$CONFIG_SITE"; then
2405 ac_site_files="$CONFIG_SITE"
2406 elif test "x$prefix" != xNONE; then
2407 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2408 else
2409 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2410 fi
2411
2412 for ac_site_file in $ac_site_files
2413 do
2414 case $ac_site_file in #(
2415 */*) :
2416 ;; #(
2417 *) :
2418 ac_site_file=./$ac_site_file ;;
2419 esac
2420 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2423 sed 's/^/| /' "$ac_site_file" >&5
2424 . "$ac_site_file" \
2425 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2426 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2427 as_fn_error $? "failed to load site script $ac_site_file
2428 See 'config.log' for more details" "$LINENO" 5; }
2429 fi
2430 done
2431
2432 if test -r "$cache_file"; then
2433 # Some versions of bash will fail to source /dev/null (special files
2434 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2435 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2438 case $cache_file in
2439 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440 *) . "./$cache_file";;
2441 esac
2442 fi
2443 else
2444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2446 >$cache_file
2447 fi
2448
2449 # Test code for whether the C compiler supports C89 (global declarations)
2450 ac_c_conftest_c89_globals='
2451 /* Does the compiler advertise C89 conformance?
2452 Do not test the value of __STDC__, because some compilers set it to 0
2453 while being otherwise adequately conformant. */
2454 #if !defined __STDC__
2455 # error "Compiler does not advertise C89 conformance"
2456 #endif
2457
2458 #include <stddef.h>
2459 #include <stdarg.h>
2460 struct stat;
2461 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2462 struct buf { int x; };
2463 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2464 static char *e (char **p, int i)
2465 {
2466 return p[i];
2467 }
2468 static char *f (char * (*g) (char **, int), char **p, ...)
2469 {
2470 char *s;
2471 va_list v;
2472 va_start (v,p);
2473 s = g (p, va_arg (v,int));
2474 va_end (v);
2475 return s;
2476 }
2477
2478 /* C89 style stringification. */
2479 #define noexpand_stringify(a) #a
2480 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2481
2482 /* C89 style token pasting. Exercises some of the corner cases that
2483 e.g. old MSVC gets wrong, but not very hard. */
2484 #define noexpand_concat(a,b) a##b
2485 #define expand_concat(a,b) noexpand_concat(a,b)
2486 extern int vA;
2487 extern int vbee;
2488 #define aye A
2489 #define bee B
2490 int *pvA = &expand_concat(v,aye);
2491 int *pvbee = &noexpand_concat(v,bee);
2492
2493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2494 function prototypes and stuff, but not \xHH hex character constants.
2495 These do not provoke an error unfortunately, instead are silently treated
2496 as an "x". The following induces an error, until -std is added to get
2497 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2498 array size at least. It is necessary to write \x00 == 0 to get something
2499 that is true only with -std. */
2500 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2501
2502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2503 inside strings and character constants. */
2504 #define FOO(x) '\''x'\''
2505 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2506
2507 int test (int i, double x);
2508 struct s1 {int (*f) (int a);};
2509 struct s2 {int (*f) (double a);};
2510 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2511 int, int);'
2512
2513 # Test code for whether the C compiler supports C89 (body of main).
2514 ac_c_conftest_c89_main='
2515 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2516 '
2517
2518 # Test code for whether the C compiler supports C99 (global declarations)
2519 ac_c_conftest_c99_globals='
2520 /* Does the compiler advertise C99 conformance? */
2521 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2522 # error "Compiler does not advertise C99 conformance"
2523 #endif
2524
2525 // See if C++-style comments work.
2526
2527 #include <stdbool.h>
2528 extern int puts (const char *);
2529 extern int printf (const char *, ...);
2530 extern int dprintf (int, const char *, ...);
2531 extern void *malloc (size_t);
2532 extern void free (void *);
2533
2534 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2535 // dprintf is used instead of fprintf to avoid needing to declare
2536 // FILE and stderr.
2537 #define debug(...) dprintf (2, __VA_ARGS__)
2538 #define showlist(...) puts (#__VA_ARGS__)
2539 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2540 static void
2541 test_varargs_macros (void)
2542 {
2543 int x = 1234;
2544 int y = 5678;
2545 debug ("Flag");
2546 debug ("X = %d\n", x);
2547 showlist (The first, second, and third items.);
2548 report (x>y, "x is %d but y is %d", x, y);
2549 }
2550
2551 // Check long long types.
2552 #define BIG64 18446744073709551615ull
2553 #define BIG32 4294967295ul
2554 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2555 #if !BIG_OK
2556 #error "your preprocessor is broken"
2557 #endif
2558 #if BIG_OK
2559 #else
2560 #error "your preprocessor is broken"
2561 #endif
2562 static long long int bignum = -9223372036854775807LL;
2563 static unsigned long long int ubignum = BIG64;
2564
2565 struct incomplete_array
2566 {
2567 int datasize;
2568 double data[];
2569 };
2570
2571 struct named_init {
2572 int number;
2573 const wchar_t *name;
2574 double average;
2575 };
2576
2577 typedef const char *ccp;
2578
2579 static inline int
2580 test_restrict (ccp restrict text)
2581 {
2582 // Iterate through items via the restricted pointer.
2583 // Also check for declarations in for loops.
2584 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2585 continue;
2586 return 0;
2587 }
2588
2589 // Check varargs and va_copy.
2590 static bool
2591 test_varargs (const char *format, ...)
2592 {
2593 va_list args;
2594 va_start (args, format);
2595 va_list args_copy;
2596 va_copy (args_copy, args);
2597
2598 const char *str = "";
2599 int number = 0;
2600 float fnumber = 0;
2601
2602 while (*format)
2603 {
2604 switch (*format++)
2605 {
2606 case '\''s'\'': // string
2607 str = va_arg (args_copy, const char *);
2608 break;
2609 case '\''d'\'': // int
2610 number = va_arg (args_copy, int);
2611 break;
2612 case '\''f'\'': // float
2613 fnumber = va_arg (args_copy, double);
2614 break;
2615 default:
2616 break;
2617 }
2618 }
2619 va_end (args_copy);
2620 va_end (args);
2621
2622 return *str && number && fnumber;
2623 }
2624 '
2625
2626 # Test code for whether the C compiler supports C99 (body of main).
2627 ac_c_conftest_c99_main='
2628 // Check bool.
2629 _Bool success = false;
2630 success |= (argc != 0);
2631
2632 // Check restrict.
2633 if (test_restrict ("String literal") == 0)
2634 success = true;
2635 char *restrict newvar = "Another string";
2636
2637 // Check varargs.
2638 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2639 test_varargs_macros ();
2640
2641 // Check flexible array members.
2642 struct incomplete_array *ia =
2643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2644 ia->datasize = 10;
2645 for (int i = 0; i < ia->datasize; ++i)
2646 ia->data[i] = i * 1.234;
2647 // Work around memory leak warnings.
2648 free (ia);
2649
2650 // Check named initializers.
2651 struct named_init ni = {
2652 .number = 34,
2653 .name = L"Test wide string",
2654 .average = 543.34343,
2655 };
2656
2657 ni.number = 58;
2658
2659 int dynamic_array[ni.number];
2660 dynamic_array[0] = argv[0][0];
2661 dynamic_array[ni.number - 1] = 543;
2662
2663 // work around unused variable warnings
2664 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2665 || dynamic_array[ni.number - 1] != 543);
2666 '
2667
2668 # Test code for whether the C compiler supports C11 (global declarations)
2669 ac_c_conftest_c11_globals='
2670 /* Does the compiler advertise C11 conformance? */
2671 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2672 # error "Compiler does not advertise C11 conformance"
2673 #endif
2674
2675 // Check _Alignas.
2676 char _Alignas (double) aligned_as_double;
2677 char _Alignas (0) no_special_alignment;
2678 extern char aligned_as_int;
2679 char _Alignas (0) _Alignas (int) aligned_as_int;
2680
2681 // Check _Alignof.
2682 enum
2683 {
2684 int_alignment = _Alignof (int),
2685 int_array_alignment = _Alignof (int[100]),
2686 char_alignment = _Alignof (char)
2687 };
2688 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2689
2690 // Check _Noreturn.
2691 int _Noreturn does_not_return (void) { for (;;) continue; }
2692
2693 // Check _Static_assert.
2694 struct test_static_assert
2695 {
2696 int x;
2697 _Static_assert (sizeof (int) <= sizeof (long int),
2698 "_Static_assert does not work in struct");
2699 long int y;
2700 };
2701
2702 // Check UTF-8 literals.
2703 #define u8 syntax error!
2704 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2705
2706 // Check duplicate typedefs.
2707 typedef long *long_ptr;
2708 typedef long int *long_ptr;
2709 typedef long_ptr long_ptr;
2710
2711 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2712 struct anonymous
2713 {
2714 union {
2715 struct { int i; int j; };
2716 struct { int k; long int l; } w;
2717 };
2718 int m;
2719 } v1;
2720 '
2721
2722 # Test code for whether the C compiler supports C11 (body of main).
2723 ac_c_conftest_c11_main='
2724 _Static_assert ((offsetof (struct anonymous, i)
2725 == offsetof (struct anonymous, w.k)),
2726 "Anonymous union alignment botch");
2727 v1.i = 2;
2728 v1.w.k = 5;
2729 ok |= v1.i != 5;
2730 '
2731
2732 # Test code for whether the C compiler supports C11 (complete).
2733 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2734 ${ac_c_conftest_c99_globals}
2735 ${ac_c_conftest_c11_globals}
2736
2737 int
2738 main (int argc, char **argv)
2739 {
2740 int ok = 0;
2741 ${ac_c_conftest_c89_main}
2742 ${ac_c_conftest_c99_main}
2743 ${ac_c_conftest_c11_main}
2744 return ok;
2745 }
2746 "
2747
2748 # Test code for whether the C compiler supports C99 (complete).
2749 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2750 ${ac_c_conftest_c99_globals}
2751
2752 int
2753 main (int argc, char **argv)
2754 {
2755 int ok = 0;
2756 ${ac_c_conftest_c89_main}
2757 ${ac_c_conftest_c99_main}
2758 return ok;
2759 }
2760 "
2761
2762 # Test code for whether the C compiler supports C89 (complete).
2763 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2764
2765 int
2766 main (int argc, char **argv)
2767 {
2768 int ok = 0;
2769 ${ac_c_conftest_c89_main}
2770 return ok;
2771 }
2772 "
2773
2774 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2775 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2776 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2777 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2778 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2779 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2780 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2781 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2782 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2783 gt_needs="$gt_needs "
2784
2785 # Auxiliary files required by this configure script.
2786 ac_aux_files="config.rpath compile config.guess config.sub ltmain.sh missing install-sh"
2787
2788 # Locations in which to look for auxiliary files.
2789 ac_aux_dir_candidates="${srcdir}/scripts"
2790
2791 # Search for a directory containing all of the required auxiliary files,
2792 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2793 # If we don't find one directory that contains all the files we need,
2794 # we report the set of missing files from the *first* directory in
2795 # $ac_aux_dir_candidates and give up.
2796 ac_missing_aux_files=""
2797 ac_first_candidate=:
2798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 as_found=false
2801 for as_dir in $ac_aux_dir_candidates
2802 do
2803 IFS=$as_save_IFS
2804 case $as_dir in #(((
2805 '') as_dir=./ ;;
2806 */) ;;
2807 *) as_dir=$as_dir/ ;;
2808 esac
2809 as_found=:
2810
2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2812 ac_aux_dir_found=yes
2813 ac_install_sh=
2814 for ac_aux in $ac_aux_files
2815 do
2816 # As a special case, if "install-sh" is required, that requirement
2817 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2818 # and $ac_install_sh is set appropriately for whichever one is found.
2819 if test x"$ac_aux" = x"install-sh"
2820 then
2821 if test -f "${as_dir}install-sh"; then
2822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2823 ac_install_sh="${as_dir}install-sh -c"
2824 elif test -f "${as_dir}install.sh"; then
2825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2826 ac_install_sh="${as_dir}install.sh -c"
2827 elif test -f "${as_dir}shtool"; then
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2829 ac_install_sh="${as_dir}shtool install -c"
2830 else
2831 ac_aux_dir_found=no
2832 if $ac_first_candidate; then
2833 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2834 else
2835 break
2836 fi
2837 fi
2838 else
2839 if test -f "${as_dir}${ac_aux}"; then
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2841 else
2842 ac_aux_dir_found=no
2843 if $ac_first_candidate; then
2844 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2845 else
2846 break
2847 fi
2848 fi
2849 fi
2850 done
2851 if test "$ac_aux_dir_found" = yes; then
2852 ac_aux_dir="$as_dir"
2853 break
2854 fi
2855 ac_first_candidate=false
2856
2857 as_found=false
2858 done
2859 IFS=$as_save_IFS
2860 if $as_found
2861 then :
2862
2863 else case e in #(
2864 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2865 esac
2866 fi
2867
2868
2869 # These three variables are undocumented and unsupported,
2870 # and are intended to be withdrawn in a future Autoconf release.
2871 # They can cause serious problems if a builder's source tree is in a directory
2872 # whose full name contains unusual characters.
2873 if test -f "${ac_aux_dir}config.guess"; then
2874 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2875 fi
2876 if test -f "${ac_aux_dir}config.sub"; then
2877 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2878 fi
2879 if test -f "$ac_aux_dir/configure"; then
2880 ac_configure="$SHELL ${ac_aux_dir}configure"
2881 fi
2882
2883 # Check that the precious variables saved in the cache have kept the same
2884 # value.
2885 ac_cache_corrupted=false
2886 for ac_var in $ac_precious_vars; do
2887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2888 eval ac_new_set=\$ac_env_${ac_var}_set
2889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2890 eval ac_new_val=\$ac_env_${ac_var}_value
2891 case $ac_old_set,$ac_new_set in
2892 set,)
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2894 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2895 ac_cache_corrupted=: ;;
2896 ,set)
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2898 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2899 ac_cache_corrupted=: ;;
2900 ,);;
2901 *)
2902 if test "x$ac_old_val" != "x$ac_new_val"; then
2903 # differences in whitespace do not lead to failure.
2904 ac_old_val_w=`echo x $ac_old_val`
2905 ac_new_val_w=`echo x $ac_new_val`
2906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2908 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2909 ac_cache_corrupted=:
2910 else
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2912 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2913 eval $ac_var=\$ac_old_val
2914 fi
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2916 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2918 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2919 fi;;
2920 esac
2921 # Pass precious variables to config.status.
2922 if test "$ac_new_set" = set; then
2923 case $ac_new_val in
2924 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2925 *) ac_arg=$ac_var=$ac_new_val ;;
2926 esac
2927 case " $ac_configure_args " in
2928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2930 esac
2931 fi
2932 done
2933 if $ac_cache_corrupted; then
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2938 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2939 and start over" "$LINENO" 5
2940 fi
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960 GUTENPRINT_MAJOR_VERSION=5
2961 GUTENPRINT_MINOR_VERSION=3
2962 GUTENPRINT_MICRO_VERSION=6
2963 GUTENPRINT_EXTRA_VERSION=-2026-02-01T02-18-9b0bdf87
2964 GUTENPRINT_CURRENT_INTERFACE=15
2965 GUTENPRINT_INTERFACE_AGE=0
2966 GUTENPRINT_BINARY_AGE=6
2967 GUTENPRINT_VERSION=5.3.6-2026-02-01T02-18-9b0bdf87
2968 GUTENPRINTUI2_CURRENT_INTERFACE=8
2969 GUTENPRINTUI2_INTERFACE_AGE=0
2970 GUTENPRINTUI2_BINARY_AGE=6
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980 configure_args=
2981
2982 for arg in "$@" ; do
2983 if test -n "$configure_args" ; then
2984 configure_args="$configure_args "
2985 fi
2986 if echo "$arg" | grep -q '\s' ; then
2987 arg="'$arg'"
2988 fi
2989 configure_args="$configure_args$arg"
2990 done
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003 CFLAGS="${CFLAGS:=}"
3004 CPPFLAGS="${CPPFLAGS:=}"
3005 CXXFLAGS="${CXXFLAGS:=}"
3006 LDFLAGS="${LDFLAGS:=}"
3007 LIBS="${LIBS:=}"
3008
3009 am__api_version='1.18'
3010
3011
3012
3013 # Find a good install program. We prefer a C program (faster),
3014 # so one script is as good as another. But avoid the broken or
3015 # incompatible versions:
3016 # SysV /etc/install, /usr/sbin/install
3017 # SunOS /usr/etc/install
3018 # IRIX /sbin/install
3019 # AIX /bin/install
3020 # AmigaOS /C/install, which installs bootblocks on floppy discs
3021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024 # OS/2's system install, which has a completely different semantic
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 # Reject install programs that cannot install multiple files.
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3028 printf %s "checking for a BSD-compatible install... " >&6; }
3029 if test -z "$INSTALL"; then
3030 if test ${ac_cv_path_install+y}
3031 then :
3032 printf %s "(cached) " >&6
3033 else case e in #(
3034 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 # Account for fact that we put trailing slashes in our PATH walk.
3044 case $as_dir in #((
3045 ./ | /[cC]/* | \
3046 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3047 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3048 /usr/ucb/* ) ;;
3049 *)
3050 # OSF1 and SCO ODT 3.0 have their own names for install.
3051 # Don't use installbsd from OSF since it installs stuff as root
3052 # by default.
3053 for ac_prog in ginstall scoinst install; do
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3056 if test $ac_prog = install &&
3057 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3058 # AIX install. It has an incompatible calling convention.
3059 :
3060 elif test $ac_prog = install &&
3061 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062 # program-specific install script used by HP pwplus--don't use.
3063 :
3064 else
3065 rm -rf conftest.one conftest.two conftest.dir
3066 echo one > conftest.one
3067 echo two > conftest.two
3068 mkdir conftest.dir
3069 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3070 test -s conftest.one && test -s conftest.two &&
3071 test -s conftest.dir/conftest.one &&
3072 test -s conftest.dir/conftest.two
3073 then
3074 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3075 break 3
3076 fi
3077 fi
3078 fi
3079 done
3080 done
3081 ;;
3082 esac
3083
3084 done
3085 IFS=$as_save_IFS
3086
3087 rm -rf conftest.one conftest.two conftest.dir
3088 ;;
3089 esac
3090 fi
3091 if test ${ac_cv_path_install+y}; then
3092 INSTALL=$ac_cv_path_install
3093 else
3094 # As a last resort, use the slow shell script. Don't cache a
3095 # value for INSTALL within a source directory, because that will
3096 # break other packages using the cache if that directory is
3097 # removed, or if the value is a relative name.
3098 INSTALL=$ac_install_sh
3099 fi
3100 fi
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3102 printf "%s\n" "$INSTALL" >&6; }
3103
3104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3105 # It thinks the first close brace ends the variable substitution.
3106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3107
3108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3109
3110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3111
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3113 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3114 if test ${am_cv_sleep_fractional_seconds+y}
3115 then :
3116 printf %s "(cached) " >&6
3117 else case e in #(
3118 e) if sleep 0.001 2>/dev/null
3119 then :
3120 am_cv_sleep_fractional_seconds=yes
3121 else case e in #(
3122 e) am_cv_sleep_fractional_seconds=no ;;
3123 esac
3124 fi
3125 ;;
3126 esac
3127 fi
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3129 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3130
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3132 printf %s "checking filesystem timestamp resolution... " >&6; }
3133 if test ${am_cv_filesystem_timestamp_resolution+y}
3134 then :
3135 printf %s "(cached) " >&6
3136 else case e in #(
3137 e) # Default to the worst case.
3138 am_cv_filesystem_timestamp_resolution=2
3139
3140 # Only try to go finer than 1 sec if sleep can do it.
3141 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3142 # - 1 sec is not much of a win compared to 2 sec, and
3143 # - it takes 2 seconds to perform the test whether 1 sec works.
3144 #
3145 # Instead, just use the default 2s on platforms that have 1s resolution,
3146 # accept the extra 1s delay when using $sleep in the Automake tests, in
3147 # exchange for not incurring the 2s delay for running the test for all
3148 # packages.
3149 #
3150 am_try_resolutions=
3151 if test "$am_cv_sleep_fractional_seconds" = yes; then
3152 # Even a millisecond often causes a bunch of false positives,
3153 # so just try a hundredth of a second. The time saved between .001 and
3154 # .01 is not terribly consequential.
3155 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3156 fi
3157
3158 # In order to catch current-generation FAT out, we must *modify* files
3159 # that already exist; the *creation* timestamp is finer. Use names
3160 # that make ls -t sort them differently when they have equal
3161 # timestamps than when they have distinct timestamps, keeping
3162 # in mind that ls -t prints the *newest* file first.
3163 rm -f conftest.ts?
3164 : > conftest.ts1
3165 : > conftest.ts2
3166 : > conftest.ts3
3167
3168 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3169 # clobber the current shell's arguments. (Outer-level square brackets
3170 # are removed by m4; they're present so that m4 does not expand
3171 # <dollar><star>; be careful, easy to get confused.)
3172 if (
3173 set X `ls -t conftest.ts[12]` &&
3174 {
3175 test "$*" != "X conftest.ts1 conftest.ts2" ||
3176 test "$*" != "X conftest.ts2 conftest.ts1";
3177 }
3178 ); then :; else
3179 # If neither matched, then we have a broken ls. This can happen
3180 # if, for instance, CONFIG_SHELL is bash and it inherits a
3181 # broken ls alias from the environment. This has actually
3182 # happened. Such a system could not be considered "sane".
3183 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3185 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3186 as_fn_error $? "ls -t produces unexpected output.
3187 Make sure there is not a broken ls alias in your environment.
3188 See 'config.log' for more details" "$LINENO" 5; }
3189 fi
3190
3191 for am_try_res in $am_try_resolutions; do
3192 # Any one fine-grained sleep might happen to cross the boundary
3193 # between two values of a coarser actual resolution, but if we do
3194 # two fine-grained sleeps in a row, at least one of them will fall
3195 # entirely within a coarse interval.
3196 echo alpha > conftest.ts1
3197 sleep $am_try_res
3198 echo beta > conftest.ts2
3199 sleep $am_try_res
3200 echo gamma > conftest.ts3
3201
3202 # We assume that 'ls -t' will make use of high-resolution
3203 # timestamps if the operating system supports them at all.
3204 if (set X `ls -t conftest.ts?` &&
3205 test "$2" = conftest.ts3 &&
3206 test "$3" = conftest.ts2 &&
3207 test "$4" = conftest.ts1); then
3208 #
3209 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3210 # because we don't need to test make.
3211 make_ok=true
3212 if test $am_try_res != 1; then
3213 # But if we've succeeded so far with a subsecond resolution, we
3214 # have one more thing to check: make. It can happen that
3215 # everything else supports the subsecond mtimes, but make doesn't;
3216 # notably on macOS, which ships make 3.81 from 2006 (the last one
3217 # released under GPLv2). https://bugs.gnu.org/68808
3218 #
3219 # We test $MAKE if it is defined in the environment, else "make".
3220 # It might get overridden later, but our hope is that in practice
3221 # it does not matter: it is the system "make" which is (by far)
3222 # the most likely to be broken, whereas if the user overrides it,
3223 # probably they did so with a better, or at least not worse, make.
3224 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3225 #
3226 # Create a Makefile (real tab character here):
3227 rm -f conftest.mk
3228 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3229 echo ' touch conftest.ts2' >>conftest.mk
3230 #
3231 # Now, running
3232 # touch conftest.ts1; touch conftest.ts2; make
3233 # should touch ts1 because ts2 is newer. This could happen by luck,
3234 # but most often, it will fail if make's support is insufficient. So
3235 # test for several consecutive successes.
3236 #
3237 # (We reuse conftest.ts[12] because we still want to modify existing
3238 # files, not create new ones, per above.)
3239 n=0
3240 make=${MAKE-make}
3241 until test $n -eq 3; do
3242 echo one > conftest.ts1
3243 sleep $am_try_res
3244 echo two > conftest.ts2 # ts2 should now be newer than ts1
3245 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3246 make_ok=false
3247 break # out of $n loop
3248 fi
3249 n=`expr $n + 1`
3250 done
3251 fi
3252 #
3253 if $make_ok; then
3254 # Everything we know to check worked out, so call this resolution good.
3255 am_cv_filesystem_timestamp_resolution=$am_try_res
3256 break # out of $am_try_res loop
3257 fi
3258 # Otherwise, we'll go on to check the next resolution.
3259 fi
3260 done
3261 rm -f conftest.ts?
3262 # (end _am_filesystem_timestamp_resolution)
3263 ;;
3264 esac
3265 fi
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3267 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3268
3269 # This check should not be cached, as it may vary across builds of
3270 # different projects.
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3272 printf %s "checking whether build environment is sane... " >&6; }
3273 # Reject unsafe characters in $srcdir or the absolute working directory
3274 # name. Accept space and tab only in the latter.
3275 am_lf='
3276 '
3277 case `pwd` in
3278 *[\\\"\#\$\&\'\`$am_lf]*)
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 printf "%s\n" "no" >&6; }
3281 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3282 esac
3283 case $srcdir in
3284 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 printf "%s\n" "no" >&6; }
3287 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3288 esac
3289
3290 # Do 'set' in a subshell so we don't clobber the current shell's
3291 # arguments. Must try -L first in case configure is actually a
3292 # symlink; some systems play weird games with the mod time of symlinks
3293 # (eg FreeBSD returns the mod time of the symlink's containing
3294 # directory).
3295 am_build_env_is_sane=no
3296 am_has_slept=no
3297 rm -f conftest.file
3298 for am_try in 1 2; do
3299 echo "timestamp, slept: $am_has_slept" > conftest.file
3300 if (
3301 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3302 if test "$*" = "X"; then
3303 # -L didn't work.
3304 set X `ls -t "$srcdir/configure" conftest.file`
3305 fi
3306 test "$2" = conftest.file
3307 ); then
3308 am_build_env_is_sane=yes
3309 break
3310 fi
3311 # Just in case.
3312 sleep "$am_cv_filesystem_timestamp_resolution"
3313 am_has_slept=yes
3314 done
3315
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3317 printf "%s\n" "$am_build_env_is_sane" >&6; }
3318 if test "$am_build_env_is_sane" = no; then
3319 as_fn_error $? "newly created file is older than distributed files!
3320 Check your system clock" "$LINENO" 5
3321 fi
3322
3323 # If we didn't sleep, we still need to ensure time stamps of config.status and
3324 # generated files are strictly newer.
3325 am_sleep_pid=
3326 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3327 then :
3328
3329 else case e in #(
3330 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3331 am_sleep_pid=$!
3332 ;;
3333 esac
3334 fi
3335
3336 rm -f conftest.file
3337
3338 test "$program_prefix" != NONE &&
3339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3340 # Use a double $ so make ignores it.
3341 test "$program_suffix" != NONE &&
3342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3343 # Double any \ or $.
3344 # By default was 's,x,x', remove it if useless.
3345 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3346 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3347
3348
3349 # Expand $ac_aux_dir to an absolute path.
3350 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3351
3352
3353 if test x"${MISSING+set}" != xset; then
3354 MISSING="\${SHELL} '$am_aux_dir/missing'"
3355 fi
3356 # Use eval to expand $SHELL
3357 if eval "$MISSING --is-lightweight"; then
3358 am_missing_run="$MISSING "
3359 else
3360 am_missing_run=
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3362 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3363 fi
3364
3365 if test x"${install_sh+set}" != xset; then
3366 case $am_aux_dir in
3367 *\ * | *\ *)
3368 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3369 *)
3370 install_sh="\${SHELL} $am_aux_dir/install-sh"
3371 esac
3372 fi
3373
3374 # Installed binaries are usually stripped using 'strip' when the user
3375 # run "make install-strip". However 'strip' might not be the right
3376 # tool to use in cross-compilation environments, therefore Automake
3377 # will honor the 'STRIP' environment variable to overrule this program.
3378 if test "$cross_compiling" != no; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}strip; ac_word=$2
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 printf %s "checking for $ac_word... " >&6; }
3384 if test ${ac_cv_prog_STRIP+y}
3385 then :
3386 printf %s "(cached) " >&6
3387 else case e in #(
3388 e) if test -n "$STRIP"; then
3389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 case $as_dir in #(((
3396 '') as_dir=./ ;;
3397 */) ;;
3398 *) as_dir=$as_dir/ ;;
3399 esac
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi ;;
3411 esac
3412 fi
3413 STRIP=$ac_cv_prog_STRIP
3414 if test -n "$STRIP"; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3416 printf "%s\n" "$STRIP" >&6; }
3417 else
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 printf "%s\n" "no" >&6; }
3420 fi
3421
3422
3423 fi
3424 if test -z "$ac_cv_prog_STRIP"; then
3425 ac_ct_STRIP=$STRIP
3426 # Extract the first word of "strip", so it can be a program name with args.
3427 set dummy strip; ac_word=$2
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 printf %s "checking for $ac_word... " >&6; }
3430 if test ${ac_cv_prog_ac_ct_STRIP+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else case e in #(
3434 e) if test -n "$ac_ct_STRIP"; then
3435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 case $as_dir in #(((
3442 '') as_dir=./ ;;
3443 */) ;;
3444 *) as_dir=$as_dir/ ;;
3445 esac
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_STRIP="strip"
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi ;;
3457 esac
3458 fi
3459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3460 if test -n "$ac_ct_STRIP"; then
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3462 printf "%s\n" "$ac_ct_STRIP" >&6; }
3463 else
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 printf "%s\n" "no" >&6; }
3466 fi
3467
3468 if test "x$ac_ct_STRIP" = x; then
3469 STRIP=":"
3470 else
3471 case $cross_compiling:$ac_tool_warned in
3472 yes:)
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3476 esac
3477 STRIP=$ac_ct_STRIP
3478 fi
3479 else
3480 STRIP="$ac_cv_prog_STRIP"
3481 fi
3482
3483 fi
3484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3485
3486
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3488 printf %s "checking for a race-free mkdir -p... " >&6; }
3489 if test -z "$MKDIR_P"; then
3490 if test ${ac_cv_path_mkdir+y}
3491 then :
3492 printf %s "(cached) " >&6
3493 else case e in #(
3494 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3496 do
3497 IFS=$as_save_IFS
3498 case $as_dir in #(((
3499 '') as_dir=./ ;;
3500 */) ;;
3501 *) as_dir=$as_dir/ ;;
3502 esac
3503 for ac_prog in mkdir gmkdir; do
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3506 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3507 'mkdir ('*'coreutils) '* | \
3508 *'BusyBox '* | \
3509 'mkdir (fileutils) '4.1*)
3510 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3511 break 3;;
3512 esac
3513 done
3514 done
3515 done
3516 IFS=$as_save_IFS
3517 ;;
3518 esac
3519 fi
3520
3521 test -d ./--version && rmdir ./--version
3522 if test ${ac_cv_path_mkdir+y}; then
3523 MKDIR_P="$ac_cv_path_mkdir -p"
3524 else
3525 # As a last resort, use plain mkdir -p,
3526 # in the hope it doesn't have the bugs of ancient mkdir.
3527 MKDIR_P='mkdir -p'
3528 fi
3529 fi
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3531 printf "%s\n" "$MKDIR_P" >&6; }
3532
3533 for ac_prog in gawk mawk nawk awk
3534 do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 printf %s "checking for $ac_word... " >&6; }
3539 if test ${ac_cv_prog_AWK+y}
3540 then :
3541 printf %s "(cached) " >&6
3542 else case e in #(
3543 e) if test -n "$AWK"; then
3544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 case $as_dir in #(((
3551 '') as_dir=./ ;;
3552 */) ;;
3553 *) as_dir=$as_dir/ ;;
3554 esac
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_AWK="$ac_prog"
3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3564
3565 fi ;;
3566 esac
3567 fi
3568 AWK=$ac_cv_prog_AWK
3569 if test -n "$AWK"; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3571 printf "%s\n" "$AWK" >&6; }
3572 else
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577
3578 test -n "$AWK" && break
3579 done
3580
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3582 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3583 set x ${MAKE-make}
3584 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3585 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else case e in #(
3589 e) cat >conftest.make <<\_ACEOF
3590 SHELL = /bin/sh
3591 all:
3592 @echo '@@@%%%=$(MAKE)=@@@%%%'
3593 _ACEOF
3594 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3595 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3596 *@@@%%%=?*=@@@%%%*)
3597 eval ac_cv_prog_make_${ac_make}_set=yes;;
3598 *)
3599 eval ac_cv_prog_make_${ac_make}_set=no;;
3600 esac
3601 rm -f conftest.make ;;
3602 esac
3603 fi
3604 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606 printf "%s\n" "yes" >&6; }
3607 SET_MAKE=
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 SET_MAKE="MAKE=${MAKE-make}"
3612 fi
3613
3614 rm -rf .tst 2>/dev/null
3615 mkdir .tst 2>/dev/null
3616 if test -d .tst; then
3617 am__leading_dot=.
3618 else
3619 am__leading_dot=_
3620 fi
3621 rmdir .tst 2>/dev/null
3622
3623 AM_DEFAULT_VERBOSITY=1
3624 # Check whether --enable-silent-rules was given.
3625 if test ${enable_silent_rules+y}
3626 then :
3627 enableval=$enable_silent_rules;
3628 fi
3629
3630 am_make=${MAKE-make}
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3632 printf %s "checking whether $am_make supports nested variables... " >&6; }
3633 if test ${am_cv_make_support_nested_variables+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else case e in #(
3637 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3638 BAR0=false
3639 BAR1=true
3640 V=1
3641 am__doit:
3642 @$(TRUE)
3643 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3644 am_cv_make_support_nested_variables=yes
3645 else
3646 am_cv_make_support_nested_variables=no
3647 fi ;;
3648 esac
3649 fi
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3651 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3652 AM_BACKSLASH='\'
3653
3654 am__rm_f_notfound=
3655 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3656 then :
3657
3658 else case e in #(
3659 e) am__rm_f_notfound='""' ;;
3660 esac
3661 fi
3662
3663
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3665 printf %s "checking xargs -n works... " >&6; }
3666 if test ${am_cv_xargs_n_works+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else case e in #(
3670 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3671 3"
3672 then :
3673 am_cv_xargs_n_works=yes
3674 else case e in #(
3675 e) am_cv_xargs_n_works=no ;;
3676 esac
3677 fi ;;
3678 esac
3679 fi
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3681 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3682 if test "$am_cv_xargs_n_works" = yes
3683 then :
3684 am__xargs_n='xargs -n'
3685 else case e in #(
3686 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3687 ;;
3688 esac
3689 fi
3690
3691 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3692 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3693 # is not polluted with repeated "-I."
3694 am__isrc=' -I$(srcdir)'
3695 # test to see if srcdir already configured
3696 if test -f $srcdir/config.status; then
3697 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3698 fi
3699 fi
3700
3701 # test whether we have cygpath
3702 if test -z "$CYGPATH_W"; then
3703 if (cygpath --version) >/dev/null 2>/dev/null; then
3704 CYGPATH_W='cygpath -w'
3705 else
3706 CYGPATH_W=echo
3707 fi
3708 fi
3709
3710
3711 # Define the identity of the package.
3712 PACKAGE='gutenprint'
3713 VERSION='5.3.6-2026-02-01T02-18-9b0bdf87'
3714
3715
3716 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3717
3718
3719 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3720
3721 # Some tools Automake needs.
3722
3723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3724
3725
3726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3727
3728
3729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3730
3731
3732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3733
3734
3735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3736
3737 # For better backward compatibility. To be removed once Automake 1.9.x
3738 # dies out for good. For more background, see:
3739 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3740 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3741 mkdir_p='$(MKDIR_P)'
3742
3743 # We need awk for the "check" target (and possibly the TAP driver). The
3744 # system "awk" is bad on some platforms.
3745 # Always define AMTAR for backward compatibility. Yes, it's still used
3746 # in the wild :-( We should find a proper way to deprecate it ...
3747 AMTAR='$${TAR-tar}'
3748
3749
3750 # We'll loop over all known methods to create a tar archive until one works.
3751 _am_tools='gnutar plaintar pax cpio none'
3752
3753 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3754 # There is notably a 21 bits limit for the UID and the GID. In fact,
3755 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3756 # and bug#13588).
3757 am_max_uid=2097151 # 2^21 - 1
3758 am_max_gid=$am_max_uid
3759 # The $UID and $GID variables are not portable, so we need to resort
3760 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3761 # below are definitely unexpected, so allow the users to see them
3762 # (that is, avoid stderr redirection).
3763 am_uid=`id -u || echo unknown`
3764 am_gid=`id -g || echo unknown`
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3766 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3767 if test x$am_uid = xunknown; then
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3769 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3770 elif test $am_uid -le $am_max_uid; then
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 printf "%s\n" "yes" >&6; }
3773 else
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3776 _am_tools=none
3777 fi
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3779 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3780 if test x$gm_gid = xunknown; then
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3782 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3783 elif test $am_gid -le $am_max_gid; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3785 printf "%s\n" "yes" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 _am_tools=none
3790 fi
3791
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3793 printf %s "checking how to create a ustar tar archive... " >&6; }
3794
3795 # Go ahead even if we have the value already cached. We do so because we
3796 # need to set the values for the 'am__tar' and 'am__untar' variables.
3797 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3798
3799 for _am_tool in $_am_tools; do
3800 case $_am_tool in
3801 gnutar)
3802 for _am_tar in tar gnutar gtar; do
3803 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3804 ($_am_tar --version) >&5 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && break
3808 done
3809 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3810 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3811 am__untar="$_am_tar -xf -"
3812 ;;
3813 plaintar)
3814 # Must skip GNU tar: if it does not support --format= it doesn't create
3815 # ustar tarball either.
3816 (tar --version) >/dev/null 2>&1 && continue
3817 am__tar='tar chf - "$$tardir"'
3818 am__tar_='tar chf - "$tardir"'
3819 am__untar='tar xf -'
3820 ;;
3821 pax)
3822 am__tar='pax -L -x ustar -w "$$tardir"'
3823 am__tar_='pax -L -x ustar -w "$tardir"'
3824 am__untar='pax -r'
3825 ;;
3826 cpio)
3827 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3828 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3829 am__untar='cpio -i -H ustar -d'
3830 ;;
3831 none)
3832 am__tar=false
3833 am__tar_=false
3834 am__untar=false
3835 ;;
3836 esac
3837
3838 # If the value was cached, stop now. We just wanted to have am__tar
3839 # and am__untar set.
3840 test -n "${am_cv_prog_tar_ustar}" && break
3841
3842 # tar/untar a dummy directory, and stop if the command works.
3843 rm -rf conftest.dir
3844 mkdir conftest.dir
3845 echo GrepMe > conftest.dir/file
3846 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3847 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3851 rm -rf conftest.dir
3852 if test -s conftest.tar; then
3853 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3854 ($am__untar <conftest.tar) >&5 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }
3858 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3859 (cat conftest.dir/file) >&5 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }
3863 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3864 fi
3865 done
3866 rm -rf conftest.dir
3867
3868 if test ${am_cv_prog_tar_ustar+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else case e in #(
3872 e) am_cv_prog_tar_ustar=$_am_tool ;;
3873 esac
3874 fi
3875
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3877 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3878
3879
3880
3881
3882
3883 # Variables for tags utilities; see am/tags.am
3884 if test -z "$CTAGS"; then
3885 CTAGS=ctags
3886 fi
3887
3888 if test -z "$ETAGS"; then
3889 ETAGS=etags
3890 fi
3891
3892 if test -z "$CSCOPE"; then
3893 CSCOPE=cscope
3894 fi
3895
3896
3897
3898
3899
3900
3901
3902
3903 AM_DEFAULT_VERBOSITY=0
3904
3905
3906
3907
3908
3909
3910
3911 GUTENPRINT_LIBS="-lgutenprint"
3912 GUTENPRINTUI2_LIBS="-lgutenprintui2"
3913 gutenprint_version=${GUTENPRINT_VERSION}
3914 gutenprintui2_version=${GUTENPRINT_VERSION}
3915
3916 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} \$(GUTENPRINT_LIBS)"
3917
3918 ac_config_headers="$ac_config_headers config.h"
3919
3920
3921 ALL_LINGUAS="ca cs da de el en_GB es fi fr gl hr hu is it ja ka nb nl pl pt ro ru sk sl sv tr uk vi zh_CN zh_TW"
3922
3923
3924 case `pwd` in
3925 *\ * | *\ *)
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3927 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3928 esac
3929
3930
3931
3932 macro_version='2.5.4'
3933 macro_revision='2.5.4'
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948 ltmain=$ac_aux_dir/ltmain.sh
3949
3950
3951
3952 # Make sure we can run config.sub.
3953 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3954 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3955
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3957 printf %s "checking build system type... " >&6; }
3958 if test ${ac_cv_build+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else case e in #(
3962 e) ac_build_alias=$build_alias
3963 test "x$ac_build_alias" = x &&
3964 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3965 test "x$ac_build_alias" = x &&
3966 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3967 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3968 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3969 ;;
3970 esac
3971 fi
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3973 printf "%s\n" "$ac_cv_build" >&6; }
3974 case $ac_cv_build in
3975 *-*-*) ;;
3976 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3977 esac
3978 build=$ac_cv_build
3979 ac_save_IFS=$IFS; IFS='-'
3980 set x $ac_cv_build
3981 shift
3982 build_cpu=$1
3983 build_vendor=$2
3984 shift; shift
3985 # Remember, the first character of IFS is used to create $*,
3986 # except with old shells:
3987 build_os=$*
3988 IFS=$ac_save_IFS
3989 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3990
3991
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3993 printf %s "checking host system type... " >&6; }
3994 if test ${ac_cv_host+y}
3995 then :
3996 printf %s "(cached) " >&6
3997 else case e in #(
3998 e) if test "x$host_alias" = x; then
3999 ac_cv_host=$ac_cv_build
4000 else
4001 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4002 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4003 fi
4004 ;;
4005 esac
4006 fi
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4008 printf "%s\n" "$ac_cv_host" >&6; }
4009 case $ac_cv_host in
4010 *-*-*) ;;
4011 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4012 esac
4013 host=$ac_cv_host
4014 ac_save_IFS=$IFS; IFS='-'
4015 set x $ac_cv_host
4016 shift
4017 host_cpu=$1
4018 host_vendor=$2
4019 shift; shift
4020 # Remember, the first character of IFS is used to create $*,
4021 # except with old shells:
4022 host_os=$*
4023 IFS=$ac_save_IFS
4024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4025
4026
4027 # Backslashify metacharacters that are still active within
4028 # double-quoted strings.
4029 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4030
4031 # Same as above, but do not quote variable references.
4032 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4033
4034 # Sed substitution to delay expansion of an escaped shell variable in a
4035 # double_quote_subst'ed string.
4036 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4037
4038 # Sed substitution to delay expansion of an escaped single quote.
4039 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4040
4041 # Sed substitution to avoid accidental globbing in evaled expressions
4042 no_glob_subst='s/\*/\\\*/g'
4043
4044 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4047
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4049 printf %s "checking how to print strings... " >&6; }
4050 # Test print first, because it will be a builtin if present.
4051 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4052 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4053 ECHO='print -r --'
4054 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4055 ECHO='printf %s\n'
4056 else
4057 # Use this function as a fallback that always works.
4058 func_fallback_echo ()
4059 {
4060 eval 'cat <<_LTECHO_EOF
4061 $1
4062 _LTECHO_EOF'
4063 }
4064 ECHO='func_fallback_echo'
4065 fi
4066
4067 # func_echo_all arg...
4068 # Invoke $ECHO with all args, space-separated.
4069 func_echo_all ()
4070 {
4071 $ECHO ""
4072 }
4073
4074 case $ECHO in
4075 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4076 printf "%s\n" "printf" >&6; } ;;
4077 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4078 printf "%s\n" "print -r" >&6; } ;;
4079 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4080 printf "%s\n" "cat" >&6; } ;;
4081 esac
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107 ac_config_commands="$ac_config_commands depfiles"
4108
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4110 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4111 cat > confinc.mk << 'END'
4112 am__doit:
4113 @echo this is the am__doit target >confinc.out
4114 .PHONY: am__doit
4115 END
4116 am__include="#"
4117 am__quote=
4118 # BSD make does it like this.
4119 echo '.include "confinc.mk" # ignored' > confmf.BSD
4120 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4121 echo 'include confinc.mk # ignored' > confmf.GNU
4122 _am_result=no
4123 for s in GNU BSD; do
4124 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4125 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }
4129 case $?:`cat confinc.out 2>/dev/null` in #(
4130 '0:this is the am__doit target') :
4131 case $s in #(
4132 BSD) :
4133 am__include='.include' am__quote='"' ;; #(
4134 *) :
4135 am__include='include' am__quote='' ;;
4136 esac ;; #(
4137 *) :
4138 ;;
4139 esac
4140 if test "$am__include" != "#"; then
4141 _am_result="yes ($s style)"
4142 break
4143 fi
4144 done
4145 rm -f confinc.* confmf.*
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4147 printf "%s\n" "${_am_result}" >&6; }
4148
4149 # Check whether --enable-dependency-tracking was given.
4150 if test ${enable_dependency_tracking+y}
4151 then :
4152 enableval=$enable_dependency_tracking;
4153 fi
4154
4155 if test "x$enable_dependency_tracking" != xno; then
4156 am_depcomp="$ac_aux_dir/depcomp"
4157 AMDEPBACKSLASH='\'
4158 am__nodep='_no'
4159 fi
4160 if test "x$enable_dependency_tracking" != xno; then
4161 AMDEP_TRUE=
4162 AMDEP_FALSE='#'
4163 else
4164 AMDEP_TRUE='#'
4165 AMDEP_FALSE=
4166 fi
4167
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 printf %s "checking for $ac_word... " >&6; }
4179 if test ${ac_cv_prog_CC+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else case e in #(
4183 e) if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi ;;
4206 esac
4207 fi
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 printf "%s\n" "$CC" >&6; }
4212 else
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 printf "%s\n" "no" >&6; }
4215 fi
4216
4217
4218 fi
4219 if test -z "$ac_cv_prog_CC"; then
4220 ac_ct_CC=$CC
4221 # Extract the first word of "gcc", so it can be a program name with args.
4222 set dummy gcc; ac_word=$2
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 printf %s "checking for $ac_word... " >&6; }
4225 if test ${ac_cv_prog_ac_ct_CC+y}
4226 then :
4227 printf %s "(cached) " >&6
4228 else case e in #(
4229 e) if test -n "$ac_ct_CC"; then
4230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 case $as_dir in #(((
4237 '') as_dir=./ ;;
4238 */) ;;
4239 *) as_dir=$as_dir/ ;;
4240 esac
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_ac_ct_CC="gcc"
4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247 done
4248 done
4249 IFS=$as_save_IFS
4250
4251 fi ;;
4252 esac
4253 fi
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 printf "%s\n" "$ac_ct_CC" >&6; }
4258 else
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 printf "%s\n" "no" >&6; }
4261 fi
4262
4263 if test "x$ac_ct_CC" = x; then
4264 CC=""
4265 else
4266 case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272 CC=$ac_ct_CC
4273 fi
4274 else
4275 CC="$ac_cv_prog_CC"
4276 fi
4277
4278 if test -z "$CC"; then
4279 if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4281 set dummy ${ac_tool_prefix}cc; ac_word=$2
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 printf %s "checking for $ac_word... " >&6; }
4284 if test ${ac_cv_prog_CC+y}
4285 then :
4286 printf %s "(cached) " >&6
4287 else case e in #(
4288 e) if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294 IFS=$as_save_IFS
4295 case $as_dir in #(((
4296 '') as_dir=./ ;;
4297 */) ;;
4298 *) as_dir=$as_dir/ ;;
4299 esac
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_CC="${ac_tool_prefix}cc"
4303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306 done
4307 done
4308 IFS=$as_save_IFS
4309
4310 fi ;;
4311 esac
4312 fi
4313 CC=$ac_cv_prog_CC
4314 if test -n "$CC"; then
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 printf "%s\n" "$CC" >&6; }
4317 else
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 printf "%s\n" "no" >&6; }
4320 fi
4321
4322
4323 fi
4324 fi
4325 if test -z "$CC"; then
4326 # Extract the first word of "cc", so it can be a program name with args.
4327 set dummy cc; ac_word=$2
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 printf %s "checking for $ac_word... " >&6; }
4330 if test ${ac_cv_prog_CC+y}
4331 then :
4332 printf %s "(cached) " >&6
4333 else case e in #(
4334 e) if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 ac_prog_rejected=no
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341 IFS=$as_save_IFS
4342 case $as_dir in #(((
4343 '') as_dir=./ ;;
4344 */) ;;
4345 *) as_dir=$as_dir/ ;;
4346 esac
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4349 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4350 ac_prog_rejected=yes
4351 continue
4352 fi
4353 ac_cv_prog_CC="cc"
4354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361 if test $ac_prog_rejected = yes; then
4362 # We found a bogon in the path, so make sure we never use it.
4363 set dummy $ac_cv_prog_CC
4364 shift
4365 if test $# != 0; then
4366 # We chose a different compiler from the bogus one.
4367 # However, it has the same basename, so the bogon will be chosen
4368 # first if we set CC to just the basename; use the full file name.
4369 shift
4370 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4371 fi
4372 fi
4373 fi ;;
4374 esac
4375 fi
4376 CC=$ac_cv_prog_CC
4377 if test -n "$CC"; then
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4379 printf "%s\n" "$CC" >&6; }
4380 else
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 printf "%s\n" "no" >&6; }
4383 fi
4384
4385
4386 fi
4387 if test -z "$CC"; then
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in cl.exe
4390 do
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 printf %s "checking for $ac_word... " >&6; }
4395 if test ${ac_cv_prog_CC+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else case e in #(
4399 e) if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 case $as_dir in #(((
4407 '') as_dir=./ ;;
4408 */) ;;
4409 *) as_dir=$as_dir/ ;;
4410 esac
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi ;;
4422 esac
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 printf "%s\n" "$CC" >&6; }
4428 else
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 printf "%s\n" "no" >&6; }
4431 fi
4432
4433
4434 test -n "$CC" && break
4435 done
4436 fi
4437 if test -z "$CC"; then
4438 ac_ct_CC=$CC
4439 for ac_prog in cl.exe
4440 do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 printf %s "checking for $ac_word... " >&6; }
4445 if test ${ac_cv_prog_ac_ct_CC+y}
4446 then :
4447 printf %s "(cached) " >&6
4448 else case e in #(
4449 e) if test -n "$ac_ct_CC"; then
4450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455 IFS=$as_save_IFS
4456 case $as_dir in #(((
4457 '') as_dir=./ ;;
4458 */) ;;
4459 *) as_dir=$as_dir/ ;;
4460 esac
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CC="$ac_prog"
4464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi ;;
4472 esac
4473 fi
4474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4475 if test -n "$ac_ct_CC"; then
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4477 printf "%s\n" "$ac_ct_CC" >&6; }
4478 else
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 printf "%s\n" "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_CC" && break
4485 done
4486
4487 if test "x$ac_ct_CC" = x; then
4488 CC=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CC=$ac_ct_CC
4497 fi
4498 fi
4499
4500 fi
4501 if test -z "$CC"; then
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}clang; ac_word=$2
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 printf %s "checking for $ac_word... " >&6; }
4507 if test ${ac_cv_prog_CC+y}
4508 then :
4509 printf %s "(cached) " >&6
4510 else case e in #(
4511 e) if test -n "$CC"; then
4512 ac_cv_prog_CC="$CC" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517 IFS=$as_save_IFS
4518 case $as_dir in #(((
4519 '') as_dir=./ ;;
4520 */) ;;
4521 *) as_dir=$as_dir/ ;;
4522 esac
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_CC="${ac_tool_prefix}clang"
4526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 fi ;;
4534 esac
4535 fi
4536 CC=$ac_cv_prog_CC
4537 if test -n "$CC"; then
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 printf "%s\n" "$CC" >&6; }
4540 else
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 printf "%s\n" "no" >&6; }
4543 fi
4544
4545
4546 fi
4547 if test -z "$ac_cv_prog_CC"; then
4548 ac_ct_CC=$CC
4549 # Extract the first word of "clang", so it can be a program name with args.
4550 set dummy clang; ac_word=$2
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 printf %s "checking for $ac_word... " >&6; }
4553 if test ${ac_cv_prog_ac_ct_CC+y}
4554 then :
4555 printf %s "(cached) " >&6
4556 else case e in #(
4557 e) if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 case $as_dir in #(((
4565 '') as_dir=./ ;;
4566 */) ;;
4567 *) as_dir=$as_dir/ ;;
4568 esac
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_CC="clang"
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi ;;
4580 esac
4581 fi
4582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4583 if test -n "$ac_ct_CC"; then
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4585 printf "%s\n" "$ac_ct_CC" >&6; }
4586 else
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 printf "%s\n" "no" >&6; }
4589 fi
4590
4591 if test "x$ac_ct_CC" = x; then
4592 CC=""
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 CC=$ac_ct_CC
4601 fi
4602 else
4603 CC="$ac_cv_prog_CC"
4604 fi
4605
4606 fi
4607
4608
4609 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4610 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4611 as_fn_error $? "no acceptable C compiler found in \$PATH
4612 See 'config.log' for more details" "$LINENO" 5; }
4613
4614 # Provide some information about the compiler.
4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4616 set X $ac_compile
4617 ac_compiler=$2
4618 for ac_option in --version -v -V -qversion -version; do
4619 { { ac_try="$ac_compiler $ac_option >&5"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 printf "%s\n" "$ac_try_echo"; } >&5
4626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4627 ac_status=$?
4628 if test -s conftest.err; then
4629 sed '10a\
4630 ... rest of stderr output deleted ...
4631 10q' conftest.err >conftest.er1
4632 cat conftest.er1 >&5
4633 fi
4634 rm -f conftest.er1 conftest.err
4635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }
4637 done
4638
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641
4642 int
4643 main (void)
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 ac_clean_files_save=$ac_clean_files
4651 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4652 # Try to create an executable without -o first, disregard a.out.
4653 # It will help us diagnose broken compilers, and finding out an intuition
4654 # of exeext.
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4656 printf %s "checking whether the C compiler works... " >&6; }
4657 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4658
4659 # The possible output files:
4660 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4661
4662 ac_rmfiles=
4663 for ac_file in $ac_files
4664 do
4665 case $ac_file in
4666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4667 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4668 esac
4669 done
4670 rm -f $ac_rmfiles
4671
4672 if { { ac_try="$ac_link_default"
4673 case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 printf "%s\n" "$ac_try_echo"; } >&5
4679 (eval "$ac_link_default") 2>&5
4680 ac_status=$?
4681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }
4683 then :
4684 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4685 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4687 # so that the user can short-circuit this test for compilers unknown to
4688 # Autoconf.
4689 for ac_file in $ac_files ''
4690 do
4691 test -f "$ac_file" || continue
4692 case $ac_file in
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4694 ;;
4695 [ab].out )
4696 # We found the default executable, but exeext='' is most
4697 # certainly right.
4698 break;;
4699 *.* )
4700 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4701 then :; else
4702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4703 fi
4704 # We set ac_cv_exeext here because the later test for it is not
4705 # safe: cross compilers may not add the suffix if given an '-o'
4706 # argument, so we may need to know it at that point already.
4707 # Even if this section looks crufty: it has the advantage of
4708 # actually working.
4709 break;;
4710 * )
4711 break;;
4712 esac
4713 done
4714 test "$ac_cv_exeext" = no && ac_cv_exeext=
4715
4716 else case e in #(
4717 e) ac_file='' ;;
4718 esac
4719 fi
4720 if test -z "$ac_file"
4721 then :
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 printf "%s\n" "no" >&6; }
4724 printf "%s\n" "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4728 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4729 as_fn_error 77 "C compiler cannot create executables
4730 See 'config.log' for more details" "$LINENO" 5; }
4731 else case e in #(
4732 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4733 printf "%s\n" "yes" >&6; } ;;
4734 esac
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4737 printf %s "checking for C compiler default output file name... " >&6; }
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4739 printf "%s\n" "$ac_file" >&6; }
4740 ac_exeext=$ac_cv_exeext
4741
4742 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4743 ac_clean_files=$ac_clean_files_save
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4745 printf %s "checking for suffix of executables... " >&6; }
4746 if { { ac_try="$ac_link"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 printf "%s\n" "$ac_try_echo"; } >&5
4753 (eval "$ac_link") 2>&5
4754 ac_status=$?
4755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757 then :
4758 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4759 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4760 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4761 # 'rm'.
4762 for ac_file in conftest.exe conftest conftest.*; do
4763 test -f "$ac_file" || continue
4764 case $ac_file in
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4767 break;;
4768 * ) break;;
4769 esac
4770 done
4771 else case e in #(
4772 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4773 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4774 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4775 See 'config.log' for more details" "$LINENO" 5; } ;;
4776 esac
4777 fi
4778 rm -f conftest conftest$ac_cv_exeext
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4780 printf "%s\n" "$ac_cv_exeext" >&6; }
4781
4782 rm -f conftest.$ac_ext
4783 EXEEXT=$ac_cv_exeext
4784 ac_exeext=$EXEEXT
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <stdio.h>
4788 int
4789 main (void)
4790 {
4791 FILE *f = fopen ("conftest.out", "w");
4792 if (!f)
4793 return 1;
4794 return ferror (f) || fclose (f) != 0;
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 ac_clean_files="$ac_clean_files conftest.out"
4801 # Check that the compiler produces executables we can run. If not, either
4802 # the compiler is broken, or we cross compile.
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4804 printf %s "checking whether we are cross compiling... " >&6; }
4805 if test "$cross_compiling" != yes; then
4806 { { ac_try="$ac_link"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4812 printf "%s\n" "$ac_try_echo"; } >&5
4813 (eval "$ac_link") 2>&5
4814 ac_status=$?
4815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }
4817 if { ac_try='./conftest$ac_cv_exeext'
4818 { { case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4823 printf "%s\n" "$ac_try_echo"; } >&5
4824 (eval "$ac_try") 2>&5
4825 ac_status=$?
4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4827 test $ac_status = 0; }; }; then
4828 cross_compiling=no
4829 else
4830 if test "$cross_compiling" = maybe; then
4831 cross_compiling=yes
4832 else
4833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4834 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4835 as_fn_error 77 "cannot run C compiled programs.
4836 If you meant to cross compile, use '--host'.
4837 See 'config.log' for more details" "$LINENO" 5; }
4838 fi
4839 fi
4840 fi
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4842 printf "%s\n" "$cross_compiling" >&6; }
4843
4844 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4845 conftest.o conftest.obj conftest.out
4846 ac_clean_files=$ac_clean_files_save
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4848 printf %s "checking for suffix of object files... " >&6; }
4849 if test ${ac_cv_objext+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else case e in #(
4853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855
4856 int
4857 main (void)
4858 {
4859
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.o conftest.obj
4865 if { { ac_try="$ac_compile"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 printf "%s\n" "$ac_try_echo"; } >&5
4872 (eval "$ac_compile") 2>&5
4873 ac_status=$?
4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }
4876 then :
4877 for ac_file in conftest.o conftest.obj conftest.*; do
4878 test -f "$ac_file" || continue;
4879 case $ac_file in
4880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4882 break;;
4883 esac
4884 done
4885 else case e in #(
4886 e) printf "%s\n" "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4890 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4891 as_fn_error $? "cannot compute suffix of object files: cannot compile
4892 See 'config.log' for more details" "$LINENO" 5; } ;;
4893 esac
4894 fi
4895 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4896 esac
4897 fi
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4899 printf "%s\n" "$ac_cv_objext" >&6; }
4900 OBJEXT=$ac_cv_objext
4901 ac_objext=$OBJEXT
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4903 printf %s "checking whether the compiler supports GNU C... " >&6; }
4904 if test ${ac_cv_c_compiler_gnu+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910
4911 int
4912 main (void)
4913 {
4914 #ifndef __GNUC__
4915 choke me
4916 #endif
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"
4923 then :
4924 ac_compiler_gnu=yes
4925 else case e in #(
4926 e) ac_compiler_gnu=no ;;
4927 esac
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4931 ;;
4932 esac
4933 fi
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4935 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
4938 if test $ac_compiler_gnu = yes; then
4939 GCC=yes
4940 else
4941 GCC=
4942 fi
4943 ac_test_CFLAGS=${CFLAGS+y}
4944 ac_save_CFLAGS=$CFLAGS
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4946 printf %s "checking whether $CC accepts -g... " >&6; }
4947 if test ${ac_cv_prog_cc_g+y}
4948 then :
4949 printf %s "(cached) " >&6
4950 else case e in #(
4951 e) ac_save_c_werror_flag=$ac_c_werror_flag
4952 ac_c_werror_flag=yes
4953 ac_cv_prog_cc_g=no
4954 CFLAGS="-g"
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957
4958 int
4959 main (void)
4960 {
4961
4962 ;
4963 return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"
4967 then :
4968 ac_cv_prog_cc_g=yes
4969 else case e in #(
4970 e) CFLAGS=""
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973
4974 int
4975 main (void)
4976 {
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"
4983 then :
4984
4985 else case e in #(
4986 e) ac_c_werror_flag=$ac_save_c_werror_flag
4987 CFLAGS="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 int
4992 main (void)
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"
5000 then :
5001 ac_cv_prog_cc_g=yes
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5004 esac
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5007 esac
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5010 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5011 esac
5012 fi
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5014 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5015 if test $ac_test_CFLAGS; then
5016 CFLAGS=$ac_save_CFLAGS
5017 elif test $ac_cv_prog_cc_g = yes; then
5018 if test "$GCC" = yes; then
5019 CFLAGS="-g -O2"
5020 else
5021 CFLAGS="-g"
5022 fi
5023 else
5024 if test "$GCC" = yes; then
5025 CFLAGS="-O2"
5026 else
5027 CFLAGS=
5028 fi
5029 fi
5030 ac_prog_cc_stdc=no
5031 if test x$ac_prog_cc_stdc = xno
5032 then :
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5034 printf %s "checking for $CC option to enable C11 features... " >&6; }
5035 if test ${ac_cv_prog_cc_c11+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else case e in #(
5039 e) ac_cv_prog_cc_c11=no
5040 ac_save_CC=$CC
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 $ac_c_conftest_c11_program
5044 _ACEOF
5045 for ac_arg in '' -std=gnu11
5046 do
5047 CC="$ac_save_CC $ac_arg"
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
5050 ac_cv_prog_cc_c11=$ac_arg
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.beam
5053 test "x$ac_cv_prog_cc_c11" != "xno" && break
5054 done
5055 rm -f conftest.$ac_ext
5056 CC=$ac_save_CC ;;
5057 esac
5058 fi
5059
5060 if test "x$ac_cv_prog_cc_c11" = xno
5061 then :
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5063 printf "%s\n" "unsupported" >&6; }
5064 else case e in #(
5065 e) if test "x$ac_cv_prog_cc_c11" = x
5066 then :
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5068 printf "%s\n" "none needed" >&6; }
5069 else case e in #(
5070 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5071 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5072 CC="$CC $ac_cv_prog_cc_c11" ;;
5073 esac
5074 fi
5075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5076 ac_prog_cc_stdc=c11 ;;
5077 esac
5078 fi
5079 fi
5080 if test x$ac_prog_cc_stdc = xno
5081 then :
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5083 printf %s "checking for $CC option to enable C99 features... " >&6; }
5084 if test ${ac_cv_prog_cc_c99+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else case e in #(
5088 e) ac_cv_prog_cc_c99=no
5089 ac_save_CC=$CC
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 $ac_c_conftest_c99_program
5093 _ACEOF
5094 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5095 do
5096 CC="$ac_save_CC $ac_arg"
5097 if ac_fn_c_try_compile "$LINENO"
5098 then :
5099 ac_cv_prog_cc_c99=$ac_arg
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.beam
5102 test "x$ac_cv_prog_cc_c99" != "xno" && break
5103 done
5104 rm -f conftest.$ac_ext
5105 CC=$ac_save_CC ;;
5106 esac
5107 fi
5108
5109 if test "x$ac_cv_prog_cc_c99" = xno
5110 then :
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5112 printf "%s\n" "unsupported" >&6; }
5113 else case e in #(
5114 e) if test "x$ac_cv_prog_cc_c99" = x
5115 then :
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5117 printf "%s\n" "none needed" >&6; }
5118 else case e in #(
5119 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5120 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5121 CC="$CC $ac_cv_prog_cc_c99" ;;
5122 esac
5123 fi
5124 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5125 ac_prog_cc_stdc=c99 ;;
5126 esac
5127 fi
5128 fi
5129 if test x$ac_prog_cc_stdc = xno
5130 then :
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5132 printf %s "checking for $CC option to enable C89 features... " >&6; }
5133 if test ${ac_cv_prog_cc_c89+y}
5134 then :
5135 printf %s "(cached) " >&6
5136 else case e in #(
5137 e) ac_cv_prog_cc_c89=no
5138 ac_save_CC=$CC
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 $ac_c_conftest_c89_program
5142 _ACEOF
5143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5144 do
5145 CC="$ac_save_CC $ac_arg"
5146 if ac_fn_c_try_compile "$LINENO"
5147 then :
5148 ac_cv_prog_cc_c89=$ac_arg
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.beam
5151 test "x$ac_cv_prog_cc_c89" != "xno" && break
5152 done
5153 rm -f conftest.$ac_ext
5154 CC=$ac_save_CC ;;
5155 esac
5156 fi
5157
5158 if test "x$ac_cv_prog_cc_c89" = xno
5159 then :
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5161 printf "%s\n" "unsupported" >&6; }
5162 else case e in #(
5163 e) if test "x$ac_cv_prog_cc_c89" = x
5164 then :
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5166 printf "%s\n" "none needed" >&6; }
5167 else case e in #(
5168 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5170 CC="$CC $ac_cv_prog_cc_c89" ;;
5171 esac
5172 fi
5173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5174 ac_prog_cc_stdc=c89 ;;
5175 esac
5176 fi
5177 fi
5178
5179 ac_ext=c
5180 ac_cpp='$CPP $CPPFLAGS'
5181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184
5185
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5192 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5193 if test ${am_cv_prog_cc_c_o+y}
5194 then :
5195 printf %s "(cached) " >&6
5196 else case e in #(
5197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main (void)
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 # Make sure it works both with $CC and with simple cc.
5209 # Following AC_PROG_CC_C_O, we do the test twice because some
5210 # compilers refuse to overwrite an existing .o file with -o,
5211 # though they will create one.
5212 am_cv_prog_cc_c_o=yes
5213 for am_i in 1 2; do
5214 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5215 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } \
5219 && test -f conftest2.$ac_objext; then
5220 : OK
5221 else
5222 am_cv_prog_cc_c_o=no
5223 break
5224 fi
5225 done
5226 # aligned with autoconf, so not including core; see bug#72225.
5227 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5228 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5229 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5230 unset am_i ;;
5231 esac
5232 fi
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5234 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5235 if test "$am_cv_prog_cc_c_o" != yes; then
5236 # Losing compiler, so override with the script.
5237 # FIXME: It is wrong to rewrite CC.
5238 # But if we don't then we get into trouble of one sort or another.
5239 # A longer-term fix would be to have automake use am__CC in this case,
5240 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5241 CC="$am_aux_dir/compile $CC"
5242 fi
5243 ac_ext=c
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249
5250 depcc="$CC" am_compiler_list=
5251
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5253 printf %s "checking dependency style of $depcc... " >&6; }
5254 if test ${am_cv_CC_dependencies_compiler_type+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # in D".
5264 rm -rf conftest.dir
5265 mkdir conftest.dir
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5269 cd conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5275 # directory.
5276 mkdir sub
5277
5278 am_cv_CC_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5281 fi
5282 am__universal=false
5283 case " $depcc " in #(
5284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5285 esac
5286
5287 for depmode in $am_compiler_list; do
5288 # Setup a source with many dependencies, because some compilers
5289 # like to wrap large dependency lists on column 80 (with \), and
5290 # we should not choose a depcomp mode which is confused by this.
5291 #
5292 # We need to recreate these files for each test, as the compiler may
5293 # overwrite some of them when testing with obscure command lines.
5294 # This happens at least with the AIX C compiler.
5295 : > sub/conftest.c
5296 for i in 1 2 3 4 5 6; do
5297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5299 # Solaris 10 /bin/sh.
5300 echo '/* dummy */' > sub/conftst$i.h
5301 done
5302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5303
5304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle '-M -o', and we need to detect this. Also, some Intel
5307 # versions had trouble with output in subdirs.
5308 am__obj=sub/conftest.${OBJEXT-o}
5309 am__minus_obj="-o $am__obj"
5310 case $depmode in
5311 gcc)
5312 # This depmode causes a compiler race in universal mode.
5313 test "$am__universal" = false || continue
5314 ;;
5315 nosideeffect)
5316 # After this tag, mechanisms are not by side-effect, so they'll
5317 # only be used when explicitly requested.
5318 if test "x$enable_dependency_tracking" = xyes; then
5319 continue
5320 else
5321 break
5322 fi
5323 ;;
5324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5325 # This compiler won't grok '-c -o', but also, the minuso test has
5326 # not run yet. These depmodes are late enough in the game, and
5327 # so weak that their functioning should not be impacted.
5328 am__obj=conftest.${OBJEXT-o}
5329 am__minus_obj=
5330 ;;
5331 none) break ;;
5332 esac
5333 if depmode=$depmode \
5334 source=sub/conftest.c object=$am__obj \
5335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5337 >/dev/null 2>conftest.err &&
5338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5342 # icc doesn't choke on unknown options, it will just issue warnings
5343 # or remarks (even with -Werror). So we grep stderr for any message
5344 # that says an option was ignored or not supported.
5345 # When given -MP, icc 7.0 and 7.1 complain thus:
5346 # icc: Command line warning: ignoring option '-M'; no argument required
5347 # The diagnosis changed in icc 8.0:
5348 # icc: Command line remark: option '-MP' not supported
5349 if (grep 'ignoring option' conftest.err ||
5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5351 am_cv_CC_dependencies_compiler_type=$depmode
5352 break
5353 fi
5354 fi
5355 done
5356
5357 cd ..
5358 rm -rf conftest.dir
5359 else
5360 am_cv_CC_dependencies_compiler_type=none
5361 fi
5362 ;;
5363 esac
5364 fi
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5366 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5368
5369 if
5370 test "x$enable_dependency_tracking" != xno \
5371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5372 am__fastdepCC_TRUE=
5373 am__fastdepCC_FALSE='#'
5374 else
5375 am__fastdepCC_TRUE='#'
5376 am__fastdepCC_FALSE=
5377 fi
5378
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5381 printf %s "checking for a sed that does not truncate output... " >&6; }
5382 if test ${ac_cv_path_SED+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else case e in #(
5386 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5387 for ac_i in 1 2 3 4 5 6 7; do
5388 ac_script="$ac_script$as_nl$ac_script"
5389 done
5390 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5391 { ac_script=; unset ac_script;}
5392 if test -z "$SED"; then
5393 ac_path_SED_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 case $as_dir in #(((
5400 '') as_dir=./ ;;
5401 */) ;;
5402 *) as_dir=$as_dir/ ;;
5403 esac
5404 for ac_prog in sed gsed
5405 do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5408 as_fn_executable_p "$ac_path_SED" || continue
5409 # Check for GNU ac_path_SED and select it if it is found.
5410 # Check for GNU $ac_path_SED
5411 case `"$ac_path_SED" --version 2>&1` in #(
5412 *GNU*)
5413 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5414 #(
5415 *)
5416 ac_count=0
5417 printf %s 0123456789 >"conftest.in"
5418 while :
5419 do
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 printf "%s\n" '' >> "conftest.nl"
5424 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5426 as_fn_arith $ac_count + 1 && ac_count=$as_val
5427 if test $ac_count -gt ${ac_path_SED_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_SED="$ac_path_SED"
5430 ac_path_SED_max=$ac_count
5431 fi
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5434 done
5435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5436 esac
5437
5438 $ac_path_SED_found && break 3
5439 done
5440 done
5441 done
5442 IFS=$as_save_IFS
5443 if test -z "$ac_cv_path_SED"; then
5444 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5445 fi
5446 else
5447 ac_cv_path_SED=$SED
5448 fi
5449 ;;
5450 esac
5451 fi
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5453 printf "%s\n" "$ac_cv_path_SED" >&6; }
5454 SED="$ac_cv_path_SED"
5455 rm -f conftest.sed
5456
5457 test -z "$SED" && SED=sed
5458 Xsed="$SED -e 1s/^X//"
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5471 printf %s "checking for grep that handles long lines and -e... " >&6; }
5472 if test ${ac_cv_path_GREP+y}
5473 then :
5474 printf %s "(cached) " >&6
5475 else case e in #(
5476 e) if test -z "$GREP"; then
5477 ac_path_GREP_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481 do
5482 IFS=$as_save_IFS
5483 case $as_dir in #(((
5484 '') as_dir=./ ;;
5485 */) ;;
5486 *) as_dir=$as_dir/ ;;
5487 esac
5488 for ac_prog in grep ggrep
5489 do
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5492 as_fn_executable_p "$ac_path_GREP" || continue
5493 # Check for GNU ac_path_GREP and select it if it is found.
5494 # Check for GNU $ac_path_GREP
5495 case `"$ac_path_GREP" --version 2>&1` in #(
5496 *GNU*)
5497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5498 #(
5499 *)
5500 ac_count=0
5501 printf %s 0123456789 >"conftest.in"
5502 while :
5503 do
5504 cat "conftest.in" "conftest.in" >"conftest.tmp"
5505 mv "conftest.tmp" "conftest.in"
5506 cp "conftest.in" "conftest.nl"
5507 printf "%s\n" 'GREP' >> "conftest.nl"
5508 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510 as_fn_arith $ac_count + 1 && ac_count=$as_val
5511 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5512 # Best one so far, save it but keep looking for a better one
5513 ac_cv_path_GREP="$ac_path_GREP"
5514 ac_path_GREP_max=$ac_count
5515 fi
5516 # 10*(2^10) chars as input seems more than enough
5517 test $ac_count -gt 10 && break
5518 done
5519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5520 esac
5521
5522 $ac_path_GREP_found && break 3
5523 done
5524 done
5525 done
5526 IFS=$as_save_IFS
5527 if test -z "$ac_cv_path_GREP"; then
5528 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5529 fi
5530 else
5531 ac_cv_path_GREP=$GREP
5532 fi
5533 ;;
5534 esac
5535 fi
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5537 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5538 GREP="$ac_cv_path_GREP"
5539
5540
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5542 printf %s "checking for egrep... " >&6; }
5543 if test ${ac_cv_path_EGREP+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else case e in #(
5547 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5548 then ac_cv_path_EGREP="$GREP -E"
5549 else
5550 if test -z "$EGREP"; then
5551 ac_path_EGREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555 do
5556 IFS=$as_save_IFS
5557 case $as_dir in #(((
5558 '') as_dir=./ ;;
5559 */) ;;
5560 *) as_dir=$as_dir/ ;;
5561 esac
5562 for ac_prog in egrep
5563 do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5566 as_fn_executable_p "$ac_path_EGREP" || continue
5567 # Check for GNU ac_path_EGREP and select it if it is found.
5568 # Check for GNU $ac_path_EGREP
5569 case `"$ac_path_EGREP" --version 2>&1` in #(
5570 *GNU*)
5571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5572 #(
5573 *)
5574 ac_count=0
5575 printf %s 0123456789 >"conftest.in"
5576 while :
5577 do
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 printf "%s\n" 'EGREP' >> "conftest.nl"
5582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5584 as_fn_arith $ac_count + 1 && ac_count=$as_val
5585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_EGREP="$ac_path_EGREP"
5588 ac_path_EGREP_max=$ac_count
5589 fi
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5592 done
5593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 esac
5595
5596 $ac_path_EGREP_found && break 3
5597 done
5598 done
5599 done
5600 IFS=$as_save_IFS
5601 if test -z "$ac_cv_path_EGREP"; then
5602 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5603 fi
5604 else
5605 ac_cv_path_EGREP=$EGREP
5606 fi
5607
5608 fi ;;
5609 esac
5610 fi
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5612 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5613 EGREP="$ac_cv_path_EGREP"
5614
5615 EGREP_TRADITIONAL=$EGREP
5616 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5617
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5619 printf %s "checking for fgrep... " >&6; }
5620 if test ${ac_cv_path_FGREP+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else case e in #(
5624 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5625 then ac_cv_path_FGREP="$GREP -F"
5626 else
5627 if test -z "$FGREP"; then
5628 ac_path_FGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 do
5633 IFS=$as_save_IFS
5634 case $as_dir in #(((
5635 '') as_dir=./ ;;
5636 */) ;;
5637 *) as_dir=$as_dir/ ;;
5638 esac
5639 for ac_prog in fgrep
5640 do
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5643 as_fn_executable_p "$ac_path_FGREP" || continue
5644 # Check for GNU ac_path_FGREP and select it if it is found.
5645 # Check for GNU $ac_path_FGREP
5646 case `"$ac_path_FGREP" --version 2>&1` in #(
5647 *GNU*)
5648 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5649 #(
5650 *)
5651 ac_count=0
5652 printf %s 0123456789 >"conftest.in"
5653 while :
5654 do
5655 cat "conftest.in" "conftest.in" >"conftest.tmp"
5656 mv "conftest.tmp" "conftest.in"
5657 cp "conftest.in" "conftest.nl"
5658 printf "%s\n" 'FGREP' >> "conftest.nl"
5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5661 as_fn_arith $ac_count + 1 && ac_count=$as_val
5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5663 # Best one so far, save it but keep looking for a better one
5664 ac_cv_path_FGREP="$ac_path_FGREP"
5665 ac_path_FGREP_max=$ac_count
5666 fi
5667 # 10*(2^10) chars as input seems more than enough
5668 test $ac_count -gt 10 && break
5669 done
5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 esac
5672
5673 $ac_path_FGREP_found && break 3
5674 done
5675 done
5676 done
5677 IFS=$as_save_IFS
5678 if test -z "$ac_cv_path_FGREP"; then
5679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5680 fi
5681 else
5682 ac_cv_path_FGREP=$FGREP
5683 fi
5684
5685 fi ;;
5686 esac
5687 fi
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5689 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5690 FGREP="$ac_cv_path_FGREP"
5691
5692
5693 test -z "$GREP" && GREP=grep
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 # Check whether --with-gnu-ld was given.
5714 if test ${with_gnu_ld+y}
5715 then :
5716 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5717 else case e in #(
5718 e) with_gnu_ld=no ;;
5719 esac
5720 fi
5721
5722 ac_prog=ld
5723 if test yes = "$GCC"; then
5724 # Check if gcc -print-prog-name=ld gives a path.
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5726 printf %s "checking for ld used by $CC... " >&6; }
5727 case $host in
5728 *-*-mingw* | *-*-windows*)
5729 # gcc leaves a trailing carriage return, which upsets mingw
5730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5731 *)
5732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5733 esac
5734 case $ac_prog in
5735 # Accept absolute paths.
5736 [\\/]* | ?:[\\/]*)
5737 re_direlt='/[^/][^/]*/\.\./'
5738 # Canonicalize the pathname of ld
5739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5742 done
5743 test -z "$LD" && LD=$ac_prog
5744 ;;
5745 "")
5746 # If it fails, then pretend we aren't using GCC.
5747 ac_prog=ld
5748 ;;
5749 *)
5750 # If it is relative, then search for the first ld in PATH.
5751 with_gnu_ld=unknown
5752 ;;
5753 esac
5754 elif test yes = "$with_gnu_ld"; then
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5756 printf %s "checking for GNU ld... " >&6; }
5757 else
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5759 printf %s "checking for non-GNU ld... " >&6; }
5760 fi
5761 if test ${lt_cv_path_LD+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else case e in #(
5765 e) if test -z "$LD"; then
5766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5767 for ac_dir in $PATH; do
5768 IFS=$lt_save_ifs
5769 test -z "$ac_dir" && ac_dir=.
5770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5771 lt_cv_path_LD=$ac_dir/$ac_prog
5772 # Check to see if the program is GNU ld. I'd rather use --version,
5773 # but apparently some variants of GNU ld only accept -v.
5774 # Break only if it was the GNU/non-GNU ld that we prefer.
5775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5776 *GNU* | *'with BFD'*)
5777 test no != "$with_gnu_ld" && break
5778 ;;
5779 *)
5780 test yes != "$with_gnu_ld" && break
5781 ;;
5782 esac
5783 fi
5784 done
5785 IFS=$lt_save_ifs
5786 else
5787 lt_cv_path_LD=$LD # Let the user override the test with a path.
5788 fi ;;
5789 esac
5790 fi
5791
5792 LD=$lt_cv_path_LD
5793 if test -n "$LD"; then
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5795 printf "%s\n" "$LD" >&6; }
5796 else
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 printf "%s\n" "no" >&6; }
5799 fi
5800 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5802 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5803 if test ${lt_cv_prog_gnu_ld+y}
5804 then :
5805 printf %s "(cached) " >&6
5806 else case e in #(
5807 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5808 case `$LD -v 2>&1 </dev/null` in
5809 *GNU* | *'with BFD'*)
5810 lt_cv_prog_gnu_ld=yes
5811 ;;
5812 *)
5813 lt_cv_prog_gnu_ld=no
5814 ;;
5815 esac ;;
5816 esac
5817 fi
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5819 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5820 with_gnu_ld=$lt_cv_prog_gnu_ld
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5831 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5832 if test ${lt_cv_path_NM+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) if test -n "$NM"; then
5837 # Let the user override the test.
5838 lt_cv_path_NM=$NM
5839 else
5840 lt_nm_to_check=${ac_tool_prefix}nm
5841 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5842 lt_nm_to_check="$lt_nm_to_check nm"
5843 fi
5844 for lt_tmp_nm in $lt_nm_to_check; do
5845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5846 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5847 IFS=$lt_save_ifs
5848 test -z "$ac_dir" && ac_dir=.
5849 tmp_nm=$ac_dir/$lt_tmp_nm
5850 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5851 # Check to see if the nm accepts a BSD-compat flag.
5852 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5853 # nm: unknown option "B" ignored
5854 # Tru64's nm complains that /dev/null is an invalid object file
5855 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5856 case $build_os in
5857 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5858 *) lt_bad_file=/dev/null ;;
5859 esac
5860 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5861 *$lt_bad_file* | *'Invalid file or object type'*)
5862 lt_cv_path_NM="$tmp_nm -B"
5863 break 2
5864 ;;
5865 *)
5866 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5867 */dev/null*)
5868 lt_cv_path_NM="$tmp_nm -p"
5869 break 2
5870 ;;
5871 *)
5872 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5873 continue # so that we can try to find one that supports BSD flags
5874 ;;
5875 esac
5876 ;;
5877 esac
5878 fi
5879 done
5880 IFS=$lt_save_ifs
5881 done
5882 : ${lt_cv_path_NM=no}
5883 fi ;;
5884 esac
5885 fi
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5887 printf "%s\n" "$lt_cv_path_NM" >&6; }
5888 if test no != "$lt_cv_path_NM"; then
5889 NM=$lt_cv_path_NM
5890 else
5891 # Didn't find any BSD compatible name lister, look for dumpbin.
5892 if test -n "$DUMPBIN"; then :
5893 # Let the user override the test.
5894 else
5895 if test -n "$ac_tool_prefix"; then
5896 for ac_prog in dumpbin "link -dump"
5897 do
5898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 printf %s "checking for $ac_word... " >&6; }
5902 if test ${ac_cv_prog_DUMPBIN+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else case e in #(
5906 e) if test -n "$DUMPBIN"; then
5907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 case $as_dir in #(((
5914 '') as_dir=./ ;;
5915 */) ;;
5916 *) as_dir=$as_dir/ ;;
5917 esac
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi ;;
5929 esac
5930 fi
5931 DUMPBIN=$ac_cv_prog_DUMPBIN
5932 if test -n "$DUMPBIN"; then
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5934 printf "%s\n" "$DUMPBIN" >&6; }
5935 else
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 printf "%s\n" "no" >&6; }
5938 fi
5939
5940
5941 test -n "$DUMPBIN" && break
5942 done
5943 fi
5944 if test -z "$DUMPBIN"; then
5945 ac_ct_DUMPBIN=$DUMPBIN
5946 for ac_prog in dumpbin "link -dump"
5947 do
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 printf %s "checking for $ac_word... " >&6; }
5952 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else case e in #(
5956 e) if test -n "$ac_ct_DUMPBIN"; then
5957 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962 IFS=$as_save_IFS
5963 case $as_dir in #(((
5964 '') as_dir=./ ;;
5965 */) ;;
5966 *) as_dir=$as_dir/ ;;
5967 esac
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978 fi ;;
5979 esac
5980 fi
5981 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982 if test -n "$ac_ct_DUMPBIN"; then
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5984 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5985 else
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 printf "%s\n" "no" >&6; }
5988 fi
5989
5990
5991 test -n "$ac_ct_DUMPBIN" && break
5992 done
5993
5994 if test "x$ac_ct_DUMPBIN" = x; then
5995 DUMPBIN=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 DUMPBIN=$ac_ct_DUMPBIN
6004 fi
6005 fi
6006
6007 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6008 *COFF*)
6009 DUMPBIN="$DUMPBIN -symbols -headers"
6010 ;;
6011 *)
6012 DUMPBIN=:
6013 ;;
6014 esac
6015 fi
6016
6017 if test : != "$DUMPBIN"; then
6018 NM=$DUMPBIN
6019 fi
6020 fi
6021 test -z "$NM" && NM=nm
6022
6023
6024
6025
6026
6027
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6029 printf %s "checking the name lister ($NM) interface... " >&6; }
6030 if test ${lt_cv_nm_interface+y}
6031 then :
6032 printf %s "(cached) " >&6
6033 else case e in #(
6034 e) lt_cv_nm_interface="BSD nm"
6035 echo "int some_variable = 0;" > conftest.$ac_ext
6036 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6037 (eval "$ac_compile" 2>conftest.err)
6038 cat conftest.err >&5
6039 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6040 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6041 cat conftest.err >&5
6042 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6043 cat conftest.out >&5
6044 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6045 lt_cv_nm_interface="MS dumpbin"
6046 fi
6047 rm -f conftest* ;;
6048 esac
6049 fi
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6051 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6052
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6054 printf %s "checking whether ln -s works... " >&6; }
6055 LN_S=$as_ln_s
6056 if test "$LN_S" = "ln -s"; then
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058 printf "%s\n" "yes" >&6; }
6059 else
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6061 printf "%s\n" "no, using $LN_S" >&6; }
6062 fi
6063
6064 # find the maximum length of command line arguments
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6066 printf %s "checking the maximum length of command line arguments... " >&6; }
6067 if test ${lt_cv_sys_max_cmd_len+y}
6068 then :
6069 printf %s "(cached) " >&6
6070 else case e in #(
6071 e) i=0
6072 teststring=ABCD
6073
6074 case $build_os in
6075 msdosdjgpp*)
6076 # On DJGPP, this test can blow up pretty badly due to problems in libc
6077 # (any single argument exceeding 2000 bytes causes a buffer overrun
6078 # during glob expansion). Even if it were fixed, the result of this
6079 # check would be larger than it should be.
6080 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6081 ;;
6082
6083 gnu* | ironclad*)
6084 # Under GNU Hurd and Ironclad, this test is not required because there
6085 # is no limit to the length of command line arguments.
6086 # Libtool will interpret -1 as no limit whatsoever
6087 lt_cv_sys_max_cmd_len=-1;
6088 ;;
6089
6090 cygwin* | mingw* | windows* | cegcc*)
6091 # On Win9x/ME, this test blows up -- it succeeds, but takes
6092 # about 5 minutes as the teststring grows exponentially.
6093 # Worse, since 9x/ME are not pre-emptively multitasking,
6094 # you end up with a "frozen" computer, even though with patience
6095 # the test eventually succeeds (with a max line length of 256k).
6096 # Instead, let's just punt: use the minimum linelength reported by
6097 # all of the supported platforms: 8192 (on NT/2K/XP).
6098 lt_cv_sys_max_cmd_len=8192;
6099 ;;
6100
6101 mint*)
6102 # On MiNT this can take a long time and run out of memory.
6103 lt_cv_sys_max_cmd_len=8192;
6104 ;;
6105
6106 amigaos*)
6107 # On AmigaOS with pdksh, this test takes hours, literally.
6108 # So we just punt and use a minimum line length of 8192.
6109 lt_cv_sys_max_cmd_len=8192;
6110 ;;
6111
6112 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6113 # This has been around since 386BSD, at least. Likely further.
6114 if test -x /sbin/sysctl; then
6115 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6116 elif test -x /usr/sbin/sysctl; then
6117 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6118 else
6119 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6120 fi
6121 # And add a safety zone
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6124 ;;
6125
6126 interix*)
6127 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6128 lt_cv_sys_max_cmd_len=196608
6129 ;;
6130
6131 os2*)
6132 # The test takes a long time on OS/2.
6133 lt_cv_sys_max_cmd_len=8192
6134 ;;
6135
6136 osf*)
6137 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139 # nice to cause kernel panics so lets avoid the loop below.
6140 # First set a reasonable default.
6141 lt_cv_sys_max_cmd_len=16384
6142 #
6143 if test -x /sbin/sysconfig; then
6144 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6146 esac
6147 fi
6148 ;;
6149 sco3.2v5*)
6150 lt_cv_sys_max_cmd_len=102400
6151 ;;
6152 sysv5* | sco5v6* | sysv4.2uw2*)
6153 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154 if test -n "$kargmax"; then
6155 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6156 else
6157 lt_cv_sys_max_cmd_len=32768
6158 fi
6159 ;;
6160 *)
6161 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6162 if test -n "$lt_cv_sys_max_cmd_len" && \
6163 test undefined != "$lt_cv_sys_max_cmd_len"; then
6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6166 else
6167 # Make teststring a little bigger before we do anything with it.
6168 # a 1K string should be a reasonable start.
6169 for i in 1 2 3 4 5 6 7 8; do
6170 teststring=$teststring$teststring
6171 done
6172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6173 # If test is not a shell built-in, we'll probably end up computing a
6174 # maximum length that is only half of the actual maximum length, but
6175 # we can't tell.
6176 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6177 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6178 test 17 != "$i" # 1/2 MB should be enough
6179 do
6180 i=`expr $i + 1`
6181 teststring=$teststring$teststring
6182 done
6183 # Only check the string length outside the loop.
6184 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6185 teststring=
6186 # Add a significant safety factor because C++ compilers can tack on
6187 # massive amounts of additional arguments before passing them to the
6188 # linker. It appears as though 1/2 is a usable value.
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6190 fi
6191 ;;
6192 esac
6193 ;;
6194 esac
6195 fi
6196
6197 if test -n "$lt_cv_sys_max_cmd_len"; then
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6199 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6200 else
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6202 printf "%s\n" "none" >&6; }
6203 fi
6204 max_cmd_len=$lt_cv_sys_max_cmd_len
6205
6206
6207
6208
6209
6210
6211 : ${CP="cp -f"}
6212 : ${MV="mv -f"}
6213 : ${RM="rm -f"}
6214
6215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6216 lt_unset=unset
6217 else
6218 lt_unset=false
6219 fi
6220
6221
6222
6223
6224
6225 # test EBCDIC or ASCII
6226 case `echo X|tr X '\101'` in
6227 A) # ASCII based system
6228 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6229 lt_SP2NL='tr \040 \012'
6230 lt_NL2SP='tr \015\012 \040\040'
6231 ;;
6232 *) # EBCDIC based system
6233 lt_SP2NL='tr \100 \n'
6234 lt_NL2SP='tr \r\n \100\100'
6235 ;;
6236 esac
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6247 printf %s "checking how to convert $build file names to $host format... " >&6; }
6248 if test ${lt_cv_to_host_file_cmd+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else case e in #(
6252 e) case $host in
6253 *-*-mingw* )
6254 case $build in
6255 *-*-mingw* | *-*-windows* ) # actually msys
6256 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6257 ;;
6258 *-*-cygwin* )
6259 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6260 ;;
6261 * ) # otherwise, assume *nix
6262 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6263 ;;
6264 esac
6265 ;;
6266 *-*-cygwin* )
6267 case $build in
6268 *-*-mingw* | *-*-windows* ) # actually msys
6269 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6270 ;;
6271 *-*-cygwin* )
6272 lt_cv_to_host_file_cmd=func_convert_file_noop
6273 ;;
6274 * ) # otherwise, assume *nix
6275 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6276 ;;
6277 esac
6278 ;;
6279 * ) # unhandled hosts (and "normal" native builds)
6280 lt_cv_to_host_file_cmd=func_convert_file_noop
6281 ;;
6282 esac
6283 ;;
6284 esac
6285 fi
6286
6287 to_host_file_cmd=$lt_cv_to_host_file_cmd
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6289 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6290
6291
6292
6293
6294
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6296 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6297 if test ${lt_cv_to_tool_file_cmd+y}
6298 then :
6299 printf %s "(cached) " >&6
6300 else case e in #(
6301 e) #assume ordinary cross tools, or native build.
6302 lt_cv_to_tool_file_cmd=func_convert_file_noop
6303 case $host in
6304 *-*-mingw* | *-*-windows* )
6305 case $build in
6306 *-*-mingw* | *-*-windows* ) # actually msys
6307 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6308 ;;
6309 esac
6310 ;;
6311 esac
6312 ;;
6313 esac
6314 fi
6315
6316 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6318 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6319
6320
6321
6322
6323
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6325 printf %s "checking for $LD option to reload object files... " >&6; }
6326 if test ${lt_cv_ld_reload_flag+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else case e in #(
6330 e) lt_cv_ld_reload_flag='-r' ;;
6331 esac
6332 fi
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6334 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6335 reload_flag=$lt_cv_ld_reload_flag
6336 case $reload_flag in
6337 "" | " "*) ;;
6338 *) reload_flag=" $reload_flag" ;;
6339 esac
6340 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6341 case $host_os in
6342 cygwin* | mingw* | windows* | pw32* | cegcc*)
6343 if test yes != "$GCC"; then
6344 reload_cmds=false
6345 fi
6346 ;;
6347 darwin*)
6348 if test yes = "$GCC"; then
6349 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6350 else
6351 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6352 fi
6353 ;;
6354 esac
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 # Extract the first word of "file", so it can be a program name with args.
6365 set dummy file; ac_word=$2
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 printf %s "checking for $ac_word... " >&6; }
6368 if test ${ac_cv_prog_FILECMD+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else case e in #(
6372 e) if test -n "$FILECMD"; then
6373 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 case $as_dir in #(((
6380 '') as_dir=./ ;;
6381 */) ;;
6382 *) as_dir=$as_dir/ ;;
6383 esac
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_FILECMD="file"
6387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6395 fi ;;
6396 esac
6397 fi
6398 FILECMD=$ac_cv_prog_FILECMD
6399 if test -n "$FILECMD"; then
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6401 printf "%s\n" "$FILECMD" >&6; }
6402 else
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 printf "%s\n" "no" >&6; }
6405 fi
6406
6407
6408
6409
6410
6411
6412
6413
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 printf %s "checking for $ac_word... " >&6; }
6419 if test ${ac_cv_prog_OBJDUMP+y}
6420 then :
6421 printf %s "(cached) " >&6
6422 else case e in #(
6423 e) if test -n "$OBJDUMP"; then
6424 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429 IFS=$as_save_IFS
6430 case $as_dir in #(((
6431 '') as_dir=./ ;;
6432 */) ;;
6433 *) as_dir=$as_dir/ ;;
6434 esac
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445 fi ;;
6446 esac
6447 fi
6448 OBJDUMP=$ac_cv_prog_OBJDUMP
6449 if test -n "$OBJDUMP"; then
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6451 printf "%s\n" "$OBJDUMP" >&6; }
6452 else
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 printf "%s\n" "no" >&6; }
6455 fi
6456
6457
6458 fi
6459 if test -z "$ac_cv_prog_OBJDUMP"; then
6460 ac_ct_OBJDUMP=$OBJDUMP
6461 # Extract the first word of "objdump", so it can be a program name with args.
6462 set dummy objdump; ac_word=$2
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 printf %s "checking for $ac_word... " >&6; }
6465 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6466 then :
6467 printf %s "(cached) " >&6
6468 else case e in #(
6469 e) if test -n "$ac_ct_OBJDUMP"; then
6470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 case $as_dir in #(((
6477 '') as_dir=./ ;;
6478 */) ;;
6479 *) as_dir=$as_dir/ ;;
6480 esac
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491 fi ;;
6492 esac
6493 fi
6494 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6495 if test -n "$ac_ct_OBJDUMP"; then
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6497 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6498 else
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 printf "%s\n" "no" >&6; }
6501 fi
6502
6503 if test "x$ac_ct_OBJDUMP" = x; then
6504 OBJDUMP="false"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512 OBJDUMP=$ac_ct_OBJDUMP
6513 fi
6514 else
6515 OBJDUMP="$ac_cv_prog_OBJDUMP"
6516 fi
6517
6518 test -z "$OBJDUMP" && OBJDUMP=objdump
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6529 printf %s "checking how to recognize dependent libraries... " >&6; }
6530 if test ${lt_cv_deplibs_check_method+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else case e in #(
6534 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6535 lt_cv_file_magic_test_file=
6536 lt_cv_deplibs_check_method='unknown'
6537 # Need to set the preceding variable on all platforms that support
6538 # interlibrary dependencies.
6539 # 'none' -- dependencies not supported.
6540 # 'unknown' -- same as none, but documents that we really don't know.
6541 # 'pass_all' -- all dependencies passed with no checks.
6542 # 'file_magic [[regex]]' -- check by looking for files in library path
6543 # that responds to the $file_magic_cmd with a given extended regex.
6544 # If you have 'file' or equivalent on your system and you're not sure
6545 # whether 'pass_all' will *always* work, you probably want this one.
6546
6547 case $host_os in
6548 aix[4-9]*)
6549 lt_cv_deplibs_check_method=pass_all
6550 ;;
6551
6552 beos*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556 bsdi[45]*)
6557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6558 lt_cv_file_magic_cmd='$FILECMD -L'
6559 lt_cv_file_magic_test_file=/shlib/libc.so
6560 ;;
6561
6562 cygwin*)
6563 # func_win32_libid is a shell function defined in ltmain.sh
6564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6565 lt_cv_file_magic_cmd='func_win32_libid'
6566 ;;
6567
6568 mingw* | windows* | pw32*)
6569 # Base MSYS/MinGW do not provide the 'file' command needed by
6570 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6571 # unless we find 'file', for example because we are cross-compiling.
6572 if ( file / ) >/dev/null 2>&1; then
6573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6574 lt_cv_file_magic_cmd='func_win32_libid'
6575 else
6576 # Keep this pattern in sync with the one in func_win32_libid.
6577 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6578 lt_cv_file_magic_cmd='$OBJDUMP -f'
6579 fi
6580 ;;
6581
6582 cegcc*)
6583 # use the weaker test based on 'objdump'. See mingw*.
6584 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6585 lt_cv_file_magic_cmd='$OBJDUMP -f'
6586 ;;
6587
6588 darwin* | rhapsody*)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591
6592 freebsd* | dragonfly* | midnightbsd*)
6593 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6594 case $host_cpu in
6595 i*86 )
6596 # Not sure whether the presence of OpenBSD here was a mistake.
6597 # Let's accept both of them until this is cleared up.
6598 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6599 lt_cv_file_magic_cmd=$FILECMD
6600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6601 ;;
6602 esac
6603 else
6604 lt_cv_deplibs_check_method=pass_all
6605 fi
6606 ;;
6607
6608 haiku*)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611
6612 hpux10.20* | hpux11*)
6613 lt_cv_file_magic_cmd=$FILECMD
6614 case $host_cpu in
6615 ia64*)
6616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6617 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6618 ;;
6619 hppa*64*)
6620 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6621 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6622 ;;
6623 *)
6624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6625 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6626 ;;
6627 esac
6628 ;;
6629
6630 interix[3-9]*)
6631 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6633 ;;
6634
6635 irix5* | irix6* | nonstopux*)
6636 case $LD in
6637 *-32|*"-32 ") libmagic=32-bit;;
6638 *-n32|*"-n32 ") libmagic=N32;;
6639 *-64|*"-64 ") libmagic=64-bit;;
6640 *) libmagic=never-match;;
6641 esac
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 # This must be glibc/ELF.
6646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
6650 *-mlibc)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654 netbsd* | netbsdelf*-gnu)
6655 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6657 else
6658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6659 fi
6660 ;;
6661
6662 newos6*)
6663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6664 lt_cv_file_magic_cmd=$FILECMD
6665 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6666 ;;
6667
6668 *nto* | *qnx*)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671
6672 openbsd*)
6673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6675 else
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677 fi
6678 ;;
6679
6680 osf3* | osf4* | osf5*)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683
6684 rdos*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688 serenity*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 solaris*)
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
6695
6696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6697 lt_cv_deplibs_check_method=pass_all
6698 ;;
6699
6700 sysv4 | sysv4.3*)
6701 case $host_vendor in
6702 motorola)
6703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6705 ;;
6706 ncr)
6707 lt_cv_deplibs_check_method=pass_all
6708 ;;
6709 sequent)
6710 lt_cv_file_magic_cmd='/bin/file'
6711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6712 ;;
6713 sni)
6714 lt_cv_file_magic_cmd='/bin/file'
6715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6716 lt_cv_file_magic_test_file=/lib/libc.so
6717 ;;
6718 siemens)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
6721 pc)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724 esac
6725 ;;
6726
6727 tpf*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730 os2*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733 esac
6734 ;;
6735 esac
6736 fi
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6738 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6739
6740 file_magic_glob=
6741 want_nocaseglob=no
6742 if test "$build" = "$host"; then
6743 case $host_os in
6744 mingw* | windows* | pw32*)
6745 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6746 want_nocaseglob=yes
6747 else
6748 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6749 fi
6750 ;;
6751 esac
6752 fi
6753
6754 file_magic_cmd=$lt_cv_file_magic_cmd
6755 deplibs_check_method=$lt_cv_deplibs_check_method
6756 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 printf %s "checking for $ac_word... " >&6; }
6784 if test ${ac_cv_prog_DLLTOOL+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else case e in #(
6788 e) if test -n "$DLLTOOL"; then
6789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 case $as_dir in #(((
6796 '') as_dir=./ ;;
6797 */) ;;
6798 *) as_dir=$as_dir/ ;;
6799 esac
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi ;;
6811 esac
6812 fi
6813 DLLTOOL=$ac_cv_prog_DLLTOOL
6814 if test -n "$DLLTOOL"; then
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6816 printf "%s\n" "$DLLTOOL" >&6; }
6817 else
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 printf "%s\n" "no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_DLLTOOL"; then
6825 ac_ct_DLLTOOL=$DLLTOOL
6826 # Extract the first word of "dlltool", so it can be a program name with args.
6827 set dummy dlltool; ac_word=$2
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 printf %s "checking for $ac_word... " >&6; }
6830 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6831 then :
6832 printf %s "(cached) " >&6
6833 else case e in #(
6834 e) if test -n "$ac_ct_DLLTOOL"; then
6835 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 case $as_dir in #(((
6842 '') as_dir=./ ;;
6843 */) ;;
6844 *) as_dir=$as_dir/ ;;
6845 esac
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi ;;
6857 esac
6858 fi
6859 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6860 if test -n "$ac_ct_DLLTOOL"; then
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6862 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6863 else
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 printf "%s\n" "no" >&6; }
6866 fi
6867
6868 if test "x$ac_ct_DLLTOOL" = x; then
6869 DLLTOOL="false"
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 DLLTOOL=$ac_ct_DLLTOOL
6878 fi
6879 else
6880 DLLTOOL="$ac_cv_prog_DLLTOOL"
6881 fi
6882
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6895 printf %s "checking how to associate runtime and link libraries... " >&6; }
6896 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6897 then :
6898 printf %s "(cached) " >&6
6899 else case e in #(
6900 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6901
6902 case $host_os in
6903 cygwin* | mingw* | windows* | pw32* | cegcc*)
6904 # two different shell functions defined in ltmain.sh;
6905 # decide which one to use based on capabilities of $DLLTOOL
6906 case `$DLLTOOL --help 2>&1` in
6907 *--identify-strict*)
6908 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6909 ;;
6910 *)
6911 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6912 ;;
6913 esac
6914 ;;
6915 *)
6916 # fallback: assume linklib IS sharedlib
6917 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6918 ;;
6919 esac
6920 ;;
6921 esac
6922 fi
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6924 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6925 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6926 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6927
6928
6929
6930
6931
6932
6933
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 printf %s "checking for $ac_word... " >&6; }
6940 if test ${ac_cv_prog_RANLIB+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else case e in #(
6944 e) if test -n "$RANLIB"; then
6945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 case $as_dir in #(((
6952 '') as_dir=./ ;;
6953 */) ;;
6954 *) as_dir=$as_dir/ ;;
6955 esac
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi ;;
6967 esac
6968 fi
6969 RANLIB=$ac_cv_prog_RANLIB
6970 if test -n "$RANLIB"; then
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6972 printf "%s\n" "$RANLIB" >&6; }
6973 else
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 printf "%s\n" "no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_RANLIB"; then
6981 ac_ct_RANLIB=$RANLIB
6982 # Extract the first word of "ranlib", so it can be a program name with args.
6983 set dummy ranlib; ac_word=$2
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 printf %s "checking for $ac_word... " >&6; }
6986 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else case e in #(
6990 e) if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 case $as_dir in #(((
6998 '') as_dir=./ ;;
6999 */) ;;
7000 *) as_dir=$as_dir/ ;;
7001 esac
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_ac_ct_RANLIB="ranlib"
7005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi ;;
7013 esac
7014 fi
7015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7016 if test -n "$ac_ct_RANLIB"; then
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7018 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7019 else
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 printf "%s\n" "no" >&6; }
7022 fi
7023
7024 if test "x$ac_ct_RANLIB" = x; then
7025 RANLIB=":"
7026 else
7027 case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7030 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7031 ac_tool_warned=yes ;;
7032 esac
7033 RANLIB=$ac_ct_RANLIB
7034 fi
7035 else
7036 RANLIB="$ac_cv_prog_RANLIB"
7037 fi
7038
7039 if test -n "$ac_tool_prefix"; then
7040 for ac_prog in ar
7041 do
7042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 printf %s "checking for $ac_word... " >&6; }
7046 if test ${ac_cv_prog_AR+y}
7047 then :
7048 printf %s "(cached) " >&6
7049 else case e in #(
7050 e) if test -n "$AR"; then
7051 ac_cv_prog_AR="$AR" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056 IFS=$as_save_IFS
7057 case $as_dir in #(((
7058 '') as_dir=./ ;;
7059 */) ;;
7060 *) as_dir=$as_dir/ ;;
7061 esac
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi ;;
7073 esac
7074 fi
7075 AR=$ac_cv_prog_AR
7076 if test -n "$AR"; then
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7078 printf "%s\n" "$AR" >&6; }
7079 else
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 printf "%s\n" "no" >&6; }
7082 fi
7083
7084
7085 test -n "$AR" && break
7086 done
7087 fi
7088 if test -z "$AR"; then
7089 ac_ct_AR=$AR
7090 for ac_prog in ar
7091 do
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 printf %s "checking for $ac_word... " >&6; }
7096 if test ${ac_cv_prog_ac_ct_AR+y}
7097 then :
7098 printf %s "(cached) " >&6
7099 else case e in #(
7100 e) if test -n "$ac_ct_AR"; then
7101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 case $as_dir in #(((
7108 '') as_dir=./ ;;
7109 */) ;;
7110 *) as_dir=$as_dir/ ;;
7111 esac
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_ac_ct_AR="$ac_prog"
7115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi ;;
7123 esac
7124 fi
7125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7126 if test -n "$ac_ct_AR"; then
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7128 printf "%s\n" "$ac_ct_AR" >&6; }
7129 else
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 printf "%s\n" "no" >&6; }
7132 fi
7133
7134
7135 test -n "$ac_ct_AR" && break
7136 done
7137
7138 if test "x$ac_ct_AR" = x; then
7139 AR="false"
7140 else
7141 case $cross_compiling:$ac_tool_warned in
7142 yes:)
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7146 esac
7147 AR=$ac_ct_AR
7148 fi
7149 fi
7150
7151 : ${AR=ar}
7152
7153
7154
7155
7156
7157
7158 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7159 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7160 # higher priority because that's what people were doing historically (setting
7161 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7162 # variable obsoleted/removed.
7163
7164 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7165 lt_ar_flags=$AR_FLAGS
7166
7167
7168
7169
7170
7171
7172 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7173 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7174
7175
7176
7177
7178
7179
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7181 printf %s "checking for archiver @FILE support... " >&6; }
7182 if test ${lt_cv_ar_at_file+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) lt_cv_ar_at_file=no
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189
7190 int
7191 main (void)
7192 {
7193
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"
7199 then :
7200 echo conftest.$ac_objext > conftest.lst
7201 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7203 (eval $lt_ar_try) 2>&5
7204 ac_status=$?
7205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; }
7207 if test 0 -eq "$ac_status"; then
7208 # Ensure the archiver fails upon bogus file names.
7209 rm -f conftest.$ac_objext libconftest.a
7210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7211 (eval $lt_ar_try) 2>&5
7212 ac_status=$?
7213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; }
7215 if test 0 -ne "$ac_status"; then
7216 lt_cv_ar_at_file=@
7217 fi
7218 fi
7219 rm -f conftest.* libconftest.a
7220
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7223 ;;
7224 esac
7225 fi
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7227 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7228
7229 if test no = "$lt_cv_ar_at_file"; then
7230 archiver_list_spec=
7231 else
7232 archiver_list_spec=$lt_cv_ar_at_file
7233 fi
7234
7235
7236
7237
7238
7239
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}strip; ac_word=$2
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 printf %s "checking for $ac_word... " >&6; }
7246 if test ${ac_cv_prog_STRIP+y}
7247 then :
7248 printf %s "(cached) " >&6
7249 else case e in #(
7250 e) if test -n "$STRIP"; then
7251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 case $as_dir in #(((
7258 '') as_dir=./ ;;
7259 */) ;;
7260 *) as_dir=$as_dir/ ;;
7261 esac
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi ;;
7273 esac
7274 fi
7275 STRIP=$ac_cv_prog_STRIP
7276 if test -n "$STRIP"; then
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7278 printf "%s\n" "$STRIP" >&6; }
7279 else
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 printf "%s\n" "no" >&6; }
7282 fi
7283
7284
7285 fi
7286 if test -z "$ac_cv_prog_STRIP"; then
7287 ac_ct_STRIP=$STRIP
7288 # Extract the first word of "strip", so it can be a program name with args.
7289 set dummy strip; ac_word=$2
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 printf %s "checking for $ac_word... " >&6; }
7292 if test ${ac_cv_prog_ac_ct_STRIP+y}
7293 then :
7294 printf %s "(cached) " >&6
7295 else case e in #(
7296 e) if test -n "$ac_ct_STRIP"; then
7297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302 IFS=$as_save_IFS
7303 case $as_dir in #(((
7304 '') as_dir=./ ;;
7305 */) ;;
7306 *) as_dir=$as_dir/ ;;
7307 esac
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_ac_ct_STRIP="strip"
7311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318 fi ;;
7319 esac
7320 fi
7321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7322 if test -n "$ac_ct_STRIP"; then
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7324 printf "%s\n" "$ac_ct_STRIP" >&6; }
7325 else
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 printf "%s\n" "no" >&6; }
7328 fi
7329
7330 if test "x$ac_ct_STRIP" = x; then
7331 STRIP=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 STRIP=$ac_ct_STRIP
7340 fi
7341 else
7342 STRIP="$ac_cv_prog_STRIP"
7343 fi
7344
7345 test -z "$STRIP" && STRIP=:
7346
7347
7348
7349
7350
7351
7352
7353 test -z "$RANLIB" && RANLIB=:
7354
7355
7356
7357
7358
7359
7360 # Determine commands to create old-style static archives.
7361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7362 old_postinstall_cmds='chmod 644 $oldlib'
7363 old_postuninstall_cmds=
7364
7365 if test -n "$RANLIB"; then
7366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7368 fi
7369
7370 case $host_os in
7371 darwin*)
7372 lock_old_archive_extraction=yes ;;
7373 *)
7374 lock_old_archive_extraction=no ;;
7375 esac
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 # If no C compiler was specified, use CC.
7416 LTCC=${LTCC-"$CC"}
7417
7418 # If no C compiler flags were specified, use CFLAGS.
7419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7420
7421 # Allow CC to be a program name with arguments.
7422 compiler=$CC
7423
7424
7425 # Check for command to grab the raw symbol name followed by C symbol from nm.
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7427 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7428 if test ${lt_cv_sys_global_symbol_pipe+y}
7429 then :
7430 printf %s "(cached) " >&6
7431 else case e in #(
7432 e)
7433 # These are sane defaults that work on at least a few old systems.
7434 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7435
7436 # Character class describing NM global symbol codes.
7437 symcode='[BCDEGRST]'
7438
7439 # Regexp to match symbols that can be accessed directly from C.
7440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7441
7442 # Define system-specific variables.
7443 case $host_os in
7444 aix*)
7445 symcode='[BCDT]'
7446 ;;
7447 cygwin* | mingw* | windows* | pw32* | cegcc*)
7448 symcode='[ABCDGISTW]'
7449 ;;
7450 hpux*)
7451 if test ia64 = "$host_cpu"; then
7452 symcode='[ABCDEGRST]'
7453 fi
7454 ;;
7455 irix* | nonstopux*)
7456 symcode='[BCDEGRST]'
7457 ;;
7458 osf*)
7459 symcode='[BCDEGQRST]'
7460 ;;
7461 solaris*)
7462 symcode='[BCDRT]'
7463 ;;
7464 sco3.2v5*)
7465 symcode='[DT]'
7466 ;;
7467 sysv4.2uw2*)
7468 symcode='[DT]'
7469 ;;
7470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7471 symcode='[ABDT]'
7472 ;;
7473 sysv4)
7474 symcode='[DFNSTU]'
7475 ;;
7476 esac
7477
7478 # If we're using GNU nm, then use its standard symbol codes.
7479 case `$NM -V 2>&1` in
7480 *GNU* | *'with BFD'*)
7481 symcode='[ABCDGIRSTW]' ;;
7482 esac
7483
7484 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7485 # Gets list of data symbols to import.
7486 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7487 # Adjust the below global symbol transforms to fixup imported variables.
7488 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7489 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7490 lt_c_name_lib_hook="\
7491 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7492 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7493 else
7494 # Disable hooks by default.
7495 lt_cv_sys_global_symbol_to_import=
7496 lt_cdecl_hook=
7497 lt_c_name_hook=
7498 lt_c_name_lib_hook=
7499 fi
7500
7501 # Transform an extracted symbol line into a proper C declaration.
7502 # Some systems (esp. on ia64) link data and code symbols differently,
7503 # so use this general approach.
7504 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7505 $lt_cdecl_hook\
7506 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7507 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7508
7509 # Transform an extracted symbol line into symbol name and symbol address
7510 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7511 $lt_c_name_hook\
7512 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7513 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7514
7515 # Transform an extracted symbol line into symbol name with lib prefix and
7516 # symbol address.
7517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7518 $lt_c_name_lib_hook\
7519 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7520 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7521 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7522
7523 # Handle CRLF in mingw tool chain
7524 opt_cr=
7525 case $build_os in
7526 mingw* | windows*)
7527 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7528 ;;
7529 esac
7530
7531 # Try without a prefix underscore, then with it.
7532 for ac_symprfx in "" "_"; do
7533
7534 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7535 symxfrm="\\1 $ac_symprfx\\2 \\2"
7536
7537 # Write the raw and C identifiers.
7538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539 # Fake it for dumpbin and say T for any non-static function,
7540 # D for any global variable and I for any imported variable.
7541 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7542 # which start with @ or ?.
7543 lt_cv_sys_global_symbol_pipe="$AWK '"\
7544 " {last_section=section; section=\$ 3};"\
7545 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7546 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7547 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7548 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7549 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7550 " \$ 0!~/External *\|/{next};"\
7551 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 " {if(hide[section]) next};"\
7553 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7554 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7555 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7556 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7557 " ' prfx=^$ac_symprfx"
7558 else
7559 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7560 fi
7561 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7562
7563 # Check to see that the pipe works correctly.
7564 pipe_works=no
7565
7566 rm -f conftest*
7567 cat > conftest.$ac_ext <<_LT_EOF
7568 #ifdef __cplusplus
7569 extern "C" {
7570 #endif
7571 char nm_test_var;
7572 void nm_test_func(void);
7573 void nm_test_func(void){}
7574 #ifdef __cplusplus
7575 }
7576 #endif
7577 int main(void){nm_test_var='a';nm_test_func();return(0);}
7578 _LT_EOF
7579
7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7581 (eval $ac_compile) 2>&5
7582 ac_status=$?
7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; }; then
7585 # Now try to grab the symbols.
7586 nlist=conftest.nm
7587 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7588 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7589 # Try sorting and uniquifying the output.
7590 if sort "$nlist" | uniq > "$nlist"T; then
7591 mv -f "$nlist"T "$nlist"
7592 else
7593 rm -f "$nlist"T
7594 fi
7595
7596 # Make sure that we snagged all the symbols we need.
7597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7599 cat <<_LT_EOF > conftest.$ac_ext
7600 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7601 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7602 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7603 relocations are performed -- see ld's documentation on pseudo-relocs. */
7604 # define LT_DLSYM_CONST
7605 #elif defined __osf__
7606 /* This system does not cope well with relocations in const data. */
7607 # define LT_DLSYM_CONST
7608 #else
7609 # define LT_DLSYM_CONST const
7610 #endif
7611
7612 #ifdef __cplusplus
7613 extern "C" {
7614 #endif
7615
7616 _LT_EOF
7617 # Now generate the symbol file.
7618 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7619
7620 cat <<_LT_EOF >> conftest.$ac_ext
7621
7622 /* The mapping between symbol names and symbols. */
7623 LT_DLSYM_CONST struct {
7624 const char *name;
7625 void *address;
7626 }
7627 lt__PROGRAM__LTX_preloaded_symbols[] =
7628 {
7629 { "@PROGRAM@", (void *) 0 },
7630 _LT_EOF
7631 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7632 cat <<\_LT_EOF >> conftest.$ac_ext
7633 {0, (void *) 0}
7634 };
7635
7636 /* This works around a problem in FreeBSD linker */
7637 #ifdef FREEBSD_WORKAROUND
7638 static const void *lt_preloaded_setup() {
7639 return lt__PROGRAM__LTX_preloaded_symbols;
7640 }
7641 #endif
7642
7643 #ifdef __cplusplus
7644 }
7645 #endif
7646 _LT_EOF
7647 # Now try linking the two files.
7648 mv conftest.$ac_objext conftstm.$ac_objext
7649 lt_globsym_save_LIBS=$LIBS
7650 lt_globsym_save_CFLAGS=$CFLAGS
7651 LIBS=conftstm.$ac_objext
7652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7654 (eval $ac_link) 2>&5
7655 ac_status=$?
7656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7658 pipe_works=yes
7659 fi
7660 LIBS=$lt_globsym_save_LIBS
7661 CFLAGS=$lt_globsym_save_CFLAGS
7662 else
7663 echo "cannot find nm_test_func in $nlist" >&5
7664 fi
7665 else
7666 echo "cannot find nm_test_var in $nlist" >&5
7667 fi
7668 else
7669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7670 fi
7671 else
7672 echo "$progname: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7674 fi
7675 rm -rf conftest* conftst*
7676
7677 # Do not use the global_symbol_pipe unless it works.
7678 if test yes = "$pipe_works"; then
7679 break
7680 else
7681 lt_cv_sys_global_symbol_pipe=
7682 fi
7683 done
7684 ;;
7685 esac
7686 fi
7687
7688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689 lt_cv_sys_global_symbol_to_cdecl=
7690 fi
7691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693 printf "%s\n" "failed" >&6; }
7694 else
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696 printf "%s\n" "ok" >&6; }
7697 fi
7698
7699 # Response file support.
7700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7701 nm_file_list_spec='@'
7702 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7703 nm_file_list_spec='@'
7704 fi
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7743 printf %s "checking for sysroot... " >&6; }
7744
7745 # Check whether --with-sysroot was given.
7746 if test ${with_sysroot+y}
7747 then :
7748 withval=$with_sysroot;
7749 else case e in #(
7750 e) with_sysroot=no ;;
7751 esac
7752 fi
7753
7754
7755 lt_sysroot=
7756 case $with_sysroot in #(
7757 yes)
7758 if test yes = "$GCC"; then
7759 # Trim trailing / since we'll always append absolute paths and we want
7760 # to avoid //, if only for less confusing output for the user.
7761 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7762 fi
7763 ;; #(
7764 /*)
7765 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7766 ;; #(
7767 no|'')
7768 ;; #(
7769 *)
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7771 printf "%s\n" "$with_sysroot" >&6; }
7772 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7773 ;;
7774 esac
7775
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7777 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7778
7779
7780
7781
7782
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7784 printf %s "checking for a working dd... " >&6; }
7785 if test ${ac_cv_path_lt_DD+y}
7786 then :
7787 printf %s "(cached) " >&6
7788 else case e in #(
7789 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7790 cat conftest.i conftest.i >conftest2.i
7791 : ${lt_DD:=$DD}
7792 if test -z "$lt_DD"; then
7793 ac_path_lt_DD_found=false
7794 # Loop through the user's path and test for each of PROGNAME-LIST
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798 IFS=$as_save_IFS
7799 case $as_dir in #(((
7800 '') as_dir=./ ;;
7801 */) ;;
7802 *) as_dir=$as_dir/ ;;
7803 esac
7804 for ac_prog in dd
7805 do
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7808 as_fn_executable_p "$ac_path_lt_DD" || continue
7809 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7810 cmp -s conftest.i conftest.out \
7811 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7812 fi
7813 $ac_path_lt_DD_found && break 3
7814 done
7815 done
7816 done
7817 IFS=$as_save_IFS
7818 if test -z "$ac_cv_path_lt_DD"; then
7819 :
7820 fi
7821 else
7822 ac_cv_path_lt_DD=$lt_DD
7823 fi
7824
7825 rm -f conftest.i conftest2.i conftest.out ;;
7826 esac
7827 fi
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7829 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7830
7831
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7833 printf %s "checking how to truncate binary pipes... " >&6; }
7834 if test ${lt_cv_truncate_bin+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else case e in #(
7838 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7839 cat conftest.i conftest.i >conftest2.i
7840 lt_cv_truncate_bin=
7841 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7842 cmp -s conftest.i conftest.out \
7843 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7844 fi
7845 rm -f conftest.i conftest2.i conftest.out
7846 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7847 esac
7848 fi
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7850 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7851
7852
7853
7854
7855
7856
7857
7858 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7859 func_cc_basename ()
7860 {
7861 for cc_temp in $*""; do
7862 case $cc_temp in
7863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7865 \-*) ;;
7866 *) break;;
7867 esac
7868 done
7869 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7870 }
7871
7872 # Check whether --enable-libtool-lock was given.
7873 if test ${enable_libtool_lock+y}
7874 then :
7875 enableval=$enable_libtool_lock;
7876 fi
7877
7878 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7879
7880 # Some flags need to be propagated to the compiler or linker for good
7881 # libtool support.
7882 case $host in
7883 ia64-*-hpux*)
7884 # Find out what ABI is being produced by ac_compile, and set mode
7885 # options accordingly.
7886 echo 'int i;' > conftest.$ac_ext
7887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7888 (eval $ac_compile) 2>&5
7889 ac_status=$?
7890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 case `$FILECMD conftest.$ac_objext` in
7893 *ELF-32*)
7894 HPUX_IA64_MODE=32
7895 ;;
7896 *ELF-64*)
7897 HPUX_IA64_MODE=64
7898 ;;
7899 esac
7900 fi
7901 rm -rf conftest*
7902 ;;
7903 *-*-irix6*)
7904 # Find out what ABI is being produced by ac_compile, and set linker
7905 # options accordingly.
7906 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908 (eval $ac_compile) 2>&5
7909 ac_status=$?
7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; }; then
7912 if test yes = "$lt_cv_prog_gnu_ld"; then
7913 case `$FILECMD conftest.$ac_objext` in
7914 *32-bit*)
7915 LD="${LD-ld} -melf32bsmip"
7916 ;;
7917 *N32*)
7918 LD="${LD-ld} -melf32bmipn32"
7919 ;;
7920 *64-bit*)
7921 LD="${LD-ld} -melf64bmip"
7922 ;;
7923 esac
7924 else
7925 case `$FILECMD conftest.$ac_objext` in
7926 *32-bit*)
7927 LD="${LD-ld} -32"
7928 ;;
7929 *N32*)
7930 LD="${LD-ld} -n32"
7931 ;;
7932 *64-bit*)
7933 LD="${LD-ld} -64"
7934 ;;
7935 esac
7936 fi
7937 fi
7938 rm -rf conftest*
7939 ;;
7940
7941 mips64*-*linux*)
7942 # Find out what ABI is being produced by ac_compile, and set linker
7943 # options accordingly.
7944 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7946 (eval $ac_compile) 2>&5
7947 ac_status=$?
7948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949 test $ac_status = 0; }; then
7950 emul=elf
7951 case `$FILECMD conftest.$ac_objext` in
7952 *32-bit*)
7953 emul="${emul}32"
7954 ;;
7955 *64-bit*)
7956 emul="${emul}64"
7957 ;;
7958 esac
7959 case `$FILECMD conftest.$ac_objext` in
7960 *MSB*)
7961 emul="${emul}btsmip"
7962 ;;
7963 *LSB*)
7964 emul="${emul}ltsmip"
7965 ;;
7966 esac
7967 case `$FILECMD conftest.$ac_objext` in
7968 *N32*)
7969 emul="${emul}n32"
7970 ;;
7971 esac
7972 LD="${LD-ld} -m $emul"
7973 fi
7974 rm -rf conftest*
7975 ;;
7976
7977 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7978 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7979 # Find out what ABI is being produced by ac_compile, and set linker
7980 # options accordingly. Note that the listed cases only cover the
7981 # situations where additional linker options are needed (such as when
7982 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7983 # vice versa); the common cases where no linker options are needed do
7984 # not appear in the list.
7985 echo 'int i;' > conftest.$ac_ext
7986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7987 (eval $ac_compile) 2>&5
7988 ac_status=$?
7989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990 test $ac_status = 0; }; then
7991 case `$FILECMD conftest.o` in
7992 *32-bit*)
7993 case $host in
7994 x86_64-*kfreebsd*-gnu)
7995 LD="${LD-ld} -m elf_i386_fbsd"
7996 ;;
7997 x86_64-*linux*|x86_64-gnu*)
7998 case `$FILECMD conftest.o` in
7999 *x86-64*)
8000 LD="${LD-ld} -m elf32_x86_64"
8001 ;;
8002 *)
8003 LD="${LD-ld} -m elf_i386"
8004 ;;
8005 esac
8006 ;;
8007 powerpc64le-*linux*)
8008 LD="${LD-ld} -m elf32lppclinux"
8009 ;;
8010 powerpc64-*linux*)
8011 LD="${LD-ld} -m elf32ppclinux"
8012 ;;
8013 s390x-*linux*)
8014 LD="${LD-ld} -m elf_s390"
8015 ;;
8016 sparc64-*linux*)
8017 LD="${LD-ld} -m elf32_sparc"
8018 ;;
8019 esac
8020 ;;
8021 *64-bit*)
8022 case $host in
8023 x86_64-*kfreebsd*-gnu)
8024 LD="${LD-ld} -m elf_x86_64_fbsd"
8025 ;;
8026 x86_64-*linux*|x86_64-gnu*)
8027 LD="${LD-ld} -m elf_x86_64"
8028 ;;
8029 powerpcle-*linux*)
8030 LD="${LD-ld} -m elf64lppc"
8031 ;;
8032 powerpc-*linux*)
8033 LD="${LD-ld} -m elf64ppc"
8034 ;;
8035 s390*-*linux*|s390*-*tpf*)
8036 LD="${LD-ld} -m elf64_s390"
8037 ;;
8038 sparc*-*linux*)
8039 LD="${LD-ld} -m elf64_sparc"
8040 ;;
8041 esac
8042 ;;
8043 esac
8044 fi
8045 rm -rf conftest*
8046 ;;
8047
8048 *-*-sco3.2v5*)
8049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8050 SAVE_CFLAGS=$CFLAGS
8051 CFLAGS="$CFLAGS -belf"
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8053 printf %s "checking whether the C compiler needs -belf... " >&6; }
8054 if test ${lt_cv_cc_needs_belf+y}
8055 then :
8056 printf %s "(cached) " >&6
8057 else case e in #(
8058 e) ac_ext=c
8059 ac_cpp='$CPP $CPPFLAGS'
8060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8063
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066
8067 int
8068 main (void)
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"
8076 then :
8077 lt_cv_cc_needs_belf=yes
8078 else case e in #(
8079 e) lt_cv_cc_needs_belf=no ;;
8080 esac
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8083 conftest$ac_exeext conftest.$ac_ext
8084 ac_ext=c
8085 ac_cpp='$CPP $CPPFLAGS'
8086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089 ;;
8090 esac
8091 fi
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8093 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8094 if test yes != "$lt_cv_cc_needs_belf"; then
8095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8096 CFLAGS=$SAVE_CFLAGS
8097 fi
8098 ;;
8099 *-*solaris*)
8100 # Find out what ABI is being produced by ac_compile, and set linker
8101 # options accordingly.
8102 echo 'int i;' > conftest.$ac_ext
8103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8104 (eval $ac_compile) 2>&5
8105 ac_status=$?
8106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8107 test $ac_status = 0; }; then
8108 case `$FILECMD conftest.o` in
8109 *64-bit*)
8110 case $lt_cv_prog_gnu_ld in
8111 yes*)
8112 case $host in
8113 i?86-*-solaris*|x86_64-*-solaris*)
8114 LD="${LD-ld} -m elf_x86_64"
8115 ;;
8116 sparc*-*-solaris*)
8117 LD="${LD-ld} -m elf64_sparc"
8118 ;;
8119 esac
8120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8122 LD=${LD-ld}_sol2
8123 fi
8124 ;;
8125 *)
8126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8127 LD="${LD-ld} -64"
8128 fi
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 fi
8134 rm -rf conftest*
8135 ;;
8136 esac
8137
8138 need_locks=$enable_libtool_lock
8139
8140 if test -n "$ac_tool_prefix"; then
8141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8142 set dummy ${ac_tool_prefix}mt; ac_word=$2
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 printf %s "checking for $ac_word... " >&6; }
8145 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8146 then :
8147 printf %s "(cached) " >&6
8148 else case e in #(
8149 e) if test -n "$MANIFEST_TOOL"; then
8150 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155 IFS=$as_save_IFS
8156 case $as_dir in #(((
8157 '') as_dir=./ ;;
8158 */) ;;
8159 *) as_dir=$as_dir/ ;;
8160 esac
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171 fi ;;
8172 esac
8173 fi
8174 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8175 if test -n "$MANIFEST_TOOL"; then
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8177 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8178 else
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 printf "%s\n" "no" >&6; }
8181 fi
8182
8183
8184 fi
8185 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8186 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8187 # Extract the first word of "mt", so it can be a program name with args.
8188 set dummy mt; ac_word=$2
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 printf %s "checking for $ac_word... " >&6; }
8191 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else case e in #(
8195 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8196 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 case $as_dir in #(((
8203 '') as_dir=./ ;;
8204 */) ;;
8205 *) as_dir=$as_dir/ ;;
8206 esac
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217 fi ;;
8218 esac
8219 fi
8220 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8221 if test -n "$ac_ct_MANIFEST_TOOL"; then
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8223 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8224 else
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 printf "%s\n" "no" >&6; }
8227 fi
8228
8229 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8230 MANIFEST_TOOL=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8239 fi
8240 else
8241 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8242 fi
8243
8244 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8246 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8247 if test ${lt_cv_path_manifest_tool+y}
8248 then :
8249 printf %s "(cached) " >&6
8250 else case e in #(
8251 e) lt_cv_path_manifest_tool=no
8252 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8253 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8254 cat conftest.err >&5
8255 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8256 lt_cv_path_manifest_tool=yes
8257 fi
8258 rm -f conftest* ;;
8259 esac
8260 fi
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8262 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8263 if test yes != "$lt_cv_path_manifest_tool"; then
8264 MANIFEST_TOOL=:
8265 fi
8266
8267
8268
8269
8270
8271
8272 case $host_os in
8273 rhapsody* | darwin*)
8274 if test -n "$ac_tool_prefix"; then
8275 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 printf %s "checking for $ac_word... " >&6; }
8279 if test ${ac_cv_prog_DSYMUTIL+y}
8280 then :
8281 printf %s "(cached) " >&6
8282 else case e in #(
8283 e) if test -n "$DSYMUTIL"; then
8284 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289 IFS=$as_save_IFS
8290 case $as_dir in #(((
8291 '') as_dir=./ ;;
8292 */) ;;
8293 *) as_dir=$as_dir/ ;;
8294 esac
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi ;;
8306 esac
8307 fi
8308 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8309 if test -n "$DSYMUTIL"; then
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8311 printf "%s\n" "$DSYMUTIL" >&6; }
8312 else
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 printf "%s\n" "no" >&6; }
8315 fi
8316
8317
8318 fi
8319 if test -z "$ac_cv_prog_DSYMUTIL"; then
8320 ac_ct_DSYMUTIL=$DSYMUTIL
8321 # Extract the first word of "dsymutil", so it can be a program name with args.
8322 set dummy dsymutil; ac_word=$2
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 printf %s "checking for $ac_word... " >&6; }
8325 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8326 then :
8327 printf %s "(cached) " >&6
8328 else case e in #(
8329 e) if test -n "$ac_ct_DSYMUTIL"; then
8330 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 case $as_dir in #(((
8337 '') as_dir=./ ;;
8338 */) ;;
8339 *) as_dir=$as_dir/ ;;
8340 esac
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 fi ;;
8352 esac
8353 fi
8354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8355 if test -n "$ac_ct_DSYMUTIL"; then
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8357 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8358 else
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 printf "%s\n" "no" >&6; }
8361 fi
8362
8363 if test "x$ac_ct_DSYMUTIL" = x; then
8364 DSYMUTIL=":"
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367 yes:)
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370 ac_tool_warned=yes ;;
8371 esac
8372 DSYMUTIL=$ac_ct_DSYMUTIL
8373 fi
8374 else
8375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8376 fi
8377
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 printf %s "checking for $ac_word... " >&6; }
8383 if test ${ac_cv_prog_NMEDIT+y}
8384 then :
8385 printf %s "(cached) " >&6
8386 else case e in #(
8387 e) if test -n "$NMEDIT"; then
8388 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 case $as_dir in #(((
8395 '') as_dir=./ ;;
8396 */) ;;
8397 *) as_dir=$as_dir/ ;;
8398 esac
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi ;;
8410 esac
8411 fi
8412 NMEDIT=$ac_cv_prog_NMEDIT
8413 if test -n "$NMEDIT"; then
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8415 printf "%s\n" "$NMEDIT" >&6; }
8416 else
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 printf "%s\n" "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_NMEDIT"; then
8424 ac_ct_NMEDIT=$NMEDIT
8425 # Extract the first word of "nmedit", so it can be a program name with args.
8426 set dummy nmedit; ac_word=$2
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 printf %s "checking for $ac_word... " >&6; }
8429 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8430 then :
8431 printf %s "(cached) " >&6
8432 else case e in #(
8433 e) if test -n "$ac_ct_NMEDIT"; then
8434 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439 IFS=$as_save_IFS
8440 case $as_dir in #(((
8441 '') as_dir=./ ;;
8442 */) ;;
8443 *) as_dir=$as_dir/ ;;
8444 esac
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8449 break 2
8450 fi
8451 done
8452 done
8453 IFS=$as_save_IFS
8454
8455 fi ;;
8456 esac
8457 fi
8458 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8459 if test -n "$ac_ct_NMEDIT"; then
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8461 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8462 else
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 printf "%s\n" "no" >&6; }
8465 fi
8466
8467 if test "x$ac_ct_NMEDIT" = x; then
8468 NMEDIT=":"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 NMEDIT=$ac_ct_NMEDIT
8477 fi
8478 else
8479 NMEDIT="$ac_cv_prog_NMEDIT"
8480 fi
8481
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 printf %s "checking for $ac_word... " >&6; }
8487 if test ${ac_cv_prog_LIPO+y}
8488 then :
8489 printf %s "(cached) " >&6
8490 else case e in #(
8491 e) if test -n "$LIPO"; then
8492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497 IFS=$as_save_IFS
8498 case $as_dir in #(((
8499 '') as_dir=./ ;;
8500 */) ;;
8501 *) as_dir=$as_dir/ ;;
8502 esac
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8507 break 2
8508 fi
8509 done
8510 done
8511 IFS=$as_save_IFS
8512
8513 fi ;;
8514 esac
8515 fi
8516 LIPO=$ac_cv_prog_LIPO
8517 if test -n "$LIPO"; then
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8519 printf "%s\n" "$LIPO" >&6; }
8520 else
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 printf "%s\n" "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_LIPO"; then
8528 ac_ct_LIPO=$LIPO
8529 # Extract the first word of "lipo", so it can be a program name with args.
8530 set dummy lipo; ac_word=$2
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 printf %s "checking for $ac_word... " >&6; }
8533 if test ${ac_cv_prog_ac_ct_LIPO+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else case e in #(
8537 e) if test -n "$ac_ct_LIPO"; then
8538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543 IFS=$as_save_IFS
8544 case $as_dir in #(((
8545 '') as_dir=./ ;;
8546 */) ;;
8547 *) as_dir=$as_dir/ ;;
8548 esac
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_ac_ct_LIPO="lipo"
8552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8558
8559 fi ;;
8560 esac
8561 fi
8562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8563 if test -n "$ac_ct_LIPO"; then
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8565 printf "%s\n" "$ac_ct_LIPO" >&6; }
8566 else
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 printf "%s\n" "no" >&6; }
8569 fi
8570
8571 if test "x$ac_ct_LIPO" = x; then
8572 LIPO=":"
8573 else
8574 case $cross_compiling:$ac_tool_warned in
8575 yes:)
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8577 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8578 ac_tool_warned=yes ;;
8579 esac
8580 LIPO=$ac_ct_LIPO
8581 fi
8582 else
8583 LIPO="$ac_cv_prog_LIPO"
8584 fi
8585
8586 if test -n "$ac_tool_prefix"; then
8587 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8588 set dummy ${ac_tool_prefix}otool; ac_word=$2
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 printf %s "checking for $ac_word... " >&6; }
8591 if test ${ac_cv_prog_OTOOL+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else case e in #(
8595 e) if test -n "$OTOOL"; then
8596 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601 IFS=$as_save_IFS
8602 case $as_dir in #(((
8603 '') as_dir=./ ;;
8604 */) ;;
8605 *) as_dir=$as_dir/ ;;
8606 esac
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi ;;
8618 esac
8619 fi
8620 OTOOL=$ac_cv_prog_OTOOL
8621 if test -n "$OTOOL"; then
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8623 printf "%s\n" "$OTOOL" >&6; }
8624 else
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 printf "%s\n" "no" >&6; }
8627 fi
8628
8629
8630 fi
8631 if test -z "$ac_cv_prog_OTOOL"; then
8632 ac_ct_OTOOL=$OTOOL
8633 # Extract the first word of "otool", so it can be a program name with args.
8634 set dummy otool; ac_word=$2
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 printf %s "checking for $ac_word... " >&6; }
8637 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else case e in #(
8641 e) if test -n "$ac_ct_OTOOL"; then
8642 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647 IFS=$as_save_IFS
8648 case $as_dir in #(((
8649 '') as_dir=./ ;;
8650 */) ;;
8651 *) as_dir=$as_dir/ ;;
8652 esac
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_ac_ct_OTOOL="otool"
8656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659 done
8660 done
8661 IFS=$as_save_IFS
8662
8663 fi ;;
8664 esac
8665 fi
8666 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8667 if test -n "$ac_ct_OTOOL"; then
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8669 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8670 else
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 printf "%s\n" "no" >&6; }
8673 fi
8674
8675 if test "x$ac_ct_OTOOL" = x; then
8676 OTOOL=":"
8677 else
8678 case $cross_compiling:$ac_tool_warned in
8679 yes:)
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682 ac_tool_warned=yes ;;
8683 esac
8684 OTOOL=$ac_ct_OTOOL
8685 fi
8686 else
8687 OTOOL="$ac_cv_prog_OTOOL"
8688 fi
8689
8690 if test -n "$ac_tool_prefix"; then
8691 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8692 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 printf %s "checking for $ac_word... " >&6; }
8695 if test ${ac_cv_prog_OTOOL64+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else case e in #(
8699 e) if test -n "$OTOOL64"; then
8700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 case $as_dir in #(((
8707 '') as_dir=./ ;;
8708 */) ;;
8709 *) as_dir=$as_dir/ ;;
8710 esac
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717 done
8718 done
8719 IFS=$as_save_IFS
8720
8721 fi ;;
8722 esac
8723 fi
8724 OTOOL64=$ac_cv_prog_OTOOL64
8725 if test -n "$OTOOL64"; then
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8727 printf "%s\n" "$OTOOL64" >&6; }
8728 else
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 printf "%s\n" "no" >&6; }
8731 fi
8732
8733
8734 fi
8735 if test -z "$ac_cv_prog_OTOOL64"; then
8736 ac_ct_OTOOL64=$OTOOL64
8737 # Extract the first word of "otool64", so it can be a program name with args.
8738 set dummy otool64; ac_word=$2
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 printf %s "checking for $ac_word... " >&6; }
8741 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8742 then :
8743 printf %s "(cached) " >&6
8744 else case e in #(
8745 e) if test -n "$ac_ct_OTOOL64"; then
8746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751 IFS=$as_save_IFS
8752 case $as_dir in #(((
8753 '') as_dir=./ ;;
8754 */) ;;
8755 *) as_dir=$as_dir/ ;;
8756 esac
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_ac_ct_OTOOL64="otool64"
8760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763 done
8764 done
8765 IFS=$as_save_IFS
8766
8767 fi ;;
8768 esac
8769 fi
8770 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8771 if test -n "$ac_ct_OTOOL64"; then
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8773 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8774 else
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 printf "%s\n" "no" >&6; }
8777 fi
8778
8779 if test "x$ac_ct_OTOOL64" = x; then
8780 OTOOL64=":"
8781 else
8782 case $cross_compiling:$ac_tool_warned in
8783 yes:)
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8785 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8786 ac_tool_warned=yes ;;
8787 esac
8788 OTOOL64=$ac_ct_OTOOL64
8789 fi
8790 else
8791 OTOOL64="$ac_cv_prog_OTOOL64"
8792 fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8821 printf %s "checking for -single_module linker flag... " >&6; }
8822 if test ${lt_cv_apple_cc_single_mod+y}
8823 then :
8824 printf %s "(cached) " >&6
8825 else case e in #(
8826 e) lt_cv_apple_cc_single_mod=no
8827 if test -z "$LT_MULTI_MODULE"; then
8828 # By default we will add the -single_module flag. You can override
8829 # by either setting the environment variable LT_MULTI_MODULE
8830 # non-empty at configure time, or by adding -multi_module to the
8831 # link flags.
8832 rm -rf libconftest.dylib*
8833 echo "int foo(void){return 1;}" > conftest.c
8834 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8835 -dynamiclib -Wl,-single_module conftest.c" >&5
8836 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8837 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8838 _lt_result=$?
8839 # If there is a non-empty error log, and "single_module"
8840 # appears in it, assume the flag caused a linker warning
8841 if test -s conftest.err && $GREP single_module conftest.err; then
8842 cat conftest.err >&5
8843 # Otherwise, if the output was created with a 0 exit code from
8844 # the compiler, it worked.
8845 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8846 lt_cv_apple_cc_single_mod=yes
8847 else
8848 cat conftest.err >&5
8849 fi
8850 rm -rf libconftest.dylib*
8851 rm -f conftest.*
8852 fi ;;
8853 esac
8854 fi
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8856 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8857
8858 # Feature test to disable chained fixups since it is not
8859 # compatible with '-undefined dynamic_lookup'
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8861 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8862 if test ${lt_cv_support_no_fixup_chains+y}
8863 then :
8864 printf %s "(cached) " >&6
8865 else case e in #(
8866 e) save_LDFLAGS=$LDFLAGS
8867 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870
8871 int
8872 main (void)
8873 {
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"
8880 then :
8881 lt_cv_support_no_fixup_chains=yes
8882 else case e in #(
8883 e) lt_cv_support_no_fixup_chains=no
8884 ;;
8885 esac
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8888 conftest$ac_exeext conftest.$ac_ext
8889 LDFLAGS=$save_LDFLAGS
8890
8891 ;;
8892 esac
8893 fi
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8895 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8896
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8898 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8899 if test ${lt_cv_ld_exported_symbols_list+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else case e in #(
8903 e) lt_cv_ld_exported_symbols_list=no
8904 save_LDFLAGS=$LDFLAGS
8905 echo "_main" > conftest.sym
8906 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909
8910 int
8911 main (void)
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"
8919 then :
8920 lt_cv_ld_exported_symbols_list=yes
8921 else case e in #(
8922 e) lt_cv_ld_exported_symbols_list=no ;;
8923 esac
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LDFLAGS=$save_LDFLAGS
8928 ;;
8929 esac
8930 fi
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8932 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8935 printf %s "checking for -force_load linker flag... " >&6; }
8936 if test ${lt_cv_ld_force_load+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else case e in #(
8940 e) lt_cv_ld_force_load=no
8941 cat > conftest.c << _LT_EOF
8942 int forced_loaded() { return 2;}
8943 _LT_EOF
8944 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8945 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8946 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8947 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8948 echo "$RANLIB libconftest.a" >&5
8949 $RANLIB libconftest.a 2>&5
8950 cat > conftest.c << _LT_EOF
8951 int main(void) { return 0;}
8952 _LT_EOF
8953 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8954 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8955 _lt_result=$?
8956 if test -s conftest.err && $GREP force_load conftest.err; then
8957 cat conftest.err >&5
8958 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8959 lt_cv_ld_force_load=yes
8960 else
8961 cat conftest.err >&5
8962 fi
8963 rm -f conftest.err libconftest.a conftest conftest.c
8964 rm -rf conftest.dSYM
8965 ;;
8966 esac
8967 fi
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8969 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8970 case $host_os in
8971 rhapsody* | darwin1.[012])
8972 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8973 darwin1.*)
8974 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8975 darwin*)
8976 case $MACOSX_DEPLOYMENT_TARGET,$host in
8977 10.[012],*|,*powerpc*-darwin[5-8]*)
8978 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8979 *)
8980 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8981 if test yes = "$lt_cv_support_no_fixup_chains"; then
8982 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8983 fi
8984 ;;
8985 esac
8986 ;;
8987 esac
8988 if test yes = "$lt_cv_apple_cc_single_mod"; then
8989 _lt_dar_single_mod='$single_module'
8990 fi
8991 _lt_dar_needs_single_mod=no
8992 case $host_os in
8993 rhapsody* | darwin1.*)
8994 _lt_dar_needs_single_mod=yes ;;
8995 darwin*)
8996 # When targeting Mac OS X 10.4 (darwin 8) or later,
8997 # -single_module is the default and -multi_module is unsupported.
8998 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8999 # target any OS version that needs -single_module.
9000 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9001 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9002 _lt_dar_needs_single_mod=yes ;;
9003 esac
9004 ;;
9005 esac
9006 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9007 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9008 else
9009 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9010 fi
9011 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9012 _lt_dsymutil='~$DSYMUTIL $lib || :'
9013 else
9014 _lt_dsymutil=
9015 fi
9016 ;;
9017 esac
9018
9019 # func_munge_path_list VARIABLE PATH
9020 # -----------------------------------
9021 # VARIABLE is name of variable containing _space_ separated list of
9022 # directories to be munged by the contents of PATH, which is string
9023 # having a format:
9024 # "DIR[:DIR]:"
9025 # string "DIR[ DIR]" will be prepended to VARIABLE
9026 # ":DIR[:DIR]"
9027 # string "DIR[ DIR]" will be appended to VARIABLE
9028 # "DIRP[:DIRP]::[DIRA:]DIRA"
9029 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9030 # "DIRA[ DIRA]" will be appended to VARIABLE
9031 # "DIR[:DIR]"
9032 # VARIABLE will be replaced by "DIR[ DIR]"
9033 func_munge_path_list ()
9034 {
9035 case x$2 in
9036 x)
9037 ;;
9038 *:)
9039 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9040 ;;
9041 x:*)
9042 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9043 ;;
9044 *::*)
9045 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9046 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9047 ;;
9048 *)
9049 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9050 ;;
9051 esac
9052 }
9053
9054 ac_header= ac_cache=
9055 for ac_item in $ac_header_c_list
9056 do
9057 if test $ac_cache; then
9058 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9059 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9060 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9061 fi
9062 ac_header= ac_cache=
9063 elif test $ac_header; then
9064 ac_cache=$ac_item
9065 else
9066 ac_header=$ac_item
9067 fi
9068 done
9069
9070
9071
9072
9073
9074
9075
9076
9077 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9078 then :
9079
9080 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9081
9082 fi
9083 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9084 "
9085 if test "x$ac_cv_header_dlfcn_h" = xyes
9086 then :
9087 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9088
9089 fi
9090
9091
9092
9093
9094
9095 # Set options
9096
9097
9098
9099 enable_dlopen=no
9100
9101
9102 enable_win32_dll=no
9103
9104
9105 # Check whether --enable-shared was given.
9106 if test ${enable_shared+y}
9107 then :
9108 enableval=$enable_shared; p=${PACKAGE-default}
9109 case $enableval in
9110 yes) enable_shared=yes ;;
9111 no) enable_shared=no ;;
9112 *)
9113 enable_shared=no
9114 # Look at the argument we got. We use all the common list separators.
9115 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9116 for pkg in $enableval; do
9117 IFS=$lt_save_ifs
9118 if test "X$pkg" = "X$p"; then
9119 enable_shared=yes
9120 fi
9121 done
9122 IFS=$lt_save_ifs
9123 ;;
9124 esac
9125 else case e in #(
9126 e) enable_shared=yes ;;
9127 esac
9128 fi
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138 # Check whether --enable-static was given.
9139 if test ${enable_static+y}
9140 then :
9141 enableval=$enable_static; p=${PACKAGE-default}
9142 case $enableval in
9143 yes) enable_static=yes ;;
9144 no) enable_static=no ;;
9145 *)
9146 enable_static=no
9147 # Look at the argument we got. We use all the common list separators.
9148 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9149 for pkg in $enableval; do
9150 IFS=$lt_save_ifs
9151 if test "X$pkg" = "X$p"; then
9152 enable_static=yes
9153 fi
9154 done
9155 IFS=$lt_save_ifs
9156 ;;
9157 esac
9158 else case e in #(
9159 e) enable_static=yes ;;
9160 esac
9161 fi
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171 # Check whether --enable-pic was given.
9172 if test ${enable_pic+y}
9173 then :
9174 enableval=$enable_pic; lt_p=${PACKAGE-default}
9175 case $enableval in
9176 yes|no) pic_mode=$enableval ;;
9177 *)
9178 pic_mode=default
9179 # Look at the argument we got. We use all the common list separators.
9180 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9181 for lt_pkg in $enableval; do
9182 IFS=$lt_save_ifs
9183 if test "X$lt_pkg" = "X$lt_p"; then
9184 pic_mode=yes
9185 fi
9186 done
9187 IFS=$lt_save_ifs
9188 ;;
9189 esac
9190 else case e in #(
9191 e) # Check whether --with-pic was given.
9192 if test ${with_pic+y}
9193 then :
9194 withval=$with_pic; lt_p=${PACKAGE-default}
9195 case $withval in
9196 yes|no) pic_mode=$withval ;;
9197 *)
9198 pic_mode=default
9199 # Look at the argument we got. We use all the common list separators.
9200 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9201 for lt_pkg in $withval; do
9202 IFS=$lt_save_ifs
9203 if test "X$lt_pkg" = "X$lt_p"; then
9204 pic_mode=yes
9205 fi
9206 done
9207 IFS=$lt_save_ifs
9208 ;;
9209 esac
9210 else case e in #(
9211 e) pic_mode=default ;;
9212 esac
9213 fi
9214
9215 ;;
9216 esac
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226 # Check whether --enable-fast-install was given.
9227 if test ${enable_fast_install+y}
9228 then :
9229 enableval=$enable_fast_install; p=${PACKAGE-default}
9230 case $enableval in
9231 yes) enable_fast_install=yes ;;
9232 no) enable_fast_install=no ;;
9233 *)
9234 enable_fast_install=no
9235 # Look at the argument we got. We use all the common list separators.
9236 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9237 for pkg in $enableval; do
9238 IFS=$lt_save_ifs
9239 if test "X$pkg" = "X$p"; then
9240 enable_fast_install=yes
9241 fi
9242 done
9243 IFS=$lt_save_ifs
9244 ;;
9245 esac
9246 else case e in #(
9247 e) enable_fast_install=yes ;;
9248 esac
9249 fi
9250
9251
9252
9253
9254
9255
9256
9257
9258 shared_archive_member_spec=
9259 case $host,$enable_shared in
9260 power*-*-aix[5-9]*,yes)
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9262 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9263 # Check whether --enable-aix-soname was given.
9264 if test ${enable_aix_soname+y}
9265 then :
9266 enableval=$enable_aix_soname; case $enableval in
9267 aix|svr4|both)
9268 ;;
9269 *)
9270 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9271 ;;
9272 esac
9273 lt_cv_with_aix_soname=$enable_aix_soname
9274 else case e in #(
9275 e) # Check whether --with-aix-soname was given.
9276 if test ${with_aix_soname+y}
9277 then :
9278 withval=$with_aix_soname; case $withval in
9279 aix|svr4|both)
9280 ;;
9281 *)
9282 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9283 ;;
9284 esac
9285 lt_cv_with_aix_soname=$with_aix_soname
9286 else case e in #(
9287 e) if test ${lt_cv_with_aix_soname+y}
9288 then :
9289 printf %s "(cached) " >&6
9290 else case e in #(
9291 e) lt_cv_with_aix_soname=aix ;;
9292 esac
9293 fi
9294 ;;
9295 esac
9296 fi
9297
9298 enable_aix_soname=$lt_cv_with_aix_soname ;;
9299 esac
9300 fi
9301
9302 with_aix_soname=$enable_aix_soname
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9304 printf "%s\n" "$with_aix_soname" >&6; }
9305 if test aix != "$with_aix_soname"; then
9306 # For the AIX way of multilib, we name the shared archive member
9307 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9308 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9309 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9310 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9311 if test 64 = "${OBJECT_MODE-32}"; then
9312 shared_archive_member_spec=shr_64
9313 else
9314 shared_archive_member_spec=shr
9315 fi
9316 fi
9317 ;;
9318 *)
9319 with_aix_soname=aix
9320 ;;
9321 esac
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 # This can be used to rebuild libtool when needed
9333 LIBTOOL_DEPS=$ltmain
9334
9335 # Always use our own libtool.
9336 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367 test -z "$LN_S" && LN_S="ln -s"
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 if test -n "${ZSH_VERSION+set}"; then
9383 setopt NO_GLOB_SUBST
9384 fi
9385
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9387 printf %s "checking for objdir... " >&6; }
9388 if test ${lt_cv_objdir+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) rm -f .libs 2>/dev/null
9393 mkdir .libs 2>/dev/null
9394 if test -d .libs; then
9395 lt_cv_objdir=.libs
9396 else
9397 # MS-DOS does not allow filenames that begin with a dot.
9398 lt_cv_objdir=_libs
9399 fi
9400 rmdir .libs 2>/dev/null ;;
9401 esac
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9404 printf "%s\n" "$lt_cv_objdir" >&6; }
9405 objdir=$lt_cv_objdir
9406
9407
9408
9409
9410
9411 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9412
9413
9414
9415
9416 case $host_os in
9417 aix3*)
9418 # AIX sometimes has problems with the GCC collect2 program. For some
9419 # reason, if we set the COLLECT_NAMES environment variable, the problems
9420 # vanish in a puff of smoke.
9421 if test set != "${COLLECT_NAMES+set}"; then
9422 COLLECT_NAMES=
9423 export COLLECT_NAMES
9424 fi
9425 ;;
9426 esac
9427
9428 # Global variables:
9429 ofile=libtool
9430 can_build_shared=yes
9431
9432 # All known linkers require a '.a' archive for static linking (except MSVC and
9433 # ICC, which need '.lib').
9434 libext=a
9435
9436 with_gnu_ld=$lt_cv_prog_gnu_ld
9437
9438 old_CC=$CC
9439 old_CFLAGS=$CFLAGS
9440
9441 # Set sane defaults for various variables
9442 test -z "$CC" && CC=cc
9443 test -z "$LTCC" && LTCC=$CC
9444 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9445 test -z "$LD" && LD=ld
9446 test -z "$ac_objext" && ac_objext=o
9447
9448 func_cc_basename $compiler
9449 cc_basename=$func_cc_basename_result
9450
9451
9452 # Only perform the check for file, if the check method requires it
9453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9454 case $deplibs_check_method in
9455 file_magic*)
9456 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9458 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9459 if test ${lt_cv_path_MAGIC_CMD+y}
9460 then :
9461 printf %s "(cached) " >&6
9462 else case e in #(
9463 e) case $MAGIC_CMD in
9464 [\\/*] | ?:[\\/]*)
9465 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9466 ;;
9467 *)
9468 lt_save_MAGIC_CMD=$MAGIC_CMD
9469 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9471 for ac_dir in $ac_dummy; do
9472 IFS=$lt_save_ifs
9473 test -z "$ac_dir" && ac_dir=.
9474 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9475 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9476 if test -n "$file_magic_test_file"; then
9477 case $deplibs_check_method in
9478 "file_magic "*)
9479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9480 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9482 $EGREP "$file_magic_regex" > /dev/null; then
9483 :
9484 else
9485 cat <<_LT_EOF 1>&2
9486
9487 *** Warning: the command libtool uses to detect shared libraries,
9488 *** $file_magic_cmd, produces output that libtool cannot recognize.
9489 *** The result is that libtool may fail to recognize shared libraries
9490 *** as such. This will affect the creation of libtool libraries that
9491 *** depend on shared libraries, but programs linked with such libtool
9492 *** libraries will work regardless of this problem. Nevertheless, you
9493 *** may want to report the problem to your system manager and/or to
9494 *** [email protected]
9495
9496 _LT_EOF
9497 fi ;;
9498 esac
9499 fi
9500 break
9501 fi
9502 done
9503 IFS=$lt_save_ifs
9504 MAGIC_CMD=$lt_save_MAGIC_CMD
9505 ;;
9506 esac ;;
9507 esac
9508 fi
9509
9510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511 if test -n "$MAGIC_CMD"; then
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9513 printf "%s\n" "$MAGIC_CMD" >&6; }
9514 else
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 printf "%s\n" "no" >&6; }
9517 fi
9518
9519
9520
9521
9522
9523 if test -z "$lt_cv_path_MAGIC_CMD"; then
9524 if test -n "$ac_tool_prefix"; then
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9526 printf %s "checking for file... " >&6; }
9527 if test ${lt_cv_path_MAGIC_CMD+y}
9528 then :
9529 printf %s "(cached) " >&6
9530 else case e in #(
9531 e) case $MAGIC_CMD in
9532 [\\/*] | ?:[\\/]*)
9533 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9534 ;;
9535 *)
9536 lt_save_MAGIC_CMD=$MAGIC_CMD
9537 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9539 for ac_dir in $ac_dummy; do
9540 IFS=$lt_save_ifs
9541 test -z "$ac_dir" && ac_dir=.
9542 if test -f "$ac_dir/file"; then
9543 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9544 if test -n "$file_magic_test_file"; then
9545 case $deplibs_check_method in
9546 "file_magic "*)
9547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9548 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9550 $EGREP "$file_magic_regex" > /dev/null; then
9551 :
9552 else
9553 cat <<_LT_EOF 1>&2
9554
9555 *** Warning: the command libtool uses to detect shared libraries,
9556 *** $file_magic_cmd, produces output that libtool cannot recognize.
9557 *** The result is that libtool may fail to recognize shared libraries
9558 *** as such. This will affect the creation of libtool libraries that
9559 *** depend on shared libraries, but programs linked with such libtool
9560 *** libraries will work regardless of this problem. Nevertheless, you
9561 *** may want to report the problem to your system manager and/or to
9562 *** [email protected]
9563
9564 _LT_EOF
9565 fi ;;
9566 esac
9567 fi
9568 break
9569 fi
9570 done
9571 IFS=$lt_save_ifs
9572 MAGIC_CMD=$lt_save_MAGIC_CMD
9573 ;;
9574 esac ;;
9575 esac
9576 fi
9577
9578 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9579 if test -n "$MAGIC_CMD"; then
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9581 printf "%s\n" "$MAGIC_CMD" >&6; }
9582 else
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 printf "%s\n" "no" >&6; }
9585 fi
9586
9587
9588 else
9589 MAGIC_CMD=:
9590 fi
9591 fi
9592
9593 fi
9594 ;;
9595 esac
9596
9597 # Use C for the default configuration in the libtool script
9598
9599 lt_save_CC=$CC
9600 ac_ext=c
9601 ac_cpp='$CPP $CPPFLAGS'
9602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605
9606
9607 # Source file extension for C test sources.
9608 ac_ext=c
9609
9610 # Object file extension for compiled C test sources.
9611 objext=o
9612 objext=$objext
9613
9614 # Code to be used in simple compile tests
9615 lt_simple_compile_test_code="int some_variable = 0;"
9616
9617 # Code to be used in simple link tests
9618 lt_simple_link_test_code='int main(void){return(0);}'
9619
9620
9621
9622
9623
9624
9625
9626 # If no C compiler was specified, use CC.
9627 LTCC=${LTCC-"$CC"}
9628
9629 # If no C compiler flags were specified, use CFLAGS.
9630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9631
9632 # Allow CC to be a program name with arguments.
9633 compiler=$CC
9634
9635 # Save the default compiler, since it gets overwritten when the other
9636 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9637 compiler_DEFAULT=$CC
9638
9639 # save warnings/boilerplate of simple test code
9640 ac_outfile=conftest.$ac_objext
9641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9643 _lt_compiler_boilerplate=`cat conftest.err`
9644 $RM conftest*
9645
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649 _lt_linker_boilerplate=`cat conftest.err`
9650 $RM -r conftest*
9651
9652
9653 ## CAVEAT EMPTOR:
9654 ## There is no encapsulation within the following macros, do not change
9655 ## the running order or otherwise move them around unless you know exactly
9656 ## what you are doing...
9657 if test -n "$compiler"; then
9658
9659 lt_prog_compiler_no_builtin_flag=
9660
9661 if test yes = "$GCC"; then
9662 case $cc_basename in
9663 nvcc*)
9664 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9665 *)
9666 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9667 esac
9668
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9670 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9671 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9672 then :
9673 printf %s "(cached) " >&6
9674 else case e in #(
9675 e) lt_cv_prog_compiler_rtti_exceptions=no
9676 ac_outfile=conftest.$ac_objext
9677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9678 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9679 # Insert the option either (1) after the last *FLAGS variable, or
9680 # (2) before a word containing "conftest.", or (3) at the end.
9681 # Note that $ac_compile itself does not contain backslashes and begins
9682 # with a dollar sign (not a hyphen), so the echo should work correctly.
9683 # The option is referenced via a variable to avoid confusing sed.
9684 lt_compile=`echo "$ac_compile" | $SED \
9685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9687 -e 's:$: $lt_compiler_flag:'`
9688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9689 (eval "$lt_compile" 2>conftest.err)
9690 ac_status=$?
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 if (exit $ac_status) && test -s "$ac_outfile"; then
9694 # The compiler can only warn and ignore the option if not recognized
9695 # So say no if there are warnings other than the usual output.
9696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9699 lt_cv_prog_compiler_rtti_exceptions=yes
9700 fi
9701 fi
9702 $RM conftest*
9703 ;;
9704 esac
9705 fi
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9707 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9708
9709 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9710 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9711 else
9712 :
9713 fi
9714
9715 fi
9716
9717
9718
9719
9720
9721
9722 lt_prog_compiler_wl=
9723 lt_prog_compiler_pic=
9724 lt_prog_compiler_static=
9725
9726
9727 if test yes = "$GCC"; then
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_static='-static'
9730
9731 case $host_os in
9732 aix*)
9733 # All AIX code is PIC.
9734 if test ia64 = "$host_cpu"; then
9735 # AIX 5 now supports IA64 processor
9736 lt_prog_compiler_static='-Bstatic'
9737 fi
9738 lt_prog_compiler_pic='-fPIC'
9739 ;;
9740
9741 amigaos*)
9742 case $host_cpu in
9743 powerpc)
9744 # see comment about AmigaOS4 .so support
9745 lt_prog_compiler_pic='-fPIC'
9746 ;;
9747 m68k)
9748 # FIXME: we need at least 68020 code to build shared libraries, but
9749 # adding the '-m68020' flag to GCC prevents building anything better,
9750 # like '-m68040'.
9751 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9752 ;;
9753 esac
9754 ;;
9755
9756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9757 # PIC is the default for these OSes.
9758 ;;
9759
9760 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9761 # This hack is so that the source file can tell whether it is being
9762 # built for inclusion in a dll (and should export symbols for example).
9763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9764 # (--disable-auto-import) libraries
9765 lt_prog_compiler_pic='-DDLL_EXPORT'
9766 case $host_os in
9767 os2*)
9768 lt_prog_compiler_static='$wl-static'
9769 ;;
9770 esac
9771 ;;
9772
9773 darwin* | rhapsody*)
9774 # PIC is the default on this platform
9775 # Common symbols not allowed in MH_DYLIB files
9776 lt_prog_compiler_pic='-fno-common'
9777 ;;
9778
9779 haiku*)
9780 # PIC is the default for Haiku.
9781 # The "-static" flag exists, but is broken.
9782 lt_prog_compiler_static=
9783 ;;
9784
9785 hpux*)
9786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9788 # sets the default TLS model and affects inlining.
9789 case $host_cpu in
9790 hppa*64*)
9791 # +Z the default
9792 ;;
9793 *)
9794 lt_prog_compiler_pic='-fPIC'
9795 ;;
9796 esac
9797 ;;
9798
9799 interix[3-9]*)
9800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9801 # Instead, we relocate shared libraries at runtime.
9802 ;;
9803
9804 msdosdjgpp*)
9805 # Just because we use GCC doesn't mean we suddenly get shared libraries
9806 # on systems that don't support them.
9807 lt_prog_compiler_can_build_shared=no
9808 enable_shared=no
9809 ;;
9810
9811 *nto* | *qnx*)
9812 # QNX uses GNU C++, but need to define -shared option too, otherwise
9813 # it will coredump.
9814 lt_prog_compiler_pic='-fPIC -shared'
9815 ;;
9816
9817 sysv4*MP*)
9818 if test -d /usr/nec; then
9819 lt_prog_compiler_pic=-Kconform_pic
9820 fi
9821 ;;
9822
9823 *)
9824 lt_prog_compiler_pic='-fPIC'
9825 ;;
9826 esac
9827
9828 case $cc_basename in
9829 nvcc*) # Cuda Compiler Driver 2.2
9830 lt_prog_compiler_wl='-Xlinker '
9831 if test -n "$lt_prog_compiler_pic"; then
9832 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9833 fi
9834 ;;
9835 esac
9836 else
9837 # PORTME Check for flag to pass linker flags through the system compiler.
9838 case $host_os in
9839 aix*)
9840 lt_prog_compiler_wl='-Wl,'
9841 if test ia64 = "$host_cpu"; then
9842 # AIX 5 now supports IA64 processor
9843 lt_prog_compiler_static='-Bstatic'
9844 else
9845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9846 fi
9847 ;;
9848
9849 darwin* | rhapsody*)
9850 # PIC is the default on this platform
9851 # Common symbols not allowed in MH_DYLIB files
9852 lt_prog_compiler_pic='-fno-common'
9853 case $cc_basename in
9854 nagfor*)
9855 # NAG Fortran compiler
9856 lt_prog_compiler_wl='-Wl,-Wl,,'
9857 lt_prog_compiler_pic='-PIC'
9858 lt_prog_compiler_static='-Bstatic'
9859 ;;
9860 esac
9861 ;;
9862
9863 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9864 # This hack is so that the source file can tell whether it is being
9865 # built for inclusion in a dll (and should export symbols for example).
9866 lt_prog_compiler_pic='-DDLL_EXPORT'
9867 case $host_os in
9868 os2*)
9869 lt_prog_compiler_static='$wl-static'
9870 ;;
9871 esac
9872 ;;
9873
9874 hpux9* | hpux10* | hpux11*)
9875 lt_prog_compiler_wl='-Wl,'
9876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9877 # not for PA HP-UX.
9878 case $host_cpu in
9879 hppa*64*|ia64*)
9880 # +Z the default
9881 ;;
9882 *)
9883 lt_prog_compiler_pic='+Z'
9884 ;;
9885 esac
9886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9887 lt_prog_compiler_static='$wl-a ${wl}archive'
9888 ;;
9889
9890 irix5* | irix6* | nonstopux*)
9891 lt_prog_compiler_wl='-Wl,'
9892 # PIC (with -KPIC) is the default.
9893 lt_prog_compiler_static='-non_shared'
9894 ;;
9895
9896 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9897 case $cc_basename in
9898 # old Intel for x86_64, which still supported -KPIC.
9899 ecc*)
9900 lt_prog_compiler_wl='-Wl,'
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-static'
9903 ;;
9904 *flang* | ftn | f18* | f95*)
9905 # Flang compiler.
9906 lt_prog_compiler_wl='-Wl,'
9907 lt_prog_compiler_pic='-fPIC'
9908 lt_prog_compiler_static='-static'
9909 ;;
9910 # icc used to be incompatible with GCC.
9911 # ICC 10 doesn't accept -KPIC any more.
9912 icc* | ifort*)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-fPIC'
9915 lt_prog_compiler_static='-static'
9916 ;;
9917 # Lahey Fortran 8.1.
9918 lf95*)
9919 lt_prog_compiler_wl='-Wl,'
9920 lt_prog_compiler_pic='--shared'
9921 lt_prog_compiler_static='--static'
9922 ;;
9923 nagfor*)
9924 # NAG Fortran compiler
9925 lt_prog_compiler_wl='-Wl,-Wl,,'
9926 lt_prog_compiler_pic='-PIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 ;;
9929 tcc*)
9930 # Fabrice Bellard et al's Tiny C Compiler
9931 lt_prog_compiler_wl='-Wl,'
9932 lt_prog_compiler_pic='-fPIC'
9933 lt_prog_compiler_static='-static'
9934 ;;
9935 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9936 # Portland Group compilers (*not* the Pentium gcc compiler,
9937 # which looks to be a dead project)
9938 lt_prog_compiler_wl='-Wl,'
9939 lt_prog_compiler_pic='-fpic'
9940 lt_prog_compiler_static='-Bstatic'
9941 ;;
9942 ccc*)
9943 lt_prog_compiler_wl='-Wl,'
9944 # All Alpha code is PIC.
9945 lt_prog_compiler_static='-non_shared'
9946 ;;
9947 xl* | bgxl* | bgf* | mpixl*)
9948 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_pic='-qpic'
9951 lt_prog_compiler_static='-qstaticlink'
9952 ;;
9953 *)
9954 case `$CC -V 2>&1 | $SED 5q` in
9955 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9956 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9959 lt_prog_compiler_wl=''
9960 ;;
9961 *Sun\ F* | *Sun*Fortran*)
9962 lt_prog_compiler_pic='-KPIC'
9963 lt_prog_compiler_static='-Bstatic'
9964 lt_prog_compiler_wl='-Qoption ld '
9965 ;;
9966 *Sun\ C*)
9967 # Sun C 5.9
9968 lt_prog_compiler_pic='-KPIC'
9969 lt_prog_compiler_static='-Bstatic'
9970 lt_prog_compiler_wl='-Wl,'
9971 ;;
9972 *Intel*\ [CF]*Compiler*)
9973 lt_prog_compiler_wl='-Wl,'
9974 lt_prog_compiler_pic='-fPIC'
9975 lt_prog_compiler_static='-static'
9976 ;;
9977 *Portland\ Group*)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-fpic'
9980 lt_prog_compiler_static='-Bstatic'
9981 ;;
9982 esac
9983 ;;
9984 esac
9985 ;;
9986
9987 newsos6)
9988 lt_prog_compiler_pic='-KPIC'
9989 lt_prog_compiler_static='-Bstatic'
9990 ;;
9991
9992 *-mlibc)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-fPIC'
9995 lt_prog_compiler_static='-static'
9996 ;;
9997
9998 *nto* | *qnx*)
9999 # QNX uses GNU C++, but need to define -shared option too, otherwise
10000 # it will coredump.
10001 lt_prog_compiler_pic='-fPIC -shared'
10002 ;;
10003
10004 osf3* | osf4* | osf5*)
10005 lt_prog_compiler_wl='-Wl,'
10006 # All OSF/1 code is PIC.
10007 lt_prog_compiler_static='-non_shared'
10008 ;;
10009
10010 rdos*)
10011 lt_prog_compiler_static='-non_shared'
10012 ;;
10013
10014 serenity*)
10015 ;;
10016
10017 solaris*)
10018 lt_prog_compiler_pic='-KPIC'
10019 lt_prog_compiler_static='-Bstatic'
10020 case $cc_basename in
10021 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10022 lt_prog_compiler_wl='-Qoption ld ';;
10023 *)
10024 lt_prog_compiler_wl='-Wl,';;
10025 esac
10026 ;;
10027
10028 sunos4*)
10029 lt_prog_compiler_wl='-Qoption ld '
10030 lt_prog_compiler_pic='-PIC'
10031 lt_prog_compiler_static='-Bstatic'
10032 ;;
10033
10034 sysv4 | sysv4.2uw2* | sysv4.3*)
10035 lt_prog_compiler_wl='-Wl,'
10036 lt_prog_compiler_pic='-KPIC'
10037 lt_prog_compiler_static='-Bstatic'
10038 ;;
10039
10040 sysv4*MP*)
10041 if test -d /usr/nec; then
10042 lt_prog_compiler_pic='-Kconform_pic'
10043 lt_prog_compiler_static='-Bstatic'
10044 fi
10045 ;;
10046
10047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-KPIC'
10050 lt_prog_compiler_static='-Bstatic'
10051 ;;
10052
10053 unicos*)
10054 lt_prog_compiler_wl='-Wl,'
10055 lt_prog_compiler_can_build_shared=no
10056 ;;
10057
10058 uts4*)
10059 lt_prog_compiler_pic='-pic'
10060 lt_prog_compiler_static='-Bstatic'
10061 ;;
10062
10063 *)
10064 lt_prog_compiler_can_build_shared=no
10065 ;;
10066 esac
10067 fi
10068
10069 case $host_os in
10070 # For platforms that do not support PIC, -DPIC is meaningless:
10071 *djgpp*)
10072 lt_prog_compiler_pic=
10073 ;;
10074 *)
10075 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10076 ;;
10077 esac
10078
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10080 printf %s "checking for $compiler option to produce PIC... " >&6; }
10081 if test ${lt_cv_prog_compiler_pic+y}
10082 then :
10083 printf %s "(cached) " >&6
10084 else case e in #(
10085 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10086 esac
10087 fi
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10089 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10090 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10091
10092 #
10093 # Check to make sure the PIC flag actually works.
10094 #
10095 if test -n "$lt_prog_compiler_pic"; then
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10097 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10098 if test ${lt_cv_prog_compiler_pic_works+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else case e in #(
10102 e) lt_cv_prog_compiler_pic_works=no
10103 ac_outfile=conftest.$ac_objext
10104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10106 # Insert the option either (1) after the last *FLAGS variable, or
10107 # (2) before a word containing "conftest.", or (3) at the end.
10108 # Note that $ac_compile itself does not contain backslashes and begins
10109 # with a dollar sign (not a hyphen), so the echo should work correctly.
10110 # The option is referenced via a variable to avoid confusing sed.
10111 lt_compile=`echo "$ac_compile" | $SED \
10112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10114 -e 's:$: $lt_compiler_flag:'`
10115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10116 (eval "$lt_compile" 2>conftest.err)
10117 ac_status=$?
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 if (exit $ac_status) && test -s "$ac_outfile"; then
10121 # The compiler can only warn and ignore the option if not recognized
10122 # So say no if there are warnings other than the usual output.
10123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler_pic_works=yes
10127 fi
10128 fi
10129 $RM conftest*
10130 ;;
10131 esac
10132 fi
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10134 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10135
10136 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10137 case $lt_prog_compiler_pic in
10138 "" | " "*) ;;
10139 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10140 esac
10141 else
10142 lt_prog_compiler_pic=
10143 lt_prog_compiler_can_build_shared=no
10144 fi
10145
10146 fi
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158 #
10159 # Check to make sure the static flag actually works.
10160 #
10161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10163 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10164 if test ${lt_cv_prog_compiler_static_works+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else case e in #(
10168 e) lt_cv_prog_compiler_static_works=no
10169 save_LDFLAGS=$LDFLAGS
10170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10173 # The linker can only warn and ignore the option if not recognized
10174 # So say no if there are warnings
10175 if test -s conftest.err; then
10176 # Append any errors to the config.log.
10177 cat conftest.err 1>&5
10178 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10180 if diff conftest.exp conftest.er2 >/dev/null; then
10181 lt_cv_prog_compiler_static_works=yes
10182 fi
10183 else
10184 lt_cv_prog_compiler_static_works=yes
10185 fi
10186 fi
10187 $RM -r conftest*
10188 LDFLAGS=$save_LDFLAGS
10189 ;;
10190 esac
10191 fi
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10193 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10194
10195 if test yes = "$lt_cv_prog_compiler_static_works"; then
10196 :
10197 else
10198 lt_prog_compiler_static=
10199 fi
10200
10201
10202
10203
10204
10205
10206
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10208 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10209 if test ${lt_cv_prog_compiler_c_o+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else case e in #(
10213 e) lt_cv_prog_compiler_c_o=no
10214 $RM -r conftest 2>/dev/null
10215 mkdir conftest
10216 cd conftest
10217 mkdir out
10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219
10220 lt_compiler_flag="-o out/conftest2.$ac_objext"
10221 # Insert the option either (1) after the last *FLAGS variable, or
10222 # (2) before a word containing "conftest.", or (3) at the end.
10223 # Note that $ac_compile itself does not contain backslashes and begins
10224 # with a dollar sign (not a hyphen), so the echo should work correctly.
10225 lt_compile=`echo "$ac_compile" | $SED \
10226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228 -e 's:$: $lt_compiler_flag:'`
10229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10230 (eval "$lt_compile" 2>out/conftest.err)
10231 ac_status=$?
10232 cat out/conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10235 then
10236 # The compiler can only warn and ignore the option if not recognized
10237 # So say no if there are warnings
10238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241 lt_cv_prog_compiler_c_o=yes
10242 fi
10243 fi
10244 chmod u+w . 2>&5
10245 $RM conftest*
10246 # SGI C++ compiler will create directory out/ii_files/ for
10247 # template instantiation
10248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249 $RM out/* && rmdir out
10250 cd ..
10251 $RM -r conftest
10252 $RM conftest*
10253 ;;
10254 esac
10255 fi
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10257 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10258
10259
10260
10261
10262
10263
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10265 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10266 if test ${lt_cv_prog_compiler_c_o+y}
10267 then :
10268 printf %s "(cached) " >&6
10269 else case e in #(
10270 e) lt_cv_prog_compiler_c_o=no
10271 $RM -r conftest 2>/dev/null
10272 mkdir conftest
10273 cd conftest
10274 mkdir out
10275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10276
10277 lt_compiler_flag="-o out/conftest2.$ac_objext"
10278 # Insert the option either (1) after the last *FLAGS variable, or
10279 # (2) before a word containing "conftest.", or (3) at the end.
10280 # Note that $ac_compile itself does not contain backslashes and begins
10281 # with a dollar sign (not a hyphen), so the echo should work correctly.
10282 lt_compile=`echo "$ac_compile" | $SED \
10283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10285 -e 's:$: $lt_compiler_flag:'`
10286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10287 (eval "$lt_compile" 2>out/conftest.err)
10288 ac_status=$?
10289 cat out/conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10292 then
10293 # The compiler can only warn and ignore the option if not recognized
10294 # So say no if there are warnings
10295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10298 lt_cv_prog_compiler_c_o=yes
10299 fi
10300 fi
10301 chmod u+w . 2>&5
10302 $RM conftest*
10303 # SGI C++ compiler will create directory out/ii_files/ for
10304 # template instantiation
10305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10306 $RM out/* && rmdir out
10307 cd ..
10308 $RM -r conftest
10309 $RM conftest*
10310 ;;
10311 esac
10312 fi
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10314 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10315
10316
10317
10318
10319 hard_links=nottested
10320 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10321 # do not overwrite the value of need_locks provided by the user
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10323 printf %s "checking if we can lock with hard links... " >&6; }
10324 hard_links=yes
10325 $RM conftest*
10326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10327 touch conftest.a
10328 ln conftest.a conftest.b 2>&5 || hard_links=no
10329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10331 printf "%s\n" "$hard_links" >&6; }
10332 if test no = "$hard_links"; then
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10334 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10335 need_locks=warn
10336 fi
10337 else
10338 need_locks=no
10339 fi
10340
10341
10342
10343
10344
10345
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10347 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10348
10349 runpath_var=
10350 allow_undefined_flag=
10351 always_export_symbols=no
10352 archive_cmds=
10353 archive_expsym_cmds=
10354 compiler_needs_object=no
10355 enable_shared_with_static_runtimes=no
10356 export_dynamic_flag_spec=
10357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10358 hardcode_automatic=no
10359 hardcode_direct=no
10360 hardcode_direct_absolute=no
10361 hardcode_libdir_flag_spec=
10362 hardcode_libdir_separator=
10363 hardcode_minus_L=no
10364 hardcode_shlibpath_var=unsupported
10365 inherit_rpath=no
10366 link_all_deplibs=unknown
10367 module_cmds=
10368 module_expsym_cmds=
10369 old_archive_from_new_cmds=
10370 old_archive_from_expsyms_cmds=
10371 thread_safe_flag_spec=
10372 whole_archive_flag_spec=
10373 # include_expsyms should be a list of space-separated symbols to be *always*
10374 # included in the symbol list
10375 include_expsyms=
10376 # exclude_expsyms can be an extended regexp of symbols to exclude
10377 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10378 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10379 # as well as any symbol that contains 'd'.
10380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10382 # platforms (ab)use it in PIC code, but their linkers get confused if
10383 # the symbol is explicitly referenced. Since portable code cannot
10384 # rely on this symbol name, it's probably fine to never include it in
10385 # preloaded symbol tables.
10386 # Exclude shared library initialization/finalization symbols.
10387 extract_expsyms_cmds=
10388
10389 case $host_os in
10390 cygwin* | mingw* | windows* | pw32* | cegcc*)
10391 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10392 # When not using gcc, we currently assume that we are using
10393 # Microsoft Visual C++ or Intel C++ Compiler.
10394 if test yes != "$GCC"; then
10395 with_gnu_ld=no
10396 fi
10397 ;;
10398 interix*)
10399 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10400 with_gnu_ld=yes
10401 ;;
10402 esac
10403
10404 ld_shlibs=yes
10405
10406 # On some targets, GNU ld is compatible enough with the native linker
10407 # that we're better off using the native interface for both.
10408 lt_use_gnu_ld_interface=no
10409 if test yes = "$with_gnu_ld"; then
10410 case $host_os in
10411 aix*)
10412 # The AIX port of GNU ld has always aspired to compatibility
10413 # with the native linker. However, as the warning in the GNU ld
10414 # block says, versions before 2.19.5* couldn't really create working
10415 # shared libraries, regardless of the interface used.
10416 case `$LD -v 2>&1` in
10417 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10418 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10419 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10420 *)
10421 lt_use_gnu_ld_interface=yes
10422 ;;
10423 esac
10424 ;;
10425 *)
10426 lt_use_gnu_ld_interface=yes
10427 ;;
10428 esac
10429 fi
10430
10431 if test yes = "$lt_use_gnu_ld_interface"; then
10432 # If archive_cmds runs LD, not CC, wlarc should be empty
10433 wlarc='$wl'
10434
10435 # Set some defaults for GNU ld with shared library support. These
10436 # are reset later if shared libraries are not supported. Putting them
10437 # here allows them to be overridden if necessary.
10438 runpath_var=LD_RUN_PATH
10439 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10440 export_dynamic_flag_spec='$wl--export-dynamic'
10441 # ancient GNU ld didn't support --whole-archive et. al.
10442 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10443 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10444 else
10445 whole_archive_flag_spec=
10446 fi
10447 supports_anon_versioning=no
10448 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10449 *GNU\ gold*) supports_anon_versioning=yes ;;
10450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10453 *\ 2.11.*) ;; # other 2.11 versions
10454 *) supports_anon_versioning=yes ;;
10455 esac
10456
10457 # See if GNU ld supports shared libraries.
10458 case $host_os in
10459 aix[3-9]*)
10460 # On AIX/PPC, the GNU linker is very broken
10461 if test ia64 != "$host_cpu"; then
10462 ld_shlibs=no
10463 cat <<_LT_EOF 1>&2
10464
10465 *** Warning: the GNU linker, at least up to release 2.19, is reported
10466 *** to be unable to reliably create shared libraries on AIX.
10467 *** Therefore, libtool is disabling shared libraries support. If you
10468 *** really care for shared libraries, you may want to install binutils
10469 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10470 *** You will then need to restart the configuration process.
10471
10472 _LT_EOF
10473 fi
10474 ;;
10475
10476 amigaos*)
10477 case $host_cpu in
10478 powerpc)
10479 # see comment about AmigaOS4 .so support
10480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481 archive_expsym_cmds=''
10482 ;;
10483 m68k)
10484 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10485 hardcode_libdir_flag_spec='-L$libdir'
10486 hardcode_minus_L=yes
10487 ;;
10488 esac
10489 ;;
10490
10491 beos*)
10492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10493 allow_undefined_flag=unsupported
10494 # Joseph Beckenbach <[email protected]> says some releases of gcc
10495 # support --undefined. This deserves some investigation. FIXME
10496 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10497 else
10498 ld_shlibs=no
10499 fi
10500 ;;
10501
10502 cygwin* | mingw* | windows* | pw32* | cegcc*)
10503 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10504 # as there is no search path for DLLs.
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 export_dynamic_flag_spec='$wl--export-all-symbols'
10507 allow_undefined_flag=unsupported
10508 always_export_symbols=no
10509 enable_shared_with_static_runtimes=yes
10510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10511 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10512 file_list_spec='@'
10513
10514 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10516 # If the export-symbols file already is a .def file, use it as
10517 # is; otherwise, prepend EXPORTS...
10518 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10519 cp $export_symbols $output_objdir/$soname.def;
10520 else
10521 echo EXPORTS > $output_objdir/$soname.def;
10522 cat $export_symbols >> $output_objdir/$soname.def;
10523 fi~
10524 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10525 else
10526 ld_shlibs=no
10527 fi
10528 ;;
10529
10530 haiku*)
10531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10532 link_all_deplibs=no
10533 ;;
10534
10535 os2*)
10536 hardcode_libdir_flag_spec='-L$libdir'
10537 hardcode_minus_L=yes
10538 allow_undefined_flag=unsupported
10539 shrext_cmds=.dll
10540 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10543 $ECHO EXPORTS >> $output_objdir/$libname.def~
10544 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10546 emximp -o $lib $output_objdir/$libname.def'
10547 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10548 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10549 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10550 $ECHO EXPORTS >> $output_objdir/$libname.def~
10551 prefix_cmds="$SED"~
10552 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10553 prefix_cmds="$prefix_cmds -e 1d";
10554 fi~
10555 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10556 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10558 emximp -o $lib $output_objdir/$libname.def'
10559 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10560 enable_shared_with_static_runtimes=yes
10561 file_list_spec='@'
10562 ;;
10563
10564 interix[3-9]*)
10565 hardcode_direct=no
10566 hardcode_shlibpath_var=no
10567 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10568 export_dynamic_flag_spec='$wl-E'
10569 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10570 # Instead, shared libraries are loaded at an image base (0x10000000 by
10571 # default) and relocated if they conflict, which is a slow very memory
10572 # consuming and fragmenting process. To avoid this, we pick a random,
10573 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10574 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10576 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10577 ;;
10578
10579 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10580 tmp_diet=no
10581 if test linux-dietlibc = "$host_os"; then
10582 case $cc_basename in
10583 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10584 esac
10585 fi
10586 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10587 && test no = "$tmp_diet"
10588 then
10589 tmp_addflag=' $pic_flag'
10590 tmp_sharedflag='-shared'
10591 case $cc_basename,$host_cpu in
10592 pgcc*) # Portland Group C compiler
10593 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10594 tmp_addflag=' $pic_flag'
10595 ;;
10596 pgf77* | pgf90* | pgf95* | pgfortran*)
10597 # Portland Group f77 and f90 compilers
10598 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10599 tmp_addflag=' $pic_flag -Mnomain' ;;
10600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10601 tmp_addflag=' -i_dynamic' ;;
10602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10603 tmp_addflag=' -i_dynamic -nofor_main' ;;
10604 ifc* | ifort*) # Intel Fortran compiler
10605 tmp_addflag=' -nofor_main' ;;
10606 lf95*) # Lahey Fortran 8.1
10607 whole_archive_flag_spec=
10608 tmp_sharedflag='--shared' ;;
10609 nagfor*) # NAGFOR 5.3
10610 tmp_sharedflag='-Wl,-shared' ;;
10611 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10612 tmp_sharedflag='-qmkshrobj'
10613 tmp_addflag= ;;
10614 nvcc*) # Cuda Compiler Driver 2.2
10615 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10616 compiler_needs_object=yes
10617 ;;
10618 esac
10619 case `$CC -V 2>&1 | $SED 5q` in
10620 *Sun\ C*) # Sun C 5.9
10621 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10622 compiler_needs_object=yes
10623 tmp_sharedflag='-G' ;;
10624 *Sun\ F*) # Sun Fortran 8.3
10625 tmp_sharedflag='-G' ;;
10626 esac
10627 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10628
10629 if test yes = "$supports_anon_versioning"; then
10630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10631 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10632 echo "local: *; };" >> $output_objdir/$libname.ver~
10633 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10634 fi
10635
10636 case $cc_basename in
10637 tcc*)
10638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639 export_dynamic_flag_spec='-rdynamic'
10640 ;;
10641 xlf* | bgf* | bgxlf* | mpixlf*)
10642 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10643 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10646 if test yes = "$supports_anon_versioning"; then
10647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10648 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10649 echo "local: *; };" >> $output_objdir/$libname.ver~
10650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10651 fi
10652 ;;
10653 esac
10654 else
10655 ld_shlibs=no
10656 fi
10657 ;;
10658
10659 *-mlibc)
10660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10662 ;;
10663
10664 netbsd* | netbsdelf*-gnu)
10665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10666 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10667 wlarc=
10668 else
10669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10671 fi
10672 ;;
10673
10674 solaris*)
10675 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10676 ld_shlibs=no
10677 cat <<_LT_EOF 1>&2
10678
10679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10680 *** create shared libraries on Solaris systems. Therefore, libtool
10681 *** is disabling shared libraries support. We urge you to upgrade GNU
10682 *** binutils to release 2.9.1 or newer. Another option is to modify
10683 *** your PATH or compiler configuration so that the native linker is
10684 *** used, and then restart.
10685
10686 _LT_EOF
10687 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10690 else
10691 ld_shlibs=no
10692 fi
10693 ;;
10694
10695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10696 case `$LD -v 2>&1` in
10697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10698 ld_shlibs=no
10699 cat <<_LT_EOF 1>&2
10700
10701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10702 *** reliably create shared libraries on SCO systems. Therefore, libtool
10703 *** is disabling shared libraries support. We urge you to upgrade GNU
10704 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10705 *** your PATH or compiler configuration so that the native linker is
10706 *** used, and then restart.
10707
10708 _LT_EOF
10709 ;;
10710 *)
10711 # For security reasons, it is highly recommended that you always
10712 # use absolute paths for naming shared libraries, and exclude the
10713 # DT_RUNPATH tag from executables and libraries. But doing so
10714 # requires that you compile everything twice, which is a pain.
10715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10719 else
10720 ld_shlibs=no
10721 fi
10722 ;;
10723 esac
10724 ;;
10725
10726 sunos4*)
10727 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10728 wlarc=
10729 hardcode_direct=yes
10730 hardcode_shlibpath_var=no
10731 ;;
10732
10733 *)
10734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10737 else
10738 ld_shlibs=no
10739 fi
10740 ;;
10741 esac
10742
10743 if test no = "$ld_shlibs"; then
10744 runpath_var=
10745 hardcode_libdir_flag_spec=
10746 export_dynamic_flag_spec=
10747 whole_archive_flag_spec=
10748 fi
10749 else
10750 # PORTME fill in a description of your system's linker (not GNU ld)
10751 case $host_os in
10752 aix3*)
10753 allow_undefined_flag=unsupported
10754 always_export_symbols=yes
10755 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10756 # Note: this linker hardcodes the directories in LIBPATH if there
10757 # are no directories specified by -L.
10758 hardcode_minus_L=yes
10759 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10760 # Neither direct hardcoding nor static linking is supported with a
10761 # broken collect2.
10762 hardcode_direct=unsupported
10763 fi
10764 ;;
10765
10766 aix[4-9]*)
10767 if test ia64 = "$host_cpu"; then
10768 # On IA64, the linker does run time linking by default, so we don't
10769 # have to do anything special.
10770 aix_use_runtimelinking=no
10771 exp_sym_flag='-Bexport'
10772 no_entry_flag=
10773 else
10774 # If we're using GNU nm, then we don't want the "-C" option.
10775 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10776 # Without the "-l" option, or with the "-B" option, AIX nm treats
10777 # weak defined symbols like other global defined symbols, whereas
10778 # GNU nm marks them as "W".
10779 # While the 'weak' keyword is ignored in the Export File, we need
10780 # it in the Import File for the 'aix-soname' feature, so we have
10781 # to replace the "-B" option with "-P" for AIX nm.
10782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10783 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10784 else
10785 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10786 fi
10787 aix_use_runtimelinking=no
10788
10789 # Test if we are trying to use run time linking or normal
10790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10791 # have runtime linking enabled, and use it for executables.
10792 # For shared libraries, we enable/disable runtime linking
10793 # depending on the kind of the shared library created -
10794 # when "with_aix_soname,aix_use_runtimelinking" is:
10795 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10796 # "aix,yes" lib.so shared, rtl:yes, for executables
10797 # lib.a static archive
10798 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10799 # lib.a(lib.so.V) shared, rtl:no, for executables
10800 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10801 # lib.a(lib.so.V) shared, rtl:no
10802 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10803 # lib.a static archive
10804 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10805 for ld_flag in $LDFLAGS; do
10806 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10807 aix_use_runtimelinking=yes
10808 break
10809 fi
10810 done
10811 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10812 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10813 # so we don't have lib.a shared libs to link our executables.
10814 # We have to force runtime linking in this case.
10815 aix_use_runtimelinking=yes
10816 LDFLAGS="$LDFLAGS -Wl,-brtl"
10817 fi
10818 ;;
10819 esac
10820
10821 exp_sym_flag='-bexport'
10822 no_entry_flag='-bnoentry'
10823 fi
10824
10825 # When large executables or shared objects are built, AIX ld can
10826 # have problems creating the table of contents. If linking a library
10827 # or program results in "error TOC overflow" add -mminimal-toc to
10828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10830
10831 archive_cmds=''
10832 hardcode_direct=yes
10833 hardcode_direct_absolute=yes
10834 hardcode_libdir_separator=':'
10835 link_all_deplibs=yes
10836 file_list_spec='$wl-f,'
10837 case $with_aix_soname,$aix_use_runtimelinking in
10838 aix,*) ;; # traditional, no import file
10839 svr4,* | *,yes) # use import file
10840 # The Import File defines what to hardcode.
10841 hardcode_direct=no
10842 hardcode_direct_absolute=no
10843 ;;
10844 esac
10845
10846 if test yes = "$GCC"; then
10847 case $host_os in aix4.[012]|aix4.[012].*)
10848 # We only want to do this on AIX 4.2 and lower, the check
10849 # below for broken collect2 doesn't work under 4.3+
10850 collect2name=`$CC -print-prog-name=collect2`
10851 if test -f "$collect2name" &&
10852 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10853 then
10854 # We have reworked collect2
10855 :
10856 else
10857 # We have old collect2
10858 hardcode_direct=unsupported
10859 # It fails to find uninstalled libraries when the uninstalled
10860 # path is not listed in the libpath. Setting hardcode_minus_L
10861 # to unsupported forces relinking
10862 hardcode_minus_L=yes
10863 hardcode_libdir_flag_spec='-L$libdir'
10864 hardcode_libdir_separator=
10865 fi
10866 ;;
10867 esac
10868 shared_flag='-shared'
10869 if test yes = "$aix_use_runtimelinking"; then
10870 shared_flag="$shared_flag "'$wl-G'
10871 fi
10872 # Need to ensure runtime linking is disabled for the traditional
10873 # shared library, or the linker may eventually find shared libraries
10874 # /with/ Import File - we do not want to mix them.
10875 shared_flag_aix='-shared'
10876 shared_flag_svr4='-shared $wl-G'
10877 else
10878 # not using gcc
10879 if test ia64 = "$host_cpu"; then
10880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10881 # chokes on -Wl,-G. The following line is correct:
10882 shared_flag='-G'
10883 else
10884 if test yes = "$aix_use_runtimelinking"; then
10885 shared_flag='$wl-G'
10886 else
10887 shared_flag='$wl-bM:SRE'
10888 fi
10889 shared_flag_aix='$wl-bM:SRE'
10890 shared_flag_svr4='$wl-G'
10891 fi
10892 fi
10893
10894 export_dynamic_flag_spec='$wl-bexpall'
10895 # It seems that -bexpall does not export symbols beginning with
10896 # underscore (_), so it is better to generate a list of symbols to export.
10897 always_export_symbols=yes
10898 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10899 # Warning - without using the other runtime loading flags (-brtl),
10900 # -berok will link without error, but may produce a broken library.
10901 allow_undefined_flag='-berok'
10902 # Determine the default libpath from the value encoded in an
10903 # empty executable.
10904 if test set = "${lt_cv_aix_libpath+set}"; then
10905 aix_libpath=$lt_cv_aix_libpath
10906 else
10907 if test ${lt_cv_aix_libpath_+y}
10908 then :
10909 printf %s "(cached) " >&6
10910 else case e in #(
10911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913
10914 int
10915 main (void)
10916 {
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"
10923 then :
10924
10925 lt_aix_libpath_sed='
10926 /Import File Strings/,/^$/ {
10927 /^0/ {
10928 s/^0 *\([^ ]*\) *$/\1/
10929 p
10930 }
10931 }'
10932 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10933 # Check for a 64-bit object if we didn't find anything.
10934 if test -z "$lt_cv_aix_libpath_"; then
10935 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10936 fi
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10939 conftest$ac_exeext conftest.$ac_ext
10940 if test -z "$lt_cv_aix_libpath_"; then
10941 lt_cv_aix_libpath_=/usr/lib:/lib
10942 fi
10943 ;;
10944 esac
10945 fi
10946
10947 aix_libpath=$lt_cv_aix_libpath_
10948 fi
10949
10950 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10951 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10952 else
10953 if test ia64 = "$host_cpu"; then
10954 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10955 allow_undefined_flag="-z nodefs"
10956 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10957 else
10958 # Determine the default libpath from the value encoded in an
10959 # empty executable.
10960 if test set = "${lt_cv_aix_libpath+set}"; then
10961 aix_libpath=$lt_cv_aix_libpath
10962 else
10963 if test ${lt_cv_aix_libpath_+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else case e in #(
10967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969
10970 int
10971 main (void)
10972 {
10973
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"
10979 then :
10980
10981 lt_aix_libpath_sed='
10982 /Import File Strings/,/^$/ {
10983 /^0/ {
10984 s/^0 *\([^ ]*\) *$/\1/
10985 p
10986 }
10987 }'
10988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10989 # Check for a 64-bit object if we didn't find anything.
10990 if test -z "$lt_cv_aix_libpath_"; then
10991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10992 fi
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10995 conftest$ac_exeext conftest.$ac_ext
10996 if test -z "$lt_cv_aix_libpath_"; then
10997 lt_cv_aix_libpath_=/usr/lib:/lib
10998 fi
10999 ;;
11000 esac
11001 fi
11002
11003 aix_libpath=$lt_cv_aix_libpath_
11004 fi
11005
11006 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11007 # Warning - without using the other run time loading flags,
11008 # -berok will link without error, but may produce a broken library.
11009 no_undefined_flag=' $wl-bernotok'
11010 allow_undefined_flag=' $wl-berok'
11011 if test yes = "$with_gnu_ld"; then
11012 # We only use this code for GNU lds that support --whole-archive.
11013 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11014 else
11015 # Exported symbols can be pulled into shared objects from archives
11016 whole_archive_flag_spec='$convenience'
11017 fi
11018 archive_cmds_need_lc=yes
11019 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11020 # -brtl affects multiple linker settings, -berok does not and is overridden later
11021 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11022 if test svr4 != "$with_aix_soname"; then
11023 # This is similar to how AIX traditionally builds its shared libraries.
11024 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11025 fi
11026 if test aix != "$with_aix_soname"; then
11027 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11028 else
11029 # used by -dlpreopen to get the symbols
11030 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11031 fi
11032 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11033 fi
11034 fi
11035 ;;
11036
11037 amigaos*)
11038 case $host_cpu in
11039 powerpc)
11040 # see comment about AmigaOS4 .so support
11041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11042 archive_expsym_cmds=''
11043 ;;
11044 m68k)
11045 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 hardcode_minus_L=yes
11048 ;;
11049 esac
11050 ;;
11051
11052 bsdi[45]*)
11053 export_dynamic_flag_spec=-rdynamic
11054 ;;
11055
11056 cygwin* | mingw* | windows* | pw32* | cegcc*)
11057 # When not using gcc, we currently assume that we are using
11058 # Microsoft Visual C++ or Intel C++ Compiler.
11059 # hardcode_libdir_flag_spec is actually meaningless, as there is
11060 # no search path for DLLs.
11061 case $cc_basename in
11062 cl* | icl*)
11063 # Native MSVC or ICC
11064 hardcode_libdir_flag_spec=' '
11065 allow_undefined_flag=unsupported
11066 always_export_symbols=yes
11067 file_list_spec='@'
11068 # Tell ltmain to make .lib files, not .a files.
11069 libext=lib
11070 # Tell ltmain to make .dll files, not .so files.
11071 shrext_cmds=.dll
11072 # FIXME: Setting linknames here is a bad hack.
11073 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11074 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11075 cp "$export_symbols" "$output_objdir/$soname.def";
11076 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11077 else
11078 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11079 fi~
11080 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11081 linknames='
11082 # The linker will not automatically build a static lib if we build a DLL.
11083 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11084 enable_shared_with_static_runtimes=yes
11085 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11087 # Don't use ranlib
11088 old_postinstall_cmds='chmod 644 $oldlib'
11089 postlink_cmds='lt_outputfile="@OUTPUT@"~
11090 lt_tool_outputfile="@TOOL_OUTPUT@"~
11091 case $lt_outputfile in
11092 *.exe|*.EXE) ;;
11093 *)
11094 lt_outputfile=$lt_outputfile.exe
11095 lt_tool_outputfile=$lt_tool_outputfile.exe
11096 ;;
11097 esac~
11098 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11099 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11100 $RM "$lt_outputfile.manifest";
11101 fi'
11102 ;;
11103 *)
11104 # Assume MSVC and ICC wrapper
11105 hardcode_libdir_flag_spec=' '
11106 allow_undefined_flag=unsupported
11107 # Tell ltmain to make .lib files, not .a files.
11108 libext=lib
11109 # Tell ltmain to make .dll files, not .so files.
11110 shrext_cmds=.dll
11111 # FIXME: Setting linknames here is a bad hack.
11112 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11113 # The linker will automatically build a .lib file if we build a DLL.
11114 old_archive_from_new_cmds='true'
11115 # FIXME: Should let the user specify the lib program.
11116 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11117 enable_shared_with_static_runtimes=yes
11118 ;;
11119 esac
11120 ;;
11121
11122 darwin* | rhapsody*)
11123
11124
11125 archive_cmds_need_lc=no
11126 hardcode_direct=no
11127 hardcode_automatic=yes
11128 hardcode_shlibpath_var=unsupported
11129 if test yes = "$lt_cv_ld_force_load"; then
11130 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11131
11132 else
11133 whole_archive_flag_spec=''
11134 fi
11135 link_all_deplibs=yes
11136 allow_undefined_flag=$_lt_dar_allow_undefined
11137 case $cc_basename in
11138 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11139 *) _lt_dar_can_shared=$GCC ;;
11140 esac
11141 if test yes = "$_lt_dar_can_shared"; then
11142 output_verbose_link_cmd=func_echo_all
11143 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11144 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11145 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11146 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11147
11148 else
11149 ld_shlibs=no
11150 fi
11151
11152 ;;
11153
11154 dgux*)
11155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_libdir_flag_spec='-L$libdir'
11157 hardcode_shlibpath_var=no
11158 ;;
11159
11160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11161 # support. Future versions do this automatically, but an explicit c++rt0.o
11162 # does not break anything, and helps significantly (at the cost of a little
11163 # extra space).
11164 freebsd2.2*)
11165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11166 hardcode_libdir_flag_spec='-R$libdir'
11167 hardcode_direct=yes
11168 hardcode_shlibpath_var=no
11169 ;;
11170
11171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11172 freebsd2.*)
11173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11174 hardcode_direct=yes
11175 hardcode_minus_L=yes
11176 hardcode_shlibpath_var=no
11177 ;;
11178
11179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11180 freebsd* | dragonfly* | midnightbsd*)
11181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11182 hardcode_libdir_flag_spec='-R$libdir'
11183 hardcode_direct=yes
11184 hardcode_shlibpath_var=no
11185 ;;
11186
11187 hpux9*)
11188 if test yes = "$GCC"; then
11189 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11190 else
11191 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11192 fi
11193 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11194 hardcode_libdir_separator=:
11195 hardcode_direct=yes
11196
11197 # hardcode_minus_L: Not really in the search PATH,
11198 # but as the default location of the library.
11199 hardcode_minus_L=yes
11200 export_dynamic_flag_spec='$wl-E'
11201 ;;
11202
11203 hpux10*)
11204 if test yes,no = "$GCC,$with_gnu_ld"; then
11205 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11206 else
11207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11208 fi
11209 if test no = "$with_gnu_ld"; then
11210 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11211 hardcode_libdir_separator=:
11212 hardcode_direct=yes
11213 hardcode_direct_absolute=yes
11214 export_dynamic_flag_spec='$wl-E'
11215 # hardcode_minus_L: Not really in the search PATH,
11216 # but as the default location of the library.
11217 hardcode_minus_L=yes
11218 fi
11219 ;;
11220
11221 hpux11*)
11222 if test yes,no = "$GCC,$with_gnu_ld"; then
11223 case $host_cpu in
11224 hppa*64*)
11225 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 ;;
11227 ia64*)
11228 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11229 ;;
11230 *)
11231 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11232 ;;
11233 esac
11234 else
11235 case $host_cpu in
11236 hppa*64*)
11237 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11238 ;;
11239 ia64*)
11240 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11241 ;;
11242 *)
11243
11244 # Older versions of the 11.00 compiler do not understand -b yet
11245 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11247 printf %s "checking if $CC understands -b... " >&6; }
11248 if test ${lt_cv_prog_compiler__b+y}
11249 then :
11250 printf %s "(cached) " >&6
11251 else case e in #(
11252 e) lt_cv_prog_compiler__b=no
11253 save_LDFLAGS=$LDFLAGS
11254 LDFLAGS="$LDFLAGS -b"
11255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11257 # The linker can only warn and ignore the option if not recognized
11258 # So say no if there are warnings
11259 if test -s conftest.err; then
11260 # Append any errors to the config.log.
11261 cat conftest.err 1>&5
11262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11264 if diff conftest.exp conftest.er2 >/dev/null; then
11265 lt_cv_prog_compiler__b=yes
11266 fi
11267 else
11268 lt_cv_prog_compiler__b=yes
11269 fi
11270 fi
11271 $RM -r conftest*
11272 LDFLAGS=$save_LDFLAGS
11273 ;;
11274 esac
11275 fi
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11277 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11278
11279 if test yes = "$lt_cv_prog_compiler__b"; then
11280 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11281 else
11282 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11283 fi
11284
11285 ;;
11286 esac
11287 fi
11288 if test no = "$with_gnu_ld"; then
11289 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11290 hardcode_libdir_separator=:
11291
11292 case $host_cpu in
11293 hppa*64*|ia64*)
11294 hardcode_direct=no
11295 hardcode_shlibpath_var=no
11296 ;;
11297 *)
11298 hardcode_direct=yes
11299 hardcode_direct_absolute=yes
11300 export_dynamic_flag_spec='$wl-E'
11301
11302 # hardcode_minus_L: Not really in the search PATH,
11303 # but as the default location of the library.
11304 hardcode_minus_L=yes
11305 ;;
11306 esac
11307 fi
11308 ;;
11309
11310 irix5* | irix6* | nonstopux*)
11311 if test yes = "$GCC"; then
11312 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11313 # Try to use the -exported_symbol ld option, if it does not
11314 # work, assume that -exports_file does not work either and
11315 # implicitly export all symbols.
11316 # This should be the same for all languages, so no per-tag cache variable.
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11318 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11319 if test ${lt_cv_irix_exported_symbol+y}
11320 then :
11321 printf %s "(cached) " >&6
11322 else case e in #(
11323 e) save_LDFLAGS=$LDFLAGS
11324 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 int foo (void) { return 0; }
11328 _ACEOF
11329 if ac_fn_c_try_link "$LINENO"
11330 then :
11331 lt_cv_irix_exported_symbol=yes
11332 else case e in #(
11333 e) lt_cv_irix_exported_symbol=no ;;
11334 esac
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11337 conftest$ac_exeext conftest.$ac_ext
11338 LDFLAGS=$save_LDFLAGS ;;
11339 esac
11340 fi
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11342 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11343 if test yes = "$lt_cv_irix_exported_symbol"; then
11344 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11345 fi
11346 else
11347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11349 fi
11350 archive_cmds_need_lc='no'
11351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11352 hardcode_libdir_separator=:
11353 inherit_rpath=yes
11354 link_all_deplibs=yes
11355 ;;
11356
11357 linux*)
11358 case $cc_basename in
11359 tcc*)
11360 # Fabrice Bellard et al's Tiny C Compiler
11361 ld_shlibs=yes
11362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11364 ;;
11365 esac
11366 ;;
11367
11368 *-mlibc)
11369 ;;
11370
11371 netbsd* | netbsdelf*-gnu)
11372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11374 else
11375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11376 fi
11377 hardcode_libdir_flag_spec='-R$libdir'
11378 hardcode_direct=yes
11379 hardcode_shlibpath_var=no
11380 ;;
11381
11382 newsos6)
11383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384 hardcode_direct=yes
11385 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11386 hardcode_libdir_separator=:
11387 hardcode_shlibpath_var=no
11388 ;;
11389
11390 *nto* | *qnx*)
11391 ;;
11392
11393 openbsd*)
11394 if test -f /usr/libexec/ld.so; then
11395 hardcode_direct=yes
11396 hardcode_shlibpath_var=no
11397 hardcode_direct_absolute=yes
11398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11401 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11402 export_dynamic_flag_spec='$wl-E'
11403 else
11404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11405 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11406 fi
11407 else
11408 ld_shlibs=no
11409 fi
11410 ;;
11411
11412 os2*)
11413 hardcode_libdir_flag_spec='-L$libdir'
11414 hardcode_minus_L=yes
11415 allow_undefined_flag=unsupported
11416 shrext_cmds=.dll
11417 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11420 $ECHO EXPORTS >> $output_objdir/$libname.def~
11421 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11423 emximp -o $lib $output_objdir/$libname.def'
11424 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11427 $ECHO EXPORTS >> $output_objdir/$libname.def~
11428 prefix_cmds="$SED"~
11429 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11430 prefix_cmds="$prefix_cmds -e 1d";
11431 fi~
11432 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11433 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11435 emximp -o $lib $output_objdir/$libname.def'
11436 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11437 enable_shared_with_static_runtimes=yes
11438 file_list_spec='@'
11439 ;;
11440
11441 osf3*)
11442 if test yes = "$GCC"; then
11443 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11444 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11445 else
11446 allow_undefined_flag=' -expect_unresolved \*'
11447 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11448 fi
11449 archive_cmds_need_lc='no'
11450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11451 hardcode_libdir_separator=:
11452 ;;
11453
11454 osf4* | osf5*) # as osf3* with the addition of -msym flag
11455 if test yes = "$GCC"; then
11456 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11457 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11458 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11459 else
11460 allow_undefined_flag=' -expect_unresolved \*'
11461 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11462 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11463 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11464
11465 # Both c and cxx compiler support -rpath directly
11466 hardcode_libdir_flag_spec='-rpath $libdir'
11467 fi
11468 archive_cmds_need_lc='no'
11469 hardcode_libdir_separator=:
11470 ;;
11471
11472 serenity*)
11473 ;;
11474
11475 solaris*)
11476 no_undefined_flag=' -z defs'
11477 if test yes = "$GCC"; then
11478 wlarc='$wl'
11479 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11481 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11482 else
11483 case `$CC -V 2>&1` in
11484 *"Compilers 5.0"*)
11485 wlarc=''
11486 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11488 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11489 ;;
11490 *)
11491 wlarc='$wl'
11492 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11494 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11495 ;;
11496 esac
11497 fi
11498 hardcode_libdir_flag_spec='-R$libdir'
11499 hardcode_shlibpath_var=no
11500 case $host_os in
11501 solaris2.[0-5] | solaris2.[0-5].*) ;;
11502 *)
11503 # The compiler driver will combine and reorder linker options,
11504 # but understands '-z linker_flag'. GCC discards it without '$wl',
11505 # but is careful enough not to reorder.
11506 # Supported since Solaris 2.6 (maybe 2.5.1?)
11507 if test yes = "$GCC"; then
11508 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11509 else
11510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11511 fi
11512 ;;
11513 esac
11514 link_all_deplibs=yes
11515 ;;
11516
11517 sunos4*)
11518 if test sequent = "$host_vendor"; then
11519 # Use $CC to link under sequent, because it throws in some extra .o
11520 # files that make .init and .fini sections work.
11521 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11522 else
11523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11524 fi
11525 hardcode_libdir_flag_spec='-L$libdir'
11526 hardcode_direct=yes
11527 hardcode_minus_L=yes
11528 hardcode_shlibpath_var=no
11529 ;;
11530
11531 sysv4)
11532 case $host_vendor in
11533 sni)
11534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11535 hardcode_direct=yes # is this really true???
11536 ;;
11537 siemens)
11538 ## LD is ld it makes a PLAMLIB
11539 ## CC just makes a GrossModule.
11540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11541 reload_cmds='$CC -r -o $output$reload_objs'
11542 hardcode_direct=no
11543 ;;
11544 motorola)
11545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11547 ;;
11548 esac
11549 runpath_var='LD_RUN_PATH'
11550 hardcode_shlibpath_var=no
11551 ;;
11552
11553 sysv4.3*)
11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555 hardcode_shlibpath_var=no
11556 export_dynamic_flag_spec='-Bexport'
11557 ;;
11558
11559 sysv4*MP*)
11560 if test -d /usr/nec; then
11561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11562 hardcode_shlibpath_var=no
11563 runpath_var=LD_RUN_PATH
11564 hardcode_runpath_var=yes
11565 ld_shlibs=yes
11566 fi
11567 ;;
11568
11569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11570 no_undefined_flag='$wl-z,text'
11571 archive_cmds_need_lc=no
11572 hardcode_shlibpath_var=no
11573 runpath_var='LD_RUN_PATH'
11574
11575 if test yes = "$GCC"; then
11576 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11577 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11578 else
11579 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11581 fi
11582 ;;
11583
11584 sysv5* | sco3.2v5* | sco5v6*)
11585 # Note: We CANNOT use -z defs as we might desire, because we do not
11586 # link with -lc, and that would cause any symbols used from libc to
11587 # always be unresolved, which means just about no library would
11588 # ever link correctly. If we're not using GNU ld we use -z text
11589 # though, which does catch some bad symbols but isn't as heavy-handed
11590 # as -z defs.
11591 no_undefined_flag='$wl-z,text'
11592 allow_undefined_flag='$wl-z,nodefs'
11593 archive_cmds_need_lc=no
11594 hardcode_shlibpath_var=no
11595 hardcode_libdir_flag_spec='$wl-R,$libdir'
11596 hardcode_libdir_separator=':'
11597 link_all_deplibs=yes
11598 export_dynamic_flag_spec='$wl-Bexport'
11599 runpath_var='LD_RUN_PATH'
11600
11601 if test yes = "$GCC"; then
11602 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11603 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11604 else
11605 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 fi
11608 ;;
11609
11610 uts4*)
11611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11612 hardcode_libdir_flag_spec='-L$libdir'
11613 hardcode_shlibpath_var=no
11614 ;;
11615
11616 *)
11617 ld_shlibs=no
11618 ;;
11619 esac
11620
11621 if test sni = "$host_vendor"; then
11622 case $host in
11623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11624 export_dynamic_flag_spec='$wl-Blargedynsym'
11625 ;;
11626 esac
11627 fi
11628 fi
11629
11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11631 printf "%s\n" "$ld_shlibs" >&6; }
11632 test no = "$ld_shlibs" && can_build_shared=no
11633
11634 with_gnu_ld=$with_gnu_ld
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650 #
11651 # Do we need to explicitly link libc?
11652 #
11653 case "x$archive_cmds_need_lc" in
11654 x|xyes)
11655 # Assume -lc should be added
11656 archive_cmds_need_lc=yes
11657
11658 if test yes,yes = "$GCC,$enable_shared"; then
11659 case $archive_cmds in
11660 *'~'*)
11661 # FIXME: we may have to deal with multi-command sequences.
11662 ;;
11663 '$CC '*)
11664 # Test whether the compiler implicitly links with -lc since on some
11665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11666 # to ld, don't add -lc before -lgcc.
11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11668 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11669 if test ${lt_cv_archive_cmds_need_lc+y}
11670 then :
11671 printf %s "(cached) " >&6
11672 else case e in #(
11673 e) $RM conftest*
11674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11675
11676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11677 (eval $ac_compile) 2>&5
11678 ac_status=$?
11679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680 test $ac_status = 0; } 2>conftest.err; then
11681 soname=conftest
11682 lib=conftest
11683 libobjs=conftest.$ac_objext
11684 deplibs=
11685 wl=$lt_prog_compiler_wl
11686 pic_flag=$lt_prog_compiler_pic
11687 compiler_flags=-v
11688 linker_flags=-v
11689 verstring=
11690 output_objdir=.
11691 libname=conftest
11692 lt_save_allow_undefined_flag=$allow_undefined_flag
11693 allow_undefined_flag=
11694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11695 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11696 ac_status=$?
11697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; }
11699 then
11700 lt_cv_archive_cmds_need_lc=no
11701 else
11702 lt_cv_archive_cmds_need_lc=yes
11703 fi
11704 allow_undefined_flag=$lt_save_allow_undefined_flag
11705 else
11706 cat conftest.err 1>&5
11707 fi
11708 $RM conftest*
11709 ;;
11710 esac
11711 fi
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11713 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11714 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11715 ;;
11716 esac
11717 fi
11718 ;;
11719 esac
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11873 printf %s "checking dynamic linker characteristics... " >&6; }
11874
11875 if test yes = "$GCC"; then
11876 case $host_os in
11877 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11878 *) lt_awk_arg='/^libraries:/' ;;
11879 esac
11880 case $host_os in
11881 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11882 *) lt_sed_strip_eq='s|=/|/|g' ;;
11883 esac
11884 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11885 case $lt_search_path_spec in
11886 *\;*)
11887 # if the path contains ";" then we assume it to be the separator
11888 # otherwise default to the standard path separator (i.e. ":") - it is
11889 # assumed that no part of a normal pathname contains ";" but that should
11890 # okay in the real world where ";" in dirpaths is itself problematic.
11891 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11892 ;;
11893 *)
11894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11895 ;;
11896 esac
11897 # Ok, now we have the path, separated by spaces, we can step through it
11898 # and add multilib dir if necessary...
11899 lt_tmp_lt_search_path_spec=
11900 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11901 # ...but if some path component already ends with the multilib dir we assume
11902 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11903 case "$lt_multi_os_dir; $lt_search_path_spec " in
11904 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11905 lt_multi_os_dir=
11906 ;;
11907 esac
11908 for lt_sys_path in $lt_search_path_spec; do
11909 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11910 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11911 elif test -n "$lt_multi_os_dir"; then
11912 test -d "$lt_sys_path" && \
11913 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11914 fi
11915 done
11916 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11917 BEGIN {RS = " "; FS = "/|\n";} {
11918 lt_foo = "";
11919 lt_count = 0;
11920 for (lt_i = NF; lt_i > 0; lt_i--) {
11921 if ($lt_i != "" && $lt_i != ".") {
11922 if ($lt_i == "..") {
11923 lt_count++;
11924 } else {
11925 if (lt_count == 0) {
11926 lt_foo = "/" $lt_i lt_foo;
11927 } else {
11928 lt_count--;
11929 }
11930 }
11931 }
11932 }
11933 if (lt_foo != "") { lt_freq[lt_foo]++; }
11934 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11935 }'`
11936 # AWK program above erroneously prepends '/' to C:/dos/paths
11937 # for these hosts.
11938 case $host_os in
11939 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11940 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11941 esac
11942 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11943 else
11944 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11945 fi
11946 library_names_spec=
11947 libname_spec='lib$name'
11948 soname_spec=
11949 shrext_cmds=.so
11950 postinstall_cmds=
11951 postuninstall_cmds=
11952 finish_cmds=
11953 finish_eval=
11954 shlibpath_var=
11955 shlibpath_overrides_runpath=unknown
11956 version_type=none
11957 dynamic_linker="$host_os ld.so"
11958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11959 need_lib_prefix=unknown
11960 hardcode_into_libs=no
11961
11962 # when you set need_version to no, make sure it does not cause -set_version
11963 # flags to be left without arguments
11964 need_version=unknown
11965
11966
11967
11968 case $host_os in
11969 aix3*)
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11972 shlibpath_var=LIBPATH
11973
11974 # AIX 3 has no versioning support, so we append a major version to the name.
11975 soname_spec='$libname$release$shared_ext$major'
11976 ;;
11977
11978 aix[4-9]*)
11979 version_type=linux # correct to gnu/linux during the next big refactor
11980 need_lib_prefix=no
11981 need_version=no
11982 hardcode_into_libs=yes
11983 if test ia64 = "$host_cpu"; then
11984 # AIX 5 supports IA64
11985 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 else
11988 # With GCC up to 2.95.x, collect2 would create an import file
11989 # for dependence libraries. The import file would start with
11990 # the line '#! .'. This would cause the generated library to
11991 # depend on '.', always an invalid library. This was fixed in
11992 # development snapshots of GCC prior to 3.0.
11993 case $host_os in
11994 aix4 | aix4.[01] | aix4.[01].*)
11995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11996 echo ' yes '
11997 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11998 :
11999 else
12000 can_build_shared=no
12001 fi
12002 ;;
12003 esac
12004 # Using Import Files as archive members, it is possible to support
12005 # filename-based versioning of shared library archives on AIX. While
12006 # this would work for both with and without runtime linking, it will
12007 # prevent static linking of such archives. So we do filename-based
12008 # shared library versioning with .so extension only, which is used
12009 # when both runtime linking and shared linking is enabled.
12010 # Unfortunately, runtime linking may impact performance, so we do
12011 # not want this to be the default eventually. Also, we use the
12012 # versioned .so libs for executables only if there is the -brtl
12013 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12014 # To allow for filename-based versioning support, we need to create
12015 # libNAME.so.V as an archive file, containing:
12016 # *) an Import File, referring to the versioned filename of the
12017 # archive as well as the shared archive member, telling the
12018 # bitwidth (32 or 64) of that shared object, and providing the
12019 # list of exported symbols of that shared object, eventually
12020 # decorated with the 'weak' keyword
12021 # *) the shared object with the F_LOADONLY flag set, to really avoid
12022 # it being seen by the linker.
12023 # At run time we better use the real file rather than another symlink,
12024 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12025
12026 case $with_aix_soname,$aix_use_runtimelinking in
12027 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12028 # soname into executable. Probably we can add versioning support to
12029 # collect2, so additional links can be useful in future.
12030 aix,yes) # traditional libtool
12031 dynamic_linker='AIX unversionable lib.so'
12032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12033 # instead of lib<name>.a to let people know that these are not
12034 # typical AIX shared libraries.
12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036 ;;
12037 aix,no) # traditional AIX only
12038 dynamic_linker='AIX lib.a(lib.so.V)'
12039 # We preserve .a as extension for shared libraries through AIX4.2
12040 # and later when we are not doing run time linking.
12041 library_names_spec='$libname$release.a $libname.a'
12042 soname_spec='$libname$release$shared_ext$major'
12043 ;;
12044 svr4,*) # full svr4 only
12045 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12046 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12047 # We do not specify a path in Import Files, so LIBPATH fires.
12048 shlibpath_overrides_runpath=yes
12049 ;;
12050 *,yes) # both, prefer svr4
12051 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12052 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12053 # unpreferred sharedlib libNAME.a needs extra handling
12054 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12055 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12056 # We do not specify a path in Import Files, so LIBPATH fires.
12057 shlibpath_overrides_runpath=yes
12058 ;;
12059 *,no) # both, prefer aix
12060 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12061 library_names_spec='$libname$release.a $libname.a'
12062 soname_spec='$libname$release$shared_ext$major'
12063 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12064 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12065 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12066 ;;
12067 esac
12068 shlibpath_var=LIBPATH
12069 fi
12070 ;;
12071
12072 amigaos*)
12073 case $host_cpu in
12074 powerpc)
12075 # Since July 2007 AmigaOS4 officially supports .so libraries.
12076 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 ;;
12079 m68k)
12080 library_names_spec='$libname.ixlibrary $libname.a'
12081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12082 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12083 ;;
12084 esac
12085 ;;
12086
12087 beos*)
12088 library_names_spec='$libname$shared_ext'
12089 dynamic_linker="$host_os ld.so"
12090 shlibpath_var=LIBRARY_PATH
12091 ;;
12092
12093 bsdi[45]*)
12094 version_type=linux # correct to gnu/linux during the next big refactor
12095 need_version=no
12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12097 soname_spec='$libname$release$shared_ext$major'
12098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12102 # the default ld.so.conf also contains /usr/contrib/lib and
12103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12104 # libtool to hard-code these into programs
12105 ;;
12106
12107 cygwin* | mingw* | windows* | pw32* | cegcc*)
12108 version_type=windows
12109 shrext_cmds=.dll
12110 need_version=no
12111 need_lib_prefix=no
12112
12113 case $GCC,$cc_basename in
12114 yes,*)
12115 # gcc
12116 library_names_spec='$libname.dll.a'
12117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12118 # If user builds GCC with multilib enabled,
12119 # it should just install on $(libdir)
12120 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12121 if test xyes = x"$multilib"; then
12122 postinstall_cmds='base_file=`basename \$file`~
12123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12124 dldir=$destdir/`dirname \$dlpath`~
12125 $install_prog $dir/$dlname $destdir/$dlname~
12126 chmod a+x $destdir/$dlname~
12127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12128 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12129 fi'
12130 else
12131 postinstall_cmds='base_file=`basename \$file`~
12132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12133 dldir=$destdir/`dirname \$dlpath`~
12134 test -d \$dldir || mkdir -p \$dldir~
12135 $install_prog $dir/$dlname \$dldir/$dlname~
12136 chmod a+x \$dldir/$dlname~
12137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12139 fi'
12140 fi
12141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12142 dlpath=$dir/\$dldll~
12143 $RM \$dlpath'
12144 shlibpath_overrides_runpath=yes
12145
12146 case $host_os in
12147 cygwin*)
12148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12149 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12150
12151 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12152 ;;
12153 mingw* | windows* | cegcc*)
12154 # MinGW DLLs use traditional 'lib' prefix
12155 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12156 ;;
12157 pw32*)
12158 # pw32 DLLs use 'pw' prefix rather than 'lib'
12159 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12160 ;;
12161 esac
12162 dynamic_linker='Win32 ld.exe'
12163 ;;
12164
12165 *,cl* | *,icl*)
12166 # Native MSVC or ICC
12167 libname_spec='$name'
12168 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12169 library_names_spec='$libname.dll.lib'
12170
12171 case $build_os in
12172 mingw* | windows*)
12173 sys_lib_search_path_spec=
12174 lt_save_ifs=$IFS
12175 IFS=';'
12176 for lt_path in $LIB
12177 do
12178 IFS=$lt_save_ifs
12179 # Let DOS variable expansion print the short 8.3 style file name.
12180 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12181 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12182 done
12183 IFS=$lt_save_ifs
12184 # Convert to MSYS style.
12185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12186 ;;
12187 cygwin*)
12188 # Convert to unix form, then to dos form, then back to unix form
12189 # but this time dos style (no spaces!) so that the unix form looks
12190 # like /cygdrive/c/PROGRA~1:/cygdr...
12191 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12192 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12193 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12194 ;;
12195 *)
12196 sys_lib_search_path_spec=$LIB
12197 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12198 # It is most probably a Windows format PATH.
12199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12200 else
12201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12202 fi
12203 # FIXME: find the short name or the path components, as spaces are
12204 # common. (e.g. "Program Files" -> "PROGRA~1")
12205 ;;
12206 esac
12207
12208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12209 postinstall_cmds='base_file=`basename \$file`~
12210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12211 dldir=$destdir/`dirname \$dlpath`~
12212 test -d \$dldir || mkdir -p \$dldir~
12213 $install_prog $dir/$dlname \$dldir/$dlname'
12214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12215 dlpath=$dir/\$dldll~
12216 $RM \$dlpath'
12217 shlibpath_overrides_runpath=yes
12218 dynamic_linker='Win32 link.exe'
12219 ;;
12220
12221 *)
12222 # Assume MSVC and ICC wrapper
12223 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12224 dynamic_linker='Win32 ld.exe'
12225 ;;
12226 esac
12227 # FIXME: first we should search . and the directory the executable is in
12228 shlibpath_var=PATH
12229 ;;
12230
12231 darwin* | rhapsody*)
12232 dynamic_linker="$host_os dyld"
12233 version_type=darwin
12234 need_lib_prefix=no
12235 need_version=no
12236 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12237 soname_spec='$libname$release$major$shared_ext'
12238 shlibpath_overrides_runpath=yes
12239 shlibpath_var=DYLD_LIBRARY_PATH
12240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12241
12242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12244 ;;
12245
12246 dgux*)
12247 version_type=linux # correct to gnu/linux during the next big refactor
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 soname_spec='$libname$release$shared_ext$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 ;;
12254
12255 freebsd* | dragonfly* | midnightbsd*)
12256 # DragonFly does not have aout. When/if they implement a new
12257 # versioning mechanism, adjust this.
12258 if test -x /usr/bin/objformat; then
12259 objformat=`/usr/bin/objformat`
12260 else
12261 case $host_os in
12262 freebsd[23].*) objformat=aout ;;
12263 *) objformat=elf ;;
12264 esac
12265 fi
12266 version_type=freebsd-$objformat
12267 case $version_type in
12268 freebsd-elf*)
12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12270 soname_spec='$libname$release$shared_ext$major'
12271 need_version=no
12272 need_lib_prefix=no
12273 ;;
12274 freebsd-*)
12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12276 need_version=yes
12277 ;;
12278 esac
12279 case $host_cpu in
12280 powerpc64)
12281 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12282 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 int test_pointer_size[sizeof (void *) - 5];
12286
12287 _ACEOF
12288 if ac_fn_c_try_compile "$LINENO"
12289 then :
12290 shlibpath_var=LD_LIBRARY_PATH
12291 else case e in #(
12292 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12293 esac
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12296 ;;
12297 *)
12298 shlibpath_var=LD_LIBRARY_PATH
12299 ;;
12300 esac
12301 case $host_os in
12302 freebsd2.*)
12303 shlibpath_overrides_runpath=yes
12304 ;;
12305 freebsd3.[01]* | freebsdelf3.[01]*)
12306 shlibpath_overrides_runpath=yes
12307 hardcode_into_libs=yes
12308 ;;
12309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12311 shlibpath_overrides_runpath=no
12312 hardcode_into_libs=yes
12313 ;;
12314 *) # from 4.6 on, and DragonFly
12315 shlibpath_overrides_runpath=yes
12316 hardcode_into_libs=yes
12317 ;;
12318 esac
12319 ;;
12320
12321 haiku*)
12322 version_type=linux # correct to gnu/linux during the next big refactor
12323 need_lib_prefix=no
12324 need_version=no
12325 dynamic_linker="$host_os runtime_loader"
12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327 soname_spec='$libname$release$shared_ext$major'
12328 shlibpath_var=LIBRARY_PATH
12329 shlibpath_overrides_runpath=no
12330 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12331 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12332 hardcode_into_libs=no
12333 ;;
12334
12335 hpux9* | hpux10* | hpux11*)
12336 # Give a soname corresponding to the major version so that dld.sl refuses to
12337 # link against other versions.
12338 version_type=sunos
12339 need_lib_prefix=no
12340 need_version=no
12341 case $host_cpu in
12342 ia64*)
12343 shrext_cmds='.so'
12344 hardcode_into_libs=yes
12345 dynamic_linker="$host_os dld.so"
12346 shlibpath_var=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12349 soname_spec='$libname$release$shared_ext$major'
12350 if test 32 = "$HPUX_IA64_MODE"; then
12351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12352 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12353 else
12354 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12355 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12356 fi
12357 ;;
12358 hppa*64*)
12359 shrext_cmds='.sl'
12360 hardcode_into_libs=yes
12361 dynamic_linker="$host_os dld.sl"
12362 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365 soname_spec='$libname$release$shared_ext$major'
12366 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12368 ;;
12369 *)
12370 shrext_cmds='.sl'
12371 dynamic_linker="$host_os dld.sl"
12372 shlibpath_var=SHLIB_PATH
12373 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375 soname_spec='$libname$release$shared_ext$major'
12376 ;;
12377 esac
12378 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12379 postinstall_cmds='chmod 555 $lib'
12380 # or fails outright, so override atomically:
12381 install_override_mode=555
12382 ;;
12383
12384 interix[3-9]*)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=no
12393 hardcode_into_libs=yes
12394 ;;
12395
12396 irix5* | irix6* | nonstopux*)
12397 case $host_os in
12398 nonstopux*) version_type=nonstopux ;;
12399 *)
12400 if test yes = "$lt_cv_prog_gnu_ld"; then
12401 version_type=linux # correct to gnu/linux during the next big refactor
12402 else
12403 version_type=irix
12404 fi ;;
12405 esac
12406 need_lib_prefix=no
12407 need_version=no
12408 soname_spec='$libname$release$shared_ext$major'
12409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12410 case $host_os in
12411 irix5* | nonstopux*)
12412 libsuff= shlibsuff=
12413 ;;
12414 *)
12415 case $LD in # libtool.m4 will add one of these switches to LD
12416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12417 libsuff= shlibsuff= libmagic=32-bit;;
12418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12419 libsuff=32 shlibsuff=N32 libmagic=N32;;
12420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12422 *) libsuff= shlibsuff= libmagic=never-match;;
12423 esac
12424 ;;
12425 esac
12426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12427 shlibpath_overrides_runpath=no
12428 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12429 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12430 hardcode_into_libs=yes
12431 ;;
12432
12433 # No shared lib support for Linux oldld, aout, or coff.
12434 linux*oldld* | linux*aout* | linux*coff*)
12435 dynamic_linker=no
12436 ;;
12437
12438 linux*android*)
12439 version_type=none # Android doesn't support versioned libraries.
12440 need_lib_prefix=no
12441 need_version=no
12442 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12443 soname_spec='$libname$release$shared_ext'
12444 finish_cmds=
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=yes
12447
12448 # This implies no fast_install, which is unacceptable.
12449 # Some rework will be needed to allow for fast_install
12450 # before this can be enabled.
12451 hardcode_into_libs=yes
12452
12453 dynamic_linker='Android linker'
12454 # -rpath works at least for libraries that are not overridden by
12455 # libraries installed in system locations.
12456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12457 ;;
12458
12459 # This must be glibc/ELF.
12460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12461 version_type=linux # correct to gnu/linux during the next big refactor
12462 need_lib_prefix=no
12463 need_version=no
12464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12465 soname_spec='$libname$release$shared_ext$major'
12466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=no
12469
12470 # Some binutils ld are patched to set DT_RUNPATH
12471 if test ${lt_cv_shlibpath_overrides_runpath+y}
12472 then :
12473 printf %s "(cached) " >&6
12474 else case e in #(
12475 e) lt_cv_shlibpath_overrides_runpath=no
12476 save_LDFLAGS=$LDFLAGS
12477 save_libdir=$libdir
12478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482
12483 int
12484 main (void)
12485 {
12486
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"
12492 then :
12493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12494 then :
12495 lt_cv_shlibpath_overrides_runpath=yes
12496 fi
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12499 conftest$ac_exeext conftest.$ac_ext
12500 LDFLAGS=$save_LDFLAGS
12501 libdir=$save_libdir
12502 ;;
12503 esac
12504 fi
12505
12506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12507
12508 # This implies no fast_install, which is unacceptable.
12509 # Some rework will be needed to allow for fast_install
12510 # before this can be enabled.
12511 hardcode_into_libs=yes
12512
12513 # Add ABI-specific directories to the system library path.
12514 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12515
12516 # Ideally, we could use ldconfig to report *all* directories which are
12517 # searched for libraries, however this is still not possible. Aside from not
12518 # being certain /sbin/ldconfig is available, command
12519 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12520 # even though it is searched at run-time. Try to do the best guess by
12521 # appending ld.so.conf contents (and includes) to the search path.
12522 if test -f /etc/ld.so.conf; then
12523 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12524 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12525 fi
12526
12527 # We used to test for /lib/ld.so.1 and disable shared libraries on
12528 # powerpc, because MkLinux only supported shared libraries with the
12529 # GNU dynamic linker. Since this was broken with cross compilers,
12530 # most powerpc-linux boxes support dynamic linking these days and
12531 # people can always --disable-shared, the test was removed, and we
12532 # assume the GNU/Linux dynamic linker is in use.
12533 dynamic_linker='GNU/Linux ld.so'
12534 ;;
12535
12536 netbsdelf*-gnu)
12537 version_type=linux
12538 need_lib_prefix=no
12539 need_version=no
12540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12541 soname_spec='$libname$release$shared_ext$major'
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=no
12544 hardcode_into_libs=yes
12545 dynamic_linker='NetBSD ld.elf_so'
12546 ;;
12547
12548 netbsd*)
12549 version_type=sunos
12550 need_lib_prefix=no
12551 need_version=no
12552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12555 dynamic_linker='NetBSD (a.out) ld.so'
12556 else
12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12558 soname_spec='$libname$release$shared_ext$major'
12559 dynamic_linker='NetBSD ld.elf_so'
12560 fi
12561 shlibpath_var=LD_LIBRARY_PATH
12562 shlibpath_overrides_runpath=yes
12563 hardcode_into_libs=yes
12564 ;;
12565
12566 *-mlibc)
12567 version_type=linux # correct to gnu/linux during the next big refactor
12568 need_lib_prefix=no
12569 need_version=no
12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12571 soname_spec='$libname$release$shared_ext$major'
12572 dynamic_linker='mlibc ld.so'
12573 shlibpath_var=LD_LIBRARY_PATH
12574 shlibpath_overrides_runpath=no
12575 hardcode_into_libs=yes
12576 ;;
12577
12578 newsos6)
12579 version_type=linux # correct to gnu/linux during the next big refactor
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=yes
12583 ;;
12584
12585 *nto* | *qnx*)
12586 version_type=qnx
12587 need_lib_prefix=no
12588 need_version=no
12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12590 soname_spec='$libname$release$shared_ext$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=no
12593 hardcode_into_libs=yes
12594 dynamic_linker='ldqnx.so'
12595 ;;
12596
12597 openbsd*)
12598 version_type=sunos
12599 sys_lib_dlsearch_path_spec=/usr/lib
12600 need_lib_prefix=no
12601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12602 need_version=no
12603 else
12604 need_version=yes
12605 fi
12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 shlibpath_overrides_runpath=yes
12610 ;;
12611
12612 os2*)
12613 libname_spec='$name'
12614 version_type=windows
12615 shrext_cmds=.dll
12616 need_version=no
12617 need_lib_prefix=no
12618 # OS/2 can only load a DLL with a base name of 8 characters or less.
12619 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12620 v=$($ECHO $release$versuffix | tr -d .-);
12621 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12622 $ECHO $n$v`$shared_ext'
12623 library_names_spec='${libname}_dll.$libext'
12624 dynamic_linker='OS/2 ld.exe'
12625 shlibpath_var=BEGINLIBPATH
12626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12628 postinstall_cmds='base_file=`basename \$file`~
12629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12630 dldir=$destdir/`dirname \$dlpath`~
12631 test -d \$dldir || mkdir -p \$dldir~
12632 $install_prog $dir/$dlname \$dldir/$dlname~
12633 chmod a+x \$dldir/$dlname~
12634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12636 fi'
12637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12638 dlpath=$dir/\$dldll~
12639 $RM \$dlpath'
12640 ;;
12641
12642 osf3* | osf4* | osf5*)
12643 version_type=osf
12644 need_lib_prefix=no
12645 need_version=no
12646 soname_spec='$libname$release$shared_ext$major'
12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12651 ;;
12652
12653 rdos*)
12654 dynamic_linker=no
12655 ;;
12656
12657 serenity*)
12658 version_type=linux # correct to gnu/linux during the next big refactor
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12662 soname_spec='$libname$release$shared_ext$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 shlibpath_overrides_runpath=no
12665 dynamic_linker='SerenityOS LibELF'
12666 ;;
12667
12668 solaris*)
12669 version_type=linux # correct to gnu/linux during the next big refactor
12670 need_lib_prefix=no
12671 need_version=no
12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12673 soname_spec='$libname$release$shared_ext$major'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 shlibpath_overrides_runpath=yes
12676 hardcode_into_libs=yes
12677 # ldd complains unless libraries are executable
12678 postinstall_cmds='chmod +x $lib'
12679 ;;
12680
12681 sunos4*)
12682 version_type=sunos
12683 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes
12687 if test yes = "$with_gnu_ld"; then
12688 need_lib_prefix=no
12689 fi
12690 need_version=yes
12691 ;;
12692
12693 sysv4 | sysv4.3*)
12694 version_type=linux # correct to gnu/linux during the next big refactor
12695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12696 soname_spec='$libname$release$shared_ext$major'
12697 shlibpath_var=LD_LIBRARY_PATH
12698 case $host_vendor in
12699 sni)
12700 shlibpath_overrides_runpath=no
12701 need_lib_prefix=no
12702 runpath_var=LD_RUN_PATH
12703 ;;
12704 siemens)
12705 need_lib_prefix=no
12706 ;;
12707 motorola)
12708 need_lib_prefix=no
12709 need_version=no
12710 shlibpath_overrides_runpath=no
12711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12712 ;;
12713 esac
12714 ;;
12715
12716 sysv4*MP*)
12717 if test -d /usr/nec; then
12718 version_type=linux # correct to gnu/linux during the next big refactor
12719 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12720 soname_spec='$libname$shared_ext.$major'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 fi
12723 ;;
12724
12725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12726 version_type=sco
12727 need_lib_prefix=no
12728 need_version=no
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12730 soname_spec='$libname$release$shared_ext$major'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12734 if test yes = "$with_gnu_ld"; then
12735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12736 else
12737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12738 case $host_os in
12739 sco3.2v5*)
12740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12741 ;;
12742 esac
12743 fi
12744 sys_lib_dlsearch_path_spec='/usr/lib'
12745 ;;
12746
12747 tpf*)
12748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12749 version_type=linux # correct to gnu/linux during the next big refactor
12750 need_lib_prefix=no
12751 need_version=no
12752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=no
12755 hardcode_into_libs=yes
12756 ;;
12757
12758 uts4*)
12759 version_type=linux # correct to gnu/linux during the next big refactor
12760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12761 soname_spec='$libname$release$shared_ext$major'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 ;;
12764
12765 emscripten*)
12766 version_type=none
12767 need_lib_prefix=no
12768 need_version=no
12769 library_names_spec='$libname$release$shared_ext'
12770 soname_spec='$libname$release$shared_ext'
12771 finish_cmds=
12772 dynamic_linker="Emscripten linker"
12773 lt_prog_compiler_wl=
12774 lt_prog_compiler_pic=
12775 lt_prog_compiler_static=
12776
12777
12778 if test yes = "$GCC"; then
12779 lt_prog_compiler_wl='-Wl,'
12780 lt_prog_compiler_static='-static'
12781
12782 case $host_os in
12783 aix*)
12784 # All AIX code is PIC.
12785 if test ia64 = "$host_cpu"; then
12786 # AIX 5 now supports IA64 processor
12787 lt_prog_compiler_static='-Bstatic'
12788 fi
12789 lt_prog_compiler_pic='-fPIC'
12790 ;;
12791
12792 amigaos*)
12793 case $host_cpu in
12794 powerpc)
12795 # see comment about AmigaOS4 .so support
12796 lt_prog_compiler_pic='-fPIC'
12797 ;;
12798 m68k)
12799 # FIXME: we need at least 68020 code to build shared libraries, but
12800 # adding the '-m68020' flag to GCC prevents building anything better,
12801 # like '-m68040'.
12802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12803 ;;
12804 esac
12805 ;;
12806
12807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12808 # PIC is the default for these OSes.
12809 ;;
12810
12811 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12812 # This hack is so that the source file can tell whether it is being
12813 # built for inclusion in a dll (and should export symbols for example).
12814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12815 # (--disable-auto-import) libraries
12816 lt_prog_compiler_pic='-DDLL_EXPORT'
12817 case $host_os in
12818 os2*)
12819 lt_prog_compiler_static='$wl-static'
12820 ;;
12821 esac
12822 ;;
12823
12824 darwin* | rhapsody*)
12825 # PIC is the default on this platform
12826 # Common symbols not allowed in MH_DYLIB files
12827 lt_prog_compiler_pic='-fno-common'
12828 ;;
12829
12830 haiku*)
12831 # PIC is the default for Haiku.
12832 # The "-static" flag exists, but is broken.
12833 lt_prog_compiler_static=
12834 ;;
12835
12836 hpux*)
12837 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12838 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12839 # sets the default TLS model and affects inlining.
12840 case $host_cpu in
12841 hppa*64*)
12842 # +Z the default
12843 ;;
12844 *)
12845 lt_prog_compiler_pic='-fPIC'
12846 ;;
12847 esac
12848 ;;
12849
12850 interix[3-9]*)
12851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12852 # Instead, we relocate shared libraries at runtime.
12853 ;;
12854
12855 msdosdjgpp*)
12856 # Just because we use GCC doesn't mean we suddenly get shared libraries
12857 # on systems that don't support them.
12858 lt_prog_compiler_can_build_shared=no
12859 enable_shared=no
12860 ;;
12861
12862 *nto* | *qnx*)
12863 # QNX uses GNU C++, but need to define -shared option too, otherwise
12864 # it will coredump.
12865 lt_prog_compiler_pic='-fPIC -shared'
12866 ;;
12867
12868 sysv4*MP*)
12869 if test -d /usr/nec; then
12870 lt_prog_compiler_pic=-Kconform_pic
12871 fi
12872 ;;
12873
12874 *)
12875 lt_prog_compiler_pic='-fPIC'
12876 ;;
12877 esac
12878
12879 case $cc_basename in
12880 nvcc*) # Cuda Compiler Driver 2.2
12881 lt_prog_compiler_wl='-Xlinker '
12882 if test -n "$lt_prog_compiler_pic"; then
12883 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12884 fi
12885 ;;
12886 esac
12887 else
12888 # PORTME Check for flag to pass linker flags through the system compiler.
12889 case $host_os in
12890 aix*)
12891 lt_prog_compiler_wl='-Wl,'
12892 if test ia64 = "$host_cpu"; then
12893 # AIX 5 now supports IA64 processor
12894 lt_prog_compiler_static='-Bstatic'
12895 else
12896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12897 fi
12898 ;;
12899
12900 darwin* | rhapsody*)
12901 # PIC is the default on this platform
12902 # Common symbols not allowed in MH_DYLIB files
12903 lt_prog_compiler_pic='-fno-common'
12904 case $cc_basename in
12905 nagfor*)
12906 # NAG Fortran compiler
12907 lt_prog_compiler_wl='-Wl,-Wl,,'
12908 lt_prog_compiler_pic='-PIC'
12909 lt_prog_compiler_static='-Bstatic'
12910 ;;
12911 esac
12912 ;;
12913
12914 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12915 # This hack is so that the source file can tell whether it is being
12916 # built for inclusion in a dll (and should export symbols for example).
12917 lt_prog_compiler_pic='-DDLL_EXPORT'
12918 case $host_os in
12919 os2*)
12920 lt_prog_compiler_static='$wl-static'
12921 ;;
12922 esac
12923 ;;
12924
12925 hpux9* | hpux10* | hpux11*)
12926 lt_prog_compiler_wl='-Wl,'
12927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12928 # not for PA HP-UX.
12929 case $host_cpu in
12930 hppa*64*|ia64*)
12931 # +Z the default
12932 ;;
12933 *)
12934 lt_prog_compiler_pic='+Z'
12935 ;;
12936 esac
12937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12938 lt_prog_compiler_static='$wl-a ${wl}archive'
12939 ;;
12940
12941 irix5* | irix6* | nonstopux*)
12942 lt_prog_compiler_wl='-Wl,'
12943 # PIC (with -KPIC) is the default.
12944 lt_prog_compiler_static='-non_shared'
12945 ;;
12946
12947 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12948 case $cc_basename in
12949 # old Intel for x86_64, which still supported -KPIC.
12950 ecc*)
12951 lt_prog_compiler_wl='-Wl,'
12952 lt_prog_compiler_pic='-KPIC'
12953 lt_prog_compiler_static='-static'
12954 ;;
12955 *flang* | ftn | f18* | f95*)
12956 # Flang compiler.
12957 lt_prog_compiler_wl='-Wl,'
12958 lt_prog_compiler_pic='-fPIC'
12959 lt_prog_compiler_static='-static'
12960 ;;
12961 # icc used to be incompatible with GCC.
12962 # ICC 10 doesn't accept -KPIC any more.
12963 icc* | ifort*)
12964 lt_prog_compiler_wl='-Wl,'
12965 lt_prog_compiler_pic='-fPIC'
12966 lt_prog_compiler_static='-static'
12967 ;;
12968 # Lahey Fortran 8.1.
12969 lf95*)
12970 lt_prog_compiler_wl='-Wl,'
12971 lt_prog_compiler_pic='--shared'
12972 lt_prog_compiler_static='--static'
12973 ;;
12974 nagfor*)
12975 # NAG Fortran compiler
12976 lt_prog_compiler_wl='-Wl,-Wl,,'
12977 lt_prog_compiler_pic='-PIC'
12978 lt_prog_compiler_static='-Bstatic'
12979 ;;
12980 tcc*)
12981 # Fabrice Bellard et al's Tiny C Compiler
12982 lt_prog_compiler_wl='-Wl,'
12983 lt_prog_compiler_pic='-fPIC'
12984 lt_prog_compiler_static='-static'
12985 ;;
12986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12987 # Portland Group compilers (*not* the Pentium gcc compiler,
12988 # which looks to be a dead project)
12989 lt_prog_compiler_wl='-Wl,'
12990 lt_prog_compiler_pic='-fpic'
12991 lt_prog_compiler_static='-Bstatic'
12992 ;;
12993 ccc*)
12994 lt_prog_compiler_wl='-Wl,'
12995 # All Alpha code is PIC.
12996 lt_prog_compiler_static='-non_shared'
12997 ;;
12998 xl* | bgxl* | bgf* | mpixl*)
12999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13000 lt_prog_compiler_wl='-Wl,'
13001 lt_prog_compiler_pic='-qpic'
13002 lt_prog_compiler_static='-qstaticlink'
13003 ;;
13004 *)
13005 case `$CC -V 2>&1 | $SED 5q` in
13006 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13008 lt_prog_compiler_pic='-KPIC'
13009 lt_prog_compiler_static='-Bstatic'
13010 lt_prog_compiler_wl=''
13011 ;;
13012 *Sun\ F* | *Sun*Fortran*)
13013 lt_prog_compiler_pic='-KPIC'
13014 lt_prog_compiler_static='-Bstatic'
13015 lt_prog_compiler_wl='-Qoption ld '
13016 ;;
13017 *Sun\ C*)
13018 # Sun C 5.9
13019 lt_prog_compiler_pic='-KPIC'
13020 lt_prog_compiler_static='-Bstatic'
13021 lt_prog_compiler_wl='-Wl,'
13022 ;;
13023 *Intel*\ [CF]*Compiler*)
13024 lt_prog_compiler_wl='-Wl,'
13025 lt_prog_compiler_pic='-fPIC'
13026 lt_prog_compiler_static='-static'
13027 ;;
13028 *Portland\ Group*)
13029 lt_prog_compiler_wl='-Wl,'
13030 lt_prog_compiler_pic='-fpic'
13031 lt_prog_compiler_static='-Bstatic'
13032 ;;
13033 esac
13034 ;;
13035 esac
13036 ;;
13037
13038 newsos6)
13039 lt_prog_compiler_pic='-KPIC'
13040 lt_prog_compiler_static='-Bstatic'
13041 ;;
13042
13043 *-mlibc)
13044 lt_prog_compiler_wl='-Wl,'
13045 lt_prog_compiler_pic='-fPIC'
13046 lt_prog_compiler_static='-static'
13047 ;;
13048
13049 *nto* | *qnx*)
13050 # QNX uses GNU C++, but need to define -shared option too, otherwise
13051 # it will coredump.
13052 lt_prog_compiler_pic='-fPIC -shared'
13053 ;;
13054
13055 osf3* | osf4* | osf5*)
13056 lt_prog_compiler_wl='-Wl,'
13057 # All OSF/1 code is PIC.
13058 lt_prog_compiler_static='-non_shared'
13059 ;;
13060
13061 rdos*)
13062 lt_prog_compiler_static='-non_shared'
13063 ;;
13064
13065 serenity*)
13066 ;;
13067
13068 solaris*)
13069 lt_prog_compiler_pic='-KPIC'
13070 lt_prog_compiler_static='-Bstatic'
13071 case $cc_basename in
13072 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13073 lt_prog_compiler_wl='-Qoption ld ';;
13074 *)
13075 lt_prog_compiler_wl='-Wl,';;
13076 esac
13077 ;;
13078
13079 sunos4*)
13080 lt_prog_compiler_wl='-Qoption ld '
13081 lt_prog_compiler_pic='-PIC'
13082 lt_prog_compiler_static='-Bstatic'
13083 ;;
13084
13085 sysv4 | sysv4.2uw2* | sysv4.3*)
13086 lt_prog_compiler_wl='-Wl,'
13087 lt_prog_compiler_pic='-KPIC'
13088 lt_prog_compiler_static='-Bstatic'
13089 ;;
13090
13091 sysv4*MP*)
13092 if test -d /usr/nec; then
13093 lt_prog_compiler_pic='-Kconform_pic'
13094 lt_prog_compiler_static='-Bstatic'
13095 fi
13096 ;;
13097
13098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13099 lt_prog_compiler_wl='-Wl,'
13100 lt_prog_compiler_pic='-KPIC'
13101 lt_prog_compiler_static='-Bstatic'
13102 ;;
13103
13104 unicos*)
13105 lt_prog_compiler_wl='-Wl,'
13106 lt_prog_compiler_can_build_shared=no
13107 ;;
13108
13109 uts4*)
13110 lt_prog_compiler_pic='-pic'
13111 lt_prog_compiler_static='-Bstatic'
13112 ;;
13113
13114 *)
13115 lt_prog_compiler_can_build_shared=no
13116 ;;
13117 esac
13118 fi
13119
13120 case $host_os in
13121 # For platforms that do not support PIC, -DPIC is meaningless:
13122 *djgpp*)
13123 lt_prog_compiler_pic=
13124 ;;
13125 *)
13126 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13127 ;;
13128 esac
13129
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13131 printf %s "checking for $compiler option to produce PIC... " >&6; }
13132 if test ${lt_cv_prog_compiler_pic+y}
13133 then :
13134 printf %s "(cached) " >&6
13135 else case e in #(
13136 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13137 esac
13138 fi
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13140 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13141 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13142
13143 #
13144 # Check to make sure the PIC flag actually works.
13145 #
13146 if test -n "$lt_prog_compiler_pic"; then
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13148 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13149 if test ${lt_cv_prog_compiler_pic_works+y}
13150 then :
13151 printf %s "(cached) " >&6
13152 else case e in #(
13153 e) lt_cv_prog_compiler_pic_works=no
13154 ac_outfile=conftest.$ac_objext
13155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13157 # Insert the option either (1) after the last *FLAGS variable, or
13158 # (2) before a word containing "conftest.", or (3) at the end.
13159 # Note that $ac_compile itself does not contain backslashes and begins
13160 # with a dollar sign (not a hyphen), so the echo should work correctly.
13161 # The option is referenced via a variable to avoid confusing sed.
13162 lt_compile=`echo "$ac_compile" | $SED \
13163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13165 -e 's:$: $lt_compiler_flag:'`
13166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13167 (eval "$lt_compile" 2>conftest.err)
13168 ac_status=$?
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 if (exit $ac_status) && test -s "$ac_outfile"; then
13172 # The compiler can only warn and ignore the option if not recognized
13173 # So say no if there are warnings other than the usual output.
13174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13177 lt_cv_prog_compiler_pic_works=yes
13178 fi
13179 fi
13180 $RM conftest*
13181 ;;
13182 esac
13183 fi
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13185 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13186
13187 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13188 case $lt_prog_compiler_pic in
13189 "" | " "*) ;;
13190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13191 esac
13192 else
13193 lt_prog_compiler_pic=
13194 lt_prog_compiler_can_build_shared=no
13195 fi
13196
13197 fi
13198
13199
13200
13201
13202
13203 #
13204 # Check to make sure the static flag actually works.
13205 #
13206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13208 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13209 if test ${lt_cv_prog_compiler_static_works+y}
13210 then :
13211 printf %s "(cached) " >&6
13212 else case e in #(
13213 e) lt_cv_prog_compiler_static_works=no
13214 save_LDFLAGS=$LDFLAGS
13215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13218 # The linker can only warn and ignore the option if not recognized
13219 # So say no if there are warnings
13220 if test -s conftest.err; then
13221 # Append any errors to the config.log.
13222 cat conftest.err 1>&5
13223 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13225 if diff conftest.exp conftest.er2 >/dev/null; then
13226 lt_cv_prog_compiler_static_works=yes
13227 fi
13228 else
13229 lt_cv_prog_compiler_static_works=yes
13230 fi
13231 fi
13232 $RM -r conftest*
13233 LDFLAGS=$save_LDFLAGS
13234 ;;
13235 esac
13236 fi
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13238 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13239
13240 if test yes = "$lt_cv_prog_compiler_static_works"; then
13241 :
13242 else
13243 lt_prog_compiler_static=
13244 fi
13245
13246
13247
13248 ='-fPIC'
13249 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13250 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13251 archive_cmds_need_lc=no
13252 no_undefined_flag=
13253 ;;
13254
13255 *)
13256 dynamic_linker=no
13257 ;;
13258 esac
13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13260 printf "%s\n" "$dynamic_linker" >&6; }
13261 test no = "$dynamic_linker" && can_build_shared=no
13262
13263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13264 if test yes = "$GCC"; then
13265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13266 fi
13267
13268 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13269 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13270 fi
13271
13272 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13273 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13274 fi
13275
13276 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13277 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13278
13279 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13280 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13281
13282 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13283 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13382 printf %s "checking how to hardcode library paths into programs... " >&6; }
13383 hardcode_action=
13384 if test -n "$hardcode_libdir_flag_spec" ||
13385 test -n "$runpath_var" ||
13386 test yes = "$hardcode_automatic"; then
13387
13388 # We can hardcode non-existent directories.
13389 if test no != "$hardcode_direct" &&
13390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13391 # have to relink, otherwise we might link with an installed library
13392 # when we should be linking with a yet-to-be-installed one
13393 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13394 test no != "$hardcode_minus_L"; then
13395 # Linking always hardcodes the temporary library directory.
13396 hardcode_action=relink
13397 else
13398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13399 hardcode_action=immediate
13400 fi
13401 else
13402 # We cannot hardcode anything, or else we can only hardcode existing
13403 # directories.
13404 hardcode_action=unsupported
13405 fi
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13407 printf "%s\n" "$hardcode_action" >&6; }
13408
13409 if test relink = "$hardcode_action" ||
13410 test yes = "$inherit_rpath"; then
13411 # Fast installation is not supported
13412 enable_fast_install=no
13413 elif test yes = "$shlibpath_overrides_runpath" ||
13414 test no = "$enable_shared"; then
13415 # Fast installation is not necessary
13416 enable_fast_install=needless
13417 fi
13418
13419
13420
13421
13422
13423
13424 if test yes != "$enable_dlopen"; then
13425 enable_dlopen=unknown
13426 enable_dlopen_self=unknown
13427 enable_dlopen_self_static=unknown
13428 else
13429 lt_cv_dlopen=no
13430 lt_cv_dlopen_libs=
13431
13432 case $host_os in
13433 beos*)
13434 lt_cv_dlopen=load_add_on
13435 lt_cv_dlopen_libs=
13436 lt_cv_dlopen_self=yes
13437 ;;
13438
13439 mingw* | windows* | pw32* | cegcc*)
13440 lt_cv_dlopen=LoadLibrary
13441 lt_cv_dlopen_libs=
13442 ;;
13443
13444 cygwin*)
13445 lt_cv_dlopen=dlopen
13446 lt_cv_dlopen_libs=
13447 ;;
13448
13449 darwin*)
13450 # if libdl is installed we need to link against it
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13452 printf %s "checking for dlopen in -ldl... " >&6; }
13453 if test ${ac_cv_lib_dl_dlopen+y}
13454 then :
13455 printf %s "(cached) " >&6
13456 else case e in #(
13457 e) ac_check_lib_save_LIBS=$LIBS
13458 LIBS="-ldl $LIBS"
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply.
13465 The 'extern "C"' is for builds by C++ compilers;
13466 although this is not generally supported in C code supporting it here
13467 has little cost and some practical benefit (sr 110532). */
13468 #ifdef __cplusplus
13469 extern "C"
13470 #endif
13471 char dlopen (void);
13472 int
13473 main (void)
13474 {
13475 return dlopen ();
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"
13481 then :
13482 ac_cv_lib_dl_dlopen=yes
13483 else case e in #(
13484 e) ac_cv_lib_dl_dlopen=no ;;
13485 esac
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS ;;
13490 esac
13491 fi
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13493 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13494 if test "x$ac_cv_lib_dl_dlopen" = xyes
13495 then :
13496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13497 else case e in #(
13498 e)
13499 lt_cv_dlopen=dyld
13500 lt_cv_dlopen_libs=
13501 lt_cv_dlopen_self=yes
13502 ;;
13503 esac
13504 fi
13505
13506 ;;
13507
13508 tpf*)
13509 # Don't try to run any link tests for TPF. We know it's impossible
13510 # because TPF is a cross-compiler, and we know how we open DSOs.
13511 lt_cv_dlopen=dlopen
13512 lt_cv_dlopen_libs=
13513 lt_cv_dlopen_self=no
13514 ;;
13515
13516 *)
13517 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13518 if test "x$ac_cv_func_shl_load" = xyes
13519 then :
13520 lt_cv_dlopen=shl_load
13521 else case e in #(
13522 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13523 printf %s "checking for shl_load in -ldld... " >&6; }
13524 if test ${ac_cv_lib_dld_shl_load+y}
13525 then :
13526 printf %s "(cached) " >&6
13527 else case e in #(
13528 e) ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-ldld $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply.
13536 The 'extern "C"' is for builds by C++ compilers;
13537 although this is not generally supported in C code supporting it here
13538 has little cost and some practical benefit (sr 110532). */
13539 #ifdef __cplusplus
13540 extern "C"
13541 #endif
13542 char shl_load (void);
13543 int
13544 main (void)
13545 {
13546 return shl_load ();
13547 ;
13548 return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"
13552 then :
13553 ac_cv_lib_dld_shl_load=yes
13554 else case e in #(
13555 e) ac_cv_lib_dld_shl_load=no ;;
13556 esac
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LIBS=$ac_check_lib_save_LIBS ;;
13561 esac
13562 fi
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13564 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13565 if test "x$ac_cv_lib_dld_shl_load" = xyes
13566 then :
13567 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13568 else case e in #(
13569 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13570 if test "x$ac_cv_func_dlopen" = xyes
13571 then :
13572 lt_cv_dlopen=dlopen
13573 else case e in #(
13574 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13575 printf %s "checking for dlopen in -ldl... " >&6; }
13576 if test ${ac_cv_lib_dl_dlopen+y}
13577 then :
13578 printf %s "(cached) " >&6
13579 else case e in #(
13580 e) ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-ldl $LIBS"
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply.
13588 The 'extern "C"' is for builds by C++ compilers;
13589 although this is not generally supported in C code supporting it here
13590 has little cost and some practical benefit (sr 110532). */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char dlopen (void);
13595 int
13596 main (void)
13597 {
13598 return dlopen ();
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"
13604 then :
13605 ac_cv_lib_dl_dlopen=yes
13606 else case e in #(
13607 e) ac_cv_lib_dl_dlopen=no ;;
13608 esac
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13611 conftest$ac_exeext conftest.$ac_ext
13612 LIBS=$ac_check_lib_save_LIBS ;;
13613 esac
13614 fi
13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13616 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13617 if test "x$ac_cv_lib_dl_dlopen" = xyes
13618 then :
13619 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13620 else case e in #(
13621 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13622 printf %s "checking for dlopen in -lsvld... " >&6; }
13623 if test ${ac_cv_lib_svld_dlopen+y}
13624 then :
13625 printf %s "(cached) " >&6
13626 else case e in #(
13627 e) ac_check_lib_save_LIBS=$LIBS
13628 LIBS="-lsvld $LIBS"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply.
13635 The 'extern "C"' is for builds by C++ compilers;
13636 although this is not generally supported in C code supporting it here
13637 has little cost and some practical benefit (sr 110532). */
13638 #ifdef __cplusplus
13639 extern "C"
13640 #endif
13641 char dlopen (void);
13642 int
13643 main (void)
13644 {
13645 return dlopen ();
13646 ;
13647 return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"
13651 then :
13652 ac_cv_lib_svld_dlopen=yes
13653 else case e in #(
13654 e) ac_cv_lib_svld_dlopen=no ;;
13655 esac
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS ;;
13660 esac
13661 fi
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13663 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13664 if test "x$ac_cv_lib_svld_dlopen" = xyes
13665 then :
13666 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13667 else case e in #(
13668 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13669 printf %s "checking for dld_link in -ldld... " >&6; }
13670 if test ${ac_cv_lib_dld_dld_link+y}
13671 then :
13672 printf %s "(cached) " >&6
13673 else case e in #(
13674 e) ac_check_lib_save_LIBS=$LIBS
13675 LIBS="-ldld $LIBS"
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply.
13682 The 'extern "C"' is for builds by C++ compilers;
13683 although this is not generally supported in C code supporting it here
13684 has little cost and some practical benefit (sr 110532). */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 char dld_link (void);
13689 int
13690 main (void)
13691 {
13692 return dld_link ();
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"
13698 then :
13699 ac_cv_lib_dld_dld_link=yes
13700 else case e in #(
13701 e) ac_cv_lib_dld_dld_link=no ;;
13702 esac
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13705 conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS ;;
13707 esac
13708 fi
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13710 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13711 if test "x$ac_cv_lib_dld_dld_link" = xyes
13712 then :
13713 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13714 fi
13715
13716 ;;
13717 esac
13718 fi
13719
13720 ;;
13721 esac
13722 fi
13723
13724 ;;
13725 esac
13726 fi
13727
13728 ;;
13729 esac
13730 fi
13731
13732 ;;
13733 esac
13734 fi
13735
13736 ;;
13737 esac
13738
13739 if test no = "$lt_cv_dlopen"; then
13740 enable_dlopen=no
13741 else
13742 enable_dlopen=yes
13743 fi
13744
13745 case $lt_cv_dlopen in
13746 dlopen)
13747 save_CPPFLAGS=$CPPFLAGS
13748 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13749
13750 save_LDFLAGS=$LDFLAGS
13751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13752
13753 save_LIBS=$LIBS
13754 LIBS="$lt_cv_dlopen_libs $LIBS"
13755
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13757 printf %s "checking whether a program can dlopen itself... " >&6; }
13758 if test ${lt_cv_dlopen_self+y}
13759 then :
13760 printf %s "(cached) " >&6
13761 else case e in #(
13762 e) if test yes = "$cross_compiling"; then :
13763 lt_cv_dlopen_self=cross
13764 else
13765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13766 lt_status=$lt_dlunknown
13767 cat > conftest.$ac_ext <<_LT_EOF
13768 #line $LINENO "configure"
13769 #include "confdefs.h"
13770
13771 #if HAVE_DLFCN_H
13772 #include <dlfcn.h>
13773 #endif
13774
13775 #include <stdio.h>
13776
13777 #ifdef RTLD_GLOBAL
13778 # define LT_DLGLOBAL RTLD_GLOBAL
13779 #else
13780 # ifdef DL_GLOBAL
13781 # define LT_DLGLOBAL DL_GLOBAL
13782 # else
13783 # define LT_DLGLOBAL 0
13784 # endif
13785 #endif
13786
13787 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13788 find out it does not work in some platform. */
13789 #ifndef LT_DLLAZY_OR_NOW
13790 # ifdef RTLD_LAZY
13791 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13792 # else
13793 # ifdef DL_LAZY
13794 # define LT_DLLAZY_OR_NOW DL_LAZY
13795 # else
13796 # ifdef RTLD_NOW
13797 # define LT_DLLAZY_OR_NOW RTLD_NOW
13798 # else
13799 # ifdef DL_NOW
13800 # define LT_DLLAZY_OR_NOW DL_NOW
13801 # else
13802 # define LT_DLLAZY_OR_NOW 0
13803 # endif
13804 # endif
13805 # endif
13806 # endif
13807 #endif
13808
13809 /* When -fvisibility=hidden is used, assume the code has been annotated
13810 correspondingly for the symbols needed. */
13811 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13812 int fnord (void) __attribute__((visibility("default")));
13813 #endif
13814
13815 int fnord (void) { return 42; }
13816 int main (void)
13817 {
13818 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13819 int status = $lt_dlunknown;
13820
13821 if (self)
13822 {
13823 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13824 else
13825 {
13826 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13827 else puts (dlerror ());
13828 }
13829 /* dlclose (self); */
13830 }
13831 else
13832 puts (dlerror ());
13833
13834 return status;
13835 }
13836 _LT_EOF
13837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13838 (eval $ac_link) 2>&5
13839 ac_status=$?
13840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13842 (./conftest; exit; ) >&5 2>/dev/null
13843 lt_status=$?
13844 case x$lt_status in
13845 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13846 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13847 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13848 esac
13849 else :
13850 # compilation failed
13851 lt_cv_dlopen_self=no
13852 fi
13853 fi
13854 rm -fr conftest*
13855
13856 ;;
13857 esac
13858 fi
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13860 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13861
13862 if test yes = "$lt_cv_dlopen_self"; then
13863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13865 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13866 if test ${lt_cv_dlopen_self_static+y}
13867 then :
13868 printf %s "(cached) " >&6
13869 else case e in #(
13870 e) if test yes = "$cross_compiling"; then :
13871 lt_cv_dlopen_self_static=cross
13872 else
13873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13874 lt_status=$lt_dlunknown
13875 cat > conftest.$ac_ext <<_LT_EOF
13876 #line $LINENO "configure"
13877 #include "confdefs.h"
13878
13879 #if HAVE_DLFCN_H
13880 #include <dlfcn.h>
13881 #endif
13882
13883 #include <stdio.h>
13884
13885 #ifdef RTLD_GLOBAL
13886 # define LT_DLGLOBAL RTLD_GLOBAL
13887 #else
13888 # ifdef DL_GLOBAL
13889 # define LT_DLGLOBAL DL_GLOBAL
13890 # else
13891 # define LT_DLGLOBAL 0
13892 # endif
13893 #endif
13894
13895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13896 find out it does not work in some platform. */
13897 #ifndef LT_DLLAZY_OR_NOW
13898 # ifdef RTLD_LAZY
13899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13900 # else
13901 # ifdef DL_LAZY
13902 # define LT_DLLAZY_OR_NOW DL_LAZY
13903 # else
13904 # ifdef RTLD_NOW
13905 # define LT_DLLAZY_OR_NOW RTLD_NOW
13906 # else
13907 # ifdef DL_NOW
13908 # define LT_DLLAZY_OR_NOW DL_NOW
13909 # else
13910 # define LT_DLLAZY_OR_NOW 0
13911 # endif
13912 # endif
13913 # endif
13914 # endif
13915 #endif
13916
13917 /* When -fvisibility=hidden is used, assume the code has been annotated
13918 correspondingly for the symbols needed. */
13919 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13920 int fnord (void) __attribute__((visibility("default")));
13921 #endif
13922
13923 int fnord (void) { return 42; }
13924 int main (void)
13925 {
13926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13927 int status = $lt_dlunknown;
13928
13929 if (self)
13930 {
13931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13932 else
13933 {
13934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13935 else puts (dlerror ());
13936 }
13937 /* dlclose (self); */
13938 }
13939 else
13940 puts (dlerror ());
13941
13942 return status;
13943 }
13944 _LT_EOF
13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13946 (eval $ac_link) 2>&5
13947 ac_status=$?
13948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13950 (./conftest; exit; ) >&5 2>/dev/null
13951 lt_status=$?
13952 case x$lt_status in
13953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13955 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13956 esac
13957 else :
13958 # compilation failed
13959 lt_cv_dlopen_self_static=no
13960 fi
13961 fi
13962 rm -fr conftest*
13963
13964 ;;
13965 esac
13966 fi
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13968 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13969 fi
13970
13971 CPPFLAGS=$save_CPPFLAGS
13972 LDFLAGS=$save_LDFLAGS
13973 LIBS=$save_LIBS
13974 ;;
13975 esac
13976
13977 case $lt_cv_dlopen_self in
13978 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13979 *) enable_dlopen_self=unknown ;;
13980 esac
13981
13982 case $lt_cv_dlopen_self_static in
13983 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13984 *) enable_dlopen_self_static=unknown ;;
13985 esac
13986 fi
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004 striplib=
14005 old_striplib=
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14007 printf %s "checking whether stripping libraries is possible... " >&6; }
14008 if test -z "$STRIP"; then
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 printf "%s\n" "no" >&6; }
14011 else
14012 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14013 old_striplib="$STRIP --strip-debug"
14014 striplib="$STRIP --strip-unneeded"
14015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14016 printf "%s\n" "yes" >&6; }
14017 else
14018 case $host_os in
14019 darwin*)
14020 # FIXME - insert some real tests, host_os isn't really good enough
14021 striplib="$STRIP -x"
14022 old_striplib="$STRIP -S"
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14024 printf "%s\n" "yes" >&6; }
14025 ;;
14026 freebsd*)
14027 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14028 old_striplib="$STRIP --strip-debug"
14029 striplib="$STRIP --strip-unneeded"
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14031 printf "%s\n" "yes" >&6; }
14032 else
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 printf "%s\n" "no" >&6; }
14035 fi
14036 ;;
14037 *)
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 printf "%s\n" "no" >&6; }
14040 ;;
14041 esac
14042 fi
14043 fi
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056 # Report what library types will actually be built
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14058 printf %s "checking if libtool supports shared libraries... " >&6; }
14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14060 printf "%s\n" "$can_build_shared" >&6; }
14061
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14063 printf %s "checking whether to build shared libraries... " >&6; }
14064 test no = "$can_build_shared" && enable_shared=no
14065
14066 # On AIX, shared libraries and static libraries use the same namespace, and
14067 # are all built from PIC.
14068 case $host_os in
14069 aix3*)
14070 test yes = "$enable_shared" && enable_static=no
14071 if test -n "$RANLIB"; then
14072 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14073 postinstall_cmds='$RANLIB $lib'
14074 fi
14075 ;;
14076
14077 aix[4-9]*)
14078 if test ia64 != "$host_cpu"; then
14079 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14080 yes,aix,yes) ;; # shared object as lib.so file only
14081 yes,svr4,*) ;; # shared object as lib.so archive member only
14082 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14083 esac
14084 fi
14085 ;;
14086 esac
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14088 printf "%s\n" "$enable_shared" >&6; }
14089
14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14091 printf %s "checking whether to build static libraries... " >&6; }
14092 # Make sure either enable_shared or enable_static is yes.
14093 test yes = "$enable_shared" || enable_static=yes
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14095 printf "%s\n" "$enable_static" >&6; }
14096
14097
14098
14099
14100 fi
14101 ac_ext=c
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107 CC=$lt_save_CC
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123 ac_config_commands="$ac_config_commands libtool"
14124
14125
14126
14127
14128 # Only expand once:
14129
14130 (dlopen)
14131
14132 # We need static libraries for CUPS genppd program for now, for bug 865265
14133 # --rlk 20031223
14134 # Check whether --enable-static was given.
14135 if test ${enable_static+y}
14136 then :
14137 enableval=$enable_static; p=${PACKAGE-default}
14138 case $enableval in
14139 yes) enable_static=yes ;;
14140 no) enable_static=no ;;
14141 *)
14142 enable_static=no
14143 # Look at the argument we got. We use all the common list separators.
14144 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14145 for pkg in $enableval; do
14146 IFS=$lt_save_ifs
14147 if test "X$pkg" = "X$p"; then
14148 enable_static=yes
14149 fi
14150 done
14151 IFS=$lt_save_ifs
14152 ;;
14153 esac
14154 else case e in #(
14155 e) enable_static=yes ;;
14156 esac
14157 fi
14158
14159
14160
14161
14162
14163
14164 #AC_DISABLE_SHARED
14165
14166
14167 if test "$ac_cv_prog_gnu_ld" = "yes" ; then
14168
14169 printf "%s\n" "#define HAVE_GNU_LD /**/" >>confdefs.h
14170
14171 fi
14172
14173
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14175 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14176 # Check whether --enable-maintainer-mode was given.
14177 if test ${enable_maintainer_mode+y}
14178 then :
14179 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14180 else case e in #(
14181 e) USE_MAINTAINER_MODE=no ;;
14182 esac
14183 fi
14184
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14186 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
14187 if test $USE_MAINTAINER_MODE = yes; then
14188 MAINTAINER_MODE_TRUE=
14189 MAINTAINER_MODE_FALSE='#'
14190 else
14191 MAINTAINER_MODE_TRUE='#'
14192 MAINTAINER_MODE_FALSE=
14193 fi
14194
14195 MAINT=$MAINTAINER_MODE_TRUE
14196
14197
14198 if test x${USE_MAINTAINER_MODE} = xyes ; then
14199 MAINTAINER_MODE="true"
14200 BUILD_TEST="yes"
14201 BUILD_DOC="yes"
14202
14203 printf "%s\n" "#define HAVE_MAINTAINER_MODE /**/" >>confdefs.h
14204
14205 fi
14206
14207 if test x${host_os} = xlinux-gnu ; then
14208 OSTYPE="linux"
14209 elif test "`echo ${host_os} | sed 's/^\(linux\).*$/\1/'`" = "linux" ; then
14210 OSTYPE="linux"
14211 elif test "`echo ${host_os} | sed 's/^\(irix\).*$/\1/'`" = "irix" ; then
14212 OSTYPE="irix"
14213 else
14214 OSTYPE="${host_os}"
14215 fi
14216
14217 printf "%s\n" "#define OSTYPE \"${OSTYPE}\"" >>confdefs.h
14218
14219
14220
14221
14222 # Check whether --with-cups-config was given.
14223 if test ${with_cups_config+y}
14224 then :
14225 withval=$with_cups_config; with_cups_config="$withval"
14226 else case e in #(
14227 e) with_cups_config=system
14228 ;;
14229 esac
14230 fi
14231
14232 if test "x$with_cups_config" != "xsystem"
14233 then :
14234
14235 CUPS_CONFIG=$with_cups_config
14236
14237 else case e in #(
14238 e)
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}cups-config", so it can be a program name with args.
14241 set dummy ${ac_tool_prefix}cups-config; ac_word=$2
14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 printf %s "checking for $ac_word... " >&6; }
14244 if test ${ac_cv_path_CUPS_CONFIG+y}
14245 then :
14246 printf %s "(cached) " >&6
14247 else case e in #(
14248 e) case $CUPS_CONFIG in
14249 [\\/]* | ?:[\\/]*)
14250 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
14251 ;;
14252 *)
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 case $as_dir in #(((
14258 '') as_dir=./ ;;
14259 */) ;;
14260 *) as_dir=$as_dir/ ;;
14261 esac
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14264 ac_cv_path_CUPS_CONFIG="$as_dir$ac_word$ac_exec_ext"
14265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 ;;
14273 esac ;;
14274 esac
14275 fi
14276 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
14277 if test -n "$CUPS_CONFIG"; then
14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5
14279 printf "%s\n" "$CUPS_CONFIG" >&6; }
14280 else
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 printf "%s\n" "no" >&6; }
14283 fi
14284
14285
14286 fi
14287 if test -z "$ac_cv_path_CUPS_CONFIG"; then
14288 ac_pt_CUPS_CONFIG=$CUPS_CONFIG
14289 # Extract the first word of "cups-config", so it can be a program name with args.
14290 set dummy cups-config; ac_word=$2
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292 printf %s "checking for $ac_word... " >&6; }
14293 if test ${ac_cv_path_ac_pt_CUPS_CONFIG+y}
14294 then :
14295 printf %s "(cached) " >&6
14296 else case e in #(
14297 e) case $ac_pt_CUPS_CONFIG in
14298 [\\/]* | ?:[\\/]*)
14299 ac_cv_path_ac_pt_CUPS_CONFIG="$ac_pt_CUPS_CONFIG" # Let the user override the test with a path.
14300 ;;
14301 *)
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305 IFS=$as_save_IFS
14306 case $as_dir in #(((
14307 '') as_dir=./ ;;
14308 */) ;;
14309 *) as_dir=$as_dir/ ;;
14310 esac
14311 for ac_exec_ext in '' $ac_executable_extensions; do
14312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14313 ac_cv_path_ac_pt_CUPS_CONFIG="$as_dir$ac_word$ac_exec_ext"
14314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14315 break 2
14316 fi
14317 done
14318 done
14319 IFS=$as_save_IFS
14320
14321 ;;
14322 esac ;;
14323 esac
14324 fi
14325 ac_pt_CUPS_CONFIG=$ac_cv_path_ac_pt_CUPS_CONFIG
14326 if test -n "$ac_pt_CUPS_CONFIG"; then
14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CUPS_CONFIG" >&5
14328 printf "%s\n" "$ac_pt_CUPS_CONFIG" >&6; }
14329 else
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 printf "%s\n" "no" >&6; }
14332 fi
14333
14334 if test "x$ac_pt_CUPS_CONFIG" = x; then
14335 CUPS_CONFIG=""
14336 else
14337 case $cross_compiling:$ac_tool_warned in
14338 yes:)
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14341 ac_tool_warned=yes ;;
14342 esac
14343 CUPS_CONFIG=$ac_pt_CUPS_CONFIG
14344 fi
14345 else
14346 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
14347 fi
14348
14349 if test -z "$CUPS_CONFIG"
14350 then :
14351
14352 FOUND_CUPS_CONFIG=no
14353
14354 else case e in #(
14355 e)
14356 FOUND_CUPS_CONFIG=yes
14357 ;;
14358 esac
14359 fi
14360 ;;
14361 esac
14362 fi
14363
14364 missing_cups_error="
14365
14366 ******* ERROR ******
14367 You do not have the necessary software installed to build the CUPS driver.
14368 This is most likely not what you want, as the resulting installation will
14369 not be usable as part of a normal printing system. If you are certain
14370 that this is what you want, please run configure with --without-cups.
14371 Otherwise, please read the README and install the necessary development
14372 package, most likely named 'cups-devel', and re-run configure.
14373
14374 "
14375
14376 # create custom command-line --with option
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to whether to build CUPS driver" >&5
14378 printf %s "checking whether to whether to build CUPS driver... " >&6; }
14379
14380 # Check whether --with-cups was given.
14381 if test ${with_cups+y}
14382 then :
14383 withval=$with_cups; case "${withval}" in
14384
14385 yes)
14386 if test "$FOUND_CUPS_CONFIG" = "yes" ; then
14387 BUILD_CUPS="yes"
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14389 printf "%s\n" "yes" >&6; }
14390 cups_prefix="/usr"
14391 else
14392 as_fn_error $? "$missing_cups_error" "$LINENO" 5
14393 fi
14394 ;;
14395 no) BUILD_CUPS="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 printf "%s\n" "no" >&6; } ; cups_prefix="/usr" ;;
14397 *) if test -d ${withval} ; then
14398 BUILD_CUPS="yes"
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (using specified prefix)" >&5
14400 printf "%s\n" "yes (using specified prefix)" >&6; }
14401 cups_prefix="${withval}"
14402 else
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14404 printf "%s\n" "unknown" >&6; }
14405 as_fn_error $? "${withval}: no such directory for --with-cups" "$LINENO" 5
14406 fi ;;
14407
14408 esac
14409 else case e in #(
14410 e) if test -z "${BUILD_CUPS}" ; then
14411 BUILD_CUPS="(automatic)"
14412 fi
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS}" >&5
14414 printf "%s\n" "${BUILD_CUPS}" >&6; } ;
14415 if test "$FOUND_CUPS_CONFIG" = "yes" ; then
14416 cups_prefix="${prefix}"
14417 BUILD_CUPS="yes"
14418 else
14419 as_fn_error $? "$missing_cups_error" "$LINENO" 5
14420 fi
14421 ;;
14422 esac
14423 fi
14424
14425 if test -z "${BUILD_CUPS}" ; then
14426 BUILD_CUPS="(automatic)"
14427 fi
14428
14429
14430
14431
14432 mkdir_p="$MKDIR_P"
14433 case $mkdir_p in
14434 [\\/$]* | ?:[\\/]*) ;;
14435 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14436 esac
14437
14438
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14440 printf %s "checking whether NLS is requested... " >&6; }
14441 # Check whether --enable-nls was given.
14442 if test ${enable_nls+y}
14443 then :
14444 enableval=$enable_nls; USE_NLS=$enableval
14445 else case e in #(
14446 e) USE_NLS=yes ;;
14447 esac
14448 fi
14449
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14451 printf "%s\n" "$USE_NLS" >&6; }
14452
14453
14454
14455
14456
14457
14458 # Prepare PATH_SEPARATOR.
14459 # The user is always right.
14460 if test "${PATH_SEPARATOR+set}" != set; then
14461 echo "#! /bin/sh" >conf$$.sh
14462 echo "exit 0" >>conf$$.sh
14463 chmod +x conf$$.sh
14464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14465 PATH_SEPARATOR=';'
14466 else
14467 PATH_SEPARATOR=:
14468 fi
14469 rm -f conf$$.sh
14470 fi
14471
14472 # Find out how to test for executable files. Don't use a zero-byte file,
14473 # as systems may use methods other than mode bits to determine executability.
14474 cat >conf$$.file <<_ASEOF
14475 #! /bin/sh
14476 exit 0
14477 _ASEOF
14478 chmod +x conf$$.file
14479 if test -x conf$$.file >/dev/null 2>&1; then
14480 ac_executable_p="test -x"
14481 else
14482 ac_executable_p="test -f"
14483 fi
14484 rm -f conf$$.file
14485
14486 # Extract the first word of "msgfmt", so it can be a program name with args.
14487 set dummy msgfmt; ac_word=$2
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 printf %s "checking for $ac_word... " >&6; }
14490 if test ${ac_cv_path_MSGFMT+y}
14491 then :
14492 printf %s "(cached) " >&6
14493 else case e in #(
14494 e) case "$MSGFMT" in
14495 [\\/]* | ?:[\\/]*)
14496 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14497 ;;
14498 *)
14499 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14500 for ac_dir in $PATH; do
14501 IFS="$ac_save_IFS"
14502 test -z "$ac_dir" && ac_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14505 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14506 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14507 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14508 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14509 break 2
14510 fi
14511 fi
14512 done
14513 done
14514 IFS="$ac_save_IFS"
14515 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14516 ;;
14517 esac ;;
14518 esac
14519 fi
14520 MSGFMT="$ac_cv_path_MSGFMT"
14521 if test "$MSGFMT" != ":"; then
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14523 printf "%s\n" "$MSGFMT" >&6; }
14524 else
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 printf "%s\n" "no" >&6; }
14527 fi
14528
14529 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14530 set dummy gmsgfmt; ac_word=$2
14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14532 printf %s "checking for $ac_word... " >&6; }
14533 if test ${ac_cv_path_GMSGFMT+y}
14534 then :
14535 printf %s "(cached) " >&6
14536 else case e in #(
14537 e) case $GMSGFMT in
14538 [\\/]* | ?:[\\/]*)
14539 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14540 ;;
14541 *)
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545 IFS=$as_save_IFS
14546 case $as_dir in #(((
14547 '') as_dir=./ ;;
14548 */) ;;
14549 *) as_dir=$as_dir/ ;;
14550 esac
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14553 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14555 break 2
14556 fi
14557 done
14558 done
14559 IFS=$as_save_IFS
14560
14561 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14562 ;;
14563 esac ;;
14564 esac
14565 fi
14566 GMSGFMT=$ac_cv_path_GMSGFMT
14567 if test -n "$GMSGFMT"; then
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14569 printf "%s\n" "$GMSGFMT" >&6; }
14570 else
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 printf "%s\n" "no" >&6; }
14573 fi
14574
14575
14576
14577 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14578 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14579 *) MSGFMT_015=$MSGFMT ;;
14580 esac
14581
14582 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14583 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14584 *) GMSGFMT_015=$GMSGFMT ;;
14585 esac
14586
14587
14588
14589 # Prepare PATH_SEPARATOR.
14590 # The user is always right.
14591 if test "${PATH_SEPARATOR+set}" != set; then
14592 echo "#! /bin/sh" >conf$$.sh
14593 echo "exit 0" >>conf$$.sh
14594 chmod +x conf$$.sh
14595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14596 PATH_SEPARATOR=';'
14597 else
14598 PATH_SEPARATOR=:
14599 fi
14600 rm -f conf$$.sh
14601 fi
14602
14603 # Find out how to test for executable files. Don't use a zero-byte file,
14604 # as systems may use methods other than mode bits to determine executability.
14605 cat >conf$$.file <<_ASEOF
14606 #! /bin/sh
14607 exit 0
14608 _ASEOF
14609 chmod +x conf$$.file
14610 if test -x conf$$.file >/dev/null 2>&1; then
14611 ac_executable_p="test -x"
14612 else
14613 ac_executable_p="test -f"
14614 fi
14615 rm -f conf$$.file
14616
14617 # Extract the first word of "xgettext", so it can be a program name with args.
14618 set dummy xgettext; ac_word=$2
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14620 printf %s "checking for $ac_word... " >&6; }
14621 if test ${ac_cv_path_XGETTEXT+y}
14622 then :
14623 printf %s "(cached) " >&6
14624 else case e in #(
14625 e) case "$XGETTEXT" in
14626 [\\/]* | ?:[\\/]*)
14627 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14628 ;;
14629 *)
14630 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14631 for ac_dir in $PATH; do
14632 IFS="$ac_save_IFS"
14633 test -z "$ac_dir" && ac_dir=.
14634 for ac_exec_ext in '' $ac_executable_extensions; do
14635 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14636 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14637 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14638 (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
14639 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14640 break 2
14641 fi
14642 fi
14643 done
14644 done
14645 IFS="$ac_save_IFS"
14646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14647 ;;
14648 esac ;;
14649 esac
14650 fi
14651 XGETTEXT="$ac_cv_path_XGETTEXT"
14652 if test "$XGETTEXT" != ":"; then
14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14654 printf "%s\n" "$XGETTEXT" >&6; }
14655 else
14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 printf "%s\n" "no" >&6; }
14658 fi
14659
14660 rm -f messages.po
14661
14662 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14663 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14664 *) XGETTEXT_015=$XGETTEXT ;;
14665 esac
14666
14667
14668
14669 # Prepare PATH_SEPARATOR.
14670 # The user is always right.
14671 if test "${PATH_SEPARATOR+set}" != set; then
14672 echo "#! /bin/sh" >conf$$.sh
14673 echo "exit 0" >>conf$$.sh
14674 chmod +x conf$$.sh
14675 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14676 PATH_SEPARATOR=';'
14677 else
14678 PATH_SEPARATOR=:
14679 fi
14680 rm -f conf$$.sh
14681 fi
14682
14683 # Find out how to test for executable files. Don't use a zero-byte file,
14684 # as systems may use methods other than mode bits to determine executability.
14685 cat >conf$$.file <<_ASEOF
14686 #! /bin/sh
14687 exit 0
14688 _ASEOF
14689 chmod +x conf$$.file
14690 if test -x conf$$.file >/dev/null 2>&1; then
14691 ac_executable_p="test -x"
14692 else
14693 ac_executable_p="test -f"
14694 fi
14695 rm -f conf$$.file
14696
14697 # Extract the first word of "msgmerge", so it can be a program name with args.
14698 set dummy msgmerge; ac_word=$2
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 printf %s "checking for $ac_word... " >&6; }
14701 if test ${ac_cv_path_MSGMERGE+y}
14702 then :
14703 printf %s "(cached) " >&6
14704 else case e in #(
14705 e) case "$MSGMERGE" in
14706 [\\/]* | ?:[\\/]*)
14707 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14708 ;;
14709 *)
14710 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14711 for ac_dir in $PATH; do
14712 IFS="$ac_save_IFS"
14713 test -z "$ac_dir" && ac_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14716 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14717 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14718 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14719 break 2
14720 fi
14721 fi
14722 done
14723 done
14724 IFS="$ac_save_IFS"
14725 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14726 ;;
14727 esac ;;
14728 esac
14729 fi
14730 MSGMERGE="$ac_cv_path_MSGMERGE"
14731 if test "$MSGMERGE" != ":"; then
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14733 printf "%s\n" "$MSGMERGE" >&6; }
14734 else
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 printf "%s\n" "no" >&6; }
14737 fi
14738
14739
14740 test -n "$localedir" || localedir='${datadir}/locale'
14741
14742
14743 ac_config_commands="$ac_config_commands po-directories"
14744
14745
14746
14747 if test "X$prefix" = "XNONE"; then
14748 acl_final_prefix="$ac_default_prefix"
14749 else
14750 acl_final_prefix="$prefix"
14751 fi
14752 if test "X$exec_prefix" = "XNONE"; then
14753 acl_final_exec_prefix='${prefix}'
14754 else
14755 acl_final_exec_prefix="$exec_prefix"
14756 fi
14757 acl_save_prefix="$prefix"
14758 prefix="$acl_final_prefix"
14759 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14760 prefix="$acl_save_prefix"
14761
14762
14763 # Check whether --with-gnu-ld was given.
14764 if test ${with_gnu_ld+y}
14765 then :
14766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14767 else case e in #(
14768 e) with_gnu_ld=no ;;
14769 esac
14770 fi
14771
14772 # Prepare PATH_SEPARATOR.
14773 # The user is always right.
14774 if test "${PATH_SEPARATOR+set}" != set; then
14775 echo "#! /bin/sh" >conf$$.sh
14776 echo "exit 0" >>conf$$.sh
14777 chmod +x conf$$.sh
14778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14779 PATH_SEPARATOR=';'
14780 else
14781 PATH_SEPARATOR=:
14782 fi
14783 rm -f conf$$.sh
14784 fi
14785 ac_prog=ld
14786 if test "$GCC" = yes; then
14787 # Check if gcc -print-prog-name=ld gives a path.
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14789 printf %s "checking for ld used by GCC... " >&6; }
14790 case $host in
14791 *-*-mingw*)
14792 # gcc leaves a trailing carriage return which upsets mingw
14793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14794 *)
14795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14796 esac
14797 case $ac_prog in
14798 # Accept absolute paths.
14799 [\\/]* | [A-Za-z]:[\\/]*)
14800 re_direlt='/[^/][^/]*/\.\./'
14801 # Canonicalize the path of ld
14802 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14804 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14805 done
14806 test -z "$LD" && LD="$ac_prog"
14807 ;;
14808 "")
14809 # If it fails, then pretend we aren't using GCC.
14810 ac_prog=ld
14811 ;;
14812 *)
14813 # If it is relative, then search for the first ld in PATH.
14814 with_gnu_ld=unknown
14815 ;;
14816 esac
14817 elif test "$with_gnu_ld" = yes; then
14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14819 printf %s "checking for GNU ld... " >&6; }
14820 else
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14822 printf %s "checking for non-GNU ld... " >&6; }
14823 fi
14824 if test ${acl_cv_path_LD+y}
14825 then :
14826 printf %s "(cached) " >&6
14827 else case e in #(
14828 e) if test -z "$LD"; then
14829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14830 for ac_dir in $PATH; do
14831 test -z "$ac_dir" && ac_dir=.
14832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14833 acl_cv_path_LD="$ac_dir/$ac_prog"
14834 # Check to see if the program is GNU ld. I'd rather use --version,
14835 # but apparently some GNU ld's only accept -v.
14836 # Break only if it was the GNU/non-GNU ld that we prefer.
14837 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14838 *GNU* | *'with BFD'*)
14839 test "$with_gnu_ld" != no && break ;;
14840 *)
14841 test "$with_gnu_ld" != yes && break ;;
14842 esac
14843 fi
14844 done
14845 IFS="$ac_save_ifs"
14846 else
14847 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14848 fi ;;
14849 esac
14850 fi
14851
14852 LD="$acl_cv_path_LD"
14853 if test -n "$LD"; then
14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14855 printf "%s\n" "$LD" >&6; }
14856 else
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858 printf "%s\n" "no" >&6; }
14859 fi
14860 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14862 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14863 if test ${acl_cv_prog_gnu_ld+y}
14864 then :
14865 printf %s "(cached) " >&6
14866 else case e in #(
14867 e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14868 case `$LD -v 2>&1 </dev/null` in
14869 *GNU* | *'with BFD'*)
14870 acl_cv_prog_gnu_ld=yes ;;
14871 *)
14872 acl_cv_prog_gnu_ld=no ;;
14873 esac ;;
14874 esac
14875 fi
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14877 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14878 with_gnu_ld=$acl_cv_prog_gnu_ld
14879
14880
14881
14882
14883
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14885 printf %s "checking for shared library run path origin... " >&6; }
14886 if test ${acl_cv_rpath+y}
14887 then :
14888 printf %s "(cached) " >&6
14889 else case e in #(
14890 e)
14891 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14892 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14893 . ./conftest.sh
14894 rm -f ./conftest.sh
14895 acl_cv_rpath=done
14896 ;;
14897 esac
14898 fi
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14900 printf "%s\n" "$acl_cv_rpath" >&6; }
14901 wl="$acl_cv_wl"
14902 libext="$acl_cv_libext"
14903 shlibext="$acl_cv_shlibext"
14904 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14905 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14906 hardcode_direct="$acl_cv_hardcode_direct"
14907 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14908 # Check whether --enable-rpath was given.
14909 if test ${enable_rpath+y}
14910 then :
14911 enableval=$enable_rpath; :
14912 else case e in #(
14913 e) enable_rpath=yes ;;
14914 esac
14915 fi
14916
14917
14918
14919 acl_libdirstem=lib
14920 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14921 if test -n "$searchpath"; then
14922 acl_save_IFS="${IFS= }"; IFS=":"
14923 for searchdir in $searchpath; do
14924 if test -d "$searchdir"; then
14925 case "$searchdir" in
14926 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14927 *) searchdir=`cd "$searchdir" && pwd`
14928 case "$searchdir" in
14929 */lib64 ) acl_libdirstem=lib64 ;;
14930 esac ;;
14931 esac
14932 fi
14933 done
14934 IFS="$acl_save_IFS"
14935 fi
14936
14937
14938
14939
14940
14941
14942
14943
14944 use_additional=yes
14945
14946 acl_save_prefix="$prefix"
14947 prefix="$acl_final_prefix"
14948 acl_save_exec_prefix="$exec_prefix"
14949 exec_prefix="$acl_final_exec_prefix"
14950
14951 eval additional_includedir=\"$includedir\"
14952 eval additional_libdir=\"$libdir\"
14953
14954 exec_prefix="$acl_save_exec_prefix"
14955 prefix="$acl_save_prefix"
14956
14957
14958 # Check whether --with-libiconv-prefix was given.
14959 if test ${with_libiconv_prefix+y}
14960 then :
14961 withval=$with_libiconv_prefix;
14962 if test "X$withval" = "Xno"; then
14963 use_additional=no
14964 else
14965 if test "X$withval" = "X"; then
14966
14967 acl_save_prefix="$prefix"
14968 prefix="$acl_final_prefix"
14969 acl_save_exec_prefix="$exec_prefix"
14970 exec_prefix="$acl_final_exec_prefix"
14971
14972 eval additional_includedir=\"$includedir\"
14973 eval additional_libdir=\"$libdir\"
14974
14975 exec_prefix="$acl_save_exec_prefix"
14976 prefix="$acl_save_prefix"
14977
14978 else
14979 additional_includedir="$withval/include"
14980 additional_libdir="$withval/$acl_libdirstem"
14981 fi
14982 fi
14983
14984 fi
14985
14986 LIBICONV=
14987 LTLIBICONV=
14988 INCICONV=
14989 rpathdirs=
14990 ltrpathdirs=
14991 names_already_handled=
14992 names_next_round='iconv '
14993 while test -n "$names_next_round"; do
14994 names_this_round="$names_next_round"
14995 names_next_round=
14996 for name in $names_this_round; do
14997 already_handled=
14998 for n in $names_already_handled; do
14999 if test "$n" = "$name"; then
15000 already_handled=yes
15001 break
15002 fi
15003 done
15004 if test -z "$already_handled"; then
15005 names_already_handled="$names_already_handled $name"
15006 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15007 eval value=\"\$HAVE_LIB$uppername\"
15008 if test -n "$value"; then
15009 if test "$value" = yes; then
15010 eval value=\"\$LIB$uppername\"
15011 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15012 eval value=\"\$LTLIB$uppername\"
15013 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15014 else
15015 :
15016 fi
15017 else
15018 found_dir=
15019 found_la=
15020 found_so=
15021 found_a=
15022 if test $use_additional = yes; then
15023 if test -n "$shlibext" \
15024 && { test -f "$additional_libdir/lib$name.$shlibext" \
15025 || { test "$shlibext" = dll \
15026 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15027 found_dir="$additional_libdir"
15028 if test -f "$additional_libdir/lib$name.$shlibext"; then
15029 found_so="$additional_libdir/lib$name.$shlibext"
15030 else
15031 found_so="$additional_libdir/lib$name.dll.a"
15032 fi
15033 if test -f "$additional_libdir/lib$name.la"; then
15034 found_la="$additional_libdir/lib$name.la"
15035 fi
15036 else
15037 if test -f "$additional_libdir/lib$name.$libext"; then
15038 found_dir="$additional_libdir"
15039 found_a="$additional_libdir/lib$name.$libext"
15040 if test -f "$additional_libdir/lib$name.la"; then
15041 found_la="$additional_libdir/lib$name.la"
15042 fi
15043 fi
15044 fi
15045 fi
15046 if test "X$found_dir" = "X"; then
15047 for x in $LDFLAGS $LTLIBICONV; do
15048
15049 acl_save_prefix="$prefix"
15050 prefix="$acl_final_prefix"
15051 acl_save_exec_prefix="$exec_prefix"
15052 exec_prefix="$acl_final_exec_prefix"
15053 eval x=\"$x\"
15054 exec_prefix="$acl_save_exec_prefix"
15055 prefix="$acl_save_prefix"
15056
15057 case "$x" in
15058 -L*)
15059 dir=`echo "X$x" | sed -e 's/^X-L//'`
15060 if test -n "$shlibext" \
15061 && { test -f "$dir/lib$name.$shlibext" \
15062 || { test "$shlibext" = dll \
15063 && test -f "$dir/lib$name.dll.a"; }; }; then
15064 found_dir="$dir"
15065 if test -f "$dir/lib$name.$shlibext"; then
15066 found_so="$dir/lib$name.$shlibext"
15067 else
15068 found_so="$dir/lib$name.dll.a"
15069 fi
15070 if test -f "$dir/lib$name.la"; then
15071 found_la="$dir/lib$name.la"
15072 fi
15073 else
15074 if test -f "$dir/lib$name.$libext"; then
15075 found_dir="$dir"
15076 found_a="$dir/lib$name.$libext"
15077 if test -f "$dir/lib$name.la"; then
15078 found_la="$dir/lib$name.la"
15079 fi
15080 fi
15081 fi
15082 ;;
15083 esac
15084 if test "X$found_dir" != "X"; then
15085 break
15086 fi
15087 done
15088 fi
15089 if test "X$found_dir" != "X"; then
15090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15091 if test "X$found_so" != "X"; then
15092 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15094 else
15095 haveit=
15096 for x in $ltrpathdirs; do
15097 if test "X$x" = "X$found_dir"; then
15098 haveit=yes
15099 break
15100 fi
15101 done
15102 if test -z "$haveit"; then
15103 ltrpathdirs="$ltrpathdirs $found_dir"
15104 fi
15105 if test "$hardcode_direct" = yes; then
15106 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15107 else
15108 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15109 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15110 haveit=
15111 for x in $rpathdirs; do
15112 if test "X$x" = "X$found_dir"; then
15113 haveit=yes
15114 break
15115 fi
15116 done
15117 if test -z "$haveit"; then
15118 rpathdirs="$rpathdirs $found_dir"
15119 fi
15120 else
15121 haveit=
15122 for x in $LDFLAGS $LIBICONV; do
15123
15124 acl_save_prefix="$prefix"
15125 prefix="$acl_final_prefix"
15126 acl_save_exec_prefix="$exec_prefix"
15127 exec_prefix="$acl_final_exec_prefix"
15128 eval x=\"$x\"
15129 exec_prefix="$acl_save_exec_prefix"
15130 prefix="$acl_save_prefix"
15131
15132 if test "X$x" = "X-L$found_dir"; then
15133 haveit=yes
15134 break
15135 fi
15136 done
15137 if test -z "$haveit"; then
15138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15139 fi
15140 if test "$hardcode_minus_L" != no; then
15141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15142 else
15143 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15144 fi
15145 fi
15146 fi
15147 fi
15148 else
15149 if test "X$found_a" != "X"; then
15150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15151 else
15152 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15153 fi
15154 fi
15155 additional_includedir=
15156 case "$found_dir" in
15157 */$acl_libdirstem | */$acl_libdirstem/)
15158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15159 additional_includedir="$basedir/include"
15160 ;;
15161 esac
15162 if test "X$additional_includedir" != "X"; then
15163 if test "X$additional_includedir" != "X/usr/include"; then
15164 haveit=
15165 if test "X$additional_includedir" = "X/usr/local/include"; then
15166 if test -n "$GCC"; then
15167 case $host_os in
15168 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15169 esac
15170 fi
15171 fi
15172 if test -z "$haveit"; then
15173 for x in $CPPFLAGS $INCICONV; do
15174
15175 acl_save_prefix="$prefix"
15176 prefix="$acl_final_prefix"
15177 acl_save_exec_prefix="$exec_prefix"
15178 exec_prefix="$acl_final_exec_prefix"
15179 eval x=\"$x\"
15180 exec_prefix="$acl_save_exec_prefix"
15181 prefix="$acl_save_prefix"
15182
15183 if test "X$x" = "X-I$additional_includedir"; then
15184 haveit=yes
15185 break
15186 fi
15187 done
15188 if test -z "$haveit"; then
15189 if test -d "$additional_includedir"; then
15190 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15191 fi
15192 fi
15193 fi
15194 fi
15195 fi
15196 if test -n "$found_la"; then
15197 save_libdir="$libdir"
15198 case "$found_la" in
15199 */* | *\\*) . "$found_la" ;;
15200 *) . "./$found_la" ;;
15201 esac
15202 libdir="$save_libdir"
15203 for dep in $dependency_libs; do
15204 case "$dep" in
15205 -L*)
15206 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15207 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15208 haveit=
15209 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15210 if test -n "$GCC"; then
15211 case $host_os in
15212 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15213 esac
15214 fi
15215 fi
15216 if test -z "$haveit"; then
15217 haveit=
15218 for x in $LDFLAGS $LIBICONV; do
15219
15220 acl_save_prefix="$prefix"
15221 prefix="$acl_final_prefix"
15222 acl_save_exec_prefix="$exec_prefix"
15223 exec_prefix="$acl_final_exec_prefix"
15224 eval x=\"$x\"
15225 exec_prefix="$acl_save_exec_prefix"
15226 prefix="$acl_save_prefix"
15227
15228 if test "X$x" = "X-L$additional_libdir"; then
15229 haveit=yes
15230 break
15231 fi
15232 done
15233 if test -z "$haveit"; then
15234 if test -d "$additional_libdir"; then
15235 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15236 fi
15237 fi
15238 haveit=
15239 for x in $LDFLAGS $LTLIBICONV; do
15240
15241 acl_save_prefix="$prefix"
15242 prefix="$acl_final_prefix"
15243 acl_save_exec_prefix="$exec_prefix"
15244 exec_prefix="$acl_final_exec_prefix"
15245 eval x=\"$x\"
15246 exec_prefix="$acl_save_exec_prefix"
15247 prefix="$acl_save_prefix"
15248
15249 if test "X$x" = "X-L$additional_libdir"; then
15250 haveit=yes
15251 break
15252 fi
15253 done
15254 if test -z "$haveit"; then
15255 if test -d "$additional_libdir"; then
15256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15257 fi
15258 fi
15259 fi
15260 fi
15261 ;;
15262 -R*)
15263 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15264 if test "$enable_rpath" != no; then
15265 haveit=
15266 for x in $rpathdirs; do
15267 if test "X$x" = "X$dir"; then
15268 haveit=yes
15269 break
15270 fi
15271 done
15272 if test -z "$haveit"; then
15273 rpathdirs="$rpathdirs $dir"
15274 fi
15275 haveit=
15276 for x in $ltrpathdirs; do
15277 if test "X$x" = "X$dir"; then
15278 haveit=yes
15279 break
15280 fi
15281 done
15282 if test -z "$haveit"; then
15283 ltrpathdirs="$ltrpathdirs $dir"
15284 fi
15285 fi
15286 ;;
15287 -l*)
15288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15289 ;;
15290 *.la)
15291 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15292 ;;
15293 *)
15294 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15295 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15296 ;;
15297 esac
15298 done
15299 fi
15300 else
15301 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15303 fi
15304 fi
15305 fi
15306 done
15307 done
15308 if test "X$rpathdirs" != "X"; then
15309 if test -n "$hardcode_libdir_separator"; then
15310 alldirs=
15311 for found_dir in $rpathdirs; do
15312 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15313 done
15314 acl_save_libdir="$libdir"
15315 libdir="$alldirs"
15316 eval flag=\"$hardcode_libdir_flag_spec\"
15317 libdir="$acl_save_libdir"
15318 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15319 else
15320 for found_dir in $rpathdirs; do
15321 acl_save_libdir="$libdir"
15322 libdir="$found_dir"
15323 eval flag=\"$hardcode_libdir_flag_spec\"
15324 libdir="$acl_save_libdir"
15325 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15326 done
15327 fi
15328 fi
15329 if test "X$ltrpathdirs" != "X"; then
15330 for found_dir in $ltrpathdirs; do
15331 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15332 done
15333 fi
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15360 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15361 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15362 then :
15363 printf %s "(cached) " >&6
15364 else case e in #(
15365 e) gt_save_LIBS="$LIBS"
15366 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 #include <CoreFoundation/CFPreferences.h>
15370 int
15371 main (void)
15372 {
15373 CFPreferencesCopyAppValue(NULL, NULL)
15374 ;
15375 return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_c_try_link "$LINENO"
15379 then :
15380 gt_cv_func_CFPreferencesCopyAppValue=yes
15381 else case e in #(
15382 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
15383 esac
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS="$gt_save_LIBS" ;;
15388 esac
15389 fi
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15391 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15392 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15393
15394 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15395
15396 fi
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15398 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15399 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15400 then :
15401 printf %s "(cached) " >&6
15402 else case e in #(
15403 e) gt_save_LIBS="$LIBS"
15404 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 #include <CoreFoundation/CFLocale.h>
15408 int
15409 main (void)
15410 {
15411 CFLocaleCopyCurrent();
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_link "$LINENO"
15417 then :
15418 gt_cv_func_CFLocaleCopyCurrent=yes
15419 else case e in #(
15420 e) gt_cv_func_CFLocaleCopyCurrent=no ;;
15421 esac
15422 fi
15423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15424 conftest$ac_exeext conftest.$ac_ext
15425 LIBS="$gt_save_LIBS" ;;
15426 esac
15427 fi
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15429 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15430 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15431
15432 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15433
15434 fi
15435 INTL_MACOSX_LIBS=
15436 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15437 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15438 fi
15439
15440
15441
15442
15443
15444
15445 LIBINTL=
15446 LTLIBINTL=
15447 POSUB=
15448
15449 case " $gt_needs " in
15450 *" need-formatstring-macros "*) gt_api_version=3 ;;
15451 *" need-ngettext "*) gt_api_version=2 ;;
15452 *) gt_api_version=1 ;;
15453 esac
15454 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15455 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15456
15457 if test "$USE_NLS" = "yes"; then
15458 gt_use_preinstalled_gnugettext=no
15459
15460
15461 if test $gt_api_version -ge 3; then
15462 gt_revision_test_code='[
15463 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15464 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15465 #endif
15466 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15467 ]'
15468 else
15469 gt_revision_test_code=
15470 fi
15471 if test $gt_api_version -ge 2; then
15472 gt_expression_test_code=' + * ngettext ("", "", 0)'
15473 else
15474 gt_expression_test_code=
15475 fi
15476
15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15478 printf %s "checking for GNU gettext in libc... " >&6; }
15479 if eval test \${$gt_func_gnugettext_libc+y}
15480 then :
15481 printf %s "(cached) " >&6
15482 else case e in #(
15483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485 #include <libintl.h>
15486 $gt_revision_test_code
15487 extern int _nl_msg_cat_cntr;
15488 extern int *_nl_domain_bindings;
15489 int
15490 main (void)
15491 {
15492 bindtextdomain ("", "");
15493 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15494 ;
15495 return 0;
15496 }
15497 _ACEOF
15498 if ac_fn_c_try_link "$LINENO"
15499 then :
15500 eval "$gt_func_gnugettext_libc=yes"
15501 else case e in #(
15502 e) eval "$gt_func_gnugettext_libc=no" ;;
15503 esac
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15506 conftest$ac_exeext conftest.$ac_ext ;;
15507 esac
15508 fi
15509 eval ac_res=\$$gt_func_gnugettext_libc
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15511 printf "%s\n" "$ac_res" >&6; }
15512
15513 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15514
15515
15516
15517
15518
15519 am_save_CPPFLAGS="$CPPFLAGS"
15520
15521 for element in $INCICONV; do
15522 haveit=
15523 for x in $CPPFLAGS; do
15524
15525 acl_save_prefix="$prefix"
15526 prefix="$acl_final_prefix"
15527 acl_save_exec_prefix="$exec_prefix"
15528 exec_prefix="$acl_final_exec_prefix"
15529 eval x=\"$x\"
15530 exec_prefix="$acl_save_exec_prefix"
15531 prefix="$acl_save_prefix"
15532
15533 if test "X$x" = "X$element"; then
15534 haveit=yes
15535 break
15536 fi
15537 done
15538 if test -z "$haveit"; then
15539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15540 fi
15541 done
15542
15543
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15545 printf %s "checking for iconv... " >&6; }
15546 if test ${am_cv_func_iconv+y}
15547 then :
15548 printf %s "(cached) " >&6
15549 else case e in #(
15550 e)
15551 am_cv_func_iconv="no, consider installing GNU libiconv"
15552 am_cv_lib_iconv=no
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <stdlib.h>
15556 #include <iconv.h>
15557 int
15558 main (void)
15559 {
15560 iconv_t cd = iconv_open("","");
15561 iconv(cd,NULL,NULL,NULL,NULL);
15562 iconv_close(cd);
15563 ;
15564 return 0;
15565 }
15566 _ACEOF
15567 if ac_fn_c_try_link "$LINENO"
15568 then :
15569 am_cv_func_iconv=yes
15570 fi
15571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15572 conftest$ac_exeext conftest.$ac_ext
15573 if test "$am_cv_func_iconv" != yes; then
15574 am_save_LIBS="$LIBS"
15575 LIBS="$LIBS $LIBICONV"
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 #include <stdlib.h>
15579 #include <iconv.h>
15580 int
15581 main (void)
15582 {
15583 iconv_t cd = iconv_open("","");
15584 iconv(cd,NULL,NULL,NULL,NULL);
15585 iconv_close(cd);
15586 ;
15587 return 0;
15588 }
15589 _ACEOF
15590 if ac_fn_c_try_link "$LINENO"
15591 then :
15592 am_cv_lib_iconv=yes
15593 am_cv_func_iconv=yes
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15596 conftest$ac_exeext conftest.$ac_ext
15597 LIBS="$am_save_LIBS"
15598 fi
15599 ;;
15600 esac
15601 fi
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15603 printf "%s\n" "$am_cv_func_iconv" >&6; }
15604 if test "$am_cv_func_iconv" = yes; then
15605
15606 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15607
15608 fi
15609 if test "$am_cv_lib_iconv" = yes; then
15610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15611 printf %s "checking how to link with libiconv... " >&6; }
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15613 printf "%s\n" "$LIBICONV" >&6; }
15614 else
15615 CPPFLAGS="$am_save_CPPFLAGS"
15616 LIBICONV=
15617 LTLIBICONV=
15618 fi
15619
15620
15621
15622
15623
15624
15625
15626 use_additional=yes
15627
15628 acl_save_prefix="$prefix"
15629 prefix="$acl_final_prefix"
15630 acl_save_exec_prefix="$exec_prefix"
15631 exec_prefix="$acl_final_exec_prefix"
15632
15633 eval additional_includedir=\"$includedir\"
15634 eval additional_libdir=\"$libdir\"
15635
15636 exec_prefix="$acl_save_exec_prefix"
15637 prefix="$acl_save_prefix"
15638
15639
15640 # Check whether --with-libintl-prefix was given.
15641 if test ${with_libintl_prefix+y}
15642 then :
15643 withval=$with_libintl_prefix;
15644 if test "X$withval" = "Xno"; then
15645 use_additional=no
15646 else
15647 if test "X$withval" = "X"; then
15648
15649 acl_save_prefix="$prefix"
15650 prefix="$acl_final_prefix"
15651 acl_save_exec_prefix="$exec_prefix"
15652 exec_prefix="$acl_final_exec_prefix"
15653
15654 eval additional_includedir=\"$includedir\"
15655 eval additional_libdir=\"$libdir\"
15656
15657 exec_prefix="$acl_save_exec_prefix"
15658 prefix="$acl_save_prefix"
15659
15660 else
15661 additional_includedir="$withval/include"
15662 additional_libdir="$withval/$acl_libdirstem"
15663 fi
15664 fi
15665
15666 fi
15667
15668 LIBINTL=
15669 LTLIBINTL=
15670 INCINTL=
15671 rpathdirs=
15672 ltrpathdirs=
15673 names_already_handled=
15674 names_next_round='intl '
15675 while test -n "$names_next_round"; do
15676 names_this_round="$names_next_round"
15677 names_next_round=
15678 for name in $names_this_round; do
15679 already_handled=
15680 for n in $names_already_handled; do
15681 if test "$n" = "$name"; then
15682 already_handled=yes
15683 break
15684 fi
15685 done
15686 if test -z "$already_handled"; then
15687 names_already_handled="$names_already_handled $name"
15688 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15689 eval value=\"\$HAVE_LIB$uppername\"
15690 if test -n "$value"; then
15691 if test "$value" = yes; then
15692 eval value=\"\$LIB$uppername\"
15693 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15694 eval value=\"\$LTLIB$uppername\"
15695 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15696 else
15697 :
15698 fi
15699 else
15700 found_dir=
15701 found_la=
15702 found_so=
15703 found_a=
15704 if test $use_additional = yes; then
15705 if test -n "$shlibext" \
15706 && { test -f "$additional_libdir/lib$name.$shlibext" \
15707 || { test "$shlibext" = dll \
15708 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15709 found_dir="$additional_libdir"
15710 if test -f "$additional_libdir/lib$name.$shlibext"; then
15711 found_so="$additional_libdir/lib$name.$shlibext"
15712 else
15713 found_so="$additional_libdir/lib$name.dll.a"
15714 fi
15715 if test -f "$additional_libdir/lib$name.la"; then
15716 found_la="$additional_libdir/lib$name.la"
15717 fi
15718 else
15719 if test -f "$additional_libdir/lib$name.$libext"; then
15720 found_dir="$additional_libdir"
15721 found_a="$additional_libdir/lib$name.$libext"
15722 if test -f "$additional_libdir/lib$name.la"; then
15723 found_la="$additional_libdir/lib$name.la"
15724 fi
15725 fi
15726 fi
15727 fi
15728 if test "X$found_dir" = "X"; then
15729 for x in $LDFLAGS $LTLIBINTL; do
15730
15731 acl_save_prefix="$prefix"
15732 prefix="$acl_final_prefix"
15733 acl_save_exec_prefix="$exec_prefix"
15734 exec_prefix="$acl_final_exec_prefix"
15735 eval x=\"$x\"
15736 exec_prefix="$acl_save_exec_prefix"
15737 prefix="$acl_save_prefix"
15738
15739 case "$x" in
15740 -L*)
15741 dir=`echo "X$x" | sed -e 's/^X-L//'`
15742 if test -n "$shlibext" \
15743 && { test -f "$dir/lib$name.$shlibext" \
15744 || { test "$shlibext" = dll \
15745 && test -f "$dir/lib$name.dll.a"; }; }; then
15746 found_dir="$dir"
15747 if test -f "$dir/lib$name.$shlibext"; then
15748 found_so="$dir/lib$name.$shlibext"
15749 else
15750 found_so="$dir/lib$name.dll.a"
15751 fi
15752 if test -f "$dir/lib$name.la"; then
15753 found_la="$dir/lib$name.la"
15754 fi
15755 else
15756 if test -f "$dir/lib$name.$libext"; then
15757 found_dir="$dir"
15758 found_a="$dir/lib$name.$libext"
15759 if test -f "$dir/lib$name.la"; then
15760 found_la="$dir/lib$name.la"
15761 fi
15762 fi
15763 fi
15764 ;;
15765 esac
15766 if test "X$found_dir" != "X"; then
15767 break
15768 fi
15769 done
15770 fi
15771 if test "X$found_dir" != "X"; then
15772 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15773 if test "X$found_so" != "X"; then
15774 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15775 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15776 else
15777 haveit=
15778 for x in $ltrpathdirs; do
15779 if test "X$x" = "X$found_dir"; then
15780 haveit=yes
15781 break
15782 fi
15783 done
15784 if test -z "$haveit"; then
15785 ltrpathdirs="$ltrpathdirs $found_dir"
15786 fi
15787 if test "$hardcode_direct" = yes; then
15788 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15789 else
15790 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15791 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15792 haveit=
15793 for x in $rpathdirs; do
15794 if test "X$x" = "X$found_dir"; then
15795 haveit=yes
15796 break
15797 fi
15798 done
15799 if test -z "$haveit"; then
15800 rpathdirs="$rpathdirs $found_dir"
15801 fi
15802 else
15803 haveit=
15804 for x in $LDFLAGS $LIBINTL; do
15805
15806 acl_save_prefix="$prefix"
15807 prefix="$acl_final_prefix"
15808 acl_save_exec_prefix="$exec_prefix"
15809 exec_prefix="$acl_final_exec_prefix"
15810 eval x=\"$x\"
15811 exec_prefix="$acl_save_exec_prefix"
15812 prefix="$acl_save_prefix"
15813
15814 if test "X$x" = "X-L$found_dir"; then
15815 haveit=yes
15816 break
15817 fi
15818 done
15819 if test -z "$haveit"; then
15820 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15821 fi
15822 if test "$hardcode_minus_L" != no; then
15823 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15824 else
15825 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15826 fi
15827 fi
15828 fi
15829 fi
15830 else
15831 if test "X$found_a" != "X"; then
15832 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15833 else
15834 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15835 fi
15836 fi
15837 additional_includedir=
15838 case "$found_dir" in
15839 */$acl_libdirstem | */$acl_libdirstem/)
15840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15841 additional_includedir="$basedir/include"
15842 ;;
15843 esac
15844 if test "X$additional_includedir" != "X"; then
15845 if test "X$additional_includedir" != "X/usr/include"; then
15846 haveit=
15847 if test "X$additional_includedir" = "X/usr/local/include"; then
15848 if test -n "$GCC"; then
15849 case $host_os in
15850 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15851 esac
15852 fi
15853 fi
15854 if test -z "$haveit"; then
15855 for x in $CPPFLAGS $INCINTL; do
15856
15857 acl_save_prefix="$prefix"
15858 prefix="$acl_final_prefix"
15859 acl_save_exec_prefix="$exec_prefix"
15860 exec_prefix="$acl_final_exec_prefix"
15861 eval x=\"$x\"
15862 exec_prefix="$acl_save_exec_prefix"
15863 prefix="$acl_save_prefix"
15864
15865 if test "X$x" = "X-I$additional_includedir"; then
15866 haveit=yes
15867 break
15868 fi
15869 done
15870 if test -z "$haveit"; then
15871 if test -d "$additional_includedir"; then
15872 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15873 fi
15874 fi
15875 fi
15876 fi
15877 fi
15878 if test -n "$found_la"; then
15879 save_libdir="$libdir"
15880 case "$found_la" in
15881 */* | *\\*) . "$found_la" ;;
15882 *) . "./$found_la" ;;
15883 esac
15884 libdir="$save_libdir"
15885 for dep in $dependency_libs; do
15886 case "$dep" in
15887 -L*)
15888 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15889 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15890 haveit=
15891 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15892 if test -n "$GCC"; then
15893 case $host_os in
15894 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15895 esac
15896 fi
15897 fi
15898 if test -z "$haveit"; then
15899 haveit=
15900 for x in $LDFLAGS $LIBINTL; do
15901
15902 acl_save_prefix="$prefix"
15903 prefix="$acl_final_prefix"
15904 acl_save_exec_prefix="$exec_prefix"
15905 exec_prefix="$acl_final_exec_prefix"
15906 eval x=\"$x\"
15907 exec_prefix="$acl_save_exec_prefix"
15908 prefix="$acl_save_prefix"
15909
15910 if test "X$x" = "X-L$additional_libdir"; then
15911 haveit=yes
15912 break
15913 fi
15914 done
15915 if test -z "$haveit"; then
15916 if test -d "$additional_libdir"; then
15917 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15918 fi
15919 fi
15920 haveit=
15921 for x in $LDFLAGS $LTLIBINTL; do
15922
15923 acl_save_prefix="$prefix"
15924 prefix="$acl_final_prefix"
15925 acl_save_exec_prefix="$exec_prefix"
15926 exec_prefix="$acl_final_exec_prefix"
15927 eval x=\"$x\"
15928 exec_prefix="$acl_save_exec_prefix"
15929 prefix="$acl_save_prefix"
15930
15931 if test "X$x" = "X-L$additional_libdir"; then
15932 haveit=yes
15933 break
15934 fi
15935 done
15936 if test -z "$haveit"; then
15937 if test -d "$additional_libdir"; then
15938 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15939 fi
15940 fi
15941 fi
15942 fi
15943 ;;
15944 -R*)
15945 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15946 if test "$enable_rpath" != no; then
15947 haveit=
15948 for x in $rpathdirs; do
15949 if test "X$x" = "X$dir"; then
15950 haveit=yes
15951 break
15952 fi
15953 done
15954 if test -z "$haveit"; then
15955 rpathdirs="$rpathdirs $dir"
15956 fi
15957 haveit=
15958 for x in $ltrpathdirs; do
15959 if test "X$x" = "X$dir"; then
15960 haveit=yes
15961 break
15962 fi
15963 done
15964 if test -z "$haveit"; then
15965 ltrpathdirs="$ltrpathdirs $dir"
15966 fi
15967 fi
15968 ;;
15969 -l*)
15970 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15971 ;;
15972 *.la)
15973 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15974 ;;
15975 *)
15976 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15977 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15978 ;;
15979 esac
15980 done
15981 fi
15982 else
15983 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15984 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15985 fi
15986 fi
15987 fi
15988 done
15989 done
15990 if test "X$rpathdirs" != "X"; then
15991 if test -n "$hardcode_libdir_separator"; then
15992 alldirs=
15993 for found_dir in $rpathdirs; do
15994 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15995 done
15996 acl_save_libdir="$libdir"
15997 libdir="$alldirs"
15998 eval flag=\"$hardcode_libdir_flag_spec\"
15999 libdir="$acl_save_libdir"
16000 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16001 else
16002 for found_dir in $rpathdirs; do
16003 acl_save_libdir="$libdir"
16004 libdir="$found_dir"
16005 eval flag=\"$hardcode_libdir_flag_spec\"
16006 libdir="$acl_save_libdir"
16007 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16008 done
16009 fi
16010 fi
16011 if test "X$ltrpathdirs" != "X"; then
16012 for found_dir in $ltrpathdirs; do
16013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16014 done
16015 fi
16016
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16018 printf %s "checking for GNU gettext in libintl... " >&6; }
16019 if eval test \${$gt_func_gnugettext_libintl+y}
16020 then :
16021 printf %s "(cached) " >&6
16022 else case e in #(
16023 e) gt_save_CPPFLAGS="$CPPFLAGS"
16024 CPPFLAGS="$CPPFLAGS $INCINTL"
16025 gt_save_LIBS="$LIBS"
16026 LIBS="$LIBS $LIBINTL"
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 #include <libintl.h>
16030 $gt_revision_test_code
16031 extern int _nl_msg_cat_cntr;
16032 extern
16033 #ifdef __cplusplus
16034 "C"
16035 #endif
16036 const char *_nl_expand_alias (const char *);
16037 int
16038 main (void)
16039 {
16040 bindtextdomain ("", "");
16041 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16042 ;
16043 return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_link "$LINENO"
16047 then :
16048 eval "$gt_func_gnugettext_libintl=yes"
16049 else case e in #(
16050 e) eval "$gt_func_gnugettext_libintl=no" ;;
16051 esac
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16054 conftest$ac_exeext conftest.$ac_ext
16055 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16056 LIBS="$LIBS $LIBICONV"
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 #include <libintl.h>
16060 $gt_revision_test_code
16061 extern int _nl_msg_cat_cntr;
16062 extern
16063 #ifdef __cplusplus
16064 "C"
16065 #endif
16066 const char *_nl_expand_alias (const char *);
16067 int
16068 main (void)
16069 {
16070 bindtextdomain ("", "");
16071 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"
16077 then :
16078 LIBINTL="$LIBINTL $LIBICONV"
16079 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16080 eval "$gt_func_gnugettext_libintl=yes"
16081
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16084 conftest$ac_exeext conftest.$ac_ext
16085 fi
16086 CPPFLAGS="$gt_save_CPPFLAGS"
16087 LIBS="$gt_save_LIBS" ;;
16088 esac
16089 fi
16090 eval ac_res=\$$gt_func_gnugettext_libintl
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16092 printf "%s\n" "$ac_res" >&6; }
16093 fi
16094
16095 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16096 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16097 && test "$PACKAGE" != gettext-runtime \
16098 && test "$PACKAGE" != gettext-tools; }; then
16099 gt_use_preinstalled_gnugettext=yes
16100 else
16101 LIBINTL=
16102 LTLIBINTL=
16103 INCINTL=
16104 fi
16105
16106
16107
16108 if test -n "$INTL_MACOSX_LIBS"; then
16109 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16110 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16111 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16112 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16113 fi
16114 fi
16115
16116 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16117 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16118
16119 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16120
16121 else
16122 USE_NLS=no
16123 fi
16124 fi
16125
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16127 printf %s "checking whether to use NLS... " >&6; }
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16129 printf "%s\n" "$USE_NLS" >&6; }
16130 if test "$USE_NLS" = "yes"; then
16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16132 printf %s "checking where the gettext function comes from... " >&6; }
16133 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16134 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16135 gt_source="external libintl"
16136 else
16137 gt_source="libc"
16138 fi
16139 else
16140 gt_source="included intl directory"
16141 fi
16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16143 printf "%s\n" "$gt_source" >&6; }
16144 fi
16145
16146 if test "$USE_NLS" = "yes"; then
16147
16148 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16149 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16151 printf %s "checking how to link with libintl... " >&6; }
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16153 printf "%s\n" "$LIBINTL" >&6; }
16154
16155 for element in $INCINTL; do
16156 haveit=
16157 for x in $CPPFLAGS; do
16158
16159 acl_save_prefix="$prefix"
16160 prefix="$acl_final_prefix"
16161 acl_save_exec_prefix="$exec_prefix"
16162 exec_prefix="$acl_final_exec_prefix"
16163 eval x=\"$x\"
16164 exec_prefix="$acl_save_exec_prefix"
16165 prefix="$acl_save_prefix"
16166
16167 if test "X$x" = "X$element"; then
16168 haveit=yes
16169 break
16170 fi
16171 done
16172 if test -z "$haveit"; then
16173 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16174 fi
16175 done
16176
16177 fi
16178
16179
16180 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16181
16182
16183 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16184
16185 fi
16186
16187 POSUB=po
16188 fi
16189
16190
16191
16192 INTLLIBS="$LIBINTL"
16193
16194
16195
16196
16197
16198
16199
16200 if test x${USE_NLS} = xyes; then
16201 USE_NLS_TRUE=
16202 USE_NLS_FALSE='#'
16203 else
16204 USE_NLS_TRUE='#'
16205 USE_NLS_FALSE=
16206 fi
16207
16208
16209 # create custom command-line --enable option
16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5
16211 printf %s "checking whether to build CUPS PPD files... " >&6; }
16212 # Check whether --enable-nls-macosx was given.
16213 if test ${enable_nls_macosx+y}
16214 then :
16215 enableval=$enable_nls_macosx; case "${enableval}" in
16216
16217 yes) USE_NLS_OSX="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
16218 printf "%s\n" "${USE_NLS_OSX}" >&6; } ;;
16219 no) USE_NLS_OSX="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
16220 printf "%s\n" "${USE_NLS_OSX}" >&6; } ;;
16221 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16222 printf "%s\n" "unknown" >&6; }
16223 as_fn_error $? "bad value ${enableval} for --enable-nls-macosx" "$LINENO" 5 ;;
16224
16225 esac
16226 else case e in #(
16227 e) if test -z "${USE_NLS_OSX}" ; then
16228 USE_NLS_OSX="(automatic)"
16229 fi
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
16231 printf "%s\n" "${USE_NLS_OSX}" >&6; } ; ;;
16232 esac
16233 fi
16234
16235 if test -z "${USE_NLS_OSX}" ; then
16236 USE_NLS_OSX="(automatic)"
16237 fi
16238
16239
16240 USE_LEVEL3_PS=no
16241 BUILD_CUPS_PPDS="${BUILD_CUPS}"
16242 BUILD_TRANSLATED_CUPS_PPDS=no
16243 BUILD_CUPS_1_2="no"
16244 if test -n "${CUPS_CONFIG}" -a "${BUILD_CUPS}" = "yes" ; then
16245 cups_version=`${CUPS_CONFIG} --version | sed -e '1,$s/svn$/.0/'`
16246 cups_major=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).*/\1/'`
16247 cups_minor=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`
16248 cups_point=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\3/'`
16249 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 -o "$cups_point" -gt 14 ; then
16250 USE_LEVEL3_PS=yes
16251 fi
16252 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 ; then
16253 BUILD_CUPS_PPDS="no"
16254 BUILD_CUPS_1_2="yes"
16255 fi
16256 fi
16257
16258 # create custom command-line --enable option
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5
16260 printf %s "checking whether to build CUPS PPD files... " >&6; }
16261 # Check whether --enable-cups-ppds was given.
16262 if test ${enable_cups_ppds+y}
16263 then :
16264 enableval=$enable_cups_ppds; case "${enableval}" in
16265
16266 yes) BUILD_CUPS_PPDS="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
16267 printf "%s\n" "${BUILD_CUPS_PPDS}" >&6; } ;;
16268 no) BUILD_CUPS_PPDS="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
16269 printf "%s\n" "${BUILD_CUPS_PPDS}" >&6; } ;;
16270 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16271 printf "%s\n" "unknown" >&6; }
16272 as_fn_error $? "bad value ${enableval} for --enable-cups-ppds" "$LINENO" 5 ;;
16273
16274 esac
16275 else case e in #(
16276 e) if test -z "${BUILD_CUPS_PPDS}" ; then
16277 BUILD_CUPS_PPDS="(automatic)"
16278 fi
16279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
16280 printf "%s\n" "${BUILD_CUPS_PPDS}" >&6; } ; ;;
16281 esac
16282 fi
16283
16284 if test -z "${BUILD_CUPS_PPDS}" ; then
16285 BUILD_CUPS_PPDS="(automatic)"
16286 fi
16287
16288
16289 # create custom command-line --enable option
16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS 1.2 enhancements" >&5
16291 printf %s "checking whether to build CUPS 1.2 enhancements... " >&6; }
16292 # Check whether --enable-cups-1_2-enhancements was given.
16293 if test ${enable_cups_1_2_enhancements+y}
16294 then :
16295 enableval=$enable_cups_1_2_enhancements; case "${enableval}" in
16296
16297 yes) BUILD_CUPS_1_2="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
16298 printf "%s\n" "${BUILD_CUPS_1_2}" >&6; } ;;
16299 no) BUILD_CUPS_1_2="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
16300 printf "%s\n" "${BUILD_CUPS_1_2}" >&6; } ;;
16301 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16302 printf "%s\n" "unknown" >&6; }
16303 as_fn_error $? "bad value ${enableval} for --enable-cups-1_2-enhancements" "$LINENO" 5 ;;
16304
16305 esac
16306 else case e in #(
16307 e) if test -z "${BUILD_CUPS_1_2}" ; then
16308 BUILD_CUPS_1_2="(automatic)"
16309 fi
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
16311 printf "%s\n" "${BUILD_CUPS_1_2}" >&6; } ; ;;
16312 esac
16313 fi
16314
16315 if test -z "${BUILD_CUPS_1_2}" ; then
16316 BUILD_CUPS_1_2="(automatic)"
16317 fi
16318
16319
16320 if test "$USE_NLS" != no -a "$BUILD_CUPS_PPDS" = yes ; then
16321 BUILD_TRANSLATED_CUPS_PPDS="yes"
16322 fi
16323
16324 # create custom command-line --enable option
16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build translated CUPS PPD files" >&5
16326 printf %s "checking whether to build translated CUPS PPD files... " >&6; }
16327 # Check whether --enable-translated-cups-ppds was given.
16328 if test ${enable_translated_cups_ppds+y}
16329 then :
16330 enableval=$enable_translated_cups_ppds; case "${enableval}" in
16331
16332 yes) BUILD_TRANSLATED_CUPS_PPDS="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
16333 printf "%s\n" "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;;
16334 no) BUILD_TRANSLATED_CUPS_PPDS="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
16335 printf "%s\n" "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;;
16336 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16337 printf "%s\n" "unknown" >&6; }
16338 as_fn_error $? "bad value ${enableval} for --enable-translated-cups-ppds" "$LINENO" 5 ;;
16339
16340 esac
16341 else case e in #(
16342 e) if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then
16343 BUILD_TRANSLATED_CUPS_PPDS="(automatic)"
16344 fi
16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
16346 printf "%s\n" "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ; ;;
16347 esac
16348 fi
16349
16350 if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then
16351 BUILD_TRANSLATED_CUPS_PPDS="(automatic)"
16352 fi
16353
16354
16355 if test "$BUILD_CUPS_1_2" = yes -a "$BUILD_TRANSLATED_CUPS_PPDS" = yes ; then
16356 BUILD_GLOBALIZED_CUPS_PPDS=yes
16357 else
16358 BUILD_GLOBALIZED_CUPS_PPDS=no
16359 fi
16360
16361 # create custom command-line --enable option
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build globalized CUPS PPD files" >&5
16363 printf %s "checking whether to build globalized CUPS PPD files... " >&6; }
16364 # Check whether --enable-globalized-cups-ppds was given.
16365 if test ${enable_globalized_cups_ppds+y}
16366 then :
16367 enableval=$enable_globalized_cups_ppds; case "${enableval}" in
16368
16369 yes) BUILD_GLOBALIZED_CUPS_PPDS="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
16370 printf "%s\n" "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;;
16371 no) BUILD_GLOBALIZED_CUPS_PPDS="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
16372 printf "%s\n" "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;;
16373 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16374 printf "%s\n" "unknown" >&6; }
16375 as_fn_error $? "bad value ${enableval} for --enable-globalized-cups-ppds" "$LINENO" 5 ;;
16376
16377 esac
16378 else case e in #(
16379 e) if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then
16380 BUILD_GLOBALIZED_CUPS_PPDS="(automatic)"
16381 fi
16382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
16383 printf "%s\n" "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ; ;;
16384 esac
16385 fi
16386
16387 if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then
16388 BUILD_GLOBALIZED_CUPS_PPDS="(automatic)"
16389 fi
16390
16391
16392 # create custom command-line --enable option
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build simplified CUPS PPD files" >&5
16394 printf %s "checking whether to build simplified CUPS PPD files... " >&6; }
16395 # Check whether --enable-simplified-cups-ppds was given.
16396 if test ${enable_simplified_cups_ppds+y}
16397 then :
16398 enableval=$enable_simplified_cups_ppds; case "${enableval}" in
16399
16400 yes) WHICH_PPDS="-a"; BUILD_SIMPLIFIED_CUPS_PPDS=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401 printf "%s\n" "yes" >&6; } ;;
16402 no) WHICH_PPDS=""; BUILD_SIMPLIFIED_CUPS_PPDS=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 printf "%s\n" "no" >&6; } ;;
16404 only) WHICH_PPDS="-s"; BUILD_SIMPLIFIED_CUPS_PPDS=only; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: only" >&5
16405 printf "%s\n" "only" >&6; } ;;
16406 *) as_fn_error $? "${enableval}: not a valid option ('yes', 'no', or 'only')" "$LINENO" 5 ;;
16407
16408 esac
16409 else case e in #(
16410 e) if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then
16411 BUILD_SIMPLIFIED_CUPS_PPDS="no"
16412 fi
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_SIMPLIFIED_CUPS_PPDS}" >&5
16414 printf "%s\n" "${BUILD_SIMPLIFIED_CUPS_PPDS}" >&6; } ; ;;
16415 esac
16416 fi
16417
16418 if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then
16419 BUILD_SIMPLIFIED_CUPS_PPDS="no"
16420 fi
16421
16422
16423 # create custom command-line --enable option
16424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to place CUPS PPD files at top level" >&5
16425 printf %s "checking whether to place CUPS PPD files at top level... " >&6; }
16426 # Check whether --enable-cups-ppds-at-top-level was given.
16427 if test ${enable_cups_ppds_at_top_level+y}
16428 then :
16429 enableval=$enable_cups_ppds_at_top_level; case "${enableval}" in
16430
16431 yes) CUPS_PPDS_AT_TOP_LEVEL="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
16432 printf "%s\n" "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;;
16433 no) CUPS_PPDS_AT_TOP_LEVEL="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
16434 printf "%s\n" "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;;
16435 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16436 printf "%s\n" "unknown" >&6; }
16437 as_fn_error $? "bad value ${enableval} for --enable-cups-ppds-at-top-level" "$LINENO" 5 ;;
16438
16439 esac
16440 else case e in #(
16441 e) if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then
16442 CUPS_PPDS_AT_TOP_LEVEL="no"
16443 fi
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
16445 printf "%s\n" "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ; ;;
16446 esac
16447 fi
16448
16449 if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then
16450 CUPS_PPDS_AT_TOP_LEVEL="no"
16451 fi
16452
16453
16454 # create custom command-line --enable option
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to generate PostScript level 3 PPD files" >&5
16456 printf %s "checking whether to generate PostScript level 3 PPD files... " >&6; }
16457 # Check whether --enable-cups-level3-ppds was given.
16458 if test ${enable_cups_level3_ppds+y}
16459 then :
16460 enableval=$enable_cups_level3_ppds; case "${enableval}" in
16461
16462 yes) USE_LEVEL3_PS="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
16463 printf "%s\n" "${USE_LEVEL3_PS}" >&6; } ;;
16464 no) USE_LEVEL3_PS="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
16465 printf "%s\n" "${USE_LEVEL3_PS}" >&6; } ;;
16466 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16467 printf "%s\n" "unknown" >&6; }
16468 as_fn_error $? "bad value ${enableval} for --enable-cups-level3-ppds" "$LINENO" 5 ;;
16469
16470 esac
16471 else case e in #(
16472 e) if test -z "${USE_LEVEL3_PS}" ; then
16473 USE_LEVEL3_PS="(automatic)"
16474 fi
16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
16476 printf "%s\n" "${USE_LEVEL3_PS}" >&6; } ; ;;
16477 esac
16478 fi
16479
16480 if test -z "${USE_LEVEL3_PS}" ; then
16481 USE_LEVEL3_PS="(automatic)"
16482 fi
16483
16484
16485 STATIC_GENPPD="$enable_static"
16486 # create custom command-line --enable option
16487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build a statically-linked cups-genppd and rastertogutenprint. WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!" >&5
16488 printf %s "checking whether to build a statically-linked cups-genppd and rastertogutenprint. WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!... " >&6; }
16489 # Check whether --enable-static-genppd was given.
16490 if test ${enable_static_genppd+y}
16491 then :
16492 enableval=$enable_static_genppd; case "${enableval}" in
16493
16494 yes) STATIC_GENPPD="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
16495 printf "%s\n" "${STATIC_GENPPD}" >&6; } ;;
16496 no) STATIC_GENPPD="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
16497 printf "%s\n" "${STATIC_GENPPD}" >&6; } ;;
16498 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16499 printf "%s\n" "unknown" >&6; }
16500 as_fn_error $? "bad value ${enableval} for --enable-static-genppd" "$LINENO" 5 ;;
16501
16502 esac
16503 else case e in #(
16504 e) if test -z "${STATIC_GENPPD}" ; then
16505 STATIC_GENPPD="(automatic)"
16506 fi
16507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
16508 printf "%s\n" "${STATIC_GENPPD}" >&6; } ; ;;
16509 esac
16510 fi
16511
16512 if test -z "${STATIC_GENPPD}" ; then
16513 STATIC_GENPPD="(automatic)"
16514 fi
16515
16516
16517 ENABLE_STATIC="$enable_static"
16518
16519 printf "%s\n" "#define ENABLE_STATIC \"${ENABLE_STATIC}\"" >>confdefs.h
16520
16521
16522
16523 ENABLE_SHARED="$enable_shared"
16524
16525 printf "%s\n" "#define ENABLE_SHARED \"${ENABLE_SHARED}\"" >>confdefs.h
16526
16527
16528
16529 # create custom command-line --with option
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable loadable modules" >&5
16531 printf %s "checking whether to enable loadable modules... " >&6; }
16532
16533 # Check whether --with-modules was given.
16534 if test ${with_modules+y}
16535 then :
16536 withval=$with_modules; case "${withval}" in
16537
16538 yes) WITH_MODULES="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539 printf "%s\n" "yes" >&6; } ;;
16540 no) WITH_MODULES="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 printf "%s\n" "no" >&6; } ;;
16542 ltdl) WITH_MODULES="ltdl"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
16543 printf "%s\n" "ltdl" >&6; } ;;
16544 dlopen) WITH_MODULES="dlopen"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
16545 printf "%s\n" "dlopen" >&6; } ;;
16546 static) WITH_MODULES="static"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
16547 printf "%s\n" "static" >&6; } ;;
16548 *) as_fn_error $? "${withval}: not a valid module loader" "$LINENO" 5 ;;
16549
16550 esac
16551 else case e in #(
16552 e) if test -z "${WITH_MODULES}" ; then
16553 WITH_MODULES="(automatic)"
16554 fi
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WITH_MODULES}" >&5
16556 printf "%s\n" "${WITH_MODULES}" >&6; } ;
16557 # if static libraries are enabled, modules must be static
16558 if test x$enable_static = xyes; then
16559 WITH_MODULES="static"
16560 else
16561 WITH_MODULES="yes"
16562 fi ;;
16563 esac
16564 fi
16565
16566 if test -z "${WITH_MODULES}" ; then
16567 WITH_MODULES="(automatic)"
16568 fi
16569
16570
16571 # Abort if a broken configuration was required
16572 if test x$enable_static = xyes; then
16573 if test $WITH_MODULES = no; then
16574 :
16575 elif test $WITH_MODULES = static; then
16576 :
16577 else
16578 as_fn_error $? "--disable-static must be used with --with-modules" "$LINENO" 5
16579 fi
16580 fi
16581
16582 # create custom command-line --enable option
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to turn on debugging in build" >&5
16584 printf %s "checking whether to turn on debugging in build... " >&6; }
16585 # Check whether --enable-debug was given.
16586 if test ${enable_debug+y}
16587 then :
16588 enableval=$enable_debug; case "${enableval}" in
16589
16590 yes) ENABLE_DEBUG="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
16591 printf "%s\n" "${ENABLE_DEBUG}" >&6; } ;;
16592 no) ENABLE_DEBUG="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
16593 printf "%s\n" "${ENABLE_DEBUG}" >&6; } ;;
16594 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16595 printf "%s\n" "unknown" >&6; }
16596 as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
16597
16598 esac
16599 else case e in #(
16600 e) if test -z "${ENABLE_DEBUG}" ; then
16601 ENABLE_DEBUG="no"
16602 fi
16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
16604 printf "%s\n" "${ENABLE_DEBUG}" >&6; } ; ;;
16605 esac
16606 fi
16607
16608 if test -z "${ENABLE_DEBUG}" ; then
16609 ENABLE_DEBUG="no"
16610 fi
16611
16612
16613 # create custom command-line --enable option
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to turn on profiling in build" >&5
16615 printf %s "checking whether to turn on profiling in build... " >&6; }
16616 # Check whether --enable-profile was given.
16617 if test ${enable_profile+y}
16618 then :
16619 enableval=$enable_profile; case "${enableval}" in
16620
16621 yes) ENABLE_PROFILE="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
16622 printf "%s\n" "${ENABLE_PROFILE}" >&6; } ;;
16623 no) ENABLE_PROFILE="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
16624 printf "%s\n" "${ENABLE_PROFILE}" >&6; } ;;
16625 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16626 printf "%s\n" "unknown" >&6; }
16627 as_fn_error $? "bad value ${enableval} for --enable-profile" "$LINENO" 5 ;;
16628
16629 esac
16630 else case e in #(
16631 e) if test -z "${ENABLE_PROFILE}" ; then
16632 ENABLE_PROFILE="no"
16633 fi
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
16635 printf "%s\n" "${ENABLE_PROFILE}" >&6; } ; ;;
16636 esac
16637 fi
16638
16639 if test -z "${ENABLE_PROFILE}" ; then
16640 ENABLE_PROFILE="no"
16641 fi
16642
16643
16644 # create custom command-line --with option
16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use readline" >&5
16646 printf %s "checking whether to use readline... " >&6; }
16647
16648 # Check whether --with-readline was given.
16649 if test ${with_readline+y}
16650 then :
16651 withval=$with_readline; case "${withval}" in
16652
16653 yes) USE_READLINE="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 printf "%s\n" "yes" >&6; } ;;
16655 no) USE_READLINE="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 printf "%s\n" "no" >&6; } ;;
16657 only) USE_READLINE="yes"
16658 EXTRA_LIBREADLINE_DEPS=" "
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (using only readline)" >&5
16660 printf "%s\n" "yes (using only readline)" >&6; } ;;
16661 *) USE_READLINE="yes"
16662 EXTRA_LIBREADLINE_DEPS="${withval}"
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (using extra libraries ${withval})" >&5
16664 printf "%s\n" "yes (using extra libraries ${withval})" >&6; } ;;
16665
16666 esac
16667 else case e in #(
16668 e) if test -z "${USE_READLINE}" ; then
16669 USE_READLINE="yes"
16670 fi
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USE_READLINE}" >&5
16672 printf "%s\n" "${USE_READLINE}" >&6; } ; ;;
16673 esac
16674 fi
16675
16676 if test -z "${USE_READLINE}" ; then
16677 USE_READLINE="yes"
16678 fi
16679
16680
16681 # libusb-1.0 (For CUPS backends, but only bother if CUPS is enabled)
16682
16683
16684
16685
16686
16687
16688
16689 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16690 if test -n "$ac_tool_prefix"; then
16691 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16692 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694 printf %s "checking for $ac_word... " >&6; }
16695 if test ${ac_cv_path_PKG_CONFIG+y}
16696 then :
16697 printf %s "(cached) " >&6
16698 else case e in #(
16699 e) case $PKG_CONFIG in
16700 [\\/]* | ?:[\\/]*)
16701 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16702 ;;
16703 *)
16704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16705 for as_dir in $PATH
16706 do
16707 IFS=$as_save_IFS
16708 case $as_dir in #(((
16709 '') as_dir=./ ;;
16710 */) ;;
16711 *) as_dir=$as_dir/ ;;
16712 esac
16713 for ac_exec_ext in '' $ac_executable_extensions; do
16714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16715 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16717 break 2
16718 fi
16719 done
16720 done
16721 IFS=$as_save_IFS
16722
16723 ;;
16724 esac ;;
16725 esac
16726 fi
16727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16728 if test -n "$PKG_CONFIG"; then
16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16730 printf "%s\n" "$PKG_CONFIG" >&6; }
16731 else
16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 printf "%s\n" "no" >&6; }
16734 fi
16735
16736
16737 fi
16738 if test -z "$ac_cv_path_PKG_CONFIG"; then
16739 ac_pt_PKG_CONFIG=$PKG_CONFIG
16740 # Extract the first word of "pkg-config", so it can be a program name with args.
16741 set dummy pkg-config; ac_word=$2
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16743 printf %s "checking for $ac_word... " >&6; }
16744 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16745 then :
16746 printf %s "(cached) " >&6
16747 else case e in #(
16748 e) case $ac_pt_PKG_CONFIG in
16749 [\\/]* | ?:[\\/]*)
16750 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16751 ;;
16752 *)
16753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754 for as_dir in $PATH
16755 do
16756 IFS=$as_save_IFS
16757 case $as_dir in #(((
16758 '') as_dir=./ ;;
16759 */) ;;
16760 *) as_dir=$as_dir/ ;;
16761 esac
16762 for ac_exec_ext in '' $ac_executable_extensions; do
16763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16764 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16766 break 2
16767 fi
16768 done
16769 done
16770 IFS=$as_save_IFS
16771
16772 ;;
16773 esac ;;
16774 esac
16775 fi
16776 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16777 if test -n "$ac_pt_PKG_CONFIG"; then
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16779 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16780 else
16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 printf "%s\n" "no" >&6; }
16783 fi
16784
16785 if test "x$ac_pt_PKG_CONFIG" = x; then
16786 PKG_CONFIG=""
16787 else
16788 case $cross_compiling:$ac_tool_warned in
16789 yes:)
16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16791 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16792 ac_tool_warned=yes ;;
16793 esac
16794 PKG_CONFIG=$ac_pt_PKG_CONFIG
16795 fi
16796 else
16797 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16798 fi
16799
16800 fi
16801 if test -n "$PKG_CONFIG"; then
16802 _pkg_min_version=0.9.0
16803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16804 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16805 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16807 printf "%s\n" "yes" >&6; }
16808 else
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 printf "%s\n" "no" >&6; }
16811 PKG_CONFIG=""
16812 fi
16813 fi
16814 if test -z "$PKG_CONFIG"; then
16815 as_fn_error $? "pkg-config not found" "$LINENO" 5
16816 fi
16817 if test "x$BUILD_CUPS" = "xyes"
16818 then :
16819
16820
16821 pkg_failed=no
16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
16823 printf %s "checking for libusb-1.0... " >&6; }
16824
16825 if test -n "$LIBUSB_CFLAGS"; then
16826 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
16827 elif test -n "$PKG_CONFIG"; then
16828 if test -n "$PKG_CONFIG" && \
16829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
16830 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
16831 ac_status=$?
16832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833 test $ac_status = 0; }; then
16834 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
16835 test "x$?" != "x0" && pkg_failed=yes
16836 else
16837 pkg_failed=yes
16838 fi
16839 else
16840 pkg_failed=untried
16841 fi
16842 if test -n "$LIBUSB_LIBS"; then
16843 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
16844 elif test -n "$PKG_CONFIG"; then
16845 if test -n "$PKG_CONFIG" && \
16846 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
16847 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
16848 ac_status=$?
16849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16850 test $ac_status = 0; }; then
16851 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
16852 test "x$?" != "x0" && pkg_failed=yes
16853 else
16854 pkg_failed=yes
16855 fi
16856 else
16857 pkg_failed=untried
16858 fi
16859
16860
16861
16862 if test $pkg_failed = yes; then
16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16864 printf "%s\n" "no" >&6; }
16865
16866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16867 _pkg_short_errors_supported=yes
16868 else
16869 _pkg_short_errors_supported=no
16870 fi
16871 if test $_pkg_short_errors_supported = yes; then
16872 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
16873 else
16874 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
16875 fi
16876 # Put the nasty error message in config.log where it belongs
16877 echo "$LIBUSB_PKG_ERRORS" >&5
16878
16879 HAVE_LIBUSB=no
16880 BUILD_LIBUSB_BACKENDS=no
16881 elif test $pkg_failed = untried; then
16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16883 printf "%s\n" "no" >&6; }
16884 HAVE_LIBUSB=no
16885 BUILD_LIBUSB_BACKENDS=no
16886 else
16887 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
16888 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16890 printf "%s\n" "yes" >&6; }
16891 HAVE_LIBUSB=yes
16892 BUILD_LIBUSB_BACKENDS=yes
16893 fi
16894
16895 fi
16896
16897 # create custom command-line --enable option
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install GIMP2 plugin in home directory" >&5
16899 printf %s "checking whether to install GIMP2 plugin in home directory... " >&6; }
16900 # Check whether --enable-user-install was given.
16901 if test ${enable_user_install+y}
16902 then :
16903 enableval=$enable_user_install; case "${enableval}" in
16904
16905 yes) USER_INSTALL="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
16906 printf "%s\n" "${USER_INSTALL}" >&6; } ;;
16907 no) USER_INSTALL="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
16908 printf "%s\n" "${USER_INSTALL}" >&6; } ;;
16909 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16910 printf "%s\n" "unknown" >&6; }
16911 as_fn_error $? "bad value ${enableval} for --enable-user-install" "$LINENO" 5 ;;
16912
16913 esac
16914 else case e in #(
16915 e) if test -z "${USER_INSTALL}" ; then
16916 USER_INSTALL="no"
16917 fi
16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
16919 printf "%s\n" "${USER_INSTALL}" >&6; } ; ;;
16920 esac
16921 fi
16922
16923 if test -z "${USER_INSTALL}" ; then
16924 USER_INSTALL="no"
16925 fi
16926
16927 if test x$USER_INSTALL = xyes ; then
16928 PLUG_IN_PATH="bin"
16929 else
16930 PLUG_IN_PATH="admin-bin"
16931 fi
16932
16933 if test -n "$ac_tool_prefix"; then
16934 # Extract the first word of "${ac_tool_prefix}gimptool-2.0 gimptool", so it can be a program name with args.
16935 set dummy ${ac_tool_prefix}gimptool-2.0 gimptool; ac_word=$2
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 printf %s "checking for $ac_word... " >&6; }
16938 if test ${ac_cv_path_GIMPTOOL2_CHECK+y}
16939 then :
16940 printf %s "(cached) " >&6
16941 else case e in #(
16942 e) case $GIMPTOOL2_CHECK in
16943 [\\/]* | ?:[\\/]*)
16944 ac_cv_path_GIMPTOOL2_CHECK="$GIMPTOOL2_CHECK" # Let the user override the test with a path.
16945 ;;
16946 *)
16947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16949 do
16950 IFS=$as_save_IFS
16951 case $as_dir in #(((
16952 '') as_dir=./ ;;
16953 */) ;;
16954 *) as_dir=$as_dir/ ;;
16955 esac
16956 for ac_exec_ext in '' $ac_executable_extensions; do
16957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16958 ac_cv_path_GIMPTOOL2_CHECK="$as_dir$ac_word$ac_exec_ext"
16959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16960 break 2
16961 fi
16962 done
16963 done
16964 IFS=$as_save_IFS
16965
16966 ;;
16967 esac ;;
16968 esac
16969 fi
16970 GIMPTOOL2_CHECK=$ac_cv_path_GIMPTOOL2_CHECK
16971 if test -n "$GIMPTOOL2_CHECK"; then
16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIMPTOOL2_CHECK" >&5
16973 printf "%s\n" "$GIMPTOOL2_CHECK" >&6; }
16974 else
16975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 printf "%s\n" "no" >&6; }
16977 fi
16978
16979
16980 fi
16981 if test -z "$ac_cv_path_GIMPTOOL2_CHECK"; then
16982 ac_pt_GIMPTOOL2_CHECK=$GIMPTOOL2_CHECK
16983 # Extract the first word of "gimptool-2.0 gimptool", so it can be a program name with args.
16984 set dummy gimptool-2.0 gimptool; ac_word=$2
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16986 printf %s "checking for $ac_word... " >&6; }
16987 if test ${ac_cv_path_ac_pt_GIMPTOOL2_CHECK+y}
16988 then :
16989 printf %s "(cached) " >&6
16990 else case e in #(
16991 e) case $ac_pt_GIMPTOOL2_CHECK in
16992 [\\/]* | ?:[\\/]*)
16993 ac_cv_path_ac_pt_GIMPTOOL2_CHECK="$ac_pt_GIMPTOOL2_CHECK" # Let the user override the test with a path.
16994 ;;
16995 *)
16996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997 for as_dir in $PATH
16998 do
16999 IFS=$as_save_IFS
17000 case $as_dir in #(((
17001 '') as_dir=./ ;;
17002 */) ;;
17003 *) as_dir=$as_dir/ ;;
17004 esac
17005 for ac_exec_ext in '' $ac_executable_extensions; do
17006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17007 ac_cv_path_ac_pt_GIMPTOOL2_CHECK="$as_dir$ac_word$ac_exec_ext"
17008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17009 break 2
17010 fi
17011 done
17012 done
17013 IFS=$as_save_IFS
17014
17015 ;;
17016 esac ;;
17017 esac
17018 fi
17019 ac_pt_GIMPTOOL2_CHECK=$ac_cv_path_ac_pt_GIMPTOOL2_CHECK
17020 if test -n "$ac_pt_GIMPTOOL2_CHECK"; then
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIMPTOOL2_CHECK" >&5
17022 printf "%s\n" "$ac_pt_GIMPTOOL2_CHECK" >&6; }
17023 else
17024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 printf "%s\n" "no" >&6; }
17026 fi
17027
17028 if test "x$ac_pt_GIMPTOOL2_CHECK" = x; then
17029 GIMPTOOL2_CHECK=""
17030 else
17031 case $cross_compiling:$ac_tool_warned in
17032 yes:)
17033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17035 ac_tool_warned=yes ;;
17036 esac
17037 GIMPTOOL2_CHECK=$ac_pt_GIMPTOOL2_CHECK
17038 fi
17039 else
17040 GIMPTOOL2_CHECK="$ac_cv_path_GIMPTOOL2_CHECK"
17041 fi
17042
17043 if test -z "${GIMPTOOL2_CHECK}" ; then
17044 BUILD_GIMP2="no"
17045 else
17046 # Check we have version 2.0
17047 gimptool_check_version=`${GIMPTOOL2_CHECK} --version`
17048 gimptool_check_major=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`
17049 gimptool_check_minor=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`
17050 if test "$gimptool_check_major" -eq 2; then
17051 BUILD_GIMP2="yes"
17052 if test "$gimptool_check_minor" -ge 4 ; then
17053 BUILD_GIMP2_AS_GUTENPRINT="yes"
17054 else
17055 BUILD_GIMP2_AS_GUTENPRINT="no"
17056 fi
17057 else
17058 BUILD_GIMP2="no"
17059 BUILD_GIMP2_AS_GUTENPRINT="no"
17060 fi
17061 if test x${BUILD_GIMP2} = xyes ; then
17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GIMP 2.0 plug-in directory" >&5
17063 printf %s "checking for GIMP 2.0 plug-in directory... " >&6; }
17064 GIMPTOOL2_OUTPUT=`$GIMPTOOL2_CHECK --dry-run --install-${PLUG_IN_PATH} print | tail -n 1`
17065 GIMP2_PLUGIN_DIR=`echo "$GIMPTOOL2_OUTPUT" | cut -d ' ' -f 3 | tr -d "\'"`
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIMP2_PLUGIN_DIR" >&5
17067 printf "%s\n" "$GIMP2_PLUGIN_DIR" >&6; }
17068 if test "x$NO_PKGCONFIG_PATHS" = x; then
17069 gimp2_plug_indir="${GIMP2_PLUGIN_DIR}"
17070 else
17071 gimp2_plug_indir="${prefix}/lib/gimp/2.0/plug-ins"
17072 fi
17073
17074 fi
17075 fi
17076
17077
17078 pkg_failed=no
17079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
17080 printf %s "checking for gtk+-2.0... " >&6; }
17081
17082 if test -n "$GTK2_CFLAGS"; then
17083 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
17084 elif test -n "$PKG_CONFIG"; then
17085 if test -n "$PKG_CONFIG" && \
17086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
17087 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
17088 ac_status=$?
17089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }; then
17091 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
17092 test "x$?" != "x0" && pkg_failed=yes
17093 else
17094 pkg_failed=yes
17095 fi
17096 else
17097 pkg_failed=untried
17098 fi
17099 if test -n "$GTK2_LIBS"; then
17100 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
17101 elif test -n "$PKG_CONFIG"; then
17102 if test -n "$PKG_CONFIG" && \
17103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
17104 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
17105 ac_status=$?
17106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17107 test $ac_status = 0; }; then
17108 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
17109 test "x$?" != "x0" && pkg_failed=yes
17110 else
17111 pkg_failed=yes
17112 fi
17113 else
17114 pkg_failed=untried
17115 fi
17116
17117
17118
17119 if test $pkg_failed = yes; then
17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121 printf "%s\n" "no" >&6; }
17122
17123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17124 _pkg_short_errors_supported=yes
17125 else
17126 _pkg_short_errors_supported=no
17127 fi
17128 if test $_pkg_short_errors_supported = yes; then
17129 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
17130 else
17131 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
17132 fi
17133 # Put the nasty error message in config.log where it belongs
17134 echo "$GTK2_PKG_ERRORS" >&5
17135
17136 HAVE_GTK2=no
17137 BUILD_LIBGUTENPRINTUI2=no
17138 elif test $pkg_failed = untried; then
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140 printf "%s\n" "no" >&6; }
17141 HAVE_GTK2=no
17142 BUILD_LIBGUTENPRINTUI2=no
17143 else
17144 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
17145 GTK2_LIBS=$pkg_cv_GTK2_LIBS
17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17147 printf "%s\n" "yes" >&6; }
17148 HAVE_GTK2=yes
17149 BUILD_LIBGUTENPRINTUI2=yes
17150 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} ${GTK2_LIBS}"
17151 fi
17152 # Require both gimptool and pkg-config to succeed
17153 if test "x$BUILD_GIMP2" = "xyes"
17154 then :
17155
17156
17157 pkg_failed=no
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gimpui-2.0" >&5
17159 printf %s "checking for gimpui-2.0... " >&6; }
17160
17161 if test -n "$GIMP2_CFLAGS"; then
17162 pkg_cv_GIMP2_CFLAGS="$GIMP2_CFLAGS"
17163 elif test -n "$PKG_CONFIG"; then
17164 if test -n "$PKG_CONFIG" && \
17165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5
17166 ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5
17167 ac_status=$?
17168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; }; then
17170 pkg_cv_GIMP2_CFLAGS=`$PKG_CONFIG --cflags "gimpui-2.0" 2>/dev/null`
17171 test "x$?" != "x0" && pkg_failed=yes
17172 else
17173 pkg_failed=yes
17174 fi
17175 else
17176 pkg_failed=untried
17177 fi
17178 if test -n "$GIMP2_LIBS"; then
17179 pkg_cv_GIMP2_LIBS="$GIMP2_LIBS"
17180 elif test -n "$PKG_CONFIG"; then
17181 if test -n "$PKG_CONFIG" && \
17182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5
17183 ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5
17184 ac_status=$?
17185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17186 test $ac_status = 0; }; then
17187 pkg_cv_GIMP2_LIBS=`$PKG_CONFIG --libs "gimpui-2.0" 2>/dev/null`
17188 test "x$?" != "x0" && pkg_failed=yes
17189 else
17190 pkg_failed=yes
17191 fi
17192 else
17193 pkg_failed=untried
17194 fi
17195
17196
17197
17198 if test $pkg_failed = yes; then
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 printf "%s\n" "no" >&6; }
17201
17202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17203 _pkg_short_errors_supported=yes
17204 else
17205 _pkg_short_errors_supported=no
17206 fi
17207 if test $_pkg_short_errors_supported = yes; then
17208 GIMP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gimpui-2.0" 2>&1`
17209 else
17210 GIMP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gimpui-2.0" 2>&1`
17211 fi
17212 # Put the nasty error message in config.log where it belongs
17213 echo "$GIMP2_PKG_ERRORS" >&5
17214
17215 BUILD_GIMP2=no
17216 elif test $pkg_failed = untried; then
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218 printf "%s\n" "no" >&6; }
17219 BUILD_GIMP2=no
17220 else
17221 GIMP2_CFLAGS=$pkg_cv_GIMP2_CFLAGS
17222 GIMP2_LIBS=$pkg_cv_GIMP2_LIBS
17223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17224 printf "%s\n" "yes" >&6; }
17225 BUILD_GIMP2=yes
17226 fi
17227
17228 fi
17229
17230 # create custom command-line --with option
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build GIMP 2.x Print plugin" >&5
17232 printf %s "checking whether to build GIMP 2.x Print plugin... " >&6; }
17233
17234 # Check whether --with-gimp2 was given.
17235 if test ${with_gimp2+y}
17236 then :
17237 withval=$with_gimp2; case "${withval}" in
17238
17239 yes) BUILD_GIMP2="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
17240 printf "%s\n" "${BUILD_GIMP2}" >&6; } ;;
17241 no) BUILD_GIMP2="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
17242 printf "%s\n" "${BUILD_GIMP2}" >&6; } ;;
17243 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17244 printf "%s\n" "unknown" >&6; }
17245 as_fn_error $? "bad value ${withval} for --with-gimp2" "$LINENO" 5 ;;
17246
17247 esac
17248 else case e in #(
17249 e) if test -z "${BUILD_GIMP2}" ; then
17250 BUILD_GIMP2="(automatic)"
17251 fi
17252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
17253 printf "%s\n" "${BUILD_GIMP2}" >&6; } ; ;;
17254 esac
17255 fi
17256
17257 if test -z "${BUILD_GIMP2}" ; then
17258 BUILD_GIMP2="(automatic)"
17259 fi
17260
17261
17262 # create custom command-line --with option
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)" >&5
17264 printf %s "checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)... " >&6; }
17265
17266 # Check whether --with-gimp2-as-gutenprint was given.
17267 if test ${with_gimp2_as_gutenprint+y}
17268 then :
17269 withval=$with_gimp2_as_gutenprint; case "${withval}" in
17270
17271 yes) BUILD_GIMP2_AS_GUTENPRINT="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
17272 printf "%s\n" "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;;
17273 no) BUILD_GIMP2_AS_GUTENPRINT="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
17274 printf "%s\n" "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;;
17275 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17276 printf "%s\n" "unknown" >&6; }
17277 as_fn_error $? "bad value ${withval} for --with-gimp2-as-gutenprint" "$LINENO" 5 ;;
17278
17279 esac
17280 else case e in #(
17281 e) if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then
17282 BUILD_GIMP2_AS_GUTENPRINT="(automatic)"
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
17285 printf "%s\n" "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ; ;;
17286 esac
17287 fi
17288
17289 if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then
17290 BUILD_GIMP2_AS_GUTENPRINT="(automatic)"
17291 fi
17292
17293
17294 # create custom command-line --enable option
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Gutenprint GTK+-2.0 user interface library" >&5
17296 printf %s "checking whether to build Gutenprint GTK+-2.0 user interface library... " >&6; }
17297 # Check whether --enable-libgutenprintui2 was given.
17298 if test ${enable_libgutenprintui2+y}
17299 then :
17300 enableval=$enable_libgutenprintui2; case "${enableval}" in
17301
17302 yes) BUILD_LIBGUTENPRINTUI2="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
17303 printf "%s\n" "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;;
17304 no) BUILD_LIBGUTENPRINTUI2="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
17305 printf "%s\n" "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;;
17306 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17307 printf "%s\n" "unknown" >&6; }
17308 as_fn_error $? "bad value ${enableval} for --enable-libgutenprintui2" "$LINENO" 5 ;;
17309
17310 esac
17311 else case e in #(
17312 e) if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then
17313 BUILD_LIBGUTENPRINTUI2="(automatic)"
17314 fi
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
17316 printf "%s\n" "${BUILD_LIBGUTENPRINTUI2}" >&6; } ; ;;
17317 esac
17318 fi
17319
17320 if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then
17321 BUILD_LIBGUTENPRINTUI2="(automatic)"
17322 fi
17323
17324
17325 # create custom command-line --enable option
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sample images" >&5
17327 printf %s "checking whether to install sample images... " >&6; }
17328 # Check whether --enable-samples was given.
17329 if test ${enable_samples+y}
17330 then :
17331 enableval=$enable_samples; case "${enableval}" in
17332
17333 yes) INSTALL_SAMPLES="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
17334 printf "%s\n" "${INSTALL_SAMPLES}" >&6; } ;;
17335 no) INSTALL_SAMPLES="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
17336 printf "%s\n" "${INSTALL_SAMPLES}" >&6; } ;;
17337 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17338 printf "%s\n" "unknown" >&6; }
17339 as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
17340
17341 esac
17342 else case e in #(
17343 e) if test -z "${INSTALL_SAMPLES}" ; then
17344 INSTALL_SAMPLES="yes"
17345 fi
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
17347 printf "%s\n" "${INSTALL_SAMPLES}" >&6; } ; ;;
17348 esac
17349 fi
17350
17351 if test -z "${INSTALL_SAMPLES}" ; then
17352 INSTALL_SAMPLES="yes"
17353 fi
17354
17355
17356 # create custom command-line --enable option
17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build escputil" >&5
17358 printf %s "checking whether to build escputil... " >&6; }
17359 # Check whether --enable-escputil was given.
17360 if test ${enable_escputil+y}
17361 then :
17362 enableval=$enable_escputil; case "${enableval}" in
17363
17364 yes) BUILD_ESCPUTIL="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
17365 printf "%s\n" "${BUILD_ESCPUTIL}" >&6; } ;;
17366 no) BUILD_ESCPUTIL="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
17367 printf "%s\n" "${BUILD_ESCPUTIL}" >&6; } ;;
17368 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17369 printf "%s\n" "unknown" >&6; }
17370 as_fn_error $? "bad value ${enableval} for --enable-escputil" "$LINENO" 5 ;;
17371
17372 esac
17373 else case e in #(
17374 e) if test -z "${BUILD_ESCPUTIL}" ; then
17375 BUILD_ESCPUTIL="yes"
17376 fi
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
17378 printf "%s\n" "${BUILD_ESCPUTIL}" >&6; } ; ;;
17379 esac
17380 fi
17381
17382 if test -z "${BUILD_ESCPUTIL}" ; then
17383 BUILD_ESCPUTIL="yes"
17384 fi
17385
17386
17387 # create custom command-line --enable option
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build test programs" >&5
17389 printf %s "checking whether to build test programs... " >&6; }
17390 # Check whether --enable-test was given.
17391 if test ${enable_test+y}
17392 then :
17393 enableval=$enable_test; case "${enableval}" in
17394
17395 yes) BUILD_TEST="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
17396 printf "%s\n" "${BUILD_TEST}" >&6; } ;;
17397 no) BUILD_TEST="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
17398 printf "%s\n" "${BUILD_TEST}" >&6; } ;;
17399 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17400 printf "%s\n" "unknown" >&6; }
17401 as_fn_error $? "bad value ${enableval} for --enable-test" "$LINENO" 5 ;;
17402
17403 esac
17404 else case e in #(
17405 e) if test -z "${BUILD_TEST}" ; then
17406 BUILD_TEST="yes"
17407 fi
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
17409 printf "%s\n" "${BUILD_TEST}" >&6; } ; ;;
17410 esac
17411 fi
17412
17413 if test -z "${BUILD_TEST}" ; then
17414 BUILD_TEST="yes"
17415 fi
17416
17417
17418 # create custom command-line --with option
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Gutenprint documentation" >&5
17420 printf %s "checking whether to build Gutenprint documentation... " >&6; }
17421
17422 # Check whether --with-doc was given.
17423 if test ${with_doc+y}
17424 then :
17425 withval=$with_doc; case "${withval}" in
17426
17427 yes) BUILD_DOC="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5
17428 printf "%s\n" "${BUILD_DOC}" >&6; } ;;
17429 no) BUILD_DOC="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5
17430 printf "%s\n" "${BUILD_DOC}" >&6; } ;;
17431 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17432 printf "%s\n" "unknown" >&6; }
17433 as_fn_error $? "bad value ${withval} for --with-doc" "$LINENO" 5 ;;
17434
17435 esac
17436 else case e in #(
17437 e) if test -z "${BUILD_DOC}" ; then
17438 BUILD_DOC="yes"
17439 fi
17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOC}" >&5
17441 printf "%s\n" "${BUILD_DOC}" >&6; } ; ;;
17442 esac
17443 fi
17444
17445 if test -z "${BUILD_DOC}" ; then
17446 BUILD_DOC="yes"
17447 fi
17448
17449
17450 if test "$BUILD_TEST" = "yes" ; then
17451 BUILD_TESTPATTERN="yes"
17452 else
17453 BUILD_TESTPATTERN="no"
17454 fi
17455
17456 # create custom command-line --enable option
17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build testpattern generator" >&5
17458 printf %s "checking whether to build testpattern generator... " >&6; }
17459 # Check whether --enable-testpattern was given.
17460 if test ${enable_testpattern+y}
17461 then :
17462 enableval=$enable_testpattern; case "${enableval}" in
17463
17464 yes) BUILD_TESTPATTERN="yes" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
17465 printf "%s\n" "${BUILD_TESTPATTERN}" >&6; } ;;
17466 no) BUILD_TESTPATTERN="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
17467 printf "%s\n" "${BUILD_TESTPATTERN}" >&6; } ;;
17468 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17469 printf "%s\n" "unknown" >&6; }
17470 as_fn_error $? "bad value ${enableval} for --enable-testpattern" "$LINENO" 5 ;;
17471
17472 esac
17473 else case e in #(
17474 e) if test -z "${BUILD_TESTPATTERN}" ; then
17475 BUILD_TESTPATTERN="(automatic)"
17476 fi
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
17478 printf "%s\n" "${BUILD_TESTPATTERN}" >&6; } ; ;;
17479 esac
17480 fi
17481
17482 if test -z "${BUILD_TESTPATTERN}" ; then
17483 BUILD_TESTPATTERN="(automatic)"
17484 fi
17485
17486
17487
17488
17489
17490
17491
17492 am_save_CPPFLAGS="$CPPFLAGS"
17493
17494 for element in $INCICONV; do
17495 haveit=
17496 for x in $CPPFLAGS; do
17497
17498 acl_save_prefix="$prefix"
17499 prefix="$acl_final_prefix"
17500 acl_save_exec_prefix="$exec_prefix"
17501 exec_prefix="$acl_final_exec_prefix"
17502 eval x=\"$x\"
17503 exec_prefix="$acl_save_exec_prefix"
17504 prefix="$acl_save_prefix"
17505
17506 if test "X$x" = "X$element"; then
17507 haveit=yes
17508 break
17509 fi
17510 done
17511 if test -z "$haveit"; then
17512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17513 fi
17514 done
17515
17516
17517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17518 printf %s "checking for iconv... " >&6; }
17519 if test ${am_cv_func_iconv+y}
17520 then :
17521 printf %s "(cached) " >&6
17522 else case e in #(
17523 e)
17524 am_cv_func_iconv="no, consider installing GNU libiconv"
17525 am_cv_lib_iconv=no
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17528 #include <stdlib.h>
17529 #include <iconv.h>
17530 int
17531 main (void)
17532 {
17533 iconv_t cd = iconv_open("","");
17534 iconv(cd,NULL,NULL,NULL,NULL);
17535 iconv_close(cd);
17536 ;
17537 return 0;
17538 }
17539 _ACEOF
17540 if ac_fn_c_try_link "$LINENO"
17541 then :
17542 am_cv_func_iconv=yes
17543 fi
17544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17545 conftest$ac_exeext conftest.$ac_ext
17546 if test "$am_cv_func_iconv" != yes; then
17547 am_save_LIBS="$LIBS"
17548 LIBS="$LIBS $LIBICONV"
17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17551 #include <stdlib.h>
17552 #include <iconv.h>
17553 int
17554 main (void)
17555 {
17556 iconv_t cd = iconv_open("","");
17557 iconv(cd,NULL,NULL,NULL,NULL);
17558 iconv_close(cd);
17559 ;
17560 return 0;
17561 }
17562 _ACEOF
17563 if ac_fn_c_try_link "$LINENO"
17564 then :
17565 am_cv_lib_iconv=yes
17566 am_cv_func_iconv=yes
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS="$am_save_LIBS"
17571 fi
17572 ;;
17573 esac
17574 fi
17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17576 printf "%s\n" "$am_cv_func_iconv" >&6; }
17577 if test "$am_cv_func_iconv" = yes; then
17578
17579 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17580
17581 fi
17582 if test "$am_cv_lib_iconv" = yes; then
17583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17584 printf %s "checking how to link with libiconv... " >&6; }
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17586 printf "%s\n" "$LIBICONV" >&6; }
17587 else
17588 CPPFLAGS="$am_save_CPPFLAGS"
17589 LIBICONV=
17590 LTLIBICONV=
17591 fi
17592
17593
17594
17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
17596 printf %s "checking for library containing strerror... " >&6; }
17597 if test ${ac_cv_search_strerror+y}
17598 then :
17599 printf %s "(cached) " >&6
17600 else case e in #(
17601 e) ac_func_search_save_LIBS=$LIBS
17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17604
17605 /* Override any GCC internal prototype to avoid an error.
17606 Use char because int might match the return type of a GCC
17607 builtin and then its argument prototype would still apply.
17608 The 'extern "C"' is for builds by C++ compilers;
17609 although this is not generally supported in C code supporting it here
17610 has little cost and some practical benefit (sr 110532). */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 char strerror (void);
17615 int
17616 main (void)
17617 {
17618 return strerror ();
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 for ac_lib in '' cposix
17624 do
17625 if test -z "$ac_lib"; then
17626 ac_res="none required"
17627 else
17628 ac_res=-l$ac_lib
17629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17630 fi
17631 if ac_fn_c_try_link "$LINENO"
17632 then :
17633 ac_cv_search_strerror=$ac_res
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17636 conftest$ac_exeext
17637 if test ${ac_cv_search_strerror+y}
17638 then :
17639 break
17640 fi
17641 done
17642 if test ${ac_cv_search_strerror+y}
17643 then :
17644
17645 else case e in #(
17646 e) ac_cv_search_strerror=no ;;
17647 esac
17648 fi
17649 rm conftest.$ac_ext
17650 LIBS=$ac_func_search_save_LIBS ;;
17651 esac
17652 fi
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
17654 printf "%s\n" "$ac_cv_search_strerror" >&6; }
17655 ac_res=$ac_cv_search_strerror
17656 if test "$ac_res" != no
17657 then :
17658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17659
17660 fi
17661
17662 for ac_prog in gawk mawk nawk awk
17663 do
17664 # Extract the first word of "$ac_prog", so it can be a program name with args.
17665 set dummy $ac_prog; ac_word=$2
17666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17667 printf %s "checking for $ac_word... " >&6; }
17668 if test ${ac_cv_prog_AWK+y}
17669 then :
17670 printf %s "(cached) " >&6
17671 else case e in #(
17672 e) if test -n "$AWK"; then
17673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17674 else
17675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in $PATH
17677 do
17678 IFS=$as_save_IFS
17679 case $as_dir in #(((
17680 '') as_dir=./ ;;
17681 */) ;;
17682 *) as_dir=$as_dir/ ;;
17683 esac
17684 for ac_exec_ext in '' $ac_executable_extensions; do
17685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17686 ac_cv_prog_AWK="$ac_prog"
17687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17688 break 2
17689 fi
17690 done
17691 done
17692 IFS=$as_save_IFS
17693
17694 fi ;;
17695 esac
17696 fi
17697 AWK=$ac_cv_prog_AWK
17698 if test -n "$AWK"; then
17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17700 printf "%s\n" "$AWK" >&6; }
17701 else
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 printf "%s\n" "no" >&6; }
17704 fi
17705
17706
17707 test -n "$AWK" && break
17708 done
17709
17710 ac_ext=c
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715 if test -n "$ac_tool_prefix"; then
17716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17719 printf %s "checking for $ac_word... " >&6; }
17720 if test ${ac_cv_prog_CC+y}
17721 then :
17722 printf %s "(cached) " >&6
17723 else case e in #(
17724 e) if test -n "$CC"; then
17725 ac_cv_prog_CC="$CC" # Let the user override the test.
17726 else
17727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17728 for as_dir in $PATH
17729 do
17730 IFS=$as_save_IFS
17731 case $as_dir in #(((
17732 '') as_dir=./ ;;
17733 */) ;;
17734 *) as_dir=$as_dir/ ;;
17735 esac
17736 for ac_exec_ext in '' $ac_executable_extensions; do
17737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17740 break 2
17741 fi
17742 done
17743 done
17744 IFS=$as_save_IFS
17745
17746 fi ;;
17747 esac
17748 fi
17749 CC=$ac_cv_prog_CC
17750 if test -n "$CC"; then
17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17752 printf "%s\n" "$CC" >&6; }
17753 else
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755 printf "%s\n" "no" >&6; }
17756 fi
17757
17758
17759 fi
17760 if test -z "$ac_cv_prog_CC"; then
17761 ac_ct_CC=$CC
17762 # Extract the first word of "gcc", so it can be a program name with args.
17763 set dummy gcc; ac_word=$2
17764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17765 printf %s "checking for $ac_word... " >&6; }
17766 if test ${ac_cv_prog_ac_ct_CC+y}
17767 then :
17768 printf %s "(cached) " >&6
17769 else case e in #(
17770 e) if test -n "$ac_ct_CC"; then
17771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17772 else
17773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17774 for as_dir in $PATH
17775 do
17776 IFS=$as_save_IFS
17777 case $as_dir in #(((
17778 '') as_dir=./ ;;
17779 */) ;;
17780 *) as_dir=$as_dir/ ;;
17781 esac
17782 for ac_exec_ext in '' $ac_executable_extensions; do
17783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17784 ac_cv_prog_ac_ct_CC="gcc"
17785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17786 break 2
17787 fi
17788 done
17789 done
17790 IFS=$as_save_IFS
17791
17792 fi ;;
17793 esac
17794 fi
17795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17796 if test -n "$ac_ct_CC"; then
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17798 printf "%s\n" "$ac_ct_CC" >&6; }
17799 else
17800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17801 printf "%s\n" "no" >&6; }
17802 fi
17803
17804 if test "x$ac_ct_CC" = x; then
17805 CC=""
17806 else
17807 case $cross_compiling:$ac_tool_warned in
17808 yes:)
17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17811 ac_tool_warned=yes ;;
17812 esac
17813 CC=$ac_ct_CC
17814 fi
17815 else
17816 CC="$ac_cv_prog_CC"
17817 fi
17818
17819 if test -z "$CC"; then
17820 if test -n "$ac_tool_prefix"; then
17821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17822 set dummy ${ac_tool_prefix}cc; ac_word=$2
17823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 printf %s "checking for $ac_word... " >&6; }
17825 if test ${ac_cv_prog_CC+y}
17826 then :
17827 printf %s "(cached) " >&6
17828 else case e in #(
17829 e) if test -n "$CC"; then
17830 ac_cv_prog_CC="$CC" # Let the user override the test.
17831 else
17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17833 for as_dir in $PATH
17834 do
17835 IFS=$as_save_IFS
17836 case $as_dir in #(((
17837 '') as_dir=./ ;;
17838 */) ;;
17839 *) as_dir=$as_dir/ ;;
17840 esac
17841 for ac_exec_ext in '' $ac_executable_extensions; do
17842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17843 ac_cv_prog_CC="${ac_tool_prefix}cc"
17844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17845 break 2
17846 fi
17847 done
17848 done
17849 IFS=$as_save_IFS
17850
17851 fi ;;
17852 esac
17853 fi
17854 CC=$ac_cv_prog_CC
17855 if test -n "$CC"; then
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17857 printf "%s\n" "$CC" >&6; }
17858 else
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860 printf "%s\n" "no" >&6; }
17861 fi
17862
17863
17864 fi
17865 fi
17866 if test -z "$CC"; then
17867 # Extract the first word of "cc", so it can be a program name with args.
17868 set dummy cc; ac_word=$2
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17870 printf %s "checking for $ac_word... " >&6; }
17871 if test ${ac_cv_prog_CC+y}
17872 then :
17873 printf %s "(cached) " >&6
17874 else case e in #(
17875 e) if test -n "$CC"; then
17876 ac_cv_prog_CC="$CC" # Let the user override the test.
17877 else
17878 ac_prog_rejected=no
17879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $PATH
17881 do
17882 IFS=$as_save_IFS
17883 case $as_dir in #(((
17884 '') as_dir=./ ;;
17885 */) ;;
17886 *) as_dir=$as_dir/ ;;
17887 esac
17888 for ac_exec_ext in '' $ac_executable_extensions; do
17889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17890 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17891 ac_prog_rejected=yes
17892 continue
17893 fi
17894 ac_cv_prog_CC="cc"
17895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17896 break 2
17897 fi
17898 done
17899 done
17900 IFS=$as_save_IFS
17901
17902 if test $ac_prog_rejected = yes; then
17903 # We found a bogon in the path, so make sure we never use it.
17904 set dummy $ac_cv_prog_CC
17905 shift
17906 if test $# != 0; then
17907 # We chose a different compiler from the bogus one.
17908 # However, it has the same basename, so the bogon will be chosen
17909 # first if we set CC to just the basename; use the full file name.
17910 shift
17911 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
17912 fi
17913 fi
17914 fi ;;
17915 esac
17916 fi
17917 CC=$ac_cv_prog_CC
17918 if test -n "$CC"; then
17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17920 printf "%s\n" "$CC" >&6; }
17921 else
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 printf "%s\n" "no" >&6; }
17924 fi
17925
17926
17927 fi
17928 if test -z "$CC"; then
17929 if test -n "$ac_tool_prefix"; then
17930 for ac_prog in cl.exe
17931 do
17932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17935 printf %s "checking for $ac_word... " >&6; }
17936 if test ${ac_cv_prog_CC+y}
17937 then :
17938 printf %s "(cached) " >&6
17939 else case e in #(
17940 e) if test -n "$CC"; then
17941 ac_cv_prog_CC="$CC" # Let the user override the test.
17942 else
17943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17944 for as_dir in $PATH
17945 do
17946 IFS=$as_save_IFS
17947 case $as_dir in #(((
17948 '') as_dir=./ ;;
17949 */) ;;
17950 *) as_dir=$as_dir/ ;;
17951 esac
17952 for ac_exec_ext in '' $ac_executable_extensions; do
17953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17956 break 2
17957 fi
17958 done
17959 done
17960 IFS=$as_save_IFS
17961
17962 fi ;;
17963 esac
17964 fi
17965 CC=$ac_cv_prog_CC
17966 if test -n "$CC"; then
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17968 printf "%s\n" "$CC" >&6; }
17969 else
17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17971 printf "%s\n" "no" >&6; }
17972 fi
17973
17974
17975 test -n "$CC" && break
17976 done
17977 fi
17978 if test -z "$CC"; then
17979 ac_ct_CC=$CC
17980 for ac_prog in cl.exe
17981 do
17982 # Extract the first word of "$ac_prog", so it can be a program name with args.
17983 set dummy $ac_prog; ac_word=$2
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17985 printf %s "checking for $ac_word... " >&6; }
17986 if test ${ac_cv_prog_ac_ct_CC+y}
17987 then :
17988 printf %s "(cached) " >&6
17989 else case e in #(
17990 e) if test -n "$ac_ct_CC"; then
17991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17992 else
17993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17994 for as_dir in $PATH
17995 do
17996 IFS=$as_save_IFS
17997 case $as_dir in #(((
17998 '') as_dir=./ ;;
17999 */) ;;
18000 *) as_dir=$as_dir/ ;;
18001 esac
18002 for ac_exec_ext in '' $ac_executable_extensions; do
18003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18004 ac_cv_prog_ac_ct_CC="$ac_prog"
18005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18006 break 2
18007 fi
18008 done
18009 done
18010 IFS=$as_save_IFS
18011
18012 fi ;;
18013 esac
18014 fi
18015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18016 if test -n "$ac_ct_CC"; then
18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18018 printf "%s\n" "$ac_ct_CC" >&6; }
18019 else
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18021 printf "%s\n" "no" >&6; }
18022 fi
18023
18024
18025 test -n "$ac_ct_CC" && break
18026 done
18027
18028 if test "x$ac_ct_CC" = x; then
18029 CC=""
18030 else
18031 case $cross_compiling:$ac_tool_warned in
18032 yes:)
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18035 ac_tool_warned=yes ;;
18036 esac
18037 CC=$ac_ct_CC
18038 fi
18039 fi
18040
18041 fi
18042 if test -z "$CC"; then
18043 if test -n "$ac_tool_prefix"; then
18044 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
18045 set dummy ${ac_tool_prefix}clang; ac_word=$2
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18047 printf %s "checking for $ac_word... " >&6; }
18048 if test ${ac_cv_prog_CC+y}
18049 then :
18050 printf %s "(cached) " >&6
18051 else case e in #(
18052 e) if test -n "$CC"; then
18053 ac_cv_prog_CC="$CC" # Let the user override the test.
18054 else
18055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18056 for as_dir in $PATH
18057 do
18058 IFS=$as_save_IFS
18059 case $as_dir in #(((
18060 '') as_dir=./ ;;
18061 */) ;;
18062 *) as_dir=$as_dir/ ;;
18063 esac
18064 for ac_exec_ext in '' $ac_executable_extensions; do
18065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18066 ac_cv_prog_CC="${ac_tool_prefix}clang"
18067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18068 break 2
18069 fi
18070 done
18071 done
18072 IFS=$as_save_IFS
18073
18074 fi ;;
18075 esac
18076 fi
18077 CC=$ac_cv_prog_CC
18078 if test -n "$CC"; then
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18080 printf "%s\n" "$CC" >&6; }
18081 else
18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 printf "%s\n" "no" >&6; }
18084 fi
18085
18086
18087 fi
18088 if test -z "$ac_cv_prog_CC"; then
18089 ac_ct_CC=$CC
18090 # Extract the first word of "clang", so it can be a program name with args.
18091 set dummy clang; ac_word=$2
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18093 printf %s "checking for $ac_word... " >&6; }
18094 if test ${ac_cv_prog_ac_ct_CC+y}
18095 then :
18096 printf %s "(cached) " >&6
18097 else case e in #(
18098 e) if test -n "$ac_ct_CC"; then
18099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18100 else
18101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18102 for as_dir in $PATH
18103 do
18104 IFS=$as_save_IFS
18105 case $as_dir in #(((
18106 '') as_dir=./ ;;
18107 */) ;;
18108 *) as_dir=$as_dir/ ;;
18109 esac
18110 for ac_exec_ext in '' $ac_executable_extensions; do
18111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18112 ac_cv_prog_ac_ct_CC="clang"
18113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18114 break 2
18115 fi
18116 done
18117 done
18118 IFS=$as_save_IFS
18119
18120 fi ;;
18121 esac
18122 fi
18123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18124 if test -n "$ac_ct_CC"; then
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18126 printf "%s\n" "$ac_ct_CC" >&6; }
18127 else
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 printf "%s\n" "no" >&6; }
18130 fi
18131
18132 if test "x$ac_ct_CC" = x; then
18133 CC=""
18134 else
18135 case $cross_compiling:$ac_tool_warned in
18136 yes:)
18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18139 ac_tool_warned=yes ;;
18140 esac
18141 CC=$ac_ct_CC
18142 fi
18143 else
18144 CC="$ac_cv_prog_CC"
18145 fi
18146
18147 fi
18148
18149
18150 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18151 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18152 as_fn_error $? "no acceptable C compiler found in \$PATH
18153 See 'config.log' for more details" "$LINENO" 5; }
18154
18155 # Provide some information about the compiler.
18156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18157 set X $ac_compile
18158 ac_compiler=$2
18159 for ac_option in --version -v -V -qversion -version; do
18160 { { ac_try="$ac_compiler $ac_option >&5"
18161 case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18166 printf "%s\n" "$ac_try_echo"; } >&5
18167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18168 ac_status=$?
18169 if test -s conftest.err; then
18170 sed '10a\
18171 ... rest of stderr output deleted ...
18172 10q' conftest.err >conftest.er1
18173 cat conftest.er1 >&5
18174 fi
18175 rm -f conftest.er1 conftest.err
18176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }
18178 done
18179
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
18181 printf %s "checking whether the compiler supports GNU C... " >&6; }
18182 if test ${ac_cv_c_compiler_gnu+y}
18183 then :
18184 printf %s "(cached) " >&6
18185 else case e in #(
18186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188
18189 int
18190 main (void)
18191 {
18192 #ifndef __GNUC__
18193 choke me
18194 #endif
18195
18196 ;
18197 return 0;
18198 }
18199 _ACEOF
18200 if ac_fn_c_try_compile "$LINENO"
18201 then :
18202 ac_compiler_gnu=yes
18203 else case e in #(
18204 e) ac_compiler_gnu=no ;;
18205 esac
18206 fi
18207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18209 ;;
18210 esac
18211 fi
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18213 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
18214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18215
18216 if test $ac_compiler_gnu = yes; then
18217 GCC=yes
18218 else
18219 GCC=
18220 fi
18221 ac_test_CFLAGS=${CFLAGS+y}
18222 ac_save_CFLAGS=$CFLAGS
18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18224 printf %s "checking whether $CC accepts -g... " >&6; }
18225 if test ${ac_cv_prog_cc_g+y}
18226 then :
18227 printf %s "(cached) " >&6
18228 else case e in #(
18229 e) ac_save_c_werror_flag=$ac_c_werror_flag
18230 ac_c_werror_flag=yes
18231 ac_cv_prog_cc_g=no
18232 CFLAGS="-g"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235
18236 int
18237 main (void)
18238 {
18239
18240 ;
18241 return 0;
18242 }
18243 _ACEOF
18244 if ac_fn_c_try_compile "$LINENO"
18245 then :
18246 ac_cv_prog_cc_g=yes
18247 else case e in #(
18248 e) CFLAGS=""
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251
18252 int
18253 main (void)
18254 {
18255
18256 ;
18257 return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_compile "$LINENO"
18261 then :
18262
18263 else case e in #(
18264 e) ac_c_werror_flag=$ac_save_c_werror_flag
18265 CFLAGS="-g"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268
18269 int
18270 main (void)
18271 {
18272
18273 ;
18274 return 0;
18275 }
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"
18278 then :
18279 ac_cv_prog_cc_g=yes
18280 fi
18281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18282 esac
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18285 esac
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18288 ac_c_werror_flag=$ac_save_c_werror_flag ;;
18289 esac
18290 fi
18291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18292 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
18293 if test $ac_test_CFLAGS; then
18294 CFLAGS=$ac_save_CFLAGS
18295 elif test $ac_cv_prog_cc_g = yes; then
18296 if test "$GCC" = yes; then
18297 CFLAGS="-g -O2"
18298 else
18299 CFLAGS="-g"
18300 fi
18301 else
18302 if test "$GCC" = yes; then
18303 CFLAGS="-O2"
18304 else
18305 CFLAGS=
18306 fi
18307 fi
18308 ac_prog_cc_stdc=no
18309 if test x$ac_prog_cc_stdc = xno
18310 then :
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
18312 printf %s "checking for $CC option to enable C11 features... " >&6; }
18313 if test ${ac_cv_prog_cc_c11+y}
18314 then :
18315 printf %s "(cached) " >&6
18316 else case e in #(
18317 e) ac_cv_prog_cc_c11=no
18318 ac_save_CC=$CC
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 $ac_c_conftest_c11_program
18322 _ACEOF
18323 for ac_arg in '' -std=gnu11
18324 do
18325 CC="$ac_save_CC $ac_arg"
18326 if ac_fn_c_try_compile "$LINENO"
18327 then :
18328 ac_cv_prog_cc_c11=$ac_arg
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext conftest.beam
18331 test "x$ac_cv_prog_cc_c11" != "xno" && break
18332 done
18333 rm -f conftest.$ac_ext
18334 CC=$ac_save_CC ;;
18335 esac
18336 fi
18337
18338 if test "x$ac_cv_prog_cc_c11" = xno
18339 then :
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18341 printf "%s\n" "unsupported" >&6; }
18342 else case e in #(
18343 e) if test "x$ac_cv_prog_cc_c11" = x
18344 then :
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18346 printf "%s\n" "none needed" >&6; }
18347 else case e in #(
18348 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
18349 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
18350 CC="$CC $ac_cv_prog_cc_c11" ;;
18351 esac
18352 fi
18353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
18354 ac_prog_cc_stdc=c11 ;;
18355 esac
18356 fi
18357 fi
18358 if test x$ac_prog_cc_stdc = xno
18359 then :
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
18361 printf %s "checking for $CC option to enable C99 features... " >&6; }
18362 if test ${ac_cv_prog_cc_c99+y}
18363 then :
18364 printf %s "(cached) " >&6
18365 else case e in #(
18366 e) ac_cv_prog_cc_c99=no
18367 ac_save_CC=$CC
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 $ac_c_conftest_c99_program
18371 _ACEOF
18372 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
18373 do
18374 CC="$ac_save_CC $ac_arg"
18375 if ac_fn_c_try_compile "$LINENO"
18376 then :
18377 ac_cv_prog_cc_c99=$ac_arg
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext conftest.beam
18380 test "x$ac_cv_prog_cc_c99" != "xno" && break
18381 done
18382 rm -f conftest.$ac_ext
18383 CC=$ac_save_CC ;;
18384 esac
18385 fi
18386
18387 if test "x$ac_cv_prog_cc_c99" = xno
18388 then :
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18390 printf "%s\n" "unsupported" >&6; }
18391 else case e in #(
18392 e) if test "x$ac_cv_prog_cc_c99" = x
18393 then :
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18395 printf "%s\n" "none needed" >&6; }
18396 else case e in #(
18397 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18398 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
18399 CC="$CC $ac_cv_prog_cc_c99" ;;
18400 esac
18401 fi
18402 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18403 ac_prog_cc_stdc=c99 ;;
18404 esac
18405 fi
18406 fi
18407 if test x$ac_prog_cc_stdc = xno
18408 then :
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
18410 printf %s "checking for $CC option to enable C89 features... " >&6; }
18411 if test ${ac_cv_prog_cc_c89+y}
18412 then :
18413 printf %s "(cached) " >&6
18414 else case e in #(
18415 e) ac_cv_prog_cc_c89=no
18416 ac_save_CC=$CC
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 $ac_c_conftest_c89_program
18420 _ACEOF
18421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18422 do
18423 CC="$ac_save_CC $ac_arg"
18424 if ac_fn_c_try_compile "$LINENO"
18425 then :
18426 ac_cv_prog_cc_c89=$ac_arg
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext conftest.beam
18429 test "x$ac_cv_prog_cc_c89" != "xno" && break
18430 done
18431 rm -f conftest.$ac_ext
18432 CC=$ac_save_CC ;;
18433 esac
18434 fi
18435
18436 if test "x$ac_cv_prog_cc_c89" = xno
18437 then :
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18439 printf "%s\n" "unsupported" >&6; }
18440 else case e in #(
18441 e) if test "x$ac_cv_prog_cc_c89" = x
18442 then :
18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18444 printf "%s\n" "none needed" >&6; }
18445 else case e in #(
18446 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18447 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
18448 CC="$CC $ac_cv_prog_cc_c89" ;;
18449 esac
18450 fi
18451 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18452 ac_prog_cc_stdc=c89 ;;
18453 esac
18454 fi
18455 fi
18456
18457 ac_ext=c
18458 ac_cpp='$CPP $CPPFLAGS'
18459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18462
18463
18464 ac_ext=c
18465 ac_cpp='$CPP $CPPFLAGS'
18466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18470 printf %s "checking whether $CC understands -c and -o together... " >&6; }
18471 if test ${am_cv_prog_cc_c_o+y}
18472 then :
18473 printf %s "(cached) " >&6
18474 else case e in #(
18475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477
18478 int
18479 main (void)
18480 {
18481
18482 ;
18483 return 0;
18484 }
18485 _ACEOF
18486 # Make sure it works both with $CC and with simple cc.
18487 # Following AC_PROG_CC_C_O, we do the test twice because some
18488 # compilers refuse to overwrite an existing .o file with -o,
18489 # though they will create one.
18490 am_cv_prog_cc_c_o=yes
18491 for am_i in 1 2; do
18492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } \
18497 && test -f conftest2.$ac_objext; then
18498 : OK
18499 else
18500 am_cv_prog_cc_c_o=no
18501 break
18502 fi
18503 done
18504 # aligned with autoconf, so not including core; see bug#72225.
18505 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
18506 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
18507 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
18508 unset am_i ;;
18509 esac
18510 fi
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18512 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
18513 if test "$am_cv_prog_cc_c_o" != yes; then
18514 # Losing compiler, so override with the script.
18515 # FIXME: It is wrong to rewrite CC.
18516 # But if we don't then we get into trouble of one sort or another.
18517 # A longer-term fix would be to have automake use am__CC in this case,
18518 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18519 CC="$am_aux_dir/compile $CC"
18520 fi
18521 ac_ext=c
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527
18528 depcc="$CC" am_compiler_list=
18529
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18531 printf %s "checking dependency style of $depcc... " >&6; }
18532 if test ${am_cv_CC_dependencies_compiler_type+y}
18533 then :
18534 printf %s "(cached) " >&6
18535 else case e in #(
18536 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18537 # We make a subdir and do the tests there. Otherwise we can end up
18538 # making bogus files that we don't know about and never remove. For
18539 # instance it was reported that on HP-UX the gcc test will end up
18540 # making a dummy file named 'D' -- because '-MD' means "put the output
18541 # in D".
18542 rm -rf conftest.dir
18543 mkdir conftest.dir
18544 # Copy depcomp to subdir because otherwise we won't find it if we're
18545 # using a relative directory.
18546 cp "$am_depcomp" conftest.dir
18547 cd conftest.dir
18548 # We will build objects and dependencies in a subdirectory because
18549 # it helps to detect inapplicable dependency modes. For instance
18550 # both Tru64's cc and ICC support -MD to output dependencies as a
18551 # side effect of compilation, but ICC will put the dependencies in
18552 # the current directory while Tru64 will put them in the object
18553 # directory.
18554 mkdir sub
18555
18556 am_cv_CC_dependencies_compiler_type=none
18557 if test "$am_compiler_list" = ""; then
18558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18559 fi
18560 am__universal=false
18561 case " $depcc " in #(
18562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18563 esac
18564
18565 for depmode in $am_compiler_list; do
18566 # Setup a source with many dependencies, because some compilers
18567 # like to wrap large dependency lists on column 80 (with \), and
18568 # we should not choose a depcomp mode which is confused by this.
18569 #
18570 # We need to recreate these files for each test, as the compiler may
18571 # overwrite some of them when testing with obscure command lines.
18572 # This happens at least with the AIX C compiler.
18573 : > sub/conftest.c
18574 for i in 1 2 3 4 5 6; do
18575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18576 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18577 # Solaris 10 /bin/sh.
18578 echo '/* dummy */' > sub/conftst$i.h
18579 done
18580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18581
18582 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18583 # mode. It turns out that the SunPro C++ compiler does not properly
18584 # handle '-M -o', and we need to detect this. Also, some Intel
18585 # versions had trouble with output in subdirs.
18586 am__obj=sub/conftest.${OBJEXT-o}
18587 am__minus_obj="-o $am__obj"
18588 case $depmode in
18589 gcc)
18590 # This depmode causes a compiler race in universal mode.
18591 test "$am__universal" = false || continue
18592 ;;
18593 nosideeffect)
18594 # After this tag, mechanisms are not by side-effect, so they'll
18595 # only be used when explicitly requested.
18596 if test "x$enable_dependency_tracking" = xyes; then
18597 continue
18598 else
18599 break
18600 fi
18601 ;;
18602 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18603 # This compiler won't grok '-c -o', but also, the minuso test has
18604 # not run yet. These depmodes are late enough in the game, and
18605 # so weak that their functioning should not be impacted.
18606 am__obj=conftest.${OBJEXT-o}
18607 am__minus_obj=
18608 ;;
18609 none) break ;;
18610 esac
18611 if depmode=$depmode \
18612 source=sub/conftest.c object=$am__obj \
18613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18615 >/dev/null 2>conftest.err &&
18616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18620 # icc doesn't choke on unknown options, it will just issue warnings
18621 # or remarks (even with -Werror). So we grep stderr for any message
18622 # that says an option was ignored or not supported.
18623 # When given -MP, icc 7.0 and 7.1 complain thus:
18624 # icc: Command line warning: ignoring option '-M'; no argument required
18625 # The diagnosis changed in icc 8.0:
18626 # icc: Command line remark: option '-MP' not supported
18627 if (grep 'ignoring option' conftest.err ||
18628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18629 am_cv_CC_dependencies_compiler_type=$depmode
18630 break
18631 fi
18632 fi
18633 done
18634
18635 cd ..
18636 rm -rf conftest.dir
18637 else
18638 am_cv_CC_dependencies_compiler_type=none
18639 fi
18640 ;;
18641 esac
18642 fi
18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18644 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
18645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18646
18647 if
18648 test "x$enable_dependency_tracking" != xno \
18649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18650 am__fastdepCC_TRUE=
18651 am__fastdepCC_FALSE='#'
18652 else
18653 am__fastdepCC_TRUE='#'
18654 am__fastdepCC_FALSE=
18655 fi
18656
18657
18658 ac_ext=c
18659 ac_cpp='$CPP $CPPFLAGS'
18660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18663 if test -n "$ac_tool_prefix"; then
18664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18667 printf %s "checking for $ac_word... " >&6; }
18668 if test ${ac_cv_prog_CC+y}
18669 then :
18670 printf %s "(cached) " >&6
18671 else case e in #(
18672 e) if test -n "$CC"; then
18673 ac_cv_prog_CC="$CC" # Let the user override the test.
18674 else
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676 for as_dir in $PATH
18677 do
18678 IFS=$as_save_IFS
18679 case $as_dir in #(((
18680 '') as_dir=./ ;;
18681 */) ;;
18682 *) as_dir=$as_dir/ ;;
18683 esac
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18688 break 2
18689 fi
18690 done
18691 done
18692 IFS=$as_save_IFS
18693
18694 fi ;;
18695 esac
18696 fi
18697 CC=$ac_cv_prog_CC
18698 if test -n "$CC"; then
18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18700 printf "%s\n" "$CC" >&6; }
18701 else
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 printf "%s\n" "no" >&6; }
18704 fi
18705
18706
18707 fi
18708 if test -z "$ac_cv_prog_CC"; then
18709 ac_ct_CC=$CC
18710 # Extract the first word of "gcc", so it can be a program name with args.
18711 set dummy gcc; ac_word=$2
18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18713 printf %s "checking for $ac_word... " >&6; }
18714 if test ${ac_cv_prog_ac_ct_CC+y}
18715 then :
18716 printf %s "(cached) " >&6
18717 else case e in #(
18718 e) if test -n "$ac_ct_CC"; then
18719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18720 else
18721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722 for as_dir in $PATH
18723 do
18724 IFS=$as_save_IFS
18725 case $as_dir in #(((
18726 '') as_dir=./ ;;
18727 */) ;;
18728 *) as_dir=$as_dir/ ;;
18729 esac
18730 for ac_exec_ext in '' $ac_executable_extensions; do
18731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18732 ac_cv_prog_ac_ct_CC="gcc"
18733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18734 break 2
18735 fi
18736 done
18737 done
18738 IFS=$as_save_IFS
18739
18740 fi ;;
18741 esac
18742 fi
18743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18744 if test -n "$ac_ct_CC"; then
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18746 printf "%s\n" "$ac_ct_CC" >&6; }
18747 else
18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18749 printf "%s\n" "no" >&6; }
18750 fi
18751
18752 if test "x$ac_ct_CC" = x; then
18753 CC=""
18754 else
18755 case $cross_compiling:$ac_tool_warned in
18756 yes:)
18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18759 ac_tool_warned=yes ;;
18760 esac
18761 CC=$ac_ct_CC
18762 fi
18763 else
18764 CC="$ac_cv_prog_CC"
18765 fi
18766
18767 if test -z "$CC"; then
18768 if test -n "$ac_tool_prefix"; then
18769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18770 set dummy ${ac_tool_prefix}cc; ac_word=$2
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772 printf %s "checking for $ac_word... " >&6; }
18773 if test ${ac_cv_prog_CC+y}
18774 then :
18775 printf %s "(cached) " >&6
18776 else case e in #(
18777 e) if test -n "$CC"; then
18778 ac_cv_prog_CC="$CC" # Let the user override the test.
18779 else
18780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18781 for as_dir in $PATH
18782 do
18783 IFS=$as_save_IFS
18784 case $as_dir in #(((
18785 '') as_dir=./ ;;
18786 */) ;;
18787 *) as_dir=$as_dir/ ;;
18788 esac
18789 for ac_exec_ext in '' $ac_executable_extensions; do
18790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18791 ac_cv_prog_CC="${ac_tool_prefix}cc"
18792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18793 break 2
18794 fi
18795 done
18796 done
18797 IFS=$as_save_IFS
18798
18799 fi ;;
18800 esac
18801 fi
18802 CC=$ac_cv_prog_CC
18803 if test -n "$CC"; then
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18805 printf "%s\n" "$CC" >&6; }
18806 else
18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18808 printf "%s\n" "no" >&6; }
18809 fi
18810
18811
18812 fi
18813 fi
18814 if test -z "$CC"; then
18815 # Extract the first word of "cc", so it can be a program name with args.
18816 set dummy cc; ac_word=$2
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18818 printf %s "checking for $ac_word... " >&6; }
18819 if test ${ac_cv_prog_CC+y}
18820 then :
18821 printf %s "(cached) " >&6
18822 else case e in #(
18823 e) if test -n "$CC"; then
18824 ac_cv_prog_CC="$CC" # Let the user override the test.
18825 else
18826 ac_prog_rejected=no
18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $PATH
18829 do
18830 IFS=$as_save_IFS
18831 case $as_dir in #(((
18832 '') as_dir=./ ;;
18833 */) ;;
18834 *) as_dir=$as_dir/ ;;
18835 esac
18836 for ac_exec_ext in '' $ac_executable_extensions; do
18837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18838 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18839 ac_prog_rejected=yes
18840 continue
18841 fi
18842 ac_cv_prog_CC="cc"
18843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18844 break 2
18845 fi
18846 done
18847 done
18848 IFS=$as_save_IFS
18849
18850 if test $ac_prog_rejected = yes; then
18851 # We found a bogon in the path, so make sure we never use it.
18852 set dummy $ac_cv_prog_CC
18853 shift
18854 if test $# != 0; then
18855 # We chose a different compiler from the bogus one.
18856 # However, it has the same basename, so the bogon will be chosen
18857 # first if we set CC to just the basename; use the full file name.
18858 shift
18859 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
18860 fi
18861 fi
18862 fi ;;
18863 esac
18864 fi
18865 CC=$ac_cv_prog_CC
18866 if test -n "$CC"; then
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18868 printf "%s\n" "$CC" >&6; }
18869 else
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871 printf "%s\n" "no" >&6; }
18872 fi
18873
18874
18875 fi
18876 if test -z "$CC"; then
18877 if test -n "$ac_tool_prefix"; then
18878 for ac_prog in cl.exe
18879 do
18880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18883 printf %s "checking for $ac_word... " >&6; }
18884 if test ${ac_cv_prog_CC+y}
18885 then :
18886 printf %s "(cached) " >&6
18887 else case e in #(
18888 e) if test -n "$CC"; then
18889 ac_cv_prog_CC="$CC" # Let the user override the test.
18890 else
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894 IFS=$as_save_IFS
18895 case $as_dir in #(((
18896 '') as_dir=./ ;;
18897 */) ;;
18898 *) as_dir=$as_dir/ ;;
18899 esac
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18904 break 2
18905 fi
18906 done
18907 done
18908 IFS=$as_save_IFS
18909
18910 fi ;;
18911 esac
18912 fi
18913 CC=$ac_cv_prog_CC
18914 if test -n "$CC"; then
18915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18916 printf "%s\n" "$CC" >&6; }
18917 else
18918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18919 printf "%s\n" "no" >&6; }
18920 fi
18921
18922
18923 test -n "$CC" && break
18924 done
18925 fi
18926 if test -z "$CC"; then
18927 ac_ct_CC=$CC
18928 for ac_prog in cl.exe
18929 do
18930 # Extract the first word of "$ac_prog", so it can be a program name with args.
18931 set dummy $ac_prog; ac_word=$2
18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18933 printf %s "checking for $ac_word... " >&6; }
18934 if test ${ac_cv_prog_ac_ct_CC+y}
18935 then :
18936 printf %s "(cached) " >&6
18937 else case e in #(
18938 e) if test -n "$ac_ct_CC"; then
18939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18940 else
18941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18943 do
18944 IFS=$as_save_IFS
18945 case $as_dir in #(((
18946 '') as_dir=./ ;;
18947 */) ;;
18948 *) as_dir=$as_dir/ ;;
18949 esac
18950 for ac_exec_ext in '' $ac_executable_extensions; do
18951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18952 ac_cv_prog_ac_ct_CC="$ac_prog"
18953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18954 break 2
18955 fi
18956 done
18957 done
18958 IFS=$as_save_IFS
18959
18960 fi ;;
18961 esac
18962 fi
18963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18964 if test -n "$ac_ct_CC"; then
18965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18966 printf "%s\n" "$ac_ct_CC" >&6; }
18967 else
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 printf "%s\n" "no" >&6; }
18970 fi
18971
18972
18973 test -n "$ac_ct_CC" && break
18974 done
18975
18976 if test "x$ac_ct_CC" = x; then
18977 CC=""
18978 else
18979 case $cross_compiling:$ac_tool_warned in
18980 yes:)
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18983 ac_tool_warned=yes ;;
18984 esac
18985 CC=$ac_ct_CC
18986 fi
18987 fi
18988
18989 fi
18990 if test -z "$CC"; then
18991 if test -n "$ac_tool_prefix"; then
18992 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
18993 set dummy ${ac_tool_prefix}clang; ac_word=$2
18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18995 printf %s "checking for $ac_word... " >&6; }
18996 if test ${ac_cv_prog_CC+y}
18997 then :
18998 printf %s "(cached) " >&6
18999 else case e in #(
19000 e) if test -n "$CC"; then
19001 ac_cv_prog_CC="$CC" # Let the user override the test.
19002 else
19003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004 for as_dir in $PATH
19005 do
19006 IFS=$as_save_IFS
19007 case $as_dir in #(((
19008 '') as_dir=./ ;;
19009 */) ;;
19010 *) as_dir=$as_dir/ ;;
19011 esac
19012 for ac_exec_ext in '' $ac_executable_extensions; do
19013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19014 ac_cv_prog_CC="${ac_tool_prefix}clang"
19015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19016 break 2
19017 fi
19018 done
19019 done
19020 IFS=$as_save_IFS
19021
19022 fi ;;
19023 esac
19024 fi
19025 CC=$ac_cv_prog_CC
19026 if test -n "$CC"; then
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19028 printf "%s\n" "$CC" >&6; }
19029 else
19030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 printf "%s\n" "no" >&6; }
19032 fi
19033
19034
19035 fi
19036 if test -z "$ac_cv_prog_CC"; then
19037 ac_ct_CC=$CC
19038 # Extract the first word of "clang", so it can be a program name with args.
19039 set dummy clang; ac_word=$2
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19041 printf %s "checking for $ac_word... " >&6; }
19042 if test ${ac_cv_prog_ac_ct_CC+y}
19043 then :
19044 printf %s "(cached) " >&6
19045 else case e in #(
19046 e) if test -n "$ac_ct_CC"; then
19047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19048 else
19049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19050 for as_dir in $PATH
19051 do
19052 IFS=$as_save_IFS
19053 case $as_dir in #(((
19054 '') as_dir=./ ;;
19055 */) ;;
19056 *) as_dir=$as_dir/ ;;
19057 esac
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19060 ac_cv_prog_ac_ct_CC="clang"
19061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19062 break 2
19063 fi
19064 done
19065 done
19066 IFS=$as_save_IFS
19067
19068 fi ;;
19069 esac
19070 fi
19071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19072 if test -n "$ac_ct_CC"; then
19073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19074 printf "%s\n" "$ac_ct_CC" >&6; }
19075 else
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 printf "%s\n" "no" >&6; }
19078 fi
19079
19080 if test "x$ac_ct_CC" = x; then
19081 CC=""
19082 else
19083 case $cross_compiling:$ac_tool_warned in
19084 yes:)
19085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19087 ac_tool_warned=yes ;;
19088 esac
19089 CC=$ac_ct_CC
19090 fi
19091 else
19092 CC="$ac_cv_prog_CC"
19093 fi
19094
19095 fi
19096
19097
19098 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19099 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19100 as_fn_error $? "no acceptable C compiler found in \$PATH
19101 See 'config.log' for more details" "$LINENO" 5; }
19102
19103 # Provide some information about the compiler.
19104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19105 set X $ac_compile
19106 ac_compiler=$2
19107 for ac_option in --version -v -V -qversion -version; do
19108 { { ac_try="$ac_compiler $ac_option >&5"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112 esac
19113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19114 printf "%s\n" "$ac_try_echo"; } >&5
19115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19116 ac_status=$?
19117 if test -s conftest.err; then
19118 sed '10a\
19119 ... rest of stderr output deleted ...
19120 10q' conftest.err >conftest.er1
19121 cat conftest.er1 >&5
19122 fi
19123 rm -f conftest.er1 conftest.err
19124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125 test $ac_status = 0; }
19126 done
19127
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
19129 printf %s "checking whether the compiler supports GNU C... " >&6; }
19130 if test ${ac_cv_c_compiler_gnu+y}
19131 then :
19132 printf %s "(cached) " >&6
19133 else case e in #(
19134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19136
19137 int
19138 main (void)
19139 {
19140 #ifndef __GNUC__
19141 choke me
19142 #endif
19143
19144 ;
19145 return 0;
19146 }
19147 _ACEOF
19148 if ac_fn_c_try_compile "$LINENO"
19149 then :
19150 ac_compiler_gnu=yes
19151 else case e in #(
19152 e) ac_compiler_gnu=no ;;
19153 esac
19154 fi
19155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19157 ;;
19158 esac
19159 fi
19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19161 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
19162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19163
19164 if test $ac_compiler_gnu = yes; then
19165 GCC=yes
19166 else
19167 GCC=
19168 fi
19169 ac_test_CFLAGS=${CFLAGS+y}
19170 ac_save_CFLAGS=$CFLAGS
19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19172 printf %s "checking whether $CC accepts -g... " >&6; }
19173 if test ${ac_cv_prog_cc_g+y}
19174 then :
19175 printf %s "(cached) " >&6
19176 else case e in #(
19177 e) ac_save_c_werror_flag=$ac_c_werror_flag
19178 ac_c_werror_flag=yes
19179 ac_cv_prog_cc_g=no
19180 CFLAGS="-g"
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183
19184 int
19185 main (void)
19186 {
19187
19188 ;
19189 return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_compile "$LINENO"
19193 then :
19194 ac_cv_prog_cc_g=yes
19195 else case e in #(
19196 e) CFLAGS=""
19197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19199
19200 int
19201 main (void)
19202 {
19203
19204 ;
19205 return 0;
19206 }
19207 _ACEOF
19208 if ac_fn_c_try_compile "$LINENO"
19209 then :
19210
19211 else case e in #(
19212 e) ac_c_werror_flag=$ac_save_c_werror_flag
19213 CFLAGS="-g"
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216
19217 int
19218 main (void)
19219 {
19220
19221 ;
19222 return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_compile "$LINENO"
19226 then :
19227 ac_cv_prog_cc_g=yes
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19230 esac
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19233 esac
19234 fi
19235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19236 ac_c_werror_flag=$ac_save_c_werror_flag ;;
19237 esac
19238 fi
19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19240 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
19241 if test $ac_test_CFLAGS; then
19242 CFLAGS=$ac_save_CFLAGS
19243 elif test $ac_cv_prog_cc_g = yes; then
19244 if test "$GCC" = yes; then
19245 CFLAGS="-g -O2"
19246 else
19247 CFLAGS="-g"
19248 fi
19249 else
19250 if test "$GCC" = yes; then
19251 CFLAGS="-O2"
19252 else
19253 CFLAGS=
19254 fi
19255 fi
19256 ac_prog_cc_stdc=no
19257 if test x$ac_prog_cc_stdc = xno
19258 then :
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
19260 printf %s "checking for $CC option to enable C11 features... " >&6; }
19261 if test ${ac_cv_prog_cc_c11+y}
19262 then :
19263 printf %s "(cached) " >&6
19264 else case e in #(
19265 e) ac_cv_prog_cc_c11=no
19266 ac_save_CC=$CC
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19269 $ac_c_conftest_c11_program
19270 _ACEOF
19271 for ac_arg in '' -std=gnu11
19272 do
19273 CC="$ac_save_CC $ac_arg"
19274 if ac_fn_c_try_compile "$LINENO"
19275 then :
19276 ac_cv_prog_cc_c11=$ac_arg
19277 fi
19278 rm -f core conftest.err conftest.$ac_objext conftest.beam
19279 test "x$ac_cv_prog_cc_c11" != "xno" && break
19280 done
19281 rm -f conftest.$ac_ext
19282 CC=$ac_save_CC ;;
19283 esac
19284 fi
19285
19286 if test "x$ac_cv_prog_cc_c11" = xno
19287 then :
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19289 printf "%s\n" "unsupported" >&6; }
19290 else case e in #(
19291 e) if test "x$ac_cv_prog_cc_c11" = x
19292 then :
19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19294 printf "%s\n" "none needed" >&6; }
19295 else case e in #(
19296 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
19297 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
19298 CC="$CC $ac_cv_prog_cc_c11" ;;
19299 esac
19300 fi
19301 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
19302 ac_prog_cc_stdc=c11 ;;
19303 esac
19304 fi
19305 fi
19306 if test x$ac_prog_cc_stdc = xno
19307 then :
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
19309 printf %s "checking for $CC option to enable C99 features... " >&6; }
19310 if test ${ac_cv_prog_cc_c99+y}
19311 then :
19312 printf %s "(cached) " >&6
19313 else case e in #(
19314 e) ac_cv_prog_cc_c99=no
19315 ac_save_CC=$CC
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318 $ac_c_conftest_c99_program
19319 _ACEOF
19320 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
19321 do
19322 CC="$ac_save_CC $ac_arg"
19323 if ac_fn_c_try_compile "$LINENO"
19324 then :
19325 ac_cv_prog_cc_c99=$ac_arg
19326 fi
19327 rm -f core conftest.err conftest.$ac_objext conftest.beam
19328 test "x$ac_cv_prog_cc_c99" != "xno" && break
19329 done
19330 rm -f conftest.$ac_ext
19331 CC=$ac_save_CC ;;
19332 esac
19333 fi
19334
19335 if test "x$ac_cv_prog_cc_c99" = xno
19336 then :
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19338 printf "%s\n" "unsupported" >&6; }
19339 else case e in #(
19340 e) if test "x$ac_cv_prog_cc_c99" = x
19341 then :
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19343 printf "%s\n" "none needed" >&6; }
19344 else case e in #(
19345 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19346 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
19347 CC="$CC $ac_cv_prog_cc_c99" ;;
19348 esac
19349 fi
19350 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19351 ac_prog_cc_stdc=c99 ;;
19352 esac
19353 fi
19354 fi
19355 if test x$ac_prog_cc_stdc = xno
19356 then :
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
19358 printf %s "checking for $CC option to enable C89 features... " >&6; }
19359 if test ${ac_cv_prog_cc_c89+y}
19360 then :
19361 printf %s "(cached) " >&6
19362 else case e in #(
19363 e) ac_cv_prog_cc_c89=no
19364 ac_save_CC=$CC
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367 $ac_c_conftest_c89_program
19368 _ACEOF
19369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19370 do
19371 CC="$ac_save_CC $ac_arg"
19372 if ac_fn_c_try_compile "$LINENO"
19373 then :
19374 ac_cv_prog_cc_c89=$ac_arg
19375 fi
19376 rm -f core conftest.err conftest.$ac_objext conftest.beam
19377 test "x$ac_cv_prog_cc_c89" != "xno" && break
19378 done
19379 rm -f conftest.$ac_ext
19380 CC=$ac_save_CC ;;
19381 esac
19382 fi
19383
19384 if test "x$ac_cv_prog_cc_c89" = xno
19385 then :
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19387 printf "%s\n" "unsupported" >&6; }
19388 else case e in #(
19389 e) if test "x$ac_cv_prog_cc_c89" = x
19390 then :
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19392 printf "%s\n" "none needed" >&6; }
19393 else case e in #(
19394 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19395 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
19396 CC="$CC $ac_cv_prog_cc_c89" ;;
19397 esac
19398 fi
19399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19400 ac_prog_cc_stdc=c89 ;;
19401 esac
19402 fi
19403 fi
19404
19405 ac_ext=c
19406 ac_cpp='$CPP $CPPFLAGS'
19407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410
19411
19412 ac_ext=c
19413 ac_cpp='$CPP $CPPFLAGS'
19414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
19418 printf %s "checking whether $CC understands -c and -o together... " >&6; }
19419 if test ${am_cv_prog_cc_c_o+y}
19420 then :
19421 printf %s "(cached) " >&6
19422 else case e in #(
19423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19425
19426 int
19427 main (void)
19428 {
19429
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 # Make sure it works both with $CC and with simple cc.
19435 # Following AC_PROG_CC_C_O, we do the test twice because some
19436 # compilers refuse to overwrite an existing .o file with -o,
19437 # though they will create one.
19438 am_cv_prog_cc_c_o=yes
19439 for am_i in 1 2; do
19440 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19441 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } \
19445 && test -f conftest2.$ac_objext; then
19446 : OK
19447 else
19448 am_cv_prog_cc_c_o=no
19449 break
19450 fi
19451 done
19452 # aligned with autoconf, so not including core; see bug#72225.
19453 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
19454 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
19455 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
19456 unset am_i ;;
19457 esac
19458 fi
19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19460 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
19461 if test "$am_cv_prog_cc_c_o" != yes; then
19462 # Losing compiler, so override with the script.
19463 # FIXME: It is wrong to rewrite CC.
19464 # But if we don't then we get into trouble of one sort or another.
19465 # A longer-term fix would be to have automake use am__CC in this case,
19466 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19467 CC="$am_aux_dir/compile $CC"
19468 fi
19469 ac_ext=c
19470 ac_cpp='$CPP $CPPFLAGS'
19471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474
19475
19476 depcc="$CC" am_compiler_list=
19477
19478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19479 printf %s "checking dependency style of $depcc... " >&6; }
19480 if test ${am_cv_CC_dependencies_compiler_type+y}
19481 then :
19482 printf %s "(cached) " >&6
19483 else case e in #(
19484 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19485 # We make a subdir and do the tests there. Otherwise we can end up
19486 # making bogus files that we don't know about and never remove. For
19487 # instance it was reported that on HP-UX the gcc test will end up
19488 # making a dummy file named 'D' -- because '-MD' means "put the output
19489 # in D".
19490 rm -rf conftest.dir
19491 mkdir conftest.dir
19492 # Copy depcomp to subdir because otherwise we won't find it if we're
19493 # using a relative directory.
19494 cp "$am_depcomp" conftest.dir
19495 cd conftest.dir
19496 # We will build objects and dependencies in a subdirectory because
19497 # it helps to detect inapplicable dependency modes. For instance
19498 # both Tru64's cc and ICC support -MD to output dependencies as a
19499 # side effect of compilation, but ICC will put the dependencies in
19500 # the current directory while Tru64 will put them in the object
19501 # directory.
19502 mkdir sub
19503
19504 am_cv_CC_dependencies_compiler_type=none
19505 if test "$am_compiler_list" = ""; then
19506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19507 fi
19508 am__universal=false
19509 case " $depcc " in #(
19510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19511 esac
19512
19513 for depmode in $am_compiler_list; do
19514 # Setup a source with many dependencies, because some compilers
19515 # like to wrap large dependency lists on column 80 (with \), and
19516 # we should not choose a depcomp mode which is confused by this.
19517 #
19518 # We need to recreate these files for each test, as the compiler may
19519 # overwrite some of them when testing with obscure command lines.
19520 # This happens at least with the AIX C compiler.
19521 : > sub/conftest.c
19522 for i in 1 2 3 4 5 6; do
19523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19524 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19525 # Solaris 10 /bin/sh.
19526 echo '/* dummy */' > sub/conftst$i.h
19527 done
19528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19529
19530 # We check with '-c' and '-o' for the sake of the "dashmstdout"
19531 # mode. It turns out that the SunPro C++ compiler does not properly
19532 # handle '-M -o', and we need to detect this. Also, some Intel
19533 # versions had trouble with output in subdirs.
19534 am__obj=sub/conftest.${OBJEXT-o}
19535 am__minus_obj="-o $am__obj"
19536 case $depmode in
19537 gcc)
19538 # This depmode causes a compiler race in universal mode.
19539 test "$am__universal" = false || continue
19540 ;;
19541 nosideeffect)
19542 # After this tag, mechanisms are not by side-effect, so they'll
19543 # only be used when explicitly requested.
19544 if test "x$enable_dependency_tracking" = xyes; then
19545 continue
19546 else
19547 break
19548 fi
19549 ;;
19550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19551 # This compiler won't grok '-c -o', but also, the minuso test has
19552 # not run yet. These depmodes are late enough in the game, and
19553 # so weak that their functioning should not be impacted.
19554 am__obj=conftest.${OBJEXT-o}
19555 am__minus_obj=
19556 ;;
19557 none) break ;;
19558 esac
19559 if depmode=$depmode \
19560 source=sub/conftest.c object=$am__obj \
19561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19563 >/dev/null 2>conftest.err &&
19564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19568 # icc doesn't choke on unknown options, it will just issue warnings
19569 # or remarks (even with -Werror). So we grep stderr for any message
19570 # that says an option was ignored or not supported.
19571 # When given -MP, icc 7.0 and 7.1 complain thus:
19572 # icc: Command line warning: ignoring option '-M'; no argument required
19573 # The diagnosis changed in icc 8.0:
19574 # icc: Command line remark: option '-MP' not supported
19575 if (grep 'ignoring option' conftest.err ||
19576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19577 am_cv_CC_dependencies_compiler_type=$depmode
19578 break
19579 fi
19580 fi
19581 done
19582
19583 cd ..
19584 rm -rf conftest.dir
19585 else
19586 am_cv_CC_dependencies_compiler_type=none
19587 fi
19588 ;;
19589 esac
19590 fi
19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19592 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
19593 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19594
19595 if
19596 test "x$enable_dependency_tracking" != xno \
19597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19598 am__fastdepCC_TRUE=
19599 am__fastdepCC_FALSE='#'
19600 else
19601 am__fastdepCC_TRUE='#'
19602 am__fastdepCC_FALSE=
19603 fi
19604
19605
19606 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
19607
19608
19609
19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19611 printf %s "checking whether ln -s works... " >&6; }
19612 LN_S=$as_ln_s
19613 if test "$LN_S" = "ln -s"; then
19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19615 printf "%s\n" "yes" >&6; }
19616 else
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19618 printf "%s\n" "no, using $LN_S" >&6; }
19619 fi
19620
19621 for ac_prog in flex lex
19622 do
19623 # Extract the first word of "$ac_prog", so it can be a program name with args.
19624 set dummy $ac_prog; ac_word=$2
19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19626 printf %s "checking for $ac_word... " >&6; }
19627 if test ${ac_cv_prog_LEX+y}
19628 then :
19629 printf %s "(cached) " >&6
19630 else case e in #(
19631 e) if test -n "$LEX"; then
19632 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19633 else
19634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19635 for as_dir in $PATH
19636 do
19637 IFS=$as_save_IFS
19638 case $as_dir in #(((
19639 '') as_dir=./ ;;
19640 */) ;;
19641 *) as_dir=$as_dir/ ;;
19642 esac
19643 for ac_exec_ext in '' $ac_executable_extensions; do
19644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19645 ac_cv_prog_LEX="$ac_prog"
19646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19647 break 2
19648 fi
19649 done
19650 done
19651 IFS=$as_save_IFS
19652
19653 fi ;;
19654 esac
19655 fi
19656 LEX=$ac_cv_prog_LEX
19657 if test -n "$LEX"; then
19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
19659 printf "%s\n" "$LEX" >&6; }
19660 else
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662 printf "%s\n" "no" >&6; }
19663 fi
19664
19665
19666 test -n "$LEX" && break
19667 done
19668 test -n "$LEX" || LEX=":"
19669
19670 if test "x$LEX" != "x:"; then
19671 cat >conftest.l <<_ACEOF
19672 %{
19673 #ifdef __cplusplus
19674 extern "C"
19675 #endif
19676 int yywrap(void);
19677 %}
19678 %%
19679 a { ECHO; }
19680 b { REJECT; }
19681 c { yymore (); }
19682 d { yyless (1); }
19683 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
19684 #ifdef __cplusplus
19685 yyless ((yyinput () != 0));
19686 #else
19687 yyless ((input () != 0));
19688 #endif
19689 }
19690 f { unput (yytext[0]); }
19691 . { BEGIN INITIAL; }
19692 %%
19693 #ifdef YYTEXT_POINTER
19694 extern char *yytext;
19695 #endif
19696 int
19697 yywrap (void)
19698 {
19699 return 1;
19700 }
19701 int
19702 main (void)
19703 {
19704 return ! yylex ();
19705 }
19706 _ACEOF
19707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
19708 printf %s "checking for lex output file root... " >&6; }
19709 if test ${ac_cv_prog_lex_root+y}
19710 then :
19711 printf %s "(cached) " >&6
19712 else case e in #(
19713 e)
19714 ac_cv_prog_lex_root=unknown
19715 { { ac_try="$LEX conftest.l"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719 esac
19720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19721 printf "%s\n" "$ac_try_echo"; } >&5
19722 (eval "$LEX conftest.l") 2>&5
19723 ac_status=$?
19724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19725 test $ac_status = 0; } &&
19726 if test -f lex.yy.c; then
19727 ac_cv_prog_lex_root=lex.yy
19728 elif test -f lexyy.c; then
19729 ac_cv_prog_lex_root=lexyy
19730 fi ;;
19731 esac
19732 fi
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
19734 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
19735 if test "$ac_cv_prog_lex_root" = unknown
19736 then :
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
19738 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
19739 LEX=: LEXLIB=
19740 fi
19741 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19742
19743 if test ${LEXLIB+y}
19744 then :
19745
19746 else case e in #(
19747 e)
19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
19749 printf %s "checking for lex library... " >&6; }
19750 if test ${ac_cv_lib_lex+y}
19751 then :
19752 printf %s "(cached) " >&6
19753 else case e in #(
19754 e)
19755 ac_save_LIBS="$LIBS"
19756 ac_found=false
19757 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
19758 case $ac_cv_lib_lex in #(
19759 'none needed') :
19760 ;; #(
19761 'not found') :
19762 break ;; #(
19763 *) :
19764 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
19765 *) :
19766 ;;
19767 esac
19768
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771 `cat $LEX_OUTPUT_ROOT.c`
19772 _ACEOF
19773 if ac_fn_c_try_link "$LINENO"
19774 then :
19775 ac_found=:
19776 fi
19777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19778 conftest$ac_exeext conftest.$ac_ext
19779 if $ac_found; then
19780 break
19781 fi
19782 done
19783 LIBS="$ac_save_LIBS"
19784 ;;
19785 esac
19786 fi
19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
19788 printf "%s\n" "$ac_cv_lib_lex" >&6; }
19789 if test "$ac_cv_lib_lex" = 'not found'
19790 then :
19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
19792 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
19793 LEX=: LEXLIB=
19794 elif test "$ac_cv_lib_lex" = 'none needed'
19795 then :
19796 LEXLIB=''
19797 else case e in #(
19798 e) LEXLIB=$ac_cv_lib_lex ;;
19799 esac
19800 fi
19801 ac_save_LIBS="$LIBS"
19802 LIBS=
19803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
19804 printf %s "checking for library containing yywrap... " >&6; }
19805 if test ${ac_cv_search_yywrap+y}
19806 then :
19807 printf %s "(cached) " >&6
19808 else case e in #(
19809 e) ac_func_search_save_LIBS=$LIBS
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply.
19816 The 'extern "C"' is for builds by C++ compilers;
19817 although this is not generally supported in C code supporting it here
19818 has little cost and some practical benefit (sr 110532). */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 char yywrap (void);
19823 int
19824 main (void)
19825 {
19826 return yywrap ();
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 for ac_lib in '' fl l
19832 do
19833 if test -z "$ac_lib"; then
19834 ac_res="none required"
19835 else
19836 ac_res=-l$ac_lib
19837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19838 fi
19839 if ac_fn_c_try_link "$LINENO"
19840 then :
19841 ac_cv_search_yywrap=$ac_res
19842 fi
19843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19844 conftest$ac_exeext
19845 if test ${ac_cv_search_yywrap+y}
19846 then :
19847 break
19848 fi
19849 done
19850 if test ${ac_cv_search_yywrap+y}
19851 then :
19852
19853 else case e in #(
19854 e) ac_cv_search_yywrap=no ;;
19855 esac
19856 fi
19857 rm conftest.$ac_ext
19858 LIBS=$ac_func_search_save_LIBS ;;
19859 esac
19860 fi
19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
19862 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
19863 ac_res=$ac_cv_search_yywrap
19864 if test "$ac_res" != no
19865 then :
19866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19867 LEXLIB="$LIBS"
19868 fi
19869
19870 LIBS="$ac_save_LIBS" ;;
19871 esac
19872 fi
19873
19874
19875 if test "$LEX" != :
19876 then :
19877
19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
19879 printf %s "checking whether yytext is a pointer... " >&6; }
19880 if test ${ac_cv_prog_lex_yytext_pointer+y}
19881 then :
19882 printf %s "(cached) " >&6
19883 else case e in #(
19884 e) # POSIX says lex can declare yytext either as a pointer or an array; the
19885 # default is implementation-dependent. Figure out which it is, since
19886 # not all implementations provide the %pointer and %array declarations.
19887 ac_cv_prog_lex_yytext_pointer=no
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890
19891 #define YYTEXT_POINTER 1
19892 `cat $LEX_OUTPUT_ROOT.c`
19893 _ACEOF
19894 if ac_fn_c_try_compile "$LINENO"
19895 then :
19896 ac_cv_prog_lex_yytext_pointer=yes
19897 fi
19898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19899 ;;
19900 esac
19901 fi
19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
19903 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
19904 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19905
19906 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
19907
19908 fi
19909
19910 fi
19911 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19912
19913 fi
19914 if test "$LEX" = :; then
19915 LEX=${am_missing_run}flex
19916 fi
19917 for ac_prog in 'bison -y' byacc
19918 do
19919 # Extract the first word of "$ac_prog", so it can be a program name with args.
19920 set dummy $ac_prog; ac_word=$2
19921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19922 printf %s "checking for $ac_word... " >&6; }
19923 if test ${ac_cv_prog_YACC+y}
19924 then :
19925 printf %s "(cached) " >&6
19926 else case e in #(
19927 e) if test -n "$YACC"; then
19928 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19929 else
19930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19931 for as_dir in $PATH
19932 do
19933 IFS=$as_save_IFS
19934 case $as_dir in #(((
19935 '') as_dir=./ ;;
19936 */) ;;
19937 *) as_dir=$as_dir/ ;;
19938 esac
19939 for ac_exec_ext in '' $ac_executable_extensions; do
19940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19941 ac_cv_prog_YACC="$ac_prog"
19942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19943 break 2
19944 fi
19945 done
19946 done
19947 IFS=$as_save_IFS
19948
19949 fi ;;
19950 esac
19951 fi
19952 YACC=$ac_cv_prog_YACC
19953 if test -n "$YACC"; then
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19955 printf "%s\n" "$YACC" >&6; }
19956 else
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19958 printf "%s\n" "no" >&6; }
19959 fi
19960
19961
19962 test -n "$YACC" && break
19963 done
19964 test -n "$YACC" || YACC="yacc"
19965
19966
19967 # Extract the first word of "test", so it can be a program name with args.
19968 set dummy test; ac_word=$2
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19970 printf %s "checking for $ac_word... " >&6; }
19971 if test ${ac_cv_path_TEST+y}
19972 then :
19973 printf %s "(cached) " >&6
19974 else case e in #(
19975 e) case $TEST in
19976 [\\/]* | ?:[\\/]*)
19977 ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
19978 ;;
19979 *)
19980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19981 for as_dir in $PATH
19982 do
19983 IFS=$as_save_IFS
19984 case $as_dir in #(((
19985 '') as_dir=./ ;;
19986 */) ;;
19987 *) as_dir=$as_dir/ ;;
19988 esac
19989 for ac_exec_ext in '' $ac_executable_extensions; do
19990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19991 ac_cv_path_TEST="$as_dir$ac_word$ac_exec_ext"
19992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19993 break 2
19994 fi
19995 done
19996 done
19997 IFS=$as_save_IFS
19998
19999 ;;
20000 esac ;;
20001 esac
20002 fi
20003 TEST=$ac_cv_path_TEST
20004 if test -n "$TEST"; then
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5
20006 printf "%s\n" "$TEST" >&6; }
20007 else
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 printf "%s\n" "no" >&6; }
20010 fi
20011
20012
20013 # Extract the first word of "true", so it can be a program name with args.
20014 set dummy true; ac_word=$2
20015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20016 printf %s "checking for $ac_word... " >&6; }
20017 if test ${ac_cv_path_TRUE+y}
20018 then :
20019 printf %s "(cached) " >&6
20020 else case e in #(
20021 e) case $TRUE in
20022 [\\/]* | ?:[\\/]*)
20023 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
20024 ;;
20025 *)
20026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20027 for as_dir in $PATH
20028 do
20029 IFS=$as_save_IFS
20030 case $as_dir in #(((
20031 '') as_dir=./ ;;
20032 */) ;;
20033 *) as_dir=$as_dir/ ;;
20034 esac
20035 for ac_exec_ext in '' $ac_executable_extensions; do
20036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20037 ac_cv_path_TRUE="$as_dir$ac_word$ac_exec_ext"
20038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20039 break 2
20040 fi
20041 done
20042 done
20043 IFS=$as_save_IFS
20044
20045 ;;
20046 esac ;;
20047 esac
20048 fi
20049 TRUE=$ac_cv_path_TRUE
20050 if test -n "$TRUE"; then
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
20052 printf "%s\n" "$TRUE" >&6; }
20053 else
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 printf "%s\n" "no" >&6; }
20056 fi
20057
20058
20059 # Extract the first word of "find", so it can be a program name with args.
20060 set dummy find; ac_word=$2
20061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20062 printf %s "checking for $ac_word... " >&6; }
20063 if test ${ac_cv_path_FIND+y}
20064 then :
20065 printf %s "(cached) " >&6
20066 else case e in #(
20067 e) case $FIND in
20068 [\\/]* | ?:[\\/]*)
20069 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
20070 ;;
20071 *)
20072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20074 do
20075 IFS=$as_save_IFS
20076 case $as_dir in #(((
20077 '') as_dir=./ ;;
20078 */) ;;
20079 *) as_dir=$as_dir/ ;;
20080 esac
20081 for ac_exec_ext in '' $ac_executable_extensions; do
20082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20083 ac_cv_path_FIND="$as_dir$ac_word$ac_exec_ext"
20084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20085 break 2
20086 fi
20087 done
20088 done
20089 IFS=$as_save_IFS
20090
20091 ;;
20092 esac ;;
20093 esac
20094 fi
20095 FIND=$ac_cv_path_FIND
20096 if test -n "$FIND"; then
20097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
20098 printf "%s\n" "$FIND" >&6; }
20099 else
20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101 printf "%s\n" "no" >&6; }
20102 fi
20103
20104
20105 # Extract the first word of "perl", so it can be a program name with args.
20106 set dummy perl; ac_word=$2
20107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20108 printf %s "checking for $ac_word... " >&6; }
20109 if test ${ac_cv_path_PERL+y}
20110 then :
20111 printf %s "(cached) " >&6
20112 else case e in #(
20113 e) case $PERL in
20114 [\\/]* | ?:[\\/]*)
20115 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20116 ;;
20117 *)
20118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20119 for as_dir in $PATH
20120 do
20121 IFS=$as_save_IFS
20122 case $as_dir in #(((
20123 '') as_dir=./ ;;
20124 */) ;;
20125 *) as_dir=$as_dir/ ;;
20126 esac
20127 for ac_exec_ext in '' $ac_executable_extensions; do
20128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20129 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20131 break 2
20132 fi
20133 done
20134 done
20135 IFS=$as_save_IFS
20136
20137 ;;
20138 esac ;;
20139 esac
20140 fi
20141 PERL=$ac_cv_path_PERL
20142 if test -n "$PERL"; then
20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20144 printf "%s\n" "$PERL" >&6; }
20145 else
20146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 printf "%s\n" "no" >&6; }
20148 fi
20149
20150
20151 # Extract the first word of "glib-mkenums", so it can be a program name with args.
20152 set dummy glib-mkenums; ac_word=$2
20153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20154 printf %s "checking for $ac_word... " >&6; }
20155 if test ${ac_cv_path_GLIB_MKENUMS+y}
20156 then :
20157 printf %s "(cached) " >&6
20158 else case e in #(
20159 e) case $GLIB_MKENUMS in
20160 [\\/]* | ?:[\\/]*)
20161 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
20162 ;;
20163 *)
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20166 do
20167 IFS=$as_save_IFS
20168 case $as_dir in #(((
20169 '') as_dir=./ ;;
20170 */) ;;
20171 *) as_dir=$as_dir/ ;;
20172 esac
20173 for ac_exec_ext in '' $ac_executable_extensions; do
20174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20175 ac_cv_path_GLIB_MKENUMS="$as_dir$ac_word$ac_exec_ext"
20176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20177 break 2
20178 fi
20179 done
20180 done
20181 IFS=$as_save_IFS
20182
20183 ;;
20184 esac ;;
20185 esac
20186 fi
20187 GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
20188 if test -n "$GLIB_MKENUMS"; then
20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
20190 printf "%s\n" "$GLIB_MKENUMS" >&6; }
20191 else
20192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20193 printf "%s\n" "no" >&6; }
20194 fi
20195
20196
20197 # Extract the first word of "convert", so it can be a program name with args.
20198 set dummy convert; ac_word=$2
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20200 printf %s "checking for $ac_word... " >&6; }
20201 if test ${ac_cv_path_CONVERT+y}
20202 then :
20203 printf %s "(cached) " >&6
20204 else case e in #(
20205 e) case $CONVERT in
20206 [\\/]* | ?:[\\/]*)
20207 ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
20208 ;;
20209 *)
20210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20211 for as_dir in $PATH
20212 do
20213 IFS=$as_save_IFS
20214 case $as_dir in #(((
20215 '') as_dir=./ ;;
20216 */) ;;
20217 *) as_dir=$as_dir/ ;;
20218 esac
20219 for ac_exec_ext in '' $ac_executable_extensions; do
20220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20221 ac_cv_path_CONVERT="$as_dir$ac_word$ac_exec_ext"
20222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20223 break 2
20224 fi
20225 done
20226 done
20227 IFS=$as_save_IFS
20228
20229 ;;
20230 esac ;;
20231 esac
20232 fi
20233 CONVERT=$ac_cv_path_CONVERT
20234 if test -n "$CONVERT"; then
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
20236 printf "%s\n" "$CONVERT" >&6; }
20237 else
20238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 printf "%s\n" "no" >&6; }
20240 fi
20241
20242
20243 # Extract the first word of "bash", so it can be a program name with args.
20244 set dummy bash; ac_word=$2
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20246 printf %s "checking for $ac_word... " >&6; }
20247 if test ${ac_cv_path_BASHREAL+y}
20248 then :
20249 printf %s "(cached) " >&6
20250 else case e in #(
20251 e) case $BASHREAL in
20252 [\\/]* | ?:[\\/]*)
20253 ac_cv_path_BASHREAL="$BASHREAL" # Let the user override the test with a path.
20254 ;;
20255 *)
20256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20257 for as_dir in $PATH
20258 do
20259 IFS=$as_save_IFS
20260 case $as_dir in #(((
20261 '') as_dir=./ ;;
20262 */) ;;
20263 *) as_dir=$as_dir/ ;;
20264 esac
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20267 ac_cv_path_BASHREAL="$as_dir$ac_word$ac_exec_ext"
20268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20269 break 2
20270 fi
20271 done
20272 done
20273 IFS=$as_save_IFS
20274
20275 ;;
20276 esac ;;
20277 esac
20278 fi
20279 BASHREAL=$ac_cv_path_BASHREAL
20280 if test -n "$BASHREAL"; then
20281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASHREAL" >&5
20282 printf "%s\n" "$BASHREAL" >&6; }
20283 else
20284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 printf "%s\n" "no" >&6; }
20286 fi
20287
20288
20289 if test x${USE_MAINTAINER_MODE} = xyes ; then
20290 if test x${CONVERT} = x ; then
20291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5
20292 printf "%s\n" "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;}
20293 fi
20294 fi
20295 # Extract the first word of "texi2html", so it can be a program name with args.
20296 set dummy texi2html; ac_word=$2
20297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20298 printf %s "checking for $ac_word... " >&6; }
20299 if test ${ac_cv_path_TEXI2HTML+y}
20300 then :
20301 printf %s "(cached) " >&6
20302 else case e in #(
20303 e) case $TEXI2HTML in
20304 [\\/]* | ?:[\\/]*)
20305 ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
20306 ;;
20307 *)
20308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20309 for as_dir in $PATH
20310 do
20311 IFS=$as_save_IFS
20312 case $as_dir in #(((
20313 '') as_dir=./ ;;
20314 */) ;;
20315 *) as_dir=$as_dir/ ;;
20316 esac
20317 for ac_exec_ext in '' $ac_executable_extensions; do
20318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20319 ac_cv_path_TEXI2HTML="$as_dir$ac_word$ac_exec_ext"
20320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20321 break 2
20322 fi
20323 done
20324 done
20325 IFS=$as_save_IFS
20326
20327 ;;
20328 esac ;;
20329 esac
20330 fi
20331 TEXI2HTML=$ac_cv_path_TEXI2HTML
20332 if test -n "$TEXI2HTML"; then
20333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
20334 printf "%s\n" "$TEXI2HTML" >&6; }
20335 else
20336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337 printf "%s\n" "no" >&6; }
20338 fi
20339
20340
20341 if test x${USE_MAINTAINER_MODE} = xyes ; then
20342 if test x${TEXI2HTML} = x ; then
20343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HTML documentation cannot be regenerated!" >&5
20344 printf "%s\n" "$as_me: WARNING: HTML documentation cannot be regenerated!" >&2;}
20345 fi
20346 fi
20347 # Extract the first word of "dvips", so it can be a program name with args.
20348 set dummy dvips; ac_word=$2
20349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20350 printf %s "checking for $ac_word... " >&6; }
20351 if test ${ac_cv_path_DVIPS+y}
20352 then :
20353 printf %s "(cached) " >&6
20354 else case e in #(
20355 e) case $DVIPS in
20356 [\\/]* | ?:[\\/]*)
20357 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
20358 ;;
20359 *)
20360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20361 for as_dir in $PATH
20362 do
20363 IFS=$as_save_IFS
20364 case $as_dir in #(((
20365 '') as_dir=./ ;;
20366 */) ;;
20367 *) as_dir=$as_dir/ ;;
20368 esac
20369 for ac_exec_ext in '' $ac_executable_extensions; do
20370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20371 ac_cv_path_DVIPS="$as_dir$ac_word$ac_exec_ext"
20372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20373 break 2
20374 fi
20375 done
20376 done
20377 IFS=$as_save_IFS
20378
20379 ;;
20380 esac ;;
20381 esac
20382 fi
20383 DVIPS=$ac_cv_path_DVIPS
20384 if test -n "$DVIPS"; then
20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
20386 printf "%s\n" "$DVIPS" >&6; }
20387 else
20388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389 printf "%s\n" "no" >&6; }
20390 fi
20391
20392
20393 if test x${USE_MAINTAINER_MODE} = xyes ; then
20394 if test x${DVIPS} = x ; then
20395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PostScript documentation cannot be regenerated!" >&5
20396 printf "%s\n" "$as_me: WARNING: PostScript documentation cannot be regenerated!" >&2;}
20397 fi
20398 fi
20399 # Extract the first word of "db2pdf", so it can be a program name with args.
20400 set dummy db2pdf; ac_word=$2
20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20402 printf %s "checking for $ac_word... " >&6; }
20403 if test ${ac_cv_path_DB2PDF+y}
20404 then :
20405 printf %s "(cached) " >&6
20406 else case e in #(
20407 e) case $DB2PDF in
20408 [\\/]* | ?:[\\/]*)
20409 ac_cv_path_DB2PDF="$DB2PDF" # Let the user override the test with a path.
20410 ;;
20411 *)
20412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20413 for as_dir in $PATH
20414 do
20415 IFS=$as_save_IFS
20416 case $as_dir in #(((
20417 '') as_dir=./ ;;
20418 */) ;;
20419 *) as_dir=$as_dir/ ;;
20420 esac
20421 for ac_exec_ext in '' $ac_executable_extensions; do
20422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20423 ac_cv_path_DB2PDF="$as_dir$ac_word$ac_exec_ext"
20424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20425 break 2
20426 fi
20427 done
20428 done
20429 IFS=$as_save_IFS
20430
20431 ;;
20432 esac ;;
20433 esac
20434 fi
20435 DB2PDF=$ac_cv_path_DB2PDF
20436 if test -n "$DB2PDF"; then
20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DB2PDF" >&5
20438 printf "%s\n" "$DB2PDF" >&6; }
20439 else
20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441 printf "%s\n" "no" >&6; }
20442 fi
20443
20444
20445 if test x${USE_MAINTAINER_MODE} = xyes ; then
20446 if test x${DB2PDF} = x ; then
20447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PDF developer's guide cannot be regenerated!" >&5
20448 printf "%s\n" "$as_me: WARNING: PDF developer's guide cannot be regenerated!" >&2;}
20449 fi
20450 fi
20451 for ac_prog in dvipdf dvipdfm
20452 do
20453 # Extract the first word of "$ac_prog", so it can be a program name with args.
20454 set dummy $ac_prog; ac_word=$2
20455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20456 printf %s "checking for $ac_word... " >&6; }
20457 if test ${ac_cv_path_DVIPDF+y}
20458 then :
20459 printf %s "(cached) " >&6
20460 else case e in #(
20461 e) case $DVIPDF in
20462 [\\/]* | ?:[\\/]*)
20463 ac_cv_path_DVIPDF="$DVIPDF" # Let the user override the test with a path.
20464 ;;
20465 *)
20466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20467 for as_dir in $PATH
20468 do
20469 IFS=$as_save_IFS
20470 case $as_dir in #(((
20471 '') as_dir=./ ;;
20472 */) ;;
20473 *) as_dir=$as_dir/ ;;
20474 esac
20475 for ac_exec_ext in '' $ac_executable_extensions; do
20476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20477 ac_cv_path_DVIPDF="$as_dir$ac_word$ac_exec_ext"
20478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20479 break 2
20480 fi
20481 done
20482 done
20483 IFS=$as_save_IFS
20484
20485 ;;
20486 esac ;;
20487 esac
20488 fi
20489 DVIPDF=$ac_cv_path_DVIPDF
20490 if test -n "$DVIPDF"; then
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPDF" >&5
20492 printf "%s\n" "$DVIPDF" >&6; }
20493 else
20494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20495 printf "%s\n" "no" >&6; }
20496 fi
20497
20498
20499 test -n "$DVIPDF" && break
20500 done
20501
20502 if test x${USE_MAINTAINER_MODE} = xyes ; then
20503 if test x${DVIPDF} = x ; then
20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PDF documentation cannot be regenerated!" >&5
20505 printf "%s\n" "$as_me: WARNING: PDF documentation cannot be regenerated!" >&2;}
20506 fi
20507 fi
20508 # Extract the first word of "db2ps", so it can be a program name with args.
20509 set dummy db2ps; ac_word=$2
20510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20511 printf %s "checking for $ac_word... " >&6; }
20512 if test ${ac_cv_path_DB2PS+y}
20513 then :
20514 printf %s "(cached) " >&6
20515 else case e in #(
20516 e) case $DB2PS in
20517 [\\/]* | ?:[\\/]*)
20518 ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
20519 ;;
20520 *)
20521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20522 for as_dir in $PATH
20523 do
20524 IFS=$as_save_IFS
20525 case $as_dir in #(((
20526 '') as_dir=./ ;;
20527 */) ;;
20528 *) as_dir=$as_dir/ ;;
20529 esac
20530 for ac_exec_ext in '' $ac_executable_extensions; do
20531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20532 ac_cv_path_DB2PS="$as_dir$ac_word$ac_exec_ext"
20533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20534 break 2
20535 fi
20536 done
20537 done
20538 IFS=$as_save_IFS
20539
20540 ;;
20541 esac ;;
20542 esac
20543 fi
20544 DB2PS=$ac_cv_path_DB2PS
20545 if test -n "$DB2PS"; then
20546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DB2PS" >&5
20547 printf "%s\n" "$DB2PS" >&6; }
20548 else
20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20550 printf "%s\n" "no" >&6; }
20551 fi
20552
20553
20554 if test x${USE_MAINTAINER_MODE} = xyes ; then
20555 if test x${DB2PS} = x ; then
20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5
20557 printf "%s\n" "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;}
20558 fi
20559 fi
20560 # Extract the first word of "db2html", so it can be a program name with args.
20561 set dummy db2html; ac_word=$2
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20563 printf %s "checking for $ac_word... " >&6; }
20564 if test ${ac_cv_path_DB2HTML+y}
20565 then :
20566 printf %s "(cached) " >&6
20567 else case e in #(
20568 e) case $DB2HTML in
20569 [\\/]* | ?:[\\/]*)
20570 ac_cv_path_DB2HTML="$DB2HTML" # Let the user override the test with a path.
20571 ;;
20572 *)
20573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20574 for as_dir in $PATH
20575 do
20576 IFS=$as_save_IFS
20577 case $as_dir in #(((
20578 '') as_dir=./ ;;
20579 */) ;;
20580 *) as_dir=$as_dir/ ;;
20581 esac
20582 for ac_exec_ext in '' $ac_executable_extensions; do
20583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20584 ac_cv_path_DB2HTML="$as_dir$ac_word$ac_exec_ext"
20585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20586 break 2
20587 fi
20588 done
20589 done
20590 IFS=$as_save_IFS
20591
20592 ;;
20593 esac ;;
20594 esac
20595 fi
20596 DB2HTML=$ac_cv_path_DB2HTML
20597 if test -n "$DB2HTML"; then
20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DB2HTML" >&5
20599 printf "%s\n" "$DB2HTML" >&6; }
20600 else
20601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20602 printf "%s\n" "no" >&6; }
20603 fi
20604
20605
20606 if test x${USE_MAINTAINER_MODE} = xyes ; then
20607 if test x${DB2HTML} = x ; then
20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5
20609 printf "%s\n" "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;}
20610 fi
20611 fi
20612 # Extract the first word of "doxygen", so it can be a program name with args.
20613 set dummy doxygen; ac_word=$2
20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20615 printf %s "checking for $ac_word... " >&6; }
20616 if test ${ac_cv_path_DOXYGEN+y}
20617 then :
20618 printf %s "(cached) " >&6
20619 else case e in #(
20620 e) case $DOXYGEN in
20621 [\\/]* | ?:[\\/]*)
20622 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20623 ;;
20624 *)
20625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20626 for as_dir in $PATH
20627 do
20628 IFS=$as_save_IFS
20629 case $as_dir in #(((
20630 '') as_dir=./ ;;
20631 */) ;;
20632 *) as_dir=$as_dir/ ;;
20633 esac
20634 for ac_exec_ext in '' $ac_executable_extensions; do
20635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20636 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20638 break 2
20639 fi
20640 done
20641 done
20642 IFS=$as_save_IFS
20643
20644 ;;
20645 esac ;;
20646 esac
20647 fi
20648 DOXYGEN=$ac_cv_path_DOXYGEN
20649 if test -n "$DOXYGEN"; then
20650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20651 printf "%s\n" "$DOXYGEN" >&6; }
20652 else
20653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20654 printf "%s\n" "no" >&6; }
20655 fi
20656
20657
20658 if test x${USE_MAINTAINER_MODE} = xyes ; then
20659 if test x${DOXYGEN} = x ; then
20660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5
20661 printf "%s\n" "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;}
20662 fi
20663 fi
20664
20665 # Extract the first word of "xz", so it can be a program name with args.
20666 set dummy xz; ac_word=$2
20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20668 printf %s "checking for $ac_word... " >&6; }
20669 if test ${ac_cv_path_XZ+y}
20670 then :
20671 printf %s "(cached) " >&6
20672 else case e in #(
20673 e) case $XZ in
20674 [\\/]* | ?:[\\/]*)
20675 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
20676 ;;
20677 *)
20678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20679 for as_dir in $PATH
20680 do
20681 IFS=$as_save_IFS
20682 case $as_dir in #(((
20683 '') as_dir=./ ;;
20684 */) ;;
20685 *) as_dir=$as_dir/ ;;
20686 esac
20687 for ac_exec_ext in '' $ac_executable_extensions; do
20688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20689 ac_cv_path_XZ="$as_dir$ac_word$ac_exec_ext"
20690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20691 break 2
20692 fi
20693 done
20694 done
20695 IFS=$as_save_IFS
20696
20697 ;;
20698 esac ;;
20699 esac
20700 fi
20701 XZ=$ac_cv_path_XZ
20702 if test -n "$XZ"; then
20703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
20704 printf "%s\n" "$XZ" >&6; }
20705 else
20706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 printf "%s\n" "no" >&6; }
20708 fi
20709
20710
20711 # Extract the first word of "gzip", so it can be a program name with args.
20712 set dummy gzip; ac_word=$2
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20714 printf %s "checking for $ac_word... " >&6; }
20715 if test ${ac_cv_path_GZIP+y}
20716 then :
20717 printf %s "(cached) " >&6
20718 else case e in #(
20719 e) case $GZIP in
20720 [\\/]* | ?:[\\/]*)
20721 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20722 ;;
20723 *)
20724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20725 for as_dir in $PATH
20726 do
20727 IFS=$as_save_IFS
20728 case $as_dir in #(((
20729 '') as_dir=./ ;;
20730 */) ;;
20731 *) as_dir=$as_dir/ ;;
20732 esac
20733 for ac_exec_ext in '' $ac_executable_extensions; do
20734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20735 ac_cv_path_GZIP="$as_dir$ac_word$ac_exec_ext"
20736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20737 break 2
20738 fi
20739 done
20740 done
20741 IFS=$as_save_IFS
20742
20743 ;;
20744 esac ;;
20745 esac
20746 fi
20747 GZIP=$ac_cv_path_GZIP
20748 if test -n "$GZIP"; then
20749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
20750 printf "%s\n" "$GZIP" >&6; }
20751 else
20752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20753 printf "%s\n" "no" >&6; }
20754 fi
20755
20756
20757 # Extract the first word of "bzip2", so it can be a program name with args.
20758 set dummy bzip2; ac_word=$2
20759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20760 printf %s "checking for $ac_word... " >&6; }
20761 if test ${ac_cv_path_BZIP2+y}
20762 then :
20763 printf %s "(cached) " >&6
20764 else case e in #(
20765 e) case $BZIP2 in
20766 [\\/]* | ?:[\\/]*)
20767 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
20768 ;;
20769 *)
20770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20771 for as_dir in $PATH
20772 do
20773 IFS=$as_save_IFS
20774 case $as_dir in #(((
20775 '') as_dir=./ ;;
20776 */) ;;
20777 *) as_dir=$as_dir/ ;;
20778 esac
20779 for ac_exec_ext in '' $ac_executable_extensions; do
20780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20781 ac_cv_path_BZIP2="$as_dir$ac_word$ac_exec_ext"
20782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20783 break 2
20784 fi
20785 done
20786 done
20787 IFS=$as_save_IFS
20788
20789 ;;
20790 esac ;;
20791 esac
20792 fi
20793 BZIP2=$ac_cv_path_BZIP2
20794 if test -n "$BZIP2"; then
20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
20796 printf "%s\n" "$BZIP2" >&6; }
20797 else
20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 printf "%s\n" "no" >&6; }
20800 fi
20801
20802
20803 # Extract the first word of "lrzip", so it can be a program name with args.
20804 set dummy lrzip; ac_word=$2
20805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20806 printf %s "checking for $ac_word... " >&6; }
20807 if test ${ac_cv_path_LRZIP+y}
20808 then :
20809 printf %s "(cached) " >&6
20810 else case e in #(
20811 e) case $LRZIP in
20812 [\\/]* | ?:[\\/]*)
20813 ac_cv_path_LRZIP="$LRZIP" # Let the user override the test with a path.
20814 ;;
20815 *)
20816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20817 for as_dir in $PATH
20818 do
20819 IFS=$as_save_IFS
20820 case $as_dir in #(((
20821 '') as_dir=./ ;;
20822 */) ;;
20823 *) as_dir=$as_dir/ ;;
20824 esac
20825 for ac_exec_ext in '' $ac_executable_extensions; do
20826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20827 ac_cv_path_LRZIP="$as_dir$ac_word$ac_exec_ext"
20828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20829 break 2
20830 fi
20831 done
20832 done
20833 IFS=$as_save_IFS
20834
20835 ;;
20836 esac ;;
20837 esac
20838 fi
20839 LRZIP=$ac_cv_path_LRZIP
20840 if test -n "$LRZIP"; then
20841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LRZIP" >&5
20842 printf "%s\n" "$LRZIP" >&6; }
20843 else
20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20845 printf "%s\n" "no" >&6; }
20846 fi
20847
20848
20849 # Extract the first word of "rzip", so it can be a program name with args.
20850 set dummy rzip; ac_word=$2
20851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20852 printf %s "checking for $ac_word... " >&6; }
20853 if test ${ac_cv_path_RZIP+y}
20854 then :
20855 printf %s "(cached) " >&6
20856 else case e in #(
20857 e) case $RZIP in
20858 [\\/]* | ?:[\\/]*)
20859 ac_cv_path_RZIP="$RZIP" # Let the user override the test with a path.
20860 ;;
20861 *)
20862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20863 for as_dir in $PATH
20864 do
20865 IFS=$as_save_IFS
20866 case $as_dir in #(((
20867 '') as_dir=./ ;;
20868 */) ;;
20869 *) as_dir=$as_dir/ ;;
20870 esac
20871 for ac_exec_ext in '' $ac_executable_extensions; do
20872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20873 ac_cv_path_RZIP="$as_dir$ac_word$ac_exec_ext"
20874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20875 break 2
20876 fi
20877 done
20878 done
20879 IFS=$as_save_IFS
20880
20881 ;;
20882 esac ;;
20883 esac
20884 fi
20885 RZIP=$ac_cv_path_RZIP
20886 if test -n "$RZIP"; then
20887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RZIP" >&5
20888 printf "%s\n" "$RZIP" >&6; }
20889 else
20890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 printf "%s\n" "no" >&6; }
20892 fi
20893
20894
20895 # Extract the first word of "zpaq", so it can be a program name with args.
20896 set dummy zpaq; ac_word=$2
20897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20898 printf %s "checking for $ac_word... " >&6; }
20899 if test ${ac_cv_path_ZPAQ+y}
20900 then :
20901 printf %s "(cached) " >&6
20902 else case e in #(
20903 e) case $ZPAQ in
20904 [\\/]* | ?:[\\/]*)
20905 ac_cv_path_ZPAQ="$ZPAQ" # Let the user override the test with a path.
20906 ;;
20907 *)
20908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909 for as_dir in $PATH
20910 do
20911 IFS=$as_save_IFS
20912 case $as_dir in #(((
20913 '') as_dir=./ ;;
20914 */) ;;
20915 *) as_dir=$as_dir/ ;;
20916 esac
20917 for ac_exec_ext in '' $ac_executable_extensions; do
20918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20919 ac_cv_path_ZPAQ="$as_dir$ac_word$ac_exec_ext"
20920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20921 break 2
20922 fi
20923 done
20924 done
20925 IFS=$as_save_IFS
20926
20927 ;;
20928 esac ;;
20929 esac
20930 fi
20931 ZPAQ=$ac_cv_path_ZPAQ
20932 if test -n "$ZPAQ"; then
20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZPAQ" >&5
20934 printf "%s\n" "$ZPAQ" >&6; }
20935 else
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937 printf "%s\n" "no" >&6; }
20938 fi
20939
20940
20941 # Extract the first word of "bash", so it can be a program name with args.
20942 set dummy bash; ac_word=$2
20943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20944 printf %s "checking for $ac_word... " >&6; }
20945 if test ${ac_cv_path_BASH+y}
20946 then :
20947 printf %s "(cached) " >&6
20948 else case e in #(
20949 e) case $BASH in
20950 [\\/]* | ?:[\\/]*)
20951 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
20952 ;;
20953 *)
20954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20955 for as_dir in $PATH
20956 do
20957 IFS=$as_save_IFS
20958 case $as_dir in #(((
20959 '') as_dir=./ ;;
20960 */) ;;
20961 *) as_dir=$as_dir/ ;;
20962 esac
20963 for ac_exec_ext in '' $ac_executable_extensions; do
20964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20965 ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
20966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20967 break 2
20968 fi
20969 done
20970 done
20971 IFS=$as_save_IFS
20972
20973 ;;
20974 esac ;;
20975 esac
20976 fi
20977 BASH=$ac_cv_path_BASH
20978 if test -n "$BASH"; then
20979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
20980 printf "%s\n" "$BASH" >&6; }
20981 else
20982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20983 printf "%s\n" "no" >&6; }
20984 fi
20985
20986
20987 if test x${ZPAQ} != x ; then
20988 COMPRESS='$(top_builddir)/scripts/wzpaq -z -q'
20989 CSUF=.zpaq
20990 elif test x${LRZIP} != x ; then
20991 COMPRESS="${LRZIP} -z -q"
20992 CSUF=.lrz
20993 elif test x${XZ} != x ; then
20994 COMPRESS="${XZ} -e -9"
20995 CSUF=.xz
20996 elif test x${RZIP} != x ; then
20997 COMPRESS="${RZIP} -9"
20998 CSUF=.rz
20999 elif test x${BZIP2} != x ; then
21000 COMPRESS="${BZIP2} -9"
21001 CSUF=.bz2
21002 else
21003 COMPRESS="${GZIP} -9"
21004 CSUF=.gz
21005 fi
21006
21007
21008
21009 GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION}
21010
21011 printf "%s\n" "#define GUTENPRINT_RELEASE_VERSION \"${GUTENPRINT_RELEASE_VERSION}\"" >>confdefs.h
21012
21013 GUTENPRINT_BASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION}.${GUTENPRINT_MICRO_VERSION}
21014
21015 printf "%s\n" "#define GUTENPRINT_BASE_VERSION \"${GUTENPRINT_BASE_VERSION}\"" >>confdefs.h
21016
21017
21018 PACKAGE_LOCALE_DIR='${prefix}/share/locale'
21019
21020 PACKAGE_DATA_DIR="${datadir}/${PACKAGE}"
21021
21022 PACKAGE_LIB_DIR="${libdir}/${PACKAGE}"
21023
21024 PACKAGE_BIN_DIR="${bindir}"
21025
21026 PKGXMLDATADIR="${PACKAGE_DATA_DIR}/${GUTENPRINT_RELEASE_VERSION}/xml"
21027
21028 PKGMODULEDIR="${PACKAGE_LIB_DIR}/${GUTENPRINT_RELEASE_VERSION}/modules"
21029
21030 if test x$ac_compiler_gnu = "xyes"; then
21031
21032 for stp_ac_arg in -Wall -Wextra -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Werror=format-security ; do
21033
21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21035 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21036 stp_acOLDCFLAGS="${CFLAGS}"
21037 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
21038 CFLAGS="$NCFLAGS -Werror"
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21041
21042 int
21043 main (void)
21044 {
21045
21046 ;
21047 return 0;
21048 }
21049 _ACEOF
21050 if ac_fn_c_try_compile "$LINENO"
21051 then :
21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21053 printf "%s\n" "yes" >&6; };
21054 stp_newCFLAGS="$NCFLAGS"
21055 else case e in #(
21056 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21057 printf "%s\n" "no" >&6; };
21058 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21059 esac
21060 fi
21061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21062 CFLAGS="$stp_acOLDCFLAGS"
21063 GNUCFLAGS="${stp_newCFLAGS}"
21064
21065 done
21066
21067 if test x${USE_MAINTAINER_MODE} = xyes ; then
21068
21069 for stp_ac_arg in -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls -Wstrict-prototypes -Winline ; do
21070
21071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21072 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21073 stp_acOLDCFLAGS="${CFLAGS}"
21074 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
21075 CFLAGS="$NCFLAGS -Werror"
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21078
21079 int
21080 main (void)
21081 {
21082
21083 ;
21084 return 0;
21085 }
21086 _ACEOF
21087 if ac_fn_c_try_compile "$LINENO"
21088 then :
21089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21090 printf "%s\n" "yes" >&6; };
21091 stp_newCFLAGS="$NCFLAGS"
21092 else case e in #(
21093 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21094 printf "%s\n" "no" >&6; };
21095 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21096 esac
21097 fi
21098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21099 CFLAGS="$stp_acOLDCFLAGS"
21100 GNUCFLAGS="${stp_newCFLAGS}"
21101
21102 done
21103
21104 else
21105
21106 for stp_ac_arg in -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter ; do
21107
21108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21109 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21110 stp_acOLDCFLAGS="${CFLAGS}"
21111 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
21112 CFLAGS="$NCFLAGS -Werror"
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115
21116 int
21117 main (void)
21118 {
21119
21120 ;
21121 return 0;
21122 }
21123 _ACEOF
21124 if ac_fn_c_try_compile "$LINENO"
21125 then :
21126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21127 printf "%s\n" "yes" >&6; };
21128 stp_newCFLAGS="$NCFLAGS"
21129 else case e in #(
21130 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21131 printf "%s\n" "no" >&6; };
21132 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21133 esac
21134 fi
21135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21136 CFLAGS="$stp_acOLDCFLAGS"
21137 GNUCFLAGS="${stp_newCFLAGS}"
21138
21139 done
21140
21141 fi
21142 if test x$ENABLE_DEBUG = xyes ; then
21143
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5
21145 printf %s "checking if ${CC} supports -g... " >&6; }
21146 stp_acOLDCFLAGS="${CFLAGS}"
21147 NCFLAGS="${CFLAGS} -g"
21148 CFLAGS="$NCFLAGS -Werror"
21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21150 /* end confdefs.h. */
21151
21152 int
21153 main (void)
21154 {
21155
21156 ;
21157 return 0;
21158 }
21159 _ACEOF
21160 if ac_fn_c_try_compile "$LINENO"
21161 then :
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21163 printf "%s\n" "yes" >&6; };
21164 stp_newCFLAGS="$NCFLAGS"
21165 else case e in #(
21166 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21167 printf "%s\n" "no" >&6; };
21168 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21169 esac
21170 fi
21171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21172 CFLAGS="$stp_acOLDCFLAGS"
21173 CFLAGS="${stp_newCFLAGS}"
21174
21175
21176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Og" >&5
21177 printf %s "checking if ${CC} supports -Og... " >&6; }
21178 stp_acOLDCFLAGS="${CFLAGS}"
21179 NCFLAGS="${CFLAGS} -Og"
21180 CFLAGS="$NCFLAGS -Werror"
21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21182 /* end confdefs.h. */
21183
21184 int
21185 main (void)
21186 {
21187
21188 ;
21189 return 0;
21190 }
21191 _ACEOF
21192 if ac_fn_c_try_compile "$LINENO"
21193 then :
21194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21195 printf "%s\n" "yes" >&6; };
21196 stp_newCFLAGS="$NCFLAGS"
21197 else case e in #(
21198 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199 printf "%s\n" "no" >&6; };
21200 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21201 esac
21202 fi
21203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21204 CFLAGS="$stp_acOLDCFLAGS"
21205 CFLAGS="${stp_newCFLAGS}"
21206
21207 else
21208
21209 for stp_ac_arg in -O3 -O2 -O1 -O ; do
21210 stp_ac_save_CFLAGS="${CFLAGS}"
21211
21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21213 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21214 stp_acOLDCFLAGS="${CFLAGS}"
21215 NCFLAGS="${CFLAGS} ${stp_ac_arg}"
21216 CFLAGS="$NCFLAGS -Werror"
21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218 /* end confdefs.h. */
21219
21220 int
21221 main (void)
21222 {
21223
21224 ;
21225 return 0;
21226 }
21227 _ACEOF
21228 if ac_fn_c_try_compile "$LINENO"
21229 then :
21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21231 printf "%s\n" "yes" >&6; };
21232 stp_newCFLAGS="$NCFLAGS"
21233 else case e in #(
21234 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21235 printf "%s\n" "no" >&6; };
21236 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21237 esac
21238 fi
21239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21240 CFLAGS="$stp_acOLDCFLAGS"
21241 CFLAGS="${stp_newCFLAGS}"
21242
21243 test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break
21244 done
21245
21246 fi
21247 else
21248 if test x$ENABLE_DEBUG = xyes ; then
21249
21250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5
21251 printf %s "checking if ${CC} supports -g... " >&6; }
21252 stp_acOLDCFLAGS="${CFLAGS}"
21253 NCFLAGS="${CFLAGS} -g"
21254 CFLAGS="$NCFLAGS -Werror"
21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256 /* end confdefs.h. */
21257
21258 int
21259 main (void)
21260 {
21261
21262 ;
21263 return 0;
21264 }
21265 _ACEOF
21266 if ac_fn_c_try_compile "$LINENO"
21267 then :
21268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21269 printf "%s\n" "yes" >&6; };
21270 stp_newCFLAGS="$NCFLAGS"
21271 else case e in #(
21272 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 printf "%s\n" "no" >&6; };
21274 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21275 esac
21276 fi
21277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21278 CFLAGS="$stp_acOLDCFLAGS"
21279 CFLAGS="${stp_newCFLAGS}"
21280
21281
21282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Og" >&5
21283 printf %s "checking if ${CC} supports -Og... " >&6; }
21284 stp_acOLDCFLAGS="${CFLAGS}"
21285 NCFLAGS="${CFLAGS} -Og"
21286 CFLAGS="$NCFLAGS -Werror"
21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* end confdefs.h. */
21289
21290 int
21291 main (void)
21292 {
21293
21294 ;
21295 return 0;
21296 }
21297 _ACEOF
21298 if ac_fn_c_try_compile "$LINENO"
21299 then :
21300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301 printf "%s\n" "yes" >&6; };
21302 stp_newCFLAGS="$NCFLAGS"
21303 else case e in #(
21304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21305 printf "%s\n" "no" >&6; };
21306 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21307 esac
21308 fi
21309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21310 CFLAGS="$stp_acOLDCFLAGS"
21311 CFLAGS="${stp_newCFLAGS}"
21312
21313 else
21314
21315 for stp_ac_arg in -O ; do
21316 stp_ac_save_CFLAGS="${CFLAGS}"
21317
21318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21319 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21320 stp_acOLDCFLAGS="${CFLAGS}"
21321 NCFLAGS="${CFLAGS} ${stp_ac_arg}"
21322 CFLAGS="$NCFLAGS -Werror"
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21325
21326 int
21327 main (void)
21328 {
21329
21330 ;
21331 return 0;
21332 }
21333 _ACEOF
21334 if ac_fn_c_try_compile "$LINENO"
21335 then :
21336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21337 printf "%s\n" "yes" >&6; };
21338 stp_newCFLAGS="$NCFLAGS"
21339 else case e in #(
21340 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21341 printf "%s\n" "no" >&6; };
21342 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21343 esac
21344 fi
21345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21346 CFLAGS="$stp_acOLDCFLAGS"
21347 CFLAGS="${stp_newCFLAGS}"
21348
21349 test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break
21350 done
21351
21352 fi
21353 fi
21354 if test x$ENABLE_PROFILE = xyes ; then
21355
21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -pg" >&5
21357 printf %s "checking if ${CC} supports -pg... " >&6; }
21358 stp_acOLDCFLAGS="${CFLAGS}"
21359 NCFLAGS="${CFLAGS} -pg"
21360 CFLAGS="$NCFLAGS -Werror"
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h. */
21363
21364 int
21365 main (void)
21366 {
21367
21368 ;
21369 return 0;
21370 }
21371 _ACEOF
21372 if ac_fn_c_try_compile "$LINENO"
21373 then :
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21375 printf "%s\n" "yes" >&6; };
21376 stp_newCFLAGS="$NCFLAGS"
21377 else case e in #(
21378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21379 printf "%s\n" "no" >&6; };
21380 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21381 esac
21382 fi
21383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21384 CFLAGS="$stp_acOLDCFLAGS"
21385 CFLAGS="${stp_newCFLAGS}"
21386
21387 fi
21388
21389 # C99 + POSIX extras
21390
21391 for stp_ac_arg in -D_POSIX_C_SOURCE=200809L -std=c99 ; do
21392
21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
21394 printf %s "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
21395 stp_acOLDCFLAGS="${CFLAGS}"
21396 NCFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
21397 CFLAGS="$NCFLAGS -Werror"
21398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21400
21401 int
21402 main (void)
21403 {
21404
21405 ;
21406 return 0;
21407 }
21408 _ACEOF
21409 if ac_fn_c_try_compile "$LINENO"
21410 then :
21411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21412 printf "%s\n" "yes" >&6; };
21413 stp_newCFLAGS="$NCFLAGS"
21414 else case e in #(
21415 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 printf "%s\n" "no" >&6; };
21417 stp_newCFLAGS="$stp_acOLDCFLAGS" ;;
21418 esac
21419 fi
21420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21421 CFLAGS="$stp_acOLDCFLAGS"
21422 GNUCFLAGS="${stp_newCFLAGS}"
21423
21424 done
21425
21426
21427
21428
21429
21430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__ syntax" >&5
21431 printf %s "checking if $CC supports __attribute__ syntax... " >&6; }
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h. */
21434 typedef struct __attribute__((__packed__)) {
21435 unsigned char foo;
21436 char bar;
21437 long baz;
21438 } test_struct_t;
21439 int
21440 main (void)
21441 {
21442 test_struct_t mystruct;
21443 ;
21444 return 0;
21445 }
21446 _ACEOF
21447 if ac_fn_c_try_compile "$LINENO"
21448 then :
21449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21450 printf "%s\n" "yes" >&6; }
21451 printf "%s\n" "#define HAVE_GCC_ATTRIBUTES 1" >>confdefs.h
21452
21453 else case e in #(
21454 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21455 printf "%s\n" "no" >&6; } ;;
21456 esac
21457 fi
21458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21459
21460
21461
21462
21463 if test "$USE_READLINE" = yes ; then
21464 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
21465 unset ac_cv_lib_readline_readline
21466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
21467 printf %s "checking for readline in -lreadline... " >&6; }
21468 if test ${ac_cv_lib_readline_readline+y}
21469 then :
21470 printf %s "(cached) " >&6
21471 else case e in #(
21472 e) ac_check_lib_save_LIBS=$LIBS
21473 LIBS="-lreadline -lncurses $LIBS"
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply.
21480 The 'extern "C"' is for builds by C++ compilers;
21481 although this is not generally supported in C code supporting it here
21482 has little cost and some practical benefit (sr 110532). */
21483 #ifdef __cplusplus
21484 extern "C"
21485 #endif
21486 char readline (void);
21487 int
21488 main (void)
21489 {
21490 return readline ();
21491 ;
21492 return 0;
21493 }
21494 _ACEOF
21495 if ac_fn_c_try_link "$LINENO"
21496 then :
21497 ac_cv_lib_readline_readline=yes
21498 else case e in #(
21499 e) ac_cv_lib_readline_readline=no ;;
21500 esac
21501 fi
21502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21503 conftest$ac_exeext conftest.$ac_ext
21504 LIBS=$ac_check_lib_save_LIBS ;;
21505 esac
21506 fi
21507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
21508 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
21509 if test "x$ac_cv_lib_readline_readline" = xyes
21510 then :
21511 HAVE_LIBREADLINE=true
21512 else case e in #(
21513 e) HAVE_LIBREADLINE=false ;;
21514 esac
21515 fi
21516
21517 if test x${HAVE_LIBREADLINE} = xtrue ; then
21518 echo " Using -lreadline -lncurses"
21519 EXTRA_LIBREADLINE_DEPS=-lncurses
21520 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
21521
21522 else
21523 unset ac_cv_lib_readline_readline
21524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
21525 printf %s "checking for readline in -lreadline... " >&6; }
21526 if test ${ac_cv_lib_readline_readline+y}
21527 then :
21528 printf %s "(cached) " >&6
21529 else case e in #(
21530 e) ac_check_lib_save_LIBS=$LIBS
21531 LIBS="-lreadline -lcurses $LIBS"
21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h. */
21534
21535 /* Override any GCC internal prototype to avoid an error.
21536 Use char because int might match the return type of a GCC
21537 builtin and then its argument prototype would still apply.
21538 The 'extern "C"' is for builds by C++ compilers;
21539 although this is not generally supported in C code supporting it here
21540 has little cost and some practical benefit (sr 110532). */
21541 #ifdef __cplusplus
21542 extern "C"
21543 #endif
21544 char readline (void);
21545 int
21546 main (void)
21547 {
21548 return readline ();
21549 ;
21550 return 0;
21551 }
21552 _ACEOF
21553 if ac_fn_c_try_link "$LINENO"
21554 then :
21555 ac_cv_lib_readline_readline=yes
21556 else case e in #(
21557 e) ac_cv_lib_readline_readline=no ;;
21558 esac
21559 fi
21560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21561 conftest$ac_exeext conftest.$ac_ext
21562 LIBS=$ac_check_lib_save_LIBS ;;
21563 esac
21564 fi
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
21566 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
21567 if test "x$ac_cv_lib_readline_readline" = xyes
21568 then :
21569 HAVE_LIBREADLINE=true
21570 else case e in #(
21571 e) HAVE_LIBREADLINE=false ;;
21572 esac
21573 fi
21574
21575 if test x${HAVE_LIBREADLINE} = xtrue ; then
21576 echo " Using -lreadline -lcurses"
21577 EXTRA_LIBREADLINE_DEPS=-lcurses
21578 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
21579
21580 else
21581 unset ac_cv_lib_readline_readline
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
21583 printf %s "checking for readline in -lreadline... " >&6; }
21584 if test ${ac_cv_lib_readline_readline+y}
21585 then :
21586 printf %s "(cached) " >&6
21587 else case e in #(
21588 e) ac_check_lib_save_LIBS=$LIBS
21589 LIBS="-lreadline -ltermcap $LIBS"
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21592
21593 /* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply.
21596 The 'extern "C"' is for builds by C++ compilers;
21597 although this is not generally supported in C code supporting it here
21598 has little cost and some practical benefit (sr 110532). */
21599 #ifdef __cplusplus
21600 extern "C"
21601 #endif
21602 char readline (void);
21603 int
21604 main (void)
21605 {
21606 return readline ();
21607 ;
21608 return 0;
21609 }
21610 _ACEOF
21611 if ac_fn_c_try_link "$LINENO"
21612 then :
21613 ac_cv_lib_readline_readline=yes
21614 else case e in #(
21615 e) ac_cv_lib_readline_readline=no ;;
21616 esac
21617 fi
21618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21619 conftest$ac_exeext conftest.$ac_ext
21620 LIBS=$ac_check_lib_save_LIBS ;;
21621 esac
21622 fi
21623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
21624 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
21625 if test "x$ac_cv_lib_readline_readline" = xyes
21626 then :
21627 HAVE_LIBREADLINE=true
21628 else case e in #(
21629 e) HAVE_LIBREADLINE=false ;;
21630 esac
21631 fi
21632
21633 if test x${HAVE_LIBREADLINE} = xtrue ; then
21634 echo " Using -lreadline -ltermcap"
21635 EXTRA_LIBREADLINE_DEPS=-ltermcap
21636 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
21637
21638 else
21639 unset ac_cv_lib_readline_readline
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
21641 printf %s "checking for readline in -lreadline... " >&6; }
21642 if test ${ac_cv_lib_readline_readline+y}
21643 then :
21644 printf %s "(cached) " >&6
21645 else case e in #(
21646 e) ac_check_lib_save_LIBS=$LIBS
21647 LIBS="-lreadline $LIBS"
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21650
21651 /* Override any GCC internal prototype to avoid an error.
21652 Use char because int might match the return type of a GCC
21653 builtin and then its argument prototype would still apply.
21654 The 'extern "C"' is for builds by C++ compilers;
21655 although this is not generally supported in C code supporting it here
21656 has little cost and some practical benefit (sr 110532). */
21657 #ifdef __cplusplus
21658 extern "C"
21659 #endif
21660 char readline (void);
21661 int
21662 main (void)
21663 {
21664 return readline ();
21665 ;
21666 return 0;
21667 }
21668 _ACEOF
21669 if ac_fn_c_try_link "$LINENO"
21670 then :
21671 ac_cv_lib_readline_readline=yes
21672 else case e in #(
21673 e) ac_cv_lib_readline_readline=no ;;
21674 esac
21675 fi
21676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21677 conftest$ac_exeext conftest.$ac_ext
21678 LIBS=$ac_check_lib_save_LIBS ;;
21679 esac
21680 fi
21681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
21682 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
21683 if test "x$ac_cv_lib_readline_readline" = xyes
21684 then :
21685 HAVE_LIBREADLINE=true
21686 else case e in #(
21687 e) HAVE_LIBREADLINE=false ;;
21688 esac
21689 fi
21690
21691 if test x${HAVE_LIBREADLINE} = xtrue ; then
21692 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
21693
21694 else
21695 printf "%s\n" "#define HAVE_LIBREADLINE 0" >>confdefs.h
21696
21697 fi
21698 fi
21699 fi
21700 fi
21701 else
21702 unset ac_cv_lib_readline_readline
21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
21704 printf %s "checking for readline in -lreadline... " >&6; }
21705 if test ${ac_cv_lib_readline_readline+y}
21706 then :
21707 printf %s "(cached) " >&6
21708 else case e in #(
21709 e) ac_check_lib_save_LIBS=$LIBS
21710 LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21713
21714 /* Override any GCC internal prototype to avoid an error.
21715 Use char because int might match the return type of a GCC
21716 builtin and then its argument prototype would still apply.
21717 The 'extern "C"' is for builds by C++ compilers;
21718 although this is not generally supported in C code supporting it here
21719 has little cost and some practical benefit (sr 110532). */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char readline (void);
21724 int
21725 main (void)
21726 {
21727 return readline ();
21728 ;
21729 return 0;
21730 }
21731 _ACEOF
21732 if ac_fn_c_try_link "$LINENO"
21733 then :
21734 ac_cv_lib_readline_readline=yes
21735 else case e in #(
21736 e) ac_cv_lib_readline_readline=no ;;
21737 esac
21738 fi
21739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21740 conftest$ac_exeext conftest.$ac_ext
21741 LIBS=$ac_check_lib_save_LIBS ;;
21742 esac
21743 fi
21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
21745 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
21746 if test "x$ac_cv_lib_readline_readline" = xyes
21747 then :
21748 HAVE_LIBREADLINE=true
21749 else case e in #(
21750 e) HAVE_LIBREADLINE=false ;;
21751 esac
21752 fi
21753
21754 if test x${HAVE_LIBREADLINE} = xtrue ; then
21755 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
21756 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
21757
21758 else
21759 printf "%s\n" "#define HAVE_LIBREADLINE 0" >>confdefs.h
21760
21761 fi
21762 fi
21763 else
21764 HAVE_LIBREADLINE=false
21765 printf "%s\n" "#define HAVE_LIBREADLINE 0" >>confdefs.h
21766
21767 fi
21768
21769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
21770 printf %s "checking for lt_dlopen in -lltdl... " >&6; }
21771 if test ${ac_cv_lib_ltdl_lt_dlopen+y}
21772 then :
21773 printf %s "(cached) " >&6
21774 else case e in #(
21775 e) ac_check_lib_save_LIBS=$LIBS
21776 LIBS="-lltdl $LIBS"
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21779
21780 /* Override any GCC internal prototype to avoid an error.
21781 Use char because int might match the return type of a GCC
21782 builtin and then its argument prototype would still apply.
21783 The 'extern "C"' is for builds by C++ compilers;
21784 although this is not generally supported in C code supporting it here
21785 has little cost and some practical benefit (sr 110532). */
21786 #ifdef __cplusplus
21787 extern "C"
21788 #endif
21789 char lt_dlopen (void);
21790 int
21791 main (void)
21792 {
21793 return lt_dlopen ();
21794 ;
21795 return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_c_try_link "$LINENO"
21799 then :
21800 ac_cv_lib_ltdl_lt_dlopen=yes
21801 else case e in #(
21802 e) ac_cv_lib_ltdl_lt_dlopen=no ;;
21803 esac
21804 fi
21805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21806 conftest$ac_exeext conftest.$ac_ext
21807 LIBS=$ac_check_lib_save_LIBS ;;
21808 esac
21809 fi
21810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
21811 printf "%s\n" "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
21812 if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes
21813 then :
21814 LTDL_LIBS="-lltdl"
21815 fi
21816
21817
21818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21819 printf %s "checking for dlopen in -ldl... " >&6; }
21820 if test ${ac_cv_lib_dl_dlopen+y}
21821 then :
21822 printf %s "(cached) " >&6
21823 else case e in #(
21824 e) ac_check_lib_save_LIBS=$LIBS
21825 LIBS="-ldl $LIBS"
21826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21828
21829 /* Override any GCC internal prototype to avoid an error.
21830 Use char because int might match the return type of a GCC
21831 builtin and then its argument prototype would still apply.
21832 The 'extern "C"' is for builds by C++ compilers;
21833 although this is not generally supported in C code supporting it here
21834 has little cost and some practical benefit (sr 110532). */
21835 #ifdef __cplusplus
21836 extern "C"
21837 #endif
21838 char dlopen (void);
21839 int
21840 main (void)
21841 {
21842 return dlopen ();
21843 ;
21844 return 0;
21845 }
21846 _ACEOF
21847 if ac_fn_c_try_link "$LINENO"
21848 then :
21849 ac_cv_lib_dl_dlopen=yes
21850 else case e in #(
21851 e) ac_cv_lib_dl_dlopen=no ;;
21852 esac
21853 fi
21854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21855 conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS ;;
21857 esac
21858 fi
21859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21860 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
21861 if test "x$ac_cv_lib_dl_dlopen" = xyes
21862 then :
21863 DLOPEN_LIBS="-ldl"
21864 fi
21865
21866
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21868 printf %s "checking for pow in -lm... " >&6; }
21869 if test ${ac_cv_lib_m_pow+y}
21870 then :
21871 printf %s "(cached) " >&6
21872 else case e in #(
21873 e) ac_check_lib_save_LIBS=$LIBS
21874 LIBS="-lm $LIBS"
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876 /* end confdefs.h. */
21877
21878 /* Override any GCC internal prototype to avoid an error.
21879 Use char because int might match the return type of a GCC
21880 builtin and then its argument prototype would still apply.
21881 The 'extern "C"' is for builds by C++ compilers;
21882 although this is not generally supported in C code supporting it here
21883 has little cost and some practical benefit (sr 110532). */
21884 #ifdef __cplusplus
21885 extern "C"
21886 #endif
21887 char pow (void);
21888 int
21889 main (void)
21890 {
21891 return pow ();
21892 ;
21893 return 0;
21894 }
21895 _ACEOF
21896 if ac_fn_c_try_link "$LINENO"
21897 then :
21898 ac_cv_lib_m_pow=yes
21899 else case e in #(
21900 e) ac_cv_lib_m_pow=no ;;
21901 esac
21902 fi
21903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21904 conftest$ac_exeext conftest.$ac_ext
21905 LIBS=$ac_check_lib_save_LIBS ;;
21906 esac
21907 fi
21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21909 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
21910 if test "x$ac_cv_lib_m_pow" = xyes
21911 then :
21912 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} -lm"
21913 gutenprint_libdeps="${gutenprint_libdeps} -lm"
21914 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} -lm"
21915 gutenprintui2_libdeps="${gutenprintui2_libdeps} -lm"
21916 LIBM=-lm
21917
21918 fi
21919
21920
21921 # CUPS path setup
21922
21923 # Fix "cups_prefix" variable if it hasn't been specified...
21924 if test "x${cups_prefix}" = xNONE -o "x{$cups_prefix}" = x ; then
21925 if test "x${prefix}" = xNONE -o "x${prefix}" = x ; then
21926 cups_prefix="/usr"
21927 else
21928 cups_prefix="${prefix}"
21929 fi
21930 fi
21931
21932 # Fix "cups_exec_prefix" variable if it hasn't been specified...
21933 if test "x${cups_exec_prefix}" = xNONE -o "x${cups_exec_prefix}" = x ; then
21934 if test x"${exec_prefix}" = xNONE -o "x${exec_prefix}" = x ; then
21935 cups_exec_prefix="${cups_prefix}"
21936 else
21937 cups_exec_prefix="${exec_prefix}"
21938 fi
21939 fi
21940
21941 # Get explicit CUPS directories if possible
21942 if test "x$CUPS_CONFIG" != x -a "x$NO_PKGCONFIG_PATHS" = x; then
21943 cups_conf_datadir="`$CUPS_CONFIG --datadir`"
21944 cups_conf_serverroot="`$CUPS_CONFIG --serverroot`"
21945 cups_conf_serverbin="`$CUPS_CONFIG --serverbin`"
21946 else
21947 cups_conf_datadir="${cups_prefix}/share/cups"
21948 cups_conf_serverroot="${cups_prefix}/etc/cups"
21949 cups_conf_serverbin="${cups_exec_prefix}/lib/cups"
21950 fi
21951
21952 # And the rest!
21953 cups_bindir="${cups_exec_prefix}/bin"
21954 cups_sbindir="${cups_exec_prefix}/sbin"
21955
21956
21957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21958 printf %s "checking for pow in -lm... " >&6; }
21959 if test ${ac_cv_lib_m_pow+y}
21960 then :
21961 printf %s "(cached) " >&6
21962 else case e in #(
21963 e) ac_check_lib_save_LIBS=$LIBS
21964 LIBS="-lm $LIBS"
21965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21967
21968 /* Override any GCC internal prototype to avoid an error.
21969 Use char because int might match the return type of a GCC
21970 builtin and then its argument prototype would still apply.
21971 The 'extern "C"' is for builds by C++ compilers;
21972 although this is not generally supported in C code supporting it here
21973 has little cost and some practical benefit (sr 110532). */
21974 #ifdef __cplusplus
21975 extern "C"
21976 #endif
21977 char pow (void);
21978 int
21979 main (void)
21980 {
21981 return pow ();
21982 ;
21983 return 0;
21984 }
21985 _ACEOF
21986 if ac_fn_c_try_link "$LINENO"
21987 then :
21988 ac_cv_lib_m_pow=yes
21989 else case e in #(
21990 e) ac_cv_lib_m_pow=no ;;
21991 esac
21992 fi
21993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21994 conftest$ac_exeext conftest.$ac_ext
21995 LIBS=$ac_check_lib_save_LIBS ;;
21996 esac
21997 fi
21998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21999 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
22000 if test "x$ac_cv_lib_m_pow" = xyes
22001 then :
22002 CUPS_LIBS="${CUPS_LIBS} -lm"
22003 fi
22004
22005 if test x${BUILD_CUPS} = xyes ; then
22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
22007 printf %s "checking for gzgets in -lz... " >&6; }
22008 if test ${ac_cv_lib_z_gzgets+y}
22009 then :
22010 printf %s "(cached) " >&6
22011 else case e in #(
22012 e) ac_check_lib_save_LIBS=$LIBS
22013 LIBS="-lz $LIBS"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22016
22017 /* Override any GCC internal prototype to avoid an error.
22018 Use char because int might match the return type of a GCC
22019 builtin and then its argument prototype would still apply.
22020 The 'extern "C"' is for builds by C++ compilers;
22021 although this is not generally supported in C code supporting it here
22022 has little cost and some practical benefit (sr 110532). */
22023 #ifdef __cplusplus
22024 extern "C"
22025 #endif
22026 char gzgets (void);
22027 int
22028 main (void)
22029 {
22030 return gzgets ();
22031 ;
22032 return 0;
22033 }
22034 _ACEOF
22035 if ac_fn_c_try_link "$LINENO"
22036 then :
22037 ac_cv_lib_z_gzgets=yes
22038 else case e in #(
22039 e) ac_cv_lib_z_gzgets=no ;;
22040 esac
22041 fi
22042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22043 conftest$ac_exeext conftest.$ac_ext
22044 LIBS=$ac_check_lib_save_LIBS ;;
22045 esac
22046 fi
22047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
22048 printf "%s\n" "$ac_cv_lib_z_gzgets" >&6; }
22049 if test "x$ac_cv_lib_z_gzgets" = xyes
22050 then :
22051 HAVE_LIBZ=true
22052 else case e in #(
22053 e) HAVE_LIBZ=false ;;
22054 esac
22055 fi
22056
22057 if test x${HAVE_LIBZ} = xtrue ; then
22058 GENPPD_LIBS="-lz"
22059
22060 printf "%s\n" "#define HAVE_LIBZ /**/" >>confdefs.h
22061
22062 fi
22063 # Extract the first word of "cups-config", so it can be a program name with args.
22064 set dummy cups-config; ac_word=$2
22065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22066 printf %s "checking for $ac_word... " >&6; }
22067 if test ${ac_cv_path_CUPS_CONFIG+y}
22068 then :
22069 printf %s "(cached) " >&6
22070 else case e in #(
22071 e) case $CUPS_CONFIG in
22072 [\\/]* | ?:[\\/]*)
22073 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
22074 ;;
22075 *)
22076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22077 for as_dir in $PATH
22078 do
22079 IFS=$as_save_IFS
22080 case $as_dir in #(((
22081 '') as_dir=./ ;;
22082 */) ;;
22083 *) as_dir=$as_dir/ ;;
22084 esac
22085 for ac_exec_ext in '' $ac_executable_extensions; do
22086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22087 ac_cv_path_CUPS_CONFIG="$as_dir$ac_word$ac_exec_ext"
22088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22089 break 2
22090 fi
22091 done
22092 done
22093 IFS=$as_save_IFS
22094
22095 ;;
22096 esac ;;
22097 esac
22098 fi
22099 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
22100 if test -n "$CUPS_CONFIG"; then
22101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5
22102 printf "%s\n" "$CUPS_CONFIG" >&6; }
22103 else
22104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22105 printf "%s\n" "no" >&6; }
22106 fi
22107
22108
22109 if test "x$CUPS_CONFIG" != x; then
22110 CUPS_LIBS="`$CUPS_CONFIG --ldflags` `$CUPS_CONFIG --image --libs`"
22111 CUPS_CFLAGS="`$CUPS_CONFIG --cflags`"
22112 else
22113 SAVELIBS="$LIBS"
22114 LIBS="$LIBS ${CUPS_LIBS}"
22115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22116 printf %s "checking for socket in -lsocket... " >&6; }
22117 if test ${ac_cv_lib_socket_socket+y}
22118 then :
22119 printf %s "(cached) " >&6
22120 else case e in #(
22121 e) ac_check_lib_save_LIBS=$LIBS
22122 LIBS="-lsocket $LIBS"
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125
22126 /* Override any GCC internal prototype to avoid an error.
22127 Use char because int might match the return type of a GCC
22128 builtin and then its argument prototype would still apply.
22129 The 'extern "C"' is for builds by C++ compilers;
22130 although this is not generally supported in C code supporting it here
22131 has little cost and some practical benefit (sr 110532). */
22132 #ifdef __cplusplus
22133 extern "C"
22134 #endif
22135 char socket (void);
22136 int
22137 main (void)
22138 {
22139 return socket ();
22140 ;
22141 return 0;
22142 }
22143 _ACEOF
22144 if ac_fn_c_try_link "$LINENO"
22145 then :
22146 ac_cv_lib_socket_socket=yes
22147 else case e in #(
22148 e) ac_cv_lib_socket_socket=no ;;
22149 esac
22150 fi
22151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22152 conftest$ac_exeext conftest.$ac_ext
22153 LIBS=$ac_check_lib_save_LIBS ;;
22154 esac
22155 fi
22156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22157 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
22158 if test "x$ac_cv_lib_socket_socket" = xyes
22159 then :
22160 if test x${OSTYPE} != xirix ; then
22161 CUPS_LIBS="${CUPS_LIBS} -lsocket"
22162 LIBS="$LIBS -lsocket"
22163 fi
22164 fi
22165
22166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
22167 printf %s "checking for gethostbyaddr in -lnsl... " >&6; }
22168 if test ${ac_cv_lib_nsl_gethostbyaddr+y}
22169 then :
22170 printf %s "(cached) " >&6
22171 else case e in #(
22172 e) ac_check_lib_save_LIBS=$LIBS
22173 LIBS="-lnsl $LIBS"
22174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h. */
22176
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply.
22180 The 'extern "C"' is for builds by C++ compilers;
22181 although this is not generally supported in C code supporting it here
22182 has little cost and some practical benefit (sr 110532). */
22183 #ifdef __cplusplus
22184 extern "C"
22185 #endif
22186 char gethostbyaddr (void);
22187 int
22188 main (void)
22189 {
22190 return gethostbyaddr ();
22191 ;
22192 return 0;
22193 }
22194 _ACEOF
22195 if ac_fn_c_try_link "$LINENO"
22196 then :
22197 ac_cv_lib_nsl_gethostbyaddr=yes
22198 else case e in #(
22199 e) ac_cv_lib_nsl_gethostbyaddr=no ;;
22200 esac
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS ;;
22205 esac
22206 fi
22207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
22208 printf "%s\n" "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
22209 if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes
22210 then :
22211 if test x${OSTYPE} != xirix ; then
22212 CUPS_LIBS="${CUPS_LIBS} -lnsl"
22213 LIBS="$LIBS -lnsl"
22214 fi
22215 fi
22216
22217
22218 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
22219 if test "x$ac_cv_header_openssl_ssl_h" = xyes
22220 then :
22221
22222 SSL="no"
22223
22224 for libcrypto in \
22225 "-lcrypto" \
22226 "-lcrypto -lrsaref" \
22227 "-lcrypto -lRSAglue -lrsaref"
22228 do
22229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
22230 printf %s "checking for SSL_new in -lssl... " >&6; }
22231 if test ${ac_cv_lib_ssl_SSL_new+y}
22232 then :
22233 printf %s "(cached) " >&6
22234 else case e in #(
22235 e) ac_check_lib_save_LIBS=$LIBS
22236 LIBS="-lssl $libcrypto $LIBS"
22237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22238 /* end confdefs.h. */
22239
22240 /* Override any GCC internal prototype to avoid an error.
22241 Use char because int might match the return type of a GCC
22242 builtin and then its argument prototype would still apply.
22243 The 'extern "C"' is for builds by C++ compilers;
22244 although this is not generally supported in C code supporting it here
22245 has little cost and some practical benefit (sr 110532). */
22246 #ifdef __cplusplus
22247 extern "C"
22248 #endif
22249 char SSL_new (void);
22250 int
22251 main (void)
22252 {
22253 return SSL_new ();
22254 ;
22255 return 0;
22256 }
22257 _ACEOF
22258 if ac_fn_c_try_link "$LINENO"
22259 then :
22260 ac_cv_lib_ssl_SSL_new=yes
22261 else case e in #(
22262 e) ac_cv_lib_ssl_SSL_new=no ;;
22263 esac
22264 fi
22265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS ;;
22268 esac
22269 fi
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
22271 printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; }
22272 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
22273 then :
22274 CUPS_LIBS="${CUPS_LIBS} -lssl $libcrypto"
22275 SSL="yes"
22276 fi
22277
22278
22279 if test x$SSL = xyes; then
22280 break
22281 fi
22282 done
22283 fi
22284
22285
22286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cupsPrintFiles in -lcups" >&5
22287 printf %s "checking for cupsPrintFiles in -lcups... " >&6; }
22288 if test ${ac_cv_lib_cups_cupsPrintFiles+y}
22289 then :
22290 printf %s "(cached) " >&6
22291 else case e in #(
22292 e) ac_check_lib_save_LIBS=$LIBS
22293 LIBS="-lcups $LIBS"
22294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22295 /* end confdefs.h. */
22296
22297 /* Override any GCC internal prototype to avoid an error.
22298 Use char because int might match the return type of a GCC
22299 builtin and then its argument prototype would still apply.
22300 The 'extern "C"' is for builds by C++ compilers;
22301 although this is not generally supported in C code supporting it here
22302 has little cost and some practical benefit (sr 110532). */
22303 #ifdef __cplusplus
22304 extern "C"
22305 #endif
22306 char cupsPrintFiles (void);
22307 int
22308 main (void)
22309 {
22310 return cupsPrintFiles ();
22311 ;
22312 return 0;
22313 }
22314 _ACEOF
22315 if ac_fn_c_try_link "$LINENO"
22316 then :
22317 ac_cv_lib_cups_cupsPrintFiles=yes
22318 else case e in #(
22319 e) ac_cv_lib_cups_cupsPrintFiles=no ;;
22320 esac
22321 fi
22322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS ;;
22325 esac
22326 fi
22327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cups_cupsPrintFiles" >&5
22328 printf "%s\n" "$ac_cv_lib_cups_cupsPrintFiles" >&6; }
22329 if test "x$ac_cv_lib_cups_cupsPrintFiles" = xyes
22330 then :
22331 CUPS_LIBS="${CUPS_LIBS} -lcups"
22332 else case e in #(
22333 e) LIBS="$LIBS -lcups"
22334 as_fn_error $? "Cannot find CUPS libraries (libcups)" "$LINENO" 5 ;;
22335 esac
22336 fi
22337
22338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cupsRasterOpen in -lcupsimage" >&5
22339 printf %s "checking for cupsRasterOpen in -lcupsimage... " >&6; }
22340 if test ${ac_cv_lib_cupsimage_cupsRasterOpen+y}
22341 then :
22342 printf %s "(cached) " >&6
22343 else case e in #(
22344 e) ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lcupsimage -lcups $LIBS"
22346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22348
22349 /* Override any GCC internal prototype to avoid an error.
22350 Use char because int might match the return type of a GCC
22351 builtin and then its argument prototype would still apply.
22352 The 'extern "C"' is for builds by C++ compilers;
22353 although this is not generally supported in C code supporting it here
22354 has little cost and some practical benefit (sr 110532). */
22355 #ifdef __cplusplus
22356 extern "C"
22357 #endif
22358 char cupsRasterOpen (void);
22359 int
22360 main (void)
22361 {
22362 return cupsRasterOpen ();
22363 ;
22364 return 0;
22365 }
22366 _ACEOF
22367 if ac_fn_c_try_link "$LINENO"
22368 then :
22369 ac_cv_lib_cupsimage_cupsRasterOpen=yes
22370 else case e in #(
22371 e) ac_cv_lib_cupsimage_cupsRasterOpen=no ;;
22372 esac
22373 fi
22374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22375 conftest$ac_exeext conftest.$ac_ext
22376 LIBS=$ac_check_lib_save_LIBS ;;
22377 esac
22378 fi
22379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cupsimage_cupsRasterOpen" >&5
22380 printf "%s\n" "$ac_cv_lib_cupsimage_cupsRasterOpen" >&6; }
22381 if test "x$ac_cv_lib_cupsimage_cupsRasterOpen" = xyes
22382 then :
22383 CUPS_LIBS="${CUPS_LIBS} -lcupsimage"
22384 else case e in #(
22385 e) as_fn_error $? "Cannot find CUPS libraries (libcupsimage)" "$LINENO" 5 ;;
22386 esac
22387 fi
22388
22389 LIBS="$SAVELIBS"
22390
22391 if test "x${cups_prefix}" != "x/usr" -a "x${cups_prefix}" != x; then
22392 CUPS_CFLAGS="-I${cups_prefix}/include"
22393 else
22394 CUPS_CFLAGS=""
22395 fi
22396 fi
22397 fi
22398
22399
22400 # Autoupdate added the next two lines to ensure that your configure
22401 # script's behavior did not change. They are probably safe to remove.
22402
22403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
22404 printf %s "checking for egrep... " >&6; }
22405 if test ${ac_cv_path_EGREP+y}
22406 then :
22407 printf %s "(cached) " >&6
22408 else case e in #(
22409 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
22410 then ac_cv_path_EGREP="$GREP -E"
22411 else
22412 if test -z "$EGREP"; then
22413 ac_path_EGREP_found=false
22414 # Loop through the user's path and test for each of PROGNAME-LIST
22415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22417 do
22418 IFS=$as_save_IFS
22419 case $as_dir in #(((
22420 '') as_dir=./ ;;
22421 */) ;;
22422 *) as_dir=$as_dir/ ;;
22423 esac
22424 for ac_prog in egrep
22425 do
22426 for ac_exec_ext in '' $ac_executable_extensions; do
22427 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
22428 as_fn_executable_p "$ac_path_EGREP" || continue
22429 # Check for GNU ac_path_EGREP and select it if it is found.
22430 # Check for GNU $ac_path_EGREP
22431 case `"$ac_path_EGREP" --version 2>&1` in #(
22432 *GNU*)
22433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
22434 #(
22435 *)
22436 ac_count=0
22437 printf %s 0123456789 >"conftest.in"
22438 while :
22439 do
22440 cat "conftest.in" "conftest.in" >"conftest.tmp"
22441 mv "conftest.tmp" "conftest.in"
22442 cp "conftest.in" "conftest.nl"
22443 printf "%s\n" 'EGREP' >> "conftest.nl"
22444 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22446 as_fn_arith $ac_count + 1 && ac_count=$as_val
22447 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
22448 # Best one so far, save it but keep looking for a better one
22449 ac_cv_path_EGREP="$ac_path_EGREP"
22450 ac_path_EGREP_max=$ac_count
22451 fi
22452 # 10*(2^10) chars as input seems more than enough
22453 test $ac_count -gt 10 && break
22454 done
22455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22456 esac
22457
22458 $ac_path_EGREP_found && break 3
22459 done
22460 done
22461 done
22462 IFS=$as_save_IFS
22463 if test -z "$ac_cv_path_EGREP"; then
22464 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
22465 fi
22466 else
22467 ac_cv_path_EGREP=$EGREP
22468 fi
22469
22470 fi ;;
22471 esac
22472 fi
22473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
22474 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
22475 EGREP="$ac_cv_path_EGREP"
22476
22477 EGREP_TRADITIONAL=$EGREP
22478 ac_cv_path_EGREP_TRADITIONAL=$EGREP
22479
22480
22481 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
22482 if test "x$ac_cv_header_getopt_h" = xyes
22483 then :
22484 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
22485
22486 fi
22487
22488 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
22489 if test "x$ac_cv_header_readline_readline_h" = xyes
22490 then :
22491 HAVE_READLINE_READLINE_H=true
22492 else case e in #(
22493 e) HAVE_READLINE_READLINE_H=false ;;
22494 esac
22495 fi
22496
22497 if test x${HAVE_READLINE_READLINE_H} = xtrue ; then
22498
22499 printf "%s\n" "#define HAVE_READLINE_READLINE_H /**/" >>confdefs.h
22500
22501 if test x${HAVE_LIBREADLINE} = xtrue ; then
22502 LIBREADLINE_DEPS="-lreadline $EXTRA_LIBREADLINE_DEPS"
22503 fi
22504 fi
22505 for ac_header in dlfcn.h
22506 do :
22507 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
22508 if test "x$ac_cv_header_dlfcn_h" = xyes
22509 then :
22510 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
22511 HAVE_DLFCN_H=true
22512 fi
22513
22514 done
22515 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
22516 if test "x$ac_cv_header_fcntl_h" = xyes
22517 then :
22518 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
22519
22520 fi
22521
22522 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
22523 if test "x$ac_cv_header_limits_h" = xyes
22524 then :
22525 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
22526
22527 fi
22528
22529 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22530 if test "x$ac_cv_header_locale_h" = xyes
22531 then :
22532 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
22533
22534 fi
22535
22536 for ac_header in ltdl.h
22537 do :
22538 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
22539 if test "x$ac_cv_header_ltdl_h" = xyes
22540 then :
22541 printf "%s\n" "#define HAVE_LTDL_H 1" >>confdefs.h
22542 HAVE_LTDL_H=true
22543 fi
22544
22545 done
22546 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
22547 if test "x$ac_cv_header_stdarg_h" = xyes
22548 then :
22549 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
22550
22551 fi
22552 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22553 if test "x$ac_cv_header_stdlib_h" = xyes
22554 then :
22555 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
22556
22557 fi
22558 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
22559 if test "x$ac_cv_header_string_h" = xyes
22560 then :
22561 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
22562
22563 fi
22564
22565 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22566 if test "x$ac_cv_header_sys_time_h" = xyes
22567 then :
22568 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22569
22570 fi
22571 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22572 if test "x$ac_cv_header_sys_types_h" = xyes
22573 then :
22574 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22575
22576 fi
22577
22578 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
22579 if test "x$ac_cv_header_time_h" = xyes
22580 then :
22581 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
22582
22583 fi
22584
22585 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22586 if test "x$ac_cv_header_unistd_h" = xyes
22587 then :
22588 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
22589
22590 fi
22591
22592
22593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22594 printf %s "checking for an ANSI C-conforming const... " >&6; }
22595 if test ${ac_cv_c_const+y}
22596 then :
22597 printf %s "(cached) " >&6
22598 else case e in #(
22599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22601
22602 int
22603 main (void)
22604 {
22605
22606 #ifndef __cplusplus
22607 /* Ultrix mips cc rejects this sort of thing. */
22608 typedef int charset[2];
22609 const charset cs = { 0, 0 };
22610 /* SunOS 4.1.1 cc rejects this. */
22611 char const *const *pcpcc;
22612 char **ppc;
22613 /* NEC SVR4.0.2 mips cc rejects this. */
22614 struct point {int x, y;};
22615 static struct point const zero = {0,0};
22616 /* IBM XL C 1.02.0.0 rejects this.
22617 It does not let you subtract one const X* pointer from another in
22618 an arm of an if-expression whose if-part is not a constant
22619 expression */
22620 const char *g = "string";
22621 pcpcc = &g + (g ? g-g : 0);
22622 /* HPUX 7.0 cc rejects these. */
22623 ++pcpcc;
22624 ppc = (char**) pcpcc;
22625 pcpcc = (char const *const *) ppc;
22626 { /* SCO 3.2v4 cc rejects this sort of thing. */
22627 char tx;
22628 char *t = &tx;
22629 char const *s = 0 ? (char *) 0 : (char const *) 0;
22630
22631 *t++ = 0;
22632 if (s) return 0;
22633 }
22634 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22635 int x[] = {25, 17};
22636 const int *foo = &x[0];
22637 ++foo;
22638 }
22639 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22640 typedef const int *iptr;
22641 iptr p = 0;
22642 ++p;
22643 }
22644 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
22645 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22646 struct s { int j; const int *ap[3]; } bx;
22647 struct s *b = &bx; b->j = 5;
22648 }
22649 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22650 const int foo = 10;
22651 if (!foo) return 0;
22652 }
22653 return !cs[0] && !zero.x;
22654 #endif
22655
22656 ;
22657 return 0;
22658 }
22659 _ACEOF
22660 if ac_fn_c_try_compile "$LINENO"
22661 then :
22662 ac_cv_c_const=yes
22663 else case e in #(
22664 e) ac_cv_c_const=no ;;
22665 esac
22666 fi
22667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22668 esac
22669 fi
22670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22671 printf "%s\n" "$ac_cv_c_const" >&6; }
22672 if test $ac_cv_c_const = no; then
22673
22674 printf "%s\n" "#define const /**/" >>confdefs.h
22675
22676 fi
22677
22678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22679 printf %s "checking for inline... " >&6; }
22680 if test ${ac_cv_c_inline+y}
22681 then :
22682 printf %s "(cached) " >&6
22683 else case e in #(
22684 e) ac_cv_c_inline=no
22685 for ac_kw in inline __inline__ __inline; do
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22688 #ifndef __cplusplus
22689 typedef int foo_t;
22690 static $ac_kw foo_t static_foo (void) {return 0; }
22691 $ac_kw foo_t foo (void) {return 0; }
22692 #endif
22693
22694 _ACEOF
22695 if ac_fn_c_try_compile "$LINENO"
22696 then :
22697 ac_cv_c_inline=$ac_kw
22698 fi
22699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22700 test "$ac_cv_c_inline" != no && break
22701 done
22702 ;;
22703 esac
22704 fi
22705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22706 printf "%s\n" "$ac_cv_c_inline" >&6; }
22707
22708 case $ac_cv_c_inline in
22709 inline | yes) ;;
22710 *)
22711 case $ac_cv_c_inline in
22712 no) ac_val=;;
22713 *) ac_val=$ac_cv_c_inline;;
22714 esac
22715 cat >>confdefs.h <<_ACEOF
22716 #ifndef __cplusplus
22717 #define inline $ac_val
22718 #endif
22719 _ACEOF
22720 ;;
22721 esac
22722
22723 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22724 if test "x$ac_cv_type_off_t" = xyes
22725 then :
22726
22727 else case e in #(
22728 e)
22729 printf "%s\n" "#define off_t long int" >>confdefs.h
22730 ;;
22731 esac
22732 fi
22733
22734 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22735 if test "x$ac_cv_type_size_t" = xyes
22736 then :
22737
22738 else case e in #(
22739 e)
22740 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
22741 ;;
22742 esac
22743 fi
22744
22745
22746 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22747 if test "x$ac_cv_func_nanosleep" = xyes
22748 then :
22749 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22750
22751 fi
22752 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22753 if test "x$ac_cv_func_poll" = xyes
22754 then :
22755 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
22756
22757 fi
22758 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22759 if test "x$ac_cv_func_usleep" = xyes
22760 then :
22761 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
22762
22763 fi
22764
22765 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
22766 if test "x$ac_cv_func_getopt_long" = xyes
22767 then :
22768 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
22769
22770 fi
22771
22772 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
22773 if test "x$ac_cv_func_setenv" = xyes
22774 then :
22775 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
22776
22777 fi
22778 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
22779 if test "x$ac_cv_func_getuid" = xyes
22780 then :
22781 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
22782
22783 fi
22784 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
22785 if test "x$ac_cv_func_waitpid" = xyes
22786 then :
22787 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
22788
22789 fi
22790
22791
22792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
22793 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
22794 if test ${ac_cv_c_undeclared_builtin_options+y}
22795 then :
22796 printf %s "(cached) " >&6
22797 else case e in #(
22798 e) ac_save_CFLAGS=$CFLAGS
22799 ac_cv_c_undeclared_builtin_options='cannot detect'
22800 for ac_arg in '' -fno-builtin; do
22801 CFLAGS="$ac_save_CFLAGS $ac_arg"
22802 # This test program should *not* compile successfully.
22803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804 /* end confdefs.h. */
22805
22806 int
22807 main (void)
22808 {
22809 (void) strchr;
22810 ;
22811 return 0;
22812 }
22813 _ACEOF
22814 if ac_fn_c_try_compile "$LINENO"
22815 then :
22816
22817 else case e in #(
22818 e) # This test program should compile successfully.
22819 # No library function is consistently available on
22820 # freestanding implementations, so test against a dummy
22821 # declaration. Include always-available headers on the
22822 # off chance that they somehow elicit warnings.
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22825 #include <float.h>
22826 #include <limits.h>
22827 #include <stdarg.h>
22828 #include <stddef.h>
22829 extern void ac_decl (int, char *);
22830
22831 int
22832 main (void)
22833 {
22834 (void) ac_decl (0, (char *) 0);
22835 (void) ac_decl;
22836
22837 ;
22838 return 0;
22839 }
22840 _ACEOF
22841 if ac_fn_c_try_compile "$LINENO"
22842 then :
22843 if test x"$ac_arg" = x
22844 then :
22845 ac_cv_c_undeclared_builtin_options='none needed'
22846 else case e in #(
22847 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
22848 esac
22849 fi
22850 break
22851 fi
22852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22853 esac
22854 fi
22855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22856 done
22857 CFLAGS=$ac_save_CFLAGS
22858 ;;
22859 esac
22860 fi
22861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
22862 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
22863 case $ac_cv_c_undeclared_builtin_options in #(
22864 'cannot detect') :
22865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22866 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22867 as_fn_error $? "cannot make $CC report undeclared builtins
22868 See 'config.log' for more details" "$LINENO" 5; } ;; #(
22869 'none needed') :
22870 ac_c_undeclared_builtin_options='' ;; #(
22871 *) :
22872 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
22873 esac
22874
22875 ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22876 if test "x$ac_cv_have_decl_strdup" = xyes
22877 then :
22878 ac_have_decl=1
22879 else case e in #(
22880 e) ac_have_decl=0 ;;
22881 esac
22882 fi
22883 printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h
22884 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22885 if test "x$ac_cv_have_decl_strndup" = xyes
22886 then :
22887 ac_have_decl=1
22888 else case e in #(
22889 e) ac_have_decl=0 ;;
22890 esac
22891 fi
22892 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
22893
22894
22895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing finite" >&5
22896 printf %s "checking for library containing finite... " >&6; }
22897 if test ${ac_cv_search_finite+y}
22898 then :
22899 printf %s "(cached) " >&6
22900 else case e in #(
22901 e) ac_func_search_save_LIBS=$LIBS
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h. */
22904
22905 /* Override any GCC internal prototype to avoid an error.
22906 Use char because int might match the return type of a GCC
22907 builtin and then its argument prototype would still apply.
22908 The 'extern "C"' is for builds by C++ compilers;
22909 although this is not generally supported in C code supporting it here
22910 has little cost and some practical benefit (sr 110532). */
22911 #ifdef __cplusplus
22912 extern "C"
22913 #endif
22914 char finite (void);
22915 int
22916 main (void)
22917 {
22918 return finite ();
22919 ;
22920 return 0;
22921 }
22922 _ACEOF
22923 for ac_lib in '' m
22924 do
22925 if test -z "$ac_lib"; then
22926 ac_res="none required"
22927 else
22928 ac_res=-l$ac_lib
22929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22930 fi
22931 if ac_fn_c_try_link "$LINENO"
22932 then :
22933 ac_cv_search_finite=$ac_res
22934 fi
22935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22936 conftest$ac_exeext
22937 if test ${ac_cv_search_finite+y}
22938 then :
22939 break
22940 fi
22941 done
22942 if test ${ac_cv_search_finite+y}
22943 then :
22944
22945 else case e in #(
22946 e) ac_cv_search_finite=no ;;
22947 esac
22948 fi
22949 rm conftest.$ac_ext
22950 LIBS=$ac_func_search_save_LIBS ;;
22951 esac
22952 fi
22953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_finite" >&5
22954 printf "%s\n" "$ac_cv_search_finite" >&6; }
22955 ac_res=$ac_cv_search_finite
22956 if test "$ac_res" != no
22957 then :
22958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22959 CFLAGS="-Disfinite=finite $CFLAGS"
22960 fi
22961
22962
22963 if test x${BUILD_CUPS} = xyes; then
22964 BUILD_CUPS_TRUE=
22965 BUILD_CUPS_FALSE='#'
22966 else
22967 BUILD_CUPS_TRUE='#'
22968 BUILD_CUPS_FALSE=
22969 fi
22970
22971
22972 if test x${BUILD_CUPS_1_2} = xyes; then
22973 BUILD_CUPS_1_2_TRUE=
22974 BUILD_CUPS_1_2_FALSE='#'
22975 else
22976 BUILD_CUPS_1_2_TRUE='#'
22977 BUILD_CUPS_1_2_FALSE=
22978 fi
22979
22980
22981 if test x${BUILD_CUPS_PPDS} = xyes; then
22982 BUILD_CUPS_PPDS_TRUE=
22983 BUILD_CUPS_PPDS_FALSE='#'
22984 else
22985 BUILD_CUPS_PPDS_TRUE='#'
22986 BUILD_CUPS_PPDS_FALSE=
22987 fi
22988
22989
22990 if test x${CUPS_PPDS_AT_TOP_LEVEL} = xyes; then
22991 CUPS_PPDS_AT_TOP_LEVEL_TRUE=
22992 CUPS_PPDS_AT_TOP_LEVEL_FALSE='#'
22993 else
22994 CUPS_PPDS_AT_TOP_LEVEL_TRUE='#'
22995 CUPS_PPDS_AT_TOP_LEVEL_FALSE=
22996 fi
22997
22998
22999 if test x${BUILD_TRANSLATED_CUPS_PPDS} = xyes ; then
23000 BUILD_TRANSLATED_CUPS_PPDS_TRUE=
23001 BUILD_TRANSLATED_CUPS_PPDS_FALSE='#'
23002 else
23003 BUILD_TRANSLATED_CUPS_PPDS_TRUE='#'
23004 BUILD_TRANSLATED_CUPS_PPDS_FALSE=
23005 fi
23006
23007
23008 if test x${BUILD_GLOBALIZED_CUPS_PPDS} = xyes ; then
23009 BUILD_GLOBALIZED_CUPS_PPDS_TRUE=
23010 BUILD_GLOBALIZED_CUPS_PPDS_FALSE='#'
23011 else
23012 BUILD_GLOBALIZED_CUPS_PPDS_TRUE='#'
23013 BUILD_GLOBALIZED_CUPS_PPDS_FALSE=
23014 fi
23015
23016
23017 if test x${BUILD_SIMPLIFIED_CUPS_PPDS} = xyes; then
23018 BUILD_SIMPLIFIED_CUPS_PPDS_TRUE=
23019 BUILD_SIMPLIFIED_CUPS_PPDS_FALSE='#'
23020 else
23021 BUILD_SIMPLIFIED_CUPS_PPDS_TRUE='#'
23022 BUILD_SIMPLIFIED_CUPS_PPDS_FALSE=
23023 fi
23024
23025
23026 if test x${USE_LEVEL3_PS} = xno ; then
23027 CUPS_PPD_PS_LEVEL=2
23028 else
23029 CUPS_PPD_PS_LEVEL=3
23030 fi
23031
23032 if test x${USE_LEVEL3_PS} = xyes; then
23033 USE_LEVEL3_PS_TRUE=
23034 USE_LEVEL3_PS_FALSE='#'
23035 else
23036 USE_LEVEL3_PS_TRUE='#'
23037 USE_LEVEL3_PS_FALSE=
23038 fi
23039
23040
23041 if test x${BUILD_ESCPUTIL} = xyes; then
23042 BUILD_ESCPUTIL_TRUE=
23043 BUILD_ESCPUTIL_FALSE='#'
23044 else
23045 BUILD_ESCPUTIL_TRUE='#'
23046 BUILD_ESCPUTIL_FALSE=
23047 fi
23048
23049
23050 if test x${BUILD_TEST} = xyes; then
23051 BUILD_TEST_TRUE=
23052 BUILD_TEST_FALSE='#'
23053 else
23054 BUILD_TEST_TRUE='#'
23055 BUILD_TEST_FALSE=
23056 fi
23057
23058
23059 if test x${BUILD_TESTPATTERN} = xyes; then
23060 BUILD_TESTPATTERN_TRUE=
23061 BUILD_TESTPATTERN_FALSE='#'
23062 else
23063 BUILD_TESTPATTERN_TRUE='#'
23064 BUILD_TESTPATTERN_FALSE=
23065 fi
23066
23067
23068 if test x${BUILD_LIBGUTENPRINTUI2} = xyes; then
23069 BUILD_LIBGUTENPRINTUI2_TRUE=
23070 BUILD_LIBGUTENPRINTUI2_FALSE='#'
23071 else
23072 BUILD_LIBGUTENPRINTUI2_TRUE='#'
23073 BUILD_LIBGUTENPRINTUI2_FALSE=
23074 fi
23075
23076
23077 if test x${BUILD_GIMP2} = xyes; then
23078 BUILD_GIMP2_TRUE=
23079 BUILD_GIMP2_FALSE='#'
23080 else
23081 BUILD_GIMP2_TRUE='#'
23082 BUILD_GIMP2_FALSE=
23083 fi
23084
23085
23086 if test x${BUILD_DOC} = xyes; then
23087 BUILD_DOC_TRUE=
23088 BUILD_DOC_FALSE='#'
23089 else
23090 BUILD_DOC_TRUE='#'
23091 BUILD_DOC_FALSE=
23092 fi
23093
23094
23095 if test x${BUILD_GIMP2_AS_GUTENPRINT} = xyes; then
23096 BUILD_GIMP2_AS_GUTENPRINT_TRUE=
23097 BUILD_GIMP2_AS_GUTENPRINT_FALSE='#'
23098 else
23099 BUILD_GIMP2_AS_GUTENPRINT_TRUE='#'
23100 BUILD_GIMP2_AS_GUTENPRINT_FALSE=
23101 fi
23102
23103
23104 if test x${INSTALL_SAMPLES} = xyes; then
23105 INSTALL_SAMPLES_TRUE=
23106 INSTALL_SAMPLES_FALSE='#'
23107 else
23108 INSTALL_SAMPLES_TRUE='#'
23109 INSTALL_SAMPLES_FALSE=
23110 fi
23111
23112
23113 if test x${INSTALL_USER_GUIDE} = xyes; then
23114 INSTALL_USER_GUIDE_TRUE=
23115 INSTALL_USER_GUIDE_FALSE='#'
23116 else
23117 INSTALL_USER_GUIDE_TRUE='#'
23118 INSTALL_USER_GUIDE_FALSE=
23119 fi
23120
23121
23122 if test x${BUILD_LIBUSB_BACKENDS} = xyes; then
23123 BUILD_LIBUSB_BACKENDS_TRUE=
23124 BUILD_LIBUSB_BACKENDS_FALSE='#'
23125 else
23126 BUILD_LIBUSB_BACKENDS_TRUE='#'
23127 BUILD_LIBUSB_BACKENDS_FALSE=
23128 fi
23129
23130
23131
23132 # loadable modules
23133 # portable sh has no AND test...
23134 if test -n "$HAVE_LTDL_H"; then
23135 if test -n "$LTDL_LIBS"; then
23136 LTDL_POSSIBLE="true"
23137 fi
23138 fi
23139 if test -n "$HAVE_DLFCN_H"; then
23140 if test -n "$DLOPEN_LIBS"; then
23141 DLOPEN_POSSIBLE="true"
23142 fi
23143 fi
23144
23145 # define what the user chose to build, if possible.
23146 # Prefer dlopen over ltdl.
23147 if test x$WITH_MODULES = xyes; then
23148 if test x$DLOPEN_POSSIBLE = xtrue; then
23149 USE_DLOPEN="true"
23150 elif test x$LDTL_POSSIBLE = xtrue; then
23151 USE_LTDL="true"
23152 fi
23153 elif test x$WITH_MODULES = xltdl; then
23154 if test x$LTDL_POSSIBLE = xtrue; then
23155 USE_LTDL="true"
23156 fi
23157 elif test x$WITH_MODULES = xdlopen; then
23158 if test x$DLOPEN_POSSIBLE = xtrue; then
23159 USE_DLOPEN="true"
23160 fi
23161 fi
23162
23163 # The current backends can use dlopen or libltdl
23164 if test x$BUILD_LIBUSB_BACKENDS = xyes; then
23165 if test x$DLOPEN_POSSIBLE = xtrue; then
23166 USE_DLOPEN="true"
23167 elif test x$LDTL_POSSIBLE = xtrue; then
23168 USE_LTDL="true"
23169 fi
23170 fi
23171
23172 # define what module system is to be used
23173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which module system will be used" >&5
23174 printf %s "checking which module system will be used... " >&6; }
23175 if test x$USE_LTDL = xtrue; then
23176 if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then
23177 MODULE="false"
23178 else
23179 MODULE="true"
23180
23181 printf "%s\n" "#define MODULE \"1\"" >>confdefs.h
23182
23183 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${LTDL_LIBS}"
23184 gutenprint_libdeps="${gutenprint_libdeps} ${LTDL_LIBS}"
23185 fi
23186 LIBUSB_BACKEND_LIBDEPS="${LIBUSB_BACKEND_LIBDEPS} ${LTDL_LIBS}"
23187
23188 printf "%s\n" "#define USE_LTDL \"1\"" >>confdefs.h
23189
23190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
23191 printf "%s\n" "ltdl" >&6; }
23192 elif test x$USE_DLOPEN = xtrue; then
23193 if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then
23194 MODULE="false"
23195 else
23196 MODULE="true"
23197
23198 printf "%s\n" "#define MODULE \"1\"" >>confdefs.h
23199
23200 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${DLOPEN_LIBS}"
23201 gutenprint_libdeps="${gutenprint_libdeps} ${DLOPEN_LIBS}"
23202 fi
23203 LIBUSB_BACKEND_LIBDEPS="${LIBUSB_BACKEND_LIBDEPS} ${DLOPEN_LIBS}"
23204
23205 printf "%s\n" "#define USE_DLOPEN \"1\"" >>confdefs.h
23206
23207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
23208 printf "%s\n" "dlopen" >&6; }
23209 else
23210 MODULE="false"
23211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
23212 printf "%s\n" "static" >&6; }
23213 fi
23214 if test x$MODULE = xtrue; then
23215 BUILD_MODULES_TRUE=
23216 BUILD_MODULES_FALSE='#'
23217 else
23218 BUILD_MODULES_TRUE='#'
23219 BUILD_MODULES_FALSE=
23220 fi
23221
23222
23223 if test x"$STATIC_GENPPD" = xyes; then
23224 BUILD_GENPPD_STATIC_TRUE=
23225 BUILD_GENPPD_STATIC_FALSE='#'
23226 else
23227 BUILD_GENPPD_STATIC_TRUE='#'
23228 BUILD_GENPPD_STATIC_FALSE=
23229 fi
23230
23231
23232
23233
23234
23235 printf "%s\n" "#define CUPS_DATADIR \"${cups_conf_datadir}\"" >>confdefs.h
23236
23237
23238
23239 if test "${CUPS_PPDS_AT_TOP_LEVEL}" = yes ; then
23240 printf "%s\n" "#define CUPS_MODELDIR \"${cups_conf_datadir}/model/\"" >>confdefs.h
23241
23242 else
23243 printf "%s\n" "#define CUPS_MODELDIR \"${cups_conf_datadir}/model/${PACKAGE}/${GUTENPRINT_RELEASE_VERSION}/\"" >>confdefs.h
23244
23245 fi
23246
23247
23248 # Check whether --with-cups_nickname was given.
23249 if test ${with_cups_nickname+y}
23250 then :
23251 withval=$with_cups_nickname; CUPS_PPD_NICKNAME_STRING="$withval"
23252 else case e in #(
23253 e) CUPS_PPD_NICKNAME_STRING=" - CUPS+Gutenprint v" ;;
23254 esac
23255 fi
23256
23257
23258
23259 printf "%s\n" "#define CUPS_PPD_NICKNAME_STRING \"$CUPS_PPD_NICKNAME_STRING\"" >>confdefs.h
23260
23261
23262
23263
23264 printf "%s\n" "#define CUPS_PPD_PS_LEVEL ${CUPS_PPD_PS_LEVEL}" >>confdefs.h
23265
23266 RELEASE_DATE="01 Feb 2026"
23267
23268 printf "%s\n" "#define RELEASE_DATE \"${RELEASE_DATE}\"" >>confdefs.h
23269
23270
23271
23272 MINIMAL_PRINTERS_TO_TEST="escp2-r1800 escp2-3880 \
23273 pcl-g_4 pcl-g_5c pcl-500 \
23274 mitsubishi-p95d shinko-chcs2145 kodak-1400 canon-cp910 mitsubishi-9800d \
23275 bjc-s200 bjc-PIXMA-Pro9000mk2 \
23276 datamax_oneil_I4212e \
23277 lexmark-z43"
23278
23279
23280 printf "%s\n" "#define MINIMAL_PRINTERS_TO_TEST ${MINIMAL_PRINTERS_TO_TEST}" >>confdefs.h
23281
23282
23283 RM='rm'
23284
23285 PKGROOT=`pwd`
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317 gutenprint_libs="${GUTENPRINT_LIBS} ${gutenprint_libdeps}"
23318
23319
23320
23321 gutenprintui2_libs="${GUTENPRINTUI2_LIBS} ${gutenprintui2_libdeps}"
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336 # Check whether --with-archflags was given.
23337 if test ${with_archflags+y}
23338 then :
23339 withval=$with_archflags; CFLAGS="$CFLAGS $withval"
23340 LDFLAGS="$LDFLAGS $withval"
23341 fi
23342
23343
23344
23345 ac_config_files="$ac_config_files Makefile"
23346
23347 ac_config_files="$ac_config_files doc/Makefile"
23348
23349 ac_config_files="$ac_config_files doc/gutenprint.dox"
23350
23351 ac_config_files="$ac_config_files doc/gutenprintui2.dox"
23352
23353 ac_config_files="$ac_config_files doc/developer/Makefile"
23354
23355 ac_config_files="$ac_config_files include/Makefile"
23356
23357 ac_config_files="$ac_config_files include/gutenprint/Makefile"
23358
23359 ac_config_files="$ac_config_files include/gutenprintui2/Makefile"
23360
23361 ac_config_files="$ac_config_files include/gutenprint/gutenprint-version.h"
23362
23363 ac_config_files="$ac_config_files man/Makefile"
23364
23365 ac_config_files="$ac_config_files man/cups-calibrate.8"
23366
23367 ac_config_files="$ac_config_files man/cups-genppd.8"
23368
23369 ac_config_files="$ac_config_files man/cups-genppdupdate.8"
23370
23371 ac_config_files="$ac_config_files man/escputil.1"
23372
23373 ac_config_files="$ac_config_files po/Makefile.in"
23374
23375 ac_config_files="$ac_config_files samples/Makefile"
23376
23377 ac_config_files="$ac_config_files src/Makefile"
23378
23379 ac_config_files="$ac_config_files src/cups/Makefile"
23380
23381 ac_config_files="$ac_config_files src/cups/Info.plist"
23382
23383 ac_config_files="$ac_config_files src/cups/cups-genppdupdate"
23384
23385 ac_config_files="$ac_config_files src/cups/test-ppds.test"
23386
23387 ac_config_files="$ac_config_files src/cups/min-pagesize"
23388
23389 ac_config_files="$ac_config_files src/escputil/Makefile"
23390
23391 ac_config_files="$ac_config_files src/testpattern/compare-image-files"
23392
23393 ac_config_files="$ac_config_files src/testpattern/run-testpattern"
23394
23395 ac_config_files="$ac_config_files src/testpattern/run-testpattern-1.test"
23396
23397 ac_config_files="$ac_config_files src/testpattern/run-testpattern-2"
23398
23399 ac_config_files="$ac_config_files src/testpattern/run-testpattern-2.test"
23400
23401 ac_config_files="$ac_config_files src/testpattern/compare-checksums"
23402
23403 ac_config_files="$ac_config_files src/testpattern/compress-checksums"
23404
23405 ac_config_files="$ac_config_files src/cups/test-rastertogutenprint"
23406
23407 ac_config_files="$ac_config_files src/cups/test-rastertogutenprint.test"
23408
23409 ac_config_files="$ac_config_files src/testpattern/Makefile"
23410
23411 ac_config_files="$ac_config_files src/gimp2/Makefile"
23412
23413 ac_config_files="$ac_config_files src/main/Makefile"
23414
23415 ac_config_files="$ac_config_files src/main/gutenprint.pc"
23416
23417 ac_config_files="$ac_config_files src/xml/Makefile"
23418
23419 ac_config_files="$ac_config_files src/xml/dither/Makefile"
23420
23421 ac_config_files="$ac_config_files src/xml/papers/Makefile"
23422
23423 ac_config_files="$ac_config_files src/xml/printers/Makefile"
23424
23425 ac_config_files="$ac_config_files src/xml/escp2/Makefile"
23426
23427 ac_config_files="$ac_config_files src/xml/escp2/media/Makefile"
23428
23429 ac_config_files="$ac_config_files src/xml/escp2/mediasizes/Makefile"
23430
23431 ac_config_files="$ac_config_files src/xml/escp2/model/Makefile"
23432
23433 ac_config_files="$ac_config_files src/xml/escp2/model/base/Makefile"
23434
23435 ac_config_files="$ac_config_files src/xml/escp2/inputslots/Makefile"
23436
23437 ac_config_files="$ac_config_files src/xml/escp2/inks/Makefile"
23438
23439 ac_config_files="$ac_config_files src/xml/escp2/weaves/Makefile"
23440
23441 ac_config_files="$ac_config_files src/xml/escp2/qualitypresets/Makefile"
23442
23443 ac_config_files="$ac_config_files src/xml/escp2/resolutions/Makefile"
23444
23445 ac_config_files="$ac_config_files src/gutenprintui2/Makefile"
23446
23447 ac_config_files="$ac_config_files src/gutenprintui2/gutenprintui2.pc"
23448
23449 ac_config_files="$ac_config_files test/Makefile"
23450
23451 ac_config_files="$ac_config_files test/compress-5level.sh"
23452
23453 ac_config_files="$ac_config_files test/compress-6level.sh"
23454
23455 ac_config_files="$ac_config_files test/uncompress-5level.sh"
23456
23457 ac_config_files="$ac_config_files test/uncompress-6level.sh"
23458
23459 ac_config_files="$ac_config_files test/parse-bjc"
23460
23461 ac_config_files="$ac_config_files test/parse-escp2"
23462
23463 ac_config_files="$ac_config_files test/run-testdither.test"
23464
23465 ac_config_files="$ac_config_files test/run-weavetest.test"
23466
23467 ac_config_files="$ac_config_files test/test-curve.test"
23468
23469 ac_config_files="$ac_config_files scripts/Makefile"
23470
23471 ac_config_files="$ac_config_files scripts/mkgitlog"
23472
23473 ac_config_files="$ac_config_files scripts/gversion"
23474
23475 ac_config_files="$ac_config_files scripts/test-gversion"
23476
23477 ac_config_files="$ac_config_files scripts/wzpaq"
23478
23479 ac_config_commands="$ac_config_commands default"
23480
23481
23482 cat >confcache <<\_ACEOF
23483 # This file is a shell script that caches the results of configure
23484 # tests run on this system so they can be shared between configure
23485 # scripts and configure runs, see configure's option --config-cache.
23486 # It is not useful on other systems. If it contains results you don't
23487 # want to keep, you may remove or edit it.
23488 #
23489 # config.status only pays attention to the cache file if you give it
23490 # the --recheck option to rerun configure.
23491 #
23492 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
23493 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
23494 # following values.
23495
23496 _ACEOF
23497
23498 # The following way of writing the cache mishandles newlines in values,
23499 # but we know of no workaround that is simple, portable, and efficient.
23500 # So, we kill variables containing newlines.
23501 # Ultrix sh set writes to stderr and can't be redirected directly,
23502 # and sets the high bit in the cache file unless we assign to the vars.
23503 (
23504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23505 eval ac_val=\$$ac_var
23506 case $ac_val in #(
23507 *${as_nl}*)
23508 case $ac_var in #(
23509 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23510 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23511 esac
23512 case $ac_var in #(
23513 _ | IFS | as_nl) ;; #(
23514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23515 *) { eval $ac_var=; unset $ac_var;} ;;
23516 esac ;;
23517 esac
23518 done
23519
23520 (set) 2>&1 |
23521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23522 *${as_nl}ac_space=\ *)
23523 # 'set' does not quote correctly, so add quotes: double-quote
23524 # substitution turns \\\\ into \\, and sed turns \\ into \.
23525 sed -n \
23526 "s/'/'\\\\''/g;
23527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23528 ;; #(
23529 *)
23530 # 'set' quotes correctly as required by POSIX, so do not add quotes.
23531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23532 ;;
23533 esac |
23534 sort
23535 ) |
23536 sed '
23537 /^ac_cv_env_/b end
23538 t clear
23539 :clear
23540 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23541 t end
23542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23543 :end' >>confcache
23544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23545 if test -w "$cache_file"; then
23546 if test "x$cache_file" != "x/dev/null"; then
23547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23548 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23549 if test ! -f "$cache_file" || test -h "$cache_file"; then
23550 cat confcache >"$cache_file"
23551 else
23552 case $cache_file in #(
23553 */* | ?:*)
23554 mv -f confcache "$cache_file"$$ &&
23555 mv -f "$cache_file"$$ "$cache_file" ;; #(
23556 *)
23557 mv -f confcache "$cache_file" ;;
23558 esac
23559 fi
23560 fi
23561 else
23562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23563 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23564 fi
23565 fi
23566 rm -f confcache
23567
23568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23569 # Let make expand exec_prefix.
23570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23571
23572 DEFS=-DHAVE_CONFIG_H
23573
23574 ac_libobjs=
23575 ac_ltlibobjs=
23576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23577 # 1. Remove the extension, and $U if already installed.
23578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23579 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23581 # will be set to the directory where LIBOBJS objects are built.
23582 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23583 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23584 done
23585 LIBOBJS=$ac_libobjs
23586
23587 LTLIBOBJS=$ac_ltlibobjs
23588
23589
23590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23591 printf %s "checking that generated files are newer than configure... " >&6; }
23592 if test -n "$am_sleep_pid"; then
23593 # Hide warnings about reused PIDs.
23594 wait $am_sleep_pid 2>/dev/null
23595 fi
23596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23597 printf "%s\n" "done" >&6; }
23598 case $enable_silent_rules in # (((
23599 yes) AM_DEFAULT_VERBOSITY=0;;
23600 no) AM_DEFAULT_VERBOSITY=1;;
23601 esac
23602 if test $am_cv_make_support_nested_variables = yes; then
23603 AM_V='$(V)'
23604 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23605 else
23606 AM_V=$AM_DEFAULT_VERBOSITY
23607 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23608 fi
23609
23610 if test -n "$EXEEXT"; then
23611 am__EXEEXT_TRUE=
23612 am__EXEEXT_FALSE='#'
23613 else
23614 am__EXEEXT_TRUE='#'
23615 am__EXEEXT_FALSE=
23616 fi
23617
23618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23619 as_fn_error $? "conditional \"AMDEP\" was never defined.
23620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23621 fi
23622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23623 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23625 fi
23626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23627 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23629 fi
23630 if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
23631 as_fn_error $? "conditional \"USE_NLS\" was never defined.
23632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23633 fi
23634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23635 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23637 fi
23638 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23639 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23641 fi
23642 if test -z "${BUILD_CUPS_TRUE}" && test -z "${BUILD_CUPS_FALSE}"; then
23643 as_fn_error $? "conditional \"BUILD_CUPS\" was never defined.
23644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23645 fi
23646 if test -z "${BUILD_CUPS_1_2_TRUE}" && test -z "${BUILD_CUPS_1_2_FALSE}"; then
23647 as_fn_error $? "conditional \"BUILD_CUPS_1_2\" was never defined.
23648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23649 fi
23650 if test -z "${BUILD_CUPS_PPDS_TRUE}" && test -z "${BUILD_CUPS_PPDS_FALSE}"; then
23651 as_fn_error $? "conditional \"BUILD_CUPS_PPDS\" was never defined.
23652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23653 fi
23654 if test -z "${CUPS_PPDS_AT_TOP_LEVEL_TRUE}" && test -z "${CUPS_PPDS_AT_TOP_LEVEL_FALSE}"; then
23655 as_fn_error $? "conditional \"CUPS_PPDS_AT_TOP_LEVEL\" was never defined.
23656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23657 fi
23658 if test -z "${BUILD_TRANSLATED_CUPS_PPDS_TRUE}" && test -z "${BUILD_TRANSLATED_CUPS_PPDS_FALSE}"; then
23659 as_fn_error $? "conditional \"BUILD_TRANSLATED_CUPS_PPDS\" was never defined.
23660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23661 fi
23662 if test -z "${BUILD_GLOBALIZED_CUPS_PPDS_TRUE}" && test -z "${BUILD_GLOBALIZED_CUPS_PPDS_FALSE}"; then
23663 as_fn_error $? "conditional \"BUILD_GLOBALIZED_CUPS_PPDS\" was never defined.
23664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23665 fi
23666 if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_TRUE}" && test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_FALSE}"; then
23667 as_fn_error $? "conditional \"BUILD_SIMPLIFIED_CUPS_PPDS\" was never defined.
23668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23669 fi
23670 if test -z "${USE_LEVEL3_PS_TRUE}" && test -z "${USE_LEVEL3_PS_FALSE}"; then
23671 as_fn_error $? "conditional \"USE_LEVEL3_PS\" was never defined.
23672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23673 fi
23674 if test -z "${BUILD_ESCPUTIL_TRUE}" && test -z "${BUILD_ESCPUTIL_FALSE}"; then
23675 as_fn_error $? "conditional \"BUILD_ESCPUTIL\" was never defined.
23676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23677 fi
23678 if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
23679 as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
23680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23681 fi
23682 if test -z "${BUILD_TESTPATTERN_TRUE}" && test -z "${BUILD_TESTPATTERN_FALSE}"; then
23683 as_fn_error $? "conditional \"BUILD_TESTPATTERN\" was never defined.
23684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23685 fi
23686 if test -z "${BUILD_LIBGUTENPRINTUI2_TRUE}" && test -z "${BUILD_LIBGUTENPRINTUI2_FALSE}"; then
23687 as_fn_error $? "conditional \"BUILD_LIBGUTENPRINTUI2\" was never defined.
23688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23689 fi
23690 if test -z "${BUILD_GIMP2_TRUE}" && test -z "${BUILD_GIMP2_FALSE}"; then
23691 as_fn_error $? "conditional \"BUILD_GIMP2\" was never defined.
23692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23693 fi
23694 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
23695 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
23696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23697 fi
23698 if test -z "${BUILD_GIMP2_AS_GUTENPRINT_TRUE}" && test -z "${BUILD_GIMP2_AS_GUTENPRINT_FALSE}"; then
23699 as_fn_error $? "conditional \"BUILD_GIMP2_AS_GUTENPRINT\" was never defined.
23700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23701 fi
23702 if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then
23703 as_fn_error $? "conditional \"INSTALL_SAMPLES\" was never defined.
23704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23705 fi
23706 if test -z "${INSTALL_USER_GUIDE_TRUE}" && test -z "${INSTALL_USER_GUIDE_FALSE}"; then
23707 as_fn_error $? "conditional \"INSTALL_USER_GUIDE\" was never defined.
23708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23709 fi
23710 if test -z "${BUILD_LIBUSB_BACKENDS_TRUE}" && test -z "${BUILD_LIBUSB_BACKENDS_FALSE}"; then
23711 as_fn_error $? "conditional \"BUILD_LIBUSB_BACKENDS\" was never defined.
23712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23713 fi
23714 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
23715 as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
23716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23717 fi
23718 if test -z "${BUILD_GENPPD_STATIC_TRUE}" && test -z "${BUILD_GENPPD_STATIC_FALSE}"; then
23719 as_fn_error $? "conditional \"BUILD_GENPPD_STATIC\" was never defined.
23720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23721 fi
23722 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
23723
23724 LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'`
23725
23726
23727 : "${CONFIG_STATUS=./config.status}"
23728 ac_write_fail=0
23729 ac_clean_files_save=$ac_clean_files
23730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23732 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23733 as_write_fail=0
23734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23735 #! $SHELL
23736 # Generated by $as_me.
23737 # Run this file to recreate the current configuration.
23738 # Compiler output produced by configure, useful for debugging
23739 # configure, is in config.log if it exists.
23740
23741 debug=false
23742 ac_cs_recheck=false
23743 ac_cs_silent=false
23744
23745 SHELL=\${CONFIG_SHELL-$SHELL}
23746 export SHELL
23747 _ASEOF
23748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23749 ## -------------------- ##
23750 ## M4sh Initialization. ##
23751 ## -------------------- ##
23752
23753 # Be more Bourne compatible
23754 DUALCASE=1; export DUALCASE # for MKS sh
23755 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23756 then :
23757 emulate sh
23758 NULLCMD=:
23759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23760 # is contrary to our usage. Disable this feature.
23761 alias -g '${1+"$@"}'='"$@"'
23762 setopt NO_GLOB_SUBST
23763 else case e in #(
23764 e) case `(set -o) 2>/dev/null` in #(
23765 *posix*) :
23766 set -o posix ;; #(
23767 *) :
23768 ;;
23769 esac ;;
23770 esac
23771 fi
23772
23773
23774
23775 # Reset variables that may have inherited troublesome values from
23776 # the environment.
23777
23778 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23779 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23780 # side effect of setting IFS to empty, thus disabling word splitting.)
23781 # Quoting is to prevent editors from complaining about space-tab.
23782 as_nl='
23783 '
23784 export as_nl
23785 IFS=" "" $as_nl"
23786
23787 PS1='$ '
23788 PS2='> '
23789 PS4='+ '
23790
23791 # Ensure predictable behavior from utilities with locale-dependent output.
23792 LC_ALL=C
23793 export LC_ALL
23794 LANGUAGE=C
23795 export LANGUAGE
23796
23797 # We cannot yet rely on "unset" to work, but we need these variables
23798 # to be unset--not just set to an empty or harmless value--now, to
23799 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23800 # also avoids known problems related to "unset" and subshell syntax
23801 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23802 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23803 do eval test \${$as_var+y} \
23804 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23805 done
23806
23807 # Ensure that fds 0, 1, and 2 are open.
23808 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23809 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23810 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23811
23812 # The user is always right.
23813 if ${PATH_SEPARATOR+false} :; then
23814 PATH_SEPARATOR=:
23815 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23816 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23817 PATH_SEPARATOR=';'
23818 }
23819 fi
23820
23821
23822 # Find who we are. Look in the path if we contain no directory separator.
23823 as_myself=
23824 case $0 in #((
23825 *[\\/]* ) as_myself=$0 ;;
23826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23827 for as_dir in $PATH
23828 do
23829 IFS=$as_save_IFS
23830 case $as_dir in #(((
23831 '') as_dir=./ ;;
23832 */) ;;
23833 *) as_dir=$as_dir/ ;;
23834 esac
23835 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23836 done
23837 IFS=$as_save_IFS
23838
23839 ;;
23840 esac
23841 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23842 # in which case we are not to be found in the path.
23843 if test "x$as_myself" = x; then
23844 as_myself=$0
23845 fi
23846 if test ! -f "$as_myself"; then
23847 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23848 exit 1
23849 fi
23850
23851
23852
23853 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23854 # ----------------------------------------
23855 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23856 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23857 # script with STATUS, using 1 if that was 0.
23858 as_fn_error ()
23859 {
23860 as_status=$1; test $as_status -eq 0 && as_status=1
23861 if test "$4"; then
23862 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23864 fi
23865 printf "%s\n" "$as_me: error: $2" >&2
23866 as_fn_exit $as_status
23867 } # as_fn_error
23868
23869
23870 # as_fn_set_status STATUS
23871 # -----------------------
23872 # Set $? to STATUS, without forking.
23873 as_fn_set_status ()
23874 {
23875 return $1
23876 } # as_fn_set_status
23877
23878 # as_fn_exit STATUS
23879 # -----------------
23880 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23881 as_fn_exit ()
23882 {
23883 set +e
23884 as_fn_set_status $1
23885 exit $1
23886 } # as_fn_exit
23887
23888 # as_fn_unset VAR
23889 # ---------------
23890 # Portably unset VAR.
23891 as_fn_unset ()
23892 {
23893 { eval $1=; unset $1;}
23894 }
23895 as_unset=as_fn_unset
23896
23897 # as_fn_append VAR VALUE
23898 # ----------------------
23899 # Append the text in VALUE to the end of the definition contained in VAR. Take
23900 # advantage of any shell optimizations that allow amortized linear growth over
23901 # repeated appends, instead of the typical quadratic growth present in naive
23902 # implementations.
23903 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23904 then :
23905 eval 'as_fn_append ()
23906 {
23907 eval $1+=\$2
23908 }'
23909 else case e in #(
23910 e) as_fn_append ()
23911 {
23912 eval $1=\$$1\$2
23913 } ;;
23914 esac
23915 fi # as_fn_append
23916
23917 # as_fn_arith ARG...
23918 # ------------------
23919 # Perform arithmetic evaluation on the ARGs, and store the result in the
23920 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23921 # must be portable across $(()) and expr.
23922 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23923 then :
23924 eval 'as_fn_arith ()
23925 {
23926 as_val=$(( $* ))
23927 }'
23928 else case e in #(
23929 e) as_fn_arith ()
23930 {
23931 as_val=`expr "$@" || test $? -eq 1`
23932 } ;;
23933 esac
23934 fi # as_fn_arith
23935
23936
23937 if expr a : '\(a\)' >/dev/null 2>&1 &&
23938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23939 as_expr=expr
23940 else
23941 as_expr=false
23942 fi
23943
23944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23945 as_basename=basename
23946 else
23947 as_basename=false
23948 fi
23949
23950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23951 as_dirname=dirname
23952 else
23953 as_dirname=false
23954 fi
23955
23956 as_me=`$as_basename -- "$0" ||
23957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23958 X"$0" : 'X\(//\)$' \| \
23959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23960 printf "%s\n" X/"$0" |
23961 sed '/^.*\/\([^/][^/]*\)\/*$/{
23962 s//\1/
23963 q
23964 }
23965 /^X\/\(\/\/\)$/{
23966 s//\1/
23967 q
23968 }
23969 /^X\/\(\/\).*/{
23970 s//\1/
23971 q
23972 }
23973 s/.*/./; q'`
23974
23975 # Avoid depending upon Character Ranges.
23976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23979 as_cr_digits='0123456789'
23980 as_cr_alnum=$as_cr_Letters$as_cr_digits
23981
23982
23983 # Determine whether it's possible to make 'echo' print without a newline.
23984 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23985 # for compatibility with existing Makefiles.
23986 ECHO_C= ECHO_N= ECHO_T=
23987 case `echo -n x` in #(((((
23988 -n*)
23989 case `echo 'xy\c'` in
23990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23991 xy) ECHO_C='\c';;
23992 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23993 ECHO_T=' ';;
23994 esac;;
23995 *)
23996 ECHO_N='-n';;
23997 esac
23998
23999 # For backward compatibility with old third-party macros, we provide
24000 # the shell variables $as_echo and $as_echo_n. New code should use
24001 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24002 as_echo='printf %s\n'
24003 as_echo_n='printf %s'
24004
24005 rm -f conf$$ conf$$.exe conf$$.file
24006 if test -d conf$$.dir; then
24007 rm -f conf$$.dir/conf$$.file
24008 else
24009 rm -f conf$$.dir
24010 mkdir conf$$.dir 2>/dev/null
24011 fi
24012 if (echo >conf$$.file) 2>/dev/null; then
24013 if ln -s conf$$.file conf$$ 2>/dev/null; then
24014 as_ln_s='ln -s'
24015 # ... but there are two gotchas:
24016 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
24017 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
24018 # In both cases, we have to default to 'cp -pR'.
24019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24020 as_ln_s='cp -pR'
24021 elif ln conf$$.file conf$$ 2>/dev/null; then
24022 as_ln_s=ln
24023 else
24024 as_ln_s='cp -pR'
24025 fi
24026 else
24027 as_ln_s='cp -pR'
24028 fi
24029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24030 rmdir conf$$.dir 2>/dev/null
24031
24032
24033 # as_fn_mkdir_p
24034 # -------------
24035 # Create "$as_dir" as a directory, including parents if necessary.
24036 as_fn_mkdir_p ()
24037 {
24038
24039 case $as_dir in #(
24040 -*) as_dir=./$as_dir;;
24041 esac
24042 test -d "$as_dir" || eval $as_mkdir_p || {
24043 as_dirs=
24044 while :; do
24045 case $as_dir in #(
24046 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24047 *) as_qdir=$as_dir;;
24048 esac
24049 as_dirs="'$as_qdir' $as_dirs"
24050 as_dir=`$as_dirname -- "$as_dir" ||
24051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24052 X"$as_dir" : 'X\(//\)[^/]' \| \
24053 X"$as_dir" : 'X\(//\)$' \| \
24054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24055 printf "%s\n" X"$as_dir" |
24056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24057 s//\1/
24058 q
24059 }
24060 /^X\(\/\/\)[^/].*/{
24061 s//\1/
24062 q
24063 }
24064 /^X\(\/\/\)$/{
24065 s//\1/
24066 q
24067 }
24068 /^X\(\/\).*/{
24069 s//\1/
24070 q
24071 }
24072 s/.*/./; q'`
24073 test -d "$as_dir" && break
24074 done
24075 test -z "$as_dirs" || eval "mkdir $as_dirs"
24076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24077
24078
24079 } # as_fn_mkdir_p
24080 if mkdir -p . 2>/dev/null; then
24081 as_mkdir_p='mkdir -p "$as_dir"'
24082 else
24083 test -d ./-p && rmdir ./-p
24084 as_mkdir_p=false
24085 fi
24086
24087
24088 # as_fn_executable_p FILE
24089 # -----------------------
24090 # Test if FILE is an executable regular file.
24091 as_fn_executable_p ()
24092 {
24093 test -f "$1" && test -x "$1"
24094 } # as_fn_executable_p
24095 as_test_x='test -x'
24096 as_executable_p=as_fn_executable_p
24097
24098 # Sed expression to map a string onto a valid CPP name.
24099 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24100 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
24101
24102 # Sed expression to map a string onto a valid variable name.
24103 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24104 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
24105
24106
24107 exec 6>&1
24108 ## ----------------------------------- ##
24109 ## Main body of $CONFIG_STATUS script. ##
24110 ## ----------------------------------- ##
24111 _ASEOF
24112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24113
24114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24115 # Save the log message, to keep $0 and so on meaningful, and to
24116 # report actual input values of CONFIG_FILES etc. instead of their
24117 # values after options handling.
24118 ac_log="
24119 This file was extended by GUTENPRINT_NAME $as_me GUTENPRINT_VERSION, which was
24120 generated by GNU Autoconf 2.72. Invocation command line was
24121
24122 CONFIG_FILES = $CONFIG_FILES
24123 CONFIG_HEADERS = $CONFIG_HEADERS
24124 CONFIG_LINKS = $CONFIG_LINKS
24125 CONFIG_COMMANDS = $CONFIG_COMMANDS
24126 $ $0 $@
24127
24128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24129 "
24130
24131 _ACEOF
24132
24133 case $ac_config_files in *"
24134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24135 esac
24136
24137 case $ac_config_headers in *"
24138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24139 esac
24140
24141
24142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24143 # Files that config.status was made for.
24144 config_files="$ac_config_files"
24145 config_headers="$ac_config_headers"
24146 config_commands="$ac_config_commands"
24147
24148 _ACEOF
24149
24150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24151 ac_cs_usage="\
24152 '$as_me' instantiates files and other configuration actions
24153 from templates according to the current configuration. Unless the files
24154 and actions are specified as TAGs, all are instantiated by default.
24155
24156 Usage: $0 [OPTION]... [TAG]...
24157
24158 -h, --help print this help, then exit
24159 -V, --version print version number and configuration settings, then exit
24160 --config print configuration, then exit
24161 -q, --quiet, --silent
24162 do not print progress messages
24163 -d, --debug don't remove temporary files
24164 --recheck update $as_me by reconfiguring in the same conditions
24165 --file=FILE[:TEMPLATE]
24166 instantiate the configuration file FILE
24167 --header=FILE[:TEMPLATE]
24168 instantiate the configuration header FILE
24169
24170 Configuration files:
24171 $config_files
24172
24173 Configuration headers:
24174 $config_headers
24175
24176 Configuration commands:
24177 $config_commands
24178
24179 Report bugs to <[email protected]>.
24180 GUTENPRINT_NAME home page: <https://gimp-print.sourceforge.net>."
24181
24182 _ACEOF
24183 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24184 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24186 ac_cs_config='$ac_cs_config_escaped'
24187 ac_cs_version="\\
24188 GUTENPRINT_NAME config.status GUTENPRINT_VERSION
24189 configured by $0, generated by GNU Autoconf 2.72,
24190 with options \\"\$ac_cs_config\\"
24191
24192 Copyright (C) 2023 Free Software Foundation, Inc.
24193 This config.status script is free software; the Free Software Foundation
24194 gives unlimited permission to copy, distribute and modify it."
24195
24196 ac_pwd='$ac_pwd'
24197 srcdir='$srcdir'
24198 INSTALL='$INSTALL'
24199 MKDIR_P='$MKDIR_P'
24200 AWK='$AWK'
24201 test -n "\$AWK" || AWK=awk
24202 _ACEOF
24203
24204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24205 # The default lists apply if the user does not specify any file.
24206 ac_need_defaults=:
24207 while test $# != 0
24208 do
24209 case $1 in
24210 --*=?*)
24211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24213 ac_shift=:
24214 ;;
24215 --*=)
24216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24217 ac_optarg=
24218 ac_shift=:
24219 ;;
24220 *)
24221 ac_option=$1
24222 ac_optarg=$2
24223 ac_shift=shift
24224 ;;
24225 esac
24226
24227 case $ac_option in
24228 # Handling of the options.
24229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24230 ac_cs_recheck=: ;;
24231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24232 printf "%s\n" "$ac_cs_version"; exit ;;
24233 --config | --confi | --conf | --con | --co | --c )
24234 printf "%s\n" "$ac_cs_config"; exit ;;
24235 --debug | --debu | --deb | --de | --d | -d )
24236 debug=: ;;
24237 --file | --fil | --fi | --f )
24238 $ac_shift
24239 case $ac_optarg in
24240 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24241 '') as_fn_error $? "missing file argument" ;;
24242 esac
24243 as_fn_append CONFIG_FILES " '$ac_optarg'"
24244 ac_need_defaults=false;;
24245 --header | --heade | --head | --hea )
24246 $ac_shift
24247 case $ac_optarg in
24248 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24249 esac
24250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24251 ac_need_defaults=false;;
24252 --he | --h)
24253 # Conflict between --help and --header
24254 as_fn_error $? "ambiguous option: '$1'
24255 Try '$0 --help' for more information.";;
24256 --help | --hel | -h )
24257 printf "%s\n" "$ac_cs_usage"; exit ;;
24258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24260 ac_cs_silent=: ;;
24261
24262 # This is an error.
24263 -*) as_fn_error $? "unrecognized option: '$1'
24264 Try '$0 --help' for more information." ;;
24265
24266 *) as_fn_append ac_config_targets " $1"
24267 ac_need_defaults=false ;;
24268
24269 esac
24270 shift
24271 done
24272
24273 ac_configure_extra_args=
24274
24275 if $ac_cs_silent; then
24276 exec 6>/dev/null
24277 ac_configure_extra_args="$ac_configure_extra_args --silent"
24278 fi
24279
24280 _ACEOF
24281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24282 if \$ac_cs_recheck; then
24283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24284 shift
24285 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24286 CONFIG_SHELL='$SHELL'
24287 export CONFIG_SHELL
24288 exec "\$@"
24289 fi
24290
24291 _ACEOF
24292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24293 exec 5>>config.log
24294 {
24295 echo
24296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24297 ## Running $as_me. ##
24298 _ASBOX
24299 printf "%s\n" "$ac_log"
24300 } >&5
24301
24302 _ACEOF
24303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24304 #
24305 # INIT-COMMANDS
24306 #
24307 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24308
24309
24310 # The HP-UX ksh and POSIX shell print the target directory to stdout
24311 # if CDPATH is set.
24312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24313
24314 sed_quote_subst='$sed_quote_subst'
24315 double_quote_subst='$double_quote_subst'
24316 delay_variable_subst='$delay_variable_subst'
24317 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24318 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24319 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24320 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24323 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24347 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24348 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24349 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24350 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24351 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
24352 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24353 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24354 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24355 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24356 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24357 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24358 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24359 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24360 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
24361 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24362 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24363 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24364 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24365 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24366 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24367 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24368 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24369 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24370 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24371 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24372 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24373 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24374 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24375 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24376 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24378 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24379 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24380 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24381 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24414 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24415 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24416 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24417 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24418 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24419 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24420 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24421 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24422 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24423 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24424 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24425 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24426 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24427 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24428 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24429 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24430 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24431 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24432 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24433 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24434 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24435 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24436 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24437 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24438 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24439 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24440 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24441 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24442 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24443 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24444 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24445 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24446 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24447 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24454
24455 LTCC='$LTCC'
24456 LTCFLAGS='$LTCFLAGS'
24457 compiler='$compiler_DEFAULT'
24458
24459 # A function that is used when there is no print builtin or printf.
24460 func_fallback_echo ()
24461 {
24462 eval 'cat <<_LTECHO_EOF
24463 \$1
24464 _LTECHO_EOF'
24465 }
24466
24467 # Quote evaled strings.
24468 for var in SHELL \
24469 ECHO \
24470 PATH_SEPARATOR \
24471 SED \
24472 GREP \
24473 EGREP \
24474 FGREP \
24475 LD \
24476 NM \
24477 LN_S \
24478 lt_SP2NL \
24479 lt_NL2SP \
24480 reload_flag \
24481 FILECMD \
24482 OBJDUMP \
24483 deplibs_check_method \
24484 file_magic_cmd \
24485 file_magic_glob \
24486 want_nocaseglob \
24487 DLLTOOL \
24488 sharedlib_from_linklib_cmd \
24489 AR \
24490 archiver_list_spec \
24491 STRIP \
24492 RANLIB \
24493 CC \
24494 CFLAGS \
24495 compiler \
24496 lt_cv_sys_global_symbol_pipe \
24497 lt_cv_sys_global_symbol_to_cdecl \
24498 lt_cv_sys_global_symbol_to_import \
24499 lt_cv_sys_global_symbol_to_c_name_address \
24500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24501 lt_cv_nm_interface \
24502 nm_file_list_spec \
24503 lt_cv_truncate_bin \
24504 lt_prog_compiler_no_builtin_flag \
24505 lt_prog_compiler_pic \
24506 lt_prog_compiler_wl \
24507 lt_prog_compiler_static \
24508 lt_cv_prog_compiler_c_o \
24509 need_locks \
24510 MANIFEST_TOOL \
24511 DSYMUTIL \
24512 NMEDIT \
24513 LIPO \
24514 OTOOL \
24515 OTOOL64 \
24516 shrext_cmds \
24517 export_dynamic_flag_spec \
24518 whole_archive_flag_spec \
24519 compiler_needs_object \
24520 with_gnu_ld \
24521 allow_undefined_flag \
24522 no_undefined_flag \
24523 hardcode_libdir_flag_spec \
24524 hardcode_libdir_separator \
24525 exclude_expsyms \
24526 include_expsyms \
24527 file_list_spec \
24528 variables_saved_for_relink \
24529 libname_spec \
24530 library_names_spec \
24531 soname_spec \
24532 install_override_mode \
24533 finish_eval \
24534 old_striplib \
24535 striplib; do
24536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24537 *[\\\\\\\`\\"\\\$]*)
24538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24539 ;;
24540 *)
24541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24542 ;;
24543 esac
24544 done
24545
24546 # Double-quote double-evaled strings.
24547 for var in reload_cmds \
24548 old_postinstall_cmds \
24549 old_postuninstall_cmds \
24550 old_archive_cmds \
24551 extract_expsyms_cmds \
24552 old_archive_from_new_cmds \
24553 old_archive_from_expsyms_cmds \
24554 archive_cmds \
24555 archive_expsym_cmds \
24556 module_cmds \
24557 module_expsym_cmds \
24558 export_symbols_cmds \
24559 prelink_cmds \
24560 postlink_cmds \
24561 postinstall_cmds \
24562 postuninstall_cmds \
24563 finish_cmds \
24564 sys_lib_search_path_spec \
24565 configure_time_dlsearch_path \
24566 configure_time_lt_sys_library_path; do
24567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24568 *[\\\\\\\`\\"\\\$]*)
24569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24570 ;;
24571 *)
24572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24573 ;;
24574 esac
24575 done
24576
24577 ac_aux_dir='$ac_aux_dir'
24578
24579 # See if we are running on zsh, and set the options that allow our
24580 # commands through without removal of \ escapes INIT.
24581 if test -n "\${ZSH_VERSION+set}"; then
24582 setopt NO_GLOB_SUBST
24583 fi
24584
24585
24586 PACKAGE='$PACKAGE'
24587 VERSION='$VERSION'
24588 RM='$RM'
24589 ofile='$ofile'
24590
24591
24592
24593 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24594 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24595 # from automake < 1.5.
24596 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24597 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24598 LINGUAS="${LINGUAS-%UNSET%}"
24599
24600 GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_RELEASE_VERSION}
24601 GUTENPRINT_BASE_VERSION=${GUTENPRINT_BASE_VERSION}
24602
24603
24604 _ACEOF
24605
24606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24607
24608 # Handling of arguments.
24609 for ac_config_target in $ac_config_targets
24610 do
24611 case $ac_config_target in
24612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24614 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24615 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24616 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24617 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24618 "doc/gutenprint.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprint.dox" ;;
24619 "doc/gutenprintui2.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprintui2.dox" ;;
24620 "doc/developer/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/Makefile" ;;
24621 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24622 "include/gutenprint/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprint/Makefile" ;;
24623 "include/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprintui2/Makefile" ;;
24624 "include/gutenprint/gutenprint-version.h") CONFIG_FILES="$CONFIG_FILES include/gutenprint/gutenprint-version.h" ;;
24625 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24626 "man/cups-calibrate.8") CONFIG_FILES="$CONFIG_FILES man/cups-calibrate.8" ;;
24627 "man/cups-genppd.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppd.8" ;;
24628 "man/cups-genppdupdate.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppdupdate.8" ;;
24629 "man/escputil.1") CONFIG_FILES="$CONFIG_FILES man/escputil.1" ;;
24630 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24631 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
24632 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24633 "src/cups/Makefile") CONFIG_FILES="$CONFIG_FILES src/cups/Makefile" ;;
24634 "src/cups/Info.plist") CONFIG_FILES="$CONFIG_FILES src/cups/Info.plist" ;;
24635 "src/cups/cups-genppdupdate") CONFIG_FILES="$CONFIG_FILES src/cups/cups-genppdupdate" ;;
24636 "src/cups/test-ppds.test") CONFIG_FILES="$CONFIG_FILES src/cups/test-ppds.test" ;;
24637 "src/cups/min-pagesize") CONFIG_FILES="$CONFIG_FILES src/cups/min-pagesize" ;;
24638 "src/escputil/Makefile") CONFIG_FILES="$CONFIG_FILES src/escputil/Makefile" ;;
24639 "src/testpattern/compare-image-files") CONFIG_FILES="$CONFIG_FILES src/testpattern/compare-image-files" ;;
24640 "src/testpattern/run-testpattern") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern" ;;
24641 "src/testpattern/run-testpattern-1.test") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-1.test" ;;
24642 "src/testpattern/run-testpattern-2") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-2" ;;
24643 "src/testpattern/run-testpattern-2.test") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-2.test" ;;
24644 "src/testpattern/compare-checksums") CONFIG_FILES="$CONFIG_FILES src/testpattern/compare-checksums" ;;
24645 "src/testpattern/compress-checksums") CONFIG_FILES="$CONFIG_FILES src/testpattern/compress-checksums" ;;
24646 "src/cups/test-rastertogutenprint") CONFIG_FILES="$CONFIG_FILES src/cups/test-rastertogutenprint" ;;
24647 "src/cups/test-rastertogutenprint.test") CONFIG_FILES="$CONFIG_FILES src/cups/test-rastertogutenprint.test" ;;
24648 "src/testpattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/testpattern/Makefile" ;;
24649 "src/gimp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gimp2/Makefile" ;;
24650 "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
24651 "src/main/gutenprint.pc") CONFIG_FILES="$CONFIG_FILES src/main/gutenprint.pc" ;;
24652 "src/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/Makefile" ;;
24653 "src/xml/dither/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/dither/Makefile" ;;
24654 "src/xml/papers/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/papers/Makefile" ;;
24655 "src/xml/printers/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/printers/Makefile" ;;
24656 "src/xml/escp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/Makefile" ;;
24657 "src/xml/escp2/media/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/media/Makefile" ;;
24658 "src/xml/escp2/mediasizes/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/mediasizes/Makefile" ;;
24659 "src/xml/escp2/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/model/Makefile" ;;
24660 "src/xml/escp2/model/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/model/base/Makefile" ;;
24661 "src/xml/escp2/inputslots/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inputslots/Makefile" ;;
24662 "src/xml/escp2/inks/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inks/Makefile" ;;
24663 "src/xml/escp2/weaves/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/weaves/Makefile" ;;
24664 "src/xml/escp2/qualitypresets/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/qualitypresets/Makefile" ;;
24665 "src/xml/escp2/resolutions/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/resolutions/Makefile" ;;
24666 "src/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/Makefile" ;;
24667 "src/gutenprintui2/gutenprintui2.pc") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/gutenprintui2.pc" ;;
24668 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24669 "test/compress-5level.sh") CONFIG_FILES="$CONFIG_FILES test/compress-5level.sh" ;;
24670 "test/compress-6level.sh") CONFIG_FILES="$CONFIG_FILES test/compress-6level.sh" ;;
24671 "test/uncompress-5level.sh") CONFIG_FILES="$CONFIG_FILES test/uncompress-5level.sh" ;;
24672 "test/uncompress-6level.sh") CONFIG_FILES="$CONFIG_FILES test/uncompress-6level.sh" ;;
24673 "test/parse-bjc") CONFIG_FILES="$CONFIG_FILES test/parse-bjc" ;;
24674 "test/parse-escp2") CONFIG_FILES="$CONFIG_FILES test/parse-escp2" ;;
24675 "test/run-testdither.test") CONFIG_FILES="$CONFIG_FILES test/run-testdither.test" ;;
24676 "test/run-weavetest.test") CONFIG_FILES="$CONFIG_FILES test/run-weavetest.test" ;;
24677 "test/test-curve.test") CONFIG_FILES="$CONFIG_FILES test/test-curve.test" ;;
24678 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24679 "scripts/mkgitlog") CONFIG_FILES="$CONFIG_FILES scripts/mkgitlog" ;;
24680 "scripts/gversion") CONFIG_FILES="$CONFIG_FILES scripts/gversion" ;;
24681 "scripts/test-gversion") CONFIG_FILES="$CONFIG_FILES scripts/test-gversion" ;;
24682 "scripts/wzpaq") CONFIG_FILES="$CONFIG_FILES scripts/wzpaq" ;;
24683 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24684
24685 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
24686 esac
24687 done
24688
24689
24690 # If the user did not use the arguments to specify the items to instantiate,
24691 # then the envvar interface is used. Set only those that are not.
24692 # We use the long form for the default assignment because of an extremely
24693 # bizarre bug on SunOS 4.1.3.
24694 if $ac_need_defaults; then
24695 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24696 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24697 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24698 fi
24699
24700 # Have a temporary directory for convenience. Make it in the build tree
24701 # simply because there is no reason against having it here, and in addition,
24702 # creating and moving files from /tmp can sometimes cause problems.
24703 # Hook for its removal unless debugging.
24704 # Note that there is a small window in which the directory will not be cleaned:
24705 # after its creation but before its name has been assigned to '$tmp'.
24706 $debug ||
24707 {
24708 tmp= ac_tmp=
24709 trap 'exit_status=$?
24710 : "${ac_tmp:=$tmp}"
24711 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24712 ' 0
24713 trap 'as_fn_exit 1' 1 2 13 15
24714 }
24715 # Create a (secure) tmp directory for tmp files.
24716
24717 {
24718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24719 test -d "$tmp"
24720 } ||
24721 {
24722 tmp=./conf$$-$RANDOM
24723 (umask 077 && mkdir "$tmp")
24724 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24725 ac_tmp=$tmp
24726
24727 # Set up the scripts for CONFIG_FILES section.
24728 # No need to generate them if there are no CONFIG_FILES.
24729 # This happens for instance with './config.status config.h'.
24730 if test -n "$CONFIG_FILES"; then
24731
24732
24733 ac_cr=`echo X | tr X '\015'`
24734 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24735 # But we know of no other shell where ac_cr would be empty at this
24736 # point, so we can use a bashism as a fallback.
24737 if test "x$ac_cr" = x; then
24738 eval ac_cr=\$\'\\r\'
24739 fi
24740 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24741 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24742 ac_cs_awk_cr='\\r'
24743 else
24744 ac_cs_awk_cr=$ac_cr
24745 fi
24746
24747 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24748 _ACEOF
24749
24750
24751 {
24752 echo "cat >conf$$subs.awk <<_ACEOF" &&
24753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24754 echo "_ACEOF"
24755 } >conf$$subs.sh ||
24756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24757 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24758 ac_delim='%!_!# '
24759 for ac_last_try in false false false false false :; do
24760 . ./conf$$subs.sh ||
24761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24762
24763 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24764 if test $ac_delim_n = $ac_delim_num; then
24765 break
24766 elif $ac_last_try; then
24767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24768 else
24769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24770 fi
24771 done
24772 rm -f conf$$subs.sh
24773
24774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24775 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24776 _ACEOF
24777 sed -n '
24778 h
24779 s/^/S["/; s/!.*/"]=/
24780 p
24781 g
24782 s/^[^!]*!//
24783 :repl
24784 t repl
24785 s/'"$ac_delim"'$//
24786 t delim
24787 :nl
24788 h
24789 s/\(.\{148\}\)..*/\1/
24790 t more1
24791 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24792 p
24793 n
24794 b repl
24795 :more1
24796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24797 p
24798 g
24799 s/.\{148\}//
24800 t nl
24801 :delim
24802 h
24803 s/\(.\{148\}\)..*/\1/
24804 t more2
24805 s/["\\]/\\&/g; s/^/"/; s/$/"/
24806 p
24807 b
24808 :more2
24809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24810 p
24811 g
24812 s/.\{148\}//
24813 t delim
24814 ' <conf$$subs.awk | sed '
24815 /^[^""]/{
24816 N
24817 s/\n//
24818 }
24819 ' >>$CONFIG_STATUS || ac_write_fail=1
24820 rm -f conf$$subs.awk
24821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24822 _ACAWK
24823 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24824 for (key in S) S_is_set[key] = 1
24825 FS = ""
24826
24827 }
24828 {
24829 line = $ 0
24830 nfields = split(line, field, "@")
24831 substed = 0
24832 len = length(field[1])
24833 for (i = 2; i < nfields; i++) {
24834 key = field[i]
24835 keylen = length(key)
24836 if (S_is_set[key]) {
24837 value = S[key]
24838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24839 len += length(value) + length(field[++i])
24840 substed = 1
24841 } else
24842 len += 1 + keylen
24843 }
24844
24845 print line
24846 }
24847
24848 _ACAWK
24849 _ACEOF
24850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24851 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24852 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24853 else
24854 cat
24855 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24856 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24857 _ACEOF
24858
24859 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24860 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24861 # trailing colons and then remove the whole line if VPATH becomes empty
24862 # (actually we leave an empty line to preserve line numbers).
24863 if test "x$srcdir" = x.; then
24864 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24865 h
24866 s///
24867 s/^/:/
24868 s/[ ]*$/:/
24869 s/:\$(srcdir):/:/g
24870 s/:\${srcdir}:/:/g
24871 s/:@srcdir@:/:/g
24872 s/^:*//
24873 s/:*$//
24874 x
24875 s/\(=[ ]*\).*/\1/
24876 G
24877 s/\n//
24878 s/^[^=]*=[ ]*$//
24879 }'
24880 fi
24881
24882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24883 fi # test -n "$CONFIG_FILES"
24884
24885 # Set up the scripts for CONFIG_HEADERS section.
24886 # No need to generate them if there are no CONFIG_HEADERS.
24887 # This happens for instance with './config.status Makefile'.
24888 if test -n "$CONFIG_HEADERS"; then
24889 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24890 BEGIN {
24891 _ACEOF
24892
24893 # Transform confdefs.h into an awk script 'defines.awk', embedded as
24894 # here-document in config.status, that substitutes the proper values into
24895 # config.h.in to produce config.h.
24896
24897 # Create a delimiter string that does not exist in confdefs.h, to ease
24898 # handling of long lines.
24899 ac_delim='%!_!# '
24900 for ac_last_try in false false :; do
24901 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24902 if test -z "$ac_tt"; then
24903 break
24904 elif $ac_last_try; then
24905 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24906 else
24907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24908 fi
24909 done
24910
24911 # For the awk script, D is an array of macro values keyed by name,
24912 # likewise P contains macro parameters if any. Preserve backslash
24913 # newline sequences.
24914
24915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24916 sed -n '
24917 s/.\{148\}/&'"$ac_delim"'/g
24918 t rset
24919 :rset
24920 s/^[ ]*#[ ]*define[ ][ ]*/ /
24921 t def
24922 d
24923 :def
24924 s/\\$//
24925 t bsnl
24926 s/["\\]/\\&/g
24927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24928 D["\1"]=" \3"/p
24929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24930 d
24931 :bsnl
24932 s/["\\]/\\&/g
24933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24934 D["\1"]=" \3\\\\\\n"\\/p
24935 t cont
24936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24937 t cont
24938 d
24939 :cont
24940 n
24941 s/.\{148\}/&'"$ac_delim"'/g
24942 t clear
24943 :clear
24944 s/\\$//
24945 t bsnlc
24946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24947 d
24948 :bsnlc
24949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24950 b cont
24951 ' <confdefs.h | sed '
24952 s/'"$ac_delim"'/"\\\
24953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24954
24955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24956 for (key in D) D_is_set[key] = 1
24957 FS = ""
24958 }
24959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24960 line = \$ 0
24961 split(line, arg, " ")
24962 if (arg[1] == "#") {
24963 defundef = arg[2]
24964 mac1 = arg[3]
24965 } else {
24966 defundef = substr(arg[1], 2)
24967 mac1 = arg[2]
24968 }
24969 split(mac1, mac2, "(") #)
24970 macro = mac2[1]
24971 prefix = substr(line, 1, index(line, defundef) - 1)
24972 if (D_is_set[macro]) {
24973 # Preserve the white space surrounding the "#".
24974 print prefix "define", macro P[macro] D[macro]
24975 next
24976 } else {
24977 # Replace #undef with comments. This is necessary, for example,
24978 # in the case of _POSIX_SOURCE, which is predefined and required
24979 # on some systems where configure will not decide to define it.
24980 if (defundef == "undef") {
24981 print "/*", prefix defundef, macro, "*/"
24982 next
24983 }
24984 }
24985 }
24986 { print }
24987 _ACAWK
24988 _ACEOF
24989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24990 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24991 fi # test -n "$CONFIG_HEADERS"
24992
24993
24994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24995 shift
24996 for ac_tag
24997 do
24998 case $ac_tag in
24999 :[FHLC]) ac_mode=$ac_tag; continue;;
25000 esac
25001 case $ac_mode$ac_tag in
25002 :[FHL]*:*);;
25003 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
25004 :[FH]-) ac_tag=-:-;;
25005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25006 esac
25007 ac_save_IFS=$IFS
25008 IFS=:
25009 set x $ac_tag
25010 IFS=$ac_save_IFS
25011 shift
25012 ac_file=$1
25013 shift
25014
25015 case $ac_mode in
25016 :L) ac_source=$1;;
25017 :[FH])
25018 ac_file_inputs=
25019 for ac_f
25020 do
25021 case $ac_f in
25022 -) ac_f="$ac_tmp/stdin";;
25023 *) # Look for the file first in the build tree, then in the source tree
25024 # (if the path is not absolute). The absolute path cannot be DOS-style,
25025 # because $ac_f cannot contain ':'.
25026 test -f "$ac_f" ||
25027 case $ac_f in
25028 [\\/$]*) false;;
25029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25030 esac ||
25031 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
25032 esac
25033 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25034 as_fn_append ac_file_inputs " '$ac_f'"
25035 done
25036
25037 # Let's still pretend it is 'configure' which instantiates (i.e., don't
25038 # use $as_me), people would be surprised to read:
25039 # /* config.h. Generated by config.status. */
25040 configure_input='Generated from '`
25041 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25042 `' by configure.'
25043 if test x"$ac_file" != x-; then
25044 configure_input="$ac_file. $configure_input"
25045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25046 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25047 fi
25048 # Neutralize special characters interpreted by sed in replacement strings.
25049 case $configure_input in #(
25050 *\&* | *\|* | *\\* )
25051 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25053 *) ac_sed_conf_input=$configure_input;;
25054 esac
25055
25056 case $ac_tag in
25057 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25059 esac
25060 ;;
25061 esac
25062
25063 ac_dir=`$as_dirname -- "$ac_file" ||
25064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25065 X"$ac_file" : 'X\(//\)[^/]' \| \
25066 X"$ac_file" : 'X\(//\)$' \| \
25067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25068 printf "%s\n" X"$ac_file" |
25069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25070 s//\1/
25071 q
25072 }
25073 /^X\(\/\/\)[^/].*/{
25074 s//\1/
25075 q
25076 }
25077 /^X\(\/\/\)$/{
25078 s//\1/
25079 q
25080 }
25081 /^X\(\/\).*/{
25082 s//\1/
25083 q
25084 }
25085 s/.*/./; q'`
25086 as_dir="$ac_dir"; as_fn_mkdir_p
25087 ac_builddir=.
25088
25089 case "$ac_dir" in
25090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25091 *)
25092 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25093 # A ".." for each directory in $ac_dir_suffix.
25094 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25095 case $ac_top_builddir_sub in
25096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25098 esac ;;
25099 esac
25100 ac_abs_top_builddir=$ac_pwd
25101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25102 # for backward compatibility:
25103 ac_top_builddir=$ac_top_build_prefix
25104
25105 case $srcdir in
25106 .) # We are building in place.
25107 ac_srcdir=.
25108 ac_top_srcdir=$ac_top_builddir_sub
25109 ac_abs_top_srcdir=$ac_pwd ;;
25110 [\\/]* | ?:[\\/]* ) # Absolute name.
25111 ac_srcdir=$srcdir$ac_dir_suffix;
25112 ac_top_srcdir=$srcdir
25113 ac_abs_top_srcdir=$srcdir ;;
25114 *) # Relative name.
25115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25116 ac_top_srcdir=$ac_top_build_prefix$srcdir
25117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25118 esac
25119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25120
25121
25122 case $ac_mode in
25123 :F)
25124 #
25125 # CONFIG_FILE
25126 #
25127
25128 case $INSTALL in
25129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25131 esac
25132 ac_MKDIR_P=$MKDIR_P
25133 case $MKDIR_P in
25134 [\\/$]* | ?:[\\/]* ) ;;
25135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25136 esac
25137 _ACEOF
25138
25139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25140 # If the template does not know about datarootdir, expand it.
25141 # FIXME: This hack should be removed a few years after 2.60.
25142 ac_datarootdir_hack=; ac_datarootdir_seen=
25143 ac_sed_dataroot='
25144 /datarootdir/ {
25145 p
25146 q
25147 }
25148 /@datadir@/p
25149 /@docdir@/p
25150 /@infodir@/p
25151 /@localedir@/p
25152 /@mandir@/p'
25153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25154 *datarootdir*) ac_datarootdir_seen=yes;;
25155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25157 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25158 _ACEOF
25159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25160 ac_datarootdir_hack='
25161 s&@datadir@&$datadir&g
25162 s&@docdir@&$docdir&g
25163 s&@infodir@&$infodir&g
25164 s&@localedir@&$localedir&g
25165 s&@mandir@&$mandir&g
25166 s&\\\${datarootdir}&$datarootdir&g' ;;
25167 esac
25168 _ACEOF
25169
25170 # Neutralize VPATH when '$srcdir' = '.'.
25171 # Shell code in configure.ac might set extrasub.
25172 # FIXME: do we really want to maintain this feature?
25173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25174 ac_sed_extra="$ac_vpsub
25175 $extrasub
25176 _ACEOF
25177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25178 :t
25179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25180 s|@configure_input@|$ac_sed_conf_input|;t t
25181 s&@top_builddir@&$ac_top_builddir_sub&;t t
25182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25183 s&@srcdir@&$ac_srcdir&;t t
25184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25185 s&@top_srcdir@&$ac_top_srcdir&;t t
25186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25187 s&@builddir@&$ac_builddir&;t t
25188 s&@abs_builddir@&$ac_abs_builddir&;t t
25189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25190 s&@INSTALL@&$ac_INSTALL&;t t
25191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25192 $ac_datarootdir_hack
25193 "
25194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25195 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25196
25197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25198 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25200 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
25202 which seems to be undefined. Please make sure it is defined" >&5
25203 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
25204 which seems to be undefined. Please make sure it is defined" >&2;}
25205
25206 rm -f "$ac_tmp/stdin"
25207 case $ac_file in
25208 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25209 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25210 esac \
25211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25212 ;;
25213 :H)
25214 #
25215 # CONFIG_HEADER
25216 #
25217 if test x"$ac_file" != x-; then
25218 {
25219 printf "%s\n" "/* $configure_input */" >&1 \
25220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25221 } >"$ac_tmp/config.h" \
25222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25223 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25225 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25226 else
25227 rm -f "$ac_file"
25228 mv "$ac_tmp/config.h" "$ac_file" \
25229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25230 fi
25231 else
25232 printf "%s\n" "/* $configure_input */" >&1 \
25233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25234 || as_fn_error $? "could not create -" "$LINENO" 5
25235 fi
25236 # Compute "$ac_file"'s index in $config_headers.
25237 _am_arg="$ac_file"
25238 _am_stamp_count=1
25239 for _am_header in $config_headers :; do
25240 case $_am_header in
25241 $_am_arg | $_am_arg:* )
25242 break ;;
25243 * )
25244 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25245 esac
25246 done
25247 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25248 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25249 X"$_am_arg" : 'X\(//\)[^/]' \| \
25250 X"$_am_arg" : 'X\(//\)$' \| \
25251 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25252 printf "%s\n" X"$_am_arg" |
25253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25254 s//\1/
25255 q
25256 }
25257 /^X\(\/\/\)[^/].*/{
25258 s//\1/
25259 q
25260 }
25261 /^X\(\/\/\)$/{
25262 s//\1/
25263 q
25264 }
25265 /^X\(\/\).*/{
25266 s//\1/
25267 q
25268 }
25269 s/.*/./; q'`/stamp-h$_am_stamp_count
25270 ;;
25271
25272 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25273 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25274 ;;
25275 esac
25276
25277
25278 case $ac_file$ac_mode in
25279 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25280 # Older Autoconf quotes --file arguments for eval, but not when files
25281 # are listed without --file. Let's play safe and only enable the eval
25282 # if we detect the quoting.
25283 # TODO: see whether this extra hack can be removed once we start
25284 # requiring Autoconf 2.70 or later.
25285 case $CONFIG_FILES in #(
25286 *\'*) :
25287 eval set x "$CONFIG_FILES" ;; #(
25288 *) :
25289 set x $CONFIG_FILES ;; #(
25290 *) :
25291 ;;
25292 esac
25293 shift
25294 # Used to flag and report bootstrapping failures.
25295 am_rc=0
25296 for am_mf
25297 do
25298 # Strip MF so we end up with the name of the file.
25299 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25300 # Check whether this is an Automake generated Makefile which includes
25301 # dependency-tracking related rules and includes.
25302 # Grep'ing the whole file directly is not great: AIX grep has a line
25303 # limit of 2048, but all sed's we know have understand at least 4000.
25304 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25305 || continue
25306 am_dirpart=`$as_dirname -- "$am_mf" ||
25307 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25308 X"$am_mf" : 'X\(//\)[^/]' \| \
25309 X"$am_mf" : 'X\(//\)$' \| \
25310 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25311 printf "%s\n" X"$am_mf" |
25312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25313 s//\1/
25314 q
25315 }
25316 /^X\(\/\/\)[^/].*/{
25317 s//\1/
25318 q
25319 }
25320 /^X\(\/\/\)$/{
25321 s//\1/
25322 q
25323 }
25324 /^X\(\/\).*/{
25325 s//\1/
25326 q
25327 }
25328 s/.*/./; q'`
25329 am_filepart=`$as_basename -- "$am_mf" ||
25330 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25331 X"$am_mf" : 'X\(//\)$' \| \
25332 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25333 printf "%s\n" X/"$am_mf" |
25334 sed '/^.*\/\([^/][^/]*\)\/*$/{
25335 s//\1/
25336 q
25337 }
25338 /^X\/\(\/\/\)$/{
25339 s//\1/
25340 q
25341 }
25342 /^X\/\(\/\).*/{
25343 s//\1/
25344 q
25345 }
25346 s/.*/./; q'`
25347 { echo "$as_me:$LINENO: cd "$am_dirpart" \
25348 && sed -e '/# am--include-marker/d' "$am_filepart" \
25349 | $MAKE -f - am--depfiles" >&5
25350 (cd "$am_dirpart" \
25351 && sed -e '/# am--include-marker/d' "$am_filepart" \
25352 | $MAKE -f - am--depfiles) >&5 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); } || am_rc=$?
25356 done
25357 if test $am_rc -ne 0; then
25358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25359 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25360 as_fn_error $? "Something went wrong bootstrapping makefile fragments
25361 for automatic dependency tracking. If GNU make was not used, consider
25362 re-running the configure script with MAKE=\"gmake\" (or whatever is
25363 necessary). You can also try re-running configure with the
25364 '--disable-dependency-tracking' option to at least be able to build
25365 the package (albeit without support for automatic dependency tracking).
25366 See 'config.log' for more details" "$LINENO" 5; }
25367 fi
25368 { am_dirpart=; unset am_dirpart;}
25369 { am_filepart=; unset am_filepart;}
25370 { am_mf=; unset am_mf;}
25371 { am_rc=; unset am_rc;}
25372 rm -f conftest-deps.mk
25373 }
25374 ;;
25375 "libtool":C)
25376
25377 # See if we are running on zsh, and set the options that allow our
25378 # commands through without removal of \ escapes.
25379 if test -n "${ZSH_VERSION+set}"; then
25380 setopt NO_GLOB_SUBST
25381 fi
25382
25383 cfgfile=${ofile}T
25384 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25385 $RM "$cfgfile"
25386
25387 cat <<_LT_EOF >> "$cfgfile"
25388 #! $SHELL
25389 # Generated automatically by $as_me ($PACKAGE) $VERSION
25390 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25391
25392 # Provide generalized library-building support services.
25393 # Written by Gordon Matzigkeit, 1996
25394
25395 # Copyright (C) 2024 Free Software Foundation, Inc.
25396 # This is free software; see the source for copying conditions. There is NO
25397 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25398
25399 # GNU Libtool is free software; you can redistribute it and/or modify
25400 # it under the terms of the GNU General Public License as published by
25401 # the Free Software Foundation; either version 2 of the License, or
25402 # (at your option) any later version.
25403 #
25404 # As a special exception to the GNU General Public License, if you
25405 # distribute this file as part of a program or library that is built
25406 # using GNU Libtool, you may include this file under the same
25407 # distribution terms that you use for the rest of that program.
25408 #
25409 # GNU Libtool is distributed in the hope that it will be useful, but
25410 # WITHOUT ANY WARRANTY; without even the implied warranty of
25411 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25412 # GNU General Public License for more details.
25413 #
25414 # You should have received a copy of the GNU General Public License
25415 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25416
25417
25418 # The names of the tagged configurations supported by this script.
25419 available_tags=''
25420
25421 # Configured defaults for sys_lib_dlsearch_path munging.
25422 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25423
25424 # ### BEGIN LIBTOOL CONFIG
25425
25426 # Which release of libtool.m4 was used?
25427 macro_version=$macro_version
25428 macro_revision=$macro_revision
25429
25430 # Whether or not to build shared libraries.
25431 build_libtool_libs=$enable_shared
25432
25433 # Whether or not to build static libraries.
25434 build_old_libs=$enable_static
25435
25436 # What type of objects to build.
25437 pic_mode=$pic_mode
25438
25439 # Whether or not to optimize for fast installation.
25440 fast_install=$enable_fast_install
25441
25442 # Shared archive member basename,for filename based shared library versioning on AIX.
25443 shared_archive_member_spec=$shared_archive_member_spec
25444
25445 # Shell to use when invoking shell scripts.
25446 SHELL=$lt_SHELL
25447
25448 # An echo program that protects backslashes.
25449 ECHO=$lt_ECHO
25450
25451 # The PATH separator for the build system.
25452 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25453
25454 # The host system.
25455 host_alias=$host_alias
25456 host=$host
25457 host_os=$host_os
25458
25459 # The build system.
25460 build_alias=$build_alias
25461 build=$build
25462 build_os=$build_os
25463
25464 # A sed program that does not truncate output.
25465 SED=$lt_SED
25466
25467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25468 Xsed="\$SED -e 1s/^X//"
25469
25470 # A grep program that handles long lines.
25471 GREP=$lt_GREP
25472
25473 # An ERE matcher.
25474 EGREP=$lt_EGREP
25475
25476 # A literal string matcher.
25477 FGREP=$lt_FGREP
25478
25479 # A BSD- or MS-compatible name lister.
25480 NM=$lt_NM
25481
25482 # Whether we need soft or hard links.
25483 LN_S=$lt_LN_S
25484
25485 # What is the maximum length of a command?
25486 max_cmd_len=$max_cmd_len
25487
25488 # Object file suffix (normally "o").
25489 objext=$ac_objext
25490
25491 # Executable file suffix (normally "").
25492 exeext=$exeext
25493
25494 # whether the shell understands "unset".
25495 lt_unset=$lt_unset
25496
25497 # turn spaces into newlines.
25498 SP2NL=$lt_lt_SP2NL
25499
25500 # turn newlines into spaces.
25501 NL2SP=$lt_lt_NL2SP
25502
25503 # convert \$build file names to \$host format.
25504 to_host_file_cmd=$lt_cv_to_host_file_cmd
25505
25506 # convert \$build files to toolchain format.
25507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25508
25509 # A file(cmd) program that detects file types.
25510 FILECMD=$lt_FILECMD
25511
25512 # An object symbol dumper.
25513 OBJDUMP=$lt_OBJDUMP
25514
25515 # Method to check whether dependent libraries are shared objects.
25516 deplibs_check_method=$lt_deplibs_check_method
25517
25518 # Command to use when deplibs_check_method = "file_magic".
25519 file_magic_cmd=$lt_file_magic_cmd
25520
25521 # How to find potential files when deplibs_check_method = "file_magic".
25522 file_magic_glob=$lt_file_magic_glob
25523
25524 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25525 want_nocaseglob=$lt_want_nocaseglob
25526
25527 # DLL creation program.
25528 DLLTOOL=$lt_DLLTOOL
25529
25530 # Command to associate shared and link libraries.
25531 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25532
25533 # The archiver.
25534 AR=$lt_AR
25535
25536 # Flags to create an archive (by configure).
25537 lt_ar_flags=$lt_ar_flags
25538
25539 # Flags to create an archive.
25540 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25541
25542 # How to feed a file listing to the archiver.
25543 archiver_list_spec=$lt_archiver_list_spec
25544
25545 # A symbol stripping program.
25546 STRIP=$lt_STRIP
25547
25548 # Commands used to install an old-style archive.
25549 RANLIB=$lt_RANLIB
25550 old_postinstall_cmds=$lt_old_postinstall_cmds
25551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25552
25553 # Whether to use a lock for old archive extraction.
25554 lock_old_archive_extraction=$lock_old_archive_extraction
25555
25556 # A C compiler.
25557 LTCC=$lt_CC
25558
25559 # LTCC compiler flags.
25560 LTCFLAGS=$lt_CFLAGS
25561
25562 # Take the output of nm and produce a listing of raw symbols and C names.
25563 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25564
25565 # Transform the output of nm in a proper C declaration.
25566 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25567
25568 # Transform the output of nm into a list of symbols to manually relocate.
25569 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25570
25571 # Transform the output of nm in a C name address pair.
25572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25573
25574 # Transform the output of nm in a C name address pair when lib prefix is needed.
25575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25576
25577 # The name lister interface.
25578 nm_interface=$lt_lt_cv_nm_interface
25579
25580 # Specify filename containing input files for \$NM.
25581 nm_file_list_spec=$lt_nm_file_list_spec
25582
25583 # The root where to search for dependent libraries,and where our libraries should be installed.
25584 lt_sysroot=$lt_sysroot
25585
25586 # Command to truncate a binary pipe.
25587 lt_truncate_bin=$lt_lt_cv_truncate_bin
25588
25589 # The name of the directory that contains temporary libtool files.
25590 objdir=$objdir
25591
25592 # Used to examine libraries when file_magic_cmd begins with "file".
25593 MAGIC_CMD=$MAGIC_CMD
25594
25595 # Must we lock files when doing compilation?
25596 need_locks=$lt_need_locks
25597
25598 # Manifest tool.
25599 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25600
25601 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25602 DSYMUTIL=$lt_DSYMUTIL
25603
25604 # Tool to change global to local symbols on Mac OS X.
25605 NMEDIT=$lt_NMEDIT
25606
25607 # Tool to manipulate fat objects and archives on Mac OS X.
25608 LIPO=$lt_LIPO
25609
25610 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25611 OTOOL=$lt_OTOOL
25612
25613 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25614 OTOOL64=$lt_OTOOL64
25615
25616 # Old archive suffix (normally "a").
25617 libext=$libext
25618
25619 # Shared library suffix (normally ".so").
25620 shrext_cmds=$lt_shrext_cmds
25621
25622 # The commands to extract the exported symbol list from a shared archive.
25623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25624
25625 # Variables whose values should be saved in libtool wrapper scripts and
25626 # restored at link time.
25627 variables_saved_for_relink=$lt_variables_saved_for_relink
25628
25629 # Do we need the "lib" prefix for modules?
25630 need_lib_prefix=$need_lib_prefix
25631
25632 # Do we need a version for libraries?
25633 need_version=$need_version
25634
25635 # Library versioning type.
25636 version_type=$version_type
25637
25638 # Shared library runtime path variable.
25639 runpath_var=$runpath_var
25640
25641 # Shared library path variable.
25642 shlibpath_var=$shlibpath_var
25643
25644 # Is shlibpath searched before the hard-coded library search path?
25645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25646
25647 # Format of library name prefix.
25648 libname_spec=$lt_libname_spec
25649
25650 # List of archive names. First name is the real one, the rest are links.
25651 # The last name is the one that the linker finds with -lNAME
25652 library_names_spec=$lt_library_names_spec
25653
25654 # The coded name of the library, if different from the real name.
25655 soname_spec=$lt_soname_spec
25656
25657 # Permission mode override for installation of shared libraries.
25658 install_override_mode=$lt_install_override_mode
25659
25660 # Command to use after installation of a shared archive.
25661 postinstall_cmds=$lt_postinstall_cmds
25662
25663 # Command to use after uninstallation of a shared archive.
25664 postuninstall_cmds=$lt_postuninstall_cmds
25665
25666 # Commands used to finish a libtool library installation in a directory.
25667 finish_cmds=$lt_finish_cmds
25668
25669 # As "finish_cmds", except a single script fragment to be evaled but
25670 # not shown.
25671 finish_eval=$lt_finish_eval
25672
25673 # Whether we should hardcode library paths into libraries.
25674 hardcode_into_libs=$hardcode_into_libs
25675
25676 # Compile-time system search path for libraries.
25677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25678
25679 # Detected run-time system search path for libraries.
25680 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25681
25682 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25683 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25684
25685 # Whether dlopen is supported.
25686 dlopen_support=$enable_dlopen
25687
25688 # Whether dlopen of programs is supported.
25689 dlopen_self=$enable_dlopen_self
25690
25691 # Whether dlopen of statically linked programs is supported.
25692 dlopen_self_static=$enable_dlopen_self_static
25693
25694 # Commands to strip libraries.
25695 old_striplib=$lt_old_striplib
25696 striplib=$lt_striplib
25697
25698
25699 # The linker used to build libraries.
25700 LD=$lt_LD
25701
25702 # How to create reloadable object files.
25703 reload_flag=$lt_reload_flag
25704 reload_cmds=$lt_reload_cmds
25705
25706 # Commands used to build an old-style archive.
25707 old_archive_cmds=$lt_old_archive_cmds
25708
25709 # A language specific compiler.
25710 CC=$lt_compiler
25711
25712 # Is the compiler the GNU compiler?
25713 with_gcc=$GCC
25714
25715 # Compiler flag to turn off builtin functions.
25716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25717
25718 # Additional compiler flags for building library objects.
25719 pic_flag=$lt_lt_prog_compiler_pic
25720
25721 # How to pass a linker flag through the compiler.
25722 wl=$lt_lt_prog_compiler_wl
25723
25724 # Compiler flag to prevent dynamic linking.
25725 link_static_flag=$lt_lt_prog_compiler_static
25726
25727 # Does compiler simultaneously support -c and -o options?
25728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25729
25730 # Whether or not to add -lc for building shared libraries.
25731 build_libtool_need_lc=$archive_cmds_need_lc
25732
25733 # Whether or not to disallow shared libs when runtime libs are static.
25734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25735
25736 # Compiler flag to allow reflexive dlopens.
25737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25738
25739 # Compiler flag to generate shared objects directly from archives.
25740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25741
25742 # Whether the compiler copes with passing no objects directly.
25743 compiler_needs_object=$lt_compiler_needs_object
25744
25745 # Create an old-style archive from a shared archive.
25746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25747
25748 # Create a temporary old-style archive to link instead of a shared archive.
25749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25750
25751 # Commands used to build a shared archive.
25752 archive_cmds=$lt_archive_cmds
25753 archive_expsym_cmds=$lt_archive_expsym_cmds
25754
25755 # Commands used to build a loadable module if different from building
25756 # a shared archive.
25757 module_cmds=$lt_module_cmds
25758 module_expsym_cmds=$lt_module_expsym_cmds
25759
25760 # Whether we are building with GNU ld or not.
25761 with_gnu_ld=$lt_with_gnu_ld
25762
25763 # Flag that allows shared libraries with undefined symbols to be built.
25764 allow_undefined_flag=$lt_allow_undefined_flag
25765
25766 # Flag that enforces no undefined symbols.
25767 no_undefined_flag=$lt_no_undefined_flag
25768
25769 # Flag to hardcode \$libdir into a binary during linking.
25770 # This must work even if \$libdir does not exist
25771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25772
25773 # Whether we need a single "-rpath" flag with a separated argument.
25774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25775
25776 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25777 # DIR into the resulting binary.
25778 hardcode_direct=$hardcode_direct
25779
25780 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25781 # DIR into the resulting binary and the resulting library dependency is
25782 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25783 # library is relocated.
25784 hardcode_direct_absolute=$hardcode_direct_absolute
25785
25786 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25787 # into the resulting binary.
25788 hardcode_minus_L=$hardcode_minus_L
25789
25790 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25791 # into the resulting binary.
25792 hardcode_shlibpath_var=$hardcode_shlibpath_var
25793
25794 # Set to "yes" if building a shared library automatically hardcodes DIR
25795 # into the library and all subsequent libraries and executables linked
25796 # against it.
25797 hardcode_automatic=$hardcode_automatic
25798
25799 # Set to yes if linker adds runtime paths of dependent libraries
25800 # to runtime path list.
25801 inherit_rpath=$inherit_rpath
25802
25803 # Whether libtool must link a program against all its dependency libraries.
25804 link_all_deplibs=$link_all_deplibs
25805
25806 # Set to "yes" if exported symbols are required.
25807 always_export_symbols=$always_export_symbols
25808
25809 # The commands to list exported symbols.
25810 export_symbols_cmds=$lt_export_symbols_cmds
25811
25812 # Symbols that should not be listed in the preloaded symbols.
25813 exclude_expsyms=$lt_exclude_expsyms
25814
25815 # Symbols that must always be exported.
25816 include_expsyms=$lt_include_expsyms
25817
25818 # Commands necessary for linking programs (against libraries) with templates.
25819 prelink_cmds=$lt_prelink_cmds
25820
25821 # Commands necessary for finishing linking programs.
25822 postlink_cmds=$lt_postlink_cmds
25823
25824 # Specify filename containing input files.
25825 file_list_spec=$lt_file_list_spec
25826
25827 # How to hardcode a shared library path into an executable.
25828 hardcode_action=$hardcode_action
25829
25830 # ### END LIBTOOL CONFIG
25831
25832 _LT_EOF
25833
25834 cat <<'_LT_EOF' >> "$cfgfile"
25835
25836 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25837
25838 # func_munge_path_list VARIABLE PATH
25839 # -----------------------------------
25840 # VARIABLE is name of variable containing _space_ separated list of
25841 # directories to be munged by the contents of PATH, which is string
25842 # having a format:
25843 # "DIR[:DIR]:"
25844 # string "DIR[ DIR]" will be prepended to VARIABLE
25845 # ":DIR[:DIR]"
25846 # string "DIR[ DIR]" will be appended to VARIABLE
25847 # "DIRP[:DIRP]::[DIRA:]DIRA"
25848 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25849 # "DIRA[ DIRA]" will be appended to VARIABLE
25850 # "DIR[:DIR]"
25851 # VARIABLE will be replaced by "DIR[ DIR]"
25852 func_munge_path_list ()
25853 {
25854 case x$2 in
25855 x)
25856 ;;
25857 *:)
25858 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25859 ;;
25860 x:*)
25861 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25862 ;;
25863 *::*)
25864 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25865 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25866 ;;
25867 *)
25868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25869 ;;
25870 esac
25871 }
25872
25873
25874 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25875 func_cc_basename ()
25876 {
25877 for cc_temp in $*""; do
25878 case $cc_temp in
25879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25881 \-*) ;;
25882 *) break;;
25883 esac
25884 done
25885 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25886 }
25887
25888
25889 # ### END FUNCTIONS SHARED WITH CONFIGURE
25890
25891 _LT_EOF
25892
25893 case $host_os in
25894 aix3*)
25895 cat <<\_LT_EOF >> "$cfgfile"
25896 # AIX sometimes has problems with the GCC collect2 program. For some
25897 # reason, if we set the COLLECT_NAMES environment variable, the problems
25898 # vanish in a puff of smoke.
25899 if test set != "${COLLECT_NAMES+set}"; then
25900 COLLECT_NAMES=
25901 export COLLECT_NAMES
25902 fi
25903 _LT_EOF
25904 ;;
25905 esac
25906
25907
25908
25909 ltmain=$ac_aux_dir/ltmain.sh
25910
25911
25912 # We use sed instead of cat because bash on DJGPP gets confused if
25913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25914 # text mode, it properly converts lines to CR/LF. This bash problem
25915 # is reportedly fixed, but why not run on old versions too?
25916 $SED '$q' "$ltmain" >> "$cfgfile" \
25917 || (rm -f "$cfgfile"; exit 1)
25918
25919 mv -f "$cfgfile" "$ofile" ||
25920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25921 chmod +x "$ofile"
25922
25923 ;;
25924 "po-directories":C)
25925 for ac_file in $CONFIG_FILES; do
25926 # Support "outfile[:infile[:infile...]]"
25927 case "$ac_file" in
25928 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25929 esac
25930 # PO directories have a Makefile.in generated from Makefile.in.in.
25931 case "$ac_file" in */Makefile.in)
25932 # Adjust a relative srcdir.
25933 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25934 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25935 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25936 # In autoconf-2.13 it is called $ac_given_srcdir.
25937 # In autoconf-2.50 it is called $srcdir.
25938 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25939 case "$ac_given_srcdir" in
25940 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25941 /*) top_srcdir="$ac_given_srcdir" ;;
25942 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25943 esac
25944 # Treat a directory as a PO directory if and only if it has a
25945 # POTFILES.in file. This allows packages to have multiple PO
25946 # directories under different names or in different locations.
25947 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25948 rm -f "$ac_dir/POTFILES"
25949 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25950 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25951 POMAKEFILEDEPS="POTFILES.in"
25952 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25953 # on $ac_dir but don't depend on user-specified configuration
25954 # parameters.
25955 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25956 # The LINGUAS file contains the set of available languages.
25957 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25958 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25959 fi
25960 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25961 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25962 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25963 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25964 else
25965 # The set of available languages was given in configure.in.
25966 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25967 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25968 fi
25969 # Compute POFILES
25970 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25971 # Compute UPDATEPOFILES
25972 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25973 # Compute DUMMYPOFILES
25974 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25975 # Compute GMOFILES
25976 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25977 case "$ac_given_srcdir" in
25978 .) srcdirpre= ;;
25979 *) srcdirpre='$(srcdir)/' ;;
25980 esac
25981 POFILES=
25982 UPDATEPOFILES=
25983 DUMMYPOFILES=
25984 GMOFILES=
25985 for lang in $ALL_LINGUAS; do
25986 POFILES="$POFILES $srcdirpre$lang.po"
25987 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25988 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25989 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25990 done
25991 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25992 # environment variable.
25993 INST_LINGUAS=
25994 if test -n "$ALL_LINGUAS"; then
25995 for presentlang in $ALL_LINGUAS; do
25996 useit=no
25997 if test "%UNSET%" != "$LINGUAS"; then
25998 desiredlanguages="$LINGUAS"
25999 else
26000 desiredlanguages="$ALL_LINGUAS"
26001 fi
26002 for desiredlang in $desiredlanguages; do
26003 # Use the presentlang catalog if desiredlang is
26004 # a. equal to presentlang, or
26005 # b. a variant of presentlang (because in this case,
26006 # presentlang can be used as a fallback for messages
26007 # which are not translated in the desiredlang catalog).
26008 case "$desiredlang" in
26009 "$presentlang"*) useit=yes;;
26010 esac
26011 done
26012 if test $useit = yes; then
26013 INST_LINGUAS="$INST_LINGUAS $presentlang"
26014 fi
26015 done
26016 fi
26017 CATALOGS=
26018 if test -n "$INST_LINGUAS"; then
26019 for lang in $INST_LINGUAS; do
26020 CATALOGS="$CATALOGS $lang.gmo"
26021 done
26022 fi
26023 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26024 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"
26025 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26026 if test -f "$f"; then
26027 case "$f" in
26028 *.orig | *.bak | *~) ;;
26029 *) cat "$f" >> "$ac_dir/Makefile" ;;
26030 esac
26031 fi
26032 done
26033 fi
26034 ;;
26035 esac
26036 done ;;
26037 "src/cups/cups-genppdupdate":F) chmod +x src/cups/cups-genppdupdate ;;
26038 "src/cups/test-ppds.test":F) chmod +x src/cups/test-ppds.test ;;
26039 "src/cups/min-pagesize":F) chmod +x src/cups/min-pagesize ;;
26040 "src/testpattern/compare-image-files":F) chmod +x src/testpattern/compare-image-files ;;
26041 "src/testpattern/run-testpattern":F) chmod +x src/testpattern/run-testpattern ;;
26042 "src/testpattern/run-testpattern-1.test":F) chmod +x src/testpattern/run-testpattern-1.test ;;
26043 "src/testpattern/run-testpattern-2":F) chmod +x src/testpattern/run-testpattern-2 ;;
26044 "src/testpattern/run-testpattern-2.test":F) chmod +x src/testpattern/run-testpattern-2.test ;;
26045 "src/testpattern/compare-checksums":F) chmod +x src/testpattern/compare-checksums ;;
26046 "src/testpattern/compress-checksums":F) chmod +x src/testpattern/compress-checksums ;;
26047 "src/cups/test-rastertogutenprint":F) chmod +x src/cups/test-rastertogutenprint ;;
26048 "src/cups/test-rastertogutenprint.test":F) chmod +x src/cups/test-rastertogutenprint.test ;;
26049 "test/compress-5level.sh":F) chmod +x test/compress-5level.sh ;;
26050 "test/compress-6level.sh":F) chmod +x test/compress-6level.sh ;;
26051 "test/uncompress-5level.sh":F) chmod +x test/uncompress-5level.sh ;;
26052 "test/uncompress-6level.sh":F) chmod +x test/uncompress-6level.sh ;;
26053 "test/parse-bjc":F) chmod +x test/parse-bjc ;;
26054 "test/parse-escp2":F) chmod +x test/parse-escp2 ;;
26055 "test/run-testdither.test":F) chmod +x test/run-testdither.test ;;
26056 "test/run-weavetest.test":F) chmod +x test/run-weavetest.test ;;
26057 "test/test-curve.test":F) chmod +x test/test-curve.test ;;
26058 "scripts/mkgitlog":F) chmod +x scripts/mkgitlog ;;
26059 "scripts/gversion":F) chmod +x scripts/gversion ;;
26060 "scripts/test-gversion":F) chmod +x scripts/test-gversion ;;
26061 "scripts/wzpaq":F) chmod +x scripts/wzpaq ;;
26062 "default":C)
26063 echo
26064 ;;
26065
26066 esac
26067 done # for ac_tag
26068
26069
26070 as_fn_exit 0
26071 _ACEOF
26072 ac_clean_files=$ac_clean_files_save
26073
26074 test $ac_write_fail = 0 ||
26075 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26076
26077
26078 # configure is writing to config.log, and then calls config.status.
26079 # config.status does its own redirection, appending to config.log.
26080 # Unfortunately, on DOS this fails, as config.log is still kept open
26081 # by configure, so config.status won't be able to write to it; its
26082 # output is simply discarded. So we exec the FD to /dev/null,
26083 # effectively closing config.log, so it can be properly (re)opened and
26084 # appended to by config.status. When coming back to configure, we
26085 # need to make the FD available again.
26086 if test "$no_create" != yes; then
26087 ac_cs_success=:
26088 ac_config_status_args=
26089 test "$silent" = yes &&
26090 ac_config_status_args="$ac_config_status_args --quiet"
26091 exec 5>/dev/null
26092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26093 exec 5>>config.log
26094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26095 # would make configure fail if this is the last instruction.
26096 $ac_cs_success || as_fn_exit 1
26097 fi
26098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26100 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26101 fi
26102
26103
26104 warnings_emitted=0
26105 echo
26106 echo "Gutenprint Configuration Summary:" |tee config.summary
26107 echo "---------- ------------- --------" |tee -a config.summary
26108 echo |tee -a config.summary
26109 echo "If you have any problems, please report the information below to" |tee -a config.summary
26110 echo "$PACKAGE_BUGREPORT" |tee -a config.summary
26111 echo |tee -a config.summary
26112 echo "================================================================" |tee -a config.summary
26113 echo " Release: $PACKAGE_STRING generated on $RELEASE_DATE" |tee -a config.summary
26114 DATE_FMT="+%Y-%m-%dT%H:%M:%S+0000"
26115 SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
26116 BUILD_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u "$DATE_FMT")
26117 echo " Generated at $BUILD_DATE by $LOGNAME" |tee -a config.summary
26118 echo |tee -a config.summary
26119 echo " Features:" |tee -a config.summary
26120 if test "$BUILD_CUPS" != "no" ; then
26121 echo " Build CUPS driver: $BUILD_CUPS, installing in $cups_prefix" |tee -a config.summary
26122 echo " Build CUPS 1.2 enhancements: $BUILD_CUPS_1_2" |tee -a config.summary
26123 echo " Build CUPS PPD files: $BUILD_CUPS_PPDS" |tee -a config.summary
26124 if test "$BUILD_CUPS_PPDS" != "no" ; then
26125 echo " Build translated CUPS PPD files: $BUILD_TRANSLATED_CUPS_PPDS" |tee -a config.summary
26126 echo " Build global CUPS PPD files: $BUILD_GLOBALIZED_CUPS_PPDS" |tee -a config.summary
26127 echo " Build simplified CUPS PPD files: $BUILD_SIMPLIFIED_CUPS_PPDS" |tee -a config.summary
26128 echo " Install CUPS PPDs at top level: $CUPS_PPDS_AT_TOP_LEVEL" |tee -a config.summary
26129 fi
26130 if test "$BUILD_CUPS_PPDS" != "no" -o "$BUILD_CUPS_1_2" != "no" ; then
26131 echo " Generate PS level 3 CUPS PPD files: $USE_LEVEL3_PS" |tee -a config.summary
26132 fi
26133 echo " Build genppd statically: $STATIC_GENPPD" |tee -a config.summary
26134
26135 if test "$STATIC_GENPPD" = "no" ; then
26136 echo " ***WARNING: Use of --disable-static-genppd or --disable-static" |tee -a config.summary
26137 echo " when building CUPS is very dangerous. The build may" |tee -a config.summary
26138 echo " fail when building the PPD files, or may *SILENTLY*" |tee -a config.summary
26139 echo " build incorrect PPD files or cause other problems." |tee -a config.summary
26140 echo " Please review the README and release notes carefully!" |tee -a config.summary
26141 warnings_emitted=1
26142 fi
26143 echo " Build CUPS dyesub USB backend: $BUILD_LIBUSB_BACKENDS" |tee -a config.summary
26144 else
26145 echo " Build CUPS: $BUILD_CUPS" |tee -a config.summary
26146 fi
26147 echo " Build EPSON inkjet utility: $BUILD_ESCPUTIL" |tee -a config.summary
26148 if test "$BUILD_GIMP2" != "no" ; then
26149 echo " Build enhanced Print plugin for GIMP2: yes" |tee -a config.summary
26150 if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then
26151 echo " GIMP2 plugin will be named: gutenprint" |tee -a config.summary
26152 else
26153 echo " GIMP2 plugin will be named: print" |tee -a config.summary
26154 fi
26155 echo " Install plugin(s) in home directory: $USER_INSTALL" |tee -a config.summary
26156 else
26157 echo " Build enhanced Print plugin for GIMP2: no" |tee -a config.summary
26158 fi
26159 echo " Build test programs: $BUILD_TEST" |tee -a config.summary
26160 echo " Build testpattern generator: $BUILD_TESTPATTERN" |tee -a config.summary
26161 echo |tee -a config.summary
26162 echo " Installation summary:" |tee -a config.summary
26163 echo " Installation prefix: $prefix" |tee -a config.summary
26164 # Configure intentionally does not expand exec_prefix to allow make
26165 # to do so.
26166 echo " Exec prefix: `eval eval echo $exec_prefix` ($exec_prefix)" |tee -a config.summary
26167 echo " Data directory: `eval eval echo $PACKAGE_DATA_DIR` ($PACKAGE_DATA_DIR)" |tee -a config.summary
26168 echo " Library directory: `eval eval echo $PACKAGE_LIB_DIR` ($PACKAGE_LIB_DIR)" |tee -a config.summary
26169 echo " Executable directory: `eval eval echo $PACKAGE_BIN_DIR` ($PACKAGE_BIN_DIR)" |tee -a config.summary
26170 echo " XML data directory: `eval eval echo $PKGXMLDATADIR` ($PKGXMLDATADIR)" |tee -a config.summary
26171 echo " Module directory: `eval eval echo $PKGMODULEDIR` ($PKGMODULEDIR)" |tee -a config.summary
26172 echo " Install sample images: $INSTALL_SAMPLES" |tee -a config.summary
26173 echo |tee -a config.summary
26174 echo " General configuration:" |tee -a config.summary
26175 echo " Configure arguments: $configure_args" |tee -a config.summary
26176 echo " Compiler: $CC" |tee -a config.summary
26177 echo " Compiler Version: `"$CC" -v 2>&1 |grep ' version '`" |tee -a config.summary
26178 if test x$ac_compiler_gnu = "xyes"; then
26179 echo " Compiler options: $CFLAGS $GNUCFLAGS" |tee -a config.summary
26180 else
26181 echo " Compiler options: $CFLAGS" |tee -a config.summary
26182 fi
26183 echo " Build static libraries: $enable_static" |tee -a config.summary
26184 echo " Build shared libraries: $enable_shared" |tee -a config.summary
26185 echo " Maintainer mode: $USE_MAINTAINER_MODE" |tee -a config.summary
26186 echo " Use i18n: $USE_NLS" |tee -a config.summary
26187 echo " Generate profiling information: $ENABLE_PROFILE" |tee -a config.summary
26188 echo " Generate debugging symbols: $ENABLE_DEBUG" |tee -a config.summary
26189 echo " Use modules: $WITH_MODULES" |tee -a config.summary
26190 if test -n "$EXTRA_LIBREADLINE_DEPS" ; then
26191 echo " Use readline libraries: $USE_READLINE, extra arguments: $EXTRA_LIBREADLINE_DEPS" |tee -a config.summary
26192 else
26193 echo " Use readline libraries: $USE_READLINE" |tee -a config.summary
26194 fi
26195 echo " uname -a output: `uname -a`" |tee -a config.summary
26196 echo "================================================================" |tee -a config.summary
26197 if test $warnings_emitted -ne 0 ; then
26198 echo
26199 echo '*** WARNING: Please review the warnings shown above carefully!'
26200 fi
26201 echo |tee -a config.summary
26202 if test "$BUILD_GIMP2" = "no" -o "$BUILD_CUPS" = "no" ; then
26203 echo "VERY IMPORTANT:" |tee -a config.summary
26204 echo "If you expect to build the CUPS driver or the enhanced Print plugin for" |tee -a config.summary
26205 echo "GIMP, but the output above indicates that that component will not be built," |tee -a config.summary
26206 echo "it almost certainly indicates that development packages required to build" |tee -a config.summary
26207 echo "that component are not installed on your system. Please read the README" |tee -a config.summary
26208 echo "file and install the necessary development packages before reporting any" |tee -a config.summary
26209 echo "error to the development team. Depending upon your operating system version," |tee -a config.summary
26210 echo "you may have to install packages from the installation medium or over" |tee -a config.summary
26211 echo "the network." |tee -a config.summary
26212 echo |tee -a config.summary
26213 fi
26214 echo "Finished configuring. Please review CAREFULLY the configuration summary above."
26215 echo "This summary is also stored in config.summary"
26216 echo "Type 'make clean' followed by 'make' to build the package"
26217 echo "then 'make install' to install it."
26218