1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1 |
#! /bin/sh
|
2 |
# Guess values for system-dependent variables and create Makefiles.
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3 |
# Generated by GNU Autoconf 2.69.
|
4 |
#
|
|
5 |
#
|
|
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7 |
#
|
8 |
#
|
|
9 |
# This configure script is free software; the Free Software Foundation
|
|
10 |
# gives unlimited permission to copy, distribute and modify it.
|
|
11 |
## -------------------- ##
|
|
12 |
## M4sh Initialization. ##
|
|
13 |
## -------------------- ##
|
|
14 |
||
15 |
# Be more Bourne compatible
|
|
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
18 |
emulate sh |
|
19 |
NULLCMD=: |
|
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
21 |
# is contrary to our usage. Disable this feature.
|
|
22 |
alias -g '${1+"$@"}'='"$@"' |
|
23 |
setopt NO_GLOB_SUBST |
|
24 |
else
|
|
25 |
case `(set -o) 2>/dev/null` in #( |
|
26 |
*posix*) :
|
|
27 |
set -o posix ;; #( |
|
28 |
*) :
|
|
29 |
;;
|
|
30 |
esac
|
|
31 |
fi
|
|
32 |
||
33 |
||
34 |
as_nl=' |
|
35 |
'
|
|
36 |
export as_nl
|
|
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
42 |
# but without wasting forks for bash or zsh.
|
|
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
45 |
as_echo='print -r --' |
|
46 |
as_echo_n='print -rn --' |
|
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
48 |
as_echo='printf %s\n' |
|
49 |
as_echo_n='printf %s' |
|
50 |
else
|
|
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
53 |
as_echo_n='/usr/ucb/echo -n' |
|
54 |
else
|
|
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
56 |
as_echo_n_body='eval |
|
57 |
arg=$1;
|
|
58 |
case $arg in #(
|
|
59 |
*"$as_nl"*)
|
|
60 |
expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
62 |
esac;
|
|
63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
64 |
'
|
|
65 |
export as_echo_n_body
|
|
66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
|
67 |
fi
|
|
68 |
export as_echo_body
|
|
69 |
as_echo='sh -c $as_echo_body as_echo' |
|
70 |
fi
|
|
71 |
||
72 |
# The user is always right.
|
|
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
74 |
PATH_SEPARATOR=: |
|
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
77 |
PATH_SEPARATOR=';' |
|
78 |
}
|
|
79 |
fi
|
|
80 |
||
81 |
||
82 |
# IFS
|
|
83 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
84 |
# there to prevent editors from complaining about space-tab.
|
|
85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
86 |
# splitting by setting IFS to empty value.)
|
|
87 |
IFS=" "" $as_nl" |
|
88 |
||
89 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
90 |
as_myself= |
|
91 |
case $0 in #(( |
|
92 |
*[\\/]* ) as_myself=$0 ;; |
|
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
94 |
for as_dir in $PATH |
|
95 |
do
|
|
96 |
IFS=$as_save_IFS |
|
97 |
test -z "$as_dir" && as_dir=. |
|
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
99 |
done
|
|
100 |
IFS=$as_save_IFS |
|
101 |
||
102 |
;;
|
|
103 |
esac
|
|
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
105 |
# in which case we are not to be found in the path.
|
|
106 |
if test "x$as_myself" = x; then |
|
107 |
as_myself=$0 |
|
108 |
fi
|
|
109 |
if test ! -f "$as_myself"; then |
|
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
111 |
exit 1 |
|
112 |
fi
|
|
113 |
||
114 |
# Unset variables that we do not need and which cause bugs (e.g. in
|
|
115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
116 |
# suppresses any "Segmentation fault" message there. '((' could
|
|
117 |
# trigger a bug in pdksh 5.2.14.
|
|
118 |
for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
119 |
do eval test x\${$as_var+set} = xset \ |
|
120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
121 |
done
|
|
122 |
PS1='$ ' |
|
123 |
PS2='> ' |
|
124 |
PS4='+ ' |
|
125 |
||
126 |
# NLS nuisances.
|
|
127 |
LC_ALL=C |
|
128 |
export LC_ALL
|
|
129 |
LANGUAGE=C |
|
130 |
export LANGUAGE
|
|
131 |
||
132 |
# CDPATH.
|
|
133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
134 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
135 |
# Use a proper internal environment variable to ensure we don't fall
|
136 |
# into an infinite loop, continuously re-executing ourselves.
|
|
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
138 |
_as_can_reexec=no; export _as_can_reexec; |
|
139 |
# We cannot yet assume a decent shell, so we have to provide a
|
|
140 |
# neutralization value for shells without unset; and this also
|
|
141 |
# works around shells that cannot unset nonexistent variables.
|
|
142 |
# Preserve -v and -x to the replacement shell.
|
|
143 |
BASH_ENV=/dev/null |
|
144 |
ENV=/dev/null |
|
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
146 |
case $- in # (((( |
|
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
|
148 |
*v* ) as_opts=-v ;; |
|
149 |
*x* ) as_opts=-x ;; |
|
150 |
* ) as_opts= ;; |
|
151 |
esac
|
|
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
153 |
# Admittedly, this is quite paranoid, since all the known shells bail
|
|
154 |
# out after a failed `exec'.
|
|
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
156 |
as_fn_exit 255
|
|
157 |
fi
|
|
158 |
# We don't want this to propagate to other subprocesses.
|
|
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; 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
|
|
169 |
case \`(set -o) 2>/dev/null\` in #(
|
|
170 |
*posix*) :
|
|
171 |
set -o posix ;; #(
|
|
172 |
*) :
|
|
173 |
;;
|
|
174 |
esac
|
|
175 |
fi
|
|
176 |
"
|
|
177 |
as_required="as_fn_return () { (exit \$1); } |
|
178 |
as_fn_success () { as_fn_return 0; }
|
|
179 |
as_fn_failure () { as_fn_return 1; }
|
|
180 |
as_fn_ret_success () { return 0; }
|
|
181 |
as_fn_ret_failure () { return 1; }
|
|
182 |
||
183 |
exitcode=0
|
|
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
|
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
|
186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
|
187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
|
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
|
189 |
||
190 |
else
|
|
191 |
exitcode=1; echo positional parameters were not saved.
|
|
192 |
fi
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
193 |
test x\$exitcode = x0 || exit 1
|
194 |
test -x / || exit 1"
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
|
198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
|
199 |
test \$(( 1 + 1 )) = 2 || exit 1"
|
|
200 |
if (eval "$as_required") 2>/dev/null; then : |
|
201 |
as_have_required=yes |
|
202 |
else
|
|
203 |
as_have_required=no |
|
204 |
fi
|
|
205 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|
206 |
||
207 |
else
|
|
208 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
209 |
as_found=false |
|
210 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
211 |
do
|
|
212 |
IFS=$as_save_IFS |
|
213 |
test -z "$as_dir" && as_dir=. |
|
214 |
as_found=: |
|
215 |
case $as_dir in #( |
|
216 |
/*)
|
|
217 |
for as_base in sh bash ksh sh5; do |
|
218 |
# Try only shells that exist, to save several forks.
|
|
219 |
as_shell=$as_dir/$as_base |
|
220 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
221 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
222 |
CONFIG_SHELL=$as_shell as_have_required=yes |
|
223 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
224 |
break 2 |
|
225 |
fi
|
|
226 |
fi
|
|
227 |
done;; |
|
228 |
esac
|
|
229 |
as_found=false |
|
230 |
done
|
|
231 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|
233 |
CONFIG_SHELL=$SHELL as_have_required=yes |
|
234 |
fi; } |
|
235 |
IFS=$as_save_IFS |
|
236 |
||
237 |
||
238 |
if test "x$CONFIG_SHELL" != x; then : |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
239 |
export CONFIG_SHELL
|
240 |
# We cannot yet assume a decent shell, so we have to provide a
|
|
241 |
# neutralization value for shells without unset; and this also
|
|
242 |
# works around shells that cannot unset nonexistent variables.
|
|
243 |
# Preserve -v and -x to the replacement shell.
|
|
244 |
BASH_ENV=/dev/null |
|
245 |
ENV=/dev/null |
|
246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
247 |
case $- in # (((( |
|
248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
|
249 |
*v* ) as_opts=-v ;; |
|
250 |
*x* ) as_opts=-x ;; |
|
251 |
* ) as_opts= ;; |
|
252 |
esac
|
|
253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
254 |
# Admittedly, this is quite paranoid, since all the known shells bail
|
|
255 |
# out after a failed `exec'.
|
|
256 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
257 |
exit 255 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
258 |
fi
|
259 |
||
260 |
if test x$as_have_required = xno; then : |
|
261 |
$as_echo "$0: This script requires a shell more modern than all" |
|
262 |
$as_echo "$0: the shells that I found on your system." |
|
263 |
if test x${ZSH_VERSION+set} = xset ; then |
|
264 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
265 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|
266 |
else
|
|
267 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
|
268 |
$0: including any error possibly output before this |
|
269 |
$0: message. Then install a modern shell, or manually run |
|
270 |
$0: the script under such a shell if you do have one." |
|
271 |
fi
|
|
272 |
exit 1 |
|
273 |
fi
|
|
274 |
fi
|
|
275 |
fi
|
|
276 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
277 |
export SHELL
|
|
278 |
# Unset more variables known to interfere with behavior of common tools.
|
|
279 |
CLICOLOR_FORCE= GREP_OPTIONS= |
|
280 |
unset CLICOLOR_FORCE GREP_OPTIONS
|
|
281 |
||
282 |
## --------------------- ##
|
|
283 |
## M4sh Shell Functions. ##
|
|
284 |
## --------------------- ##
|
|
285 |
# as_fn_unset VAR
|
|
286 |
# ---------------
|
|
287 |
# Portably unset VAR.
|
|
288 |
as_fn_unset ()
|
|
289 |
{
|
|
290 |
{ eval $1=; unset $1;} |
|
291 |
}
|
|
292 |
as_unset=as_fn_unset |
|
293 |
||
294 |
# as_fn_set_status STATUS
|
|
295 |
# -----------------------
|
|
296 |
# Set $? to STATUS, without forking.
|
|
297 |
as_fn_set_status ()
|
|
298 |
{
|
|
299 |
return $1 |
|
300 |
} # as_fn_set_status |
|
301 |
||
302 |
# as_fn_exit STATUS
|
|
303 |
# -----------------
|
|
304 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
305 |
as_fn_exit ()
|
|
306 |
{
|
|
307 |
set +e
|
|
308 |
as_fn_set_status $1
|
|
309 |
exit $1 |
|
310 |
} # as_fn_exit |
|
311 |
||
312 |
# as_fn_mkdir_p
|
|
313 |
# -------------
|
|
314 |
# Create "$as_dir" as a directory, including parents if necessary.
|
|
315 |
as_fn_mkdir_p ()
|
|
316 |
{
|
|
317 |
||
318 |
case $as_dir in #( |
|
319 |
-*) as_dir=./$as_dir;; |
|
320 |
esac
|
|
321 |
test -d "$as_dir" || eval $as_mkdir_p || { |
|
322 |
as_dirs= |
|
323 |
while :; do |
|
324 |
case $as_dir in #( |
|
325 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
326 |
*) as_qdir=$as_dir;; |
|
327 |
esac
|
|
328 |
as_dirs="'$as_qdir' $as_dirs" |
|
329 |
as_dir=`$as_dirname -- "$as_dir" || |
|
330 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
331 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
332 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
333 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
334 |
$as_echo X"$as_dir" | |
|
335 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
336 |
s//\1/
|
|
337 |
q
|
|
338 |
}
|
|
339 |
/^X\(\/\/\)[^/].*/{
|
|
340 |
s//\1/
|
|
341 |
q
|
|
342 |
}
|
|
343 |
/^X\(\/\/\)$/{
|
|
344 |
s//\1/
|
|
345 |
q
|
|
346 |
}
|
|
347 |
/^X\(\/\).*/{
|
|
348 |
s//\1/
|
|
349 |
q
|
|
350 |
}
|
|
351 |
s/.*/./; q'` |
|
352 |
test -d "$as_dir" && break |
|
353 |
done
|
|
354 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
355 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
356 |
||
357 |
||
358 |
} # as_fn_mkdir_p |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
359 |
|
360 |
# as_fn_executable_p FILE
|
|
361 |
# -----------------------
|
|
362 |
# Test if FILE is an executable regular file.
|
|
363 |
as_fn_executable_p ()
|
|
364 |
{
|
|
365 |
test -f "$1" && test -x "$1" |
|
366 |
} # as_fn_executable_p |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
367 |
# as_fn_append VAR VALUE
|
368 |
# ----------------------
|
|
369 |
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
370 |
# advantage of any shell optimizations that allow amortized linear growth over
|
|
371 |
# repeated appends, instead of the typical quadratic growth present in naive
|
|
372 |
# implementations.
|
|
373 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
374 |
eval 'as_fn_append () |
|
375 |
{
|
|
376 |
eval $1+=\$2
|
|
377 |
}'
|
|
378 |
else
|
|
379 |
as_fn_append ()
|
|
380 |
{
|
|
381 |
eval $1=\$$1\$2 |
|
382 |
}
|
|
383 |
fi # as_fn_append |
|
384 |
||
385 |
# as_fn_arith ARG...
|
|
386 |
# ------------------
|
|
387 |
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
388 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
389 |
# must be portable across $(()) and expr.
|
|
390 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
391 |
eval 'as_fn_arith () |
|
392 |
{
|
|
393 |
as_val=$(( $* ))
|
|
394 |
}'
|
|
395 |
else
|
|
396 |
as_fn_arith ()
|
|
397 |
{
|
|
398 |
as_val=`expr "$@" || test $? -eq 1` |
|
399 |
}
|
|
400 |
fi # as_fn_arith |
|
401 |
||
402 |
||
403 |
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
404 |
# ----------------------------------------
|
|
405 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
406 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
407 |
# script with STATUS, using 1 if that was 0.
|
|
408 |
as_fn_error ()
|
|
409 |
{
|
|
410 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
|
411 |
if test "$4"; then |
|
412 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
413 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
414 |
fi
|
|
415 |
$as_echo "$as_me: error: $2" >&2 |
|
416 |
as_fn_exit $as_status
|
|
417 |
} # as_fn_error |
|
418 |
||
419 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
|
420 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
421 |
as_expr=expr |
|
422 |
else
|
|
423 |
as_expr=false |
|
424 |
fi
|
|
425 |
||
426 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
427 |
as_basename=basename |
|
428 |
else
|
|
429 |
as_basename=false |
|
430 |
fi
|
|
431 |
||
432 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
433 |
as_dirname=dirname |
|
434 |
else
|
|
435 |
as_dirname=false |
|
436 |
fi
|
|
437 |
||
438 |
as_me=`$as_basename -- "$0" || |
|
439 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
440 |
X"$0" : 'X\(//\)$' \| \ |
|
441 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
442 |
$as_echo X/"$0" | |
|
443 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
444 |
s//\1/
|
|
445 |
q
|
|
446 |
}
|
|
447 |
/^X\/\(\/\/\)$/{
|
|
448 |
s//\1/
|
|
449 |
q
|
|
450 |
}
|
|
451 |
/^X\/\(\/\).*/{
|
|
452 |
s//\1/
|
|
453 |
q
|
|
454 |
}
|
|
455 |
s/.*/./; q'` |
|
456 |
||
457 |
# Avoid depending upon Character Ranges.
|
|
458 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
459 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
460 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
461 |
as_cr_digits='0123456789' |
|
462 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
463 |
||
464 |
||
465 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
466 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
467 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
468 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
469 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
|
470 |
sed -n '
|
|
471 |
p
|
|
472 |
/[$]LINENO/=
|
|
473 |
' <$as_myself | |
|
474 |
sed '
|
|
475 |
s/[$]LINENO.*/&-/
|
|
476 |
t lineno
|
|
477 |
b
|
|
478 |
:lineno
|
|
479 |
N
|
|
480 |
:loop
|
|
481 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
482 |
t loop
|
|
483 |
s/-\n.*//
|
|
484 |
' >$as_me.lineno && |
|
485 |
chmod +x "$as_me.lineno" || |
|
486 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
487 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
488 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
489 |
# already done that, so ensure we don't try to do so again and fall
|
|
490 |
# in an infinite loop. This has already happened in practice.
|
|
491 |
_as_can_reexec=no; export _as_can_reexec |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
492 |
# Don't try to exec as it changes $[0], causing all sort of problems
|
493 |
# (the dirname of $[0] is not the place where we might find the
|
|
494 |
# original and so on. Autoconf is especially sensitive to this).
|
|
495 |
. "./$as_me.lineno" |
|
496 |
# Exit status is that of the last command.
|
|
497 |
exit
|
|
498 |
}
|
|
499 |
||
500 |
ECHO_C= ECHO_N= ECHO_T= |
|
501 |
case `echo -n x` in #((((( |
|
502 |
-n*)
|
|
503 |
case `echo 'xy\c'` in |
|
504 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
505 |
xy) ECHO_C='\c';; |
|
506 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
507 |
ECHO_T=' ';; |
|
508 |
esac;; |
|
509 |
*)
|
|
510 |
ECHO_N='-n';; |
|
511 |
esac
|
|
512 |
||
513 |
rm -f conf$$ conf$$.exe conf$$.file |
|
514 |
if test -d conf$$.dir; then |
|
515 |
rm -f conf$$.dir/conf$$.file |
|
516 |
else
|
|
517 |
rm -f conf$$.dir
|
|
518 |
mkdir conf$$.dir 2>/dev/null |
|
519 |
fi
|
|
520 |
if (echo >conf$$.file) 2>/dev/null; then |
|
521 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
522 |
as_ln_s='ln -s' |
|
523 |
# ... but there are two gotchas:
|
|
524 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
525 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
526 |
# In both cases, we have to default to `cp -pR'.
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
527 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
528 |
as_ln_s='cp -pR' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
529 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s=ln |
|
531 |
else
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
532 |
as_ln_s='cp -pR' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
533 |
fi
|
534 |
else
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
535 |
as_ln_s='cp -pR' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
536 |
fi
|
537 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
538 |
rmdir conf$$.dir 2>/dev/null |
|
539 |
||
540 |
if mkdir -p . 2>/dev/null; then |
|
541 |
as_mkdir_p='mkdir -p "$as_dir"' |
|
542 |
else
|
|
543 |
test -d ./-p && rmdir ./-p |
|
544 |
as_mkdir_p=false |
|
545 |
fi
|
|
546 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
547 |
as_test_x='test -x' |
548 |
as_executable_p=as_fn_executable_p |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
549 |
|
550 |
# Sed expression to map a string onto a valid CPP name.
|
|
551 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
552 |
||
553 |
# Sed expression to map a string onto a valid variable name.
|
|
554 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
555 |
||
556 |
||
557 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
|
558 |
exec 6>&1 |
|
559 |
||
560 |
# Name of the host.
|
|
561 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
|
562 |
# so uname gets run too.
|
|
563 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
564 |
||
565 |
#
|
|
566 |
# Initializations.
|
|
567 |
#
|
|
568 |
ac_default_prefix=/usr/local |
|
569 |
ac_clean_files= |
|
570 |
ac_config_libobj_dir=. |
|
571 |
LIBOBJS= |
|
572 |
cross_compiling=no |
|
573 |
subdirs= |
|
574 |
MFLAGS= |
|
575 |
MAKEFLAGS= |
|
576 |
||
577 |
# Identity of this package.
|
|
578 |
PACKAGE_NAME= |
|
579 |
PACKAGE_TARNAME= |
|
580 |
PACKAGE_VERSION= |
|
581 |
PACKAGE_STRING= |
|
582 |
PACKAGE_BUGREPORT= |
|
583 |
PACKAGE_URL= |
|
584 |
||
585 |
ac_unique_file="psi/gs.c" |
|
586 |
# Factoring default headers for most tests.
|
|
587 |
ac_includes_default="\ |
|
588 |
#include <stdio.h>
|
|
589 |
#ifdef HAVE_SYS_TYPES_H
|
|
590 |
# include <sys/types.h>
|
|
591 |
#endif
|
|
592 |
#ifdef HAVE_SYS_STAT_H
|
|
593 |
# include <sys/stat.h>
|
|
594 |
#endif
|
|
595 |
#ifdef STDC_HEADERS
|
|
596 |
# include <stdlib.h>
|
|
597 |
# include <stddef.h>
|
|
598 |
#else
|
|
599 |
# ifdef HAVE_STDLIB_H
|
|
600 |
# include <stdlib.h>
|
|
601 |
# endif
|
|
602 |
#endif
|
|
603 |
#ifdef HAVE_STRING_H
|
|
604 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
605 |
# include <memory.h>
|
|
606 |
# endif
|
|
607 |
# include <string.h>
|
|
608 |
#endif
|
|
609 |
#ifdef HAVE_STRINGS_H
|
|
610 |
# include <strings.h>
|
|
611 |
#endif
|
|
612 |
#ifdef HAVE_INTTYPES_H
|
|
613 |
# include <inttypes.h>
|
|
614 |
#endif
|
|
615 |
#ifdef HAVE_STDINT_H
|
|
616 |
# include <stdint.h>
|
|
617 |
#endif
|
|
618 |
#ifdef HAVE_UNISTD_H
|
|
619 |
# include <unistd.h>
|
|
620 |
#endif"
|
|
621 |
||
622 |
ac_subst_vars='LTLIBOBJS |
|
623 |
GCFLAGS
|
|
624 |
DBG_CFLAGS
|
|
625 |
OPT_CFLAGS
|
|
626 |
AUXDIRPOSTFIX
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
627 |
ORDER_ONLY
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
628 |
HAVE_BYTESWAP_H
|
629 |
HAVE_BSWAP32
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
630 |
SQRTF_SUBST
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
631 |
LCMS2_ENDIAN
|
632 |
LCMS_ENDIAN
|
|
633 |
HAVE_STRERROR
|
|
634 |
HAVE_SETLOCALE
|
|
635 |
HAVE_MKSTEMP64
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
636 |
HAVE_FSEEKO
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
637 |
HAVE_FILE64
|
638 |
HAVE_MKSTEMP
|
|
639 |
fontpath
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
640 |
SO_LIB_VERSION_SEPARATOR
|
641 |
DLL_EXT
|
|
642 |
SO_LIB_EXT
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
643 |
X11_DEVS
|
644 |
INSTALL_SHARED
|
|
645 |
DYNAMIC_LIBS
|
|
646 |
DYNAMIC_LDFLAGS
|
|
647 |
DYNAMIC_FLAGS
|
|
648 |
DYNAMIC_DEVS
|
|
649 |
DYNAMIC_CFLAGS
|
|
650 |
PNG_DEVS
|
|
651 |
IJS_DEVS
|
|
652 |
JBIG2_DEVS
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
653 |
XPS_DEVS
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
654 |
SVG_DEVS
|
655 |
CUPS_DEVS
|
|
656 |
F_DEVS
|
|
657 |
P_DEVS
|
|
658 |
COMPILE_INITS
|
|
659 |
GS
|
|
660 |
XLIBS
|
|
661 |
X_LDFLAGS
|
|
662 |
X_EXTRA_LIBS
|
|
663 |
X_LIBS
|
|
664 |
X_PRE_LIBS
|
|
665 |
X_CFLAGS
|
|
666 |
XMKMF
|
|
667 |
OMNIDEVS
|
|
668 |
SOC_LOADER
|
|
669 |
SOC_LIBS
|
|
670 |
SOC_CFLAGS
|
|
671 |
JPXDEVS
|
|
672 |
SHARE_JPX
|
|
673 |
JPXDIR
|
|
674 |
JPX_AUTOCONF_CFLAGS
|
|
675 |
JPX_DECODER
|
|
676 |
JBIG2_AUTOCONF_CFLAGS
|
|
677 |
JBIG2DEVS
|
|
678 |
SHARE_JBIG2
|
|
679 |
JBIG2DIR
|
|
680 |
JBIG2_DECODER
|
|
681 |
IJSLIB
|
|
682 |
SHAREIJS
|
|
683 |
IJSDIR
|
|
684 |
CUPSPDFTORASTER
|
|
685 |
LCUPSIINCLUDE
|
|
686 |
LCUPSINCLUDE
|
|
687 |
LCUPSBUILDTYPE
|
|
688 |
SHARELCUPSI
|
|
689 |
SHARELCUPS
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
690 |
CUPS_DIR
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
691 |
CUPSINSTALL
|
692 |
CUPSDATA
|
|
693 |
CUPSSERVERROOT
|
|
694 |
CUPSSERVERBIN
|
|
695 |
CUPSINCLUDE
|
|
696 |
CUPSLIBDIRS
|
|
697 |
CUPSLIBS
|
|
698 |
CUPSCFLAGS
|
|
699 |
CUPSCONFIG
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
700 |
LIBTIFFCONFDIR
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
701 |
LIBTIFFDIR
|
702 |
SHARE_LIBTIFF
|
|
703 |
LCMS2DIR
|
|
704 |
LCMSDIR
|
|
705 |
WHICHLCMS
|
|
706 |
SHARELCMS
|
|
707 |
LIBPNGDIR
|
|
708 |
SHARE_LIBPNG
|
|
709 |
FT_SYS_ZLIB
|
|
710 |
ZLIBDIR
|
|
711 |
AUX_SHARED_ZLIB
|
|
712 |
SHARE_ZLIB
|
|
713 |
LIBJPEGDIR
|
|
714 |
SHARE_LIBJPEG
|
|
715 |
FT_LIBS
|
|
716 |
FT_CFLAGS
|
|
717 |
FTSRCDIR
|
|
718 |
SHARE_FT
|
|
719 |
FT_BRIDGE
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
720 |
FAPIUFST_MAK
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
721 |
UFST_LIB_EXT
|
722 |
UFST_CFLAGS
|
|
723 |
UFST_ROOT
|
|
724 |
INSERT_UFST_BRIDGE_EQUAL_ONE
|
|
725 |
DBUS_LIBS
|
|
726 |
DBUS_CFLAGS
|
|
727 |
HAVE_DBUS
|
|
728 |
FONTCONFIG_LIBS
|
|
729 |
FONTCONFIG_CFLAGS
|
|
730 |
HAVE_FONTCONFIG
|
|
731 |
UTF8DEVS
|
|
732 |
HAVE_LIBIDN
|
|
733 |
PTHREAD_LIBS
|
|
734 |
SYNC
|
|
735 |
LIBOBJS
|
|
736 |
OBJDIR_BSDMAKE_WORKAROUND
|
|
737 |
EGREP
|
|
738 |
GREP
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
739 |
HAVE_SSE2
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
740 |
ARCH_CONF_HEADER
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
741 |
SET_DT_SONAME
|
742 |
INSTALL_CONTRIB
|
|
743 |
CONTRIBINCLUDE
|
|
744 |
PKGCONFIG
|
|
745 |
RANLIB
|
|
746 |
SED_EXTENDED_REGEX_OPT
|
|
747 |
SED
|
|
748 |
CPP
|
|
749 |
OBJEXT
|
|
750 |
EXEEXT
|
|
751 |
ac_ct_CC
|
|
752 |
CPPFLAGS
|
|
753 |
LDFLAGS
|
|
754 |
CFLAGS
|
|
755 |
CC
|
|
756 |
target_alias
|
|
757 |
host_alias
|
|
758 |
build_alias
|
|
759 |
LIBS
|
|
760 |
ECHO_T
|
|
761 |
ECHO_N
|
|
762 |
ECHO_C
|
|
763 |
DEFS
|
|
764 |
mandir
|
|
765 |
localedir
|
|
766 |
libdir
|
|
767 |
psdir
|
|
768 |
pdfdir
|
|
769 |
dvidir
|
|
770 |
htmldir
|
|
771 |
infodir
|
|
772 |
docdir
|
|
773 |
oldincludedir
|
|
774 |
includedir
|
|
775 |
localstatedir
|
|
776 |
sharedstatedir
|
|
777 |
sysconfdir
|
|
778 |
datadir
|
|
779 |
datarootdir
|
|
780 |
libexecdir
|
|
781 |
sbindir
|
|
782 |
bindir
|
|
783 |
program_transform_name
|
|
784 |
prefix
|
|
785 |
exec_prefix
|
|
786 |
PACKAGE_URL
|
|
787 |
PACKAGE_BUGREPORT
|
|
788 |
PACKAGE_STRING
|
|
789 |
PACKAGE_VERSION
|
|
790 |
PACKAGE_TARNAME
|
|
791 |
PACKAGE_NAME
|
|
792 |
PATH_SEPARATOR
|
|
793 |
SHELL'
|
|
794 |
ac_subst_files='' |
|
795 |
ac_user_opts=' |
|
796 |
enable_option_checking
|
|
797 |
enable_contrib
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
798 |
enable_big_endian
|
799 |
enable_little_endian
|
|
800 |
enable_sse2
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
801 |
enable_threadsafe
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
802 |
with_libiconv
|
803 |
with_libidn
|
|
804 |
with_libpaper
|
|
805 |
enable_fontconfig
|
|
806 |
enable_dbus
|
|
807 |
enable_freetype
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
808 |
enable_fapi
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
809 |
with_ufst
|
810 |
with_lcms
|
|
811 |
with_system_libtiff
|
|
812 |
enable_cups
|
|
813 |
with_pdftoraster
|
|
814 |
with_local_cups
|
|
815 |
with_cups_serverbin
|
|
816 |
with_cups_serverroot
|
|
817 |
with_cups_datadir
|
|
818 |
with_ijs
|
|
819 |
with_luratech
|
|
820 |
with_jbig2dec
|
|
821 |
enable_openjpeg
|
|
822 |
enable_gtk
|
|
823 |
with_omni
|
|
824 |
with_x
|
|
825 |
with_gs
|
|
826 |
enable_compile_inits
|
|
827 |
with_drivers
|
|
828 |
with_driversfile
|
|
829 |
enable_dynamic
|
|
830 |
with_fontpath
|
|
831 |
enable_bswap32
|
|
832 |
enable_byteswap_h
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
833 |
with_gnu_make
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
834 |
'
|
835 |
ac_precious_vars='build_alias |
|
836 |
host_alias
|
|
837 |
target_alias
|
|
838 |
CC
|
|
839 |
CFLAGS
|
|
840 |
LDFLAGS
|
|
841 |
LIBS
|
|
842 |
CPPFLAGS
|
|
843 |
CPP
|
|
844 |
XMKMF'
|
|
845 |
||
846 |
||
847 |
# Initialize some variables set by options.
|
|
848 |
ac_init_help= |
|
849 |
ac_init_version=false |
|
850 |
ac_unrecognized_opts= |
|
851 |
ac_unrecognized_sep= |
|
852 |
# The variables have the same names as the options, with
|
|
853 |
# dashes changed to underlines.
|
|
854 |
cache_file=/dev/null |
|
855 |
exec_prefix=NONE |
|
856 |
no_create= |
|
857 |
no_recursion= |
|
858 |
prefix=NONE |
|
859 |
program_prefix=NONE |
|
860 |
program_suffix=NONE |
|
861 |
program_transform_name=s,x,x, |
|
862 |
silent= |
|
863 |
site= |
|
864 |
srcdir= |
|
865 |
verbose= |
|
866 |
x_includes=NONE |
|
867 |
x_libraries=NONE |
|
868 |
||
869 |
# Installation directory options.
|
|
870 |
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
871 |
# and all the variables that are supposed to be based on exec_prefix
|
|
872 |
# by default will actually change.
|
|
873 |
# Use braces instead of parens because sh, perl, etc. also accept them.
|
|
874 |
# (The list follows the same order as the GNU Coding Standards.)
|
|
875 |
bindir='${exec_prefix}/bin' |
|
876 |
sbindir='${exec_prefix}/sbin' |
|
877 |
libexecdir='${exec_prefix}/libexec' |
|
878 |
datarootdir='${prefix}/share' |
|
879 |
datadir='${datarootdir}' |
|
880 |
sysconfdir='${prefix}/etc' |
|
881 |
sharedstatedir='${prefix}/com' |
|
882 |
localstatedir='${prefix}/var' |
|
883 |
includedir='${prefix}/include' |
|
884 |
oldincludedir='/usr/include' |
|
885 |
docdir='${datarootdir}/doc/${PACKAGE}' |
|
886 |
infodir='${datarootdir}/info' |
|
887 |
htmldir='${docdir}' |
|
888 |
dvidir='${docdir}' |
|
889 |
pdfdir='${docdir}' |
|
890 |
psdir='${docdir}' |
|
891 |
libdir='${exec_prefix}/lib' |
|
892 |
localedir='${datarootdir}/locale' |
|
893 |
mandir='${datarootdir}/man' |
|
894 |
||
895 |
ac_prev= |
|
896 |
ac_dashdash= |
|
897 |
for ac_option
|
|
898 |
do
|
|
899 |
# If the previous option needs an argument, assign it.
|
|
900 |
if test -n "$ac_prev"; then |
|
901 |
eval $ac_prev=\$ac_option |
|
902 |
ac_prev= |
|
903 |
continue
|
|
904 |
fi
|
|
905 |
||
906 |
case $ac_option in |
|
907 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
908 |
*=) ac_optarg= ;; |
|
909 |
*) ac_optarg=yes ;; |
|
910 |
esac
|
|
911 |
||
912 |
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
913 |
||
914 |
case $ac_dashdash$ac_option in |
|
915 |
--)
|
|
916 |
ac_dashdash=yes ;; |
|
917 |
||
918 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
919 |
ac_prev=bindir ;; |
|
920 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
921 |
bindir=$ac_optarg ;; |
|
922 |
||
923 |
-build | --build | --buil | --bui | --bu) |
|
924 |
ac_prev=build_alias ;; |
|
925 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
926 |
build_alias=$ac_optarg ;; |
|
927 |
||
928 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
929 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
930 |
ac_prev=cache_file ;; |
|
931 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
932 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
933 |
cache_file=$ac_optarg ;; |
|
934 |
||
935 |
--config-cache | -C) |
|
936 |
cache_file=config.cache ;; |
|
937 |
||
938 |
-datadir | --datadir | --datadi | --datad) |
|
939 |
ac_prev=datadir ;; |
|
940 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
941 |
datadir=$ac_optarg ;; |
|
942 |
||
943 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
944 |
| --dataroo | --dataro | --datar) |
|
945 |
ac_prev=datarootdir ;; |
|
946 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
947 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
948 |
datarootdir=$ac_optarg ;; |
|
949 |
||
950 |
-disable-* | --disable-*) |
|
951 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
952 |
# Reject names that are not valid shell variable names.
|
|
953 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
954 |
as_fn_error $? "invalid feature name: $ac_useropt" |
|
955 |
ac_useropt_orig=$ac_useropt |
|
956 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
957 |
case $ac_user_opts in |
|
958 |
*"
|
|
959 |
"enable_$ac_useropt" |
|
960 |
"*) ;; |
|
961 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
962 |
ac_unrecognized_sep=', ';; |
|
963 |
esac
|
|
964 |
eval enable_$ac_useropt=no ;; |
|
965 |
||
966 |
-docdir | --docdir | --docdi | --doc | --do) |
|
967 |
ac_prev=docdir ;; |
|
968 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
969 |
docdir=$ac_optarg ;; |
|
970 |
||
971 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
972 |
ac_prev=dvidir ;; |
|
973 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
974 |
dvidir=$ac_optarg ;; |
|
975 |
||
976 |
-enable-* | --enable-*) |
|
977 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
978 |
# Reject names that are not valid shell variable names.
|
|
979 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
980 |
as_fn_error $? "invalid feature name: $ac_useropt" |
|
981 |
ac_useropt_orig=$ac_useropt |
|
982 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
983 |
case $ac_user_opts in |
|
984 |
*"
|
|
985 |
"enable_$ac_useropt" |
|
986 |
"*) ;; |
|
987 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
988 |
ac_unrecognized_sep=', ';; |
|
989 |
esac
|
|
990 |
eval enable_$ac_useropt=\$ac_optarg ;; |
|
991 |
||
992 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
993 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
994 |
| --exec | --exe | --ex) |
|
995 |
ac_prev=exec_prefix ;; |
|
996 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
997 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
998 |
| --exec=* | --exe=* | --ex=*) |
|
999 |
exec_prefix=$ac_optarg ;; |
|
1000 |
||
1001 |
-gas | --gas | --ga | --g) |
|
1002 |
# Obsolete; use --with-gas.
|
|
1003 |
with_gas=yes ;; |
|
1004 |
||
1005 |
-help | --help | --hel | --he | -h) |
|
1006 |
ac_init_help=long ;; |
|
1007 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1008 |
ac_init_help=recursive ;; |
|
1009 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1010 |
ac_init_help=short ;; |
|
1011 |
||
1012 |
-host | --host | --hos | --ho) |
|
1013 |
ac_prev=host_alias ;; |
|
1014 |
-host=* | --host=* | --hos=* | --ho=*) |
|
1015 |
host_alias=$ac_optarg ;; |
|
1016 |
||
1017 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
1018 |
ac_prev=htmldir ;; |
|
1019 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1020 |
| --ht=*) |
|
1021 |
htmldir=$ac_optarg ;; |
|
1022 |
||
1023 |
-includedir | --includedir | --includedi | --included | --include \ |
|
1024 |
| --includ | --inclu | --incl | --inc) |
|
1025 |
ac_prev=includedir ;; |
|
1026 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1027 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1028 |
includedir=$ac_optarg ;; |
|
1029 |
||
1030 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1031 |
ac_prev=infodir ;; |
|
1032 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1033 |
infodir=$ac_optarg ;; |
|
1034 |
||
1035 |
-libdir | --libdir | --libdi | --libd) |
|
1036 |
ac_prev=libdir ;; |
|
1037 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1038 |
libdir=$ac_optarg ;; |
|
1039 |
||
1040 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1041 |
| --libexe | --libex | --libe) |
|
1042 |
ac_prev=libexecdir ;; |
|
1043 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1044 |
| --libexe=* | --libex=* | --libe=*) |
|
1045 |
libexecdir=$ac_optarg ;; |
|
1046 |
||
1047 |
-localedir | --localedir | --localedi | --localed | --locale) |
|
1048 |
ac_prev=localedir ;; |
|
1049 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1050 |
localedir=$ac_optarg ;; |
|
1051 |
||
1052 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
1053 |
| --localstate | --localstat | --localsta | --localst | --locals) |
|
1054 |
ac_prev=localstatedir ;; |
|
1055 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1056 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
1057 |
localstatedir=$ac_optarg ;; |
|
1058 |
||
1059 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1060 |
ac_prev=mandir ;; |
|
1061 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1062 |
mandir=$ac_optarg ;; |
|
1063 |
||
1064 |
-nfp | --nfp | --nf) |
|
1065 |
# Obsolete; use --without-fp.
|
|
1066 |
with_fp=no ;; |
|
1067 |
||
1068 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1069 |
| --no-cr | --no-c | -n) |
|
1070 |
no_create=yes ;; |
|
1071 |
||
1072 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1073 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1074 |
no_recursion=yes ;; |
|
1075 |
||
1076 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1077 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1078 |
| --oldin | --oldi | --old | --ol | --o) |
|
1079 |
ac_prev=oldincludedir ;; |
|
1080 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1081 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1082 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1083 |
oldincludedir=$ac_optarg ;; |
|
1084 |
||
1085 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1086 |
ac_prev=prefix ;; |
|
1087 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1088 |
prefix=$ac_optarg ;; |
|
1089 |
||
1090 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1091 |
| --program-pre | --program-pr | --program-p) |
|
1092 |
ac_prev=program_prefix ;; |
|
1093 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1094 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1095 |
program_prefix=$ac_optarg ;; |
|
1096 |
||
1097 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1098 |
| --program-suf | --program-su | --program-s) |
|
1099 |
ac_prev=program_suffix ;; |
|
1100 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1101 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1102 |
program_suffix=$ac_optarg ;; |
|
1103 |
||
1104 |
-program-transform-name | --program-transform-name \ |
|
1105 |
| --program-transform-nam | --program-transform-na \ |
|
1106 |
| --program-transform-n | --program-transform- \ |
|
1107 |
| --program-transform | --program-transfor \ |
|
1108 |
| --program-transfo | --program-transf \ |
|
1109 |
| --program-trans | --program-tran \ |
|
1110 |
| --progr-tra | --program-tr | --program-t) |
|
1111 |
ac_prev=program_transform_name ;; |
|
1112 |
-program-transform-name=* | --program-transform-name=* \ |
|
1113 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
1114 |
| --program-transform-n=* | --program-transform-=* \ |
|
1115 |
| --program-transform=* | --program-transfor=* \ |
|
1116 |
| --program-transfo=* | --program-transf=* \ |
|
1117 |
| --program-trans=* | --program-tran=* \ |
|
1118 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
1119 |
program_transform_name=$ac_optarg ;; |
|
1120 |
||
1121 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1122 |
ac_prev=pdfdir ;; |
|
1123 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1124 |
pdfdir=$ac_optarg ;; |
|
1125 |
||
1126 |
-psdir | --psdir | --psdi | --psd | --ps) |
|
1127 |
ac_prev=psdir ;; |
|
1128 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1129 |
psdir=$ac_optarg ;; |
|
1130 |
||
1131 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1132 |
| -silent | --silent | --silen | --sile | --sil) |
|
1133 |
silent=yes ;; |
|
1134 |
||
1135 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1136 |
ac_prev=sbindir ;; |
|
1137 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1138 |
| --sbi=* | --sb=*) |
|
1139 |
sbindir=$ac_optarg ;; |
|
1140 |
||
1141 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1142 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1143 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
1144 |
| --sha | --sh) |
|
1145 |
ac_prev=sharedstatedir ;; |
|
1146 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1147 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1148 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1149 |
| --sha=* | --sh=*) |
|
1150 |
sharedstatedir=$ac_optarg ;; |
|
1151 |
||
1152 |
-site | --site | --sit) |
|
1153 |
ac_prev=site ;; |
|
1154 |
-site=* | --site=* | --sit=*) |
|
1155 |
site=$ac_optarg ;; |
|
1156 |
||
1157 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1158 |
ac_prev=srcdir ;; |
|
1159 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1160 |
srcdir=$ac_optarg ;; |
|
1161 |
||
1162 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1163 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
1164 |
ac_prev=sysconfdir ;; |
|
1165 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1166 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1167 |
sysconfdir=$ac_optarg ;; |
|
1168 |
||
1169 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
1170 |
ac_prev=target_alias ;; |
|
1171 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1172 |
target_alias=$ac_optarg ;; |
|
1173 |
||
1174 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1175 |
verbose=yes ;; |
|
1176 |
||
1177 |
-version | --version | --versio | --versi | --vers | -V) |
|
1178 |
ac_init_version=: ;; |
|
1179 |
||
1180 |
-with-* | --with-*) |
|
1181 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1182 |
# Reject names that are not valid shell variable names.
|
|
1183 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1184 |
as_fn_error $? "invalid package name: $ac_useropt" |
|
1185 |
ac_useropt_orig=$ac_useropt |
|
1186 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1187 |
case $ac_user_opts in |
|
1188 |
*"
|
|
1189 |
"with_$ac_useropt" |
|
1190 |
"*) ;; |
|
1191 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1192 |
ac_unrecognized_sep=', ';; |
|
1193 |
esac
|
|
1194 |
eval with_$ac_useropt=\$ac_optarg ;; |
|
1195 |
||
1196 |
-without-* | --without-*) |
|
1197 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1198 |
# Reject names that are not valid shell variable names.
|
|
1199 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1200 |
as_fn_error $? "invalid package name: $ac_useropt" |
|
1201 |
ac_useropt_orig=$ac_useropt |
|
1202 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1203 |
case $ac_user_opts in |
|
1204 |
*"
|
|
1205 |
"with_$ac_useropt" |
|
1206 |
"*) ;; |
|
1207 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1208 |
ac_unrecognized_sep=', ';; |
|
1209 |
esac
|
|
1210 |
eval with_$ac_useropt=no ;; |
|
1211 |
||
1212 |
--x)
|
|
1213 |
# Obsolete; use --with-x.
|
|
1214 |
with_x=yes ;; |
|
1215 |
||
1216 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1217 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
1218 |
ac_prev=x_includes ;; |
|
1219 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1220 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1221 |
x_includes=$ac_optarg ;; |
|
1222 |
||
1223 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1224 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1225 |
ac_prev=x_libraries ;; |
|
1226 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1227 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1228 |
x_libraries=$ac_optarg ;; |
|
1229 |
||
1230 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
|
1231 |
Try \`$0 --help' for more information" |
|
1232 |
;;
|
|
1233 |
||
1234 |
*=*) |
|
1235 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1236 |
# Reject names that are not valid shell variable names.
|
|
1237 |
case $ac_envvar in #( |
|
1238 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
1239 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|
1240 |
esac
|
|
1241 |
eval $ac_envvar=\$ac_optarg |
|
1242 |
export $ac_envvar ;; |
|
1243 |
||
1244 |
*)
|
|
1245 |
# FIXME: should be removed in autoconf 3.0.
|
|
1246 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1247 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1248 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1249 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|
1250 |
;;
|
|
1251 |
||
1252 |
esac
|
|
1253 |
done
|
|
1254 |
||
1255 |
if test -n "$ac_prev"; then |
|
1256 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1257 |
as_fn_error $? "missing argument to $ac_option" |
|
1258 |
fi
|
|
1259 |
||
1260 |
if test -n "$ac_unrecognized_opts"; then |
|
1261 |
case $enable_option_checking in |
|
1262 |
no) ;; |
|
1263 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
1264 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1265 |
esac
|
|
1266 |
fi
|
|
1267 |
||
1268 |
# Check all directory arguments for consistency.
|
|
1269 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1270 |
datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
1271 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
1272 |
libdir localedir mandir |
|
1273 |
do
|
|
1274 |
eval ac_val=\$$ac_var |
|
1275 |
# Remove trailing slashes.
|
|
1276 |
case $ac_val in |
|
1277 |
*/ )
|
|
1278 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1279 |
eval $ac_var=\$ac_val;; |
|
1280 |
esac
|
|
1281 |
# Be sure to have absolute directory names.
|
|
1282 |
case $ac_val in |
|
1283 |
[\\/$]* | ?:[\\/]* ) continue;; |
|
1284 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1285 |
esac
|
|
1286 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|
1287 |
done
|
|
1288 |
||
1289 |
# There might be people who depend on the old broken behavior: `$host'
|
|
1290 |
# used to hold the argument of --host etc.
|
|
1291 |
# FIXME: To remove some day.
|
|
1292 |
build=$build_alias |
|
1293 |
host=$host_alias |
|
1294 |
target=$target_alias |
|
1295 |
||
1296 |
# FIXME: To remove some day.
|
|
1297 |
if test "x$host_alias" != x; then |
|
1298 |
if test "x$build_alias" = x; then |
|
1299 |
cross_compiling=maybe |
|
1300 |
elif test "x$build_alias" != "x$host_alias"; then |
|
1301 |
cross_compiling=yes |
|
1302 |
fi
|
|
1303 |
fi
|
|
1304 |
||
1305 |
ac_tool_prefix= |
|
1306 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1307 |
||
1308 |
test "$silent" = yes && exec 6>/dev/null |
|
1309 |
||
1310 |
||
1311 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1312 |
ac_ls_di=`ls -di .` && |
|
1313 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1314 |
as_fn_error $? "working directory cannot be determined" |
|
1315 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1316 |
as_fn_error $? "pwd does not report name of working directory" |
|
1317 |
||
1318 |
||
1319 |
# Find the source files, if location was not specified.
|
|
1320 |
if test -z "$srcdir"; then |
|
1321 |
ac_srcdir_defaulted=yes |
|
1322 |
# Try the directory containing this script, then the parent directory.
|
|
1323 |
ac_confdir=`$as_dirname -- "$as_myself" || |
|
1324 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1325 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1326 |
X"$as_myself" : 'X\(//\)$' \| \ |
|
1327 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1328 |
$as_echo X"$as_myself" | |
|
1329 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
1330 |
s//\1/
|
|
1331 |
q
|
|
1332 |
}
|
|
1333 |
/^X\(\/\/\)[^/].*/{
|
|
1334 |
s//\1/
|
|
1335 |
q
|
|
1336 |
}
|
|
1337 |
/^X\(\/\/\)$/{
|
|
1338 |
s//\1/
|
|
1339 |
q
|
|
1340 |
}
|
|
1341 |
/^X\(\/\).*/{
|
|
1342 |
s//\1/
|
|
1343 |
q
|
|
1344 |
}
|
|
1345 |
s/.*/./; q'` |
|
1346 |
srcdir=$ac_confdir |
|
1347 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1348 |
srcdir=.. |
|
1349 |
fi
|
|
1350 |
else
|
|
1351 |
ac_srcdir_defaulted=no |
|
1352 |
fi
|
|
1353 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1354 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1355 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|
1356 |
fi
|
|
1357 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1358 |
ac_abs_confdir=`( |
|
1359 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|
1360 |
pwd)` |
|
1361 |
# When building in place, set srcdir=.
|
|
1362 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1363 |
srcdir=. |
|
1364 |
fi
|
|
1365 |
# Remove unnecessary trailing slashes from srcdir.
|
|
1366 |
# Double slashes in file names in object file debugging info
|
|
1367 |
# mess up M-x gdb in Emacs.
|
|
1368 |
case $srcdir in |
|
1369 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1370 |
esac
|
|
1371 |
for ac_var in $ac_precious_vars; do |
|
1372 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1373 |
eval ac_env_${ac_var}_value=\$${ac_var} |
|
1374 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1375 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1376 |
done
|
|
1377 |
||
1378 |
#
|
|
1379 |
# Report the --help message.
|
|
1380 |
#
|
|
1381 |
if test "$ac_init_help" = "long"; then |
|
1382 |
# Omit some internal or obsolete options to make the list less imposing.
|
|
1383 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
1384 |
cat <<_ACEOF
|
|
1385 |
\`configure' configures this package to adapt to many kinds of systems.
|
|
1386 |
||
1387 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
1388 |
||
1389 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
1390 |
VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
1391 |
||
1392 |
Defaults for the options are specified in brackets.
|
|
1393 |
||
1394 |
Configuration:
|
|
1395 |
-h, --help display this help and exit
|
|
1396 |
--help=short display options specific to this package
|
|
1397 |
--help=recursive display the short help of all the included packages
|
|
1398 |
-V, --version display version information and exit
|
|
1399 |
-q, --quiet, --silent do not print \`checking ...' messages
|
|
1400 |
--cache-file=FILE cache test results in FILE [disabled]
|
|
1401 |
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
1402 |
-n, --no-create do not create output files
|
|
1403 |
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
1404 |
||
1405 |
Installation directories:
|
|
1406 |
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
1407 |
[$ac_default_prefix]
|
|
1408 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
1409 |
[PREFIX]
|
|
1410 |
||
1411 |
By default, \`make install' will install all the files in
|
|
1412 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
1413 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
1414 |
for instance \`--prefix=\$HOME'.
|
|
1415 |
||
1416 |
For better control, use the options below.
|
|
1417 |
||
1418 |
Fine tuning of the installation directories:
|
|
1419 |
--bindir=DIR user executables [EPREFIX/bin]
|
|
1420 |
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
1421 |
--libexecdir=DIR program executables [EPREFIX/libexec]
|
|
1422 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
1423 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
1424 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
1425 |
--libdir=DIR object code libraries [EPREFIX/lib]
|
|
1426 |
--includedir=DIR C header files [PREFIX/include]
|
|
1427 |
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
1428 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
1429 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
1430 |
--infodir=DIR info documentation [DATAROOTDIR/info]
|
|
1431 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
1432 |
--mandir=DIR man documentation [DATAROOTDIR/man]
|
|
1433 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
|
1434 |
--htmldir=DIR html documentation [DOCDIR]
|
|
1435 |
--dvidir=DIR dvi documentation [DOCDIR]
|
|
1436 |
--pdfdir=DIR pdf documentation [DOCDIR]
|
|
1437 |
--psdir=DIR ps documentation [DOCDIR]
|
|
1438 |
_ACEOF
|
|
1439 |
||
1440 |
cat <<\_ACEOF
|
|
1441 |
||
1442 |
X features:
|
|
1443 |
--x-includes=DIR X include files are in DIR
|
|
1444 |
--x-libraries=DIR X library files are in DIR
|
|
1445 |
_ACEOF
|
|
1446 |
fi
|
|
1447 |
||
1448 |
if test -n "$ac_init_help"; then |
|
1449 |
||
1450 |
cat <<\_ACEOF
|
|
1451 |
||
1452 |
Optional Features:
|
|
1453 |
--disable-option-checking ignore unrecognized --enable/--with options
|
|
1454 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
1455 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
1456 |
--disable-contrib Do not include contributed drivers
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
1457 |
--enable-big-endian Force big endian
|
1458 |
--enable-little-endian Force little endian
|
|
1459 |
--disable-sse2 Do not use sse2 instrinsics
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1460 |
--enable-threadsafe enable a thread safe build - NOTE: this will exclude
|
1461 |
non-threadsafe devices
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1462 |
--disable-fontconfig Do not use fontconfig to list system fonts
|
1463 |
--disable-dbus Do not use dbus to communicate with external
|
|
1464 |
services
|
|
1465 |
--disable-freetype Disable freetype for font rasterization
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1466 |
--disable-fapi Force use of the (deprecated) Artifex font
|
1467 |
scaler/renderer
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1468 |
--disable-cups Do not include CUPS support
|
1469 |
--disable-openjpeg Do not use OpenJPEG for JPX decoding
|
|
1470 |
--disable-gtk Do not build the gtk loader
|
|
1471 |
--disable-compile-inits Do not compile in initialization files
|
|
1472 |
--enable-dynamic Enable dynamically loaded drivers
|
|
1473 |
--disable-bswap32 Do not use bswap32 instrinsic
|
|
1474 |
--disable-byteswap-h Do not use byteswap.h functions
|
|
1475 |
||
1476 |
Optional Packages:
|
|
1477 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
1478 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
1479 |
--with-libiconv=[no/gnu/native]
|
|
1480 |
use the libiconv library
|
|
1481 |
--without-libidn Do not use libidn to support Unicode passwords
|
|
1482 |
--without-libpaper disable libpaper support
|
|
1483 |
--with-ufst=UFST_ROOT_DIR
|
|
1484 |
Use UFST
|
|
1485 |
--with-lcms try to use LittleCMS 1.x instead of the default of
|
|
1486 |
LittleCMS 2.x
|
|
1487 |
--with-system-libtiff Force using the systems libtiff
|
|
1488 |
--without-pdftoraster Do not include CUPS' pdftoraster filter
|
|
1489 |
--with-local-cups Force using the GS supplied cups code - only useful
|
|
1490 |
for debugging
|
|
1491 |
--with-cups-serverbin override the "cups-config --serverbin" path
|
|
1492 |
--with-cups-serverroot override the "cups-config --serverroot" path
|
|
1493 |
--with-cups-datadir override the "cups-config --datadir" path
|
|
1494 |
--without-ijs disable IJS driver support
|
|
1495 |
--without-luratech do not try to use the Luratech library for JBIG2 nor
|
|
1496 |
JPX decoding
|
|
1497 |
--without-jbig2dec disable JBIG2 decode support
|
|
1498 |
--with-omni enable the omni driver
|
|
1499 |
--with-x use the X Window System
|
|
1500 |
--with-gs=NAME name of the Ghostscript executible [[gs]]
|
|
1501 |
--with-drivers=LIST Drivers to support, separated by commas.
|
|
1502 |
Either list the drivers or use aliases:
|
|
1503 |
ALL = all drivers
|
|
1504 |
FILES = all file format drivers
|
|
1505 |
PRINTERS = all printer drivers
|
|
1506 |
Printers:
|
|
1507 |
APPLE = all Apple printers
|
|
1508 |
BROTHER = all Brother printers
|
|
1509 |
CANON = all Canon printers
|
|
1510 |
EPSON = all Epson printers
|
|
1511 |
HP = all HP printers
|
|
1512 |
IBM = all IBM printers
|
|
1513 |
JAPAN = older japanese printers
|
|
1514 |
LEXMARK = all Lexmark printers
|
|
1515 |
OKI = all OKI printers
|
|
1516 |
PCLXL = all PCL XL/6 printers
|
|
1517 |
File formats:
|
|
1518 |
BMP = Output to bmp files
|
|
1519 |
FAX = Output to fax files
|
|
1520 |
JPEG = Output to JPEG files
|
|
1521 |
PBM = Output to PBM/PNM
|
|
1522 |
PCX = Output to PCX
|
|
1523 |
PNG = Output to PNG
|
|
1524 |
PS = Output to PostScript/PDF
|
|
1525 |
TIFF = Output to TIFF
|
|
1526 |
You can mix both variants, e.g.
|
|
1527 |
--with-drivers=HP,stcolor would build HP drivers and
|
|
1528 |
the Epson stcolor driver.
|
|
1529 |
Aliases must be uppercase (a 3rd party driver might
|
|
1530 |
have the same name).
|
|
1531 |
Default: ALL
|
|
1532 |
--with-driversfile=FILE Drivers to support from file, separated by newlines.
|
|
1533 |
--with-fontpath set font search path for gs
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1534 |
--without-gnu-make disable GNU make features
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1535 |
|
1536 |
Some influential environment variables:
|
|
1537 |
CC C compiler command
|
|
1538 |
CFLAGS C compiler flags
|
|
1539 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
1540 |
nonstandard directory <lib dir>
|
|
1541 |
LIBS libraries to pass to the linker, e.g. -l<library>
|
|
1542 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
1543 |
you have headers in a nonstandard directory <include dir>
|
|
1544 |
CPP C preprocessor
|
|
1545 |
XMKMF Path to xmkmf, Makefile generator for X Window System
|
|
1546 |
||
1547 |
Use these variables to override the choices made by `configure' or to help
|
|
1548 |
it to find libraries and programs with nonstandard names/locations.
|
|
1549 |
||
1550 |
Report bugs to the package provider.
|
|
1551 |
_ACEOF
|
|
1552 |
ac_status=$? |
|
1553 |
fi
|
|
1554 |
||
1555 |
if test "$ac_init_help" = "recursive"; then |
|
1556 |
# If there are subdirs, report their specific --help.
|
|
1557 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1558 |
test -d "$ac_dir" || |
|
1559 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1560 |
continue
|
|
1561 |
ac_builddir=. |
|
1562 |
||
1563 |
case "$ac_dir" in |
|
1564 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1565 |
*)
|
|
1566 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1567 |
# A ".." for each directory in $ac_dir_suffix.
|
|
1568 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1569 |
case $ac_top_builddir_sub in |
|
1570 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1571 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1572 |
esac ;; |
|
1573 |
esac
|
|
1574 |
ac_abs_top_builddir=$ac_pwd |
|
1575 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1576 |
# for backward compatibility:
|
|
1577 |
ac_top_builddir=$ac_top_build_prefix |
|
1578 |
||
1579 |
case $srcdir in |
|
1580 |
.) # We are building in place. |
|
1581 |
ac_srcdir=. |
|
1582 |
ac_top_srcdir=$ac_top_builddir_sub |
|
1583 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
1584 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
1585 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
1586 |
ac_top_srcdir=$srcdir |
|
1587 |
ac_abs_top_srcdir=$srcdir ;; |
|
1588 |
*) # Relative name. |
|
1589 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1590 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1591 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1592 |
esac
|
|
1593 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1594 |
||
1595 |
cd "$ac_dir" || { ac_status=$?; continue; } |
|
1596 |
# Check for guested configure.
|
|
1597 |
if test -f "$ac_srcdir/configure.gnu"; then |
|
1598 |
echo && |
|
1599 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1600 |
elif test -f "$ac_srcdir/configure"; then |
|
1601 |
echo && |
|
1602 |
$SHELL "$ac_srcdir/configure" --help=recursive |
|
1603 |
else
|
|
1604 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1605 |
fi || ac_status=$? |
|
1606 |
cd "$ac_pwd" || { ac_status=$?; break; } |
|
1607 |
done
|
|
1608 |
fi
|
|
1609 |
||
1610 |
test -n "$ac_init_help" && exit $ac_status |
|
1611 |
if $ac_init_version; then |
|
1612 |
cat <<\_ACEOF
|
|
1613 |
configure
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1614 |
generated by GNU Autoconf 2.69
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1615 |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1616 |
Copyright (C) 2012 Free Software Foundation, Inc.
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1617 |
This configure script is free software; the Free Software Foundation
|
1618 |
gives unlimited permission to copy, distribute and modify it.
|
|
1619 |
_ACEOF
|
|
1620 |
exit
|
|
1621 |
fi
|
|
1622 |
||
1623 |
## ------------------------ ##
|
|
1624 |
## Autoconf initialization. ##
|
|
1625 |
## ------------------------ ##
|
|
1626 |
||
1627 |
# ac_fn_c_try_compile LINENO
|
|
1628 |
# --------------------------
|
|
1629 |
# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
|
1630 |
ac_fn_c_try_compile ()
|
|
1631 |
{
|
|
1632 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1633 |
rm -f conftest.$ac_objext
|
|
1634 |
if { { ac_try="$ac_compile" |
|
1635 |
case "(($ac_try" in |
|
1636 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1637 |
*) ac_try_echo=$ac_try;; |
|
1638 |
esac
|
|
1639 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1640 |
$as_echo "$ac_try_echo"; } >&5 |
|
1641 |
(eval "$ac_compile") 2>conftest.err |
|
1642 |
ac_status=$? |
|
1643 |
if test -s conftest.err; then |
|
1644 |
grep -v '^ *+' conftest.err >conftest.er1
|
|
1645 |
cat conftest.er1 >&5 |
|
1646 |
mv -f conftest.er1 conftest.err |
|
1647 |
fi
|
|
1648 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1649 |
test $ac_status = 0; } && { |
|
1650 |
test -z "$ac_c_werror_flag" || |
|
1651 |
test ! -s conftest.err
|
|
1652 |
} && test -s conftest.$ac_objext; then : |
|
1653 |
ac_retval=0 |
|
1654 |
else
|
|
1655 |
$as_echo "$as_me: failed program was:" >&5 |
|
1656 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1657 |
||
1658 |
ac_retval=1 |
|
1659 |
fi
|
|
1660 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1661 |
as_fn_set_status $ac_retval
|
|
1662 |
||
1663 |
} # ac_fn_c_try_compile |
|
1664 |
||
1665 |
# ac_fn_c_try_cpp LINENO
|
|
1666 |
# ----------------------
|
|
1667 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
1668 |
ac_fn_c_try_cpp ()
|
|
1669 |
{
|
|
1670 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1671 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1672 |
case "(($ac_try" in |
|
1673 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1674 |
*) ac_try_echo=$ac_try;; |
|
1675 |
esac
|
|
1676 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1677 |
$as_echo "$ac_try_echo"; } >&5 |
|
1678 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1679 |
ac_status=$? |
|
1680 |
if test -s conftest.err; then |
|
1681 |
grep -v '^ *+' conftest.err >conftest.er1
|
|
1682 |
cat conftest.er1 >&5 |
|
1683 |
mv -f conftest.er1 conftest.err |
|
1684 |
fi
|
|
1685 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1686 |
test $ac_status = 0; } > conftest.i && { |
|
1687 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1688 |
test ! -s conftest.err
|
|
1689 |
}; then : |
|
1690 |
ac_retval=0 |
|
1691 |
else
|
|
1692 |
$as_echo "$as_me: failed program was:" >&5 |
|
1693 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1694 |
||
1695 |
ac_retval=1 |
|
1696 |
fi
|
|
1697 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1698 |
as_fn_set_status $ac_retval
|
|
1699 |
||
1700 |
} # ac_fn_c_try_cpp |
|
1701 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1702 |
# ac_fn_c_try_run LINENO
|
1703 |
# ----------------------
|
|
1704 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
1705 |
# that executables *can* be run.
|
|
1706 |
ac_fn_c_try_run ()
|
|
1707 |
{
|
|
1708 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1709 |
if { { ac_try="$ac_link" |
|
1710 |
case "(($ac_try" in |
|
1711 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1712 |
*) ac_try_echo=$ac_try;; |
|
1713 |
esac
|
|
1714 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1715 |
$as_echo "$ac_try_echo"; } >&5 |
|
1716 |
(eval "$ac_link") 2>&5 |
|
1717 |
ac_status=$? |
|
1718 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1719 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1720 |
{ { case "(($ac_try" in |
|
1721 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1722 |
*) ac_try_echo=$ac_try;; |
|
1723 |
esac
|
|
1724 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1725 |
$as_echo "$ac_try_echo"; } >&5 |
|
1726 |
(eval "$ac_try") 2>&5 |
|
1727 |
ac_status=$? |
|
1728 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1729 |
test $ac_status = 0; }; }; then : |
|
1730 |
ac_retval=0 |
|
1731 |
else
|
|
1732 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1733 |
$as_echo "$as_me: failed program was:" >&5 |
|
1734 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1735 |
||
1736 |
ac_retval=$ac_status |
|
1737 |
fi
|
|
1738 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1739 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1740 |
as_fn_set_status $ac_retval
|
|
1741 |
||
1742 |
} # ac_fn_c_try_run |
|
1743 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1744 |
# ac_fn_c_try_link LINENO
|
1745 |
# -----------------------
|
|
1746 |
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
1747 |
ac_fn_c_try_link ()
|
|
1748 |
{
|
|
1749 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1750 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1751 |
if { { ac_try="$ac_link" |
|
1752 |
case "(($ac_try" in |
|
1753 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1754 |
*) ac_try_echo=$ac_try;; |
|
1755 |
esac
|
|
1756 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1757 |
$as_echo "$ac_try_echo"; } >&5 |
|
1758 |
(eval "$ac_link") 2>conftest.err |
|
1759 |
ac_status=$? |
|
1760 |
if test -s conftest.err; then |
|
1761 |
grep -v '^ *+' conftest.err >conftest.er1
|
|
1762 |
cat conftest.er1 >&5 |
|
1763 |
mv -f conftest.er1 conftest.err |
|
1764 |
fi
|
|
1765 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1766 |
test $ac_status = 0; } && { |
|
1767 |
test -z "$ac_c_werror_flag" || |
|
1768 |
test ! -s conftest.err
|
|
1769 |
} && test -s conftest$ac_exeext && { |
|
1770 |
test "$cross_compiling" = yes || |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
1771 |
test -x conftest$ac_exeext |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
1772 |
}; then : |
1773 |
ac_retval=0 |
|
1774 |
else
|
|
1775 |
$as_echo "$as_me: failed program was:" >&5 |
|
1776 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1777 |
||
1778 |
ac_retval=1 |
|
1779 |
fi
|
|
1780 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
|
1781 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
|
1782 |
# interfere with the next link command; also delete a directory that is
|
|
1783 |
# left behind by Apple's compiler. We do this before executing the actions.
|
|
1784 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1785 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1786 |
as_fn_set_status $ac_retval
|
|
1787 |
||
1788 |
} # ac_fn_c_try_link |
|
1789 |
||
1790 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
1791 |
# -------------------------------------------------------
|
|
1792 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
1793 |
# the include files in INCLUDES and setting the cache variable VAR
|
|
1794 |
# accordingly.
|
|
1795 |
ac_fn_c_check_header_mongrel ()
|
|
1796 |
{
|
|
1797 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1798 |
if eval \${$3+:} false; then : |
|
1799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1800 |
$as_echo_n "checking for $2... " >&6; } |
|
1801 |
if eval \${$3+:} false; then : |
|
1802 |
$as_echo_n "(cached) " >&6 |
|
1803 |
fi
|
|
1804 |
eval ac_res=\$$3 |
|
1805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1806 |
$as_echo "$ac_res" >&6; } |
|
1807 |
else
|
|
1808 |
# Is the header compilable?
|
|
1809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
1810 |
$as_echo_n "checking $2 usability... " >&6; } |
|
1811 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1812 |
/* end confdefs.h. */
|
|
1813 |
$4
|
|
1814 |
#include <$2>
|
|
1815 |
_ACEOF
|
|
1816 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1817 |
ac_header_compiler=yes |
|
1818 |
else
|
|
1819 |
ac_header_compiler=no |
|
1820 |
fi
|
|
1821 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
1823 |
$as_echo "$ac_header_compiler" >&6; } |
|
1824 |
||
1825 |
# Is the header present?
|
|
1826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
1827 |
$as_echo_n "checking $2 presence... " >&6; } |
|
1828 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1829 |
/* end confdefs.h. */
|
|
1830 |
#include <$2>
|
|
1831 |
_ACEOF
|
|
1832 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
1833 |
ac_header_preproc=yes |
|
1834 |
else
|
|
1835 |
ac_header_preproc=no |
|
1836 |
fi
|
|
1837 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
1838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
1839 |
$as_echo "$ac_header_preproc" >&6; } |
|
1840 |
||
1841 |
# So? What about this header?
|
|
1842 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
1843 |
yes:no: )
|
|
1844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
1845 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
1846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1847 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1848 |
;;
|
|
1849 |
no:yes:* )
|
|
1850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
1851 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
1852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
1853 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
1854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
1855 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
1856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
1857 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
1858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1859 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1860 |
;;
|
|
1861 |
esac
|
|
1862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1863 |
$as_echo_n "checking for $2... " >&6; } |
|
1864 |
if eval \${$3+:} false; then : |
|
1865 |
$as_echo_n "(cached) " >&6 |
|
1866 |
else
|
|
1867 |
eval "$3=\$ac_header_compiler" |
|
1868 |
fi
|
|
1869 |
eval ac_res=\$$3 |
|
1870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1871 |
$as_echo "$ac_res" >&6; } |
|
1872 |
fi
|
|
1873 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1874 |
||
1875 |
} # ac_fn_c_check_header_mongrel |
|
1876 |
||
1877 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
|
1878 |
# -------------------------------------------------------
|
|
1879 |
# Tests whether HEADER exists and can be compiled using the include files in
|
|
1880 |
# INCLUDES, setting the cache variable VAR accordingly.
|
|
1881 |
ac_fn_c_check_header_compile ()
|
|
1882 |
{
|
|
1883 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1885 |
$as_echo_n "checking for $2... " >&6; } |
|
1886 |
if eval \${$3+:} false; then : |
|
1887 |
$as_echo_n "(cached) " >&6 |
|
1888 |
else
|
|
1889 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1890 |
/* end confdefs.h. */
|
|
1891 |
$4
|
|
1892 |
#include <$2>
|
|
1893 |
_ACEOF
|
|
1894 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1895 |
eval "$3=yes" |
|
1896 |
else
|
|
1897 |
eval "$3=no" |
|
1898 |
fi
|
|
1899 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1900 |
fi
|
|
1901 |
eval ac_res=\$$3 |
|
1902 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1903 |
$as_echo "$ac_res" >&6; } |
|
1904 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1905 |
||
1906 |
} # ac_fn_c_check_header_compile |
|
1907 |
||
1908 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
|
1909 |
# -------------------------------------------
|
|
1910 |
# Tests whether TYPE exists after having included INCLUDES, setting cache
|
|
1911 |
# variable VAR accordingly.
|
|
1912 |
ac_fn_c_check_type ()
|
|
1913 |
{
|
|
1914 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1916 |
$as_echo_n "checking for $2... " >&6; } |
|
1917 |
if eval \${$3+:} false; then : |
|
1918 |
$as_echo_n "(cached) " >&6 |
|
1919 |
else
|
|
1920 |
eval "$3=no" |
|
1921 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1922 |
/* end confdefs.h. */
|
|
1923 |
$4
|
|
1924 |
int
|
|
1925 |
main ()
|
|
1926 |
{
|
|
1927 |
if (sizeof ($2))
|
|
1928 |
return 0;
|
|
1929 |
;
|
|
1930 |
return 0;
|
|
1931 |
}
|
|
1932 |
_ACEOF
|
|
1933 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1934 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1935 |
/* end confdefs.h. */
|
|
1936 |
$4
|
|
1937 |
int
|
|
1938 |
main ()
|
|
1939 |
{
|
|
1940 |
if (sizeof (($2)))
|
|
1941 |
return 0;
|
|
1942 |
;
|
|
1943 |
return 0;
|
|
1944 |
}
|
|
1945 |
_ACEOF
|
|
1946 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1947 |
||
1948 |
else
|
|
1949 |
eval "$3=yes" |
|
1950 |
fi
|
|
1951 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1952 |
fi
|
|
1953 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1954 |
fi
|
|
1955 |
eval ac_res=\$$3 |
|
1956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1957 |
$as_echo "$ac_res" >&6; } |
|
1958 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1959 |
||
1960 |
} # ac_fn_c_check_type |
|
1961 |
||
1962 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
|
1963 |
# ----------------------------------------------------
|
|
1964 |
# Tries to find if the field MEMBER exists in type AGGR, after including
|
|
1965 |
# INCLUDES, setting cache variable VAR accordingly.
|
|
1966 |
ac_fn_c_check_member ()
|
|
1967 |
{
|
|
1968 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
1970 |
$as_echo_n "checking for $2.$3... " >&6; } |
|
1971 |
if eval \${$4+:} false; then : |
|
1972 |
$as_echo_n "(cached) " >&6 |
|
1973 |
else
|
|
1974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1975 |
/* end confdefs.h. */
|
|
1976 |
$5
|
|
1977 |
int
|
|
1978 |
main ()
|
|
1979 |
{
|
|
1980 |
static $2 ac_aggr;
|
|
1981 |
if (ac_aggr.$3)
|
|
1982 |
return 0;
|
|
1983 |
;
|
|
1984 |
return 0;
|
|
1985 |
}
|
|
1986 |
_ACEOF
|
|
1987 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1988 |
eval "$4=yes" |
|
1989 |
else
|
|
1990 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1991 |
/* end confdefs.h. */
|
|
1992 |
$5
|
|
1993 |
int
|
|
1994 |
main ()
|
|
1995 |
{
|
|
1996 |
static $2 ac_aggr;
|
|
1997 |
if (sizeof ac_aggr.$3)
|
|
1998 |
return 0;
|
|
1999 |
;
|
|
2000 |
return 0;
|
|
2001 |
}
|
|
2002 |
_ACEOF
|
|
2003 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2004 |
eval "$4=yes" |
|
2005 |
else
|
|
2006 |
eval "$4=no" |
|
2007 |
fi
|
|
2008 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2009 |
fi
|
|
2010 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2011 |
fi
|
|
2012 |
eval ac_res=\$$4 |
|
2013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2014 |
$as_echo "$ac_res" >&6; } |
|
2015 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2016 |
||
2017 |
} # ac_fn_c_check_member |
|
2018 |
||
2019 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
|
2020 |
# --------------------------------------------
|
|
2021 |
# Tries to find the compile-time value of EXPR in a program that includes
|
|
2022 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be
|
|
2023 |
# computed
|
|
2024 |
ac_fn_c_compute_int ()
|
|
2025 |
{
|
|
2026 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2027 |
if test "$cross_compiling" = yes; then |
|
2028 |
# Depending upon the size, compute the lo and hi bounds.
|
|
2029 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2030 |
/* end confdefs.h. */
|
|
2031 |
$4
|
|
2032 |
int
|
|
2033 |
main ()
|
|
2034 |
{
|
|
2035 |
static int test_array [1 - 2 * !(($2) >= 0)];
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2036 |
test_array [0] = 0;
|
2037 |
return test_array [0];
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2038 |
|
2039 |
;
|
|
2040 |
return 0;
|
|
2041 |
}
|
|
2042 |
_ACEOF
|
|
2043 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2044 |
ac_lo=0 ac_mid=0 |
|
2045 |
while :; do |
|
2046 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2047 |
/* end confdefs.h. */
|
|
2048 |
$4
|
|
2049 |
int
|
|
2050 |
main ()
|
|
2051 |
{
|
|
2052 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2053 |
test_array [0] = 0;
|
2054 |
return test_array [0];
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2055 |
|
2056 |
;
|
|
2057 |
return 0;
|
|
2058 |
}
|
|
2059 |
_ACEOF
|
|
2060 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2061 |
ac_hi=$ac_mid; break |
|
2062 |
else
|
|
2063 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
|
2064 |
if test $ac_lo -le $ac_mid; then |
|
2065 |
ac_lo= ac_hi= |
|
2066 |
break
|
|
2067 |
fi
|
|
2068 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
|
2069 |
fi
|
|
2070 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2071 |
done
|
|
2072 |
else
|
|
2073 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2074 |
/* end confdefs.h. */
|
|
2075 |
$4
|
|
2076 |
int
|
|
2077 |
main ()
|
|
2078 |
{
|
|
2079 |
static int test_array [1 - 2 * !(($2) < 0)];
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2080 |
test_array [0] = 0;
|
2081 |
return test_array [0];
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2082 |
|
2083 |
;
|
|
2084 |
return 0;
|
|
2085 |
}
|
|
2086 |
_ACEOF
|
|
2087 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2088 |
ac_hi=-1 ac_mid=-1 |
|
2089 |
while :; do |
|
2090 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2091 |
/* end confdefs.h. */
|
|
2092 |
$4
|
|
2093 |
int
|
|
2094 |
main ()
|
|
2095 |
{
|
|
2096 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2097 |
test_array [0] = 0;
|
2098 |
return test_array [0];
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2099 |
|
2100 |
;
|
|
2101 |
return 0;
|
|
2102 |
}
|
|
2103 |
_ACEOF
|
|
2104 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2105 |
ac_lo=$ac_mid; break |
|
2106 |
else
|
|
2107 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
|
2108 |
if test $ac_mid -le $ac_hi; then |
|
2109 |
ac_lo= ac_hi= |
|
2110 |
break
|
|
2111 |
fi
|
|
2112 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
|
2113 |
fi
|
|
2114 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2115 |
done
|
|
2116 |
else
|
|
2117 |
ac_lo= ac_hi= |
|
2118 |
fi
|
|
2119 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2120 |
fi
|
|
2121 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2122 |
# Binary search between lo and hi bounds.
|
|
2123 |
while test "x$ac_lo" != "x$ac_hi"; do |
|
2124 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
|
2125 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2126 |
/* end confdefs.h. */
|
|
2127 |
$4
|
|
2128 |
int
|
|
2129 |
main ()
|
|
2130 |
{
|
|
2131 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2132 |
test_array [0] = 0;
|
2133 |
return test_array [0];
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2134 |
|
2135 |
;
|
|
2136 |
return 0;
|
|
2137 |
}
|
|
2138 |
_ACEOF
|
|
2139 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2140 |
ac_hi=$ac_mid |
|
2141 |
else
|
|
2142 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
|
2143 |
fi
|
|
2144 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2145 |
done
|
|
2146 |
case $ac_lo in #(( |
|
2147 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
|
2148 |
'') ac_retval=1 ;; |
|
2149 |
esac
|
|
2150 |
else
|
|
2151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2152 |
/* end confdefs.h. */
|
|
2153 |
$4
|
|
2154 |
static long int longval () { return $2; }
|
|
2155 |
static unsigned long int ulongval () { return $2; }
|
|
2156 |
#include <stdio.h>
|
|
2157 |
#include <stdlib.h>
|
|
2158 |
int
|
|
2159 |
main ()
|
|
2160 |
{
|
|
2161 |
||
2162 |
FILE *f = fopen ("conftest.val", "w");
|
|
2163 |
if (! f)
|
|
2164 |
return 1;
|
|
2165 |
if (($2) < 0)
|
|
2166 |
{
|
|
2167 |
long int i = longval ();
|
|
2168 |
if (i != ($2))
|
|
2169 |
return 1;
|
|
2170 |
fprintf (f, "%ld", i);
|
|
2171 |
}
|
|
2172 |
else
|
|
2173 |
{
|
|
2174 |
unsigned long int i = ulongval ();
|
|
2175 |
if (i != ($2))
|
|
2176 |
return 1;
|
|
2177 |
fprintf (f, "%lu", i);
|
|
2178 |
}
|
|
2179 |
/* Do not output a trailing newline, as this causes \r\n confusion
|
|
2180 |
on some platforms. */
|
|
2181 |
return ferror (f) || fclose (f) != 0;
|
|
2182 |
||
2183 |
;
|
|
2184 |
return 0;
|
|
2185 |
}
|
|
2186 |
_ACEOF
|
|
2187 |
if ac_fn_c_try_run "$LINENO"; then : |
|
2188 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
|
2189 |
else
|
|
2190 |
ac_retval=1 |
|
2191 |
fi
|
|
2192 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
2193 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
2194 |
rm -f conftest.val |
|
2195 |
||
2196 |
fi
|
|
2197 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2198 |
as_fn_set_status $ac_retval
|
|
2199 |
||
2200 |
} # ac_fn_c_compute_int |
|
2201 |
||
2202 |
# ac_fn_c_check_func LINENO FUNC VAR
|
|
2203 |
# ----------------------------------
|
|
2204 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly
|
|
2205 |
ac_fn_c_check_func ()
|
|
2206 |
{
|
|
2207 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2209 |
$as_echo_n "checking for $2... " >&6; } |
|
2210 |
if eval \${$3+:} false; then : |
|
2211 |
$as_echo_n "(cached) " >&6 |
|
2212 |
else
|
|
2213 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2214 |
/* end confdefs.h. */
|
|
2215 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
|
2216 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
2217 |
#define $2 innocuous_$2
|
|
2218 |
||
2219 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
2220 |
which can conflict with char $2 (); below.
|
|
2221 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
2222 |
<limits.h> exists even on freestanding compilers. */
|
|
2223 |
||
2224 |
#ifdef __STDC__
|
|
2225 |
# include <limits.h>
|
|
2226 |
#else
|
|
2227 |
# include <assert.h>
|
|
2228 |
#endif
|
|
2229 |
||
2230 |
#undef $2
|
|
2231 |
||
2232 |
/* Override any GCC internal prototype to avoid an error.
|
|
2233 |
Use char because int might match the return type of a GCC
|
|
2234 |
builtin and then its argument prototype would still apply. */
|
|
2235 |
#ifdef __cplusplus
|
|
2236 |
extern "C"
|
|
2237 |
#endif
|
|
2238 |
char $2 ();
|
|
2239 |
/* The GNU C library defines this for functions which it implements
|
|
2240 |
to always fail with ENOSYS. Some functions are actually named
|
|
2241 |
something starting with __ and the normal name is an alias. */
|
|
2242 |
#if defined __stub_$2 || defined __stub___$2
|
|
2243 |
choke me
|
|
2244 |
#endif
|
|
2245 |
||
2246 |
int
|
|
2247 |
main ()
|
|
2248 |
{
|
|
2249 |
return $2 ();
|
|
2250 |
;
|
|
2251 |
return 0;
|
|
2252 |
}
|
|
2253 |
_ACEOF
|
|
2254 |
if ac_fn_c_try_link "$LINENO"; then : |
|
2255 |
eval "$3=yes" |
|
2256 |
else
|
|
2257 |
eval "$3=no" |
|
2258 |
fi
|
|
2259 |
rm -f core conftest.err conftest.$ac_objext \ |
|
2260 |
conftest$ac_exeext conftest.$ac_ext |
|
2261 |
fi
|
|
2262 |
eval ac_res=\$$3 |
|
2263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2264 |
$as_echo "$ac_res" >&6; } |
|
2265 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2266 |
||
2267 |
} # ac_fn_c_check_func |
|
2268 |
cat >config.log <<_ACEOF
|
|
2269 |
This file contains any messages produced by compilers while
|
|
2270 |
running configure, to aid debugging if configure makes a mistake.
|
|
2271 |
||
2272 |
It was created by $as_me, which was
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2273 |
generated by GNU Autoconf 2.69. Invocation command line was
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2274 |
|
2275 |
$ $0 $@
|
|
2276 |
||
2277 |
_ACEOF
|
|
2278 |
exec 5>>config.log |
|
2279 |
{
|
|
2280 |
cat <<_ASUNAME
|
|
2281 |
## --------- ##
|
|
2282 |
## Platform. ##
|
|
2283 |
## --------- ##
|
|
2284 |
||
2285 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
2286 |
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
2287 |
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
2288 |
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
2289 |
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
2290 |
||
2291 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
2292 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
2293 |
||
2294 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
2295 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
2296 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
2297 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
2298 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
2299 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
2300 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
2301 |
||
2302 |
_ASUNAME
|
|
2303 |
||
2304 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2305 |
for as_dir in $PATH |
|
2306 |
do
|
|
2307 |
IFS=$as_save_IFS |
|
2308 |
test -z "$as_dir" && as_dir=. |
|
2309 |
$as_echo "PATH: $as_dir" |
|
2310 |
done
|
|
2311 |
IFS=$as_save_IFS |
|
2312 |
||
2313 |
} >&5 |
|
2314 |
||
2315 |
cat >&5 <<_ACEOF |
|
2316 |
||
2317 |
||
2318 |
## ----------- ##
|
|
2319 |
## Core tests. ##
|
|
2320 |
## ----------- ##
|
|
2321 |
||
2322 |
_ACEOF
|
|
2323 |
||
2324 |
||
2325 |
# Keep a trace of the command line.
|
|
2326 |
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
2327 |
# Strip out --silent because we don't want to record it for future runs.
|
|
2328 |
# Also quote any args containing shell meta-characters.
|
|
2329 |
# Make two passes to allow for proper duplicate-argument suppression.
|
|
2330 |
ac_configure_args= |
|
2331 |
ac_configure_args0= |
|
2332 |
ac_configure_args1= |
|
2333 |
ac_must_keep_next=false |
|
2334 |
for ac_pass in 1 2 |
|
2335 |
do
|
|
2336 |
for ac_arg
|
|
2337 |
do
|
|
2338 |
case $ac_arg in |
|
2339 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
2340 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
2341 |
| -silent | --silent | --silen | --sile | --sil) |
|
2342 |
continue ;; |
|
2343 |
*\'*) |
|
2344 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2345 |
esac
|
|
2346 |
case $ac_pass in |
|
2347 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
2348 |
2) |
|
2349 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
|
2350 |
if test $ac_must_keep_next = true; then |
|
2351 |
ac_must_keep_next=false # Got value, back to normal. |
|
2352 |
else
|
|
2353 |
case $ac_arg in |
|
2354 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
2355 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
2356 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
2357 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
2358 |
case "$ac_configure_args0 " in |
|
2359 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
2360 |
esac
|
|
2361 |
;;
|
|
2362 |
-* ) ac_must_keep_next=true ;; |
|
2363 |
esac
|
|
2364 |
fi
|
|
2365 |
as_fn_append ac_configure_args " '$ac_arg'" |
|
2366 |
;;
|
|
2367 |
esac
|
|
2368 |
done
|
|
2369 |
done
|
|
2370 |
{ ac_configure_args0=; unset ac_configure_args0;} |
|
2371 |
{ ac_configure_args1=; unset ac_configure_args1;} |
|
2372 |
||
2373 |
# When interrupted or exit'd, cleanup temporary files, and complete
|
|
2374 |
# config.log. We remove comments because anyway the quotes in there
|
|
2375 |
# would cause problems or look ugly.
|
|
2376 |
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
2377 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
2378 |
trap 'exit_status=$? |
|
2379 |
# Save into config.log some information that might help in debugging.
|
|
2380 |
{
|
|
2381 |
echo
|
|
2382 |
||
2383 |
$as_echo "## ---------------- ##
|
|
2384 |
## Cache variables. ##
|
|
2385 |
## ---------------- ##"
|
|
2386 |
echo
|
|
2387 |
# The following way of writing the cache mishandles newlines in values,
|
|
2388 |
(
|
|
2389 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
2390 |
eval ac_val=\$$ac_var
|
|
2391 |
case $ac_val in #(
|
|
2392 |
*${as_nl}*)
|
|
2393 |
case $ac_var in #(
|
|
2394 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
2395 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
2396 |
esac
|
|
2397 |
case $ac_var in #(
|
|
2398 |
_ | IFS | as_nl) ;; #(
|
|
2399 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
2400 |
*) { eval $ac_var=; unset $ac_var;} ;;
|
|
2401 |
esac ;;
|
|
2402 |
esac
|
|
2403 |
done
|
|
2404 |
(set) 2>&1 |
|
|
2405 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
2406 |
*${as_nl}ac_space=\ *)
|
|
2407 |
sed -n \
|
|
2408 |
"s/'\''/'\''\\\\'\'''\''/g; |
|
2409 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
2410 |
;; #(
|
|
2411 |
*)
|
|
2412 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
2413 |
;;
|
|
2414 |
esac |
|
|
2415 |
sort
|
|
2416 |
)
|
|
2417 |
echo
|
|
2418 |
||
2419 |
$as_echo "## ----------------- ##
|
|
2420 |
## Output variables. ##
|
|
2421 |
## ----------------- ##"
|
|
2422 |
echo
|
|
2423 |
for ac_var in $ac_subst_vars
|
|
2424 |
do
|
|
2425 |
eval ac_val=\$$ac_var
|
|
2426 |
case $ac_val in
|
|
2427 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2428 |
esac
|
|
2429 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
2430 |
done | sort
|
|
2431 |
echo
|
|
2432 |
||
2433 |
if test -n "$ac_subst_files"; then
|
|
2434 |
$as_echo "## ------------------- ##
|
|
2435 |
## File substitutions. ##
|
|
2436 |
## ------------------- ##"
|
|
2437 |
echo
|
|
2438 |
for ac_var in $ac_subst_files
|
|
2439 |
do
|
|
2440 |
eval ac_val=\$$ac_var
|
|
2441 |
case $ac_val in
|
|
2442 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2443 |
esac
|
|
2444 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
2445 |
done | sort
|
|
2446 |
echo
|
|
2447 |
fi
|
|
2448 |
||
2449 |
if test -s confdefs.h; then
|
|
2450 |
$as_echo "## ----------- ##
|
|
2451 |
## confdefs.h. ##
|
|
2452 |
## ----------- ##"
|
|
2453 |
echo
|
|
2454 |
cat confdefs.h
|
|
2455 |
echo
|
|
2456 |
fi
|
|
2457 |
test "$ac_signal" != 0 &&
|
|
2458 |
$as_echo "$as_me: caught signal $ac_signal"
|
|
2459 |
$as_echo "$as_me: exit $exit_status"
|
|
2460 |
} >&5
|
|
2461 |
rm -f core *.core core.conftest.* &&
|
|
2462 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
2463 |
exit $exit_status
|
|
2464 |
' 0 |
|
2465 |
for ac_signal in 1 2 13 15; do |
|
2466 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
2467 |
done
|
|
2468 |
ac_signal=0 |
|
2469 |
||
2470 |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
2471 |
rm -f -r conftest* confdefs.h |
|
2472 |
||
2473 |
$as_echo "/* confdefs.h */" > confdefs.h |
|
2474 |
||
2475 |
# Predefined preprocessor variables.
|
|
2476 |
||
2477 |
cat >>confdefs.h <<_ACEOF
|
|
2478 |
#define PACKAGE_NAME "$PACKAGE_NAME"
|
|
2479 |
_ACEOF
|
|
2480 |
||
2481 |
cat >>confdefs.h <<_ACEOF
|
|
2482 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
2483 |
_ACEOF
|
|
2484 |
||
2485 |
cat >>confdefs.h <<_ACEOF
|
|
2486 |
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
2487 |
_ACEOF
|
|
2488 |
||
2489 |
cat >>confdefs.h <<_ACEOF
|
|
2490 |
#define PACKAGE_STRING "$PACKAGE_STRING"
|
|
2491 |
_ACEOF
|
|
2492 |
||
2493 |
cat >>confdefs.h <<_ACEOF
|
|
2494 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
2495 |
_ACEOF
|
|
2496 |
||
2497 |
cat >>confdefs.h <<_ACEOF
|
|
2498 |
#define PACKAGE_URL "$PACKAGE_URL"
|
|
2499 |
_ACEOF
|
|
2500 |
||
2501 |
||
2502 |
# Let the site file select an alternate cache file if it wants to.
|
|
2503 |
# Prefer an explicitly selected file to automatically selected ones.
|
|
2504 |
ac_site_file1=NONE |
|
2505 |
ac_site_file2=NONE |
|
2506 |
if test -n "$CONFIG_SITE"; then |
|
2507 |
# We do not want a PATH search for config.site.
|
|
2508 |
case $CONFIG_SITE in #(( |
|
2509 |
-*) ac_site_file1=./$CONFIG_SITE;; |
|
2510 |
*/*) ac_site_file1=$CONFIG_SITE;; |
|
2511 |
*) ac_site_file1=./$CONFIG_SITE;; |
|
2512 |
esac
|
|
2513 |
elif test "x$prefix" != xNONE; then |
|
2514 |
ac_site_file1=$prefix/share/config.site |
|
2515 |
ac_site_file2=$prefix/etc/config.site |
|
2516 |
else
|
|
2517 |
ac_site_file1=$ac_default_prefix/share/config.site |
|
2518 |
ac_site_file2=$ac_default_prefix/etc/config.site |
|
2519 |
fi
|
|
2520 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
2521 |
do
|
|
2522 |
test "x$ac_site_file" = xNONE && continue |
|
2523 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|
2524 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|
2525 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
2526 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
2527 |
. "$ac_site_file" \ |
|
2528 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2529 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2530 |
as_fn_error $? "failed to load site script $ac_site_file |
|
2531 |
See \`config.log' for more details" "$LINENO" 5; } |
|
2532 |
fi
|
|
2533 |
done
|
|
2534 |
||
2535 |
if test -r "$cache_file"; then |
|
2536 |
# Some versions of bash will fail to source /dev/null (special files
|
|
2537 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
|
2538 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|
2539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|
2540 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
|
2541 |
case $cache_file in |
|
2542 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
2543 |
*) . "./$cache_file";; |
|
2544 |
esac
|
|
2545 |
fi
|
|
2546 |
else
|
|
2547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
2548 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
|
2549 |
>$cache_file
|
|
2550 |
fi
|
|
2551 |
||
2552 |
# Check that the precious variables saved in the cache have kept the same
|
|
2553 |
# value.
|
|
2554 |
ac_cache_corrupted=false |
|
2555 |
for ac_var in $ac_precious_vars; do |
|
2556 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
2557 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
2558 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
2559 |
eval ac_new_val=\$ac_env_${ac_var}_value |
|
2560 |
case $ac_old_set,$ac_new_set in |
|
2561 |
set,)
|
|
2562 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
2563 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
2564 |
ac_cache_corrupted=: ;; |
|
2565 |
,set)
|
|
2566 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
2567 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
2568 |
ac_cache_corrupted=: ;; |
|
2569 |
,);; |
|
2570 |
*)
|
|
2571 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
2572 |
# differences in whitespace do not lead to failure.
|
|
2573 |
ac_old_val_w=`echo x $ac_old_val` |
|
2574 |
ac_new_val_w=`echo x $ac_new_val` |
|
2575 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
2576 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
2577 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
2578 |
ac_cache_corrupted=: |
|
2579 |
else
|
|
2580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
2581 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
2582 |
eval $ac_var=\$ac_old_val |
|
2583 |
fi
|
|
2584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
2585 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
2586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
2587 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
2588 |
fi;; |
|
2589 |
esac
|
|
2590 |
# Pass precious variables to config.status.
|
|
2591 |
if test "$ac_new_set" = set; then |
|
2592 |
case $ac_new_val in |
|
2593 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2594 |
*) ac_arg=$ac_var=$ac_new_val ;; |
|
2595 |
esac
|
|
2596 |
case " $ac_configure_args " in |
|
2597 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
2598 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
2599 |
esac
|
|
2600 |
fi
|
|
2601 |
done
|
|
2602 |
if $ac_cache_corrupted; then |
|
2603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2604 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2605 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
2606 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
2607 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|
2608 |
fi
|
|
2609 |
## -------------------- ##
|
|
2610 |
## Main body of script. ##
|
|
2611 |
## -------------------- ##
|
|
2612 |
||
2613 |
ac_ext=c |
|
2614 |
ac_cpp='$CPP $CPPFLAGS' |
|
2615 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2616 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2617 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2618 |
||
2619 |
||
2620 |
||
2621 |
ac_ext=c |
|
2622 |
ac_cpp='$CPP $CPPFLAGS' |
|
2623 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2624 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2625 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2626 |
||
2627 |
||
2628 |
||
2629 |
CFLAGS="${CFLAGS:=}" |
|
2630 |
CPPFLAGS="${CPPFLAGS:=}" |
|
2631 |
CXXFLAGS="${CXXFLAGS:=}" |
|
2632 |
LDFLAGS="${LDFLAGS:=}" |
|
2633 |
||
2634 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2635 |
NTS_DEVS='opvp oprp' |
2636 |
NTS_DEVS="$NTS_DEVS uniprint" |
|
2637 |
NTS_DEVS="$NTS_DEVS x11 x11alpha" |
|
2638 |
NTS_DEVS="$NTS_DEVS pcl3 hpdjplus hpdjportable hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj1120c" |
|
2639 |
||
2640 |
# We use this to store a list of devices we have excluded
|
|
2641 |
# and emit a warning on completion.
|
|
2642 |
NTS_EXCLUDES="" |
|
2643 |
||
2644 |
||
2645 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2646 |
|
2647 |
||
2648 |
||
2649 |
||
2650 |
||
2651 |
save_cflags=$CFLAGS |
|
2652 |
ac_ext=c |
|
2653 |
ac_cpp='$CPP $CPPFLAGS' |
|
2654 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2655 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2656 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2657 |
if test -n "$ac_tool_prefix"; then |
|
2658 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
2659 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2661 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2662 |
if ${ac_cv_prog_CC+:} false; then : |
|
2663 |
$as_echo_n "(cached) " >&6 |
|
2664 |
else
|
|
2665 |
if test -n "$CC"; then |
|
2666 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2667 |
else
|
|
2668 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2669 |
for as_dir in $PATH |
|
2670 |
do
|
|
2671 |
IFS=$as_save_IFS |
|
2672 |
test -z "$as_dir" && as_dir=. |
|
2673 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2674 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2675 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2676 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2677 |
break 2 |
|
2678 |
fi
|
|
2679 |
done
|
|
2680 |
done
|
|
2681 |
IFS=$as_save_IFS |
|
2682 |
||
2683 |
fi
|
|
2684 |
fi
|
|
2685 |
CC=$ac_cv_prog_CC |
|
2686 |
if test -n "$CC"; then |
|
2687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2688 |
$as_echo "$CC" >&6; } |
|
2689 |
else
|
|
2690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2691 |
$as_echo "no" >&6; } |
|
2692 |
fi
|
|
2693 |
||
2694 |
||
2695 |
fi
|
|
2696 |
if test -z "$ac_cv_prog_CC"; then |
|
2697 |
ac_ct_CC=$CC |
|
2698 |
# Extract the first word of "gcc", so it can be a program name with args.
|
|
2699 |
set dummy gcc; ac_word=$2 |
|
2700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2701 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2702 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
2703 |
$as_echo_n "(cached) " >&6 |
|
2704 |
else
|
|
2705 |
if test -n "$ac_ct_CC"; then |
|
2706 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2707 |
else
|
|
2708 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2709 |
for as_dir in $PATH |
|
2710 |
do
|
|
2711 |
IFS=$as_save_IFS |
|
2712 |
test -z "$as_dir" && as_dir=. |
|
2713 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2714 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2715 |
ac_cv_prog_ac_ct_CC="gcc" |
2716 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2717 |
break 2 |
|
2718 |
fi
|
|
2719 |
done
|
|
2720 |
done
|
|
2721 |
IFS=$as_save_IFS |
|
2722 |
||
2723 |
fi
|
|
2724 |
fi
|
|
2725 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2726 |
if test -n "$ac_ct_CC"; then |
|
2727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
2728 |
$as_echo "$ac_ct_CC" >&6; } |
|
2729 |
else
|
|
2730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2731 |
$as_echo "no" >&6; } |
|
2732 |
fi
|
|
2733 |
||
2734 |
if test "x$ac_ct_CC" = x; then |
|
2735 |
CC="" |
|
2736 |
else
|
|
2737 |
case $cross_compiling:$ac_tool_warned in |
|
2738 |
yes:)
|
|
2739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2740 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2741 |
ac_tool_warned=yes ;; |
|
2742 |
esac
|
|
2743 |
CC=$ac_ct_CC |
|
2744 |
fi
|
|
2745 |
else
|
|
2746 |
CC="$ac_cv_prog_CC" |
|
2747 |
fi
|
|
2748 |
||
2749 |
if test -z "$CC"; then |
|
2750 |
if test -n "$ac_tool_prefix"; then |
|
2751 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
2752 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2753 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2754 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2755 |
if ${ac_cv_prog_CC+:} false; then : |
|
2756 |
$as_echo_n "(cached) " >&6 |
|
2757 |
else
|
|
2758 |
if test -n "$CC"; then |
|
2759 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2760 |
else
|
|
2761 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2762 |
for as_dir in $PATH |
|
2763 |
do
|
|
2764 |
IFS=$as_save_IFS |
|
2765 |
test -z "$as_dir" && as_dir=. |
|
2766 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2767 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2768 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2769 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2770 |
break 2 |
|
2771 |
fi
|
|
2772 |
done
|
|
2773 |
done
|
|
2774 |
IFS=$as_save_IFS |
|
2775 |
||
2776 |
fi
|
|
2777 |
fi
|
|
2778 |
CC=$ac_cv_prog_CC |
|
2779 |
if test -n "$CC"; then |
|
2780 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2781 |
$as_echo "$CC" >&6; } |
|
2782 |
else
|
|
2783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2784 |
$as_echo "no" >&6; } |
|
2785 |
fi
|
|
2786 |
||
2787 |
||
2788 |
fi
|
|
2789 |
fi
|
|
2790 |
if test -z "$CC"; then |
|
2791 |
# Extract the first word of "cc", so it can be a program name with args.
|
|
2792 |
set dummy cc; ac_word=$2 |
|
2793 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2794 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2795 |
if ${ac_cv_prog_CC+:} false; then : |
|
2796 |
$as_echo_n "(cached) " >&6 |
|
2797 |
else
|
|
2798 |
if test -n "$CC"; then |
|
2799 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2800 |
else
|
|
2801 |
ac_prog_rejected=no |
|
2802 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2803 |
for as_dir in $PATH |
|
2804 |
do
|
|
2805 |
IFS=$as_save_IFS |
|
2806 |
test -z "$as_dir" && as_dir=. |
|
2807 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2808 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2809 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2810 |
ac_prog_rejected=yes |
|
2811 |
continue
|
|
2812 |
fi
|
|
2813 |
ac_cv_prog_CC="cc" |
|
2814 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2815 |
break 2 |
|
2816 |
fi
|
|
2817 |
done
|
|
2818 |
done
|
|
2819 |
IFS=$as_save_IFS |
|
2820 |
||
2821 |
if test $ac_prog_rejected = yes; then |
|
2822 |
# We found a bogon in the path, so make sure we never use it.
|
|
2823 |
set dummy $ac_cv_prog_CC |
|
2824 |
shift
|
|
2825 |
if test $# != 0; then |
|
2826 |
# We chose a different compiler from the bogus one.
|
|
2827 |
# However, it has the same basename, so the bogon will be chosen
|
|
2828 |
# first if we set CC to just the basename; use the full file name.
|
|
2829 |
shift
|
|
2830 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2831 |
fi
|
|
2832 |
fi
|
|
2833 |
fi
|
|
2834 |
fi
|
|
2835 |
CC=$ac_cv_prog_CC |
|
2836 |
if test -n "$CC"; then |
|
2837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2838 |
$as_echo "$CC" >&6; } |
|
2839 |
else
|
|
2840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2841 |
$as_echo "no" >&6; } |
|
2842 |
fi
|
|
2843 |
||
2844 |
||
2845 |
fi
|
|
2846 |
if test -z "$CC"; then |
|
2847 |
if test -n "$ac_tool_prefix"; then |
|
2848 |
for ac_prog in cl.exe
|
|
2849 |
do
|
|
2850 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
2851 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2853 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2854 |
if ${ac_cv_prog_CC+:} false; then : |
|
2855 |
$as_echo_n "(cached) " >&6 |
|
2856 |
else
|
|
2857 |
if test -n "$CC"; then |
|
2858 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2859 |
else
|
|
2860 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2861 |
for as_dir in $PATH |
|
2862 |
do
|
|
2863 |
IFS=$as_save_IFS |
|
2864 |
test -z "$as_dir" && as_dir=. |
|
2865 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2866 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2867 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2868 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2869 |
break 2 |
|
2870 |
fi
|
|
2871 |
done
|
|
2872 |
done
|
|
2873 |
IFS=$as_save_IFS |
|
2874 |
||
2875 |
fi
|
|
2876 |
fi
|
|
2877 |
CC=$ac_cv_prog_CC |
|
2878 |
if test -n "$CC"; then |
|
2879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2880 |
$as_echo "$CC" >&6; } |
|
2881 |
else
|
|
2882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2883 |
$as_echo "no" >&6; } |
|
2884 |
fi
|
|
2885 |
||
2886 |
||
2887 |
test -n "$CC" && break |
|
2888 |
done
|
|
2889 |
fi
|
|
2890 |
if test -z "$CC"; then |
|
2891 |
ac_ct_CC=$CC |
|
2892 |
for ac_prog in cl.exe
|
|
2893 |
do
|
|
2894 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
2895 |
set dummy $ac_prog; ac_word=$2 |
|
2896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2897 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2898 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
2899 |
$as_echo_n "(cached) " >&6 |
|
2900 |
else
|
|
2901 |
if test -n "$ac_ct_CC"; then |
|
2902 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2903 |
else
|
|
2904 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2905 |
for as_dir in $PATH |
|
2906 |
do
|
|
2907 |
IFS=$as_save_IFS |
|
2908 |
test -z "$as_dir" && as_dir=. |
|
2909 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
2910 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
2911 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2912 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2913 |
break 2 |
|
2914 |
fi
|
|
2915 |
done
|
|
2916 |
done
|
|
2917 |
IFS=$as_save_IFS |
|
2918 |
||
2919 |
fi
|
|
2920 |
fi
|
|
2921 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2922 |
if test -n "$ac_ct_CC"; then |
|
2923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
2924 |
$as_echo "$ac_ct_CC" >&6; } |
|
2925 |
else
|
|
2926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2927 |
$as_echo "no" >&6; } |
|
2928 |
fi
|
|
2929 |
||
2930 |
||
2931 |
test -n "$ac_ct_CC" && break |
|
2932 |
done
|
|
2933 |
||
2934 |
if test "x$ac_ct_CC" = x; then |
|
2935 |
CC="" |
|
2936 |
else
|
|
2937 |
case $cross_compiling:$ac_tool_warned in |
|
2938 |
yes:)
|
|
2939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2940 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2941 |
ac_tool_warned=yes ;; |
|
2942 |
esac
|
|
2943 |
CC=$ac_ct_CC |
|
2944 |
fi
|
|
2945 |
fi
|
|
2946 |
||
2947 |
fi
|
|
2948 |
||
2949 |
||
2950 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2951 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2952 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
|
2953 |
See \`config.log' for more details" "$LINENO" 5; } |
|
2954 |
||
2955 |
# Provide some information about the compiler.
|
|
2956 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
2957 |
set X $ac_compile |
|
2958 |
ac_compiler=$2 |
|
2959 |
for ac_option in --version -v -V -qversion; do |
|
2960 |
{ { ac_try="$ac_compiler $ac_option >&5" |
|
2961 |
case "(($ac_try" in |
|
2962 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2963 |
*) ac_try_echo=$ac_try;; |
|
2964 |
esac
|
|
2965 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
2966 |
$as_echo "$ac_try_echo"; } >&5 |
|
2967 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
2968 |
ac_status=$? |
|
2969 |
if test -s conftest.err; then |
|
2970 |
sed '10a\
|
|
2971 |
... rest of stderr output deleted ...
|
|
2972 |
10q' conftest.err >conftest.er1
|
|
2973 |
cat conftest.er1 >&5 |
|
2974 |
fi
|
|
2975 |
rm -f conftest.er1 conftest.err |
|
2976 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
2977 |
test $ac_status = 0; } |
|
2978 |
done
|
|
2979 |
||
2980 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2981 |
/* end confdefs.h. */
|
|
2982 |
||
2983 |
int
|
|
2984 |
main ()
|
|
2985 |
{
|
|
2986 |
||
2987 |
;
|
|
2988 |
return 0;
|
|
2989 |
}
|
|
2990 |
_ACEOF
|
|
2991 |
ac_clean_files_save=$ac_clean_files |
|
2992 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
2993 |
# Try to create an executable without -o first, disregard a.out.
|
|
2994 |
# It will help us diagnose broken compilers, and finding out an intuition
|
|
2995 |
# of exeext.
|
|
2996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
2997 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
|
2998 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
2999 |
||
3000 |
# The possible output files:
|
|
3001 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
3002 |
||
3003 |
ac_rmfiles= |
|
3004 |
for ac_file in $ac_files |
|
3005 |
do
|
|
3006 |
case $ac_file in |
|
3007 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3008 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
3009 |
esac
|
|
3010 |
done
|
|
3011 |
rm -f $ac_rmfiles
|
|
3012 |
||
3013 |
if { { ac_try="$ac_link_default" |
|
3014 |
case "(($ac_try" in |
|
3015 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3016 |
*) ac_try_echo=$ac_try;; |
|
3017 |
esac
|
|
3018 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3019 |
$as_echo "$ac_try_echo"; } >&5 |
|
3020 |
(eval "$ac_link_default") 2>&5 |
|
3021 |
ac_status=$? |
|
3022 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3023 |
test $ac_status = 0; }; then : |
|
3024 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
3025 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
3026 |
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
3027 |
# so that the user can short-circuit this test for compilers unknown to
|
|
3028 |
# Autoconf.
|
|
3029 |
for ac_file in $ac_files '' |
|
3030 |
do
|
|
3031 |
test -f "$ac_file" || continue |
|
3032 |
case $ac_file in |
|
3033 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
3034 |
;;
|
|
3035 |
[ab].out ) |
|
3036 |
# We found the default executable, but exeext='' is most
|
|
3037 |
# certainly right.
|
|
3038 |
break;;
|
|
3039 |
*.* )
|
|
3040 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
3041 |
then :; else |
|
3042 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3043 |
fi
|
|
3044 |
# We set ac_cv_exeext here because the later test for it is not
|
|
3045 |
# safe: cross compilers may not add the suffix if given an `-o'
|
|
3046 |
# argument, so we may need to know it at that point already.
|
|
3047 |
# Even if this section looks crufty: it has the advantage of
|
|
3048 |
# actually working.
|
|
3049 |
break;;
|
|
3050 |
* )
|
|
3051 |
break;;
|
|
3052 |
esac
|
|
3053 |
done
|
|
3054 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
3055 |
||
3056 |
else
|
|
3057 |
ac_file='' |
|
3058 |
fi
|
|
3059 |
if test -z "$ac_file"; then : |
|
3060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3061 |
$as_echo "no" >&6; } |
|
3062 |
$as_echo "$as_me: failed program was:" >&5 |
|
3063 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3064 |
||
3065 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3066 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3067 |
as_fn_error 77 "C compiler cannot create executables |
|
3068 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3069 |
else
|
|
3070 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
3071 |
$as_echo "yes" >&6; } |
|
3072 |
fi
|
|
3073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
3074 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
|
3075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
3076 |
$as_echo "$ac_file" >&6; } |
|
3077 |
ac_exeext=$ac_cv_exeext |
|
3078 |
||
3079 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
|
3080 |
ac_clean_files=$ac_clean_files_save |
|
3081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
3082 |
$as_echo_n "checking for suffix of executables... " >&6; } |
|
3083 |
if { { ac_try="$ac_link" |
|
3084 |
case "(($ac_try" in |
|
3085 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3086 |
*) ac_try_echo=$ac_try;; |
|
3087 |
esac
|
|
3088 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3089 |
$as_echo "$ac_try_echo"; } >&5 |
|
3090 |
(eval "$ac_link") 2>&5 |
|
3091 |
ac_status=$? |
|
3092 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3093 |
test $ac_status = 0; }; then : |
|
3094 |
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
3095 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
3096 |
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
3097 |
# `rm'.
|
|
3098 |
for ac_file in conftest.exe conftest conftest.*; do |
|
3099 |
test -f "$ac_file" || continue |
|
3100 |
case $ac_file in |
|
3101 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3102 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3103 |
break;;
|
|
3104 |
* ) break;; |
|
3105 |
esac
|
|
3106 |
done
|
|
3107 |
else
|
|
3108 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3109 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3110 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|
3111 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3112 |
fi
|
|
3113 |
rm -f conftest conftest$ac_cv_exeext
|
|
3114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|
3115 |
$as_echo "$ac_cv_exeext" >&6; } |
|
3116 |
||
3117 |
rm -f conftest.$ac_ext
|
|
3118 |
EXEEXT=$ac_cv_exeext |
|
3119 |
ac_exeext=$EXEEXT |
|
3120 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3121 |
/* end confdefs.h. */
|
|
3122 |
#include <stdio.h>
|
|
3123 |
int
|
|
3124 |
main ()
|
|
3125 |
{
|
|
3126 |
FILE *f = fopen ("conftest.out", "w");
|
|
3127 |
return ferror (f) || fclose (f) != 0;
|
|
3128 |
||
3129 |
;
|
|
3130 |
return 0;
|
|
3131 |
}
|
|
3132 |
_ACEOF
|
|
3133 |
ac_clean_files="$ac_clean_files conftest.out" |
|
3134 |
# Check that the compiler produces executables we can run. If not, either
|
|
3135 |
# the compiler is broken, or we cross compile.
|
|
3136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
3137 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3138 |
if test "$cross_compiling" != yes; then |
|
3139 |
{ { ac_try="$ac_link" |
|
3140 |
case "(($ac_try" in |
|
3141 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3142 |
*) ac_try_echo=$ac_try;; |
|
3143 |
esac
|
|
3144 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3145 |
$as_echo "$ac_try_echo"; } >&5 |
|
3146 |
(eval "$ac_link") 2>&5 |
|
3147 |
ac_status=$? |
|
3148 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3149 |
test $ac_status = 0; } |
|
3150 |
if { ac_try='./conftest$ac_cv_exeext' |
|
3151 |
{ { case "(($ac_try" in |
|
3152 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3153 |
*) ac_try_echo=$ac_try;; |
|
3154 |
esac
|
|
3155 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3156 |
$as_echo "$ac_try_echo"; } >&5 |
|
3157 |
(eval "$ac_try") 2>&5 |
|
3158 |
ac_status=$? |
|
3159 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3160 |
test $ac_status = 0; }; }; then |
|
3161 |
cross_compiling=no |
|
3162 |
else
|
|
3163 |
if test "$cross_compiling" = maybe; then |
|
3164 |
cross_compiling=yes |
|
3165 |
else
|
|
3166 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3167 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3168 |
as_fn_error $? "cannot run C compiled programs. |
|
3169 |
If you meant to cross compile, use \`--host'.
|
|
3170 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3171 |
fi
|
|
3172 |
fi
|
|
3173 |
fi
|
|
3174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
3175 |
$as_echo "$cross_compiling" >&6; } |
|
3176 |
||
3177 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
3178 |
ac_clean_files=$ac_clean_files_save |
|
3179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
3180 |
$as_echo_n "checking for suffix of object files... " >&6; } |
|
3181 |
if ${ac_cv_objext+:} false; then : |
|
3182 |
$as_echo_n "(cached) " >&6 |
|
3183 |
else
|
|
3184 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3185 |
/* end confdefs.h. */
|
|
3186 |
||
3187 |
int
|
|
3188 |
main ()
|
|
3189 |
{
|
|
3190 |
||
3191 |
;
|
|
3192 |
return 0;
|
|
3193 |
}
|
|
3194 |
_ACEOF
|
|
3195 |
rm -f conftest.o conftest.obj |
|
3196 |
if { { ac_try="$ac_compile" |
|
3197 |
case "(($ac_try" in |
|
3198 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3199 |
*) ac_try_echo=$ac_try;; |
|
3200 |
esac
|
|
3201 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3202 |
$as_echo "$ac_try_echo"; } >&5 |
|
3203 |
(eval "$ac_compile") 2>&5 |
|
3204 |
ac_status=$? |
|
3205 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3206 |
test $ac_status = 0; }; then : |
|
3207 |
for ac_file in conftest.o conftest.obj conftest.*; do |
|
3208 |
test -f "$ac_file" || continue; |
|
3209 |
case $ac_file in |
|
3210 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3211 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3212 |
break;;
|
|
3213 |
esac
|
|
3214 |
done
|
|
3215 |
else
|
|
3216 |
$as_echo "$as_me: failed program was:" >&5 |
|
3217 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3218 |
||
3219 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3220 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3221 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
|
3222 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3223 |
fi
|
|
3224 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3225 |
fi
|
|
3226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
3227 |
$as_echo "$ac_cv_objext" >&6; } |
|
3228 |
OBJEXT=$ac_cv_objext |
|
3229 |
ac_objext=$OBJEXT |
|
3230 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|
3231 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3232 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
|
3233 |
$as_echo_n "(cached) " >&6 |
|
3234 |
else
|
|
3235 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3236 |
/* end confdefs.h. */
|
|
3237 |
||
3238 |
int
|
|
3239 |
main ()
|
|
3240 |
{
|
|
3241 |
#ifndef __GNUC__
|
|
3242 |
choke me
|
|
3243 |
#endif
|
|
3244 |
||
3245 |
;
|
|
3246 |
return 0;
|
|
3247 |
}
|
|
3248 |
_ACEOF
|
|
3249 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3250 |
ac_compiler_gnu=yes |
|
3251 |
else
|
|
3252 |
ac_compiler_gnu=no |
|
3253 |
fi
|
|
3254 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3255 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3256 |
||
3257 |
fi
|
|
3258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
3259 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3260 |
if test $ac_compiler_gnu = yes; then |
|
3261 |
GCC=yes |
|
3262 |
else
|
|
3263 |
GCC= |
|
3264 |
fi
|
|
3265 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3266 |
ac_save_CFLAGS=$CFLAGS |
|
3267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
3268 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3269 |
if ${ac_cv_prog_cc_g+:} false; then : |
|
3270 |
$as_echo_n "(cached) " >&6 |
|
3271 |
else
|
|
3272 |
ac_save_c_werror_flag=$ac_c_werror_flag |
|
3273 |
ac_c_werror_flag=yes |
|
3274 |
ac_cv_prog_cc_g=no |
|
3275 |
CFLAGS="-g" |
|
3276 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3277 |
/* end confdefs.h. */
|
|
3278 |
||
3279 |
int
|
|
3280 |
main ()
|
|
3281 |
{
|
|
3282 |
||
3283 |
;
|
|
3284 |
return 0;
|
|
3285 |
}
|
|
3286 |
_ACEOF
|
|
3287 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3288 |
ac_cv_prog_cc_g=yes |
|
3289 |
else
|
|
3290 |
CFLAGS="" |
|
3291 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3292 |
/* end confdefs.h. */
|
|
3293 |
||
3294 |
int
|
|
3295 |
main ()
|
|
3296 |
{
|
|
3297 |
||
3298 |
;
|
|
3299 |
return 0;
|
|
3300 |
}
|
|
3301 |
_ACEOF
|
|
3302 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3303 |
||
3304 |
else
|
|
3305 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3306 |
CFLAGS="-g" |
|
3307 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3308 |
/* end confdefs.h. */
|
|
3309 |
||
3310 |
int
|
|
3311 |
main ()
|
|
3312 |
{
|
|
3313 |
||
3314 |
;
|
|
3315 |
return 0;
|
|
3316 |
}
|
|
3317 |
_ACEOF
|
|
3318 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3319 |
ac_cv_prog_cc_g=yes |
|
3320 |
fi
|
|
3321 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3322 |
fi
|
|
3323 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3324 |
fi
|
|
3325 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3326 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3327 |
fi
|
|
3328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
3329 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3330 |
if test "$ac_test_CFLAGS" = set; then |
|
3331 |
CFLAGS=$ac_save_CFLAGS |
|
3332 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3333 |
if test "$GCC" = yes; then |
|
3334 |
CFLAGS="-g -O2" |
|
3335 |
else
|
|
3336 |
CFLAGS="-g" |
|
3337 |
fi
|
|
3338 |
else
|
|
3339 |
if test "$GCC" = yes; then |
|
3340 |
CFLAGS="-O2" |
|
3341 |
else
|
|
3342 |
CFLAGS= |
|
3343 |
fi
|
|
3344 |
fi
|
|
3345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|
3346 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3347 |
if ${ac_cv_prog_cc_c89+:} false; then : |
|
3348 |
$as_echo_n "(cached) " >&6 |
|
3349 |
else
|
|
3350 |
ac_cv_prog_cc_c89=no |
|
3351 |
ac_save_CC=$CC |
|
3352 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3353 |
/* end confdefs.h. */
|
|
3354 |
#include <stdarg.h>
|
|
3355 |
#include <stdio.h>
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3356 |
struct stat;
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3357 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
3358 |
struct buf { int x; };
|
|
3359 |
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
3360 |
static char *e (p, i)
|
|
3361 |
char **p;
|
|
3362 |
int i;
|
|
3363 |
{
|
|
3364 |
return p[i];
|
|
3365 |
}
|
|
3366 |
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
3367 |
{
|
|
3368 |
char *s;
|
|
3369 |
va_list v;
|
|
3370 |
va_start (v,p);
|
|
3371 |
s = g (p, va_arg (v,int));
|
|
3372 |
va_end (v);
|
|
3373 |
return s;
|
|
3374 |
}
|
|
3375 |
||
3376 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
3377 |
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
3378 |
These don't provoke an error unfortunately, instead are silently treated
|
|
3379 |
as 'x'. The following induces an error, until -std is added to get
|
|
3380 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
3381 |
array size at least. It's necessary to write '\x00'==0 to get something
|
|
3382 |
that's true only with -std. */
|
|
3383 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
3384 |
||
3385 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
3386 |
inside strings and character constants. */
|
|
3387 |
#define FOO(x) 'x'
|
|
3388 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
3389 |
||
3390 |
int test (int i, double x);
|
|
3391 |
struct s1 {int (*f) (int a);};
|
|
3392 |
struct s2 {int (*f) (double a);};
|
|
3393 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
3394 |
int argc;
|
|
3395 |
char **argv;
|
|
3396 |
int
|
|
3397 |
main ()
|
|
3398 |
{
|
|
3399 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
3400 |
;
|
|
3401 |
return 0;
|
|
3402 |
}
|
|
3403 |
_ACEOF
|
|
3404 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3405 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3406 |
do
|
|
3407 |
CC="$ac_save_CC $ac_arg" |
|
3408 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3409 |
ac_cv_prog_cc_c89=$ac_arg |
|
3410 |
fi
|
|
3411 |
rm -f core conftest.err conftest.$ac_objext
|
|
3412 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3413 |
done
|
|
3414 |
rm -f conftest.$ac_ext
|
|
3415 |
CC=$ac_save_CC |
|
3416 |
||
3417 |
fi
|
|
3418 |
# AC_CACHE_VAL
|
|
3419 |
case "x$ac_cv_prog_cc_c89" in |
|
3420 |
x)
|
|
3421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
3422 |
$as_echo "none needed" >&6; } ;; |
|
3423 |
xno)
|
|
3424 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
3425 |
$as_echo "unsupported" >&6; } ;; |
|
3426 |
*)
|
|
3427 |
CC="$CC $ac_cv_prog_cc_c89" |
|
3428 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
3429 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3430 |
esac
|
|
3431 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
|
3432 |
||
3433 |
fi
|
|
3434 |
||
3435 |
ac_ext=c |
|
3436 |
ac_cpp='$CPP $CPPFLAGS' |
|
3437 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3438 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3439 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3440 |
||
3441 |
ac_ext=c |
|
3442 |
ac_cpp='$CPP $CPPFLAGS' |
|
3443 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3444 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3445 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
3447 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
3448 |
# On Suns, sometimes $CPP names a directory.
|
|
3449 |
if test -n "$CPP" && test -d "$CPP"; then |
|
3450 |
CPP= |
|
3451 |
fi
|
|
3452 |
if test -z "$CPP"; then |
|
3453 |
if ${ac_cv_prog_CPP+:} false; then : |
|
3454 |
$as_echo_n "(cached) " >&6 |
|
3455 |
else
|
|
3456 |
# Double quotes because CPP needs to be expanded
|
|
3457 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
3458 |
do
|
|
3459 |
ac_preproc_ok=false |
|
3460 |
for ac_c_preproc_warn_flag in '' yes |
|
3461 |
do
|
|
3462 |
# Use a header file that comes with gcc, so configuring glibc
|
|
3463 |
# with a fresh cross-compiler works.
|
|
3464 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3465 |
# <limits.h> exists even on freestanding compilers.
|
|
3466 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
3467 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
3468 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3469 |
/* end confdefs.h. */
|
|
3470 |
#ifdef __STDC__
|
|
3471 |
# include <limits.h>
|
|
3472 |
#else
|
|
3473 |
# include <assert.h>
|
|
3474 |
#endif
|
|
3475 |
Syntax error
|
|
3476 |
_ACEOF
|
|
3477 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
3478 |
||
3479 |
else
|
|
3480 |
# Broken: fails on valid input.
|
|
3481 |
continue
|
|
3482 |
fi
|
|
3483 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3484 |
||
3485 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
3486 |
# can be detected and how.
|
|
3487 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3488 |
/* end confdefs.h. */
|
|
3489 |
#include <ac_nonexistent.h>
|
|
3490 |
_ACEOF
|
|
3491 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
3492 |
# Broken: success on invalid input.
|
|
3493 |
continue
|
|
3494 |
else
|
|
3495 |
# Passes both tests.
|
|
3496 |
ac_preproc_ok=: |
|
3497 |
break
|
|
3498 |
fi
|
|
3499 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3500 |
||
3501 |
done
|
|
3502 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3503 |
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
3504 |
if $ac_preproc_ok; then : |
|
3505 |
break
|
|
3506 |
fi
|
|
3507 |
||
3508 |
done
|
|
3509 |
ac_cv_prog_CPP=$CPP |
|
3510 |
||
3511 |
fi
|
|
3512 |
CPP=$ac_cv_prog_CPP |
|
3513 |
else
|
|
3514 |
ac_cv_prog_CPP=$CPP |
|
3515 |
fi
|
|
3516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
3517 |
$as_echo "$CPP" >&6; } |
|
3518 |
ac_preproc_ok=false |
|
3519 |
for ac_c_preproc_warn_flag in '' yes |
|
3520 |
do
|
|
3521 |
# Use a header file that comes with gcc, so configuring glibc
|
|
3522 |
# with a fresh cross-compiler works.
|
|
3523 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3524 |
# <limits.h> exists even on freestanding compilers.
|
|
3525 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
3526 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
3527 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3528 |
/* end confdefs.h. */
|
|
3529 |
#ifdef __STDC__
|
|
3530 |
# include <limits.h>
|
|
3531 |
#else
|
|
3532 |
# include <assert.h>
|
|
3533 |
#endif
|
|
3534 |
Syntax error
|
|
3535 |
_ACEOF
|
|
3536 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
3537 |
||
3538 |
else
|
|
3539 |
# Broken: fails on valid input.
|
|
3540 |
continue
|
|
3541 |
fi
|
|
3542 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3543 |
||
3544 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
3545 |
# can be detected and how.
|
|
3546 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3547 |
/* end confdefs.h. */
|
|
3548 |
#include <ac_nonexistent.h>
|
|
3549 |
_ACEOF
|
|
3550 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
3551 |
# Broken: success on invalid input.
|
|
3552 |
continue
|
|
3553 |
else
|
|
3554 |
# Passes both tests.
|
|
3555 |
ac_preproc_ok=: |
|
3556 |
break
|
|
3557 |
fi
|
|
3558 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3559 |
||
3560 |
done
|
|
3561 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3562 |
rm -f conftest.i conftest.err conftest.$ac_ext
|
|
3563 |
if $ac_preproc_ok; then : |
|
3564 |
||
3565 |
else
|
|
3566 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3567 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3568 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
3569 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3570 |
fi
|
|
3571 |
||
3572 |
ac_ext=c |
|
3573 |
ac_cpp='$CPP $CPPFLAGS' |
|
3574 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3575 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3576 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3577 |
||
3578 |
CFLAGS=$save_cflags |
|
3579 |
||
3580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
|
3581 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
3582 |
if ${ac_cv_path_SED+:} false; then : |
|
3583 |
$as_echo_n "(cached) " >&6 |
|
3584 |
else
|
|
3585 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
3586 |
for ac_i in 1 2 3 4 5 6 7; do |
|
3587 |
ac_script="$ac_script$as_nl$ac_script" |
|
3588 |
done
|
|
3589 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
3590 |
{ ac_script=; unset ac_script;} |
|
3591 |
if test -z "$SED"; then |
|
3592 |
ac_path_SED_found=false |
|
3593 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
3594 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3595 |
for as_dir in $PATH |
|
3596 |
do
|
|
3597 |
IFS=$as_save_IFS |
|
3598 |
test -z "$as_dir" && as_dir=. |
|
3599 |
for ac_prog in sed gsed; do |
|
3600 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3601 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3602 |
as_fn_executable_p "$ac_path_SED" || continue |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3603 |
# Check for GNU ac_path_SED and select it if it is found.
|
3604 |
# Check for GNU $ac_path_SED
|
|
3605 |
case `"$ac_path_SED" --version 2>&1` in |
|
3606 |
*GNU*)
|
|
3607 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
3608 |
*)
|
|
3609 |
ac_count=0 |
|
3610 |
$as_echo_n 0123456789 >"conftest.in" |
|
3611 |
while :
|
|
3612 |
do
|
|
3613 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3614 |
mv "conftest.tmp" "conftest.in" |
|
3615 |
cp "conftest.in" "conftest.nl" |
|
3616 |
$as_echo '' >> "conftest.nl" |
|
3617 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3618 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3619 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
3620 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
3621 |
# Best one so far, save it but keep looking for a better one
|
|
3622 |
ac_cv_path_SED="$ac_path_SED" |
|
3623 |
ac_path_SED_max=$ac_count |
|
3624 |
fi
|
|
3625 |
# 10*(2^10) chars as input seems more than enough
|
|
3626 |
test $ac_count -gt 10 && break |
|
3627 |
done
|
|
3628 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
3629 |
esac
|
|
3630 |
||
3631 |
$ac_path_SED_found && break 3 |
|
3632 |
done
|
|
3633 |
done
|
|
3634 |
done
|
|
3635 |
IFS=$as_save_IFS |
|
3636 |
if test -z "$ac_cv_path_SED"; then |
|
3637 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
|
3638 |
fi
|
|
3639 |
else
|
|
3640 |
ac_cv_path_SED=$SED |
|
3641 |
fi
|
|
3642 |
||
3643 |
fi
|
|
3644 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
|
3645 |
$as_echo "$ac_cv_path_SED" >&6; } |
|
3646 |
SED="$ac_cv_path_SED" |
|
3647 |
rm -f conftest.sed |
|
3648 |
||
3649 |
SED_EXTENDED_REGEX_OPT=-nre |
|
3650 |
sed_variant=`sed --version 2>&1` |
|
3651 |
sed_variant=`echo $sed_variant|sed -e 's/ .*//'` |
|
3652 |
if test "$sed_variant" != GNU ; then |
|
3653 |
SED_EXTENDED_REGEX_OPT=-nEe |
|
3654 |
fi
|
|
3655 |
||
3656 |
||
3657 |
if test -n "$ac_tool_prefix"; then |
|
3658 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
3659 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
3660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3661 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3662 |
if ${ac_cv_prog_RANLIB+:} false; then : |
|
3663 |
$as_echo_n "(cached) " >&6 |
|
3664 |
else
|
|
3665 |
if test -n "$RANLIB"; then |
|
3666 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
3667 |
else
|
|
3668 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3669 |
for as_dir in $PATH |
|
3670 |
do
|
|
3671 |
IFS=$as_save_IFS |
|
3672 |
test -z "$as_dir" && as_dir=. |
|
3673 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3674 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3675 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3676 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3677 |
break 2 |
|
3678 |
fi
|
|
3679 |
done
|
|
3680 |
done
|
|
3681 |
IFS=$as_save_IFS |
|
3682 |
||
3683 |
fi
|
|
3684 |
fi
|
|
3685 |
RANLIB=$ac_cv_prog_RANLIB |
|
3686 |
if test -n "$RANLIB"; then |
|
3687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
3688 |
$as_echo "$RANLIB" >&6; } |
|
3689 |
else
|
|
3690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3691 |
$as_echo "no" >&6; } |
|
3692 |
fi
|
|
3693 |
||
3694 |
||
3695 |
fi
|
|
3696 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
3697 |
ac_ct_RANLIB=$RANLIB |
|
3698 |
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
3699 |
set dummy ranlib; ac_word=$2 |
|
3700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3701 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3702 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
|
3703 |
$as_echo_n "(cached) " >&6 |
|
3704 |
else
|
|
3705 |
if test -n "$ac_ct_RANLIB"; then |
|
3706 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
3707 |
else
|
|
3708 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3709 |
for as_dir in $PATH |
|
3710 |
do
|
|
3711 |
IFS=$as_save_IFS |
|
3712 |
test -z "$as_dir" && as_dir=. |
|
3713 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3714 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3715 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
3716 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3717 |
break 2 |
|
3718 |
fi
|
|
3719 |
done
|
|
3720 |
done
|
|
3721 |
IFS=$as_save_IFS |
|
3722 |
||
3723 |
fi
|
|
3724 |
fi
|
|
3725 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
3726 |
if test -n "$ac_ct_RANLIB"; then |
|
3727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
3728 |
$as_echo "$ac_ct_RANLIB" >&6; } |
|
3729 |
else
|
|
3730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3731 |
$as_echo "no" >&6; } |
|
3732 |
fi
|
|
3733 |
||
3734 |
if test "x$ac_ct_RANLIB" = x; then |
|
3735 |
RANLIB=":" |
|
3736 |
else
|
|
3737 |
case $cross_compiling:$ac_tool_warned in |
|
3738 |
yes:)
|
|
3739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3740 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3741 |
ac_tool_warned=yes ;; |
|
3742 |
esac
|
|
3743 |
RANLIB=$ac_ct_RANLIB |
|
3744 |
fi
|
|
3745 |
else
|
|
3746 |
RANLIB="$ac_cv_prog_RANLIB" |
|
3747 |
fi
|
|
3748 |
||
3749 |
#AC_PROG_INSTALL
|
|
3750 |
||
3751 |
# Extract the first word of "pkg-config", so it can be a program name with args.
|
|
3752 |
set dummy pkg-config; ac_word=$2 |
|
3753 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3754 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3755 |
if ${ac_cv_path_PKGCONFIG+:} false; then : |
|
3756 |
$as_echo_n "(cached) " >&6 |
|
3757 |
else
|
|
3758 |
case $PKGCONFIG in |
|
3759 |
[\\/]* | ?:[\\/]*) |
|
3760 |
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
|
3761 |
;;
|
|
3762 |
*)
|
|
3763 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3764 |
for as_dir in $PATH |
|
3765 |
do
|
|
3766 |
IFS=$as_save_IFS |
|
3767 |
test -z "$as_dir" && as_dir=. |
|
3768 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3769 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3770 |
ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
3771 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3772 |
break 2 |
|
3773 |
fi
|
|
3774 |
done
|
|
3775 |
done
|
|
3776 |
IFS=$as_save_IFS |
|
3777 |
||
3778 |
;;
|
|
3779 |
esac
|
|
3780 |
fi
|
|
3781 |
PKGCONFIG=$ac_cv_path_PKGCONFIG |
|
3782 |
if test -n "$PKGCONFIG"; then |
|
3783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
|
3784 |
$as_echo "$PKGCONFIG" >&6; } |
|
3785 |
else
|
|
3786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3787 |
$as_echo "no" >&6; } |
|
3788 |
fi
|
|
3789 |
||
3790 |
||
3791 |
||
3792 |
||
3793 |
# Check whether --enable-contrib was given.
|
|
3794 |
if test "${enable_contrib+set}" = set; then : |
|
3795 |
enableval=$enable_contrib; |
|
3796 |
fi
|
|
3797 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3798 |
CONTRIBINCLUDE="include $srcdir/contrib/contrib.mak" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3799 |
INSTALL_CONTRIB="install-contrib-extras" |
3800 |
||
3801 |
case `uname` in |
|
3802 |
MINGW*)
|
|
3803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling contrib devices" >&5 |
|
3804 |
$as_echo "$as_me: WARNING: disabling contrib devices" >&2;} |
|
3805 |
enable_contrib=no |
|
3806 |
;;
|
|
3807 |
*)
|
|
3808 |
# This is just an arbitrary file in contrib to check
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3809 |
if ! test -f $srcdir/contrib/gdevbjc_.c; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3810 |
enable_contrib=no |
3811 |
fi
|
|
3812 |
;;
|
|
3813 |
esac
|
|
3814 |
||
3815 |
if test x$enable_contrib = xno; then |
|
3816 |
CONTRIBINCLUDE="" |
|
3817 |
INSTALL_CONTRIB="" |
|
3818 |
CFLAGS="$CFLAGS -DNOCONTRIB" |
|
3819 |
fi
|
|
3820 |
||
3821 |
||
3822 |
||
3823 |
||
3824 |
#AC_CANONICAL_HOST
|
|
3825 |
||
3826 |
CC_OPT_FLAGS_TO_TRY="-O" |
|
3827 |
SET_DT_SONAME="-soname=" |
|
3828 |
||
3829 |
case `uname` in |
|
3830 |
Linux*|GNU*) |
|
3831 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
3832 |
CC_OPT_FLAGS_TO_TRY="-O2" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3833 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3834 |
fi
|
3835 |
;;
|
|
3836 |
*BSD)
|
|
3837 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
3838 |
CC_OPT_FLAGS_TO_TRY="-O2" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3839 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3840 |
fi
|
3841 |
;;
|
|
3842 |
Darwin*)
|
|
3843 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
3844 |
CC_OPT_FLAGS_TO_TRY="-O2" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3845 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3846 |
fi
|
3847 |
SET_DT_SONAME="" |
|
3848 |
;;
|
|
3849 |
SunOS)
|
|
3850 |
CC_OPT_FLAGS_TO_TRY="-O2" |
|
3851 |
# the trailing space is required!
|
|
3852 |
if test $ac_cv_c_compiler_gnu = no; then |
|
3853 |
SET_DT_SONAME="-h " |
|
3854 |
fi
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3855 |
if test $ac_cv_c_compiler_gnu = yes; then |
3856 |
CC_OPT_FLAGS_TO_TRY="-O2" |
|
3857 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
|
3858 |
else
|
|
3859 |
CC_DBG_FLAGS_TO_TRY="-g -O0" |
|
3860 |
fi
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3861 |
;;
|
3862 |
esac
|
|
3863 |
||
3864 |
||
3865 |
||
3866 |
||
3867 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
3868 |
cflags_to_try="-Wall -Wstrict-prototypes -Wundef \ |
|
3869 |
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
|
|
3870 |
-Wno-strict-aliasing -Wdeclaration-after-statement \
|
|
3871 |
-fno-builtin -fno-common"
|
|
3872 |
optflags_to_try="$CC_OPT_FLAGS_TO_TRY" |
|
3873 |
dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" |
|
3874 |
else
|
|
3875 |
cflags_to_try= |
|
3876 |
optflags_to_try="$CC_OPT_FLAGS_TO_TRY" |
|
3877 |
dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" |
|
3878 |
fi
|
|
3879 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3880 |
ARCH_CONF_HEADER= |
3881 |
||
3882 |
case `uname` in |
|
3883 |
Darwin*)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3884 |
ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/osx-x86-x86_64-ppc-gcc.h" |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3885 |
;;
|
3886 |
*)
|
|
3887 |
ARCH_CONF_HEADER= |
|
3888 |
;;
|
|
3889 |
esac
|
|
3890 |
||
3891 |
||
3892 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
3893 |
# debug configurarion is available by default with "make debug"
|
3894 |
#AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],
|
|
3895 |
# [turn on debugging]))
|
|
3896 |
#if test x$enable_debug = xyes; then
|
|
3897 |
# optflags_to_try="-g"
|
|
3898 |
# CFLAGS="-DDEBUG $CFLAGS"
|
|
3899 |
#fi
|
|
3900 |
||
3901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking supported compiler flags" >&5 |
|
3902 |
$as_echo_n "checking supported compiler flags... " >&6; } |
|
3903 |
old_cflags=$CFLAGS |
|
3904 |
echo
|
|
3905 |
for flag in $optflags_to_try; do |
|
3906 |
CFLAGS="$CFLAGS $flag" |
|
3907 |
||
3908 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3909 |
/* end confdefs.h. */
|
|
3910 |
||
3911 |
int
|
|
3912 |
main ()
|
|
3913 |
{
|
|
3914 |
return 0;
|
|
3915 |
;
|
|
3916 |
return 0;
|
|
3917 |
}
|
|
3918 |
_ACEOF
|
|
3919 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3920 |
||
3921 |
echo " $flag" |
|
3922 |
OPT_CFLAGS="$OPT_CFLAGS $flag" |
|
3923 |
||
3924 |
fi
|
|
3925 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3926 |
CFLAGS=$old_cflags |
|
3927 |
done
|
|
3928 |
for flag in $cflags_to_try; do |
|
3929 |
CFLAGS="$CFLAGS $flag" |
|
3930 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3931 |
/* end confdefs.h. */
|
|
3932 |
||
3933 |
int
|
|
3934 |
main ()
|
|
3935 |
{
|
|
3936 |
return 0;
|
|
3937 |
;
|
|
3938 |
return 0;
|
|
3939 |
}
|
|
3940 |
_ACEOF
|
|
3941 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3942 |
||
3943 |
echo " $flag" |
|
3944 |
GCFLAGS="$GCFLAGS $flag" |
|
3945 |
||
3946 |
fi
|
|
3947 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3948 |
CFLAGS=$old_cflags |
|
3949 |
done
|
|
3950 |
old_cflags=$CFLAGS |
|
3951 |
echo
|
|
3952 |
for flag in $dbgflags_to_try; do |
|
3953 |
CFLAGS="$CFLAGS $flag" |
|
3954 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3955 |
/* end confdefs.h. */
|
|
3956 |
||
3957 |
int
|
|
3958 |
main ()
|
|
3959 |
{
|
|
3960 |
return 0;
|
|
3961 |
;
|
|
3962 |
return 0;
|
|
3963 |
}
|
|
3964 |
_ACEOF
|
|
3965 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3966 |
||
3967 |
echo " $flag" |
|
3968 |
DBG_CFLAGS="$DBG_CFLAGS $flag" |
|
3969 |
||
3970 |
fi
|
|
3971 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3972 |
CFLAGS=$old_cflags |
|
3973 |
done
|
|
3974 |
||
3975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...done." >&5 |
|
3976 |
$as_echo " ...done." >&6; } |
|
3977 |
||
3978 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3979 |
BIGENDIAN= |
3980 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
3981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 |
3982 |
$as_echo_n "checking for big endian... " >&6; } |
|
3983 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
3984 |
# Check whether --enable-big-endian was given.
|
3985 |
if test "${enable_big_endian+set}" = set; then : |
|
3986 |
enableval=$enable_big_endian; BIGENDIAN=1 |
|
3987 |
fi
|
|
3988 |
||
3989 |
||
3990 |
if test x$BIGENDIAN = x; then |
|
3991 |
# Check whether --enable-little-endian was given.
|
|
3992 |
if test "${enable_little_endian+set}" = set; then : |
|
3993 |
enableval=$enable_little_endian; BIGENDIAN=0 |
|
3994 |
fi
|
|
3995 |
||
3996 |
fi
|
|
3997 |
||
3998 |
if test x$BIGENDIAN = x ; then |
|
3999 |
if test "$cross_compiling" = yes; then : |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4000 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4001 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4002 |
as_fn_error $? "cannot run test program while cross compiling |
|
4003 |
See \`config.log' for more details" "$LINENO" 5; } |
|
4004 |
else
|
|
4005 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4006 |
/* end confdefs.h. */
|
|
4007 |
#include <stdio.h>
|
|
4008 |
int
|
|
4009 |
main ()
|
|
4010 |
{
|
|
4011 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
4012 |
static const int one = 1;
|
4013 |
return (*(char*)&one == 0 ? 0 : 1);
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4014 |
|
4015 |
;
|
|
4016 |
return 0;
|
|
4017 |
}
|
|
4018 |
_ACEOF
|
|
4019 |
if ac_fn_c_try_run "$LINENO"; then : |
|
4020 |
BIGENDIAN=1;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: big" >&5 |
|
4021 |
$as_echo "big" >&6; } |
|
4022 |
else
|
|
4023 |
BIGENDIAN=0;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: little" >&5 |
|
4024 |
$as_echo "little" >&6; } |
|
4025 |
fi
|
|
4026 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4027 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4028 |
fi
|
|
4029 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
4030 |
else
|
4031 |
if test x$BIGENDIAN = x1 ; then |
|
4032 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: big" >&5 |
|
4033 |
$as_echo "big" >&6; } |
|
4034 |
else
|
|
4035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: little" >&5 |
|
4036 |
$as_echo "little" >&6; } |
|
4037 |
fi
|
|
4038 |
fi
|
|
4039 |
||
4040 |
||
4041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sse2 support" >&5 |
|
4042 |
$as_echo_n "checking sse2 support... " >&6; } |
|
4043 |
save_cflags=$CFLAGS |
|
4044 |
CFLAGS="$CFLAGS $OPT_CFLAGS" |
|
4045 |
||
4046 |
HAVE_SSE2="" |
|
4047 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4048 |
/* end confdefs.h. */
|
|
4049 |
#include <emmintrin.h>
|
|
4050 |
int
|
|
4051 |
main ()
|
|
4052 |
{
|
|
4053 |
||
4054 |
__m128i input1;
|
|
4055 |
unsigned char buf1[128];
|
|
4056 |
input1 = _mm_loadu_si128((const __m128i *)buf1);
|
|
4057 |
return(0);
|
|
4058 |
||
4059 |
;
|
|
4060 |
return 0;
|
|
4061 |
}
|
|
4062 |
_ACEOF
|
|
4063 |
if ac_fn_c_try_link "$LINENO"; then : |
|
4064 |
HAVE_SSE2="-DHAVE_SSE2" |
|
4065 |
else
|
|
4066 |
HAVE_SSE2="" |
|
4067 |
fi
|
|
4068 |
rm -f core conftest.err conftest.$ac_objext \ |
|
4069 |
conftest$ac_exeext conftest.$ac_ext |
|
4070 |
||
4071 |
# Check whether --enable-sse2 was given.
|
|
4072 |
if test "${enable_sse2+set}" = set; then : |
|
4073 |
enableval=$enable_sse2; |
|
4074 |
if test "x$enable_sse2" = xno; then |
|
4075 |
HAVE_SSE2="" |
|
4076 |
fi
|
|
4077 |
fi
|
|
4078 |
||
4079 |
||
4080 |
if test "x$HAVE_SSE2" != x; then |
|
4081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
4082 |
$as_echo "yes" >&6; } |
|
4083 |
else
|
|
4084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4085 |
$as_echo "no" >&6; } |
|
4086 |
fi
|
|
4087 |
||
4088 |
||
4089 |
CFLAGS=$save_cflags |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4090 |
|
4091 |
||
4092 |
# Check whether --enable-threadsafe was given.
|
|
4093 |
if test "${enable_threadsafe+set}" = set; then : |
|
4094 |
enableval=$enable_threadsafe; |
|
4095 |
fi
|
|
4096 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
4097 |
if test x$enable_threadsafe = xyes ; then |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4098 |
CFLAGS="-DGS_THREADSAFE" |
4099 |
fi
|
|
4100 |
||
4101 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4102 |
ac_header_dirent=no |
4103 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
|
4104 |
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
|
4105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
|
4106 |
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
|
4107 |
if eval \${$as_ac_Header+:} false; then : |
|
4108 |
$as_echo_n "(cached) " >&6 |
|
4109 |
else
|
|
4110 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4111 |
/* end confdefs.h. */
|
|
4112 |
#include <sys/types.h>
|
|
4113 |
#include <$ac_hdr>
|
|
4114 |
||
4115 |
int
|
|
4116 |
main ()
|
|
4117 |
{
|
|
4118 |
if ((DIR *) 0)
|
|
4119 |
return 0;
|
|
4120 |
;
|
|
4121 |
return 0;
|
|
4122 |
}
|
|
4123 |
_ACEOF
|
|
4124 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4125 |
eval "$as_ac_Header=yes" |
|
4126 |
else
|
|
4127 |
eval "$as_ac_Header=no" |
|
4128 |
fi
|
|
4129 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4130 |
fi
|
|
4131 |
eval ac_res=\$$as_ac_Header |
|
4132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
4133 |
$as_echo "$ac_res" >&6; } |
|
4134 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4135 |
cat >>confdefs.h <<_ACEOF
|
|
4136 |
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
|
4137 |
_ACEOF
|
|
4138 |
||
4139 |
ac_header_dirent=$ac_hdr; break |
|
4140 |
fi
|
|
4141 |
||
4142 |
done
|
|
4143 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
4144 |
if test $ac_header_dirent = dirent.h; then |
|
4145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
|
4146 |
$as_echo_n "checking for library containing opendir... " >&6; } |
|
4147 |
if ${ac_cv_search_opendir+:} false; then : |
|
4148 |
$as_echo_n "(cached) " >&6 |
|
4149 |
else
|
|
4150 |
ac_func_search_save_LIBS=$LIBS |
|
4151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4152 |
/* end confdefs.h. */
|
|
4153 |
||
4154 |
/* Override any GCC internal prototype to avoid an error.
|
|
4155 |
Use char because int might match the return type of a GCC
|
|
4156 |
builtin and then its argument prototype would still apply. */
|
|
4157 |
#ifdef __cplusplus
|
|
4158 |
extern "C"
|
|
4159 |
#endif
|
|
4160 |
char opendir ();
|
|
4161 |
int
|
|
4162 |
main ()
|
|
4163 |
{
|
|
4164 |
return opendir ();
|
|
4165 |
;
|
|
4166 |
return 0;
|
|
4167 |
}
|
|
4168 |
_ACEOF
|
|
4169 |
for ac_lib in '' dir; do |
|
4170 |
if test -z "$ac_lib"; then |
|
4171 |
ac_res="none required" |
|
4172 |
else
|
|
4173 |
ac_res=-l$ac_lib |
|
4174 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
4175 |
fi
|
|
4176 |
if ac_fn_c_try_link "$LINENO"; then : |
|
4177 |
ac_cv_search_opendir=$ac_res |
|
4178 |
fi
|
|
4179 |
rm -f core conftest.err conftest.$ac_objext \ |
|
4180 |
conftest$ac_exeext
|
|
4181 |
if ${ac_cv_search_opendir+:} false; then : |
|
4182 |
break
|
|
4183 |
fi
|
|
4184 |
done
|
|
4185 |
if ${ac_cv_search_opendir+:} false; then : |
|
4186 |
||
4187 |
else
|
|
4188 |
ac_cv_search_opendir=no |
|
4189 |
fi
|
|
4190 |
rm conftest.$ac_ext
|
|
4191 |
LIBS=$ac_func_search_save_LIBS |
|
4192 |
fi
|
|
4193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
|
4194 |
$as_echo "$ac_cv_search_opendir" >&6; } |
|
4195 |
ac_res=$ac_cv_search_opendir |
|
4196 |
if test "$ac_res" != no; then : |
|
4197 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
4198 |
||
4199 |
fi
|
|
4200 |
||
4201 |
else
|
|
4202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
|
4203 |
$as_echo_n "checking for library containing opendir... " >&6; } |
|
4204 |
if ${ac_cv_search_opendir+:} false; then : |
|
4205 |
$as_echo_n "(cached) " >&6 |
|
4206 |
else
|
|
4207 |
ac_func_search_save_LIBS=$LIBS |
|
4208 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4209 |
/* end confdefs.h. */
|
|
4210 |
||
4211 |
/* Override any GCC internal prototype to avoid an error.
|
|
4212 |
Use char because int might match the return type of a GCC
|
|
4213 |
builtin and then its argument prototype would still apply. */
|
|
4214 |
#ifdef __cplusplus
|
|
4215 |
extern "C"
|
|
4216 |
#endif
|
|
4217 |
char opendir ();
|
|
4218 |
int
|
|
4219 |
main ()
|
|
4220 |
{
|
|
4221 |
return opendir ();
|
|
4222 |
;
|
|
4223 |
return 0;
|
|
4224 |
}
|
|
4225 |
_ACEOF
|
|
4226 |
for ac_lib in '' x; do |
|
4227 |
if test -z "$ac_lib"; then |
|
4228 |
ac_res="none required" |
|
4229 |
else
|
|
4230 |
ac_res=-l$ac_lib |
|
4231 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
4232 |
fi
|
|
4233 |
if ac_fn_c_try_link "$LINENO"; then : |
|
4234 |
ac_cv_search_opendir=$ac_res |
|
4235 |
fi
|
|
4236 |
rm -f core conftest.err conftest.$ac_objext \ |
|
4237 |
conftest$ac_exeext
|
|
4238 |
if ${ac_cv_search_opendir+:} false; then : |
|
4239 |
break
|
|
4240 |
fi
|
|
4241 |
done
|
|
4242 |
if ${ac_cv_search_opendir+:} false; then : |
|
4243 |
||
4244 |
else
|
|
4245 |
ac_cv_search_opendir=no |
|
4246 |
fi
|
|
4247 |
rm conftest.$ac_ext
|
|
4248 |
LIBS=$ac_func_search_save_LIBS |
|
4249 |
fi
|
|
4250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
|
4251 |
$as_echo "$ac_cv_search_opendir" >&6; } |
|
4252 |
ac_res=$ac_cv_search_opendir |
|
4253 |
if test "$ac_res" != no; then : |
|
4254 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
4255 |
||
4256 |
fi
|
|
4257 |
||
4258 |
fi
|
|
4259 |
||
4260 |
||
4261 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
4262 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
4263 |
if ${ac_cv_path_GREP+:} false; then : |
|
4264 |
$as_echo_n "(cached) " >&6 |
|
4265 |
else
|
|
4266 |
if test -z "$GREP"; then |
|
4267 |
ac_path_GREP_found=false |
|
4268 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
4269 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4270 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4271 |
do
|
|
4272 |
IFS=$as_save_IFS |
|
4273 |
test -z "$as_dir" && as_dir=. |
|
4274 |
for ac_prog in grep ggrep; do |
|
4275 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4276 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4277 |
as_fn_executable_p "$ac_path_GREP" || continue |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4278 |
# Check for GNU ac_path_GREP and select it if it is found.
|
4279 |
# Check for GNU $ac_path_GREP
|
|
4280 |
case `"$ac_path_GREP" --version 2>&1` in |
|
4281 |
*GNU*)
|
|
4282 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
4283 |
*)
|
|
4284 |
ac_count=0 |
|
4285 |
$as_echo_n 0123456789 >"conftest.in" |
|
4286 |
while :
|
|
4287 |
do
|
|
4288 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4289 |
mv "conftest.tmp" "conftest.in" |
|
4290 |
cp "conftest.in" "conftest.nl" |
|
4291 |
$as_echo 'GREP' >> "conftest.nl" |
|
4292 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4293 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4294 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4295 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
4296 |
# Best one so far, save it but keep looking for a better one
|
|
4297 |
ac_cv_path_GREP="$ac_path_GREP" |
|
4298 |
ac_path_GREP_max=$ac_count |
|
4299 |
fi
|
|
4300 |
# 10*(2^10) chars as input seems more than enough
|
|
4301 |
test $ac_count -gt 10 && break |
|
4302 |
done
|
|
4303 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
4304 |
esac
|
|
4305 |
||
4306 |
$ac_path_GREP_found && break 3 |
|
4307 |
done
|
|
4308 |
done
|
|
4309 |
done
|
|
4310 |
IFS=$as_save_IFS |
|
4311 |
if test -z "$ac_cv_path_GREP"; then |
|
4312 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4313 |
fi
|
|
4314 |
else
|
|
4315 |
ac_cv_path_GREP=$GREP |
|
4316 |
fi
|
|
4317 |
||
4318 |
fi
|
|
4319 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
4320 |
$as_echo "$ac_cv_path_GREP" >&6; } |
|
4321 |
GREP="$ac_cv_path_GREP" |
|
4322 |
||
4323 |
||
4324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
4325 |
$as_echo_n "checking for egrep... " >&6; } |
|
4326 |
if ${ac_cv_path_EGREP+:} false; then : |
|
4327 |
$as_echo_n "(cached) " >&6 |
|
4328 |
else
|
|
4329 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
4330 |
then ac_cv_path_EGREP="$GREP -E" |
|
4331 |
else
|
|
4332 |
if test -z "$EGREP"; then |
|
4333 |
ac_path_EGREP_found=false |
|
4334 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
4335 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4336 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4337 |
do
|
|
4338 |
IFS=$as_save_IFS |
|
4339 |
test -z "$as_dir" && as_dir=. |
|
4340 |
for ac_prog in egrep; do |
|
4341 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4342 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4343 |
as_fn_executable_p "$ac_path_EGREP" || continue |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4344 |
# Check for GNU ac_path_EGREP and select it if it is found.
|
4345 |
# Check for GNU $ac_path_EGREP
|
|
4346 |
case `"$ac_path_EGREP" --version 2>&1` in |
|
4347 |
*GNU*)
|
|
4348 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
4349 |
*)
|
|
4350 |
ac_count=0 |
|
4351 |
$as_echo_n 0123456789 >"conftest.in" |
|
4352 |
while :
|
|
4353 |
do
|
|
4354 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4355 |
mv "conftest.tmp" "conftest.in" |
|
4356 |
cp "conftest.in" "conftest.nl" |
|
4357 |
$as_echo 'EGREP' >> "conftest.nl" |
|
4358 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4359 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4360 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4361 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
4362 |
# Best one so far, save it but keep looking for a better one
|
|
4363 |
ac_cv_path_EGREP="$ac_path_EGREP" |
|
4364 |
ac_path_EGREP_max=$ac_count |
|
4365 |
fi
|
|
4366 |
# 10*(2^10) chars as input seems more than enough
|
|
4367 |
test $ac_count -gt 10 && break |
|
4368 |
done
|
|
4369 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
4370 |
esac
|
|
4371 |
||
4372 |
$ac_path_EGREP_found && break 3 |
|
4373 |
done
|
|
4374 |
done
|
|
4375 |
done
|
|
4376 |
IFS=$as_save_IFS |
|
4377 |
if test -z "$ac_cv_path_EGREP"; then |
|
4378 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4379 |
fi
|
|
4380 |
else
|
|
4381 |
ac_cv_path_EGREP=$EGREP |
|
4382 |
fi
|
|
4383 |
||
4384 |
fi
|
|
4385 |
fi
|
|
4386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
4387 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
|
4388 |
EGREP="$ac_cv_path_EGREP" |
|
4389 |
||
4390 |
||
4391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
4392 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
|
4393 |
if ${ac_cv_header_stdc+:} false; then : |
|
4394 |
$as_echo_n "(cached) " >&6 |
|
4395 |
else
|
|
4396 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4397 |
/* end confdefs.h. */
|
|
4398 |
#include <stdlib.h>
|
|
4399 |
#include <stdarg.h>
|
|
4400 |
#include <string.h>
|
|
4401 |
#include <float.h>
|
|
4402 |
||
4403 |
int
|
|
4404 |
main ()
|
|
4405 |
{
|
|
4406 |
||
4407 |
;
|
|
4408 |
return 0;
|
|
4409 |
}
|
|
4410 |
_ACEOF
|
|
4411 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4412 |
ac_cv_header_stdc=yes |
|
4413 |
else
|
|
4414 |
ac_cv_header_stdc=no |
|
4415 |
fi
|
|
4416 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4417 |
||
4418 |
if test $ac_cv_header_stdc = yes; then |
|
4419 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
4420 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4421 |
/* end confdefs.h. */
|
|
4422 |
#include <string.h>
|
|
4423 |
||
4424 |
_ACEOF
|
|
4425 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4426 |
$EGREP "memchr" >/dev/null 2>&1; then : |
|
4427 |
||
4428 |
else
|
|
4429 |
ac_cv_header_stdc=no |
|
4430 |
fi
|
|
4431 |
rm -f conftest* |
|
4432 |
||
4433 |
fi
|
|
4434 |
||
4435 |
if test $ac_cv_header_stdc = yes; then |
|
4436 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
4437 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4438 |
/* end confdefs.h. */
|
|
4439 |
#include <stdlib.h>
|
|
4440 |
||
4441 |
_ACEOF
|
|
4442 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4443 |
$EGREP "free" >/dev/null 2>&1; then : |
|
4444 |
||
4445 |
else
|
|
4446 |
ac_cv_header_stdc=no |
|
4447 |
fi
|
|
4448 |
rm -f conftest* |
|
4449 |
||
4450 |
fi
|
|
4451 |
||
4452 |
if test $ac_cv_header_stdc = yes; then |
|
4453 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
4454 |
if test "$cross_compiling" = yes; then : |
|
4455 |
: |
|
4456 |
else
|
|
4457 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4458 |
/* end confdefs.h. */
|
|
4459 |
#include <ctype.h>
|
|
4460 |
#include <stdlib.h>
|
|
4461 |
#if ((' ' & 0x0FF) == 0x020)
|
|
4462 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
4463 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
4464 |
#else
|
|
4465 |
# define ISLOWER(c) \
|
|
4466 |
(('a' <= (c) && (c) <= 'i') \
|
|
4467 |
|| ('j' <= (c) && (c) <= 'r') \
|
|
4468 |
|| ('s' <= (c) && (c) <= 'z'))
|
|
4469 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
4470 |
#endif
|
|
4471 |
||
4472 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
4473 |
int
|
|
4474 |
main ()
|
|
4475 |
{
|
|
4476 |
int i;
|
|
4477 |
for (i = 0; i < 256; i++)
|
|
4478 |
if (XOR (islower (i), ISLOWER (i))
|
|
4479 |
|| toupper (i) != TOUPPER (i))
|
|
4480 |
return 2;
|
|
4481 |
return 0;
|
|
4482 |
}
|
|
4483 |
_ACEOF
|
|
4484 |
if ac_fn_c_try_run "$LINENO"; then : |
|
4485 |
||
4486 |
else
|
|
4487 |
ac_cv_header_stdc=no |
|
4488 |
fi
|
|
4489 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4490 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4491 |
fi
|
|
4492 |
||
4493 |
fi
|
|
4494 |
fi
|
|
4495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
4496 |
$as_echo "$ac_cv_header_stdc" >&6; } |
|
4497 |
if test $ac_cv_header_stdc = yes; then |
|
4498 |
||
4499 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
4500 |
||
4501 |
fi
|
|
4502 |
||
4503 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
4504 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
4505 |
inttypes.h stdint.h unistd.h |
|
4506 |
do :
|
|
4507 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
4508 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
4509 |
"
|
|
4510 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4511 |
cat >>confdefs.h <<_ACEOF
|
|
4512 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
4513 |
_ACEOF
|
|
4514 |
||
4515 |
fi
|
|
4516 |
||
4517 |
done
|
|
4518 |
||
4519 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4520 |
for ac_header in errno.h fcntl.h limits.h malloc.h memory.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/time.h sys/times.h syslog.h unistd.h dirent.h ndir.h sys/dir.h sys/ndir.h inttypes.h
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4521 |
do :
|
4522 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
4523 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
4524 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4525 |
cat >>confdefs.h <<_ACEOF
|
|
4526 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
4527 |
_ACEOF
|
|
4528 |
||
4529 |
fi
|
|
4530 |
||
4531 |
done
|
|
4532 |
||
4533 |
||
4534 |
||
4535 |
OBJDIR_BSDMAKE_WORKAROUND=obj |
|
4536 |
||
4537 |
case `uname` in |
|
4538 |
*BSD)
|
|
4539 |
OBJDIR_BSDMAKEWORKAOROUND="notobj" |
|
4540 |
;;
|
|
4541 |
esac
|
|
4542 |
||
4543 |
||
4544 |
# for gdev3b1.c (AT&T terminal interface)
|
|
4545 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/window.h" "ac_cv_header_sys_window_h" "$ac_includes_default" |
|
4546 |
if test "x$ac_cv_header_sys_window_h" = xyes; then : |
|
4547 |
||
4548 |
fi
|
|
4549 |
||
4550 |
||
4551 |
||
4552 |
||
4553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
|
4554 |
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
|
4555 |
if ${ac_cv_c_const+:} false; then : |
|
4556 |
$as_echo_n "(cached) " >&6 |
|
4557 |
else
|
|
4558 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4559 |
/* end confdefs.h. */
|
|
4560 |
||
4561 |
int
|
|
4562 |
main ()
|
|
4563 |
{
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4564 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4565 |
#ifndef __cplusplus
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4566 |
/* Ultrix mips cc rejects this sort of thing. */
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4567 |
typedef int charset[2];
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4568 |
const charset cs = { 0, 0 };
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4569 |
/* SunOS 4.1.1 cc rejects this. */
|
4570 |
char const *const *pcpcc;
|
|
4571 |
char **ppc;
|
|
4572 |
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
4573 |
struct point {int x, y;};
|
|
4574 |
static struct point const zero = {0,0};
|
|
4575 |
/* AIX XL C 1.02.0.0 rejects this.
|
|
4576 |
It does not let you subtract one const X* pointer from another in
|
|
4577 |
an arm of an if-expression whose if-part is not a constant
|
|
4578 |
expression */
|
|
4579 |
const char *g = "string";
|
|
4580 |
pcpcc = &g + (g ? g-g : 0);
|
|
4581 |
/* HPUX 7.0 cc rejects these. */
|
|
4582 |
++pcpcc;
|
|
4583 |
ppc = (char**) pcpcc;
|
|
4584 |
pcpcc = (char const *const *) ppc;
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4585 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */
|
4586 |
char tx;
|
|
4587 |
char *t = &tx;
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4588 |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
4589 |
||
4590 |
*t++ = 0;
|
|
4591 |
if (s) return 0;
|
|
4592 |
}
|
|
4593 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
4594 |
int x[] = {25, 17};
|
|
4595 |
const int *foo = &x[0];
|
|
4596 |
++foo;
|
|
4597 |
}
|
|
4598 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4599 |
typedef const int *iptr;
|
|
4600 |
iptr p = 0;
|
|
4601 |
++p;
|
|
4602 |
}
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4603 |
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4604 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4605 |
struct s { int j; const int *ap[3]; } bx;
|
4606 |
struct s *b = &bx; b->j = 5;
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4607 |
}
|
4608 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4609 |
const int foo = 10;
|
|
4610 |
if (!foo) return 0;
|
|
4611 |
}
|
|
4612 |
return !cs[0] && !zero.x;
|
|
4613 |
#endif
|
|
4614 |
||
4615 |
;
|
|
4616 |
return 0;
|
|
4617 |
}
|
|
4618 |
_ACEOF
|
|
4619 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4620 |
ac_cv_c_const=yes |
|
4621 |
else
|
|
4622 |
ac_cv_c_const=no |
|
4623 |
fi
|
|
4624 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4625 |
fi
|
|
4626 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
|
4627 |
$as_echo "$ac_cv_c_const" >&6; } |
|
4628 |
if test $ac_cv_c_const = no; then |
|
4629 |
||
4630 |
$as_echo "#define const /**/" >>confdefs.h |
|
4631 |
||
4632 |
fi
|
|
4633 |
||
4634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
|
4635 |
$as_echo_n "checking for inline... " >&6; } |
|
4636 |
if ${ac_cv_c_inline+:} false; then : |
|
4637 |
$as_echo_n "(cached) " >&6 |
|
4638 |
else
|
|
4639 |
ac_cv_c_inline=no |
|
4640 |
for ac_kw in inline __inline__ __inline; do |
|
4641 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4642 |
/* end confdefs.h. */
|
|
4643 |
#ifndef __cplusplus
|
|
4644 |
typedef int foo_t;
|
|
4645 |
static $ac_kw foo_t static_foo () {return 0; }
|
|
4646 |
$ac_kw foo_t foo () {return 0; }
|
|
4647 |
#endif
|
|
4648 |
||
4649 |
_ACEOF
|
|
4650 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4651 |
ac_cv_c_inline=$ac_kw |
|
4652 |
fi
|
|
4653 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4654 |
test "$ac_cv_c_inline" != no && break |
|
4655 |
done
|
|
4656 |
||
4657 |
fi
|
|
4658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
|
4659 |
$as_echo "$ac_cv_c_inline" >&6; } |
|
4660 |
||
4661 |
case $ac_cv_c_inline in |
|
4662 |
inline | yes) ;; |
|
4663 |
*)
|
|
4664 |
case $ac_cv_c_inline in |
|
4665 |
no) ac_val=;; |
|
4666 |
*) ac_val=$ac_cv_c_inline;; |
|
4667 |
esac
|
|
4668 |
cat >>confdefs.h <<_ACEOF
|
|
4669 |
#ifndef __cplusplus
|
|
4670 |
#define inline $ac_val
|
|
4671 |
#endif
|
|
4672 |
_ACEOF
|
|
4673 |
;;
|
|
4674 |
esac
|
|
4675 |
||
4676 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
4677 |
if test "x$ac_cv_type_mode_t" = xyes; then : |
|
4678 |
||
4679 |
else
|
|
4680 |
||
4681 |
cat >>confdefs.h <<_ACEOF
|
|
4682 |
#define mode_t int
|
|
4683 |
_ACEOF
|
|
4684 |
||
4685 |
fi
|
|
4686 |
||
4687 |
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
|
4688 |
if test "x$ac_cv_type_off_t" = xyes; then : |
|
4689 |
||
4690 |
else
|
|
4691 |
||
4692 |
cat >>confdefs.h <<_ACEOF
|
|
4693 |
#define off_t long int
|
|
4694 |
_ACEOF
|
|
4695 |
||
4696 |
fi
|
|
4697 |
||
4698 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
|
4699 |
if test "x$ac_cv_type_size_t" = xyes; then : |
|
4700 |
||
4701 |
else
|
|
4702 |
||
4703 |
cat >>confdefs.h <<_ACEOF
|
|
4704 |
#define size_t unsigned int
|
|
4705 |
_ACEOF
|
|
4706 |
||
4707 |
fi
|
|
4708 |
||
4709 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
|
4710 |
if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
|
4711 |
||
4712 |
cat >>confdefs.h <<_ACEOF
|
|
4713 |
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
|
|
4714 |
_ACEOF
|
|
4715 |
||
4716 |
||
4717 |
$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
|
4718 |
||
4719 |
else
|
|
4720 |
case " $LIBOBJS " in |
|
4721 |
*" fileblocks.$ac_objext "* ) ;; |
|
4722 |
*) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
|
4723 |
;;
|
|
4724 |
esac
|
|
4725 |
||
4726 |
fi
|
|
4727 |
||
4728 |
||
4729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
|
4730 |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
|
4731 |
if ${ac_cv_header_time+:} false; then : |
|
4732 |
$as_echo_n "(cached) " >&6 |
|
4733 |
else
|
|
4734 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4735 |
/* end confdefs.h. */
|
|
4736 |
#include <sys/types.h>
|
|
4737 |
#include <sys/time.h>
|
|
4738 |
#include <time.h>
|
|
4739 |
||
4740 |
int
|
|
4741 |
main ()
|
|
4742 |
{
|
|
4743 |
if ((struct tm *) 0)
|
|
4744 |
return 0;
|
|
4745 |
;
|
|
4746 |
return 0;
|
|
4747 |
}
|
|
4748 |
_ACEOF
|
|
4749 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4750 |
ac_cv_header_time=yes |
|
4751 |
else
|
|
4752 |
ac_cv_header_time=no |
|
4753 |
fi
|
|
4754 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4755 |
fi
|
|
4756 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
|
4757 |
$as_echo "$ac_cv_header_time" >&6; } |
|
4758 |
if test $ac_cv_header_time = yes; then |
|
4759 |
||
4760 |
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
|
4761 |
||
4762 |
fi
|
|
4763 |
||
4764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
|
4765 |
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
|
4766 |
if ${ac_cv_struct_tm+:} false; then : |
|
4767 |
$as_echo_n "(cached) " >&6 |
|
4768 |
else
|
|
4769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4770 |
/* end confdefs.h. */
|
|
4771 |
#include <sys/types.h>
|
|
4772 |
#include <time.h>
|
|
4773 |
||
4774 |
int
|
|
4775 |
main ()
|
|
4776 |
{
|
|
4777 |
struct tm tm;
|
|
4778 |
int *p = &tm.tm_sec;
|
|
4779 |
return !p;
|
|
4780 |
;
|
|
4781 |
return 0;
|
|
4782 |
}
|
|
4783 |
_ACEOF
|
|
4784 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
4785 |
ac_cv_struct_tm=time.h |
|
4786 |
else
|
|
4787 |
ac_cv_struct_tm=sys/time.h |
|
4788 |
fi
|
|
4789 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4790 |
fi
|
|
4791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
|
4792 |
$as_echo "$ac_cv_struct_tm" >&6; } |
|
4793 |
if test $ac_cv_struct_tm = sys/time.h; then |
|
4794 |
||
4795 |
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
|
4796 |
||
4797 |
fi
|
|
4798 |
||
4799 |
||
4800 |
if test "x$ac_cv_header_stdint_h" != xyes; then |
|
4801 |
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include <sys/types.h> |
|
4802 |
"
|
|
4803 |
if test "x$ac_cv_type_int8_t" = xyes; then : |
|
4804 |
||
4805 |
cat >>confdefs.h <<_ACEOF
|
|
4806 |
#define HAVE_INT8_T 1
|
|
4807 |
_ACEOF
|
|
4808 |
||
4809 |
||
4810 |
fi
|
|
4811 |
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include <sys/types.h> |
|
4812 |
"
|
|
4813 |
if test "x$ac_cv_type_int16_t" = xyes; then : |
|
4814 |
||
4815 |
cat >>confdefs.h <<_ACEOF
|
|
4816 |
#define HAVE_INT16_T 1
|
|
4817 |
_ACEOF
|
|
4818 |
||
4819 |
||
4820 |
fi
|
|
4821 |
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include <sys/types.h> |
|
4822 |
"
|
|
4823 |
if test "x$ac_cv_type_int32_t" = xyes; then : |
|
4824 |
||
4825 |
cat >>confdefs.h <<_ACEOF
|
|
4826 |
#define HAVE_INT32_T 1
|
|
4827 |
_ACEOF
|
|
4828 |
||
4829 |
||
4830 |
fi
|
|
4831 |
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include <sys/types.h> |
|
4832 |
"
|
|
4833 |
if test "x$ac_cv_type_uint8_t" = xyes; then : |
|
4834 |
||
4835 |
cat >>confdefs.h <<_ACEOF
|
|
4836 |
#define HAVE_UINT8_T 1
|
|
4837 |
_ACEOF
|
|
4838 |
||
4839 |
||
4840 |
fi
|
|
4841 |
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include <sys/types.h> |
|
4842 |
"
|
|
4843 |
if test "x$ac_cv_type_uint16_t" = xyes; then : |
|
4844 |
||
4845 |
cat >>confdefs.h <<_ACEOF
|
|
4846 |
#define HAVE_UINT16_T 1
|
|
4847 |
_ACEOF
|
|
4848 |
||
4849 |
||
4850 |
fi
|
|
4851 |
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> |
|
4852 |
"
|
|
4853 |
if test "x$ac_cv_type_uint32_t" = xyes; then : |
|
4854 |
||
4855 |
cat >>confdefs.h <<_ACEOF
|
|
4856 |
#define HAVE_UINT32_T 1
|
|
4857 |
_ACEOF
|
|
4858 |
||
4859 |
||
4860 |
fi
|
|
4861 |
||
4862 |
if test "$ac_cv_type_uint8_t" = yes; then |
|
4863 |
$as_echo "#define SYS_TYPES_HAS_STDINT_TYPES 1" >>confdefs.h |
|
4864 |
||
4865 |
GCFLAGS="$GCFLAGS -DSYS_TYPES_HAS_STDINT_TYPES" |
|
4866 |
fi
|
|
4867 |
fi
|
|
4868 |
||
4869 |
if test "$ac_cv_c_const" != yes; then |
|
4870 |
GCFLAGS="$GCFLAGS -Dconst=" |
|
4871 |
fi
|
|
4872 |
if test "x$ac_cv_header_stdint_h" = xyes; then |
|
4873 |
GCFLAGS="$GCFLAGS -DHAVE_STDINT_H=1" |
|
4874 |
fi
|
|
4875 |
||
4876 |
if test "x$ac_cv_header_dirent_h" = xyes; then |
|
4877 |
GCFLAGS="$GCFLAGS -DHAVE_DIRENT_H=1" |
|
4878 |
fi
|
|
4879 |
||
4880 |
if test "x$ac_cv_header_ndir_h" = xyes; then |
|
4881 |
GCFLAGS="$GCFLAGS -DHAVE_NDIR_H=1" |
|
4882 |
fi
|
|
4883 |
||
4884 |
if test "x$ac_cv_header_sys_dir_h" = xyes; then |
|
4885 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_DIR_H=1" |
|
4886 |
fi
|
|
4887 |
||
4888 |
if test "x$ac_cv_header_sys_ndir_h" = xyes; then |
|
4889 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_NDIR_H=1" |
|
4890 |
fi
|
|
4891 |
||
4892 |
if test "x$ac_cv_header_sys_time_h" = xyes; then |
|
4893 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIME_H=1" |
|
4894 |
fi
|
|
4895 |
||
4896 |
if test "x$ac_cv_header_sys_times_h" = xyes; then |
|
4897 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIMES_H=1" |
|
4898 |
fi
|
|
4899 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
4900 |
if test "x$ac_cv_header_inttypes_h" = xyes; then |
4901 |
GCFLAGS="$GCFLAGS -DHAVE_INTTYPES_H=1" |
|
4902 |
fi
|
|
4903 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
4904 |
uint64_type="none" |
4905 |
# The cast to long int works around a bug in the HP C Compiler
|
|
4906 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
4907 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
4908 |
# This bug is HP SR number 8606223364.
|
|
4909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5 |
|
4910 |
$as_echo_n "checking size of unsigned long int... " >&6; } |
|
4911 |
if ${ac_cv_sizeof_unsigned_long_int+:} false; then : |
|
4912 |
$as_echo_n "(cached) " >&6 |
|
4913 |
else
|
|
4914 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then : |
|
4915 |
||
4916 |
else
|
|
4917 |
if test "$ac_cv_type_unsigned_long_int" = yes; then |
|
4918 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
4919 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4920 |
as_fn_error 77 "cannot compute sizeof (unsigned long int) |
|
4921 |
See \`config.log' for more details" "$LINENO" 5; } |
|
4922 |
else
|
|
4923 |
ac_cv_sizeof_unsigned_long_int=0 |
|
4924 |
fi
|
|
4925 |
fi
|
|
4926 |
||
4927 |
fi
|
|
4928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5 |
|
4929 |
$as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; } |
|
4930 |
||
4931 |
||
4932 |
||
4933 |
cat >>confdefs.h <<_ACEOF
|
|
4934 |
#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
|
|
4935 |
_ACEOF
|
|
4936 |
||
4937 |
||
4938 |
if test $ac_cv_sizeof_unsigned_long_int = 8; then |
|
4939 |
uint64_type="unsigned long int" |
|
4940 |
else
|
|
4941 |
# The cast to long int works around a bug in the HP C Compiler
|
|
4942 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
4943 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
4944 |
# This bug is HP SR number 8606223364.
|
|
4945 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
|
4946 |
$as_echo_n "checking size of unsigned long long... " >&6; } |
|
4947 |
if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
|
4948 |
$as_echo_n "(cached) " >&6 |
|
4949 |
else
|
|
4950 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
|
4951 |
||
4952 |
else
|
|
4953 |
if test "$ac_cv_type_unsigned_long_long" = yes; then |
|
4954 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
4955 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4956 |
as_fn_error 77 "cannot compute sizeof (unsigned long long) |
|
4957 |
See \`config.log' for more details" "$LINENO" 5; } |
|
4958 |
else
|
|
4959 |
ac_cv_sizeof_unsigned_long_long=0 |
|
4960 |
fi
|
|
4961 |
fi
|
|
4962 |
||
4963 |
fi
|
|
4964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
|
4965 |
$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
|
4966 |
||
4967 |
||
4968 |
||
4969 |
cat >>confdefs.h <<_ACEOF
|
|
4970 |
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
|
|
4971 |
_ACEOF
|
|
4972 |
||
4973 |
||
4974 |
if test $ac_cv_sizeof_unsigned_long_long = 8; then |
|
4975 |
uint64_type="unsigned long long" |
|
4976 |
else
|
|
4977 |
# The cast to long int works around a bug in the HP C Compiler
|
|
4978 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
4979 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
4980 |
# This bug is HP SR number 8606223364.
|
|
4981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int64" >&5 |
|
4982 |
$as_echo_n "checking size of unsigned __int64... " >&6; } |
|
4983 |
if ${ac_cv_sizeof_unsigned___int64+:} false; then : |
|
4984 |
$as_echo_n "(cached) " >&6 |
|
4985 |
else
|
|
4986 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int64))" "ac_cv_sizeof_unsigned___int64" "$ac_includes_default"; then : |
|
4987 |
||
4988 |
else
|
|
4989 |
if test "$ac_cv_type_unsigned___int64" = yes; then |
|
4990 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
4991 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4992 |
as_fn_error 77 "cannot compute sizeof (unsigned __int64) |
|
4993 |
See \`config.log' for more details" "$LINENO" 5; } |
|
4994 |
else
|
|
4995 |
ac_cv_sizeof_unsigned___int64=0 |
|
4996 |
fi
|
|
4997 |
fi
|
|
4998 |
||
4999 |
fi
|
|
5000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int64" >&5 |
|
5001 |
$as_echo "$ac_cv_sizeof_unsigned___int64" >&6; } |
|
5002 |
||
5003 |
||
5004 |
||
5005 |
cat >>confdefs.h <<_ACEOF
|
|
5006 |
#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64
|
|
5007 |
_ACEOF
|
|
5008 |
||
5009 |
||
5010 |
if test $ac_cv_sizeof_unsigned___int64 = 8; then |
|
5011 |
uint64_type="unsigned __int64" |
|
5012 |
else
|
|
5013 |
# The cast to long int works around a bug in the HP C Compiler
|
|
5014 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
5015 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
5016 |
# This bug is HP SR number 8606223364.
|
|
5017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int64_t" >&5 |
|
5018 |
$as_echo_n "checking size of u_int64_t... " >&6; } |
|
5019 |
if ${ac_cv_sizeof_u_int64_t+:} false; then : |
|
5020 |
$as_echo_n "(cached) " >&6 |
|
5021 |
else
|
|
5022 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int64_t))" "ac_cv_sizeof_u_int64_t" "$ac_includes_default"; then : |
|
5023 |
||
5024 |
else
|
|
5025 |
if test "$ac_cv_type_u_int64_t" = yes; then |
|
5026 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
5027 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
5028 |
as_fn_error 77 "cannot compute sizeof (u_int64_t) |
|
5029 |
See \`config.log' for more details" "$LINENO" 5; } |
|
5030 |
else
|
|
5031 |
ac_cv_sizeof_u_int64_t=0 |
|
5032 |
fi
|
|
5033 |
fi
|
|
5034 |
||
5035 |
fi
|
|
5036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int64_t" >&5 |
|
5037 |
$as_echo "$ac_cv_sizeof_u_int64_t" >&6; } |
|
5038 |
||
5039 |
||
5040 |
||
5041 |
cat >>confdefs.h <<_ACEOF
|
|
5042 |
#define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
|
|
5043 |
_ACEOF
|
|
5044 |
||
5045 |
||
5046 |
if test $ac_cv_sizeof_u_int64_t = 8; then |
|
5047 |
uint64_type="u_int64_t" |
|
5048 |
fi
|
|
5049 |
fi
|
|
5050 |
fi
|
|
5051 |
fi
|
|
5052 |
if test "$uint64_type" != "none"; then |
|
5053 |
GCFLAGS="$GCFLAGS -DGX_COLOR_INDEX_TYPE=\"$uint64_type\"" |
|
5054 |
fi
|
|
5055 |
||
5056 |
||
5057 |
SUBCONFIG_OPTS="" |
|
5058 |
||
5059 |
if test x$build_alias != x; then |
|
5060 |
SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias" |
|
5061 |
fi
|
|
5062 |
||
5063 |
||
5064 |
||
5065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
|
5066 |
$as_echo_n "checking for cos in -lm... " >&6; } |
|
5067 |
if ${ac_cv_lib_m_cos+:} false; then : |
|
5068 |
$as_echo_n "(cached) " >&6 |
|
5069 |
else
|
|
5070 |
ac_check_lib_save_LIBS=$LIBS |
|
5071 |
LIBS="-lm $LIBS" |
|
5072 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5073 |
/* end confdefs.h. */
|
|
5074 |
||
5075 |
/* Override any GCC internal prototype to avoid an error.
|
|
5076 |
Use char because int might match the return type of a GCC
|
|
5077 |
builtin and then its argument prototype would still apply. */
|
|
5078 |
#ifdef __cplusplus
|
|
5079 |
extern "C"
|
|
5080 |
#endif
|
|
5081 |
char cos ();
|
|
5082 |
int
|
|
5083 |
main ()
|
|
5084 |
{
|
|
5085 |
return cos ();
|
|
5086 |
;
|
|
5087 |
return 0;
|
|
5088 |
}
|
|
5089 |
_ACEOF
|
|
5090 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5091 |
ac_cv_lib_m_cos=yes |
|
5092 |
else
|
|
5093 |
ac_cv_lib_m_cos=no |
|
5094 |
fi
|
|
5095 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5096 |
conftest$ac_exeext conftest.$ac_ext |
|
5097 |
LIBS=$ac_check_lib_save_LIBS |
|
5098 |
fi
|
|
5099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
|
5100 |
$as_echo "$ac_cv_lib_m_cos" >&6; } |
|
5101 |
if test "x$ac_cv_lib_m_cos" = xyes; then : |
|
5102 |
cat >>confdefs.h <<_ACEOF
|
|
5103 |
#define HAVE_LIBM 1
|
|
5104 |
_ACEOF
|
|
5105 |
||
5106 |
LIBS="-lm $LIBS" |
|
5107 |
||
5108 |
fi
|
|
5109 |
||
5110 |
||
5111 |
SYNC="nosync" |
|
5112 |
PTHREAD_LIBS="" |
|
5113 |
||
5114 |
case `uname` in |
|
5115 |
MINGW*)
|
|
5116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for pthreads......" >&5 |
|
5117 |
$as_echo "$as_me: WARNING: disabling support for pthreads......" >&2;} |
|
5118 |
;;
|
|
5119 |
*)
|
|
5120 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
|
5121 |
$as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
|
5122 |
if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
|
5123 |
$as_echo_n "(cached) " >&6 |
|
5124 |
else
|
|
5125 |
ac_check_lib_save_LIBS=$LIBS |
|
5126 |
LIBS="-lpthread $LIBS" |
|
5127 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5128 |
/* end confdefs.h. */
|
|
5129 |
||
5130 |
/* Override any GCC internal prototype to avoid an error.
|
|
5131 |
Use char because int might match the return type of a GCC
|
|
5132 |
builtin and then its argument prototype would still apply. */
|
|
5133 |
#ifdef __cplusplus
|
|
5134 |
extern "C"
|
|
5135 |
#endif
|
|
5136 |
char pthread_create ();
|
|
5137 |
int
|
|
5138 |
main ()
|
|
5139 |
{
|
|
5140 |
return pthread_create ();
|
|
5141 |
;
|
|
5142 |
return 0;
|
|
5143 |
}
|
|
5144 |
_ACEOF
|
|
5145 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5146 |
ac_cv_lib_pthread_pthread_create=yes |
|
5147 |
else
|
|
5148 |
ac_cv_lib_pthread_pthread_create=no |
|
5149 |
fi
|
|
5150 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5151 |
conftest$ac_exeext conftest.$ac_ext |
|
5152 |
LIBS=$ac_check_lib_save_LIBS |
|
5153 |
fi
|
|
5154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
|
5155 |
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
|
5156 |
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
|
5157 |
||
5158 |
SYNC=posync; |
|
5159 |
PTHREAD_LIBS="-lpthread" |
|
5160 |
||
5161 |
fi
|
|
5162 |
||
5163 |
;;
|
|
5164 |
esac
|
|
5165 |
||
5166 |
||
5167 |
||
5168 |
||
5169 |
||
5170 |
# Check whether --with-libiconv was given.
|
|
5171 |
if test "${with_libiconv+set}" = set; then : |
|
5172 |
withval=$with_libiconv; |
|
5173 |
else
|
|
5174 |
with_libiconv=maybe |
|
5175 |
fi
|
|
5176 |
||
5177 |
found_iconv=no |
|
5178 |
case $with_libiconv in |
|
5179 |
maybe)
|
|
5180 |
# Check in the C library first
|
|
5181 |
ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" |
|
5182 |
if test "x$ac_cv_func_iconv_open" = xyes; then : |
|
5183 |
with_libiconv=no; found_iconv=yes |
|
5184 |
fi
|
|
5185 |
||
5186 |
# Check if we have GNU libiconv
|
|
5187 |
if test $found_iconv = "no"; then |
|
5188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
|
5189 |
$as_echo_n "checking for libiconv_open in -liconv... " >&6; } |
|
5190 |
if ${ac_cv_lib_iconv_libiconv_open+:} false; then : |
|
5191 |
$as_echo_n "(cached) " >&6 |
|
5192 |
else
|
|
5193 |
ac_check_lib_save_LIBS=$LIBS |
|
5194 |
LIBS="-liconv $LIBS" |
|
5195 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5196 |
/* end confdefs.h. */
|
|
5197 |
||
5198 |
/* Override any GCC internal prototype to avoid an error.
|
|
5199 |
Use char because int might match the return type of a GCC
|
|
5200 |
builtin and then its argument prototype would still apply. */
|
|
5201 |
#ifdef __cplusplus
|
|
5202 |
extern "C"
|
|
5203 |
#endif
|
|
5204 |
char libiconv_open ();
|
|
5205 |
int
|
|
5206 |
main ()
|
|
5207 |
{
|
|
5208 |
return libiconv_open ();
|
|
5209 |
;
|
|
5210 |
return 0;
|
|
5211 |
}
|
|
5212 |
_ACEOF
|
|
5213 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5214 |
ac_cv_lib_iconv_libiconv_open=yes |
|
5215 |
else
|
|
5216 |
ac_cv_lib_iconv_libiconv_open=no |
|
5217 |
fi
|
|
5218 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5219 |
conftest$ac_exeext conftest.$ac_ext |
|
5220 |
LIBS=$ac_check_lib_save_LIBS |
|
5221 |
fi
|
|
5222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
|
5223 |
$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } |
|
5224 |
if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : |
|
5225 |
with_libiconv=gnu; found_iconv=yes |
|
5226 |
fi
|
|
5227 |
||
5228 |
fi
|
|
5229 |
# Check if we have a iconv in -liconv, possibly from vendor
|
|
5230 |
if test $found_iconv = "no"; then |
|
5231 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
|
5232 |
$as_echo_n "checking for iconv_open in -liconv... " >&6; } |
|
5233 |
if ${ac_cv_lib_iconv_iconv_open+:} false; then : |
|
5234 |
$as_echo_n "(cached) " >&6 |
|
5235 |
else
|
|
5236 |
ac_check_lib_save_LIBS=$LIBS |
|
5237 |
LIBS="-liconv $LIBS" |
|
5238 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5239 |
/* end confdefs.h. */
|
|
5240 |
||
5241 |
/* Override any GCC internal prototype to avoid an error.
|
|
5242 |
Use char because int might match the return type of a GCC
|
|
5243 |
builtin and then its argument prototype would still apply. */
|
|
5244 |
#ifdef __cplusplus
|
|
5245 |
extern "C"
|
|
5246 |
#endif
|
|
5247 |
char iconv_open ();
|
|
5248 |
int
|
|
5249 |
main ()
|
|
5250 |
{
|
|
5251 |
return iconv_open ();
|
|
5252 |
;
|
|
5253 |
return 0;
|
|
5254 |
}
|
|
5255 |
_ACEOF
|
|
5256 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5257 |
ac_cv_lib_iconv_iconv_open=yes |
|
5258 |
else
|
|
5259 |
ac_cv_lib_iconv_iconv_open=no |
|
5260 |
fi
|
|
5261 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5262 |
conftest$ac_exeext conftest.$ac_ext |
|
5263 |
LIBS=$ac_check_lib_save_LIBS |
|
5264 |
fi
|
|
5265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
|
5266 |
$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } |
|
5267 |
if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : |
|
5268 |
with_libiconv=native; found_iconv=yes |
|
5269 |
fi
|
|
5270 |
||
5271 |
fi
|
|
5272 |
;;
|
|
5273 |
no)
|
|
5274 |
found_iconv=no |
|
5275 |
;;
|
|
5276 |
gnu|yes) |
|
5277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
|
5278 |
$as_echo_n "checking for libiconv_open in -liconv... " >&6; } |
|
5279 |
if ${ac_cv_lib_iconv_libiconv_open+:} false; then : |
|
5280 |
$as_echo_n "(cached) " >&6 |
|
5281 |
else
|
|
5282 |
ac_check_lib_save_LIBS=$LIBS |
|
5283 |
LIBS="-liconv $LIBS" |
|
5284 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5285 |
/* end confdefs.h. */
|
|
5286 |
||
5287 |
/* Override any GCC internal prototype to avoid an error.
|
|
5288 |
Use char because int might match the return type of a GCC
|
|
5289 |
builtin and then its argument prototype would still apply. */
|
|
5290 |
#ifdef __cplusplus
|
|
5291 |
extern "C"
|
|
5292 |
#endif
|
|
5293 |
char libiconv_open ();
|
|
5294 |
int
|
|
5295 |
main ()
|
|
5296 |
{
|
|
5297 |
return libiconv_open ();
|
|
5298 |
;
|
|
5299 |
return 0;
|
|
5300 |
}
|
|
5301 |
_ACEOF
|
|
5302 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5303 |
ac_cv_lib_iconv_libiconv_open=yes |
|
5304 |
else
|
|
5305 |
ac_cv_lib_iconv_libiconv_open=no |
|
5306 |
fi
|
|
5307 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5308 |
conftest$ac_exeext conftest.$ac_ext |
|
5309 |
LIBS=$ac_check_lib_save_LIBS |
|
5310 |
fi
|
|
5311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
|
5312 |
$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } |
|
5313 |
if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : |
|
5314 |
with_libiconv=gnu; found_iconv=yes |
|
5315 |
fi
|
|
5316 |
||
5317 |
;;
|
|
5318 |
native)
|
|
5319 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
|
5320 |
$as_echo_n "checking for iconv_open in -liconv... " >&6; } |
|
5321 |
if ${ac_cv_lib_iconv_iconv_open+:} false; then : |
|
5322 |
$as_echo_n "(cached) " >&6 |
|
5323 |
else
|
|
5324 |
ac_check_lib_save_LIBS=$LIBS |
|
5325 |
LIBS="-liconv $LIBS" |
|
5326 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5327 |
/* end confdefs.h. */
|
|
5328 |
||
5329 |
/* Override any GCC internal prototype to avoid an error.
|
|
5330 |
Use char because int might match the return type of a GCC
|
|
5331 |
builtin and then its argument prototype would still apply. */
|
|
5332 |
#ifdef __cplusplus
|
|
5333 |
extern "C"
|
|
5334 |
#endif
|
|
5335 |
char iconv_open ();
|
|
5336 |
int
|
|
5337 |
main ()
|
|
5338 |
{
|
|
5339 |
return iconv_open ();
|
|
5340 |
;
|
|
5341 |
return 0;
|
|
5342 |
}
|
|
5343 |
_ACEOF
|
|
5344 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5345 |
ac_cv_lib_iconv_iconv_open=yes |
|
5346 |
else
|
|
5347 |
ac_cv_lib_iconv_iconv_open=no |
|
5348 |
fi
|
|
5349 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5350 |
conftest$ac_exeext conftest.$ac_ext |
|
5351 |
LIBS=$ac_check_lib_save_LIBS |
|
5352 |
fi
|
|
5353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
|
5354 |
$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } |
|
5355 |
if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : |
|
5356 |
with_libiconv=native; found_iconv=yes |
|
5357 |
fi
|
|
5358 |
||
5359 |
;;
|
|
5360 |
esac
|
|
5361 |
if test x$found_iconv != xno -a x$with_libiconv != xno ; then |
|
5362 |
LIBS="$LIBS -liconv" |
|
5363 |
fi
|
|
5364 |
||
5365 |
case $with_libiconv in |
|
5366 |
gnu)
|
|
5367 |
||
5368 |
$as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h |
|
5369 |
||
5370 |
CFLAGS="$CFLAGS -DUSE_LIBICONV_GNU" |
|
5371 |
;;
|
|
5372 |
native)
|
|
5373 |
||
5374 |
$as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h |
|
5375 |
||
5376 |
;;
|
|
5377 |
esac
|
|
5378 |
||
5379 |
||
5380 |
# Check whether --with-libidn was given.
|
|
5381 |
if test "${with_libidn+set}" = set; then : |
|
5382 |
withval=$with_libidn; |
|
5383 |
else
|
|
5384 |
with_libidn=maybe |
|
5385 |
fi
|
|
5386 |
||
5387 |
if test x$with_libidn != xno; then |
|
5388 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stringprep in -lidn" >&5 |
|
5389 |
$as_echo_n "checking for stringprep in -lidn... " >&6; } |
|
5390 |
if ${ac_cv_lib_idn_stringprep+:} false; then : |
|
5391 |
$as_echo_n "(cached) " >&6 |
|
5392 |
else
|
|
5393 |
ac_check_lib_save_LIBS=$LIBS |
|
5394 |
LIBS="-lidn $LIBS" |
|
5395 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5396 |
/* end confdefs.h. */
|
|
5397 |
||
5398 |
/* Override any GCC internal prototype to avoid an error.
|
|
5399 |
Use char because int might match the return type of a GCC
|
|
5400 |
builtin and then its argument prototype would still apply. */
|
|
5401 |
#ifdef __cplusplus
|
|
5402 |
extern "C"
|
|
5403 |
#endif
|
|
5404 |
char stringprep ();
|
|
5405 |
int
|
|
5406 |
main ()
|
|
5407 |
{
|
|
5408 |
return stringprep ();
|
|
5409 |
;
|
|
5410 |
return 0;
|
|
5411 |
}
|
|
5412 |
_ACEOF
|
|
5413 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5414 |
ac_cv_lib_idn_stringprep=yes |
|
5415 |
else
|
|
5416 |
ac_cv_lib_idn_stringprep=no |
|
5417 |
fi
|
|
5418 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5419 |
conftest$ac_exeext conftest.$ac_ext |
|
5420 |
LIBS=$ac_check_lib_save_LIBS |
|
5421 |
fi
|
|
5422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_stringprep" >&5 |
|
5423 |
$as_echo "$ac_cv_lib_idn_stringprep" >&6; } |
|
5424 |
if test "x$ac_cv_lib_idn_stringprep" = xyes; then : |
|
5425 |
||
5426 |
with_libidn=no |
|
5427 |
ac_fn_c_check_header_mongrel "$LINENO" "stringprep.h" "ac_cv_header_stringprep_h" "$ac_includes_default" |
|
5428 |
if test "x$ac_cv_header_stringprep_h" = xyes; then : |
|
5429 |
with_libidn=yes |
|
5430 |
fi
|
|
5431 |
||
5432 |
||
5433 |
||
5434 |
else
|
|
5435 |
||
5436 |
if test x$with_libidn != xmaybe; then |
|
5437 |
as_fn_error $? "libidn not found" "$LINENO" 5 |
|
5438 |
fi
|
|
5439 |
with_libidn=no |
|
5440 |
||
5441 |
fi
|
|
5442 |
||
5443 |
fi
|
|
5444 |
HAVE_LIBIDN='' |
|
5445 |
UTF8DEVS='' |
|
5446 |
if test x$with_libidn != xno; then |
|
5447 |
HAVE_LIBIDN=-DHAVE_LIBIDN |
|
5448 |
LIBS="$LIBS -lidn" |
|
5449 |
||
5450 |
if test x$found_iconv != xno; then |
|
5451 |
UTF8DEVS='$(PSD)utf8.dev' |
|
5452 |
fi
|
|
5453 |
fi
|
|
5454 |
||
5455 |
||
5456 |
||
5457 |
||
5458 |
# Check whether --with-libpaper was given.
|
|
5459 |
if test "${with_libpaper+set}" = set; then : |
|
5460 |
withval=$with_libpaper; |
|
5461 |
fi
|
|
5462 |
||
5463 |
if test x$with_libpaper != xno; then |
|
5464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 |
|
5465 |
$as_echo_n "checking for systempapername in -lpaper... " >&6; } |
|
5466 |
if ${ac_cv_lib_paper_systempapername+:} false; then : |
|
5467 |
$as_echo_n "(cached) " >&6 |
|
5468 |
else
|
|
5469 |
ac_check_lib_save_LIBS=$LIBS |
|
5470 |
LIBS="-lpaper $LIBS" |
|
5471 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5472 |
/* end confdefs.h. */
|
|
5473 |
||
5474 |
/* Override any GCC internal prototype to avoid an error.
|
|
5475 |
Use char because int might match the return type of a GCC
|
|
5476 |
builtin and then its argument prototype would still apply. */
|
|
5477 |
#ifdef __cplusplus
|
|
5478 |
extern "C"
|
|
5479 |
#endif
|
|
5480 |
char systempapername ();
|
|
5481 |
int
|
|
5482 |
main ()
|
|
5483 |
{
|
|
5484 |
return systempapername ();
|
|
5485 |
;
|
|
5486 |
return 0;
|
|
5487 |
}
|
|
5488 |
_ACEOF
|
|
5489 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5490 |
ac_cv_lib_paper_systempapername=yes |
|
5491 |
else
|
|
5492 |
ac_cv_lib_paper_systempapername=no |
|
5493 |
fi
|
|
5494 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5495 |
conftest$ac_exeext conftest.$ac_ext |
|
5496 |
LIBS=$ac_check_lib_save_LIBS |
|
5497 |
fi
|
|
5498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 |
|
5499 |
$as_echo "$ac_cv_lib_paper_systempapername" >&6; } |
|
5500 |
if test "x$ac_cv_lib_paper_systempapername" = xyes; then : |
|
5501 |
with_libpaper=yes |
|
5502 |
else
|
|
5503 |
||
5504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for libpaper" >&5 |
|
5505 |
$as_echo "$as_me: WARNING: disabling support for libpaper" >&2;} |
|
5506 |
with_libpaper=no |
|
5507 |
||
5508 |
fi
|
|
5509 |
||
5510 |
fi
|
|
5511 |
if test x$with_libpaper != xno; then |
|
5512 |
ac_fn_c_check_header_mongrel "$LINENO" "paper.h" "ac_cv_header_paper_h" "$ac_includes_default" |
|
5513 |
if test "x$ac_cv_header_paper_h" = xyes; then : |
|
5514 |
with_libpaper=yes |
|
5515 |
else
|
|
5516 |
||
5517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for libpaper" >&5 |
|
5518 |
$as_echo "$as_me: WARNING: disabling support for libpaper" >&2;} |
|
5519 |
with_libpaper=no |
|
5520 |
||
5521 |
fi
|
|
5522 |
||
5523 |
||
5524 |
fi
|
|
5525 |
||
5526 |
if test x$with_libpaper != xno; then |
|
5527 |
LIBS="$LIBS -lpaper" |
|
5528 |
||
5529 |
$as_echo "#define USE_LIBPAPER 1" >>confdefs.h |
|
5530 |
||
5531 |
CFLAGS="$CFLAGS -DUSE_LIBPAPER" |
|
5532 |
fi
|
|
5533 |
||
5534 |
HAVE_FONTCONFIG="" |
|
5535 |
FONTCONFIG_CFLAGS="" |
|
5536 |
FONTCONFIG_LIBS="" |
|
5537 |
# Check whether --enable-fontconfig was given.
|
|
5538 |
if test "${enable_fontconfig+set}" = set; then : |
|
5539 |
enableval=$enable_fontconfig; |
|
5540 |
fi
|
|
5541 |
||
5542 |
if test "$enable_fontconfig" != "no"; then |
|
5543 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard
|
|
5544 |
# autoconf macro and b) requires pkg-config on the system, which is
|
|
5545 |
# NOT standard on ANY OS, including Linux!
|
|
5546 |
if test "x$PKGCONFIG" != x; then |
|
5547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig with pkg-config" >&5 |
|
5548 |
$as_echo_n "checking for fontconfig with pkg-config... " >&6; } |
|
5549 |
if $PKGCONFIG --exists fontconfig; then |
|
5550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
5551 |
$as_echo "yes" >&6; } |
|
5552 |
FONTCONFIG_CFLAGS="$CFLAGS `$PKGCONFIG --cflags fontconfig`" |
|
5553 |
FONTCONFIG_LIBS="`$PKGCONFIG --libs fontconfig`" |
|
5554 |
HAVE_FONTCONFIG=-DHAVE_FONTCONFIG |
|
5555 |
else
|
|
5556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5557 |
$as_echo "no" >&6; } |
|
5558 |
fi
|
|
5559 |
fi
|
|
5560 |
if test -z "$HAVE_FONTCONFIG"; then |
|
5561 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInitLoadConfigAndFonts in -lfontconfig" >&5 |
|
5562 |
$as_echo_n "checking for FcInitLoadConfigAndFonts in -lfontconfig... " >&6; } |
|
5563 |
if ${ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts+:} false; then : |
|
5564 |
$as_echo_n "(cached) " >&6 |
|
5565 |
else
|
|
5566 |
ac_check_lib_save_LIBS=$LIBS |
|
5567 |
LIBS="-lfontconfig $LIBS" |
|
5568 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5569 |
/* end confdefs.h. */
|
|
5570 |
||
5571 |
/* Override any GCC internal prototype to avoid an error.
|
|
5572 |
Use char because int might match the return type of a GCC
|
|
5573 |
builtin and then its argument prototype would still apply. */
|
|
5574 |
#ifdef __cplusplus
|
|
5575 |
extern "C"
|
|
5576 |
#endif
|
|
5577 |
char FcInitLoadConfigAndFonts ();
|
|
5578 |
int
|
|
5579 |
main ()
|
|
5580 |
{
|
|
5581 |
return FcInitLoadConfigAndFonts ();
|
|
5582 |
;
|
|
5583 |
return 0;
|
|
5584 |
}
|
|
5585 |
_ACEOF
|
|
5586 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5587 |
ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts=yes |
|
5588 |
else
|
|
5589 |
ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts=no |
|
5590 |
fi
|
|
5591 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5592 |
conftest$ac_exeext conftest.$ac_ext |
|
5593 |
LIBS=$ac_check_lib_save_LIBS |
|
5594 |
fi
|
|
5595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" >&5 |
|
5596 |
$as_echo "$ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" >&6; } |
|
5597 |
if test "x$ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" = xyes; then : |
|
5598 |
||
5599 |
ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
5600 |
if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : |
|
5601 |
||
5602 |
FONTCONFIG_LIBS="-lfontconfig" |
|
5603 |
HAVE_FONTCONFIG="-DHAVE_FONTCONFIG" |
|
5604 |
||
5605 |
fi
|
|
5606 |
||
5607 |
||
5608 |
||
5609 |
fi
|
|
5610 |
||
5611 |
fi
|
|
5612 |
fi
|
|
5613 |
||
5614 |
||
5615 |
||
5616 |
||
5617 |
HAVE_DBUS="" |
|
5618 |
DBUS_CFLAGS="" |
|
5619 |
DBUS_LIBS="" |
|
5620 |
# Check whether --enable-dbus was given.
|
|
5621 |
if test "${enable_dbus+set}" = set; then : |
|
5622 |
enableval=$enable_dbus; |
|
5623 |
fi
|
|
5624 |
||
5625 |
if test "$enable_dbus" != "no"; then |
|
5626 |
if test "x$PKGCONFIG" != x; then |
|
5627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus with pkg-config" >&5 |
|
5628 |
$as_echo_n "checking for dbus with pkg-config... " >&6; } |
|
5629 |
if $PKGCONFIG --exists dbus-1; then |
|
5630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
5631 |
$as_echo "yes" >&6; } |
|
5632 |
DBUS_CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1`" |
|
5633 |
DBUS_LIBS="`$PKGCONFIG --libs dbus-1`" |
|
5634 |
HAVE_DBUS=-DHAVE_DBUS |
|
5635 |
else
|
|
5636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5637 |
$as_echo "no" >&6; } |
|
5638 |
fi
|
|
5639 |
fi
|
|
5640 |
if test -z "$HAVE_DBUS"; then |
|
5641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_message_iter_get_basic in -ldbus" >&5 |
|
5642 |
$as_echo_n "checking for dbus_message_iter_get_basic in -ldbus... " >&6; } |
|
5643 |
if ${ac_cv_lib_dbus_dbus_message_iter_get_basic+:} false; then : |
|
5644 |
$as_echo_n "(cached) " >&6 |
|
5645 |
else
|
|
5646 |
ac_check_lib_save_LIBS=$LIBS |
|
5647 |
LIBS="-ldbus $LIBS" |
|
5648 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5649 |
/* end confdefs.h. */
|
|
5650 |
||
5651 |
/* Override any GCC internal prototype to avoid an error.
|
|
5652 |
Use char because int might match the return type of a GCC
|
|
5653 |
builtin and then its argument prototype would still apply. */
|
|
5654 |
#ifdef __cplusplus
|
|
5655 |
extern "C"
|
|
5656 |
#endif
|
|
5657 |
char dbus_message_iter_get_basic ();
|
|
5658 |
int
|
|
5659 |
main ()
|
|
5660 |
{
|
|
5661 |
return dbus_message_iter_get_basic ();
|
|
5662 |
;
|
|
5663 |
return 0;
|
|
5664 |
}
|
|
5665 |
_ACEOF
|
|
5666 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5667 |
ac_cv_lib_dbus_dbus_message_iter_get_basic=yes |
|
5668 |
else
|
|
5669 |
ac_cv_lib_dbus_dbus_message_iter_get_basic=no |
|
5670 |
fi
|
|
5671 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5672 |
conftest$ac_exeext conftest.$ac_ext |
|
5673 |
LIBS=$ac_check_lib_save_LIBS |
|
5674 |
fi
|
|
5675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_dbus_message_iter_get_basic" >&5 |
|
5676 |
$as_echo "$ac_cv_lib_dbus_dbus_message_iter_get_basic" >&6; } |
|
5677 |
if test "x$ac_cv_lib_dbus_dbus_message_iter_get_basic" = xyes; then : |
|
5678 |
||
5679 |
ac_fn_c_check_header_mongrel "$LINENO" "dbus-1.0/dbus/dbus.h" "ac_cv_header_dbus_1_0_dbus_dbus_h" "$ac_includes_default" |
|
5680 |
if test "x$ac_cv_header_dbus_1_0_dbus_dbus_h" = xyes; then : |
|
5681 |
||
5682 |
DBUS_LIBS="-ldbus-1 -lpthread -lrt" |
|
5683 |
HAVE_DBUS="-DHAVE_DBUS" |
|
5684 |
||
5685 |
fi
|
|
5686 |
||
5687 |
||
5688 |
||
5689 |
fi
|
|
5690 |
||
5691 |
fi
|
|
5692 |
fi
|
|
5693 |
||
5694 |
||
5695 |
||
5696 |
||
5697 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
5698 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
5699 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
|
5700 |
$as_echo_n "(cached) " >&6 |
|
5701 |
else
|
|
5702 |
ac_check_lib_save_LIBS=$LIBS |
|
5703 |
LIBS="-ldl $LIBS" |
|
5704 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5705 |
/* end confdefs.h. */
|
|
5706 |
||
5707 |
/* Override any GCC internal prototype to avoid an error.
|
|
5708 |
Use char because int might match the return type of a GCC
|
|
5709 |
builtin and then its argument prototype would still apply. */
|
|
5710 |
#ifdef __cplusplus
|
|
5711 |
extern "C"
|
|
5712 |
#endif
|
|
5713 |
char dlopen ();
|
|
5714 |
int
|
|
5715 |
main ()
|
|
5716 |
{
|
|
5717 |
return dlopen ();
|
|
5718 |
;
|
|
5719 |
return 0;
|
|
5720 |
}
|
|
5721 |
_ACEOF
|
|
5722 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5723 |
ac_cv_lib_dl_dlopen=yes |
|
5724 |
else
|
|
5725 |
ac_cv_lib_dl_dlopen=no |
|
5726 |
fi
|
|
5727 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5728 |
conftest$ac_exeext conftest.$ac_ext |
|
5729 |
LIBS=$ac_check_lib_save_LIBS |
|
5730 |
fi
|
|
5731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
5732 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
5733 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
5734 |
cat >>confdefs.h <<_ACEOF
|
|
5735 |
#define HAVE_LIBDL 1
|
|
5736 |
_ACEOF
|
|
5737 |
||
5738 |
LIBS="-ldl $LIBS" |
|
5739 |
||
5740 |
fi
|
|
5741 |
||
5742 |
||
5743 |
# Check whether --enable-freetype was given.
|
|
5744 |
if test "${enable_freetype+set}" = set; then : |
|
5745 |
enableval=$enable_freetype; |
|
5746 |
fi
|
|
5747 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5748 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5749 |
FT_BRIDGE=0 |
5750 |
SHARE_FT=0 |
|
5751 |
FTSRCDIR= |
|
5752 |
FT_CFLAGS= |
|
5753 |
FT_LIBS= |
|
5754 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5755 |
INSERT_UFST_BRIDGE_EQUAL_ONE= |
5756 |
UFST_ROOT= |
|
5757 |
UFST_CFLAGS= |
|
5758 |
UFST_LIB_EXT= |
|
5759 |
FAPIUFST_MAK="\$(GLSRCDIR)/stub.mak" |
|
5760 |
||
5761 |
# Check whether --enable-fapi was given.
|
|
5762 |
if test "${enable_fapi+set}" = set; then : |
|
5763 |
enableval=$enable_fapi; |
|
5764 |
fi
|
|
5765 |
||
5766 |
||
5767 |
if test x"$enable_fapi" != xno; then |
|
5768 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5769 |
|
5770 |
# Check whether --with-ufst was given.
|
|
5771 |
if test "${with_ufst+set}" = set; then : |
|
5772 |
withval=$with_ufst; |
|
5773 |
else
|
|
5774 |
with_ufst=no |
|
5775 |
fi
|
|
5776 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5777 |
|
5778 |
if test x"$with_ufst" != xno; then |
|
5779 |
if test -d $with_ufst; then |
|
5780 |
INSERT_UFST_BRIDGE_EQUAL_ONE="UFST_BRIDGE=1" |
|
5781 |
case $with_ufst in |
|
5782 |
/*) UFST_ROOT=$with_ufst ;; |
|
5783 |
*) UFST_ROOT=`pwd`/$with_ufst ;; |
|
5784 |
esac
|
|
5785 |
||
5786 |
FAPIUFST_MAK="\$(UFST_ROOT)/fapiufst.mak" |
|
5787 |
||
5788 |
if ! test -f $UFST_ROOT/fapiufst.mak ; then |
|
5789 |
echo $UFST_ROOT/fapiufst.mak |
|
5790 |
as_fn_error $? "UFST: fapiufst.mak not found" "$LINENO" 5 |
|
5791 |
fi
|
|
5792 |
||
5793 |
# Check pointer size
|
|
5794 |
# The cast to long int works around a bug in the HP C Compiler
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5795 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
5796 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
5797 |
# This bug is HP SR number 8606223364.
|
|
5798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 |
|
5799 |
$as_echo_n "checking size of char*... " >&6; } |
|
5800 |
if ${ac_cv_sizeof_charp+:} false; then : |
|
5801 |
$as_echo_n "(cached) " >&6 |
|
5802 |
else
|
|
5803 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : |
|
5804 |
||
5805 |
else
|
|
5806 |
if test "$ac_cv_type_charp" = yes; then |
|
5807 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
5808 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
5809 |
as_fn_error 77 "cannot compute sizeof (char*) |
|
5810 |
See \`config.log' for more details" "$LINENO" 5; } |
|
5811 |
else
|
|
5812 |
ac_cv_sizeof_charp=0 |
|
5813 |
fi
|
|
5814 |
fi
|
|
5815 |
||
5816 |
fi
|
|
5817 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 |
|
5818 |
$as_echo "$ac_cv_sizeof_charp" >&6; } |
|
5819 |
||
5820 |
||
5821 |
||
5822 |
cat >>confdefs.h <<_ACEOF
|
|
5823 |
#define SIZEOF_CHARP $ac_cv_sizeof_charp
|
|
5824 |
_ACEOF
|
|
5825 |
||
5826 |
||
5827 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5828 |
# UFST 5.x uses strcmpi() but on GNU systems the equivalent is
|
5829 |
# strcasecmp()
|
|
5830 |
if test "x$ac_cv_sizeof_charp" = "x8"; then |
|
5831 |
UFST_CFLAGS="-DGCCx86_64 -DO_BINARY=0 -Dstrcmpi=strcasecmp" |
|
5832 |
else
|
|
5833 |
if test "x$ac_cv_sizeof_charp" = "x4"; then |
|
5834 |
UFST_CFLAGS="-DGCCx86 -DO_BINARY=0 -Dstrcmpi=strcasecmp" |
|
5835 |
fi
|
|
5836 |
fi
|
|
5837 |
||
5838 |
UFST_LIB_EXT=.a |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5839 |
else
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5840 |
as_fn_error $? "UFST source directory not found" "$LINENO" 5 |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5841 |
fi
|
5842 |
fi
|
|
5843 |
||
5844 |
if test x"$enable_freetype" != xno; then |
|
5845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local freetype library source" >&5 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5846 |
$as_echo_n "checking for local freetype library source... " >&6; } |
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5847 |
for dir in $srccdir/freetype2 $srcdir/freetype; do |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5848 |
if test -f $dir/src/base/ftbbox.c; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5850 |
$as_echo "yes" >&6; } |
|
5851 |
SHARE_FT=0 |
|
5852 |
FTSRCDIR="$dir" |
|
5853 |
FT_CFLAGS="-I$dir/include" |
|
5854 |
FT_BRIDGE=1 |
|
5855 |
break;
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5856 |
fi
|
5857 |
done
|
|
5858 |
||
5859 |
if test -z $FTSRCDIR; then |
|
5860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5861 |
$as_echo "no" >&6; } |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5862 |
if test "x$PKGCONFIG" != x; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system freetype2 >= 2.4.2 with pkg-config" >&5 |
5864 |
$as_echo_n "checking for system freetype2 >= 2.4.2 with pkg-config... " >&6; } |
|
5865 |
# pkg-config needs the libtool version, which != the freetype2 version <sigh!>
|
|
5866 |
# There is a table of corresponding ft2<->libtool numbers in freetype/docs/VERSION.DLL
|
|
5867 |
if $PKGCONFIG --atleast-version=12.0.6 freetype2; then |
|
5868 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
5869 |
$as_echo "yes" >&6; } |
|
5870 |
FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags freetype2`" |
|
5871 |
FT_LIBS="`$PKGCONFIG --libs freetype2`" |
|
5872 |
FT_BRIDGE=1 |
|
5873 |
SHARE_FT=1 |
|
5874 |
else
|
|
5875 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5876 |
$as_echo "no" >&6; } |
|
5877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype library source not found...using native rasterizer" >&5 |
|
5878 |
$as_echo "$as_me: WARNING: freetype library source not found...using native rasterizer" >&2;} |
|
5879 |
AFS=1 |
|
5880 |
fi
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5881 |
else
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5882 |
ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
5883 |
if test "x$ac_cv_header_ft2build_h" = xyes; then : |
|
5884 |
FT_BRIDGE=1 |
|
5885 |
else
|
|
5886 |
AFS=1 |
|
5887 |
fi
|
|
5888 |
||
5889 |
||
5890 |
||
5891 |
if test "x$FT_BRIDGE" = x1; then |
|
5892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
|
5893 |
$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
|
5894 |
if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : |
|
5895 |
$as_echo_n "(cached) " >&6 |
|
5896 |
else
|
|
5897 |
ac_check_lib_save_LIBS=$LIBS |
|
5898 |
LIBS="-lfreetype $LIBS" |
|
5899 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5900 |
/* end confdefs.h. */
|
|
5901 |
||
5902 |
/* Override any GCC internal prototype to avoid an error.
|
|
5903 |
Use char because int might match the return type of a GCC
|
|
5904 |
builtin and then its argument prototype would still apply. */
|
|
5905 |
#ifdef __cplusplus
|
|
5906 |
extern "C"
|
|
5907 |
#endif
|
|
5908 |
char FT_Init_FreeType ();
|
|
5909 |
int
|
|
5910 |
main ()
|
|
5911 |
{
|
|
5912 |
return FT_Init_FreeType ();
|
|
5913 |
;
|
|
5914 |
return 0;
|
|
5915 |
}
|
|
5916 |
_ACEOF
|
|
5917 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5918 |
ac_cv_lib_freetype_FT_Init_FreeType=yes |
|
5919 |
else
|
|
5920 |
ac_cv_lib_freetype_FT_Init_FreeType=no |
|
5921 |
fi
|
|
5922 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5923 |
conftest$ac_exeext conftest.$ac_ext |
|
5924 |
LIBS=$ac_check_lib_save_LIBS |
|
5925 |
fi
|
|
5926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
|
5927 |
$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
|
5928 |
if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : |
|
5929 |
FT_BRIDGE=1 |
|
5930 |
else
|
|
5931 |
FT_BRIDGE=0; AFS=1 |
|
5932 |
fi
|
|
5933 |
||
5934 |
||
5935 |
if test "x$FT_BRIDGE" = x1; then |
|
5936 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system freetype2 library >= 2.4.2" >&5 |
|
5937 |
$as_echo_n "checking for system freetype2 library >= 2.4.2... " >&6; } |
|
5938 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5939 |
/* end confdefs.h. */
|
|
5940 |
#include "ft2build.h"
|
|
5941 |
#include FT_FREETYPE_H
|
|
5942 |
int
|
|
5943 |
main ()
|
|
5944 |
{
|
|
5945 |
||
5946 |
#if FREETYPE_MAJOR < 2
|
|
5947 |
FAIL
|
|
5948 |
#endif
|
|
5949 |
#if FREETYPE_MINOR < 4
|
|
5950 |
FAIL
|
|
5951 |
#endif
|
|
5952 |
#if FREETYPE_PATCH < 2
|
|
5953 |
FAIL
|
|
5954 |
#endif
|
|
5955 |
return(0);
|
|
5956 |
||
5957 |
;
|
|
5958 |
return 0;
|
|
5959 |
}
|
|
5960 |
_ACEOF
|
|
5961 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
5962 |
FT_BRIDGE=1;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
5963 |
$as_echo "yes" >&6; } |
|
5964 |
else
|
|
5965 |
FT_BRIDGE=0; AFS=1;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5966 |
$as_echo "no" >&6; } |
|
5967 |
fi
|
|
5968 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5969 |
fi
|
|
5970 |
fi
|
|
5971 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5972 |
fi
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5973 |
fi
|
5974 |
fi
|
|
5975 |
fi
|
|
5976 |
||
5977 |
||
5978 |
||
5979 |
||
5980 |
||
5981 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
5982 |
|
5983 |
||
5984 |
||
5985 |
||
5986 |
||
5987 |
||
5988 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5989 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jpeg library source" >&5 |
5990 |
$as_echo_n "checking for local jpeg library source... " >&6; } |
|
5991 |
LIBJPEGDIR=src |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5992 |
if test -f $srcdir/jpeg/jpeglib.h; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jpeg" >&5 |
5994 |
$as_echo "jpeg" >&6; } |
|
5995 |
SHARE_LIBJPEG=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
5996 |
LIBJPEGDIR=$srcdir/jpeg |
5997 |
elif test -f $srcdir/jpeg-6b/jpeglib.h; then |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
5998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jpeg-6b" >&5 |
5999 |
$as_echo "jpeg-6b" >&6; } |
|
6000 |
SHARE_LIBJPEG=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6001 |
LIBJPEGDIR=$srcdir/jpeg-6b |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6002 |
else
|
6003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6004 |
$as_echo "no" >&6; } |
|
6005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 |
|
6006 |
$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; } |
|
6007 |
if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then : |
|
6008 |
$as_echo_n "(cached) " >&6 |
|
6009 |
else
|
|
6010 |
ac_check_lib_save_LIBS=$LIBS |
|
6011 |
LIBS="-ljpeg $LIBS" |
|
6012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6013 |
/* end confdefs.h. */
|
|
6014 |
||
6015 |
/* Override any GCC internal prototype to avoid an error.
|
|
6016 |
Use char because int might match the return type of a GCC
|
|
6017 |
builtin and then its argument prototype would still apply. */
|
|
6018 |
#ifdef __cplusplus
|
|
6019 |
extern "C"
|
|
6020 |
#endif
|
|
6021 |
char jpeg_set_defaults ();
|
|
6022 |
int
|
|
6023 |
main ()
|
|
6024 |
{
|
|
6025 |
return jpeg_set_defaults ();
|
|
6026 |
;
|
|
6027 |
return 0;
|
|
6028 |
}
|
|
6029 |
_ACEOF
|
|
6030 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6031 |
ac_cv_lib_jpeg_jpeg_set_defaults=yes |
|
6032 |
else
|
|
6033 |
ac_cv_lib_jpeg_jpeg_set_defaults=no |
|
6034 |
fi
|
|
6035 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6036 |
conftest$ac_exeext conftest.$ac_ext |
|
6037 |
LIBS=$ac_check_lib_save_LIBS |
|
6038 |
fi
|
|
6039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 |
|
6040 |
$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } |
|
6041 |
if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then : |
|
6042 |
||
6043 |
for ac_header in jpeglib.h
|
|
6044 |
do :
|
|
6045 |
ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
|
6046 |
if test "x$ac_cv_header_jpeglib_h" = xyes; then : |
|
6047 |
cat >>confdefs.h <<_ACEOF
|
|
6048 |
#define HAVE_JPEGLIB_H 1
|
|
6049 |
_ACEOF
|
|
6050 |
SHARE_LIBJPEG=1 |
|
6051 |
fi
|
|
6052 |
||
6053 |
done
|
|
6054 |
||
6055 |
||
6056 |
fi
|
|
6057 |
||
6058 |
fi
|
|
6059 |
if test -z "$SHARE_LIBJPEG"; then |
|
6060 |
as_fn_error $? "I wasn't able to find a copy |
|
6061 |
of the jpeg library. This is required for compiling
|
|
6062 |
ghostscript. Please download a copy of the source,
|
|
6063 |
e.g. from http://www.ijg.org/, unpack it at the
|
|
6064 |
top level of the gs source tree, and rename
|
|
6065 |
the directory to 'jpeg'.
|
|
6066 |
" "$LINENO" 5 |
|
6067 |
fi
|
|
6068 |
||
6069 |
||
6070 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jmemsys.h" >&5 |
|
6071 |
$as_echo_n "checking for jmemsys.h... " >&6; } |
|
6072 |
if test -r $LIBJPEGDIR/jmemsys.h; then |
|
6073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6074 |
$as_echo "yes" >&6; } |
|
6075 |
else
|
|
6076 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6077 |
$as_echo "no" >&6; } |
|
6078 |
||
6079 |
$as_echo "#define DONT_HAVE_JMEMSYS_H 1" >>confdefs.h |
|
6080 |
||
6081 |
fi
|
|
6082 |
||
6083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local zlib source" >&5 |
|
6084 |
$as_echo_n "checking for local zlib source... " >&6; } |
|
6085 |
# we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
|
|
6086 |
# this seems a harmless default
|
|
6087 |
ZLIBDIR=src |
|
6088 |
AUX_SHARED_ZLIB= |
|
6089 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6090 |
if test -d $srcdir/zlib; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6092 |
$as_echo "yes" >&6; } |
|
6093 |
SHARE_ZLIB=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6094 |
ZLIBDIR=$srcdir/zlib |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6095 |
else
|
6096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6097 |
$as_echo "no" >&6; } |
|
6098 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
|
6099 |
$as_echo_n "checking for deflate in -lz... " >&6; } |
|
6100 |
if ${ac_cv_lib_z_deflate+:} false; then : |
|
6101 |
$as_echo_n "(cached) " >&6 |
|
6102 |
else
|
|
6103 |
ac_check_lib_save_LIBS=$LIBS |
|
6104 |
LIBS="-lz $LIBS" |
|
6105 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6106 |
/* end confdefs.h. */
|
|
6107 |
||
6108 |
/* Override any GCC internal prototype to avoid an error.
|
|
6109 |
Use char because int might match the return type of a GCC
|
|
6110 |
builtin and then its argument prototype would still apply. */
|
|
6111 |
#ifdef __cplusplus
|
|
6112 |
extern "C"
|
|
6113 |
#endif
|
|
6114 |
char deflate ();
|
|
6115 |
int
|
|
6116 |
main ()
|
|
6117 |
{
|
|
6118 |
return deflate ();
|
|
6119 |
;
|
|
6120 |
return 0;
|
|
6121 |
}
|
|
6122 |
_ACEOF
|
|
6123 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6124 |
ac_cv_lib_z_deflate=yes |
|
6125 |
else
|
|
6126 |
ac_cv_lib_z_deflate=no |
|
6127 |
fi
|
|
6128 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6129 |
conftest$ac_exeext conftest.$ac_ext |
|
6130 |
LIBS=$ac_check_lib_save_LIBS |
|
6131 |
fi
|
|
6132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
|
6133 |
$as_echo "$ac_cv_lib_z_deflate" >&6; } |
|
6134 |
if test "x$ac_cv_lib_z_deflate" = xyes; then : |
|
6135 |
||
6136 |
for ac_header in zlib.h
|
|
6137 |
do :
|
|
6138 |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
|
6139 |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
|
6140 |
cat >>confdefs.h <<_ACEOF
|
|
6141 |
#define HAVE_ZLIB_H 1
|
|
6142 |
_ACEOF
|
|
6143 |
SHARE_ZLIB=1; AUX_SHARED_ZLIB="-l\$(ZLIB_NAME)" |
|
6144 |
fi
|
|
6145 |
||
6146 |
done
|
|
6147 |
||
6148 |
||
6149 |
fi
|
|
6150 |
||
6151 |
fi
|
|
6152 |
if test -z "$SHARE_ZLIB"; then |
|
6153 |
as_fn_error $? "I did not find a copy of zlib on your system. |
|
6154 |
Please either install it, or unpack a copy of the source in a
|
|
6155 |
local directory named 'zlib'. See http://www.gzip.org/zlib/
|
|
6156 |
for more information.
|
|
6157 |
" "$LINENO" 5 |
|
6158 |
fi
|
|
6159 |
||
6160 |
FT_SYS_ZLIB="" |
|
6161 |
if test x$FT_BRIDGE != x0; then |
|
6162 |
if test xx$SHARE_FT != x1; then |
|
6163 |
if test x$SHARE_ZLIB != x0; then |
|
6164 |
FT_SYS_ZLIB="-DFT_CONFIG_OPTION_SYSTEM_ZLIB" |
|
6165 |
fi
|
|
6166 |
fi
|
|
6167 |
fi
|
|
6168 |
||
6169 |
||
6170 |
||
6171 |
||
6172 |
||
6173 |
||
6174 |
LIBPNGDIR=src |
|
6175 |
PNGDEVS='' |
|
6176 |
PNGDEVS_ALL='png48 png16m pnggray pngmono png256 png16 pngalpha' |
|
6177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local png library source" >&5 |
|
6178 |
$as_echo_n "checking for local png library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6179 |
if test -f $srcdir/libpng/pngread.c; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6180 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6181 |
$as_echo "yes" >&6; } |
|
6182 |
SHARE_LIBPNG=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6183 |
LIBPNGDIR=$srcdir/libpng |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6184 |
PNGDEVS="$PNGDEVS_ALL" |
6185 |
else
|
|
6186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6187 |
$as_echo "no" >&6; } |
|
6188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 |
|
6189 |
$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } |
|
6190 |
if ${ac_cv_lib_png_png_create_write_struct+:} false; then : |
|
6191 |
$as_echo_n "(cached) " >&6 |
|
6192 |
else
|
|
6193 |
ac_check_lib_save_LIBS=$LIBS |
|
6194 |
LIBS="-lpng -lz $LIBS" |
|
6195 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6196 |
/* end confdefs.h. */
|
|
6197 |
||
6198 |
/* Override any GCC internal prototype to avoid an error.
|
|
6199 |
Use char because int might match the return type of a GCC
|
|
6200 |
builtin and then its argument prototype would still apply. */
|
|
6201 |
#ifdef __cplusplus
|
|
6202 |
extern "C"
|
|
6203 |
#endif
|
|
6204 |
char png_create_write_struct ();
|
|
6205 |
int
|
|
6206 |
main ()
|
|
6207 |
{
|
|
6208 |
return png_create_write_struct ();
|
|
6209 |
;
|
|
6210 |
return 0;
|
|
6211 |
}
|
|
6212 |
_ACEOF
|
|
6213 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6214 |
ac_cv_lib_png_png_create_write_struct=yes |
|
6215 |
else
|
|
6216 |
ac_cv_lib_png_png_create_write_struct=no |
|
6217 |
fi
|
|
6218 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6219 |
conftest$ac_exeext conftest.$ac_ext |
|
6220 |
LIBS=$ac_check_lib_save_LIBS |
|
6221 |
fi
|
|
6222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 |
|
6223 |
$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } |
|
6224 |
if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then : |
|
6225 |
||
6226 |
for ac_header in png.h
|
|
6227 |
do :
|
|
6228 |
ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
|
6229 |
if test "x$ac_cv_header_png_h" = xyes; then : |
|
6230 |
cat >>confdefs.h <<_ACEOF
|
|
6231 |
#define HAVE_PNG_H 1
|
|
6232 |
_ACEOF
|
|
6233 |
||
6234 |
SHARE_LIBPNG=1 |
|
6235 |
PNGDEVS="$PNGDEVS_ALL" |
|
6236 |
||
6237 |
else
|
|
6238 |
SHARE_LIBPNG=0 |
|
6239 |
fi
|
|
6240 |
||
6241 |
done
|
|
6242 |
||
6243 |
||
6244 |
else
|
|
6245 |
SHARE_LIBPNG=0 |
|
6246 |
fi
|
|
6247 |
||
6248 |
fi
|
|
6249 |
if test -z "$PNGDEVS"; then |
|
6250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: disabling png output devices" >&5 |
|
6251 |
$as_echo "$as_me: disabling png output devices" >&6;} |
|
6252 |
fi
|
|
6253 |
||
6254 |
||
6255 |
#AC_SUBST(PNGDEVS)
|
|
6256 |
||
6257 |
WHICHLCMS= |
|
6258 |
||
6259 |
||
6260 |
# Check whether --with-lcms was given.
|
|
6261 |
if test "${with_lcms+set}" = set; then : |
|
6262 |
withval=$with_lcms; |
|
6263 |
fi
|
|
6264 |
||
6265 |
||
6266 |
if test x$with_lcms != xyes; then |
|
6267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local lcms2 library source" >&5 |
|
6268 |
$as_echo_n "checking for local lcms2 library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6269 |
LCMS2DIR=$srcdir/lcms2 |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6270 |
if test -f $LCMS2DIR/include/lcms2.h; then |
6271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6272 |
$as_echo "yes" >&6; } |
|
6273 |
SHARELCMS=0 |
|
6274 |
WHICHLCMS=lcms2 |
|
6275 |
else
|
|
6276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6277 |
$as_echo "no" >&6; } |
|
6278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system lcms2 library" >&5 |
|
6279 |
$as_echo_n "checking for system lcms2 library... " >&6; } |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsGetTransformOutputFormat in -llcms2" >&5 |
6281 |
$as_echo_n "checking for cmsGetTransformOutputFormat in -llcms2... " >&6; } |
|
6282 |
if ${ac_cv_lib_lcms2_cmsGetTransformOutputFormat+:} false; then : |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6283 |
$as_echo_n "(cached) " >&6 |
6284 |
else
|
|
6285 |
ac_check_lib_save_LIBS=$LIBS |
|
6286 |
LIBS="-llcms2 $LIBS" |
|
6287 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6288 |
/* end confdefs.h. */
|
|
6289 |
||
6290 |
/* Override any GCC internal prototype to avoid an error.
|
|
6291 |
Use char because int might match the return type of a GCC
|
|
6292 |
builtin and then its argument prototype would still apply. */
|
|
6293 |
#ifdef __cplusplus
|
|
6294 |
extern "C"
|
|
6295 |
#endif
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6296 |
char cmsGetTransformOutputFormat ();
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6297 |
int
|
6298 |
main ()
|
|
6299 |
{
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6300 |
return cmsGetTransformOutputFormat ();
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6301 |
;
|
6302 |
return 0;
|
|
6303 |
}
|
|
6304 |
_ACEOF
|
|
6305 |
if ac_fn_c_try_link "$LINENO"; then : |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6306 |
ac_cv_lib_lcms2_cmsGetTransformOutputFormat=yes |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6307 |
else
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6308 |
ac_cv_lib_lcms2_cmsGetTransformOutputFormat=no |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6309 |
fi
|
6310 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6311 |
conftest$ac_exeext conftest.$ac_ext |
|
6312 |
LIBS=$ac_check_lib_save_LIBS |
|
6313 |
fi
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsGetTransformOutputFormat" >&5 |
6315 |
$as_echo "$ac_cv_lib_lcms2_cmsGetTransformOutputFormat" >&6; } |
|
6316 |
if test "x$ac_cv_lib_lcms2_cmsGetTransformOutputFormat" = xyes; then : |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6317 |
|
6318 |
for ac_header in lcms2.h
|
|
6319 |
do :
|
|
6320 |
ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" |
|
6321 |
if test "x$ac_cv_header_lcms2_h" = xyes; then : |
|
6322 |
cat >>confdefs.h <<_ACEOF
|
|
6323 |
#define HAVE_LCMS2_H 1
|
|
6324 |
_ACEOF
|
|
6325 |
LCMS2DIR="";SHARELCMS=1;WHICHLCMS=lcms2 |
|
6326 |
fi
|
|
6327 |
||
6328 |
done
|
|
6329 |
||
6330 |
||
6331 |
fi
|
|
6332 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6333 |
if test x$WHICHLCMS = x; then |
6334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcms2 not found, or too old" >&5 |
|
6335 |
$as_echo "$as_me: WARNING: lcms2 not found, or too old" >&2;} |
|
6336 |
fi
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6337 |
fi
|
6338 |
fi
|
|
6339 |
||
6340 |
if test x$WHICHLCMS = x; then |
|
6341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local lcms library source" >&5 |
|
6342 |
$as_echo_n "checking for local lcms library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6343 |
LCMSDIR=$srcdir/lcms |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6344 |
SHARELCMS=0 |
6345 |
if test -f $LCMSDIR/include/lcms.h; then |
|
6346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6347 |
$as_echo "yes" >&6; } |
|
6348 |
SHARELCMS=0 |
|
6349 |
WHICHLCMS=lcms |
|
6350 |
else
|
|
6351 |
||
6352 |
as_fn_error $? "LittleCMS source not found!" "$LINENO" 5 |
|
6353 |
#AC_CHECK_LIB(lcms, cmsCreateXYZProfile, [
|
|
6354 |
# AC_CHECK_HEADERS([lcms.h], [SHARELCMS=1;LCMSDIR=""])
|
|
6355 |
# ])
|
|
6356 |
fi
|
|
6357 |
fi
|
|
6358 |
||
6359 |
||
6360 |
||
6361 |
||
6362 |
||
6363 |
||
6364 |
||
6365 |
# Check whether --with-system-libtiff was given.
|
|
6366 |
if test "${with_system_libtiff+set}" = set; then : |
|
6367 |
withval=$with_system_libtiff; |
|
6368 |
else
|
|
6369 |
with_system_libtiff=check |
|
6370 |
fi
|
|
6371 |
||
6372 |
TIFFDEVS='' |
|
6373 |
FAX_DEVS='' |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6374 |
|
6375 |
LIBTIFFDIR='' |
|
6376 |
LIBTIFFCONFDIR='' |
|
6377 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6378 |
TIFFDEVS_ALL='tiffs tiff12nc tiff24nc tiff48nc tiff32nc tiff64nc tiffcrle tifflzw tiffpack tiffgray tiffsep tiffsep1 tiffscaled' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6379 |
FAX_DEVS_ALL='cfax dfaxlow dfaxhigh fax faxg3 faxg32d faxg4 tiffg3 tiffg32d tiffg4 tfax' |
6380 |
case "x$with_system_libtiff" in |
|
6381 |
xcheck)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6382 |
if test -d $srcdir/tiff; then |
6383 |
LIBTIFFDIR=$srcdir/tiff |
|
6384 |
LIBTIFFCONFDIR=tiff-config |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6385 |
HAVE_LOCAL_LIBTIFF=1 |
6386 |
SHARE_LIBTIFF=0 |
|
6387 |
else
|
|
6388 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard
|
|
6389 |
# autoconf macro and b) requires pkg-config on the system, which is
|
|
6390 |
# NOT standard on ANY OS, including Linux!
|
|
6391 |
if test "x$PKGCONFIG" != x; then |
|
6392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtiff with pkg-config" >&5 |
|
6393 |
$as_echo_n "checking for libtiff with pkg-config... " >&6; } |
|
6394 |
if $PKGCONFIG --exists libtiff-4; then |
|
6395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6396 |
$as_echo "yes" >&6; } |
|
6397 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" |
|
6398 |
LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" |
|
6399 |
HAVE_SYSTEM_LIBTIFF=1 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6400 |
fi
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6401 |
fi
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6402 |
if test "x$HAVE_SYSTEM_LIBTIFF" = "x1"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6403 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
6404 |
$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
|
6405 |
if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : |
|
6406 |
$as_echo_n "(cached) " >&6 |
|
6407 |
else
|
|
6408 |
ac_check_lib_save_LIBS=$LIBS |
|
6409 |
LIBS="-ltiff -ljpeg $LIBS" |
|
6410 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6411 |
/* end confdefs.h. */
|
|
6412 |
||
6413 |
/* Override any GCC internal prototype to avoid an error.
|
|
6414 |
Use char because int might match the return type of a GCC
|
|
6415 |
builtin and then its argument prototype would still apply. */
|
|
6416 |
#ifdef __cplusplus
|
|
6417 |
extern "C"
|
|
6418 |
#endif
|
|
6419 |
char TIFFOpen ();
|
|
6420 |
int
|
|
6421 |
main ()
|
|
6422 |
{
|
|
6423 |
return TIFFOpen ();
|
|
6424 |
;
|
|
6425 |
return 0;
|
|
6426 |
}
|
|
6427 |
_ACEOF
|
|
6428 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6429 |
ac_cv_lib_tiff_TIFFOpen=yes |
|
6430 |
else
|
|
6431 |
ac_cv_lib_tiff_TIFFOpen=no |
|
6432 |
fi
|
|
6433 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6434 |
conftest$ac_exeext conftest.$ac_ext |
|
6435 |
LIBS=$ac_check_lib_save_LIBS |
|
6436 |
fi
|
|
6437 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
|
6438 |
$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
|
6439 |
if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : |
|
6440 |
for ac_header in tiff.h
|
|
6441 |
do :
|
|
6442 |
ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
|
6443 |
if test "x$ac_cv_header_tiff_h" = xyes; then : |
|
6444 |
cat >>confdefs.h <<_ACEOF
|
|
6445 |
#define HAVE_TIFF_H 1
|
|
6446 |
_ACEOF
|
|
6447 |
HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1 |
|
6448 |
fi
|
|
6449 |
||
6450 |
done
|
|
6451 |
||
6452 |
fi
|
|
6453 |
||
6454 |
fi
|
|
6455 |
fi
|
|
6456 |
if test "x$HAVE_LOCAL_LIBTIFF" = x && test "x$HAVE_SYSTEM_LIBTIFF" = x; then |
|
6457 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a copy of libtiff on your system. |
|
6458 |
Disabling tiff output devices." >&5 |
|
6459 |
$as_echo "$as_me: Could not find a copy of libtiff on your system. |
|
6460 |
Disabling tiff output devices." >&6;} |
|
6461 |
else
|
|
6462 |
TIFFDEVS="$TIFFDEVS_ALL" |
|
6463 |
FAX_DEVS="$FAX_DEVS_ALL" |
|
6464 |
fi
|
|
6465 |
;;
|
|
6466 |
xyes)
|
|
6467 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard
|
|
6468 |
# autoconf macro and b) requires pkg-config on the system, which is
|
|
6469 |
# NOT standard on ANY OS, including Linux!
|
|
6470 |
if test "x$PKGCONFIG" != x; then |
|
6471 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtiff with pkg-config" >&5 |
|
6472 |
$as_echo_n "checking for libtiff with pkg-config... " >&6; } |
|
6473 |
if $PKGCONFIG --exists libtiff-4; then |
|
6474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6475 |
$as_echo "yes" >&6; } |
|
6476 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" |
|
6477 |
LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" |
|
6478 |
HAVE_SYSTEM_LIBTIFF=1 |
|
6479 |
fi
|
|
6480 |
fi
|
|
6481 |
if test -z "$HAVE_SYSTEM_LIBTIFF"; then |
|
6482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
|
6483 |
$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
|
6484 |
if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : |
|
6485 |
$as_echo_n "(cached) " >&6 |
|
6486 |
else
|
|
6487 |
ac_check_lib_save_LIBS=$LIBS |
|
6488 |
LIBS="-ltiff -ljpeg $LIBS" |
|
6489 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6490 |
/* end confdefs.h. */
|
|
6491 |
||
6492 |
/* Override any GCC internal prototype to avoid an error.
|
|
6493 |
Use char because int might match the return type of a GCC
|
|
6494 |
builtin and then its argument prototype would still apply. */
|
|
6495 |
#ifdef __cplusplus
|
|
6496 |
extern "C"
|
|
6497 |
#endif
|
|
6498 |
char TIFFOpen ();
|
|
6499 |
int
|
|
6500 |
main ()
|
|
6501 |
{
|
|
6502 |
return TIFFOpen ();
|
|
6503 |
;
|
|
6504 |
return 0;
|
|
6505 |
}
|
|
6506 |
_ACEOF
|
|
6507 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6508 |
ac_cv_lib_tiff_TIFFOpen=yes |
|
6509 |
else
|
|
6510 |
ac_cv_lib_tiff_TIFFOpen=no |
|
6511 |
fi
|
|
6512 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6513 |
conftest$ac_exeext conftest.$ac_ext |
|
6514 |
LIBS=$ac_check_lib_save_LIBS |
|
6515 |
fi
|
|
6516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
|
6517 |
$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
|
6518 |
if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : |
|
6519 |
for ac_header in tiff.h
|
|
6520 |
do :
|
|
6521 |
ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
|
6522 |
if test "x$ac_cv_header_tiff_h" = xyes; then : |
|
6523 |
cat >>confdefs.h <<_ACEOF
|
|
6524 |
#define HAVE_TIFF_H 1
|
|
6525 |
_ACEOF
|
|
6526 |
HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1 |
|
6527 |
fi
|
|
6528 |
||
6529 |
done
|
|
6530 |
||
6531 |
fi
|
|
6532 |
||
6533 |
fi
|
|
6534 |
if test "x$HAVE_SYSTEM_LIBTIFF" != x; then |
|
6535 |
SHARE_LIBTIFF=1 |
|
6536 |
TIFFDEVS="$TIFFDEVS_ALL" |
|
6537 |
FAX_DEVS="$FAX_DEVS_ALL" |
|
6538 |
else
|
|
6539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a copy of libtiff on your system. |
|
6540 |
Disabling tiff output devices." >&5 |
|
6541 |
$as_echo "$as_me: Could not find a copy of libtiff on your system. |
|
6542 |
Disabling tiff output devices." >&6;} |
|
6543 |
fi
|
|
6544 |
;;
|
|
6545 |
xno)
|
|
6546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local libtiff source" >&5 |
|
6547 |
$as_echo_n "checking for local libtiff source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6548 |
if test -d $srcdir/tiff; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6550 |
$as_echo "yes" >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6551 |
LIBTIFFDIR=$srcdir/tiff |
6552 |
LIBTIFFCONFDIR=tiff-config |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6553 |
SHARE_LIBTIFF=0 |
6554 |
TIFFDEVS="$TIFFDEVS_ALL" |
|
6555 |
FAX_DEVS="$FAX_DEVS_ALL" |
|
6556 |
else
|
|
6557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6558 |
$as_echo "no" >&6; } |
|
6559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Could not find local copy of libtiff. |
|
6560 |
Disabling tiff output devices." >&5 |
|
6561 |
$as_echo "$as_me: Could not find local copy of libtiff. |
|
6562 |
Disabling tiff output devices." >&6;} |
|
6563 |
fi
|
|
6564 |
;;
|
|
6565 |
esac
|
|
6566 |
||
6567 |
if test $SHARE_LIBTIFF -eq 0; then |
|
6568 |
echo
|
|
6569 |
echo "Running libtiff configure script..." |
|
6570 |
olddir=`pwd` |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6571 |
if ! test -d $LIBTIFFCONFDIR ; then |
6572 |
mkdir $LIBTIFFCONFDIR
|
|
6573 |
fi
|
|
6574 |
cd "$LIBTIFFCONFDIR" && $olddir/$LIBTIFFDIR/configure --disable-jbig --disable-lzma $SUBCONFIG_OPTS |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6575 |
status=$? |
6576 |
if test "$status" -ne 0 ; then |
|
6577 |
as_fn_error $status "libtiff configure script failed" "$LINENO" 5 |
|
6578 |
fi
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6579 |
cd "$olddir" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6580 |
echo
|
6581 |
echo "Continuing with Ghostscript configuration..." |
|
6582 |
fi
|
|
6583 |
||
6584 |
||
6585 |
||
6586 |
||
6587 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6588 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6589 |
# Check whether --enable-cups was given.
|
6590 |
if test "${enable_cups+set}" = set; then : |
|
6591 |
enableval=$enable_cups; |
|
6592 |
fi
|
|
6593 |
||
6594 |
||
6595 |
||
6596 |
# Check whether --with-pdftoraster was given.
|
|
6597 |
if test "${with_pdftoraster+set}" = set; then : |
|
6598 |
withval=$with_pdftoraster; |
|
6599 |
fi
|
|
6600 |
||
6601 |
||
6602 |
||
6603 |
# Check whether --with-local-cups was given.
|
|
6604 |
if test "${with_local_cups+set}" = set; then : |
|
6605 |
withval=$with_local_cups; with_local_cups=yes |
|
6606 |
else
|
|
6607 |
with_local_cups=no |
|
6608 |
fi
|
|
6609 |
||
6610 |
||
6611 |
||
6612 |
# Check whether --with-cups-serverbin was given.
|
|
6613 |
if test "${with_cups_serverbin+set}" = set; then : |
|
6614 |
withval=$with_cups_serverbin; CUPS_SERVERBIN="$withval" |
|
6615 |
else
|
|
6616 |
CUPS_SERVERBIN="" |
|
6617 |
fi
|
|
6618 |
||
6619 |
||
6620 |
||
6621 |
# Check whether --with-cups-serverroot was given.
|
|
6622 |
if test "${with_cups_serverroot+set}" = set; then : |
|
6623 |
withval=$with_cups_serverroot; CUPS_SERVERROOT="$withval" |
|
6624 |
else
|
|
6625 |
CUPS_SERVERROOT="" |
|
6626 |
fi
|
|
6627 |
||
6628 |
||
6629 |
||
6630 |
||
6631 |
# Check whether --with-cups-datadir was given.
|
|
6632 |
if test "${with_cups_datadir+set}" = set; then : |
|
6633 |
withval=$with_cups_datadir; CUPS_DATADIR="$withval" |
|
6634 |
else
|
|
6635 |
CUPS_DATADIR="" |
|
6636 |
fi
|
|
6637 |
||
6638 |
||
6639 |
CUPSDEV="" |
|
6640 |
CUPSINCLUDE="" |
|
6641 |
CUPSCFLAGS="" |
|
6642 |
CUPSLIBS="" |
|
6643 |
CUPSLIBDIRS="" |
|
6644 |
CUPSCONFIG="${CUPSCONFIG:=}" |
|
6645 |
CUPSSERVERBIN="" |
|
6646 |
CUPSSERVERROOT="" |
|
6647 |
CUPSDATA="" |
|
6648 |
CUPSVERSION="0" |
|
6649 |
CUPSPDFTORASTER="0" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6650 |
CUPS_DIR="" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6651 |
|
6652 |
SHARELCUPS=1 |
|
6653 |
SHARELCUPSI=1 |
|
6654 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6655 |
if ( test -d $srcdir/cups ); then |
6656 |
CUPS_DIR="$srcdir/cups" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6657 |
if test x$enable_cups != xno; then |
6658 |
if test x$with_local_cups != xyes; then |
|
6659 |
# Extract the first word of "cups-config", so it can be a program name with args.
|
|
6660 |
set dummy cups-config; ac_word=$2 |
|
6661 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6662 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6663 |
if ${ac_cv_path_CUPSCONFIG+:} false; then : |
|
6664 |
$as_echo_n "(cached) " >&6 |
|
6665 |
else
|
|
6666 |
case $CUPSCONFIG in |
|
6667 |
[\\/]* | ?:[\\/]*) |
|
6668 |
ac_cv_path_CUPSCONFIG="$CUPSCONFIG" # Let the user override the test with a path. |
|
6669 |
;;
|
|
6670 |
*)
|
|
6671 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6672 |
for as_dir in $PATH |
|
6673 |
do
|
|
6674 |
IFS=$as_save_IFS |
|
6675 |
test -z "$as_dir" && as_dir=. |
|
6676 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6677 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6678 |
ac_cv_path_CUPSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
6679 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6680 |
break 2 |
|
6681 |
fi
|
|
6682 |
done
|
|
6683 |
done
|
|
6684 |
IFS=$as_save_IFS |
|
6685 |
||
6686 |
;;
|
|
6687 |
esac
|
|
6688 |
fi
|
|
6689 |
CUPSCONFIG=$ac_cv_path_CUPSCONFIG |
|
6690 |
if test -n "$CUPSCONFIG"; then |
|
6691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPSCONFIG" >&5 |
|
6692 |
$as_echo "$CUPSCONFIG" >&6; } |
|
6693 |
else
|
|
6694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6695 |
$as_echo "no" >&6; } |
|
6696 |
fi
|
|
6697 |
||
6698 |
||
6699 |
ac_fn_c_check_header_mongrel "$LINENO" "cups/raster.h" "ac_cv_header_cups_raster_h" "$ac_includes_default" |
|
6700 |
if test "x$ac_cv_header_cups_raster_h" = xyes; then : |
|
6701 |
||
6702 |
else
|
|
6703 |
CUPSCONFIG="" |
|
6704 |
fi
|
|
6705 |
||
6706 |
||
6707 |
if test "x$CUPSCONFIG" != x; then |
|
6708 |
CUPSCFLAGS="`$CUPSCONFIG --cflags` $CFLAGS" |
|
6709 |
# CUPSLINK="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --static --image --libs | sed -e '1,$s/-lssl//'` $LIBS"
|
|
6710 |
CUPSLINK="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --image --libs`" |
|
6711 |
||
6712 |
# the makefile wants a list of just the library names
|
|
6713 |
for gs_item in $CUPSLINK; do |
|
6714 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/^-l//'` |
|
6715 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
|
6716 |
CUPSLIBS="$CUPSLIBS $gs_stripped_item" |
|
6717 |
fi
|
|
6718 |
done
|
|
6719 |
||
6720 |
||
6721 |
for gs_item in $CUPSLINK; do |
|
6722 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/-L//'` |
|
6723 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
|
6724 |
CUPSLIBDIRS="$CUPSLIBDIRS $gs_stripped_item" |
|
6725 |
fi
|
|
6726 |
done
|
|
6727 |
||
6728 |
||
6729 |
if test "x$CUPS_SERVERROOT" != "x"; then |
|
6730 |
CUPSSERVERROOT="$CUPS_SERVERROOT" |
|
6731 |
else
|
|
6732 |
CUPSSERVERROOT="`$CUPSCONFIG --serverroot`" |
|
6733 |
fi
|
|
6734 |
||
6735 |
if test "x$CUPS_SERVERBIN" != "x"; then |
|
6736 |
CUPSSERVERBIN="$CUPS_SERVERBIN" |
|
6737 |
else
|
|
6738 |
CUPSSERVERBIN="`$CUPSCONFIG --serverbin`" |
|
6739 |
fi
|
|
6740 |
||
6741 |
if test "x$CUPS_DATADIR" != "x"; then |
|
6742 |
CUPSDATA="$CUPS_DATADIR" |
|
6743 |
else
|
|
6744 |
CUPSDATA="`$CUPSCONFIG --datadir`" |
|
6745 |
fi
|
|
6746 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6747 |
CUPSINCLUDE="include $srcdir/cups/cups.mak" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6748 |
CUPSDEV="cups" |
6749 |
CUPSVERSION="`$CUPSCONFIG --version`" |
|
6750 |
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" |
|
6751 |
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" |
|
6752 |
if ( test x$with_pdftoraster != xno ); then |
|
6753 |
if test "$CUPSVERSION" ">" "1.2"; then |
|
6754 |
CUPSPDFTORASTER="1" |
|
6755 |
fi
|
|
6756 |
fi
|
|
6757 |
fi
|
|
6758 |
else
|
|
6759 |
if test "$(uname)" = "Linux"; then |
|
6760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * USING LOCAL CUPS SOURCE *" >&5 |
|
6761 |
$as_echo "$as_me: WARNING: * USING LOCAL CUPS SOURCE *" >&2;} |
|
6762 |
SHARELCUPS=0 |
|
6763 |
SHARELCUPSI=0 |
|
6764 |
LCUPSBUILDTYPE=linux |
|
6765 |
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" |
|
6766 |
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" |
|
6767 |
CUPSDEV="cups" |
|
6768 |
fi
|
|
6769 |
fi
|
|
6770 |
fi
|
|
6771 |
fi
|
|
6772 |
||
6773 |
#AC_SUBST(CUPSDEV)
|
|
6774 |
||
6775 |
||
6776 |
||
6777 |
||
6778 |
||
6779 |
||
6780 |
||
6781 |
||
6782 |
||
6783 |
||
6784 |
||
6785 |
||
6786 |
||
6787 |
||
6788 |
||
6789 |
||
6790 |
||
6791 |
||
6792 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6793 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6794 |
# Check whether --with-ijs was given.
|
6795 |
if test "${with_ijs+set}" = set; then : |
|
6796 |
withval=$with_ijs; |
|
6797 |
fi
|
|
6798 |
||
6799 |
||
6800 |
case `uname` in |
|
6801 |
MINGW*)
|
|
6802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling the ijs device" >&5 |
|
6803 |
$as_echo "$as_me: WARNING: disabling the ijs device" >&2;} |
|
6804 |
with_ijs=no |
|
6805 |
;;
|
|
6806 |
*)
|
|
6807 |
;;
|
|
6808 |
esac
|
|
6809 |
||
6810 |
||
6811 |
IJSDIR=src |
|
6812 |
IJSDEVS='' |
|
6813 |
SHAREIJS=0 |
|
6814 |
if test x$with_ijs != xno; then |
|
6815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local ijs library source" >&5 |
|
6816 |
$as_echo_n "checking for local ijs library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6817 |
if test -d $srcdir/ijs; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6819 |
$as_echo "yes" >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6820 |
IJSDIR=$srcdir/ijs |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6821 |
IJSDEVS='ijs' |
6822 |
else
|
|
6823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6824 |
$as_echo "no" >&6; } |
|
6825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ijs_server_init in -lijs" >&5 |
|
6826 |
$as_echo_n "checking for ijs_server_init in -lijs... " >&6; } |
|
6827 |
if ${ac_cv_lib_ijs_ijs_server_init+:} false; then : |
|
6828 |
$as_echo_n "(cached) " >&6 |
|
6829 |
else
|
|
6830 |
ac_check_lib_save_LIBS=$LIBS |
|
6831 |
LIBS="-lijs $LIBS" |
|
6832 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6833 |
/* end confdefs.h. */
|
|
6834 |
||
6835 |
/* Override any GCC internal prototype to avoid an error.
|
|
6836 |
Use char because int might match the return type of a GCC
|
|
6837 |
builtin and then its argument prototype would still apply. */
|
|
6838 |
#ifdef __cplusplus
|
|
6839 |
extern "C"
|
|
6840 |
#endif
|
|
6841 |
char ijs_server_init ();
|
|
6842 |
int
|
|
6843 |
main ()
|
|
6844 |
{
|
|
6845 |
return ijs_server_init ();
|
|
6846 |
;
|
|
6847 |
return 0;
|
|
6848 |
}
|
|
6849 |
_ACEOF
|
|
6850 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6851 |
ac_cv_lib_ijs_ijs_server_init=yes |
|
6852 |
else
|
|
6853 |
ac_cv_lib_ijs_ijs_server_init=no |
|
6854 |
fi
|
|
6855 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6856 |
conftest$ac_exeext conftest.$ac_ext |
|
6857 |
LIBS=$ac_check_lib_save_LIBS |
|
6858 |
fi
|
|
6859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ijs_ijs_server_init" >&5 |
|
6860 |
$as_echo "$ac_cv_lib_ijs_ijs_server_init" >&6; } |
|
6861 |
if test "x$ac_cv_lib_ijs_ijs_server_init" = xyes; then : |
|
6862 |
||
6863 |
for ac_header in ijs/ijs.h
|
|
6864 |
do :
|
|
6865 |
ac_fn_c_check_header_mongrel "$LINENO" "ijs/ijs.h" "ac_cv_header_ijs_ijs_h" "$ac_includes_default" |
|
6866 |
if test "x$ac_cv_header_ijs_ijs_h" = xyes; then : |
|
6867 |
cat >>confdefs.h <<_ACEOF
|
|
6868 |
#define HAVE_IJS_IJS_H 1
|
|
6869 |
_ACEOF
|
|
6870 |
SHAREIJS=1 |
|
6871 |
fi
|
|
6872 |
||
6873 |
done
|
|
6874 |
||
6875 |
||
6876 |
fi
|
|
6877 |
||
6878 |
if test $SHAREIJS -eq 1 ; then |
|
6879 |
IJSLIB=ijs |
|
6880 |
# This is for safety - it prevents our header search path going outside the GS source tree
|
|
6881 |
IJSDIR='$(GLOBJDIR)' |
|
6882 |
IJSDEVS='ijs' |
|
6883 |
fi
|
|
6884 |
fi
|
|
6885 |
fi
|
|
6886 |
||
6887 |
||
6888 |
||
6889 |
#AC_SUBST(IJSDEVS)
|
|
6890 |
||
6891 |
||
6892 |
JBIG2_DECODER= |
|
6893 |
JBIG2DIR=src |
|
6894 |
SHARE_JBIG2=0 |
|
6895 |
JBIG2DEVS='' |
|
6896 |
JBIG2_AUTOCONF_CFLAGS= |
|
6897 |
||
6898 |
LURATECHDIR=luratech |
|
6899 |
||
6900 |
||
6901 |
# Check whether --with-luratech was given.
|
|
6902 |
if test "${with_luratech+set}" = set; then : |
|
6903 |
withval=$with_luratech; |
|
6904 |
fi
|
|
6905 |
||
6906 |
||
6907 |
||
6908 |
if test x$with_luratech != xno; then |
|
6909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Luratech JBIG2 library source" >&5 |
|
6910 |
$as_echo_n "checking for local Luratech JBIG2 library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6911 |
if test -d $srcdir/luratech/ldf_jb2; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6912 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6913 |
$as_echo "yes" >&6; } |
|
6914 |
JBIG2_DECODER=luratech |
|
6915 |
SHARE_JBIG2=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6916 |
JBIG2DIR=$srcdir/luratech/ldf_jb2 |
1.1.41
by Till Kamppeter
Import upstream version 9.10~dfsg~rc1 |
6917 |
|
6918 |
case `uname` in |
|
6919 |
Darwin*)
|
|
6920 |
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD" |
|
6921 |
;;
|
|
6922 |
AIX)
|
|
6923 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
6924 |
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -fsigned-char -DLINUX" |
|
6925 |
else
|
|
6926 |
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -qchars=signed -DLINUX" |
|
6927 |
fi
|
|
6928 |
;;
|
|
6929 |
*)
|
|
6930 |
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -DLINUX" |
|
6931 |
;;
|
|
6932 |
esac
|
|
6933 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6934 |
JBIG2FILEDEVS='$(DD)gdevjbig2.dev' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6935 |
JBIG2DEVS='$(PSD)jbig2.dev' |
6936 |
else
|
|
6937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6938 |
$as_echo "no" >&6; } |
|
6939 |
fi
|
|
6940 |
fi
|
|
6941 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6942 |
JB2_STDINT_TYPES_IN= |
6943 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6944 |
if test "x$JBIG2_DECODER" = x; then |
6945 |
||
6946 |
# Check whether --with-jbig2dec was given.
|
|
6947 |
if test "${with_jbig2dec+set}" = set; then : |
|
6948 |
withval=$with_jbig2dec; |
|
6949 |
fi
|
|
6950 |
||
6951 |
if test x$with_jbig2dec != xno; then |
|
6952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jbig2dec library source" >&5 |
|
6953 |
$as_echo_n "checking for local jbig2dec library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
6954 |
for d in $srcdir/jbig2dec $srcdir/jbig2dec-0.2 $srcdir/jbig2dec-0.3; do |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
6955 |
test -d "$d" && JBIG2DIR=$d && break |
6956 |
done
|
|
6957 |
if test "x$JBIG2DIR" != xsrc; then |
|
6958 |
JBIG2_DECODER=jbig2dec |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
6959 |
if test x$ac_cv_header_stdint_h = xyes ; then |
6960 |
JBIG2_AUTOCONF_CFLAGS="-DHAVE_STDINT_H=1" |
|
6961 |
else
|
|
6962 |
||
6963 |
for include in sys/types.h inttypes.h sys/inttypes.h sys/int_types.h ; do |
|
6964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t in $include" >&5 |
|
6965 |
$as_echo_n "checking for uint32_t in $include... " >&6; } |
|
6966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6967 |
/* end confdefs.h. */
|
|
6968 |
#include <$include>
|
|
6969 |
int
|
|
6970 |
main ()
|
|
6971 |
{
|
|
6972 |
uint32_t canary;
|
|
6973 |
;
|
|
6974 |
return 0;
|
|
6975 |
}
|
|
6976 |
_ACEOF
|
|
6977 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
6978 |
||
6979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6980 |
$as_echo "yes" >&6; } |
|
6981 |
stdint_types_in="$include" |
|
6982 |
break;
|
|
6983 |
||
6984 |
else
|
|
6985 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6986 |
$as_echo "no" >&6; } |
|
6987 |
||
6988 |
fi
|
|
6989 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6990 |
done
|
|
6991 |
||
6992 |
case "$stdint_types_in" in |
|
6993 |
"sys/types.h") |
|
6994 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_TYPES_H" |
|
6995 |
;;
|
|
6996 |
"inttypes.h") |
|
6997 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_INTTYPES_H" |
|
6998 |
;;
|
|
6999 |
"sys/inttypes.h") |
|
7000 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_INTTYPES_H" |
|
7001 |
;;
|
|
7002 |
"sys/int_types.h") |
|
7003 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_INT_TYPES_H" |
|
7004 |
;;
|
|
7005 |
*)
|
|
7006 |
as_fn_error $? " |
|
7007 |
Unable to find suitable definitions of the stdint.h types (uint32_t and friends).
|
|
7008 |
These are required by jbig2dec.
|
|
7009 |
" "$LINENO" 5 |
|
7010 |
esac
|
|
7011 |
fi
|
|
7012 |
||
7013 |
if test "x$BIGENDIAN" != "x0"; then |
|
7014 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DWORDS_BIGENDIAN" |
|
7015 |
fi
|
|
7016 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7017 |
echo
|
7018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JBIG2DIR" >&5 |
|
7019 |
$as_echo "$JBIG2DIR" >&6; } |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7020 |
echo "Continuing with Ghostscript configuration..." |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7021 |
else
|
7022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7023 |
$as_echo "no" >&6; } |
|
7024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbig2_page_out in -ljbig2dec" >&5 |
|
7025 |
$as_echo_n "checking for jbig2_page_out in -ljbig2dec... " >&6; } |
|
7026 |
if ${ac_cv_lib_jbig2dec_jbig2_page_out+:} false; then : |
|
7027 |
$as_echo_n "(cached) " >&6 |
|
7028 |
else
|
|
7029 |
ac_check_lib_save_LIBS=$LIBS |
|
7030 |
LIBS="-ljbig2dec $LIBS" |
|
7031 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7032 |
/* end confdefs.h. */
|
|
7033 |
||
7034 |
/* Override any GCC internal prototype to avoid an error.
|
|
7035 |
Use char because int might match the return type of a GCC
|
|
7036 |
builtin and then its argument prototype would still apply. */
|
|
7037 |
#ifdef __cplusplus
|
|
7038 |
extern "C"
|
|
7039 |
#endif
|
|
7040 |
char jbig2_page_out ();
|
|
7041 |
int
|
|
7042 |
main ()
|
|
7043 |
{
|
|
7044 |
return jbig2_page_out ();
|
|
7045 |
;
|
|
7046 |
return 0;
|
|
7047 |
}
|
|
7048 |
_ACEOF
|
|
7049 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7050 |
ac_cv_lib_jbig2dec_jbig2_page_out=yes |
|
7051 |
else
|
|
7052 |
ac_cv_lib_jbig2dec_jbig2_page_out=no |
|
7053 |
fi
|
|
7054 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7055 |
conftest$ac_exeext conftest.$ac_ext |
|
7056 |
LIBS=$ac_check_lib_save_LIBS |
|
7057 |
fi
|
|
7058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig2dec_jbig2_page_out" >&5 |
|
7059 |
$as_echo "$ac_cv_lib_jbig2dec_jbig2_page_out" >&6; } |
|
7060 |
if test "x$ac_cv_lib_jbig2dec_jbig2_page_out" = xyes; then : |
|
7061 |
||
7062 |
SHARE_JBIG2=1 |
|
7063 |
||
7064 |
else
|
|
7065 |
||
7066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for JBIG2 files" >&5 |
|
7067 |
$as_echo "$as_me: WARNING: disabling support for JBIG2 files" >&2;} |
|
7068 |
with_jbig2dec=no |
|
7069 |
||
7070 |
fi
|
|
7071 |
||
7072 |
if test x$with_jbig2dec != xno; then |
|
7073 |
JBIG2_DECODER=jbig2dec |
|
7074 |
fi
|
|
7075 |
fi
|
|
7076 |
fi
|
|
7077 |
if test x$with_jbig2dec != xno; then |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7078 |
# I *think* jbig2dec handles these being missing gracefully
|
7079 |
# if test x$ac_cv_header_stdint_h != xyes && test x$ac_cv_header_inttypes_h != xyes; then
|
|
7080 |
# AC_MSG_WARN([JBIG2 support requires stdint types which do not seem to be available.])
|
|
7081 |
# else
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7082 |
JBIG2DEVS='$(PSD)jbig2.dev' |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7083 |
# fi
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7084 |
fi
|
7085 |
fi
|
|
7086 |
||
7087 |
||
7088 |
||
7089 |
||
7090 |
||
7091 |
||
7092 |
||
7093 |
JPXDIR=src |
|
7094 |
SHARE_JPX=0 |
|
7095 |
JPXDEVS='' |
|
7096 |
JPX_DECODER= |
|
7097 |
JPX_AUTOCONF_CFLAGS= |
|
7098 |
||
7099 |
if test x$with_luratech != xno; then |
|
7100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Luratech JPEG2K library source" >&5 |
|
7101 |
$as_echo_n "checking for local Luratech JPEG2K library source... " >&6; } |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
7102 |
if test -d $srcdir/luratech/lwf_jp2; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7104 |
$as_echo "yes" >&6; } |
|
7105 |
JPX_DECODER=luratech |
|
7106 |
SHARE_JPX=0 |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
7107 |
JPXDIR=$srcdir/luratech/lwf_jp2 |
1.1.41
by Till Kamppeter
Import upstream version 9.10~dfsg~rc1 |
7108 |
|
7109 |
case `uname` in |
|
7110 |
Darwin*)
|
|
7111 |
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD" |
|
7112 |
;;
|
|
7113 |
AIX)
|
|
7114 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
7115 |
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -fsigned-char -DLINUX" |
|
7116 |
else
|
|
7117 |
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -qchars=signed -DLINUX" |
|
7118 |
fi
|
|
7119 |
;;
|
|
7120 |
*)
|
|
7121 |
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DLINUX" |
|
7122 |
;;
|
|
7123 |
esac
|
|
7124 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7125 |
JPXDEVS='$(PSD)jpx.dev' |
7126 |
else
|
|
7127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7128 |
$as_echo "no" >&6; } |
|
7129 |
fi
|
|
7130 |
fi
|
|
7131 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
7132 |
OPENJPEGDIR=$srcdir/openjpeg |
7133 |
||
7134 |
JPX_SSE_CFLAGS="" |
|
7135 |
||
7136 |
if test "x$HAVE_SSE2" = "x" ; then |
|
7137 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
7138 |
JPX_SSE_CFLAGS="-U__SSE__" |
|
7139 |
fi
|
|
7140 |
fi
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7141 |
|
7142 |
# Check whether --enable-openjpeg was given.
|
|
7143 |
if test "${enable_openjpeg+set}" = set; then : |
|
7144 |
enableval=$enable_openjpeg; |
|
7145 |
fi
|
|
7146 |
||
7147 |
||
7148 |
if test "x$JPX_DECODER" = "x"; then |
|
7149 |
if test "x$enable_openjpeg" != "xno"; then |
|
7150 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local OpenJPEG library source" >&5 |
|
7151 |
$as_echo_n "checking for local OpenJPEG library source... " >&6; } |
|
7152 |
if test -e $OPENJPEGDIR/libopenjpeg/openjpeg.h; then |
|
7153 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
7154 |
$as_echo "yes" >&6; } |
|
7155 |
JPXDIR="$OPENJPEGDIR" |
|
7156 |
JPX_DECODER=openjpeg |
|
7157 |
SHARE_JPX=0 |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7158 |
for ac_func in memalign
|
7159 |
do :
|
|
7160 |
ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" |
|
7161 |
if test "x$ac_cv_func_memalign" = xyes; then : |
|
7162 |
cat >>confdefs.h <<_ACEOF
|
|
7163 |
#define HAVE_MEMALIGN 1
|
|
7164 |
_ACEOF
|
|
7165 |
have_memalign=1 |
|
7166 |
fi
|
|
7167 |
done
|
|
7168 |
||
7169 |
||
7170 |
if test "x$have_memalign" = "x1"; then |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
7171 |
JPX_AUTOCONF_CFLAGS="-DUSE_OPENJPEG_JP2 $JPX_SSE_CFLAGS" |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7172 |
else
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
7173 |
JPX_AUTOCONF_CFLAGS="-DUSE_OPENJPEG_JP2 $JPX_SSE_CFLAGS -D\"memalign(a,b)=malloc(b)\"" |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7174 |
fi
|
7175 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7176 |
JPXDEVS='$(PSD)jpx.dev' |
7177 |
else
|
|
7178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7179 |
$as_echo "no" >&6; } |
|
7180 |
fi
|
|
7181 |
fi
|
|
7182 |
fi
|
|
7183 |
||
7184 |
||
7185 |
||
7186 |
||
7187 |
||
7188 |
||
7189 |
||
7190 |
# Check whether --enable-gtk was given.
|
|
7191 |
if test "${enable_gtk+set}" = set; then : |
|
7192 |
enableval=$enable_gtk; |
|
7193 |
fi
|
|
7194 |
||
7195 |
SOC_CFLAGS="" |
|
7196 |
SOC_LIBS="" |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7197 |
SOC_LOADER="" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7198 |
if test "x$enable_gtk" != "xno"; then |
7199 |
# Try GTK+ 3.x first...
|
|
7200 |
if test "x$PKGCONFIG" != x; then |
|
7201 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ 3.x" >&5 |
|
7202 |
$as_echo_n "checking for GTK+ 3.x... " >&6; } |
|
7203 |
if $PKGCONFIG --exists gtk+-3.0; then |
|
7204 |
SOC_LOADER="dxmain.c" |
|
7205 |
SOC_CFLAGS="`$PKGCONFIG gtk+-3.0 --cflags`" |
|
7206 |
SOC_LIBS="`$PKGCONFIG gtk+-3.0 --libs`" |
|
7207 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
7208 |
$as_echo "yes" >&6; } |
|
7209 |
else
|
|
7210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7211 |
$as_echo "no" >&6; } |
|
7212 |
fi
|
|
7213 |
||
7214 |
# Or resort to GTK+ 2.x
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7215 |
if test "x$SOC_LOADER" = "x"; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ 2.x" >&5 |
7217 |
$as_echo_n "checking for GTK+ 2.x... " >&6; } |
|
7218 |
if $PKGCONFIG --exists gtk+-2.0; then |
|
7219 |
SOC_LOADER="dxmain.c" |
|
7220 |
SOC_CFLAGS="`$PKGCONFIG gtk+-2.0 --cflags`" |
|
7221 |
SOC_LIBS="`$PKGCONFIG gtk+-2.0 --libs`" |
|
7222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
7223 |
$as_echo "yes" >&6; } |
|
7224 |
else
|
|
7225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7226 |
$as_echo "no" >&6; } |
|
7227 |
fi
|
|
7228 |
fi
|
|
7229 |
fi
|
|
7230 |
fi
|
|
7231 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
7232 |
if test "x$SOC_LOADER" = "x"; then |
7233 |
SOC_LOADER="dxmainc.c" |
|
7234 |
fi
|
|
7235 |
||
7236 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
7237 |
|
7238 |
||
7239 |
||
7240 |
||
7241 |
# Check whether --with-omni was given.
|
|
7242 |
if test "${with_omni+set}" = set; then : |
|
7243 |
withval=$with_omni; |
|
7244 |
fi
|
|
7245 |
||
7246 |
OMNIDEVS='' |
|
7247 |
INCLUDEOMNI=no |
|
7248 |
if ( ! test -z "$CONTRIBINCLUDE" ) && ( test x$with_omni = xyes ); then |
|
7249 |
INCLUDEOMNI=yes |
|
7250 |
OMNIDEVS='$(DD)omni.dev' |
|
7251 |
||
7252 |
if test -n "$GCC"; then |
|
7253 |
LIBS="$LIBS -lstdc++" |
|
7254 |
fi
|
|
7255 |
fi
|
|
7256 |
||
7257 |
||
7258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
|
7259 |
$as_echo_n "checking for X... " >&6; } |
|
7260 |
||
7261 |
||
7262 |
# Check whether --with-x was given.
|
|
7263 |
if test "${with_x+set}" = set; then : |
|
7264 |
withval=$with_x; |
|
7265 |
fi
|
|
7266 |
||
7267 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
7268 |
if test "x$with_x" = xno; then |
|
7269 |
# The user explicitly disabled X.
|
|
7270 |
have_x=disabled |
|
7271 |
else
|
|
7272 |
case $x_includes,$x_libraries in #( |
|
7273 |
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
|
7274 |
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
|
7275 |
$as_echo_n "(cached) " >&6 |
|
7276 |
else
|
|
7277 |
# One or both of the vars are not set, and there is no cached value.
|
|
7278 |
ac_x_includes=no ac_x_libraries=no |
|
7279 |
rm -f -r conftest.dir |
|
7280 |
if mkdir conftest.dir; then |
|
7281 |
cd conftest.dir
|
|
7282 |
cat >Imakefile <<'_ACEOF'
|
|
7283 |
incroot:
|
|
7284 |
@echo incroot='${INCROOT}'
|
|
7285 |
usrlibdir:
|
|
7286 |
@echo usrlibdir='${USRLIBDIR}'
|
|
7287 |
libdir:
|
|
7288 |
@echo libdir='${LIBDIR}'
|
|
7289 |
_ACEOF
|
|
7290 |
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
|
7291 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
|
7292 |
for ac_var in incroot usrlibdir libdir; do |
|
7293 |
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
|
7294 |
done
|
|
7295 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
7296 |
for ac_extension in a so sl dylib la dll; do |
|
7297 |
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
|
7298 |
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
|
7299 |
ac_im_usrlibdir=$ac_im_libdir; break |
|
7300 |
fi
|
|
7301 |
done
|
|
7302 |
# Screen out bogus values from the imake configuration. They are
|
|
7303 |
# bogus both because they are the default anyway, and because
|
|
7304 |
# using them would break gcc on systems where it needs fixed includes.
|
|
7305 |
case $ac_im_incroot in |
|
7306 |
/usr/include) ac_x_includes= ;; |
|
7307 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
|
7308 |
esac
|
|
7309 |
case $ac_im_usrlibdir in |
|
7310 |
/usr/lib | /usr/lib64 | /lib | /lib64) ;; |
|
7311 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
|
7312 |
esac
|
|
7313 |
fi
|
|
7314 |
cd ..
|
|
7315 |
rm -f -r conftest.dir |
|
7316 |
fi
|
|
7317 |
||
7318 |
# Standard set of common directories for X headers.
|
|
7319 |
# Check X11 before X11Rn because it is often a symlink to the current release.
|
|
7320 |
ac_x_header_dirs=' |
|
7321 |
/usr/X11/include
|
|
7322 |
/usr/X11R7/include
|
|
7323 |
/usr/X11R6/include
|
|
7324 |
/usr/X11R5/include
|
|
7325 |
/usr/X11R4/include
|
|
7326 |
||
7327 |
/usr/include/X11
|
|
7328 |
/usr/include/X11R7
|
|
7329 |
/usr/include/X11R6
|
|
7330 |
/usr/include/X11R5
|
|
7331 |
/usr/include/X11R4
|
|
7332 |
||
7333 |
/usr/local/X11/include
|
|
7334 |
/usr/local/X11R7/include
|
|
7335 |
/usr/local/X11R6/include
|
|
7336 |
/usr/local/X11R5/include
|
|
7337 |
/usr/local/X11R4/include
|
|
7338 |
||
7339 |
/usr/local/include/X11
|
|
7340 |
/usr/local/include/X11R7
|
|
7341 |
/usr/local/include/X11R6
|
|
7342 |
/usr/local/include/X11R5
|
|
7343 |
/usr/local/include/X11R4
|
|
7344 |
||
7345 |
/usr/X386/include
|
|
7346 |
/usr/x386/include
|
|
7347 |
/usr/XFree86/include/X11
|
|
7348 |
||
7349 |
/usr/include
|
|
7350 |
/usr/local/include
|
|
7351 |
/usr/unsupported/include
|
|
7352 |
/usr/athena/include
|
|
7353 |
/usr/local/x11r5/include
|
|
7354 |
/usr/lpp/Xamples/include
|
|
7355 |
||
7356 |
/usr/openwin/include
|
|
7357 |
/usr/openwin/share/include'
|
|
7358 |
||
7359 |
if test "$ac_x_includes" = no; then |
|
7360 |
# Guess where to find include files, by looking for Xlib.h.
|
|
7361 |
# First, try using that file with no special directory specified.
|
|
7362 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7363 |
/* end confdefs.h. */
|
|
7364 |
#include <X11/Xlib.h>
|
|
7365 |
_ACEOF
|
|
7366 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
7367 |
# We can compile using X headers with no special include directory.
|
|
7368 |
ac_x_includes= |
|
7369 |
else
|
|
7370 |
for ac_dir in $ac_x_header_dirs; do |
|
7371 |
if test -r "$ac_dir/X11/Xlib.h"; then |
|
7372 |
ac_x_includes=$ac_dir |
|
7373 |
break
|
|
7374 |
fi
|
|
7375 |
done
|
|
7376 |
fi
|
|
7377 |
rm -f conftest.err conftest.i conftest.$ac_ext
|
|
7378 |
fi # $ac_x_includes = no |
|
7379 |
||
7380 |
if test "$ac_x_libraries" = no; then |
|
7381 |
# Check for the libraries.
|
|
7382 |
# See if we find them without any special options.
|
|
7383 |
# Don't add to $LIBS permanently.
|
|
7384 |
ac_save_LIBS=$LIBS |
|
7385 |
LIBS="-lX11 $LIBS" |
|
7386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7387 |
/* end confdefs.h. */
|
|
7388 |
#include <X11/Xlib.h>
|
|
7389 |
int
|
|
7390 |
main ()
|
|
7391 |
{
|
|
7392 |
XrmInitialize ()
|
|
7393 |
;
|
|
7394 |
return 0;
|
|
7395 |
}
|
|
7396 |
_ACEOF
|
|
7397 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7398 |
LIBS=$ac_save_LIBS |
|
7399 |
# We can link X programs with no special library path.
|
|
7400 |
ac_x_libraries= |
|
7401 |
else
|
|
7402 |
LIBS=$ac_save_LIBS |
|
7403 |
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
|
7404 |
do
|
|
7405 |
# Don't even attempt the hair of trying to link an X program!
|
|
7406 |
for ac_extension in a so sl dylib la dll; do |
|
7407 |
if test -r "$ac_dir/libX11.$ac_extension"; then |
|
7408 |
ac_x_libraries=$ac_dir |
|
7409 |
break 2 |
|
7410 |
fi
|
|
7411 |
done
|
|
7412 |
done
|
|
7413 |
fi
|
|
7414 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7415 |
conftest$ac_exeext conftest.$ac_ext |
|
7416 |
fi # $ac_x_libraries = no |
|
7417 |
||
7418 |
case $ac_x_includes,$ac_x_libraries in #( |
|
7419 |
no,* | *,no | *\'*) |
|
7420 |
# Didn't find X, or a directory has "'" in its name.
|
|
7421 |
ac_cv_have_x="have_x=no";; #( |
|
7422 |
*)
|
|
7423 |
# Record where we found X for the cache.
|
|
7424 |
ac_cv_have_x="have_x=yes\ |
|
7425 |
ac_x_includes='$ac_x_includes'\ |
|
7426 |
ac_x_libraries='$ac_x_libraries'" |
|
7427 |
esac
|
|
7428 |
fi
|
|
7429 |
;; #( |
|
7430 |
*) have_x=yes;; |
|
7431 |
esac
|
|
7432 |
eval "$ac_cv_have_x" |
|
7433 |
fi # $with_x != no |
|
7434 |
||
7435 |
if test "$have_x" != yes; then |
|
7436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
|
7437 |
$as_echo "$have_x" >&6; } |
|
7438 |
no_x=yes |
|
7439 |
else
|
|
7440 |
# If each of the values was on the command line, it overrides each guess.
|
|
7441 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
|
7442 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
|
7443 |
# Update the cache value to reflect the command line values.
|
|
7444 |
ac_cv_have_x="have_x=yes\ |
|
7445 |
ac_x_includes='$x_includes'\ |
|
7446 |
ac_x_libraries='$x_libraries'" |
|
7447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
|
7448 |
$as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
|
7449 |
fi
|
|
7450 |
||
7451 |
if test "$no_x" = yes; then |
|
7452 |
# Not all programs may use this symbol, but it does not hurt to define it.
|
|
7453 |
||
7454 |
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
|
7455 |
||
7456 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
|
7457 |
else
|
|
7458 |
if test -n "$x_includes"; then |
|
7459 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
|
7460 |
fi
|
|
7461 |
||
7462 |
# It would also be nice to do this for all -L options, not just this one.
|
|
7463 |
if test -n "$x_libraries"; then |
|
7464 |
X_LIBS="$X_LIBS -L$x_libraries" |
|
7465 |
# For Solaris; some versions of Sun CC require a space after -R and
|
|
7466 |
# others require no space. Words are not sufficient . . . .
|
|
7467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
|
7468 |
$as_echo_n "checking whether -R must be followed by a space... " >&6; } |
|
7469 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
|
7470 |
ac_xsave_c_werror_flag=$ac_c_werror_flag |
|
7471 |
ac_c_werror_flag=yes |
|
7472 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7473 |
/* end confdefs.h. */
|
|
7474 |
||
7475 |
int
|
|
7476 |
main ()
|
|
7477 |
{
|
|
7478 |
||
7479 |
;
|
|
7480 |
return 0;
|
|
7481 |
}
|
|
7482 |
_ACEOF
|
|
7483 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7485 |
$as_echo "no" >&6; } |
|
7486 |
X_LIBS="$X_LIBS -R$x_libraries" |
|
7487 |
else
|
|
7488 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
|
7489 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7490 |
/* end confdefs.h. */
|
|
7491 |
||
7492 |
int
|
|
7493 |
main ()
|
|
7494 |
{
|
|
7495 |
||
7496 |
;
|
|
7497 |
return 0;
|
|
7498 |
}
|
|
7499 |
_ACEOF
|
|
7500 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
7502 |
$as_echo "yes" >&6; } |
|
7503 |
X_LIBS="$X_LIBS -R $x_libraries" |
|
7504 |
else
|
|
7505 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
|
7506 |
$as_echo "neither works" >&6; } |
|
7507 |
fi
|
|
7508 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7509 |
conftest$ac_exeext conftest.$ac_ext |
|
7510 |
fi
|
|
7511 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7512 |
conftest$ac_exeext conftest.$ac_ext |
|
7513 |
ac_c_werror_flag=$ac_xsave_c_werror_flag |
|
7514 |
LIBS=$ac_xsave_LIBS |
|
7515 |
fi
|
|
7516 |
||
7517 |
# Check for system-dependent libraries X programs must link with.
|
|
7518 |
# Do this before checking for the system-independent R6 libraries
|
|
7519 |
# (-lICE), since we may need -lsocket or whatever for X linking.
|
|
7520 |
||
7521 |
if test "$ISC" = yes; then |
|
7522 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
|
7523 |
else
|
|
7524 |
# Martyn Johnson says this is needed for Ultrix, if the X
|
|
7525 |
# libraries were built with DECnet support. And Karl Berry says
|
|
7526 |
# the Alpha needs dnet_stub (dnet does not exist).
|
|
7527 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
|
7528 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7529 |
/* end confdefs.h. */
|
|
7530 |
||
7531 |
/* Override any GCC internal prototype to avoid an error.
|
|
7532 |
Use char because int might match the return type of a GCC
|
|
7533 |
builtin and then its argument prototype would still apply. */
|
|
7534 |
#ifdef __cplusplus
|
|
7535 |
extern "C"
|
|
7536 |
#endif
|
|
7537 |
char XOpenDisplay ();
|
|
7538 |
int
|
|
7539 |
main ()
|
|
7540 |
{
|
|
7541 |
return XOpenDisplay ();
|
|
7542 |
;
|
|
7543 |
return 0;
|
|
7544 |
}
|
|
7545 |
_ACEOF
|
|
7546 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7547 |
||
7548 |
else
|
|
7549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
|
7550 |
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
|
7551 |
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
|
7552 |
$as_echo_n "(cached) " >&6 |
|
7553 |
else
|
|
7554 |
ac_check_lib_save_LIBS=$LIBS |
|
7555 |
LIBS="-ldnet $LIBS" |
|
7556 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7557 |
/* end confdefs.h. */
|
|
7558 |
||
7559 |
/* Override any GCC internal prototype to avoid an error.
|
|
7560 |
Use char because int might match the return type of a GCC
|
|
7561 |
builtin and then its argument prototype would still apply. */
|
|
7562 |
#ifdef __cplusplus
|
|
7563 |
extern "C"
|
|
7564 |
#endif
|
|
7565 |
char dnet_ntoa ();
|
|
7566 |
int
|
|
7567 |
main ()
|
|
7568 |
{
|
|
7569 |
return dnet_ntoa ();
|
|
7570 |
;
|
|
7571 |
return 0;
|
|
7572 |
}
|
|
7573 |
_ACEOF
|
|
7574 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7575 |
ac_cv_lib_dnet_dnet_ntoa=yes |
|
7576 |
else
|
|
7577 |
ac_cv_lib_dnet_dnet_ntoa=no |
|
7578 |
fi
|
|
7579 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7580 |
conftest$ac_exeext conftest.$ac_ext |
|
7581 |
LIBS=$ac_check_lib_save_LIBS |
|
7582 |
fi
|
|
7583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
|
7584 |
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
|
7585 |
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
|
7586 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
|
7587 |
fi
|
|
7588 |
||
7589 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
|
7590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
|
7591 |
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
|
7592 |
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
|
7593 |
$as_echo_n "(cached) " >&6 |
|
7594 |
else
|
|
7595 |
ac_check_lib_save_LIBS=$LIBS |
|
7596 |
LIBS="-ldnet_stub $LIBS" |
|
7597 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7598 |
/* end confdefs.h. */
|
|
7599 |
||
7600 |
/* Override any GCC internal prototype to avoid an error.
|
|
7601 |
Use char because int might match the return type of a GCC
|
|
7602 |
builtin and then its argument prototype would still apply. */
|
|
7603 |
#ifdef __cplusplus
|
|
7604 |
extern "C"
|
|
7605 |
#endif
|
|
7606 |
char dnet_ntoa ();
|
|
7607 |
int
|
|
7608 |
main ()
|
|
7609 |
{
|
|
7610 |
return dnet_ntoa ();
|
|
7611 |
;
|
|
7612 |
return 0;
|
|
7613 |
}
|
|
7614 |
_ACEOF
|
|
7615 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7616 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
|
7617 |
else
|
|
7618 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
|
7619 |
fi
|
|
7620 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7621 |
conftest$ac_exeext conftest.$ac_ext |
|
7622 |
LIBS=$ac_check_lib_save_LIBS |
|
7623 |
fi
|
|
7624 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
|
7625 |
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
|
7626 |
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
|
7627 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
|
7628 |
fi
|
|
7629 |
||
7630 |
fi
|
|
7631 |
fi
|
|
7632 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7633 |
conftest$ac_exeext conftest.$ac_ext |
|
7634 |
LIBS="$ac_xsave_LIBS" |
|
7635 |
||
7636 |
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
7637 |
# to get the SysV transport functions.
|
|
7638 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
7639 |
# needs -lnsl.
|
|
7640 |
# The nsl library prevents programs from opening the X display
|
|
7641 |
# on Irix 5.2, according to T.E. Dickey.
|
|
7642 |
# The functions gethostbyname, getservbyname, and inet_addr are
|
|
7643 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
|
7644 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
|
7645 |
if test "x$ac_cv_func_gethostbyname" = xyes; then : |
|
7646 |
||
7647 |
fi
|
|
7648 |
||
7649 |
if test $ac_cv_func_gethostbyname = no; then |
|
7650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
|
7651 |
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
|
7652 |
if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
|
7653 |
$as_echo_n "(cached) " >&6 |
|
7654 |
else
|
|
7655 |
ac_check_lib_save_LIBS=$LIBS |
|
7656 |
LIBS="-lnsl $LIBS" |
|
7657 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7658 |
/* end confdefs.h. */
|
|
7659 |
||
7660 |
/* Override any GCC internal prototype to avoid an error.
|
|
7661 |
Use char because int might match the return type of a GCC
|
|
7662 |
builtin and then its argument prototype would still apply. */
|
|
7663 |
#ifdef __cplusplus
|
|
7664 |
extern "C"
|
|
7665 |
#endif
|
|
7666 |
char gethostbyname ();
|
|
7667 |
int
|
|
7668 |
main ()
|
|
7669 |
{
|
|
7670 |
return gethostbyname ();
|
|
7671 |
;
|
|
7672 |
return 0;
|
|
7673 |
}
|
|
7674 |
_ACEOF
|
|
7675 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7676 |
ac_cv_lib_nsl_gethostbyname=yes |
|
7677 |
else
|
|
7678 |
ac_cv_lib_nsl_gethostbyname=no |
|
7679 |
fi
|
|
7680 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7681 |
conftest$ac_exeext conftest.$ac_ext |
|
7682 |
LIBS=$ac_check_lib_save_LIBS |
|
7683 |
fi
|
|
7684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
7685 |
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
7686 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
|
7687 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
7688 |
fi
|
|
7689 |
||
7690 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
|
7691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
|
7692 |
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
|
7693 |
if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
|
7694 |
$as_echo_n "(cached) " >&6 |
|
7695 |
else
|
|
7696 |
ac_check_lib_save_LIBS=$LIBS |
|
7697 |
LIBS="-lbsd $LIBS" |
|
7698 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7699 |
/* end confdefs.h. */
|
|
7700 |
||
7701 |
/* Override any GCC internal prototype to avoid an error.
|
|
7702 |
Use char because int might match the return type of a GCC
|
|
7703 |
builtin and then its argument prototype would still apply. */
|
|
7704 |
#ifdef __cplusplus
|
|
7705 |
extern "C"
|
|
7706 |
#endif
|
|
7707 |
char gethostbyname ();
|
|
7708 |
int
|
|
7709 |
main ()
|
|
7710 |
{
|
|
7711 |
return gethostbyname ();
|
|
7712 |
;
|
|
7713 |
return 0;
|
|
7714 |
}
|
|
7715 |
_ACEOF
|
|
7716 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7717 |
ac_cv_lib_bsd_gethostbyname=yes |
|
7718 |
else
|
|
7719 |
ac_cv_lib_bsd_gethostbyname=no |
|
7720 |
fi
|
|
7721 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7722 |
conftest$ac_exeext conftest.$ac_ext |
|
7723 |
LIBS=$ac_check_lib_save_LIBS |
|
7724 |
fi
|
|
7725 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
|
7726 |
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
|
7727 |
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
|
7728 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
|
7729 |
fi
|
|
7730 |
||
7731 |
fi
|
|
7732 |
fi
|
|
7733 |
||
7734 |
# lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
7735 |
# socket/setsockopt and other routines are undefined under SCO ODT
|
|
7736 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
7737 |
# on later versions), says Simon Leinen: it contains gethostby*
|
|
7738 |
# variants that don't use the name server (or something). -lsocket
|
|
7739 |
# must be given before -lnsl if both are needed. We assume that
|
|
7740 |
# if connect needs -lnsl, so does gethostbyname.
|
|
7741 |
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
|
7742 |
if test "x$ac_cv_func_connect" = xyes; then : |
|
7743 |
||
7744 |
fi
|
|
7745 |
||
7746 |
if test $ac_cv_func_connect = no; then |
|
7747 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
|
7748 |
$as_echo_n "checking for connect in -lsocket... " >&6; } |
|
7749 |
if ${ac_cv_lib_socket_connect+:} false; then : |
|
7750 |
$as_echo_n "(cached) " >&6 |
|
7751 |
else
|
|
7752 |
ac_check_lib_save_LIBS=$LIBS |
|
7753 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
|
7754 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7755 |
/* end confdefs.h. */
|
|
7756 |
||
7757 |
/* Override any GCC internal prototype to avoid an error.
|
|
7758 |
Use char because int might match the return type of a GCC
|
|
7759 |
builtin and then its argument prototype would still apply. */
|
|
7760 |
#ifdef __cplusplus
|
|
7761 |
extern "C"
|
|
7762 |
#endif
|
|
7763 |
char connect ();
|
|
7764 |
int
|
|
7765 |
main ()
|
|
7766 |
{
|
|
7767 |
return connect ();
|
|
7768 |
;
|
|
7769 |
return 0;
|
|
7770 |
}
|
|
7771 |
_ACEOF
|
|
7772 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7773 |
ac_cv_lib_socket_connect=yes |
|
7774 |
else
|
|
7775 |
ac_cv_lib_socket_connect=no |
|
7776 |
fi
|
|
7777 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7778 |
conftest$ac_exeext conftest.$ac_ext |
|
7779 |
LIBS=$ac_check_lib_save_LIBS |
|
7780 |
fi
|
|
7781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
|
7782 |
$as_echo "$ac_cv_lib_socket_connect" >&6; } |
|
7783 |
if test "x$ac_cv_lib_socket_connect" = xyes; then : |
|
7784 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
7785 |
fi
|
|
7786 |
||
7787 |
fi
|
|
7788 |
||
7789 |
# Guillermo Gomez says -lposix is necessary on A/UX.
|
|
7790 |
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
|
7791 |
if test "x$ac_cv_func_remove" = xyes; then : |
|
7792 |
||
7793 |
fi
|
|
7794 |
||
7795 |
if test $ac_cv_func_remove = no; then |
|
7796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
|
7797 |
$as_echo_n "checking for remove in -lposix... " >&6; } |
|
7798 |
if ${ac_cv_lib_posix_remove+:} false; then : |
|
7799 |
$as_echo_n "(cached) " >&6 |
|
7800 |
else
|
|
7801 |
ac_check_lib_save_LIBS=$LIBS |
|
7802 |
LIBS="-lposix $LIBS" |
|
7803 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7804 |
/* end confdefs.h. */
|
|
7805 |
||
7806 |
/* Override any GCC internal prototype to avoid an error.
|
|
7807 |
Use char because int might match the return type of a GCC
|
|
7808 |
builtin and then its argument prototype would still apply. */
|
|
7809 |
#ifdef __cplusplus
|
|
7810 |
extern "C"
|
|
7811 |
#endif
|
|
7812 |
char remove ();
|
|
7813 |
int
|
|
7814 |
main ()
|
|
7815 |
{
|
|
7816 |
return remove ();
|
|
7817 |
;
|
|
7818 |
return 0;
|
|
7819 |
}
|
|
7820 |
_ACEOF
|
|
7821 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7822 |
ac_cv_lib_posix_remove=yes |
|
7823 |
else
|
|
7824 |
ac_cv_lib_posix_remove=no |
|
7825 |
fi
|
|
7826 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7827 |
conftest$ac_exeext conftest.$ac_ext |
|
7828 |
LIBS=$ac_check_lib_save_LIBS |
|
7829 |
fi
|
|
7830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
|
7831 |
$as_echo "$ac_cv_lib_posix_remove" >&6; } |
|
7832 |
if test "x$ac_cv_lib_posix_remove" = xyes; then : |
|
7833 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
7834 |
fi
|
|
7835 |
||
7836 |
fi
|
|
7837 |
||
7838 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
7839 |
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
|
7840 |
if test "x$ac_cv_func_shmat" = xyes; then : |
|
7841 |
||
7842 |
fi
|
|
7843 |
||
7844 |
if test $ac_cv_func_shmat = no; then |
|
7845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
|
7846 |
$as_echo_n "checking for shmat in -lipc... " >&6; } |
|
7847 |
if ${ac_cv_lib_ipc_shmat+:} false; then : |
|
7848 |
$as_echo_n "(cached) " >&6 |
|
7849 |
else
|
|
7850 |
ac_check_lib_save_LIBS=$LIBS |
|
7851 |
LIBS="-lipc $LIBS" |
|
7852 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7853 |
/* end confdefs.h. */
|
|
7854 |
||
7855 |
/* Override any GCC internal prototype to avoid an error.
|
|
7856 |
Use char because int might match the return type of a GCC
|
|
7857 |
builtin and then its argument prototype would still apply. */
|
|
7858 |
#ifdef __cplusplus
|
|
7859 |
extern "C"
|
|
7860 |
#endif
|
|
7861 |
char shmat ();
|
|
7862 |
int
|
|
7863 |
main ()
|
|
7864 |
{
|
|
7865 |
return shmat ();
|
|
7866 |
;
|
|
7867 |
return 0;
|
|
7868 |
}
|
|
7869 |
_ACEOF
|
|
7870 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7871 |
ac_cv_lib_ipc_shmat=yes |
|
7872 |
else
|
|
7873 |
ac_cv_lib_ipc_shmat=no |
|
7874 |
fi
|
|
7875 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7876 |
conftest$ac_exeext conftest.$ac_ext |
|
7877 |
LIBS=$ac_check_lib_save_LIBS |
|
7878 |
fi
|
|
7879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
|
7880 |
$as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
|
7881 |
if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
|
7882 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
|
7883 |
fi
|
|
7884 |
||
7885 |
fi
|
|
7886 |
fi
|
|
7887 |
||
7888 |
# Check for libraries that X11R6 Xt/Xaw programs need.
|
|
7889 |
ac_save_LDFLAGS=$LDFLAGS |
|
7890 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
|
7891 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
7892 |
# check for ICE first), but we must link in the order -lSM -lICE or
|
|
7893 |
# we get undefined symbols. So assume we have SM if we have ICE.
|
|
7894 |
# These have to be linked with before -lX11, unlike the other
|
|
7895 |
# libraries we check for below, so use a different variable.
|
|
7896 |
# John Interrante, Karl Berry
|
|
7897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
|
7898 |
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
|
7899 |
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
|
7900 |
$as_echo_n "(cached) " >&6 |
|
7901 |
else
|
|
7902 |
ac_check_lib_save_LIBS=$LIBS |
|
7903 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
|
7904 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7905 |
/* end confdefs.h. */
|
|
7906 |
||
7907 |
/* Override any GCC internal prototype to avoid an error.
|
|
7908 |
Use char because int might match the return type of a GCC
|
|
7909 |
builtin and then its argument prototype would still apply. */
|
|
7910 |
#ifdef __cplusplus
|
|
7911 |
extern "C"
|
|
7912 |
#endif
|
|
7913 |
char IceConnectionNumber ();
|
|
7914 |
int
|
|
7915 |
main ()
|
|
7916 |
{
|
|
7917 |
return IceConnectionNumber ();
|
|
7918 |
;
|
|
7919 |
return 0;
|
|
7920 |
}
|
|
7921 |
_ACEOF
|
|
7922 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7923 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
|
7924 |
else
|
|
7925 |
ac_cv_lib_ICE_IceConnectionNumber=no |
|
7926 |
fi
|
|
7927 |
rm -f core conftest.err conftest.$ac_objext \ |
|
7928 |
conftest$ac_exeext conftest.$ac_ext |
|
7929 |
LIBS=$ac_check_lib_save_LIBS |
|
7930 |
fi
|
|
7931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
|
7932 |
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
|
7933 |
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
|
7934 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
|
7935 |
fi
|
|
7936 |
||
7937 |
LDFLAGS=$ac_save_LDFLAGS |
|
7938 |
||
7939 |
fi
|
|
7940 |
||
7941 |
||
7942 |
X_LDFLAGS="" |
|
7943 |
X_CFLAGS="" |
|
7944 |
X_DEVS="" |
|
7945 |
X_LIBS="" |
|
7946 |
||
7947 |
if test x$no_x != xyes; then |
|
7948 |
if test "$x_libraries" = "/usr/lib"; then |
|
7949 |
echo "Ignoring X library directory \"$x_libraries\" requested by configure." |
|
7950 |
x_libraries="NONE" |
|
7951 |
fi
|
|
7952 |
if test ! "$x_libraries" = "NONE" -a ! "$x_libraries" = ""; then |
|
7953 |
X_LDFLAGS="-L$x_libraries" |
|
7954 |
if test "$uname" = "SunOS"; then |
|
7955 |
X_LDFLAGS="$X_LDFLAGS -R$x_libraries" |
|
7956 |
fi
|
|
7957 |
fi
|
|
7958 |
||
7959 |
if test "$x_includes" = "/usr/include"; then |
|
7960 |
echo "Ignoring X include directory \"$x_includes\" requested by configure." |
|
7961 |
x_includes="NONE" |
|
7962 |
fi
|
|
7963 |
if test ! "$x_includes" = "NONE" -a ! "$x_includes" = ""; then |
|
7964 |
X_CFLAGS="-I$x_includes" |
|
7965 |
fi
|
|
7966 |
||
7967 |
SAVELIBS="$LIBS" |
|
7968 |
SAVELDFLAGS="$LDFLAGS" |
|
7969 |
LDFLAGS="$LDFLAGS $X_LDFLAGS" |
|
7970 |
||
7971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 |
|
7972 |
$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } |
|
7973 |
if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : |
|
7974 |
$as_echo_n "(cached) " >&6 |
|
7975 |
else
|
|
7976 |
ac_check_lib_save_LIBS=$LIBS |
|
7977 |
LIBS="-lX11 $LIBS" |
|
7978 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7979 |
/* end confdefs.h. */
|
|
7980 |
||
7981 |
/* Override any GCC internal prototype to avoid an error.
|
|
7982 |
Use char because int might match the return type of a GCC
|
|
7983 |
builtin and then its argument prototype would still apply. */
|
|
7984 |
#ifdef __cplusplus
|
|
7985 |
extern "C"
|
|
7986 |
#endif
|
|
7987 |
char XOpenDisplay ();
|
|
7988 |
int
|
|
7989 |
main ()
|
|
7990 |
{
|
|
7991 |
return XOpenDisplay ();
|
|
7992 |
;
|
|
7993 |
return 0;
|
|
7994 |
}
|
|
7995 |
_ACEOF
|
|
7996 |
if ac_fn_c_try_link "$LINENO"; then : |
|
7997 |
ac_cv_lib_X11_XOpenDisplay=yes |
|
7998 |
else
|
|
7999 |
ac_cv_lib_X11_XOpenDisplay=no |
|
8000 |
fi
|
|
8001 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8002 |
conftest$ac_exeext conftest.$ac_ext |
|
8003 |
LIBS=$ac_check_lib_save_LIBS |
|
8004 |
fi
|
|
8005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 |
|
8006 |
$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } |
|
8007 |
if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : |
|
8008 |
cat >>confdefs.h <<_ACEOF
|
|
8009 |
#define HAVE_LIBX11 1
|
|
8010 |
_ACEOF
|
|
8011 |
||
8012 |
LIBS="-lX11 $LIBS" |
|
8013 |
||
8014 |
fi
|
|
8015 |
||
8016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5 |
|
8017 |
$as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; } |
|
8018 |
if ${ac_cv_lib_Xext_XdbeQueryExtension+:} false; then : |
|
8019 |
$as_echo_n "(cached) " >&6 |
|
8020 |
else
|
|
8021 |
ac_check_lib_save_LIBS=$LIBS |
|
8022 |
LIBS="-lXext $LIBS" |
|
8023 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8024 |
/* end confdefs.h. */
|
|
8025 |
||
8026 |
/* Override any GCC internal prototype to avoid an error.
|
|
8027 |
Use char because int might match the return type of a GCC
|
|
8028 |
builtin and then its argument prototype would still apply. */
|
|
8029 |
#ifdef __cplusplus
|
|
8030 |
extern "C"
|
|
8031 |
#endif
|
|
8032 |
char XdbeQueryExtension ();
|
|
8033 |
int
|
|
8034 |
main ()
|
|
8035 |
{
|
|
8036 |
return XdbeQueryExtension ();
|
|
8037 |
;
|
|
8038 |
return 0;
|
|
8039 |
}
|
|
8040 |
_ACEOF
|
|
8041 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8042 |
ac_cv_lib_Xext_XdbeQueryExtension=yes |
|
8043 |
else
|
|
8044 |
ac_cv_lib_Xext_XdbeQueryExtension=no |
|
8045 |
fi
|
|
8046 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8047 |
conftest$ac_exeext conftest.$ac_ext |
|
8048 |
LIBS=$ac_check_lib_save_LIBS |
|
8049 |
fi
|
|
8050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5 |
|
8051 |
$as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; } |
|
8052 |
if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = xyes; then : |
|
8053 |
cat >>confdefs.h <<_ACEOF
|
|
8054 |
#define HAVE_LIBXEXT 1
|
|
8055 |
_ACEOF
|
|
8056 |
||
8057 |
LIBS="-lXext $LIBS" |
|
8058 |
||
8059 |
fi
|
|
8060 |
||
8061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtAppCreateShell in -lXt" >&5 |
|
8062 |
$as_echo_n "checking for XtAppCreateShell in -lXt... " >&6; } |
|
8063 |
if ${ac_cv_lib_Xt_XtAppCreateShell+:} false; then : |
|
8064 |
$as_echo_n "(cached) " >&6 |
|
8065 |
else
|
|
8066 |
ac_check_lib_save_LIBS=$LIBS |
|
8067 |
LIBS="-lXt $LIBS" |
|
8068 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8069 |
/* end confdefs.h. */
|
|
8070 |
||
8071 |
/* Override any GCC internal prototype to avoid an error.
|
|
8072 |
Use char because int might match the return type of a GCC
|
|
8073 |
builtin and then its argument prototype would still apply. */
|
|
8074 |
#ifdef __cplusplus
|
|
8075 |
extern "C"
|
|
8076 |
#endif
|
|
8077 |
char XtAppCreateShell ();
|
|
8078 |
int
|
|
8079 |
main ()
|
|
8080 |
{
|
|
8081 |
return XtAppCreateShell ();
|
|
8082 |
;
|
|
8083 |
return 0;
|
|
8084 |
}
|
|
8085 |
_ACEOF
|
|
8086 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8087 |
ac_cv_lib_Xt_XtAppCreateShell=yes |
|
8088 |
else
|
|
8089 |
ac_cv_lib_Xt_XtAppCreateShell=no |
|
8090 |
fi
|
|
8091 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8092 |
conftest$ac_exeext conftest.$ac_ext |
|
8093 |
LIBS=$ac_check_lib_save_LIBS |
|
8094 |
fi
|
|
8095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtAppCreateShell" >&5 |
|
8096 |
$as_echo "$ac_cv_lib_Xt_XtAppCreateShell" >&6; } |
|
8097 |
if test "x$ac_cv_lib_Xt_XtAppCreateShell" = xyes; then : |
|
8098 |
cat >>confdefs.h <<_ACEOF
|
|
8099 |
#define HAVE_LIBXT 1
|
|
8100 |
_ACEOF
|
|
8101 |
||
8102 |
LIBS="-lXt $LIBS" |
|
8103 |
||
8104 |
fi
|
|
8105 |
||
8106 |
||
8107 |
LDFLAGS="$SAVELDFLAGS" |
|
8108 |
LIBS="$SAVELIBS" |
|
8109 |
||
8110 |
if test "$ac_cv_lib_Xt_XtAppCreateShell" = yes; then |
|
8111 |
X11DEVS="x11 x11alpha x11cmyk x11mono x11_ x11alt_ x11cmyk2 x11cmyk4 x11cmyk8 x11rg16x x11rg32x x11gray2 x11gray4" |
|
8112 |
X_DEVS=$X11DEVS |
|
8113 |
# the makefile wants a list of just the library names in X_LIBS
|
|
8114 |
||
8115 |
# the makefile wants a list of just the library names
|
|
8116 |
for gs_item in -lXt $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS; do |
|
8117 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/^-l//'` |
|
8118 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
|
8119 |
X_LIBS="$X_LIBS $gs_stripped_item" |
|
8120 |
fi
|
|
8121 |
done
|
|
8122 |
||
8123 |
fi
|
|
8124 |
fi
|
|
8125 |
||
8126 |
||
8127 |
||
8128 |
||
8129 |
#AC_SUBST(X_DEVS)
|
|
8130 |
#AC_SUBST(X11DEVS)
|
|
8131 |
||
8132 |
||
8133 |
||
8134 |
# Check whether --with-gs was given.
|
|
8135 |
if test "${with_gs+set}" = set; then : |
|
8136 |
withval=$with_gs; GS="$with_gs" |
|
8137 |
else
|
|
8138 |
GS='gs' |
|
8139 |
fi
|
|
8140 |
||
8141 |
||
8142 |
||
8143 |
COMPILE_INITS="1" |
|
8144 |
# Check whether --enable-compile-inits was given.
|
|
8145 |
if test "${enable_compile_inits+set}" = set; then : |
|
8146 |
enableval=$enable_compile_inits; |
|
8147 |
if test "x$enable_compile_inits" = xno; then |
|
8148 |
COMPILE_INITS="0" |
|
8149 |
fi
|
|
8150 |
fi
|
|
8151 |
||
8152 |
||
8153 |
||
8154 |
||
8155 |
# Check whether --with-drivers was given.
|
|
8156 |
if test "${with_drivers+set}" = set; then : |
|
8157 |
withval=$with_drivers; drivers="$withval" |
|
8158 |
else
|
|
8159 |
drivers="ALL" |
|
8160 |
fi
|
|
8161 |
||
8162 |
||
8163 |
||
8164 |
# Check whether --with-driversfile was given.
|
|
8165 |
if test "${with_driversfile+set}" = set; then : |
|
8166 |
withval=$with_driversfile; driversfile="$withval" |
|
8167 |
else
|
|
8168 |
driversfile="" |
|
8169 |
fi
|
|
8170 |
||
8171 |
||
8172 |
if test "x$driversfile" != x; then |
|
8173 |
# Add drivers from file...
|
|
8174 |
drivers="`tr '\n' ',' <$driversfile`" |
|
8175 |
fi
|
|
8176 |
||
8177 |
P_DEVS0="" |
|
8178 |
F_DEVS0="" |
|
8179 |
CUPS_DEVS0="" |
|
8180 |
SVG_DEVS0="" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8181 |
XPS_DEVS0="" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8182 |
JBIG2_DEVS="" |
8183 |
IJS_DEVS0="" |
|
8184 |
PNG_DEVS0="" |
|
8185 |
X11_DEVS0="" |
|
8186 |
||
8187 |
||
8188 |
HP_DEVS='cdj500 djet500 djet500c dnj650c cljet5pr deskjet laserjet ljetplus ljet2p ljet3 ljet3d ljet4 ljet4d lj4dith lj5mono lj5gray cdeskjet cdjcolor cdjmono cdj550 pj pjxl pjxl300 lp2563 paintjet pjetxl cljet5 cljet5c pxlmono pxlcolor cdj670 cdj850 cdj880 cdj890 cdj970 cdj1600 cdnj500 chp2200 pcl3 hpdjplus hpdjportable hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj1120c lj3100sw' |
|
8189 |
PCLXL_DEVS='pxlmono pxlcolor' |
|
8190 |
EPSON_DEVS='eps9high eps9mid epson epsonc escp lp8000 lq850 photoex st800 stcolor alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 lp3000c lp8000c lp8200c lp8300c lp8500c lp8800c lp9000c lp9200c lp9500c lp9800c lps6500 epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900 epl6100 epl6200 lp1800 lp1900 lp2200 lp2400 lp2500 lp7500 lp7700 lp7900 lp8100 lp8300f lp8400f lp8600 lp8600f lp8700 lp8900 lp9000b lp9100 lp9200b lp9300 lp9400 lp9600 lp9600s lps4500 eplcolor eplmono' |
|
8191 |
CANON_DEVS='bj10e bj200 bjc600 bjc800 lbp8 lips3 bjcmono bjcgray bjccmyk bjccolor' |
|
8192 |
LEXMARK_DEVS='lxm5700m lxm3200 lex2050 lex3200 lex5700 lex7000' |
|
8193 |
BROTHER_DEVS='hl7x0 hl1240 hl1250' |
|
8194 |
APPLE_DEVS='appledmp iwhi iwlo iwlq' |
|
8195 |
IBM_DEVS='ibmpro jetp3852' |
|
8196 |
OKI_DEVS='oki182 okiibm oki4w' |
|
8197 |
JAPAN_DEVS='lips4 lips4v ljet4pjl lj4dithp dj505j picty180 lips2p bjc880j pr201 pr150 pr1000 pr1000_4 jj100 bj10v bj10vh mj700v2c mj500c mj6000c mj8000c fmpr fmlbp ml600 lbp310 lbp320 md50Mono md50Eco md1xMono escpage lp2000 npdl rpdl' |
|
8198 |
MISC_PDEVS='uniprint ap3250 atx23 atx24 atx38 coslw2p coslwxl cp50 declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes md2k md5k gdi samsunggdi' |
|
8199 |
OPVP_DEVS='opvp oprp' |
|
8200 |
||
8201 |
ETS_HALFTONING_DEVS='rinkj' |
|
8202 |
||
8203 |
BMP_DEVS='bmpmono bmpgray bmpsep1 bmpsep8 bmp16 bmp256 bmp16m bmp32b' |
|
8204 |
||
8205 |
JPEG_DEVS='jpeg jpeggray jpegcmyk' |
|
8206 |
# PNG_DEVS='png16 png16m png256 pngalpha pnggray pngmono'
|
|
8207 |
||
8208 |
PCX_DEVS='pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk pcx2up' |
|
8209 |
PBM_DEVS='pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw pam pamcmyk4 pamcmyk32 plan plang planm planc plank' |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8210 |
PS_DEVS='psdf psdcmyk psdrgb pdfwrite ps2write epswrite bbox txtwrite inkcov' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8211 |
MISC_FDEVS='ccr cif inferno mag16 mag256 mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 plan9bm sgirgb sunhmono bit bitrgb bitrgbtags bitcmyk devicen spotcmyk xcf' |
8212 |
SVGDEV='svgwrite' |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8213 |
XPSDEV='xpswrite' |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8214 |
|
8215 |
while test -n "$drivers"; do |
|
8216 |
if echo $drivers |grep "," >/dev/null; then |
|
8217 |
THIS="`echo $drivers |sed -e 's/,.*//'`" |
|
8218 |
SEDCMD="s/$THIS,//" |
|
8219 |
drivers="`echo $drivers |sed -e $SEDCMD`" |
|
8220 |
else
|
|
8221 |
THIS=$drivers |
|
8222 |
drivers="" |
|
8223 |
fi
|
|
8224 |
case "$THIS" in |
|
8225 |
ALL)
|
|
8226 |
# ALL = PRINTERS + FILES...
|
|
8227 |
if test -z "$drivers"; then |
|
8228 |
drivers="PRINTERS,FILES,X11" |
|
8229 |
else
|
|
8230 |
drivers="$drivers,PRINTERS,FILES,X11" |
|
8231 |
fi
|
|
8232 |
;;
|
|
8233 |
PRINTERS)
|
|
8234 |
P_DEVS0="$P_DEVS0 $CANON_DEVS $EPSON_DEVS $HP_DEVS $LEXMARK_DEVS $BROTHER_DEVS $APPLE_DEVS $IBM_DEVS $OKI_DEVS $JAPAN_DEVS $MISC_PDEVS $ETS_HALFTONING_DEVS" |
|
8235 |
IJS_DEVS0="$IJSDEVS" |
|
8236 |
if test x$ac_cv_lib_dl_dlopen != xno -a x$found_iconv != xno; then |
|
8237 |
P_DEVS0="$P_DEVS0 $OPVP_DEVS" |
|
8238 |
else
|
|
8239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&5 |
|
8240 |
$as_echo "$as_me: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&2;} |
|
8241 |
fi
|
|
8242 |
;;
|
|
8243 |
FILES)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8244 |
F_DEVS0="$F_DEVS0 $BMP_DEVS $FAX_DEVS $JPEG_DEVS $TIFFDEVS $PCX_DEVS $PBM_DEVS $PS_DEVS $MISC_FDEVS $SVGDEV $XPSDEV" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8245 |
CUPS_DEVS0="$CUPSDEV" |
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8246 |
JBIG2_DEVS="$JBIG2FILEDEVS" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8247 |
PNG_DEVS0="$PNGDEVS" |
8248 |
;;
|
|
8249 |
APPLE)
|
|
8250 |
# All Apple printers
|
|
8251 |
P_DEVS0="$P_DEVS0 $APPLE_DEVS" |
|
8252 |
;;
|
|
8253 |
BMP)
|
|
8254 |
# BMP file format
|
|
8255 |
F_DEVS0="$F_DEVS0 $BMP_DEVS" |
|
8256 |
;;
|
|
8257 |
CANON)
|
|
8258 |
# All Canon printers
|
|
8259 |
P_DEVS0="$P_DEVS0 $CANON_DEVS" |
|
8260 |
;;
|
|
8261 |
EPSON)
|
|
8262 |
# All Epson printers
|
|
8263 |
P_DEVS0="$P_DEVS0 $EPSON_DEVS" |
|
8264 |
;;
|
|
8265 |
FAX)
|
|
8266 |
# Fax file formats
|
|
8267 |
F_DEVS0="$F_DEVS0 $FAX_DEVS" |
|
8268 |
;;
|
|
8269 |
JPEG)
|
|
8270 |
# Jpeg file formats
|
|
8271 |
F_DEVS0="$F_DEVS0 $JPEG_DEVS" |
|
8272 |
;;
|
|
8273 |
JBIG2)
|
|
8274 |
# JBIG file formats
|
|
8275 |
JBIG2_DEVS="$JBIG2DEVS" |
|
8276 |
;;
|
|
8277 |
PNG)
|
|
8278 |
# PNG file formats
|
|
8279 |
PNG_DEVS0="$PNGDEVS" |
|
8280 |
;;
|
|
8281 |
TIFF)
|
|
8282 |
# TIFF file formats
|
|
8283 |
F_DEVS0="$F_DEVS0 $TIFFDEVS" |
|
8284 |
;;
|
|
8285 |
PCLXL)
|
|
8286 |
# PCL XL/PCL 6 drivers
|
|
8287 |
F_DEVS0="$F_DEVS0 $PCLXL_DEVS" |
|
8288 |
;;
|
|
8289 |
PCX)
|
|
8290 |
# PCX file formats
|
|
8291 |
F_DEVS0="$F_DEVS0 $PCX_DEVS" |
|
8292 |
;;
|
|
8293 |
PBM)
|
|
8294 |
# PBM file formats
|
|
8295 |
F_DEVS0="$F_DEVS0 $PBM_DEVS" |
|
8296 |
;;
|
|
8297 |
CUPS)
|
|
8298 |
# CUPS file format
|
|
8299 |
CUPS_DEVS0="$CUPSDEV" |
|
8300 |
;;
|
|
8301 |
HP)
|
|
8302 |
# All HP printers
|
|
8303 |
P_DEVS0="$P_DEVS0 $HP_DEVS" |
|
8304 |
;;
|
|
8305 |
LEXMARK)
|
|
8306 |
# All Lexmark printers
|
|
8307 |
P_DEVS0="$P_DEVS0 $LEXMARK_DEVS" |
|
8308 |
;;
|
|
8309 |
BROTHER)
|
|
8310 |
# All Brother printers
|
|
8311 |
P_DEVS0="$P_DEVS0 $BROTHER_DEVS" |
|
8312 |
;;
|
|
8313 |
OKI)
|
|
8314 |
# All OKI printers
|
|
8315 |
P_DEVS0="$P_DEVS0 $OKI_DEVS" |
|
8316 |
;;
|
|
8317 |
IBM)
|
|
8318 |
# All IBM printers
|
|
8319 |
P_DEVS0="$P_DEVS0 $IBM_DEVS" |
|
8320 |
;;
|
|
8321 |
IJS)
|
|
8322 |
# IJS printers
|
|
8323 |
IJS_DEVS0="$IJSDEVS" |
|
8324 |
;;
|
|
8325 |
JAPAN)
|
|
8326 |
# All old japanese printers
|
|
8327 |
P_DEVS0="$P_DEVS0 $JAPAN_DEVS" |
|
8328 |
;;
|
|
8329 |
PS)
|
|
8330 |
# PostScript/PDF writing
|
|
8331 |
F_DEVS0="$F_DEVS0 $PS_DEVS" |
|
8332 |
;;
|
|
8333 |
SVG)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8334 |
# SVG writing
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8335 |
SVG_DEVS0="$SVGDEV" |
8336 |
;;
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8337 |
XPS)
|
8338 |
# SVG writing
|
|
8339 |
XPS_DEVS0="$XPSDEV" |
|
8340 |
;;
|
|
8341 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8342 |
ETS)
|
8343 |
# ETS Halftoning devices
|
|
8344 |
F_DEVS0="$F_DEVS0 $ETS_HALFTONING_DEVS" |
|
8345 |
;;
|
|
8346 |
X11)
|
|
8347 |
# X11 display devices
|
|
8348 |
X11_DEVS0="$X_DEVS" |
|
8349 |
;;
|
|
8350 |
opvp)
|
|
8351 |
# Open Vector Printing driver...
|
|
8352 |
if test x$ac_cv_lib_dl_dlopen != xno -a x$found_iconv != xno; then |
|
8353 |
P_DEVS0="$P_DEVS0 $OPVP_DEVS" |
|
8354 |
else
|
|
8355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&5 |
|
8356 |
$as_echo "$as_me: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&2;} |
|
8357 |
fi
|
|
8358 |
;;
|
|
8359 |
*)
|
|
8360 |
# It's a driver name (or a user messup)
|
|
8361 |
P_DEVS0="$P_DEVS0 `echo $THIS |sed -e 's,\.dev$,,'`" |
|
8362 |
;;
|
|
8363 |
esac
|
|
8364 |
done
|
|
8365 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
8366 |
if test x$enable_threadsafe = xyes; then |
8367 |
||
8368 |
for ntsdev in $NTS_DEVS ; do |
|
8369 |
NTS_EXCLUDES="$(echo \"$P_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8370 |
P_DEVS0=`echo $P_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8371 |
done
|
|
8372 |
||
8373 |
for ntsdev in $NTS_DEVS ; do |
|
8374 |
NTS_EXCLUDES="$(echo \"$F_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8375 |
F_DEVS0=`echo $F_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8376 |
done
|
|
8377 |
||
8378 |
for ntsdev in $NTS_DEVS ; do |
|
8379 |
NTS_EXCLUDES="$(echo \"$CUPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8380 |
CUPS_DEVS0=`echo $CUPS_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8381 |
done
|
|
8382 |
||
8383 |
for ntsdev in $NTS_DEVS ; do |
|
8384 |
NTS_EXCLUDES="$(echo \"$SVG_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8385 |
SVG_DEVS0=`echo $SVG_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8386 |
done
|
|
8387 |
||
8388 |
for ntsdev in $NTS_DEVS ; do |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8389 |
NTS_EXCLUDES="$(echo \"$XPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
8390 |
XPS_DEVS0=`echo $XPS_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8391 |
done
|
|
8392 |
||
8393 |
for ntsdev in $NTS_DEVS ; do |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
8394 |
NTS_EXCLUDES="$(echo \"$IJS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
8395 |
IJS_DEVS0=`echo $IJS_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8396 |
done
|
|
8397 |
||
8398 |
for ntsdev in $NTS_DEVS ; do |
|
8399 |
NTS_EXCLUDES="$(echo \"$PNG_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8400 |
PNG_DEVS0=`echo $PNG_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8401 |
done
|
|
8402 |
||
8403 |
for ntsdev in $NTS_DEVS ; do |
|
8404 |
NTS_EXCLUDES="$(echo \"$X11_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8405 |
X11_DEVS0=`echo $X11_DEVS0 | sed "s/\b$ntsdev\b//g"` |
|
8406 |
done
|
|
8407 |
||
8408 |
for ntsdev in $NTS_DEVS ; do |
|
8409 |
NTS_EXCLUDES="$(echo \"$JBIG2_DEVS{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" |
|
8410 |
JBIG2_DEVS=`echo $JBIG2_DEVS | sed "s/\b$ntsdev\b//g"` |
|
8411 |
done
|
|
8412 |
||
8413 |
NTS_EXCLUDES=`echo "$NTS_EXCLUDES" | tr " " "\n" | sort | uniq | tr "\n" " "` |
|
8414 |
fi # x$enable_threadsafe = xyes |
|
8415 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8416 |
noncontribmakefiles=`find $srcdir -name '*.mak' -print | grep -v '^\./contrib/'` |
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
8417 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8418 |
# No need to include opvp/oprp driver without iconv/libiconv.
|
8419 |
if test -n "$P_DEVS0"; then |
|
8420 |
if test x$found_iconv = xno ; then |
|
8421 |
P_DEVS0=`echo $P_DEVS0 | sed -e 's|opvp||' -e 's|oprp||'` |
|
8422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing iconv/libiconv..." >&5 |
|
8423 |
$as_echo "$as_me: WARNING: Unable to include opvp/oprp driver due to missing iconv/libiconv..." >&2;} |
|
8424 |
fi
|
|
8425 |
||
8426 |
# Remove contributed drivers if requested and make sure we don't have any
|
|
8427 |
# duplicates in there, add $(DD)foo.dev constructs
|
|
8428 |
P_DEVS=`(for i in $P_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8429 |
fi
|
|
8430 |
||
8431 |
if test -n "$F_DEVS0"; then |
|
8432 |
F_DEVS=`(for i in $F_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8433 |
fi
|
|
8434 |
||
8435 |
if test -n "$CUPS_DEVS0"; then |
|
8436 |
CUPS_DEVS=`(for i in $CUPS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8437 |
fi
|
|
8438 |
||
8439 |
if test -n "$SVG_DEVS0"; then |
|
8440 |
SVG_DEVS=`(for i in $SVG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8441 |
fi
|
|
8442 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8443 |
if test -n "$XPS_DEVS0"; then |
8444 |
XPS_DEVS=`(for i in $XPS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8445 |
fi
|
|
8446 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8447 |
if test -n "$IJS_DEVS0"; then |
8448 |
IJS_DEVS=`(for i in $IJS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8449 |
fi
|
|
8450 |
||
8451 |
if test -n "$PNG_DEVS0"; then |
|
8452 |
PNG_DEVS=`(for i in $PNG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8453 |
fi
|
|
8454 |
||
8455 |
if test -n "$X11_DEVS0"; then |
|
8456 |
X11_DEVS=`(for i in $X11_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '` |
|
8457 |
fi
|
|
8458 |
||
8459 |
||
8460 |
||
8461 |
||
8462 |
||
8463 |
||
8464 |
||
8465 |
||
8466 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8467 |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8468 |
# This now gets done after handling --enable-dynamic
|
8469 |
# AC_SUBST(X11_DEVS)
|
|
8470 |
||
8471 |
DYNAMIC_CFLAGS="" |
|
8472 |
DYNAMIC_DEVS="" |
|
8473 |
DYNAMIC_FLAGS="" |
|
8474 |
DYNAMIC_LDFLAGS="" |
|
8475 |
DYNAMIC_LIBS="" |
|
8476 |
INSTALL_SHARED="" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8477 |
SO_LIB_EXT=".so" |
8478 |
DLL_EXT="" |
|
8479 |
SO_LIB_VERSION_SEPARATOR="." |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8480 |
|
8481 |
case `uname` in |
|
8482 |
Linux*|GNU*) |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8483 |
DYNAMIC_CFLAGS="-fPIC" |
8484 |
DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
|
8485 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8486 |
# GCC high level flag
|
8487 |
DYNAMIC_LIBS="-rdynamic -ldl" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8488 |
else
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8489 |
DYNAMIC_LIBS="" |
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8490 |
fi
|
8491 |
SO_LIB_EXT=".so" |
|
8492 |
;;
|
|
8493 |
MINGW*)
|
|
8494 |
DYNAMIC_CFLAGS="" |
|
8495 |
DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(GS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import" |
|
8496 |
SO_LIB_EXT="" |
|
8497 |
DLL_EXT=".dll" |
|
8498 |
SO_LIB_VERSION_SEPARATOR="-" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8499 |
;;
|
8500 |
*BSD)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8501 |
DYNAMIC_CFLAGS="-fPIC" |
8502 |
DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
|
8503 |
DYNAMIC_LIBS="" |
|
8504 |
SO_LIB_EXT=".so" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8505 |
;;
|
8506 |
Darwin*)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8507 |
DYNAMIC_LDFLAGS="-dynamiclib -install_name \$(GS_SONAME_MAJOR_MINOR)" |
8508 |
DYNAMIC_LIBS="" |
|
8509 |
SO_LIB_EXT=".dylib" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8510 |
;;
|
8511 |
SunOS)
|
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8512 |
if test $ac_cv_c_compiler_gnu = yes; then |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8513 |
DYNAMIC_CFLAGS="-fPIC" |
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8514 |
else
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8515 |
DYNAMIC_CFLAGS="-KPIC" |
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8516 |
fi
|
8517 |
||
8518 |
DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
|
8519 |
DYNAMIC_LIBS="" |
|
8520 |
SO_LIB_EXT=".so" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8521 |
;;
|
8522 |
esac
|
|
8523 |
||
8524 |
# Check whether --enable-dynamic was given.
|
|
8525 |
if test "${enable_dynamic+set}" = set; then : |
|
8526 |
enableval=$enable_dynamic; |
|
8527 |
if test "x$enable_dynamic" != xno; then |
|
8528 |
case `uname` in |
|
8529 |
Linux*|GNU*) |
|
8530 |
INSTALL_SHARED="install-shared" |
|
8531 |
if test "x$X_DEVS" != x; then |
|
8532 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
|
8533 |
else
|
|
8534 |
DYNAMIC_DEVS="" |
|
8535 |
fi
|
|
8536 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
|
8537 |
X11_DEVS="" |
|
8538 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
|
8539 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
|
8540 |
;;
|
|
8541 |
*BSD)
|
|
8542 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
|
8543 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
|
8544 |
X11_DEVS="" |
|
8545 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
|
8546 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
|
8547 |
;;
|
|
8548 |
Darwin*)
|
|
8549 |
INSTALL_SHARED="install-shared" |
|
8550 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
|
8551 |
X11_DEVS="" |
|
8552 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
|
8553 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
|
8554 |
;;
|
|
8555 |
SunOS)
|
|
8556 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
|
8557 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
|
8558 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
|
8559 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
|
8560 |
;;
|
|
8561 |
*)
|
|
8562 |
as_fn_error $? "Sorry, dynamic driver support not available on this platform!" "$LINENO" 5 |
|
8563 |
;;
|
|
8564 |
esac
|
|
8565 |
fi
|
|
8566 |
||
8567 |
fi
|
|
8568 |
||
8569 |
||
8570 |
||
8571 |
||
8572 |
||
8573 |
||
8574 |
||
8575 |
||
8576 |
||
8577 |
||
8578 |
||
8579 |
||
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
8580 |
|
8581 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8582 |
# Check whether --with-fontpath was given.
|
8583 |
if test "${with_fontpath+set}" = set; then : |
|
8584 |
withval=$with_fontpath; fontpath="$withval" |
|
8585 |
else
|
|
8586 |
fontpath="" |
|
8587 |
fi
|
|
8588 |
||
8589 |
||
8590 |
if test "x$prefix" = xNONE; then |
|
8591 |
prefix=/usr/local |
|
8592 |
fi
|
|
8593 |
||
8594 |
if test "x$datadir" = 'x${prefix}/share'; then |
|
8595 |
datadir="$prefix/share" |
|
8596 |
fi
|
|
8597 |
||
8598 |
if test "x$fontpath" = "x"; then |
|
8599 |
# These font directories are used by various Linux distributions...
|
|
8600 |
fontpath="$datadir/fonts/default/ghostscript" |
|
8601 |
fontpath="${fontpath}:$datadir/fonts/default/Type1" |
|
8602 |
fontpath="${fontpath}:$datadir/fonts/default/TrueType" |
|
8603 |
||
8604 |
# These font directories are used by IRIX...
|
|
8605 |
fontpath="${fontpath}:/usr/lib/DPS/outline/base" |
|
8606 |
||
8607 |
# These font directories are used by Solaris...
|
|
8608 |
fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type1" |
|
8609 |
fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/TrueType" |
|
8610 |
||
8611 |
# This font directory is used by CUPS...
|
|
8612 |
if test "x$CUPSCONFIG" != x; then |
|
8613 |
fontpath="${fontpath}:`$CUPSCONFIG --datadir`/fonts" |
|
8614 |
fi
|
|
8615 |
fi
|
|
8616 |
||
8617 |
||
8618 |
||
8619 |
||
8620 |
for ac_func in mkstemp
|
|
8621 |
do :
|
|
8622 |
ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
|
8623 |
if test "x$ac_cv_func_mkstemp" = xyes; then : |
|
8624 |
cat >>confdefs.h <<_ACEOF
|
|
8625 |
#define HAVE_MKSTEMP 1
|
|
8626 |
_ACEOF
|
|
8627 |
HAVE_MKSTEMP=-DHAVE_MKSTEMP |
|
8628 |
fi
|
|
8629 |
done
|
|
8630 |
||
8631 |
||
8632 |
||
8633 |
for ac_func in fopen64
|
|
8634 |
do :
|
|
8635 |
ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64" |
|
8636 |
if test "x$ac_cv_func_fopen64" = xyes; then : |
|
8637 |
cat >>confdefs.h <<_ACEOF
|
|
8638 |
#define HAVE_FOPEN64 1
|
|
8639 |
_ACEOF
|
|
8640 |
HAVE_FILE64=-DHAVE_FILE64 |
|
8641 |
fi
|
|
8642 |
done
|
|
8643 |
||
8644 |
||
8645 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
8646 |
for ac_func in fseeko
|
8647 |
do :
|
|
8648 |
ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" |
|
8649 |
if test "x$ac_cv_func_fseeko" = xyes; then : |
|
8650 |
cat >>confdefs.h <<_ACEOF
|
|
8651 |
#define HAVE_FSEEKO 1
|
|
8652 |
_ACEOF
|
|
8653 |
HAVE_FSEEKO=-DHAVE_FSEEKO |
|
8654 |
fi
|
|
8655 |
done
|
|
8656 |
||
8657 |
||
8658 |
||
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
8659 |
for ac_func in mkstemp64
|
8660 |
do :
|
|
8661 |
ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64" |
|
8662 |
if test "x$ac_cv_func_mkstemp64" = xyes; then : |
|
8663 |
cat >>confdefs.h <<_ACEOF
|
|
8664 |
#define HAVE_MKSTEMP64 1
|
|
8665 |
_ACEOF
|
|
8666 |
HAVE_MKSTEMP64=-DHAVE_MKSTEMP64 |
|
8667 |
fi
|
|
8668 |
done
|
|
8669 |
||
8670 |
||
8671 |
||
8672 |
for ac_func in setlocale
|
|
8673 |
do :
|
|
8674 |
ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
|
8675 |
if test "x$ac_cv_func_setlocale" = xyes; then : |
|
8676 |
cat >>confdefs.h <<_ACEOF
|
|
8677 |
#define HAVE_SETLOCALE 1
|
|
8678 |
_ACEOF
|
|
8679 |
HAVE_SETLOCALE=-DHAVE_SETLOCALE |
|
8680 |
fi
|
|
8681 |
done
|
|
8682 |
||
8683 |
||
8684 |
||
8685 |
for ac_func in strerror
|
|
8686 |
do :
|
|
8687 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
|
8688 |
if test "x$ac_cv_func_strerror" = xyes; then : |
|
8689 |
cat >>confdefs.h <<_ACEOF
|
|
8690 |
#define HAVE_STRERROR 1
|
|
8691 |
_ACEOF
|
|
8692 |
HAVE_STRERROR=-DHAVE_STRERROR |
|
8693 |
fi
|
|
8694 |
done
|
|
8695 |
||
8696 |
||
8697 |
||
8698 |
if test $ac_cv_c_compiler_gnu = yes; then |
|
8699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
|
8700 |
$as_echo_n "checking whether $CC needs -traditional... " >&6; } |
|
8701 |
if ${ac_cv_prog_gcc_traditional+:} false; then : |
|
8702 |
$as_echo_n "(cached) " >&6 |
|
8703 |
else
|
|
8704 |
ac_pattern="Autoconf.*'x'" |
|
8705 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8706 |
/* end confdefs.h. */
|
|
8707 |
#include <sgtty.h>
|
|
8708 |
Autoconf TIOCGETP
|
|
8709 |
_ACEOF
|
|
8710 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
8711 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|
8712 |
ac_cv_prog_gcc_traditional=yes |
|
8713 |
else
|
|
8714 |
ac_cv_prog_gcc_traditional=no |
|
8715 |
fi
|
|
8716 |
rm -f conftest* |
|
8717 |
||
8718 |
||
8719 |
if test $ac_cv_prog_gcc_traditional = no; then |
|
8720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8721 |
/* end confdefs.h. */
|
|
8722 |
#include <termio.h>
|
|
8723 |
Autoconf TCGETA
|
|
8724 |
_ACEOF
|
|
8725 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
8726 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|
8727 |
ac_cv_prog_gcc_traditional=yes |
|
8728 |
fi
|
|
8729 |
rm -f conftest* |
|
8730 |
||
8731 |
fi
|
|
8732 |
fi
|
|
8733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
|
8734 |
$as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
|
8735 |
if test $ac_cv_prog_gcc_traditional = yes; then |
|
8736 |
CC="$CC -traditional" |
|
8737 |
fi
|
|
8738 |
fi
|
|
8739 |
||
8740 |
||
8741 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
8742 |
if test "x$ac_cv_type_pid_t" = xyes; then : |
|
8743 |
||
8744 |
else
|
|
8745 |
||
8746 |
cat >>confdefs.h <<_ACEOF
|
|
8747 |
#define pid_t int
|
|
8748 |
_ACEOF
|
|
8749 |
||
8750 |
fi
|
|
8751 |
||
8752 |
for ac_header in vfork.h
|
|
8753 |
do :
|
|
8754 |
ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
|
8755 |
if test "x$ac_cv_header_vfork_h" = xyes; then : |
|
8756 |
cat >>confdefs.h <<_ACEOF
|
|
8757 |
#define HAVE_VFORK_H 1
|
|
8758 |
_ACEOF
|
|
8759 |
||
8760 |
fi
|
|
8761 |
||
8762 |
done
|
|
8763 |
||
8764 |
for ac_func in fork vfork
|
|
8765 |
do :
|
|
8766 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
8767 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
8768 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
8769 |
cat >>confdefs.h <<_ACEOF
|
|
8770 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
8771 |
_ACEOF
|
|
8772 |
||
8773 |
fi
|
|
8774 |
done
|
|
8775 |
||
8776 |
if test "x$ac_cv_func_fork" = xyes; then |
|
8777 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
|
8778 |
$as_echo_n "checking for working fork... " >&6; } |
|
8779 |
if ${ac_cv_func_fork_works+:} false; then : |
|
8780 |
$as_echo_n "(cached) " >&6 |
|
8781 |
else
|
|
8782 |
if test "$cross_compiling" = yes; then : |
|
8783 |
ac_cv_func_fork_works=cross |
|
8784 |
else
|
|
8785 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8786 |
/* end confdefs.h. */
|
|
8787 |
$ac_includes_default
|
|
8788 |
int
|
|
8789 |
main ()
|
|
8790 |
{
|
|
8791 |
||
8792 |
/* By Ruediger Kuhlmann. */
|
|
8793 |
return fork () < 0;
|
|
8794 |
||
8795 |
;
|
|
8796 |
return 0;
|
|
8797 |
}
|
|
8798 |
_ACEOF
|
|
8799 |
if ac_fn_c_try_run "$LINENO"; then : |
|
8800 |
ac_cv_func_fork_works=yes |
|
8801 |
else
|
|
8802 |
ac_cv_func_fork_works=no |
|
8803 |
fi
|
|
8804 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
8805 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
8806 |
fi
|
|
8807 |
||
8808 |
fi
|
|
8809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
|
8810 |
$as_echo "$ac_cv_func_fork_works" >&6; } |
|
8811 |
||
8812 |
else
|
|
8813 |
ac_cv_func_fork_works=$ac_cv_func_fork |
|
8814 |
fi
|
|
8815 |
if test "x$ac_cv_func_fork_works" = xcross; then |
|
8816 |
case $host in |
|
8817 |
*-*-amigaos* | *-*-msdosdjgpp*) |
|
8818 |
# Override, as these systems have only a dummy fork() stub
|
|
8819 |
ac_cv_func_fork_works=no |
|
8820 |
;;
|
|
8821 |
*)
|
|
8822 |
ac_cv_func_fork_works=yes |
|
8823 |
;;
|
|
8824 |
esac
|
|
8825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
|
8826 |
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
|
8827 |
fi
|
|
8828 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
|
8829 |
if test "x$ac_cv_func_vfork" = xyes; then |
|
8830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
|
8831 |
$as_echo_n "checking for working vfork... " >&6; } |
|
8832 |
if ${ac_cv_func_vfork_works+:} false; then : |
|
8833 |
$as_echo_n "(cached) " >&6 |
|
8834 |
else
|
|
8835 |
if test "$cross_compiling" = yes; then : |
|
8836 |
ac_cv_func_vfork_works=cross |
|
8837 |
else
|
|
8838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8839 |
/* end confdefs.h. */
|
|
8840 |
/* Thanks to Paul Eggert for this test. */
|
|
8841 |
$ac_includes_default
|
|
8842 |
#include <sys/wait.h>
|
|
8843 |
#ifdef HAVE_VFORK_H
|
|
8844 |
# include <vfork.h>
|
|
8845 |
#endif
|
|
8846 |
/* On some sparc systems, changes by the child to local and incoming
|
|
8847 |
argument registers are propagated back to the parent. The compiler
|
|
8848 |
is told about this with #include <vfork.h>, but some compilers
|
|
8849 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
|
8850 |
static variable whose address is put into a register that is
|
|
8851 |
clobbered by the vfork. */
|
|
8852 |
static void
|
|
8853 |
#ifdef __cplusplus
|
|
8854 |
sparc_address_test (int arg)
|
|
8855 |
# else
|
|
8856 |
sparc_address_test (arg) int arg;
|
|
8857 |
#endif
|
|
8858 |
{
|
|
8859 |
static pid_t child;
|
|
8860 |
if (!child) {
|
|
8861 |
child = vfork ();
|
|
8862 |
if (child < 0) {
|
|
8863 |
perror ("vfork");
|
|
8864 |
_exit(2);
|
|
8865 |
}
|
|
8866 |
if (!child) {
|
|
8867 |
arg = getpid();
|
|
8868 |
write(-1, "", 0);
|
|
8869 |
_exit (arg);
|
|
8870 |
}
|
|
8871 |
}
|
|
8872 |
}
|
|
8873 |
||
8874 |
int
|
|
8875 |
main ()
|
|
8876 |
{
|
|
8877 |
pid_t parent = getpid ();
|
|
8878 |
pid_t child;
|
|
8879 |
||
8880 |
sparc_address_test (0);
|
|
8881 |
||
8882 |
child = vfork ();
|
|
8883 |
||
8884 |
if (child == 0) {
|
|
8885 |
/* Here is another test for sparc vfork register problems. This
|
|
8886 |
test uses lots of local variables, at least as many local
|
|
8887 |
variables as main has allocated so far including compiler
|
|
8888 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
|
8889 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
|
8890 |
reuse the register of parent for one of the local variables,
|
|
8891 |
since it will think that parent can't possibly be used any more
|
|
8892 |
in this routine. Assigning to the local variable will thus
|
|
8893 |
munge parent in the parent process. */
|
|
8894 |
pid_t
|
|
8895 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
8896 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
8897 |
/* Convince the compiler that p..p7 are live; otherwise, it might
|
|
8898 |
use the same hardware register for all 8 local variables. */
|
|
8899 |
if (p != p1 || p != p2 || p != p3 || p != p4
|
|
8900 |
|| p != p5 || p != p6 || p != p7)
|
|
8901 |
_exit(1);
|
|
8902 |
||
8903 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
|
8904 |
from child file descriptors. If the child closes a descriptor
|
|
8905 |
before it execs or exits, this munges the parent's descriptor
|
|
8906 |
as well. Test for this by closing stdout in the child. */
|
|
8907 |
_exit(close(fileno(stdout)) != 0);
|
|
8908 |
} else {
|
|
8909 |
int status;
|
|
8910 |
struct stat st;
|
|
8911 |
||
8912 |
while (wait(&status) != child)
|
|
8913 |
;
|
|
8914 |
return (
|
|
8915 |
/* Was there some problem with vforking? */
|
|
8916 |
child < 0
|
|
8917 |
||
8918 |
/* Did the child fail? (This shouldn't happen.) */
|
|
8919 |
|| status
|
|
8920 |
||
8921 |
/* Did the vfork/compiler bug occur? */
|
|
8922 |
|| parent != getpid()
|
|
8923 |
||
8924 |
/* Did the file descriptor bug occur? */
|
|
8925 |
|| fstat(fileno(stdout), &st) != 0
|
|
8926 |
);
|
|
8927 |
}
|
|
8928 |
}
|
|
8929 |
_ACEOF
|
|
8930 |
if ac_fn_c_try_run "$LINENO"; then : |
|
8931 |
ac_cv_func_vfork_works=yes |
|
8932 |
else
|
|
8933 |
ac_cv_func_vfork_works=no |
|
8934 |
fi
|
|
8935 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
8936 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
8937 |
fi
|
|
8938 |
||
8939 |
fi
|
|
8940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
|
8941 |
$as_echo "$ac_cv_func_vfork_works" >&6; } |
|
8942 |
||
8943 |
fi; |
|
8944 |
if test "x$ac_cv_func_fork_works" = xcross; then |
|
8945 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
|
8946 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
|
8947 |
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
|
8948 |
fi
|
|
8949 |
||
8950 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
|
8951 |
||
8952 |
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
|
8953 |
||
8954 |
else
|
|
8955 |
||
8956 |
$as_echo "#define vfork fork" >>confdefs.h |
|
8957 |
||
8958 |
fi
|
|
8959 |
if test "x$ac_cv_func_fork_works" = xyes; then |
|
8960 |
||
8961 |
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
|
8962 |
||
8963 |
fi
|
|
8964 |
||
8965 |
for ac_header in stdlib.h
|
|
8966 |
do :
|
|
8967 |
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
|
8968 |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
|
8969 |
cat >>confdefs.h <<_ACEOF
|
|
8970 |
#define HAVE_STDLIB_H 1
|
|
8971 |
_ACEOF
|
|
8972 |
||
8973 |
fi
|
|
8974 |
||
8975 |
done
|
|
8976 |
||
8977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
|
8978 |
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
|
8979 |
if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
|
8980 |
$as_echo_n "(cached) " >&6 |
|
8981 |
else
|
|
8982 |
if test "$cross_compiling" = yes; then : |
|
8983 |
ac_cv_func_malloc_0_nonnull=no |
|
8984 |
else
|
|
8985 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8986 |
/* end confdefs.h. */
|
|
8987 |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
|
|
8988 |
# include <stdlib.h>
|
|
8989 |
#else
|
|
8990 |
char *malloc ();
|
|
8991 |
#endif
|
|
8992 |
||
8993 |
int
|
|
8994 |
main ()
|
|
8995 |
{
|
|
8996 |
return ! malloc (0);
|
|
8997 |
;
|
|
8998 |
return 0;
|
|
8999 |
}
|
|
9000 |
_ACEOF
|
|
9001 |
if ac_fn_c_try_run "$LINENO"; then : |
|
9002 |
ac_cv_func_malloc_0_nonnull=yes |
|
9003 |
else
|
|
9004 |
ac_cv_func_malloc_0_nonnull=no |
|
9005 |
fi
|
|
9006 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
9007 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
9008 |
fi
|
|
9009 |
||
9010 |
fi
|
|
9011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
|
9012 |
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
|
9013 |
if test $ac_cv_func_malloc_0_nonnull = yes; then : |
|
9014 |
||
9015 |
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
|
9016 |
||
9017 |
else
|
|
9018 |
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h |
|
9019 |
||
9020 |
case " $LIBOBJS " in |
|
9021 |
*" malloc.$ac_objext "* ) ;; |
|
9022 |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
|
9023 |
;;
|
|
9024 |
esac
|
|
9025 |
||
9026 |
||
9027 |
$as_echo "#define malloc rpl_malloc" >>confdefs.h |
|
9028 |
||
9029 |
fi
|
|
9030 |
||
9031 |
||
9032 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
|
9033 |
$as_echo_n "checking for working memcmp... " >&6; } |
|
9034 |
if ${ac_cv_func_memcmp_working+:} false; then : |
|
9035 |
$as_echo_n "(cached) " >&6 |
|
9036 |
else
|
|
9037 |
if test "$cross_compiling" = yes; then : |
|
9038 |
ac_cv_func_memcmp_working=no |
|
9039 |
else
|
|
9040 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9041 |
/* end confdefs.h. */
|
|
9042 |
$ac_includes_default
|
|
9043 |
int
|
|
9044 |
main ()
|
|
9045 |
{
|
|
9046 |
||
9047 |
/* Some versions of memcmp are not 8-bit clean. */
|
|
9048 |
char c0 = '\100', c1 = '\200', c2 = '\201';
|
|
9049 |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
|
|
9050 |
return 1;
|
|
9051 |
||
9052 |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
|
|
9053 |
or more and with at least one buffer not starting on a 4-byte boundary.
|
|
9054 |
William Lewis provided this test program. */
|
|
9055 |
{
|
|
9056 |
char foo[21];
|
|
9057 |
char bar[21];
|
|
9058 |
int i;
|
|
9059 |
for (i = 0; i < 4; i++)
|
|
9060 |
{
|
|
9061 |
char *a = foo + i;
|
|
9062 |
char *b = bar + i;
|
|
9063 |
strcpy (a, "--------01111111");
|
|
9064 |
strcpy (b, "--------10000000");
|
|
9065 |
if (memcmp (a, b, 16) >= 0)
|
|
9066 |
return 1;
|
|
9067 |
}
|
|
9068 |
return 0;
|
|
9069 |
}
|
|
9070 |
||
9071 |
;
|
|
9072 |
return 0;
|
|
9073 |
}
|
|
9074 |
_ACEOF
|
|
9075 |
if ac_fn_c_try_run "$LINENO"; then : |
|
9076 |
ac_cv_func_memcmp_working=yes |
|
9077 |
else
|
|
9078 |
ac_cv_func_memcmp_working=no |
|
9079 |
fi
|
|
9080 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
9081 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
9082 |
fi
|
|
9083 |
||
9084 |
fi
|
|
9085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
|
9086 |
$as_echo "$ac_cv_func_memcmp_working" >&6; } |
|
9087 |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
|
9088 |
*" memcmp.$ac_objext "* ) ;; |
|
9089 |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
|
9090 |
;;
|
|
9091 |
esac
|
|
9092 |
||
9093 |
||
9094 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
|
9095 |
$as_echo_n "checking return type of signal handlers... " >&6; } |
|
9096 |
if ${ac_cv_type_signal+:} false; then : |
|
9097 |
$as_echo_n "(cached) " >&6 |
|
9098 |
else
|
|
9099 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9100 |
/* end confdefs.h. */
|
|
9101 |
#include <sys/types.h>
|
|
9102 |
#include <signal.h>
|
|
9103 |
||
9104 |
int
|
|
9105 |
main ()
|
|
9106 |
{
|
|
9107 |
return *(signal (0, 0)) (0) == 1;
|
|
9108 |
;
|
|
9109 |
return 0;
|
|
9110 |
}
|
|
9111 |
_ACEOF
|
|
9112 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
9113 |
ac_cv_type_signal=int |
|
9114 |
else
|
|
9115 |
ac_cv_type_signal=void |
|
9116 |
fi
|
|
9117 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
9118 |
fi
|
|
9119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
|
9120 |
$as_echo "$ac_cv_type_signal" >&6; } |
|
9121 |
||
9122 |
cat >>confdefs.h <<_ACEOF
|
|
9123 |
#define RETSIGTYPE $ac_cv_type_signal
|
|
9124 |
_ACEOF
|
|
9125 |
||
9126 |
||
9127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
|
9128 |
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
|
9129 |
if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : |
|
9130 |
$as_echo_n "(cached) " >&6 |
|
9131 |
else
|
|
9132 |
rm -f conftest.sym conftest.file |
|
9133 |
echo >conftest.file
|
|
9134 |
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
|
9135 |
if test "$cross_compiling" = yes; then : |
|
9136 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
|
9137 |
else
|
|
9138 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9139 |
/* end confdefs.h. */
|
|
9140 |
$ac_includes_default
|
|
9141 |
int
|
|
9142 |
main ()
|
|
9143 |
{
|
|
9144 |
struct stat sbuf;
|
|
9145 |
/* Linux will dereference the symlink and fail, as required by POSIX.
|
|
9146 |
That is better in the sense that it means we will not
|
|
9147 |
have to compile and use the lstat wrapper. */
|
|
9148 |
return lstat ("conftest.sym/", &sbuf) == 0;
|
|
9149 |
;
|
|
9150 |
return 0;
|
|
9151 |
}
|
|
9152 |
_ACEOF
|
|
9153 |
if ac_fn_c_try_run "$LINENO"; then : |
|
9154 |
ac_cv_func_lstat_dereferences_slashed_symlink=yes |
|
9155 |
else
|
|
9156 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
|
9157 |
fi
|
|
9158 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
9159 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
9160 |
fi
|
|
9161 |
||
9162 |
else
|
|
9163 |
# If the `ln -s' command failed, then we probably don't even
|
|
9164 |
# have an lstat function.
|
|
9165 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
|
9166 |
fi
|
|
9167 |
rm -f conftest.sym conftest.file |
|
9168 |
||
9169 |
fi
|
|
9170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
|
9171 |
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
|
9172 |
||
9173 |
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
|
9174 |
||
9175 |
cat >>confdefs.h <<_ACEOF
|
|
9176 |
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
|
|
9177 |
_ACEOF
|
|
9178 |
||
9179 |
||
9180 |
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
|
9181 |
case " $LIBOBJS " in |
|
9182 |
*" lstat.$ac_objext "* ) ;; |
|
9183 |
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
|
9184 |
;;
|
|
9185 |
esac
|
|
9186 |
||
9187 |
fi
|
|
9188 |
||
9189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
|
9190 |
$as_echo_n "checking whether stat accepts an empty string... " >&6; } |
|
9191 |
if ${ac_cv_func_stat_empty_string_bug+:} false; then : |
|
9192 |
$as_echo_n "(cached) " >&6 |
|
9193 |
else
|
|
9194 |
if test "$cross_compiling" = yes; then : |
|
9195 |
ac_cv_func_stat_empty_string_bug=yes |
|
9196 |
else
|
|
9197 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9198 |
/* end confdefs.h. */
|
|
9199 |
$ac_includes_default
|
|
9200 |
int
|
|
9201 |
main ()
|
|
9202 |
{
|
|
9203 |
struct stat sbuf;
|
|
9204 |
return stat ("", &sbuf) == 0;
|
|
9205 |
;
|
|
9206 |
return 0;
|
|
9207 |
}
|
|
9208 |
_ACEOF
|
|
9209 |
if ac_fn_c_try_run "$LINENO"; then : |
|
9210 |
ac_cv_func_stat_empty_string_bug=no |
|
9211 |
else
|
|
9212 |
ac_cv_func_stat_empty_string_bug=yes |
|
9213 |
fi
|
|
9214 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
9215 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
9216 |
fi
|
|
9217 |
||
9218 |
fi
|
|
9219 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
|
9220 |
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } |
|
9221 |
if test $ac_cv_func_stat_empty_string_bug = yes; then |
|
9222 |
case " $LIBOBJS " in |
|
9223 |
*" stat.$ac_objext "* ) ;; |
|
9224 |
*) LIBOBJS="$LIBOBJS stat.$ac_objext" |
|
9225 |
;;
|
|
9226 |
esac
|
|
9227 |
||
9228 |
||
9229 |
cat >>confdefs.h <<_ACEOF
|
|
9230 |
#define HAVE_STAT_EMPTY_STRING_BUG 1
|
|
9231 |
_ACEOF
|
|
9232 |
||
9233 |
fi
|
|
9234 |
||
9235 |
for ac_func in vprintf
|
|
9236 |
do :
|
|
9237 |
ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
|
9238 |
if test "x$ac_cv_func_vprintf" = xyes; then : |
|
9239 |
cat >>confdefs.h <<_ACEOF
|
|
9240 |
#define HAVE_VPRINTF 1
|
|
9241 |
_ACEOF
|
|
9242 |
||
9243 |
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
|
9244 |
if test "x$ac_cv_func__doprnt" = xyes; then : |
|
9245 |
||
9246 |
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
|
9247 |
||
9248 |
fi
|
|
9249 |
||
9250 |
fi
|
|
9251 |
done
|
|
9252 |
||
9253 |
||
9254 |
for ac_func in bzero dup2 floor gettimeofday memchr memmove memset mkdir mkfifo modf pow putenv rint setenv sqrt strchr strrchr strspn strstr
|
|
9255 |
do :
|
|
9256 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
9257 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
9258 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
9259 |
cat >>confdefs.h <<_ACEOF
|
|
9260 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
9261 |
_ACEOF
|
|
9262 |
||
9263 |
fi
|
|
9264 |
done
|
|
9265 |
||
9266 |
||
9267 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9268 |
if test "x$BIGENDIAN" != "x0"; then |
9269 |
LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$BIGENDIAN" |
|
9270 |
LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$BIGENDIAN" |
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9271 |
else
|
9272 |
LCMS_ENDIAN= |
|
9273 |
LCMS2_ENDIAN= |
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9274 |
fi
|
9275 |
||
9276 |
||
9277 |
||
9278 |
||
9279 |
||
9280 |
ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf" |
|
9281 |
if test "x$ac_cv_func_sqrtf" = xyes; then : |
|
9282 |
SQRTF_SUBST= |
|
9283 |
else
|
|
9284 |
SQRTF_SUBST="-Dsqrtf=\"(float)sqrt\"" |
|
9285 |
fi
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9286 |
|
9287 |
||
9288 |
||
9289 |
||
9290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking byteswap support" >&5 |
|
9291 |
$as_echo_n "checking byteswap support... " >&6; } |
|
9292 |
||
9293 |
HAVE_BSWAP32="" |
|
9294 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9295 |
/* end confdefs.h. */
|
|
9296 |
||
9297 |
int
|
|
9298 |
main ()
|
|
9299 |
{
|
|
9300 |
||
9301 |
int a = 0;
|
|
9302 |
int b = __builtin_bswap32(a);
|
|
9303 |
return(0);
|
|
9304 |
||
9305 |
;
|
|
9306 |
return 0;
|
|
9307 |
}
|
|
9308 |
_ACEOF
|
|
9309 |
if ac_fn_c_try_link "$LINENO"; then : |
|
9310 |
HAVE_BSWAP32="-DHAVE_BSWAP32" |
|
9311 |
else
|
|
9312 |
HAVE_BSWAP32="" |
|
9313 |
fi
|
|
9314 |
rm -f core conftest.err conftest.$ac_objext \ |
|
9315 |
conftest$ac_exeext conftest.$ac_ext |
|
9316 |
||
9317 |
# Check whether --enable-bswap32 was given.
|
|
9318 |
if test "${enable_bswap32+set}" = set; then : |
|
9319 |
enableval=$enable_bswap32; |
|
9320 |
if test "x$enable_bswap32" = xno; then |
|
9321 |
HAVE_BSWAP32="" |
|
9322 |
fi
|
|
9323 |
fi
|
|
9324 |
||
9325 |
||
9326 |
if test "x$HAVE_BSWAP32" != x; then |
|
9327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
9328 |
$as_echo "yes" >&6; } |
|
9329 |
else
|
|
9330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
9331 |
$as_echo "no" >&6; } |
|
9332 |
fi
|
|
9333 |
||
9334 |
||
9335 |
||
9336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for byteswap.h" >&5 |
|
9337 |
$as_echo_n "checking for byteswap.h... " >&6; } |
|
9338 |
||
9339 |
HAVE_BYTESWAP_H="" |
|
9340 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9341 |
/* end confdefs.h. */
|
|
9342 |
#include "byteswap.h"
|
|
9343 |
int
|
|
9344 |
main ()
|
|
9345 |
{
|
|
9346 |
||
9347 |
int a = 0;
|
|
9348 |
int b = __builtin_bswap32(a);
|
|
9349 |
return(0);
|
|
9350 |
||
9351 |
;
|
|
9352 |
return 0;
|
|
9353 |
}
|
|
9354 |
_ACEOF
|
|
9355 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
9356 |
HAVE_BYTESWAP_H="-DHAVE_BYTESWAP_H" |
|
9357 |
else
|
|
9358 |
HAVE_BYTESWAP_H="" |
|
9359 |
fi
|
|
9360 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
9361 |
||
9362 |
# Check whether --enable-byteswap-h was given.
|
|
9363 |
if test "${enable_byteswap_h+set}" = set; then : |
|
9364 |
enableval=$enable_byteswap_h; |
|
9365 |
if test "x$enable_byteswap-h" = xno; then |
|
9366 |
HAVE_BYTESWAP_H="" |
|
9367 |
fi
|
|
9368 |
fi
|
|
9369 |
||
9370 |
||
9371 |
if test "x$HAVE_BYTESWAP_H" != x; then |
|
9372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
9373 |
$as_echo "yes" >&6; } |
|
9374 |
else
|
|
9375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
9376 |
$as_echo "no" >&6; } |
|
9377 |
fi
|
|
9378 |
||
9379 |
||
9380 |
||
9381 |
# --------------------------------------------------
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9382 |
# Sun, BSD possibly other makes don't have quite the
|
9383 |
# feature set of GNU make. We still prefer GNU make,
|
|
9384 |
# but......
|
|
9385 |
# --------------------------------------------------
|
|
9386 |
||
9387 |
# Check whether --with-gnu-make was given.
|
|
9388 |
if test "${with_gnu_make+set}" = set; then : |
|
9389 |
withval=$with_gnu_make; gnu_make=no |
|
9390 |
fi
|
|
9391 |
||
9392 |
||
9393 |
if test "x$gnu_make" != "xno"; then |
|
9394 |
ORDER_ONLY="|" |
|
9395 |
else
|
|
9396 |
ORDER_ONLY="" |
|
9397 |
fi
|
|
9398 |
||
9399 |
||
9400 |
||
9401 |
# --------------------------------------------------
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9402 |
# annoying: Windows doesn't allow "aux" as a
|
9403 |
# directory nor file name, so if we're building in
|
|
9404 |
# mingw, add the same prefix as the VS build uses
|
|
9405 |
# --------------------------------------------------
|
|
9406 |
AUXDIRPOSTFIX="" |
|
9407 |
case `uname` in |
|
9408 |
MINGW*)
|
|
9409 |
AUXDIRPOSTFIX="_" |
|
1.1.37
by Till Kamppeter
Import upstream version 9.08~rc1~dfsg |
9410 |
CFLAGS="-DGS_NO_UTF8=1 $CFLAGS" |
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9411 |
;;
|
9412 |
esac
|
|
9413 |
||
9414 |
||
9415 |
||
9416 |
||
9417 |
||
9418 |
||
9419 |
||
9420 |
||
9421 |
ac_config_files="$ac_config_files Makefile" |
|
9422 |
||
9423 |
cat >confcache <<\_ACEOF
|
|
9424 |
# This file is a shell script that caches the results of configure
|
|
9425 |
# tests run on this system so they can be shared between configure
|
|
9426 |
# scripts and configure runs, see configure's option --config-cache.
|
|
9427 |
# It is not useful on other systems. If it contains results you don't
|
|
9428 |
# want to keep, you may remove or edit it.
|
|
9429 |
#
|
|
9430 |
# config.status only pays attention to the cache file if you give it
|
|
9431 |
# the --recheck option to rerun configure.
|
|
9432 |
#
|
|
9433 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
9434 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
9435 |
# following values.
|
|
9436 |
||
9437 |
_ACEOF
|
|
9438 |
||
9439 |
# The following way of writing the cache mishandles newlines in values,
|
|
9440 |
# but we know of no workaround that is simple, portable, and efficient.
|
|
9441 |
# So, we kill variables containing newlines.
|
|
9442 |
# Ultrix sh set writes to stderr and can't be redirected directly,
|
|
9443 |
# and sets the high bit in the cache file unless we assign to the vars.
|
|
9444 |
(
|
|
9445 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
9446 |
eval ac_val=\$$ac_var |
|
9447 |
case $ac_val in #( |
|
9448 |
*${as_nl}*) |
|
9449 |
case $ac_var in #( |
|
9450 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
9451 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
9452 |
esac
|
|
9453 |
case $ac_var in #( |
|
9454 |
_ | IFS | as_nl) ;; #( |
|
9455 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
9456 |
*) { eval $ac_var=; unset $ac_var;} ;; |
|
9457 |
esac ;; |
|
9458 |
esac
|
|
9459 |
done
|
|
9460 |
||
9461 |
(set) 2>&1 | |
|
9462 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
9463 |
*${as_nl}ac_space=\ *) |
|
9464 |
# `set' does not quote correctly, so add quotes: double-quote
|
|
9465 |
# substitution turns \\\\ into \\, and sed turns \\ into \.
|
|
9466 |
sed -n \
|
|
9467 |
"s/'/'\\\\''/g;
|
|
9468 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
9469 |
;; #( |
|
9470 |
*)
|
|
9471 |
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
9472 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
9473 |
;;
|
|
9474 |
esac | |
|
9475 |
sort |
|
9476 |
) | |
|
9477 |
sed '
|
|
9478 |
/^ac_cv_env_/b end
|
|
9479 |
t clear
|
|
9480 |
:clear
|
|
9481 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
9482 |
t end
|
|
9483 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
9484 |
:end' >>confcache
|
|
9485 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
9486 |
if test -w "$cache_file"; then |
|
9487 |
if test "x$cache_file" != "x/dev/null"; then |
|
9488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
9489 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
|
9490 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
|
9491 |
cat confcache >"$cache_file" |
|
9492 |
else
|
|
9493 |
case $cache_file in #( |
|
9494 |
*/* | ?:*) |
|
9495 |
mv -f confcache "$cache_file"$$ && |
|
9496 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
9497 |
*)
|
|
9498 |
mv -f confcache "$cache_file" ;; |
|
9499 |
esac
|
|
9500 |
fi
|
|
9501 |
fi
|
|
9502 |
else
|
|
9503 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
9504 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
9505 |
fi
|
|
9506 |
fi
|
|
9507 |
rm -f confcache |
|
9508 |
||
9509 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
9510 |
# Let make expand exec_prefix.
|
|
9511 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
9512 |
||
9513 |
# Transform confdefs.h into DEFS.
|
|
9514 |
# Protect against shell expansion while executing Makefile rules.
|
|
9515 |
# Protect against Makefile macro expansion.
|
|
9516 |
#
|
|
9517 |
# If the first sed substitution is executed (which looks for macros that
|
|
9518 |
# take arguments), then branch to the quote section. Otherwise,
|
|
9519 |
# look for a macro that doesn't take arguments.
|
|
9520 |
ac_script=' |
|
9521 |
:mline
|
|
9522 |
/\\$/{
|
|
9523 |
N
|
|
9524 |
s,\\\n,,
|
|
9525 |
b mline
|
|
9526 |
}
|
|
9527 |
t clear
|
|
9528 |
:clear
|
|
9529 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
|
9530 |
t quote
|
|
9531 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
|
9532 |
t quote
|
|
9533 |
b any
|
|
9534 |
:quote
|
|
9535 |
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
|
9536 |
s/\[/\\&/g
|
|
9537 |
s/\]/\\&/g
|
|
9538 |
s/\$/$$/g
|
|
9539 |
H
|
|
9540 |
:any
|
|
9541 |
${
|
|
9542 |
g
|
|
9543 |
s/^\n//
|
|
9544 |
s/\n/ /g
|
|
9545 |
p
|
|
9546 |
}
|
|
9547 |
'
|
|
9548 |
DEFS=`sed -n "$ac_script" confdefs.h` |
|
9549 |
||
9550 |
||
9551 |
ac_libobjs= |
|
9552 |
ac_ltlibobjs= |
|
9553 |
U= |
|
9554 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
9555 |
# 1. Remove the extension, and $U if already installed.
|
|
9556 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
9557 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
9558 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
9559 |
# will be set to the directory where LIBOBJS objects are built.
|
|
9560 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
9561 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
9562 |
done
|
|
9563 |
LIBOBJS=$ac_libobjs |
|
9564 |
||
9565 |
LTLIBOBJS=$ac_ltlibobjs |
|
9566 |
||
9567 |
||
9568 |
||
9569 |
: "${CONFIG_STATUS=./config.status}" |
|
9570 |
ac_write_fail=0 |
|
9571 |
ac_clean_files_save=$ac_clean_files |
|
9572 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
9573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|
9574 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
9575 |
as_write_fail=0 |
|
9576 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
9577 |
#! $SHELL
|
|
9578 |
# Generated by $as_me.
|
|
9579 |
# Run this file to recreate the current configuration.
|
|
9580 |
# Compiler output produced by configure, useful for debugging
|
|
9581 |
# configure, is in config.log if it exists.
|
|
9582 |
||
9583 |
debug=false
|
|
9584 |
ac_cs_recheck=false
|
|
9585 |
ac_cs_silent=false
|
|
9586 |
||
9587 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
9588 |
export SHELL
|
|
9589 |
_ASEOF
|
|
9590 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
9591 |
## -------------------- ##
|
|
9592 |
## M4sh Initialization. ##
|
|
9593 |
## -------------------- ##
|
|
9594 |
||
9595 |
# Be more Bourne compatible
|
|
9596 |
DUALCASE=1; export DUALCASE # for MKS sh
|
|
9597 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
9598 |
emulate sh
|
|
9599 |
NULLCMD=:
|
|
9600 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
9601 |
# is contrary to our usage. Disable this feature.
|
|
9602 |
alias -g '${1+"$@"}'='"$@"'
|
|
9603 |
setopt NO_GLOB_SUBST
|
|
9604 |
else
|
|
9605 |
case `(set -o) 2>/dev/null` in #(
|
|
9606 |
*posix*) :
|
|
9607 |
set -o posix ;; #(
|
|
9608 |
*) :
|
|
9609 |
;;
|
|
9610 |
esac
|
|
9611 |
fi
|
|
9612 |
||
9613 |
||
9614 |
as_nl='
|
|
9615 |
'
|
|
9616 |
export as_nl
|
|
9617 |
# Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
9618 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
9619 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
9620 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
9621 |
# Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
9622 |
# but without wasting forks for bash or zsh.
|
|
9623 |
if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
9624 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
9625 |
as_echo='print -r --'
|
|
9626 |
as_echo_n='print -rn --'
|
|
9627 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
9628 |
as_echo='printf %s\n'
|
|
9629 |
as_echo_n='printf %s'
|
|
9630 |
else
|
|
9631 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
9632 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
9633 |
as_echo_n='/usr/ucb/echo -n'
|
|
9634 |
else
|
|
9635 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
9636 |
as_echo_n_body='eval
|
|
9637 |
arg=$1;
|
|
9638 |
case $arg in #(
|
|
9639 |
*"$as_nl"*)
|
|
9640 |
expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
9641 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
9642 |
esac;
|
|
9643 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
9644 |
'
|
|
9645 |
export as_echo_n_body
|
|
9646 |
as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
9647 |
fi
|
|
9648 |
export as_echo_body
|
|
9649 |
as_echo='sh -c $as_echo_body as_echo'
|
|
9650 |
fi
|
|
9651 |
||
9652 |
# The user is always right.
|
|
9653 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
9654 |
PATH_SEPARATOR=:
|
|
9655 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
9656 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
9657 |
PATH_SEPARATOR=';'
|
|
9658 |
}
|
|
9659 |
fi
|
|
9660 |
||
9661 |
||
9662 |
# IFS
|
|
9663 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
9664 |
# there to prevent editors from complaining about space-tab.
|
|
9665 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
9666 |
# splitting by setting IFS to empty value.)
|
|
9667 |
IFS=" "" $as_nl"
|
|
9668 |
||
9669 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
9670 |
as_myself=
|
|
9671 |
case $0 in #((
|
|
9672 |
*[\\/]* ) as_myself=$0 ;;
|
|
9673 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
9674 |
for as_dir in $PATH
|
|
9675 |
do
|
|
9676 |
IFS=$as_save_IFS
|
|
9677 |
test -z "$as_dir" && as_dir=.
|
|
9678 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
9679 |
done
|
|
9680 |
IFS=$as_save_IFS
|
|
9681 |
||
9682 |
;;
|
|
9683 |
esac
|
|
9684 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
9685 |
# in which case we are not to be found in the path.
|
|
9686 |
if test "x$as_myself" = x; then
|
|
9687 |
as_myself=$0
|
|
9688 |
fi
|
|
9689 |
if test ! -f "$as_myself"; then
|
|
9690 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
9691 |
exit 1
|
|
9692 |
fi
|
|
9693 |
||
9694 |
# Unset variables that we do not need and which cause bugs (e.g. in
|
|
9695 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
9696 |
# suppresses any "Segmentation fault" message there. '((' could
|
|
9697 |
# trigger a bug in pdksh 5.2.14.
|
|
9698 |
for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
9699 |
do eval test x\${$as_var+set} = xset \
|
|
9700 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
9701 |
done
|
|
9702 |
PS1='$ '
|
|
9703 |
PS2='> '
|
|
9704 |
PS4='+ '
|
|
9705 |
||
9706 |
# NLS nuisances.
|
|
9707 |
LC_ALL=C
|
|
9708 |
export LC_ALL
|
|
9709 |
LANGUAGE=C
|
|
9710 |
export LANGUAGE
|
|
9711 |
||
9712 |
# CDPATH.
|
|
9713 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
9714 |
||
9715 |
||
9716 |
# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
9717 |
# ----------------------------------------
|
|
9718 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
9719 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
9720 |
# script with STATUS, using 1 if that was 0.
|
|
9721 |
as_fn_error ()
|
|
9722 |
{
|
|
9723 |
as_status=$1; test $as_status -eq 0 && as_status=1
|
|
9724 |
if test "$4"; then
|
|
9725 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
9726 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
9727 |
fi
|
|
9728 |
$as_echo "$as_me: error: $2" >&2
|
|
9729 |
as_fn_exit $as_status
|
|
9730 |
} # as_fn_error
|
|
9731 |
||
9732 |
||
9733 |
# as_fn_set_status STATUS
|
|
9734 |
# -----------------------
|
|
9735 |
# Set $? to STATUS, without forking.
|
|
9736 |
as_fn_set_status ()
|
|
9737 |
{
|
|
9738 |
return $1
|
|
9739 |
} # as_fn_set_status
|
|
9740 |
||
9741 |
# as_fn_exit STATUS
|
|
9742 |
# -----------------
|
|
9743 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
9744 |
as_fn_exit ()
|
|
9745 |
{
|
|
9746 |
set +e
|
|
9747 |
as_fn_set_status $1
|
|
9748 |
exit $1
|
|
9749 |
} # as_fn_exit
|
|
9750 |
||
9751 |
# as_fn_unset VAR
|
|
9752 |
# ---------------
|
|
9753 |
# Portably unset VAR.
|
|
9754 |
as_fn_unset ()
|
|
9755 |
{
|
|
9756 |
{ eval $1=; unset $1;}
|
|
9757 |
}
|
|
9758 |
as_unset=as_fn_unset
|
|
9759 |
# as_fn_append VAR VALUE
|
|
9760 |
# ----------------------
|
|
9761 |
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
9762 |
# advantage of any shell optimizations that allow amortized linear growth over
|
|
9763 |
# repeated appends, instead of the typical quadratic growth present in naive
|
|
9764 |
# implementations.
|
|
9765 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
9766 |
eval 'as_fn_append ()
|
|
9767 |
{
|
|
9768 |
eval $1+=\$2
|
|
9769 |
}'
|
|
9770 |
else
|
|
9771 |
as_fn_append ()
|
|
9772 |
{
|
|
9773 |
eval $1=\$$1\$2
|
|
9774 |
}
|
|
9775 |
fi # as_fn_append
|
|
9776 |
||
9777 |
# as_fn_arith ARG...
|
|
9778 |
# ------------------
|
|
9779 |
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
9780 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
9781 |
# must be portable across $(()) and expr.
|
|
9782 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
9783 |
eval 'as_fn_arith ()
|
|
9784 |
{
|
|
9785 |
as_val=$(( $* ))
|
|
9786 |
}'
|
|
9787 |
else
|
|
9788 |
as_fn_arith ()
|
|
9789 |
{
|
|
9790 |
as_val=`expr "$@" || test $? -eq 1`
|
|
9791 |
}
|
|
9792 |
fi # as_fn_arith
|
|
9793 |
||
9794 |
||
9795 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
9796 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
9797 |
as_expr=expr
|
|
9798 |
else
|
|
9799 |
as_expr=false
|
|
9800 |
fi
|
|
9801 |
||
9802 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
9803 |
as_basename=basename
|
|
9804 |
else
|
|
9805 |
as_basename=false
|
|
9806 |
fi
|
|
9807 |
||
9808 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
9809 |
as_dirname=dirname
|
|
9810 |
else
|
|
9811 |
as_dirname=false
|
|
9812 |
fi
|
|
9813 |
||
9814 |
as_me=`$as_basename -- "$0" ||
|
|
9815 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
9816 |
X"$0" : 'X\(//\)$' \| \
|
|
9817 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
9818 |
$as_echo X/"$0" |
|
|
9819 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
9820 |
s//\1/
|
|
9821 |
q
|
|
9822 |
}
|
|
9823 |
/^X\/\(\/\/\)$/{
|
|
9824 |
s//\1/
|
|
9825 |
q
|
|
9826 |
}
|
|
9827 |
/^X\/\(\/\).*/{
|
|
9828 |
s//\1/
|
|
9829 |
q
|
|
9830 |
}
|
|
9831 |
s/.*/./; q'`
|
|
9832 |
||
9833 |
# Avoid depending upon Character Ranges.
|
|
9834 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
9835 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
9836 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
9837 |
as_cr_digits='0123456789'
|
|
9838 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
9839 |
||
9840 |
ECHO_C= ECHO_N= ECHO_T=
|
|
9841 |
case `echo -n x` in #(((((
|
|
9842 |
-n*)
|
|
9843 |
case `echo 'xy\c'` in
|
|
9844 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
9845 |
xy) ECHO_C='\c';;
|
|
9846 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
9847 |
ECHO_T=' ';;
|
|
9848 |
esac;;
|
|
9849 |
*)
|
|
9850 |
ECHO_N='-n';;
|
|
9851 |
esac
|
|
9852 |
||
9853 |
rm -f conf$$ conf$$.exe conf$$.file
|
|
9854 |
if test -d conf$$.dir; then
|
|
9855 |
rm -f conf$$.dir/conf$$.file
|
|
9856 |
else
|
|
9857 |
rm -f conf$$.dir
|
|
9858 |
mkdir conf$$.dir 2>/dev/null
|
|
9859 |
fi
|
|
9860 |
if (echo >conf$$.file) 2>/dev/null; then
|
|
9861 |
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
9862 |
as_ln_s='ln -s'
|
|
9863 |
# ... but there are two gotchas:
|
|
9864 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
9865 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9866 |
# In both cases, we have to default to `cp -pR'.
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9867 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9868 |
as_ln_s='cp -pR'
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9869 |
elif ln conf$$.file conf$$ 2>/dev/null; then
|
9870 |
as_ln_s=ln
|
|
9871 |
else
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9872 |
as_ln_s='cp -pR'
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9873 |
fi
|
9874 |
else
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9875 |
as_ln_s='cp -pR'
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9876 |
fi
|
9877 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
9878 |
rmdir conf$$.dir 2>/dev/null
|
|
9879 |
||
9880 |
||
9881 |
# as_fn_mkdir_p
|
|
9882 |
# -------------
|
|
9883 |
# Create "$as_dir" as a directory, including parents if necessary.
|
|
9884 |
as_fn_mkdir_p ()
|
|
9885 |
{
|
|
9886 |
||
9887 |
case $as_dir in #(
|
|
9888 |
-*) as_dir=./$as_dir;;
|
|
9889 |
esac
|
|
9890 |
test -d "$as_dir" || eval $as_mkdir_p || {
|
|
9891 |
as_dirs=
|
|
9892 |
while :; do
|
|
9893 |
case $as_dir in #(
|
|
9894 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
9895 |
*) as_qdir=$as_dir;;
|
|
9896 |
esac
|
|
9897 |
as_dirs="'$as_qdir' $as_dirs"
|
|
9898 |
as_dir=`$as_dirname -- "$as_dir" ||
|
|
9899 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
9900 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
9901 |
X"$as_dir" : 'X\(//\)$' \| \
|
|
9902 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
9903 |
$as_echo X"$as_dir" |
|
|
9904 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
9905 |
s//\1/
|
|
9906 |
q
|
|
9907 |
}
|
|
9908 |
/^X\(\/\/\)[^/].*/{
|
|
9909 |
s//\1/
|
|
9910 |
q
|
|
9911 |
}
|
|
9912 |
/^X\(\/\/\)$/{
|
|
9913 |
s//\1/
|
|
9914 |
q
|
|
9915 |
}
|
|
9916 |
/^X\(\/\).*/{
|
|
9917 |
s//\1/
|
|
9918 |
q
|
|
9919 |
}
|
|
9920 |
s/.*/./; q'`
|
|
9921 |
test -d "$as_dir" && break
|
|
9922 |
done
|
|
9923 |
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
9924 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
9925 |
||
9926 |
||
9927 |
} # as_fn_mkdir_p
|
|
9928 |
if mkdir -p . 2>/dev/null; then
|
|
9929 |
as_mkdir_p='mkdir -p "$as_dir"'
|
|
9930 |
else
|
|
9931 |
test -d ./-p && rmdir ./-p
|
|
9932 |
as_mkdir_p=false
|
|
9933 |
fi
|
|
9934 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9935 |
|
9936 |
# as_fn_executable_p FILE
|
|
9937 |
# -----------------------
|
|
9938 |
# Test if FILE is an executable regular file.
|
|
9939 |
as_fn_executable_p ()
|
|
9940 |
{
|
|
9941 |
test -f "$1" && test -x "$1"
|
|
9942 |
} # as_fn_executable_p
|
|
9943 |
as_test_x='test -x'
|
|
9944 |
as_executable_p=as_fn_executable_p
|
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9945 |
|
9946 |
# Sed expression to map a string onto a valid CPP name.
|
|
9947 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
9948 |
||
9949 |
# Sed expression to map a string onto a valid variable name.
|
|
9950 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
9951 |
||
9952 |
||
9953 |
exec 6>&1
|
|
9954 |
## ----------------------------------- ##
|
|
9955 |
## Main body of $CONFIG_STATUS script. ##
|
|
9956 |
## ----------------------------------- ##
|
|
9957 |
_ASEOF
|
|
9958 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
9959 |
||
9960 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9961 |
# Save the log message, to keep $0 and so on meaningful, and to
|
|
9962 |
# report actual input values of CONFIG_FILES etc. instead of their
|
|
9963 |
# values after options handling.
|
|
9964 |
ac_log="
|
|
9965 |
This file was extended by $as_me, which was
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
9966 |
generated by GNU Autoconf 2.69. Invocation command line was
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
9967 |
|
9968 |
CONFIG_FILES = $CONFIG_FILES
|
|
9969 |
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
9970 |
CONFIG_LINKS = $CONFIG_LINKS
|
|
9971 |
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
9972 |
$ $0 $@
|
|
9973 |
||
9974 |
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
9975 |
"
|
|
9976 |
||
9977 |
_ACEOF
|
|
9978 |
||
9979 |
case $ac_config_files in *" |
|
9980 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
9981 |
esac
|
|
9982 |
||
9983 |
||
9984 |
||
9985 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9986 |
# Files that config.status was made for.
|
|
9987 |
config_files="$ac_config_files"
|
|
9988 |
||
9989 |
_ACEOF
|
|
9990 |
||
9991 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9992 |
ac_cs_usage="\
|
|
9993 |
\`$as_me' instantiates files and other configuration actions
|
|
9994 |
from templates according to the current configuration. Unless the files
|
|
9995 |
and actions are specified as TAGs, all are instantiated by default.
|
|
9996 |
||
9997 |
Usage: $0 [OPTION]... [TAG]...
|
|
9998 |
||
9999 |
-h, --help print this help, then exit
|
|
10000 |
-V, --version print version number and configuration settings, then exit
|
|
10001 |
--config print configuration, then exit
|
|
10002 |
-q, --quiet, --silent
|
|
10003 |
do not print progress messages
|
|
10004 |
-d, --debug don't remove temporary files
|
|
10005 |
--recheck update $as_me by reconfiguring in the same conditions
|
|
10006 |
--file=FILE[:TEMPLATE]
|
|
10007 |
instantiate the configuration file FILE
|
|
10008 |
||
10009 |
Configuration files:
|
|
10010 |
$config_files
|
|
10011 |
||
10012 |
Report bugs to the package provider."
|
|
10013 |
||
10014 |
_ACEOF
|
|
10015 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10016 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
10017 |
ac_cs_version="\\
|
|
10018 |
config.status
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
10019 |
configured by $0, generated by GNU Autoconf 2.69,
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
10020 |
with options \\"\$ac_cs_config\\"
|
10021 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
10022 |
Copyright (C) 2012 Free Software Foundation, Inc.
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
10023 |
This config.status script is free software; the Free Software Foundation
|
10024 |
gives unlimited permission to copy, distribute and modify it."
|
|
10025 |
||
10026 |
ac_pwd='$ac_pwd'
|
|
10027 |
srcdir='$srcdir'
|
|
10028 |
test -n "\$AWK" || AWK=awk
|
|
10029 |
_ACEOF
|
|
10030 |
||
10031 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10032 |
# The default lists apply if the user does not specify any file.
|
|
10033 |
ac_need_defaults=:
|
|
10034 |
while test $# != 0
|
|
10035 |
do
|
|
10036 |
case $1 in
|
|
10037 |
--*=?*)
|
|
10038 |
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
10039 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
10040 |
ac_shift=:
|
|
10041 |
;;
|
|
10042 |
--*=)
|
|
10043 |
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
10044 |
ac_optarg=
|
|
10045 |
ac_shift=:
|
|
10046 |
;;
|
|
10047 |
*)
|
|
10048 |
ac_option=$1
|
|
10049 |
ac_optarg=$2
|
|
10050 |
ac_shift=shift
|
|
10051 |
;;
|
|
10052 |
esac
|
|
10053 |
||
10054 |
case $ac_option in
|
|
10055 |
# Handling of the options.
|
|
10056 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
10057 |
ac_cs_recheck=: ;;
|
|
10058 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
10059 |
$as_echo "$ac_cs_version"; exit ;;
|
|
10060 |
--config | --confi | --conf | --con | --co | --c )
|
|
10061 |
$as_echo "$ac_cs_config"; exit ;;
|
|
10062 |
--debug | --debu | --deb | --de | --d | -d )
|
|
10063 |
debug=: ;;
|
|
10064 |
--file | --fil | --fi | --f )
|
|
10065 |
$ac_shift
|
|
10066 |
case $ac_optarg in
|
|
10067 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
10068 |
'') as_fn_error $? "missing file argument" ;;
|
|
10069 |
esac
|
|
10070 |
as_fn_append CONFIG_FILES " '$ac_optarg'"
|
|
10071 |
ac_need_defaults=false;;
|
|
10072 |
--he | --h | --help | --hel | -h )
|
|
10073 |
$as_echo "$ac_cs_usage"; exit ;;
|
|
10074 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
10075 |
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
10076 |
ac_cs_silent=: ;;
|
|
10077 |
||
10078 |
# This is an error.
|
|
10079 |
-*) as_fn_error $? "unrecognized option: \`$1'
|
|
10080 |
Try \`$0 --help' for more information." ;;
|
|
10081 |
||
10082 |
*) as_fn_append ac_config_targets " $1"
|
|
10083 |
ac_need_defaults=false ;;
|
|
10084 |
||
10085 |
esac
|
|
10086 |
shift
|
|
10087 |
done
|
|
10088 |
||
10089 |
ac_configure_extra_args=
|
|
10090 |
||
10091 |
if $ac_cs_silent; then
|
|
10092 |
exec 6>/dev/null
|
|
10093 |
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
10094 |
fi
|
|
10095 |
||
10096 |
_ACEOF
|
|
10097 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10098 |
if \$ac_cs_recheck; then
|
|
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
10099 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
1.1.34
by Till Kamppeter
Import upstream version 9.06~dfsg |
10100 |
shift
|
10101 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
|
10102 |
CONFIG_SHELL='$SHELL'
|
|
10103 |
export CONFIG_SHELL
|
|
10104 |
exec "\$@"
|
|
10105 |
fi
|
|
10106 |
||
10107 |
_ACEOF
|
|
10108 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10109 |
exec 5>>config.log
|
|
10110 |
{
|
|
10111 |
echo
|
|
10112 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
10113 |
## Running $as_me. ##
|
|
10114 |
_ASBOX
|
|
10115 |
$as_echo "$ac_log"
|
|
10116 |
} >&5
|
|
10117 |
||
10118 |
_ACEOF
|
|
10119 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10120 |
_ACEOF
|
|
10121 |
||
10122 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10123 |
||
10124 |
# Handling of arguments.
|
|
10125 |
for ac_config_target in $ac_config_targets
|
|
10126 |
do
|
|
10127 |
case $ac_config_target in
|
|
10128 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
10129 |
||
10130 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
10131 |
esac
|
|
10132 |
done
|
|
10133 |
||
10134 |
||
10135 |
# If the user did not use the arguments to specify the items to instantiate,
|
|
10136 |
# then the envvar interface is used. Set only those that are not.
|
|
10137 |
# We use the long form for the default assignment because of an extremely
|
|
10138 |
# bizarre bug on SunOS 4.1.3.
|
|
10139 |
if $ac_need_defaults; then
|
|
10140 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
10141 |
fi
|
|
10142 |
||
10143 |
# Have a temporary directory for convenience. Make it in the build tree
|
|
10144 |
# simply because there is no reason against having it here, and in addition,
|
|
10145 |
# creating and moving files from /tmp can sometimes cause problems.
|
|
10146 |
# Hook for its removal unless debugging.
|
|
10147 |
# Note that there is a small window in which the directory will not be cleaned:
|
|
10148 |
# after its creation but before its name has been assigned to `$tmp'.
|
|
10149 |
$debug ||
|
|
10150 |
{
|
|
10151 |
tmp= ac_tmp=
|
|
10152 |
trap 'exit_status=$?
|
|
10153 |
: "${ac_tmp:=$tmp}"
|
|
10154 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
|
10155 |
' 0
|
|
10156 |
trap 'as_fn_exit 1' 1 2 13 15
|
|
10157 |
}
|
|
10158 |
# Create a (secure) tmp directory for tmp files.
|
|
10159 |
||
10160 |
{
|
|
10161 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
10162 |
test -d "$tmp"
|
|
10163 |
} ||
|
|
10164 |
{
|
|
10165 |
tmp=./conf$$-$RANDOM
|
|
10166 |
(umask 077 && mkdir "$tmp")
|
|
10167 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
|
10168 |
ac_tmp=$tmp
|
|
10169 |
||
10170 |
# Set up the scripts for CONFIG_FILES section.
|
|
10171 |
# No need to generate them if there are no CONFIG_FILES.
|
|
10172 |
# This happens for instance with `./config.status config.h'.
|
|
10173 |
if test -n "$CONFIG_FILES"; then
|
|
10174 |
||
10175 |
||
10176 |
ac_cr=`echo X | tr X '\015'`
|
|
10177 |
# On cygwin, bash can eat \r inside `` if the user requested igncr.
|
|
10178 |
# But we know of no other shell where ac_cr would be empty at this
|
|
10179 |
# point, so we can use a bashism as a fallback.
|
|
10180 |
if test "x$ac_cr" = x; then
|
|
10181 |
eval ac_cr=\$\'\\r\'
|
|
10182 |
fi
|
|
10183 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
|
10184 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
|
10185 |
ac_cs_awk_cr='\\r'
|
|
10186 |
else
|
|
10187 |
ac_cs_awk_cr=$ac_cr
|
|
10188 |
fi
|
|
10189 |
||
10190 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
|
10191 |
_ACEOF
|
|
10192 |
||
10193 |
||
10194 |
{
|
|
10195 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
|
10196 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
10197 |
echo "_ACEOF" |
|
10198 |
} >conf$$subs.sh || |
|
10199 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
10200 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
10201 |
ac_delim='%!_!# ' |
|
10202 |
for ac_last_try in false false false false false :; do |
|
10203 |
. ./conf$$subs.sh || |
|
10204 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
10205 |
||
10206 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
10207 |
if test $ac_delim_n = $ac_delim_num; then |
|
10208 |
break
|
|
10209 |
elif $ac_last_try; then |
|
10210 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
10211 |
else
|
|
10212 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
10213 |
fi
|
|
10214 |
done
|
|
10215 |
rm -f conf$$subs.sh
|
|
10216 |
||
10217 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10218 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
|
10219 |
_ACEOF
|
|
10220 |
sed -n '
|
|
10221 |
h
|
|
10222 |
s/^/S["/; s/!.*/"]=/
|
|
10223 |
p
|
|
10224 |
g
|
|
10225 |
s/^[^!]*!//
|
|
10226 |
:repl
|
|
10227 |
t repl
|
|
10228 |
s/'"$ac_delim"'$// |
|
10229 |
t delim
|
|
10230 |
:nl
|
|
10231 |
h
|
|
10232 |
s/\(.\{148\}\)..*/\1/
|
|
10233 |
t more1
|
|
10234 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
|
10235 |
p
|
|
10236 |
n
|
|
10237 |
b repl
|
|
10238 |
:more1
|
|
10239 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
10240 |
p
|
|
10241 |
g
|
|
10242 |
s/.\{148\}//
|
|
10243 |
t nl
|
|
10244 |
:delim
|
|
10245 |
h
|
|
10246 |
s/\(.\{148\}\)..*/\1/
|
|
10247 |
t more2
|
|
10248 |
s/["\\]/\\&/g; s/^/"/; s/$/"/
|
|
10249 |
p
|
|
10250 |
b
|
|
10251 |
:more2
|
|
10252 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
10253 |
p
|
|
10254 |
g
|
|
10255 |
s/.\{148\}//
|
|
10256 |
t delim
|
|
10257 |
' <conf$$subs.awk | sed ' |
|
10258 |
/^[^""]/{
|
|
10259 |
N
|
|
10260 |
s/\n//
|
|
10261 |
}
|
|
10262 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
|
10263 |
rm -f conf$$subs.awk
|
|
10264 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10265 |
_ACAWK
|
|
10266 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
|
10267 |
for (key in S) S_is_set[key] = 1
|
|
10268 |
FS = ""
|
|
10269 |
||
10270 |
}
|
|
10271 |
{
|
|
10272 |
line = $ 0
|
|
10273 |
nfields = split(line, field, "@")
|
|
10274 |
substed = 0
|
|
10275 |
len = length(field[1])
|
|
10276 |
for (i = 2; i < nfields; i++) {
|
|
10277 |
key = field[i]
|
|
10278 |
keylen = length(key)
|
|
10279 |
if (S_is_set[key]) {
|
|
10280 |
value = S[key]
|
|
10281 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
|
10282 |
len += length(value) + length(field[++i])
|
|
10283 |
substed = 1
|
|
10284 |
} else
|
|
10285 |
len += 1 + keylen
|
|
10286 |
}
|
|
10287 |
||
10288 |
print line
|
|
10289 |
}
|
|
10290 |
||
10291 |
_ACAWK
|
|
10292 |
_ACEOF
|
|
10293 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10294 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
|
10295 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
|
10296 |
else
|
|
10297 |
cat
|
|
10298 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
|
10299 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
|
10300 |
_ACEOF
|
|
10301 |
||
10302 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
|
10303 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
|
10304 |
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
10305 |
# (actually we leave an empty line to preserve line numbers).
|
|
10306 |
if test "x$srcdir" = x.; then |
|
10307 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
10308 |
h
|
|
10309 |
s///
|
|
10310 |
s/^/:/
|
|
10311 |
s/[ ]*$/:/
|
|
10312 |
s/:\$(srcdir):/:/g
|
|
10313 |
s/:\${srcdir}:/:/g
|
|
10314 |
s/:@srcdir@:/:/g
|
|
10315 |
s/^:*//
|
|
10316 |
s/:*$//
|
|
10317 |
x
|
|
10318 |
s/\(=[ ]*\).*/\1/
|
|
10319 |
G
|
|
10320 |
s/\n//
|
|
10321 |
s/^[^=]*=[ ]*$//
|
|
10322 |
}'
|
|
10323 |
fi
|
|
10324 |
||
10325 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10326 |
fi # test -n "$CONFIG_FILES"
|
|
10327 |
||
10328 |
||
10329 |
eval set X " :F $CONFIG_FILES "
|
|
10330 |
shift
|
|
10331 |
for ac_tag
|
|
10332 |
do
|
|
10333 |
case $ac_tag in
|
|
10334 |
:[FHLC]) ac_mode=$ac_tag; continue;;
|
|
10335 |
esac
|
|
10336 |
case $ac_mode$ac_tag in
|
|
10337 |
:[FHL]*:*);;
|
|
10338 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
|
10339 |
:[FH]-) ac_tag=-:-;;
|
|
10340 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
10341 |
esac
|
|
10342 |
ac_save_IFS=$IFS
|
|
10343 |
IFS=:
|
|
10344 |
set x $ac_tag
|
|
10345 |
IFS=$ac_save_IFS
|
|
10346 |
shift
|
|
10347 |
ac_file=$1
|
|
10348 |
shift
|
|
10349 |
||
10350 |
case $ac_mode in
|
|
10351 |
:L) ac_source=$1;;
|
|
10352 |
:[FH])
|
|
10353 |
ac_file_inputs=
|
|
10354 |
for ac_f
|
|
10355 |
do
|
|
10356 |
case $ac_f in
|
|
10357 |
-) ac_f="$ac_tmp/stdin";;
|
|
10358 |
*) # Look for the file first in the build tree, then in the source tree
|
|
10359 |
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
10360 |
# because $ac_f cannot contain `:'.
|
|
10361 |
test -f "$ac_f" ||
|
|
10362 |
case $ac_f in
|
|
10363 |
[\\/$]*) false;;
|
|
10364 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
10365 |
esac ||
|
|
10366 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
|
10367 |
esac
|
|
10368 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
10369 |
as_fn_append ac_file_inputs " '$ac_f'"
|
|
10370 |
done
|
|
10371 |
||
10372 |
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
10373 |
# use $as_me), people would be surprised to read:
|
|
10374 |
# /* config.h. Generated by config.status. */
|
|
10375 |
configure_input='Generated from '`
|
|
10376 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
|
10377 |
`' by configure.'
|
|
10378 |
if test x"$ac_file" != x-; then
|
|
10379 |
configure_input="$ac_file. $configure_input"
|
|
10380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
|
10381 |
$as_echo "$as_me: creating $ac_file" >&6;}
|
|
10382 |
fi
|
|
10383 |
# Neutralize special characters interpreted by sed in replacement strings.
|
|
10384 |
case $configure_input in #(
|
|
10385 |
*\&* | *\|* | *\\* )
|
|
10386 |
ac_sed_conf_input=`$as_echo "$configure_input" |
|
|
10387 |
sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
|
10388 |
*) ac_sed_conf_input=$configure_input;;
|
|
10389 |
esac
|
|
10390 |
||
10391 |
case $ac_tag in
|
|
10392 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \
|
|
10393 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
|
10394 |
esac
|
|
10395 |
;;
|
|
10396 |
esac
|
|
10397 |
||
10398 |
ac_dir=`$as_dirname -- "$ac_file" ||
|
|
10399 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
10400 |
X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
10401 |
X"$ac_file" : 'X\(//\)$' \| \
|
|
10402 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
10403 |
$as_echo X"$ac_file" |
|
|
10404 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
10405 |
s//\1/
|
|
10406 |
q
|
|
10407 |
}
|
|
10408 |
/^X\(\/\/\)[^/].*/{
|
|
10409 |
s//\1/
|
|
10410 |
q
|
|
10411 |
}
|
|
10412 |
/^X\(\/\/\)$/{
|
|
10413 |
s//\1/
|
|
10414 |
q
|
|
10415 |
}
|
|
10416 |
/^X\(\/\).*/{
|
|
10417 |
s//\1/
|
|
10418 |
q
|
|
10419 |
}
|
|
10420 |
s/.*/./; q'`
|
|
10421 |
as_dir="$ac_dir"; as_fn_mkdir_p
|
|
10422 |
ac_builddir=.
|
|
10423 |
||
10424 |
case "$ac_dir" in
|
|
10425 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
10426 |
*)
|
|
10427 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
10428 |
# A ".." for each directory in $ac_dir_suffix.
|
|
10429 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
10430 |
case $ac_top_builddir_sub in
|
|
10431 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
10432 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
10433 |
esac ;;
|
|
10434 |
esac
|
|
10435 |
ac_abs_top_builddir=$ac_pwd
|
|
10436 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
10437 |
# for backward compatibility:
|
|
10438 |
ac_top_builddir=$ac_top_build_prefix
|
|
10439 |
||
10440 |
case $srcdir in
|
|
10441 |
.) # We are building in place.
|
|
10442 |
ac_srcdir=.
|
|
10443 |
ac_top_srcdir=$ac_top_builddir_sub
|
|
10444 |
ac_abs_top_srcdir=$ac_pwd ;;
|
|
10445 |
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
10446 |
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
10447 |
ac_top_srcdir=$srcdir
|
|
10448 |
ac_abs_top_srcdir=$srcdir ;;
|
|
10449 |
*) # Relative name.
|
|
10450 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
10451 |
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
10452 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
10453 |
esac
|
|
10454 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
10455 |
||
10456 |
||
10457 |
case $ac_mode in
|
|
10458 |
:F)
|
|
10459 |
#
|
|
10460 |
# CONFIG_FILE
|
|
10461 |
#
|
|
10462 |
||
10463 |
_ACEOF
|
|
10464 |
||
10465 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10466 |
# If the template does not know about datarootdir, expand it.
|
|
10467 |
# FIXME: This hack should be removed a few years after 2.60.
|
|
10468 |
ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
10469 |
ac_sed_dataroot='
|
|
10470 |
/datarootdir/ {
|
|
10471 |
p
|
|
10472 |
q
|
|
10473 |
}
|
|
10474 |
/@datadir@/p
|
|
10475 |
/@docdir@/p
|
|
10476 |
/@infodir@/p
|
|
10477 |
/@localedir@/p
|
|
10478 |
/@mandir@/p'
|
|
10479 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
|
10480 |
*datarootdir*) ac_datarootdir_seen=yes;;
|
|
10481 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
10482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
10483 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
10484 |
_ACEOF
|
|
10485 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10486 |
ac_datarootdir_hack='
|
|
10487 |
s&@datadir@&$datadir&g
|
|
10488 |
s&@docdir@&$docdir&g
|
|
10489 |
s&@infodir@&$infodir&g
|
|
10490 |
s&@localedir@&$localedir&g
|
|
10491 |
s&@mandir@&$mandir&g
|
|
10492 |
s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
10493 |
esac
|
|
10494 |
_ACEOF
|
|
10495 |
||
10496 |
# Neutralize VPATH when `$srcdir' = `.'.
|
|
10497 |
# Shell code in configure.ac might set extrasub.
|
|
10498 |
# FIXME: do we really want to maintain this feature?
|
|
10499 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
10500 |
ac_sed_extra="$ac_vpsub
|
|
10501 |
$extrasub
|
|
10502 |
_ACEOF
|
|
10503 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
10504 |
:t
|
|
10505 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
10506 |
s|@configure_input@|$ac_sed_conf_input|;t t
|
|
10507 |
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
10508 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
|
10509 |
s&@srcdir@&$ac_srcdir&;t t
|
|
10510 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
10511 |
s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
10512 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
10513 |
s&@builddir@&$ac_builddir&;t t
|
|
10514 |
s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
10515 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
10516 |
$ac_datarootdir_hack
|
|
10517 |
"
|
|
10518 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
|
10519 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
10520 |
||
10521 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
10522 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
|
10523 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
|
10524 |
"$ac_tmp/out"`; test -z "$ac_out"; } &&
|
|
10525 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
10526 |
which seems to be undefined. Please make sure it is defined" >&5
|
|
10527 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
10528 |
which seems to be undefined. Please make sure it is defined" >&2;}
|
|
10529 |
||
10530 |
rm -f "$ac_tmp/stdin"
|
|
10531 |
case $ac_file in
|
|
10532 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
|
10533 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
|
10534 |
esac \
|
|
10535 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
10536 |
;;
|
|
10537 |
||
10538 |
||
10539 |
||
10540 |
esac
|
|
10541 |
||
10542 |
done # for ac_tag
|
|
10543 |
||
10544 |
||
10545 |
as_fn_exit 0
|
|
10546 |
_ACEOF
|
|
10547 |
ac_clean_files=$ac_clean_files_save |
|
10548 |
||
10549 |
test $ac_write_fail = 0 || |
|
10550 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|
10551 |
||
10552 |
||
10553 |
# configure is writing to config.log, and then calls config.status.
|
|
10554 |
# config.status does its own redirection, appending to config.log.
|
|
10555 |
# Unfortunately, on DOS this fails, as config.log is still kept open
|
|
10556 |
# by configure, so config.status won't be able to write to it; its
|
|
10557 |
# output is simply discarded. So we exec the FD to /dev/null,
|
|
10558 |
# effectively closing config.log, so it can be properly (re)opened and
|
|
10559 |
# appended to by config.status. When coming back to configure, we
|
|
10560 |
# need to make the FD available again.
|
|
10561 |
if test "$no_create" != yes; then |
|
10562 |
ac_cs_success=: |
|
10563 |
ac_config_status_args= |
|
10564 |
test "$silent" = yes && |
|
10565 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
10566 |
exec 5>/dev/null |
|
10567 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
10568 |
exec 5>>config.log |
|
10569 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
10570 |
# would make configure fail if this is the last instruction.
|
|
10571 |
$ac_cs_success || as_fn_exit 1 |
|
10572 |
fi
|
|
10573 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
10574 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
10575 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
10576 |
fi
|
|
10577 |
||
10578 |
||
10579 |
if test "x$AFS" = "x1"; then |
|
10580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using \"native\" font scaler which is now deprecated (rather than freetype)," >&5 |
|
10581 |
$as_echo "$as_me: WARNING: Using \"native\" font scaler which is now deprecated (rather than freetype)," >&2;} |
|
10582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for this will be removed in a future release" >&5 |
|
10583 |
$as_echo "$as_me: WARNING: Support for this will be removed in a future release" >&2;} |
|
10584 |
fi
|
|
10585 |
||
1.1.35
by Till Kamppeter
Import upstream version 9.07~dfsg |
10586 |
if test "x$NTS_EXCLUDES" != "x" ; then |
10587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Due to the --enable-threadsafe option, the following devices have been excluded because they are not threadsafe:" >&5 |
|
10588 |
$as_echo "$as_me: WARNING: Due to the --enable-threadsafe option, the following devices have been excluded because they are not threadsafe:" >&2;} |
|
10589 |
echo "$NTS_EXCLUDES" |
|
10590 |
fi
|