| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.71. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 7 |
# Inc. |
| 8 |
# |
| 9 |
# |
| 10 |
# This configure script is free software; the Free Software Foundation |
| 11 |
# gives unlimited permission to copy, distribute and modify it. |
| 12 |
## -------------------- ## |
| 13 |
## M4sh Initialization. ## |
| 14 |
## -------------------- ## |
| 15 |
|
| 16 |
# Be more Bourne compatible |
| 17 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 18 |
as_nop=: |
| 19 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20 |
then : |
| 21 |
emulate sh |
| 22 |
NULLCMD=: |
| 23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24 |
# is contrary to our usage. Disable this feature. |
| 25 |
alias -g '${1+"$@"}'='"$@"' |
| 26 |
setopt NO_GLOB_SUBST |
| 27 |
else $as_nop |
| 28 |
case `(set -o) 2>/dev/null` in #( |
| 29 |
*posix*) : |
| 30 |
set -o posix ;; #( |
| 31 |
*) : |
| 32 |
;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
# Reset variables that may have inherited troublesome values from |
| 39 |
# the environment. |
| 40 |
|
| 41 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 |
# Quoting is to prevent editors from complaining about space-tab. |
| 45 |
as_nl=' |
| 46 |
' |
| 47 |
export as_nl |
| 48 |
IFS=" "" $as_nl" |
| 49 |
|
| 50 |
PS1='$ ' |
| 51 |
PS2='> ' |
| 52 |
PS4='+ ' |
| 53 |
|
| 54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 55 |
LC_ALL=C |
| 56 |
export LC_ALL |
| 57 |
LANGUAGE=C |
| 58 |
export LANGUAGE |
| 59 |
|
| 60 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 61 |
# to be unset--not just set to an empty or harmless value--now, to |
| 62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 |
# also avoids known problems related to "unset" and subshell syntax |
| 64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 |
do eval test \${$as_var+y} \ |
| 67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 |
done |
| 69 |
|
| 70 |
# Ensure that fds 0, 1, and 2 are open. |
| 71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if ${PATH_SEPARATOR+false} :; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# Find who we are. Look in the path if we contain no directory separator. |
| 86 |
as_myself= |
| 87 |
case $0 in #(( |
| 88 |
*[\\/]* ) as_myself=$0 ;; |
| 89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 |
for as_dir in $PATH |
| 91 |
do |
| 92 |
IFS=$as_save_IFS |
| 93 |
case $as_dir in #((( |
| 94 |
'') as_dir=./ ;; |
| 95 |
*/) ;; |
| 96 |
*) as_dir=$as_dir/ ;; |
| 97 |
esac |
| 98 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 99 |
done |
| 100 |
IFS=$as_save_IFS |
| 101 |
|
| 102 |
;; |
| 103 |
esac |
| 104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 |
# in which case we are not to be found in the path. |
| 106 |
if test "x$as_myself" = x; then |
| 107 |
as_myself=$0 |
| 108 |
fi |
| 109 |
if test ! -f "$as_myself"; then |
| 110 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 |
exit 1 |
| 112 |
fi |
| 113 |
|
| 114 |
|
| 115 |
# Use a proper internal environment variable to ensure we don't fall |
| 116 |
# into an infinite loop, continuously re-executing ourselves. |
| 117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 |
_as_can_reexec=no; export _as_can_reexec; |
| 119 |
# We cannot yet assume a decent shell, so we have to provide a |
| 120 |
# neutralization value for shells without unset; and this also |
| 121 |
# works around shells that cannot unset nonexistent variables. |
| 122 |
# Preserve -v and -x to the replacement shell. |
| 123 |
BASH_ENV=/dev/null |
| 124 |
ENV=/dev/null |
| 125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 |
case $- in # (((( |
| 127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 128 |
*v* ) as_opts=-v ;; |
| 129 |
*x* ) as_opts=-x ;; |
| 130 |
* ) as_opts= ;; |
| 131 |
esac |
| 132 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 134 |
# out after a failed `exec'. |
| 135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 |
exit 255 |
| 137 |
fi |
| 138 |
# We don't want this to propagate to other subprocesses. |
| 139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 140 |
if test "x$CONFIG_SHELL" = x; then |
| 141 |
as_bourne_compatible="as_nop=: |
| 142 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 143 |
then : |
| 144 |
emulate sh |
| 145 |
NULLCMD=: |
| 146 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 147 |
# is contrary to our usage. Disable this feature. |
| 148 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 149 |
setopt NO_GLOB_SUBST |
| 150 |
else \$as_nop |
| 151 |
case \`(set -o) 2>/dev/null\` in #( |
| 152 |
*posix*) : |
| 153 |
set -o posix ;; #( |
| 154 |
*) : |
| 155 |
;; |
| 156 |
esac |
| 157 |
fi |
| 158 |
" |
| 159 |
as_required="as_fn_return () { (exit \$1); } |
| 160 |
as_fn_success () { as_fn_return 0; } |
| 161 |
as_fn_failure () { as_fn_return 1; } |
| 162 |
as_fn_ret_success () { return 0; } |
| 163 |
as_fn_ret_failure () { return 1; } |
| 164 |
|
| 165 |
exitcode=0 |
| 166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 |
then : |
| 172 |
|
| 173 |
else \$as_nop |
| 174 |
exitcode=1; echo positional parameters were not saved. |
| 175 |
fi |
| 176 |
test x\$exitcode = x0 || exit 1 |
| 177 |
blah=\$(echo \$(echo blah)) |
| 178 |
test x\"\$blah\" = xblah || exit 1 |
| 179 |
test -x / || exit 1" |
| 180 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 181 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 182 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 183 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 184 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 185 |
if (eval "$as_required") 2>/dev/null |
| 186 |
then : |
| 187 |
as_have_required=yes |
| 188 |
else $as_nop |
| 189 |
as_have_required=no |
| 190 |
fi |
| 191 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 192 |
then : |
| 193 |
|
| 194 |
else $as_nop |
| 195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 196 |
as_found=false |
| 197 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 198 |
do |
| 199 |
IFS=$as_save_IFS |
| 200 |
case $as_dir in #((( |
| 201 |
'') as_dir=./ ;; |
| 202 |
*/) ;; |
| 203 |
*) as_dir=$as_dir/ ;; |
| 204 |
esac |
| 205 |
as_found=: |
| 206 |
case $as_dir in #( |
| 207 |
/*) |
| 208 |
for as_base in sh bash ksh sh5; do |
| 209 |
# Try only shells that exist, to save several forks. |
| 210 |
as_shell=$as_dir$as_base |
| 211 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 212 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 213 |
then : |
| 214 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 215 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 216 |
then : |
| 217 |
break 2 |
| 218 |
fi |
| 219 |
fi |
| 220 |
done;; |
| 221 |
esac |
| 222 |
as_found=false |
| 223 |
done |
| 224 |
IFS=$as_save_IFS |
| 225 |
if $as_found |
| 226 |
then : |
| 227 |
|
| 228 |
else $as_nop |
| 229 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 230 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 231 |
then : |
| 232 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 233 |
fi |
| 234 |
fi |
| 235 |
|
| 236 |
|
| 237 |
if test "x$CONFIG_SHELL" != x |
| 238 |
then : |
| 239 |
export CONFIG_SHELL |
| 240 |
# We cannot yet assume a decent shell, so we have to provide a |
| 241 |
# neutralization value for shells without unset; and this also |
| 242 |
# works around shells that cannot unset nonexistent variables. |
| 243 |
# Preserve -v and -x to the replacement shell. |
| 244 |
BASH_ENV=/dev/null |
| 245 |
ENV=/dev/null |
| 246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 |
case $- in # (((( |
| 248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 249 |
*v* ) as_opts=-v ;; |
| 250 |
*x* ) as_opts=-x ;; |
| 251 |
* ) as_opts= ;; |
| 252 |
esac |
| 253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 255 |
# out after a failed `exec'. |
| 256 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 |
exit 255 |
| 258 |
fi |
| 259 |
|
| 260 |
if test x$as_have_required = xno |
| 261 |
then : |
| 262 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 263 |
printf "%s\n" "$0: the shells that I found on your system." |
| 264 |
if test ${ZSH_VERSION+y} ; then |
| 265 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 267 |
else |
| 268 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 269 |
$0: including any error possibly output before this |
| 270 |
$0: message. Then install a modern shell, or manually run |
| 271 |
$0: the script under such a shell if you do have one." |
| 272 |
fi |
| 273 |
exit 1 |
| 274 |
fi |
| 275 |
fi |
| 276 |
fi |
| 277 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 278 |
export SHELL |
| 279 |
# Unset more variables known to interfere with behavior of common tools. |
| 280 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 281 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 282 |
|
| 283 |
## --------------------- ## |
| 284 |
## M4sh Shell Functions. ## |
| 285 |
## --------------------- ## |
| 286 |
# as_fn_unset VAR |
| 287 |
# --------------- |
| 288 |
# Portably unset VAR. |
| 289 |
as_fn_unset () |
| 290 |
{ |
| 291 |
{ eval $1=; unset $1;} |
| 292 |
} |
| 293 |
as_unset=as_fn_unset |
| 294 |
|
| 295 |
|
| 296 |
# as_fn_set_status STATUS |
| 297 |
# ----------------------- |
| 298 |
# Set $? to STATUS, without forking. |
| 299 |
as_fn_set_status () |
| 300 |
{ |
| 301 |
return $1 |
| 302 |
} # as_fn_set_status |
| 303 |
|
| 304 |
# as_fn_exit STATUS |
| 305 |
# ----------------- |
| 306 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 |
as_fn_exit () |
| 308 |
{ |
| 309 |
set +e |
| 310 |
as_fn_set_status $1 |
| 311 |
exit $1 |
| 312 |
} # as_fn_exit |
| 313 |
# as_fn_nop |
| 314 |
# --------- |
| 315 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 316 |
as_fn_nop () |
| 317 |
{ |
| 318 |
return $? |
| 319 |
} |
| 320 |
as_nop=as_fn_nop |
| 321 |
|
| 322 |
# as_fn_mkdir_p |
| 323 |
# ------------- |
| 324 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 325 |
as_fn_mkdir_p () |
| 326 |
{ |
| 327 |
|
| 328 |
case $as_dir in #( |
| 329 |
-*) as_dir=./$as_dir;; |
| 330 |
esac |
| 331 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 332 |
as_dirs= |
| 333 |
while :; do |
| 334 |
case $as_dir in #( |
| 335 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 336 |
*) as_qdir=$as_dir;; |
| 337 |
esac |
| 338 |
as_dirs="'$as_qdir' $as_dirs" |
| 339 |
as_dir=`$as_dirname -- "$as_dir" || |
| 340 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 341 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 342 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 343 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 344 |
printf "%s\n" X"$as_dir" | |
| 345 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 346 |
s//\1/ |
| 347 |
q |
| 348 |
} |
| 349 |
/^X\(\/\/\)[^/].*/{ |
| 350 |
s//\1/ |
| 351 |
q |
| 352 |
} |
| 353 |
/^X\(\/\/\)$/{ |
| 354 |
s//\1/ |
| 355 |
q |
| 356 |
} |
| 357 |
/^X\(\/\).*/{ |
| 358 |
s//\1/ |
| 359 |
q |
| 360 |
} |
| 361 |
s/.*/./; q'` |
| 362 |
test -d "$as_dir" && break |
| 363 |
done |
| 364 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 365 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 366 |
|
| 367 |
|
| 368 |
} # as_fn_mkdir_p |
| 369 |
|
| 370 |
# as_fn_executable_p FILE |
| 371 |
# ----------------------- |
| 372 |
# Test if FILE is an executable regular file. |
| 373 |
as_fn_executable_p () |
| 374 |
{ |
| 375 |
test -f "$1" && test -x "$1" |
| 376 |
} # as_fn_executable_p |
| 377 |
# as_fn_append VAR VALUE |
| 378 |
# ---------------------- |
| 379 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 380 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 381 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 382 |
# implementations. |
| 383 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 384 |
then : |
| 385 |
eval 'as_fn_append () |
| 386 |
{ |
| 387 |
eval $1+=\$2 |
| 388 |
}' |
| 389 |
else $as_nop |
| 390 |
as_fn_append () |
| 391 |
{ |
| 392 |
eval $1=\$$1\$2 |
| 393 |
} |
| 394 |
fi # as_fn_append |
| 395 |
|
| 396 |
# as_fn_arith ARG... |
| 397 |
# ------------------ |
| 398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 |
# must be portable across $(()) and expr. |
| 401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 402 |
then : |
| 403 |
eval 'as_fn_arith () |
| 404 |
{ |
| 405 |
as_val=$(( $* )) |
| 406 |
}' |
| 407 |
else $as_nop |
| 408 |
as_fn_arith () |
| 409 |
{ |
| 410 |
as_val=`expr "$@" || test $? -eq 1` |
| 411 |
} |
| 412 |
fi # as_fn_arith |
| 413 |
|
| 414 |
# as_fn_nop |
| 415 |
# --------- |
| 416 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 417 |
as_fn_nop () |
| 418 |
{ |
| 419 |
return $? |
| 420 |
} |
| 421 |
as_nop=as_fn_nop |
| 422 |
|
| 423 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 424 |
# ---------------------------------------- |
| 425 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 426 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 427 |
# script with STATUS, using 1 if that was 0. |
| 428 |
as_fn_error () |
| 429 |
{ |
| 430 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 431 |
if test "$4"; then |
| 432 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 433 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 434 |
fi |
| 435 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 436 |
as_fn_exit $as_status |
| 437 |
} # as_fn_error |
| 438 |
|
| 439 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 440 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 441 |
as_expr=expr |
| 442 |
else |
| 443 |
as_expr=false |
| 444 |
fi |
| 445 |
|
| 446 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 447 |
as_basename=basename |
| 448 |
else |
| 449 |
as_basename=false |
| 450 |
fi |
| 451 |
|
| 452 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 453 |
as_dirname=dirname |
| 454 |
else |
| 455 |
as_dirname=false |
| 456 |
fi |
| 457 |
|
| 458 |
as_me=`$as_basename -- "$0" || |
| 459 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 460 |
X"$0" : 'X\(//\)$' \| \ |
| 461 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 462 |
printf "%s\n" X/"$0" | |
| 463 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 464 |
s//\1/ |
| 465 |
q |
| 466 |
} |
| 467 |
/^X\/\(\/\/\)$/{ |
| 468 |
s//\1/ |
| 469 |
q |
| 470 |
} |
| 471 |
/^X\/\(\/\).*/{ |
| 472 |
s//\1/ |
| 473 |
q |
| 474 |
} |
| 475 |
s/.*/./; q'` |
| 476 |
|
| 477 |
# Avoid depending upon Character Ranges. |
| 478 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 479 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 480 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 481 |
as_cr_digits='0123456789' |
| 482 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 483 |
|
| 484 |
|
| 485 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 486 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 487 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 488 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 489 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 490 |
sed -n ' |
| 491 |
p |
| 492 |
/[$]LINENO/= |
| 493 |
' <$as_myself | |
| 494 |
sed ' |
| 495 |
s/[$]LINENO.*/&-/ |
| 496 |
t lineno |
| 497 |
b |
| 498 |
:lineno |
| 499 |
N |
| 500 |
:loop |
| 501 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 502 |
t loop |
| 503 |
s/-\n.*// |
| 504 |
' >$as_me.lineno && |
| 505 |
chmod +x "$as_me.lineno" || |
| 506 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 507 |
|
| 508 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 509 |
# already done that, so ensure we don't try to do so again and fall |
| 510 |
# in an infinite loop. This has already happened in practice. |
| 511 |
_as_can_reexec=no; export _as_can_reexec |
| 512 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 513 |
# (the dirname of $[0] is not the place where we might find the |
| 514 |
# original and so on. Autoconf is especially sensitive to this). |
| 515 |
. "./$as_me.lineno" |
| 516 |
# Exit status is that of the last command. |
| 517 |
exit |
| 518 |
} |
| 519 |
|
| 520 |
|
| 521 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 522 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 523 |
# for compatibility with existing Makefiles. |
| 524 |
ECHO_C= ECHO_N= ECHO_T= |
| 525 |
case `echo -n x` in #((((( |
| 526 |
-n*) |
| 527 |
case `echo 'xy\c'` in |
| 528 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 529 |
xy) ECHO_C='\c';; |
| 530 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 531 |
ECHO_T=' ';; |
| 532 |
esac;; |
| 533 |
*) |
| 534 |
ECHO_N='-n';; |
| 535 |
esac |
| 536 |
|
| 537 |
# For backward compatibility with old third-party macros, we provide |
| 538 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 539 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 540 |
as_echo='printf %s\n' |
| 541 |
as_echo_n='printf %s' |
| 542 |
|
| 543 |
|
| 544 |
rm -f conf$$ conf$$.exe conf$$.file |
| 545 |
if test -d conf$$.dir; then |
| 546 |
rm -f conf$$.dir/conf$$.file |
| 547 |
else |
| 548 |
rm -f conf$$.dir |
| 549 |
mkdir conf$$.dir 2>/dev/null |
| 550 |
fi |
| 551 |
if (echo >conf$$.file) 2>/dev/null; then |
| 552 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 553 |
as_ln_s='ln -s' |
| 554 |
# ... but there are two gotchas: |
| 555 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 556 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 557 |
# In both cases, we have to default to `cp -pR'. |
| 558 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 559 |
as_ln_s='cp -pR' |
| 560 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 561 |
as_ln_s=ln |
| 562 |
else |
| 563 |
as_ln_s='cp -pR' |
| 564 |
fi |
| 565 |
else |
| 566 |
as_ln_s='cp -pR' |
| 567 |
fi |
| 568 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 569 |
rmdir conf$$.dir 2>/dev/null |
| 570 |
|
| 571 |
if mkdir -p . 2>/dev/null; then |
| 572 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 573 |
else |
| 574 |
test -d ./-p && rmdir ./-p |
| 575 |
as_mkdir_p=false |
| 576 |
fi |
| 577 |
|
| 578 |
as_test_x='test -x' |
| 579 |
as_executable_p=as_fn_executable_p |
| 580 |
|
| 581 |
# Sed expression to map a string onto a valid CPP name. |
| 582 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 583 |
|
| 584 |
# Sed expression to map a string onto a valid variable name. |
| 585 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 586 |
|
| 587 |
|
| 588 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 589 |
exec 6>&1 |
| 590 |
|
| 591 |
# Name of the host. |
| 592 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 593 |
# so uname gets run too. |
| 594 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 595 |
|
| 596 |
# |
| 597 |
# Initializations. |
| 598 |
# |
| 599 |
ac_default_prefix=/usr/local |
| 600 |
ac_clean_files= |
| 601 |
ac_config_libobj_dir=. |
| 602 |
LIBOBJS= |
| 603 |
cross_compiling=no |
| 604 |
subdirs= |
| 605 |
MFLAGS= |
| 606 |
MAKEFLAGS= |
| 607 |
|
| 608 |
# Identity of this package. |
| 609 |
PACKAGE_NAME='' |
| 610 |
PACKAGE_TARNAME='' |
| 611 |
PACKAGE_VERSION='' |
| 612 |
PACKAGE_STRING='' |
| 613 |
PACKAGE_BUGREPORT='' |
| 614 |
PACKAGE_URL='' |
| 615 |
|
| 616 |
ac_unique_file="psi/gs.c" |
| 617 |
# Factoring default headers for most tests. |
| 618 |
ac_includes_default="\ |
| 619 |
#include <stddef.h> |
| 620 |
#ifdef HAVE_STDIO_H |
| 621 |
# include <stdio.h> |
| 622 |
#endif |
| 623 |
#ifdef HAVE_STDLIB_H |
| 624 |
# include <stdlib.h> |
| 625 |
#endif |
| 626 |
#ifdef HAVE_STRING_H |
| 627 |
# include <string.h> |
| 628 |
#endif |
| 629 |
#ifdef HAVE_INTTYPES_H |
| 630 |
# include <inttypes.h> |
| 631 |
#endif |
| 632 |
#ifdef HAVE_STDINT_H |
| 633 |
# include <stdint.h> |
| 634 |
#endif |
| 635 |
#ifdef HAVE_STRINGS_H |
| 636 |
# include <strings.h> |
| 637 |
#endif |
| 638 |
#ifdef HAVE_SYS_TYPES_H |
| 639 |
# include <sys/types.h> |
| 640 |
#endif |
| 641 |
#ifdef HAVE_SYS_STAT_H |
| 642 |
# include <sys/stat.h> |
| 643 |
#endif |
| 644 |
#ifdef HAVE_UNISTD_H |
| 645 |
# include <unistd.h> |
| 646 |
#endif" |
| 647 |
|
| 648 |
ac_header_c_list= |
| 649 |
ac_func_c_list= |
| 650 |
ac_subst_vars='LTLIBOBJS |
| 651 |
CFLAGS_VISIBILITY |
| 652 |
ARCH_AUTOCONF_HEADER |
| 653 |
AUXEXTRALIBS |
| 654 |
LDFLAGSAUX |
| 655 |
CFLAGSAUX_PROFILE |
| 656 |
CFLAGSAUX_DEBUG |
| 657 |
CFLAGSAUX_STANDARD |
| 658 |
CAPOPTAUX |
| 659 |
GCFLAGSAUX |
| 660 |
CFLAGSAUX |
| 661 |
CCAUX |
| 662 |
JPX_SSE_CFLAGS |
| 663 |
CFLAGS_SANITIZE |
| 664 |
GXXFLAGS |
| 665 |
GCFLAGS |
| 666 |
DBG_CFLAGS |
| 667 |
OPT_CFLAGS |
| 668 |
SRCDIR |
| 669 |
MKROMFS_FLAGS |
| 670 |
ARCH_ARITH_RSHIFT |
| 671 |
ARCH_DIV_NEG_POS_TRUNCATES |
| 672 |
ARCH_PTRS_ARE_SIGNED |
| 673 |
ARCH_IS_BIG_ENDIAN |
| 674 |
ARCH_LOG2_SIZEOF_DOUBLE |
| 675 |
ARCH_SIZEOF_DOUBLE |
| 676 |
ARCH_LOG2_SIZEOF_FLOAT |
| 677 |
ARCH_SIZEOF_FLOAT |
| 678 |
ARCH_LOG2_SIZEOF_PTR |
| 679 |
ARCH_SIZEOF_PTR |
| 680 |
ARCH_SIZEOF_SIZE_T |
| 681 |
ARCH_LOG2_SIZEOF_SIZE_T |
| 682 |
ARCH_LOG2_SIZEOF_LONG_LONG |
| 683 |
ARCH_LOG2_SIZEOF_LONG |
| 684 |
ARCH_LOG2_SIZEOF_INT |
| 685 |
ARCH_LOG2_SIZEOF_SHORT |
| 686 |
ARCH_LOG2_SIZEOF_CHAR |
| 687 |
ARCH_ALIGN_UINT64_T_MOD |
| 688 |
ARCH_ALIGN_DOUBLE_MOD |
| 689 |
ARCH_ALIGN_FLOAT_MOD |
| 690 |
ARCH_ALIGN_PTR_MOD |
| 691 |
ARCH_ALIGN_SIZE_T_MOD |
| 692 |
ARCH_ALIGN_LONG_MOD |
| 693 |
ARCH_ALIGN_INT_MOD |
| 694 |
ARCH_ALIGN_SHORT_MOD |
| 695 |
CLUSTER_CFLAGS |
| 696 |
VERSIONED_PATH |
| 697 |
AUXEXEEXT |
| 698 |
AUXDIRPOSTFIX |
| 699 |
HAVE_BYTESWAP_H |
| 700 |
HAVE_BSWAP32 |
| 701 |
SQRTF_SUBST |
| 702 |
LCMS2_PTR_ALIGNMENT |
| 703 |
LCMS2_ENDIAN |
| 704 |
LCMS_ENDIAN |
| 705 |
EGREP |
| 706 |
HAVE_FPCLASSIFY |
| 707 |
HAVE_ISINF |
| 708 |
HAVE_ISNAN |
| 709 |
HAVE_STRERROR |
| 710 |
HAVE_SETLOCALE |
| 711 |
HAVE_MKSTEMP64 |
| 712 |
HAVE_FSEEKO |
| 713 |
HAVE_FILE64 |
| 714 |
HAVE_MKSTEMP |
| 715 |
tessdata |
| 716 |
fontpath |
| 717 |
SO_LIB_VERSION_SEPARATOR |
| 718 |
DLL_EXT |
| 719 |
SO_LIB_EXT |
| 720 |
X11_DEVS |
| 721 |
INSTALL_SHARED |
| 722 |
DYNAMIC_LIBS |
| 723 |
PDF_DYNAMIC_LDFLAGS |
| 724 |
PDL_DYNAMIC_LDFLAGS |
| 725 |
XPS_DYNAMIC_LDFLAGS |
| 726 |
PCL_DYNAMIC_LDFLAGS |
| 727 |
GS_DYNAMIC_LDFLAGS |
| 728 |
DYNAMIC_FLAGS |
| 729 |
DYNAMIC_DEVS |
| 730 |
DYNAMIC_CFLAGS |
| 731 |
XML_HIDDEN_CFLAGS |
| 732 |
FT_HIDDEN_CFLAGS |
| 733 |
GPDL_SONAME_MAJOR_MINOR |
| 734 |
GPDL_SONAME_MAJOR |
| 735 |
GPDL_SONAME |
| 736 |
PDF_SONAME_MAJOR_MINOR |
| 737 |
PDF_SONAME_MAJOR |
| 738 |
PDF_SONAME |
| 739 |
XPS_SONAME_MAJOR_MINOR |
| 740 |
XPS_SONAME_MAJOR |
| 741 |
XPS_SONAME |
| 742 |
PCL_SONAME_MAJOR_MINOR |
| 743 |
PCL_SONAME_MAJOR |
| 744 |
PCL_SONAME |
| 745 |
GS_SONAME_MAJOR_MINOR |
| 746 |
GS_SONAME_MAJOR |
| 747 |
GS_SONAME |
| 748 |
OCR_DEVS0 |
| 749 |
PNG_DEVS |
| 750 |
IJS_DEVS |
| 751 |
JBIG2_DEVS |
| 752 |
XPS_DEVS |
| 753 |
CUPS_DEVS |
| 754 |
F_DEVS |
| 755 |
P_DEVS |
| 756 |
EXTRACT_DIR |
| 757 |
COMPILE_INITS |
| 758 |
GPDL_MAK |
| 759 |
GPDL_TARGET |
| 760 |
GPDL |
| 761 |
PDFROMFS_MAK |
| 762 |
GPDF_DEV |
| 763 |
PDF_MAK |
| 764 |
PDF_TARGET |
| 765 |
PDF |
| 766 |
XPSROMFS_MAK |
| 767 |
XPS_MAK |
| 768 |
XPS_TARGET |
| 769 |
XPS |
| 770 |
PXL_MAK |
| 771 |
PCL_TOP_MAK |
| 772 |
PCL_MAK |
| 773 |
PL_MAK |
| 774 |
PLROMFS_MAK |
| 775 |
PCL_TARGET |
| 776 |
PCL |
| 777 |
GS |
| 778 |
XLIBS |
| 779 |
X_LDFLAGS |
| 780 |
X_EXTRA_LIBS |
| 781 |
X_LIBS |
| 782 |
X_PRE_LIBS |
| 783 |
X_CFLAGS |
| 784 |
XMKMF |
| 785 |
SOC_LOADER |
| 786 |
SOC_LIBS |
| 787 |
SOC_CFLAGS |
| 788 |
CAL_NEON_CFLAGS |
| 789 |
CAL_AVX2_CFLAGS |
| 790 |
CAL_SSE4_2_CFLAGS |
| 791 |
CAL_CFLAGS |
| 792 |
WITH_CAL |
| 793 |
CALSRCDIR |
| 794 |
SO_PDFEXPORT_LIB |
| 795 |
GPDL_SO_TOP_OBJ |
| 796 |
ENABLESO |
| 797 |
SURFX_H |
| 798 |
URF_INCLUDE |
| 799 |
GPDL_URF_TOP_OBJ |
| 800 |
ENABLEURF |
| 801 |
JPXDEVS |
| 802 |
SHARE_JPX |
| 803 |
JPXDIR |
| 804 |
JPX_AUTOCONF_LIBS |
| 805 |
JPX_AUTOCONF_CFLAGS |
| 806 |
JPX_DECODER |
| 807 |
JBIG2_AUTOCONF_CFLAGS |
| 808 |
JBIG2DEVS |
| 809 |
SHARE_JBIG2 |
| 810 |
JBIG2DIR |
| 811 |
JBIG2_DECODER |
| 812 |
IJSLIB |
| 813 |
SHAREIJS |
| 814 |
IJSDIR |
| 815 |
CUPSPDFTORASTER |
| 816 |
LCUPSIINCLUDE |
| 817 |
LCUPSINCLUDE |
| 818 |
LCUPSBUILDTYPE |
| 819 |
SHARELCUPSI |
| 820 |
SHARELCUPS |
| 821 |
LIB_CUPS_DIR |
| 822 |
CUPS_DIR |
| 823 |
CUPSINSTALL |
| 824 |
CUPSDATA |
| 825 |
CUPSSERVERROOT |
| 826 |
CUPSSERVERBIN |
| 827 |
CUPSINCLUDE |
| 828 |
CUPSLIBDIRS |
| 829 |
CUPSLIBS |
| 830 |
CUPSCFLAGS |
| 831 |
BUILD_CUPSCONFIG |
| 832 |
CUPSCONFIG |
| 833 |
EXPAT_LIBS |
| 834 |
EXPAT_CFLAGS |
| 835 |
EXPATDIR |
| 836 |
SHARE_EXPAT |
| 837 |
ENABLETIFF |
| 838 |
TIFFCFLAGS |
| 839 |
LIBTIFFCONFDIR |
| 840 |
LIBTIFFDIR |
| 841 |
SHARE_LIBTIFF |
| 842 |
LCMS2MTDIR |
| 843 |
LCMS2DIR |
| 844 |
WHICHLCMS |
| 845 |
SHARELCMS |
| 846 |
BROTLIDIR |
| 847 |
BROTLICFLAGS |
| 848 |
SHARE_BROTLI |
| 849 |
BROTLI_DECODE_NAME |
| 850 |
BROTLI_ENCODE_NAME |
| 851 |
BROTLI_COMMON_NAME |
| 852 |
LIBPNGDIR |
| 853 |
SHARE_LIBPNG |
| 854 |
FT_SYS_ZLIB |
| 855 |
ZLIBDIR |
| 856 |
ZLIBCFLAGS |
| 857 |
AUX_SHARED_ZLIB |
| 858 |
SHARE_ZLIB |
| 859 |
LIBJPEGDIR |
| 860 |
SHARE_LIBJPEG |
| 861 |
FT_LIB_PATH |
| 862 |
FT_LIBS |
| 863 |
FT_CFLAGS |
| 864 |
FTSRCDIR |
| 865 |
SHARE_FT |
| 866 |
FAPIUFST_MAK |
| 867 |
UFST_LIB_EXT |
| 868 |
UFST_CFLAGS |
| 869 |
UFST_ROOT |
| 870 |
INSERT_UFST_BRIDGE_EQUAL_ONE |
| 871 |
DBUS_LIBS |
| 872 |
DBUS_CFLAGS |
| 873 |
HAVE_DBUS |
| 874 |
FONTCONFIG_LIBS |
| 875 |
FONTCONFIG_CFLAGS |
| 876 |
HAVE_FONTCONFIG |
| 877 |
HAVE_LIBIDN |
| 878 |
TESS_CXXFLAGS |
| 879 |
TESS_NEON |
| 880 |
TESS_SSE4_1 |
| 881 |
TESS_FMA |
| 882 |
TESS_AVX2 |
| 883 |
TESS_AVX |
| 884 |
OCR_SHARED |
| 885 |
OCR_VERSION |
| 886 |
TESSERACTDIR |
| 887 |
LEPTONICADIR |
| 888 |
TESSERACTINCLUDE |
| 889 |
LEPTONICAINCLUDE |
| 890 |
TESSERACT_LIBS |
| 891 |
ac_ct_CXX |
| 892 |
CXXFLAGS |
| 893 |
CXX |
| 894 |
RECURSIVE_MUTEXATTR |
| 895 |
PTHREAD_LIBS |
| 896 |
SYNC |
| 897 |
HAVE_POPEN_PROTO |
| 898 |
HAVE_PREAD_PWRITE |
| 899 |
ARCH_SIZEOF_GX_COLOR_INDEX |
| 900 |
LIBOBJS |
| 901 |
SUB_MAKE_OPTION |
| 902 |
ORDER_ONLY |
| 903 |
OBJDIR_BSDMAKE_WORKAROUND |
| 904 |
MAKE_EXISTS |
| 905 |
HAVE_SSE2 |
| 906 |
ARCH_CONF_HEADER |
| 907 |
SET_DT_SONAME |
| 908 |
INSTALL_CONTRIB |
| 909 |
CONTRIBINCLUDE |
| 910 |
BUILD_STRIP_XE |
| 911 |
STRIP_XE |
| 912 |
BUILD_PKGCONFIG |
| 913 |
PKGCONFIG |
| 914 |
GREP |
| 915 |
RANLIB |
| 916 |
SED_EXTENDED_REGEX_OPT |
| 917 |
SED |
| 918 |
CPP |
| 919 |
OBJEXT |
| 920 |
EXEEXT |
| 921 |
ac_ct_CC |
| 922 |
CPPFLAGS |
| 923 |
LDFLAGS |
| 924 |
CFLAGS |
| 925 |
CC |
| 926 |
host_os |
| 927 |
host_vendor |
| 928 |
host_cpu |
| 929 |
host |
| 930 |
build_os |
| 931 |
build_vendor |
| 932 |
build_cpu |
| 933 |
build |
| 934 |
target_alias |
| 935 |
host_alias |
| 936 |
build_alias |
| 937 |
LIBS |
| 938 |
ECHO_T |
| 939 |
ECHO_N |
| 940 |
ECHO_C |
| 941 |
DEFS |
| 942 |
mandir |
| 943 |
localedir |
| 944 |
libdir |
| 945 |
psdir |
| 946 |
pdfdir |
| 947 |
dvidir |
| 948 |
htmldir |
| 949 |
infodir |
| 950 |
docdir |
| 951 |
oldincludedir |
| 952 |
includedir |
| 953 |
runstatedir |
| 954 |
localstatedir |
| 955 |
sharedstatedir |
| 956 |
sysconfdir |
| 957 |
datadir |
| 958 |
datarootdir |
| 959 |
libexecdir |
| 960 |
sbindir |
| 961 |
bindir |
| 962 |
program_transform_name |
| 963 |
prefix |
| 964 |
exec_prefix |
| 965 |
PACKAGE_URL |
| 966 |
PACKAGE_BUGREPORT |
| 967 |
PACKAGE_STRING |
| 968 |
PACKAGE_VERSION |
| 969 |
PACKAGE_TARNAME |
| 970 |
PACKAGE_NAME |
| 971 |
PATH_SEPARATOR |
| 972 |
SHELL' |
| 973 |
ac_subst_files='' |
| 974 |
ac_user_opts=' |
| 975 |
enable_option_checking |
| 976 |
enable_save_confaux |
| 977 |
enable_auxtools_only |
| 978 |
enable_contrib |
| 979 |
with_arch_h |
| 980 |
with_sanitizer |
| 981 |
enable_sse2 |
| 982 |
with_make |
| 983 |
with_large_color_index |
| 984 |
enable_neon |
| 985 |
enable_threading |
| 986 |
with_tesseract |
| 987 |
with_libiconv |
| 988 |
with_libidn |
| 989 |
with_libpaper |
| 990 |
enable_fontconfig |
| 991 |
enable_dbus |
| 992 |
with_ufst |
| 993 |
with_local_zlib |
| 994 |
with_local_brotli |
| 995 |
with_libtiff |
| 996 |
with_system_libtiff |
| 997 |
enable_cups |
| 998 |
with_pdftoraster |
| 999 |
with_local_cups |
| 1000 |
with_cups_serverbin |
| 1001 |
with_cups_serverroot |
| 1002 |
with_cups_datadir |
| 1003 |
with_ijs |
| 1004 |
with_jbig2dec |
| 1005 |
enable_openjpeg |
| 1006 |
with_urf |
| 1007 |
with_so |
| 1008 |
with_cal |
| 1009 |
enable_gtk |
| 1010 |
with_x |
| 1011 |
with_gs |
| 1012 |
with_pcl |
| 1013 |
with_xps |
| 1014 |
with_pdf |
| 1015 |
with_gpdl |
| 1016 |
enable_compile_inits |
| 1017 |
with_drivers |
| 1018 |
with_driversfile |
| 1019 |
with_extract_dir |
| 1020 |
enable_hidden_visibility |
| 1021 |
enable_dynamic |
| 1022 |
with_fontpath |
| 1023 |
with_tessdata |
| 1024 |
with_memory_alignment |
| 1025 |
enable_bswap32 |
| 1026 |
enable_byteswap_h |
| 1027 |
with_gnu_make |
| 1028 |
with_exe_ext |
| 1029 |
with_aux_exe_ext |
| 1030 |
with_versioned_path |
| 1031 |
enable_cluster |
| 1032 |
enable_mkromfs_quiet |
| 1033 |
' |
| 1034 |
ac_precious_vars='build_alias |
| 1035 |
host_alias |
| 1036 |
target_alias |
| 1037 |
CC |
| 1038 |
CFLAGS |
| 1039 |
LDFLAGS |
| 1040 |
LIBS |
| 1041 |
CPPFLAGS |
| 1042 |
CPP |
| 1043 |
CXX |
| 1044 |
CXXFLAGS |
| 1045 |
CCC |
| 1046 |
XMKMF' |
| 1047 |
|
| 1048 |
|
| 1049 |
# Initialize some variables set by options. |
| 1050 |
ac_init_help= |
| 1051 |
ac_init_version=false |
| 1052 |
ac_unrecognized_opts= |
| 1053 |
ac_unrecognized_sep= |
| 1054 |
# The variables have the same names as the options, with |
| 1055 |
# dashes changed to underlines. |
| 1056 |
cache_file=/dev/null |
| 1057 |
exec_prefix=NONE |
| 1058 |
no_create= |
| 1059 |
no_recursion= |
| 1060 |
prefix=NONE |
| 1061 |
program_prefix=NONE |
| 1062 |
program_suffix=NONE |
| 1063 |
program_transform_name=s,x,x, |
| 1064 |
silent= |
| 1065 |
site= |
| 1066 |
srcdir= |
| 1067 |
verbose= |
| 1068 |
x_includes=NONE |
| 1069 |
x_libraries=NONE |
| 1070 |
|
| 1071 |
# Installation directory options. |
| 1072 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1073 |
# and all the variables that are supposed to be based on exec_prefix |
| 1074 |
# by default will actually change. |
| 1075 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1076 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1077 |
bindir='${exec_prefix}/bin' |
| 1078 |
sbindir='${exec_prefix}/sbin' |
| 1079 |
libexecdir='${exec_prefix}/libexec' |
| 1080 |
datarootdir='${prefix}/share' |
| 1081 |
datadir='${datarootdir}' |
| 1082 |
sysconfdir='${prefix}/etc' |
| 1083 |
sharedstatedir='${prefix}/com' |
| 1084 |
localstatedir='${prefix}/var' |
| 1085 |
runstatedir='${localstatedir}/run' |
| 1086 |
includedir='${prefix}/include' |
| 1087 |
oldincludedir='/usr/include' |
| 1088 |
docdir='${datarootdir}/doc/${PACKAGE}' |
| 1089 |
infodir='${datarootdir}/info' |
| 1090 |
htmldir='${docdir}' |
| 1091 |
dvidir='${docdir}' |
| 1092 |
pdfdir='${docdir}' |
| 1093 |
psdir='${docdir}' |
| 1094 |
libdir='${exec_prefix}/lib' |
| 1095 |
localedir='${datarootdir}/locale' |
| 1096 |
mandir='${datarootdir}/man' |
| 1097 |
|
| 1098 |
ac_prev= |
| 1099 |
ac_dashdash= |
| 1100 |
for ac_option |
| 1101 |
do |
| 1102 |
# If the previous option needs an argument, assign it. |
| 1103 |
if test -n "$ac_prev"; then |
| 1104 |
eval $ac_prev=\$ac_option |
| 1105 |
ac_prev= |
| 1106 |
continue |
| 1107 |
fi |
| 1108 |
|
| 1109 |
case $ac_option in |
| 1110 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1111 |
*=) ac_optarg= ;; |
| 1112 |
*) ac_optarg=yes ;; |
| 1113 |
esac |
| 1114 |
|
| 1115 |
case $ac_dashdash$ac_option in |
| 1116 |
--) |
| 1117 |
ac_dashdash=yes ;; |
| 1118 |
|
| 1119 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1120 |
ac_prev=bindir ;; |
| 1121 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1122 |
bindir=$ac_optarg ;; |
| 1123 |
|
| 1124 |
-build | --build | --buil | --bui | --bu) |
| 1125 |
ac_prev=build_alias ;; |
| 1126 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1127 |
build_alias=$ac_optarg ;; |
| 1128 |
|
| 1129 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1130 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1131 |
ac_prev=cache_file ;; |
| 1132 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1133 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1134 |
cache_file=$ac_optarg ;; |
| 1135 |
|
| 1136 |
--config-cache | -C) |
| 1137 |
cache_file=config.cache ;; |
| 1138 |
|
| 1139 |
-datadir | --datadir | --datadi | --datad) |
| 1140 |
ac_prev=datadir ;; |
| 1141 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1142 |
datadir=$ac_optarg ;; |
| 1143 |
|
| 1144 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1145 |
| --dataroo | --dataro | --datar) |
| 1146 |
ac_prev=datarootdir ;; |
| 1147 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1148 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1149 |
datarootdir=$ac_optarg ;; |
| 1150 |
|
| 1151 |
-disable-* | --disable-*) |
| 1152 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1153 |
# Reject names that are not valid shell variable names. |
| 1154 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1155 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1156 |
ac_useropt_orig=$ac_useropt |
| 1157 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1158 |
case $ac_user_opts in |
| 1159 |
*" |
| 1160 |
"enable_$ac_useropt" |
| 1161 |
"*) ;; |
| 1162 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1163 |
ac_unrecognized_sep=', ';; |
| 1164 |
esac |
| 1165 |
eval enable_$ac_useropt=no ;; |
| 1166 |
|
| 1167 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1168 |
ac_prev=docdir ;; |
| 1169 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1170 |
docdir=$ac_optarg ;; |
| 1171 |
|
| 1172 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1173 |
ac_prev=dvidir ;; |
| 1174 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1175 |
dvidir=$ac_optarg ;; |
| 1176 |
|
| 1177 |
-enable-* | --enable-*) |
| 1178 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1179 |
# Reject names that are not valid shell variable names. |
| 1180 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1181 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1182 |
ac_useropt_orig=$ac_useropt |
| 1183 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1184 |
case $ac_user_opts in |
| 1185 |
*" |
| 1186 |
"enable_$ac_useropt" |
| 1187 |
"*) ;; |
| 1188 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1189 |
ac_unrecognized_sep=', ';; |
| 1190 |
esac |
| 1191 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1192 |
|
| 1193 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1194 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1195 |
| --exec | --exe | --ex) |
| 1196 |
ac_prev=exec_prefix ;; |
| 1197 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1198 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1199 |
| --exec=* | --exe=* | --ex=*) |
| 1200 |
exec_prefix=$ac_optarg ;; |
| 1201 |
|
| 1202 |
-gas | --gas | --ga | --g) |
| 1203 |
# Obsolete; use --with-gas. |
| 1204 |
with_gas=yes ;; |
| 1205 |
|
| 1206 |
-help | --help | --hel | --he | -h) |
| 1207 |
ac_init_help=long ;; |
| 1208 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1209 |
ac_init_help=recursive ;; |
| 1210 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1211 |
ac_init_help=short ;; |
| 1212 |
|
| 1213 |
-host | --host | --hos | --ho) |
| 1214 |
ac_prev=host_alias ;; |
| 1215 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1216 |
host_alias=$ac_optarg ;; |
| 1217 |
|
| 1218 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1219 |
ac_prev=htmldir ;; |
| 1220 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1221 |
| --ht=*) |
| 1222 |
htmldir=$ac_optarg ;; |
| 1223 |
|
| 1224 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1225 |
| --includ | --inclu | --incl | --inc) |
| 1226 |
ac_prev=includedir ;; |
| 1227 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1228 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1229 |
includedir=$ac_optarg ;; |
| 1230 |
|
| 1231 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1232 |
ac_prev=infodir ;; |
| 1233 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1234 |
infodir=$ac_optarg ;; |
| 1235 |
|
| 1236 |
-libdir | --libdir | --libdi | --libd) |
| 1237 |
ac_prev=libdir ;; |
| 1238 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1239 |
libdir=$ac_optarg ;; |
| 1240 |
|
| 1241 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1242 |
| --libexe | --libex | --libe) |
| 1243 |
ac_prev=libexecdir ;; |
| 1244 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1245 |
| --libexe=* | --libex=* | --libe=*) |
| 1246 |
libexecdir=$ac_optarg ;; |
| 1247 |
|
| 1248 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1249 |
ac_prev=localedir ;; |
| 1250 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1251 |
localedir=$ac_optarg ;; |
| 1252 |
|
| 1253 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1254 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1255 |
ac_prev=localstatedir ;; |
| 1256 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1257 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1258 |
localstatedir=$ac_optarg ;; |
| 1259 |
|
| 1260 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1261 |
ac_prev=mandir ;; |
| 1262 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1263 |
mandir=$ac_optarg ;; |
| 1264 |
|
| 1265 |
-nfp | --nfp | --nf) |
| 1266 |
# Obsolete; use --without-fp. |
| 1267 |
with_fp=no ;; |
| 1268 |
|
| 1269 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1270 |
| --no-cr | --no-c | -n) |
| 1271 |
no_create=yes ;; |
| 1272 |
|
| 1273 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1274 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1275 |
no_recursion=yes ;; |
| 1276 |
|
| 1277 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1278 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1279 |
| --oldin | --oldi | --old | --ol | --o) |
| 1280 |
ac_prev=oldincludedir ;; |
| 1281 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1282 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1283 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1284 |
oldincludedir=$ac_optarg ;; |
| 1285 |
|
| 1286 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1287 |
ac_prev=prefix ;; |
| 1288 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1289 |
prefix=$ac_optarg ;; |
| 1290 |
|
| 1291 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1292 |
| --program-pre | --program-pr | --program-p) |
| 1293 |
ac_prev=program_prefix ;; |
| 1294 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1295 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1296 |
program_prefix=$ac_optarg ;; |
| 1297 |
|
| 1298 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1299 |
| --program-suf | --program-su | --program-s) |
| 1300 |
ac_prev=program_suffix ;; |
| 1301 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1302 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1303 |
program_suffix=$ac_optarg ;; |
| 1304 |
|
| 1305 |
-program-transform-name | --program-transform-name \ |
| 1306 |
| --program-transform-nam | --program-transform-na \ |
| 1307 |
| --program-transform-n | --program-transform- \ |
| 1308 |
| --program-transform | --program-transfor \ |
| 1309 |
| --program-transfo | --program-transf \ |
| 1310 |
| --program-trans | --program-tran \ |
| 1311 |
| --progr-tra | --program-tr | --program-t) |
| 1312 |
ac_prev=program_transform_name ;; |
| 1313 |
-program-transform-name=* | --program-transform-name=* \ |
| 1314 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1315 |
| --program-transform-n=* | --program-transform-=* \ |
| 1316 |
| --program-transform=* | --program-transfor=* \ |
| 1317 |
| --program-transfo=* | --program-transf=* \ |
| 1318 |
| --program-trans=* | --program-tran=* \ |
| 1319 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1320 |
program_transform_name=$ac_optarg ;; |
| 1321 |
|
| 1322 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1323 |
ac_prev=pdfdir ;; |
| 1324 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1325 |
pdfdir=$ac_optarg ;; |
| 1326 |
|
| 1327 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1328 |
ac_prev=psdir ;; |
| 1329 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1330 |
psdir=$ac_optarg ;; |
| 1331 |
|
| 1332 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1333 |
| -silent | --silent | --silen | --sile | --sil) |
| 1334 |
silent=yes ;; |
| 1335 |
|
| 1336 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1337 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1338 |
| --run | --ru | --r) |
| 1339 |
ac_prev=runstatedir ;; |
| 1340 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1341 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1342 |
| --run=* | --ru=* | --r=*) |
| 1343 |
runstatedir=$ac_optarg ;; |
| 1344 |
|
| 1345 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1346 |
ac_prev=sbindir ;; |
| 1347 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1348 |
| --sbi=* | --sb=*) |
| 1349 |
sbindir=$ac_optarg ;; |
| 1350 |
|
| 1351 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1352 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1353 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1354 |
| --sha | --sh) |
| 1355 |
ac_prev=sharedstatedir ;; |
| 1356 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1357 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1358 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1359 |
| --sha=* | --sh=*) |
| 1360 |
sharedstatedir=$ac_optarg ;; |
| 1361 |
|
| 1362 |
-site | --site | --sit) |
| 1363 |
ac_prev=site ;; |
| 1364 |
-site=* | --site=* | --sit=*) |
| 1365 |
site=$ac_optarg ;; |
| 1366 |
|
| 1367 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1368 |
ac_prev=srcdir ;; |
| 1369 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1370 |
srcdir=$ac_optarg ;; |
| 1371 |
|
| 1372 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1373 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1374 |
ac_prev=sysconfdir ;; |
| 1375 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1376 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1377 |
sysconfdir=$ac_optarg ;; |
| 1378 |
|
| 1379 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1380 |
ac_prev=target_alias ;; |
| 1381 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1382 |
target_alias=$ac_optarg ;; |
| 1383 |
|
| 1384 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1385 |
verbose=yes ;; |
| 1386 |
|
| 1387 |
-version | --version | --versio | --versi | --vers | -V) |
| 1388 |
ac_init_version=: ;; |
| 1389 |
|
| 1390 |
-with-* | --with-*) |
| 1391 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1392 |
# Reject names that are not valid shell variable names. |
| 1393 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1394 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1395 |
ac_useropt_orig=$ac_useropt |
| 1396 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1397 |
case $ac_user_opts in |
| 1398 |
*" |
| 1399 |
"with_$ac_useropt" |
| 1400 |
"*) ;; |
| 1401 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1402 |
ac_unrecognized_sep=', ';; |
| 1403 |
esac |
| 1404 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1405 |
|
| 1406 |
-without-* | --without-*) |
| 1407 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1408 |
# Reject names that are not valid shell variable names. |
| 1409 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1410 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1411 |
ac_useropt_orig=$ac_useropt |
| 1412 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1413 |
case $ac_user_opts in |
| 1414 |
*" |
| 1415 |
"with_$ac_useropt" |
| 1416 |
"*) ;; |
| 1417 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1418 |
ac_unrecognized_sep=', ';; |
| 1419 |
esac |
| 1420 |
eval with_$ac_useropt=no ;; |
| 1421 |
|
| 1422 |
--x) |
| 1423 |
# Obsolete; use --with-x. |
| 1424 |
with_x=yes ;; |
| 1425 |
|
| 1426 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1427 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1428 |
ac_prev=x_includes ;; |
| 1429 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1430 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1431 |
x_includes=$ac_optarg ;; |
| 1432 |
|
| 1433 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1434 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1435 |
ac_prev=x_libraries ;; |
| 1436 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1437 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1438 |
x_libraries=$ac_optarg ;; |
| 1439 |
|
| 1440 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1441 |
Try \`$0 --help' for more information" |
| 1442 |
;; |
| 1443 |
|
| 1444 |
*=*) |
| 1445 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1446 |
# Reject names that are not valid shell variable names. |
| 1447 |
case $ac_envvar in #( |
| 1448 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1449 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1450 |
esac |
| 1451 |
eval $ac_envvar=\$ac_optarg |
| 1452 |
export $ac_envvar ;; |
| 1453 |
|
| 1454 |
*) |
| 1455 |
# FIXME: should be removed in autoconf 3.0. |
| 1456 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1457 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1458 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1459 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1460 |
;; |
| 1461 |
|
| 1462 |
esac |
| 1463 |
done |
| 1464 |
|
| 1465 |
if test -n "$ac_prev"; then |
| 1466 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1467 |
as_fn_error $? "missing argument to $ac_option" |
| 1468 |
fi |
| 1469 |
|
| 1470 |
if test -n "$ac_unrecognized_opts"; then |
| 1471 |
case $enable_option_checking in |
| 1472 |
no) ;; |
| 1473 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1474 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1475 |
esac |
| 1476 |
fi |
| 1477 |
|
| 1478 |
# Check all directory arguments for consistency. |
| 1479 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1480 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1481 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1482 |
libdir localedir mandir runstatedir |
| 1483 |
do |
| 1484 |
eval ac_val=\$$ac_var |
| 1485 |
# Remove trailing slashes. |
| 1486 |
case $ac_val in |
| 1487 |
*/ ) |
| 1488 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1489 |
eval $ac_var=\$ac_val;; |
| 1490 |
esac |
| 1491 |
# Be sure to have absolute directory names. |
| 1492 |
case $ac_val in |
| 1493 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1494 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1495 |
esac |
| 1496 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1497 |
done |
| 1498 |
|
| 1499 |
# There might be people who depend on the old broken behavior: `$host' |
| 1500 |
# used to hold the argument of --host etc. |
| 1501 |
# FIXME: To remove some day. |
| 1502 |
build=$build_alias |
| 1503 |
host=$host_alias |
| 1504 |
target=$target_alias |
| 1505 |
|
| 1506 |
# FIXME: To remove some day. |
| 1507 |
if test "x$host_alias" != x; then |
| 1508 |
if test "x$build_alias" = x; then |
| 1509 |
cross_compiling=maybe |
| 1510 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1511 |
cross_compiling=yes |
| 1512 |
fi |
| 1513 |
fi |
| 1514 |
|
| 1515 |
ac_tool_prefix= |
| 1516 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1517 |
|
| 1518 |
test "$silent" = yes && exec 6>/dev/null |
| 1519 |
|
| 1520 |
|
| 1521 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1522 |
ac_ls_di=`ls -di .` && |
| 1523 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1524 |
as_fn_error $? "working directory cannot be determined" |
| 1525 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1526 |
as_fn_error $? "pwd does not report name of working directory" |
| 1527 |
|
| 1528 |
|
| 1529 |
# Find the source files, if location was not specified. |
| 1530 |
if test -z "$srcdir"; then |
| 1531 |
ac_srcdir_defaulted=yes |
| 1532 |
# Try the directory containing this script, then the parent directory. |
| 1533 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1534 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1535 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1536 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1537 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1538 |
printf "%s\n" X"$as_myself" | |
| 1539 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1540 |
s//\1/ |
| 1541 |
q |
| 1542 |
} |
| 1543 |
/^X\(\/\/\)[^/].*/{ |
| 1544 |
s//\1/ |
| 1545 |
q |
| 1546 |
} |
| 1547 |
/^X\(\/\/\)$/{ |
| 1548 |
s//\1/ |
| 1549 |
q |
| 1550 |
} |
| 1551 |
/^X\(\/\).*/{ |
| 1552 |
s//\1/ |
| 1553 |
q |
| 1554 |
} |
| 1555 |
s/.*/./; q'` |
| 1556 |
srcdir=$ac_confdir |
| 1557 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1558 |
srcdir=.. |
| 1559 |
fi |
| 1560 |
else |
| 1561 |
ac_srcdir_defaulted=no |
| 1562 |
fi |
| 1563 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1564 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1565 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1566 |
fi |
| 1567 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1568 |
ac_abs_confdir=`( |
| 1569 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1570 |
pwd)` |
| 1571 |
# When building in place, set srcdir=. |
| 1572 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1573 |
srcdir=. |
| 1574 |
fi |
| 1575 |
# Remove unnecessary trailing slashes from srcdir. |
| 1576 |
# Double slashes in file names in object file debugging info |
| 1577 |
# mess up M-x gdb in Emacs. |
| 1578 |
case $srcdir in |
| 1579 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1580 |
esac |
| 1581 |
for ac_var in $ac_precious_vars; do |
| 1582 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1583 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1584 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1585 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1586 |
done |
| 1587 |
|
| 1588 |
# |
| 1589 |
# Report the --help message. |
| 1590 |
# |
| 1591 |
if test "$ac_init_help" = "long"; then |
| 1592 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1593 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1594 |
cat <<_ACEOF |
| 1595 |
\`configure' configures this package to adapt to many kinds of systems. |
| 1596 |
|
| 1597 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1598 |
|
| 1599 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1600 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1601 |
|
| 1602 |
Defaults for the options are specified in brackets. |
| 1603 |
|
| 1604 |
Configuration: |
| 1605 |
-h, --help display this help and exit |
| 1606 |
--help=short display options specific to this package |
| 1607 |
--help=recursive display the short help of all the included packages |
| 1608 |
-V, --version display version information and exit |
| 1609 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1610 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1611 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1612 |
-n, --no-create do not create output files |
| 1613 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1614 |
|
| 1615 |
Installation directories: |
| 1616 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1617 |
[$ac_default_prefix] |
| 1618 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1619 |
[PREFIX] |
| 1620 |
|
| 1621 |
By default, \`make install' will install all the files in |
| 1622 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1623 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1624 |
for instance \`--prefix=\$HOME'. |
| 1625 |
|
| 1626 |
For better control, use the options below. |
| 1627 |
|
| 1628 |
Fine tuning of the installation directories: |
| 1629 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1630 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1631 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1632 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1633 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1634 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1635 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1636 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1637 |
--includedir=DIR C header files [PREFIX/include] |
| 1638 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1639 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1640 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1641 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1642 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1643 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1644 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1645 |
--htmldir=DIR html documentation [DOCDIR] |
| 1646 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1647 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1648 |
--psdir=DIR ps documentation [DOCDIR] |
| 1649 |
_ACEOF |
| 1650 |
|
| 1651 |
cat <<\_ACEOF |
| 1652 |
|
| 1653 |
X features: |
| 1654 |
--x-includes=DIR X include files are in DIR |
| 1655 |
--x-libraries=DIR X library files are in DIR |
| 1656 |
|
| 1657 |
System types: |
| 1658 |
--build=BUILD configure for building on BUILD [guessed] |
| 1659 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1660 |
_ACEOF |
| 1661 |
fi |
| 1662 |
|
| 1663 |
if test -n "$ac_init_help"; then |
| 1664 |
|
| 1665 |
cat <<\_ACEOF |
| 1666 |
|
| 1667 |
Optional Features: |
| 1668 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1669 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1670 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1671 |
|
| 1672 |
--disable-contrib Do not include contributed drivers |
| 1673 |
--disable-sse2 Do not use sse2 instrinsics |
| 1674 |
--disable-neon Do not use neon instrinsics |
| 1675 |
--disable-threading disable support for multithreaded rendering |
| 1676 |
--disable-fontconfig Do not use fontconfig to list system fonts |
| 1677 |
--disable-dbus Do not use dbus to communicate with external |
| 1678 |
services |
| 1679 |
--disable-cups Do not include CUPS support |
| 1680 |
--disable-openjpeg Do not use OpenJPEG for JPX decoding |
| 1681 |
--disable-gtk Do not build the gtk loader |
| 1682 |
--disable-compile-inits Do not compile in initialization files |
| 1683 |
--disable-hidden-visibility |
| 1684 |
expose all shared library symbols even those which |
| 1685 |
are not part of its public API |
| 1686 |
--enable-dynamic Enable dynamically loaded drivers (note: this option |
| 1687 |
is deprecated because it is incompatible with hidden |
| 1688 |
symbols - use --disable-hidden-visibility |
| 1689 |
--disable-bswap32 Do not use bswap32 instrinsic |
| 1690 |
--disable-byteswap-h Do not use byteswap.h functions |
| 1691 |
--enable-mkromfs-quiet Do not emit mkromfs verbose output |
| 1692 |
|
| 1693 |
Optional Packages: |
| 1694 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1695 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1696 |
--with-arch_h=<arch.h to use> |
| 1697 |
Use a custom arch.h (must be an absolute path) |
| 1698 |
--with-sanitizer=[address/memory] |
| 1699 |
Sanitizer for 'sanitize' target (defaults to |
| 1700 |
'address') |
| 1701 |
--with-make=["make" program name] |
| 1702 |
If you use a version of make not called "make" |
| 1703 |
|
| 1704 |
--without-tesseract do not try to use the Tesseract library for OCR |
| 1705 |
--with-libiconv=[no/gnu/native] |
| 1706 |
use the libiconv library |
| 1707 |
--without-libidn Do not use libidn to support Unicode passwords |
| 1708 |
--without-libpaper disable libpaper support |
| 1709 |
--with-ufst=UFST_ROOT_DIR |
| 1710 |
Use UFST |
| 1711 |
--without-local-zlib do not check for local zlib sources (has no effect |
| 1712 |
on AUX toolchain when cross-building) |
| 1713 |
--without-local-brotli do not check for local brotli sources (has no effect |
| 1714 |
on AUX toolchain when cross-building) |
| 1715 |
--without-libtiff disable use of libtiff |
| 1716 |
--with-system-libtiff Force using the systems libtiff |
| 1717 |
--without-pdftoraster Do not include CUPS' pdftoraster filter |
| 1718 |
--with-local-cups Force using the GS supplied cups code - only useful |
| 1719 |
for debugging |
| 1720 |
--with-cups-serverbin override the "cups-config --serverbin" path |
| 1721 |
--with-cups-serverroot override the "cups-config --serverroot" path |
| 1722 |
--with-cups-datadir override the "cups-config --datadir" path |
| 1723 |
--without-ijs disable IJS driver support |
| 1724 |
--without-jbig2dec disable JBIG2 decode support |
| 1725 |
--without-urf do not try to include URF support |
| 1726 |
--without-so do not try to include SmartOffice support |
| 1727 |
--without-cal do not try to use the CAL library for acceleration |
| 1728 |
--with-x use the X Window System |
| 1729 |
--with-gs=NAME name of the Ghostscript executible [[gs]] |
| 1730 |
--with-pcl=NAME name of the GhostPCL executible (if the source is |
| 1731 |
available, ignored otherwise) [[gpcl6]] |
| 1732 |
--with-xps=NAME name of the GhostXPS executible (if the source is |
| 1733 |
available, ignored otherwise) [[gxps]] |
| 1734 |
--with-pdf=NAME name of the Ghostpdf executible (if the source is |
| 1735 |
available, ignored otherwise) [[gpdf]] |
| 1736 |
--with-gpdl=NAME name of the GhostPDL executible (if the source is |
| 1737 |
available, ignored otherwise) [[gpdl]] |
| 1738 |
--with-drivers=LIST Drivers to support, separated by commas. |
| 1739 |
Either list the drivers or use aliases: |
| 1740 |
ALL = all drivers |
| 1741 |
FILES = all file format drivers |
| 1742 |
PRINTERS = all printer drivers |
| 1743 |
Printers: |
| 1744 |
APPLE = all Apple printers |
| 1745 |
BROTHER = all Brother printers |
| 1746 |
CANON = all Canon printers |
| 1747 |
EPSON = all Epson printers |
| 1748 |
HP = all HP printers |
| 1749 |
IBM = all IBM printers |
| 1750 |
JAPAN = older japanese printers |
| 1751 |
LEXMARK = all Lexmark printers |
| 1752 |
OKI = all OKI printers |
| 1753 |
PCLXL = all PCL XL/6 printers |
| 1754 |
File formats: |
| 1755 |
BMP = Output to bmp files |
| 1756 |
FAX = Output to fax files |
| 1757 |
JPEG = Output to JPEG files |
| 1758 |
PBM = Output to PBM/PNM |
| 1759 |
PCX = Output to PCX |
| 1760 |
PNG = Output to PNG |
| 1761 |
PS = Output to PostScript/PDF |
| 1762 |
TIFF = Output to TIFF |
| 1763 |
URF = Output to URF |
| 1764 |
You can mix both variants, e.g. |
| 1765 |
--with-drivers=HP,stcolor would build HP drivers and |
| 1766 |
the Epson stcolor driver. |
| 1767 |
Aliases must be uppercase (a 3rd party driver might |
| 1768 |
have the same name). |
| 1769 |
Default: ALL |
| 1770 |
--with-driversfile=FILE Drivers to support from file, separated by newlines. |
| 1771 |
--with-extract-dir=EXTRACT_DIR |
| 1772 |
Build with the specified Extract library. By default |
| 1773 |
we build with Extract automatically if |
| 1774 |
<ghostpdl-directory>/extract exists. |
| 1775 |
--with-fontpath set font search path for gs |
| 1776 |
--with-tessdata set tesseract data search path |
| 1777 |
--with-memory-alignment Allows setting minimum alignment for the memory |
| 1778 |
manager (4 or 8 bytes) |
| 1779 |
--without-gnu-make disable GNU make features |
| 1780 |
--with-exe-ext=EXT set the file name executable extension (must include |
| 1781 |
any separator e.g. the period in ".exe") |
| 1782 |
--with-aux-exe-ext=EXT set the file name executable extension for auxiliary |
| 1783 |
binaries (must include any separator e.g. the period |
| 1784 |
in ".exe") |
| 1785 |
--without-versioned-path |
| 1786 |
Do not use file paths containing the version of GS. |
| 1787 |
|
| 1788 |
WARNING: This option is dangerous & unsupported, and |
| 1789 |
you take full responsibility for using it! |
| 1790 |
|
| 1791 |
Some influential environment variables: |
| 1792 |
CC C compiler command |
| 1793 |
CFLAGS C compiler flags |
| 1794 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1795 |
nonstandard directory <lib dir> |
| 1796 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1797 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1798 |
you have headers in a nonstandard directory <include dir> |
| 1799 |
CPP C preprocessor |
| 1800 |
CXX C++ compiler command |
| 1801 |
CXXFLAGS C++ compiler flags |
| 1802 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1803 |
|
| 1804 |
Use these variables to override the choices made by `configure' or to help |
| 1805 |
it to find libraries and programs with nonstandard names/locations. |
| 1806 |
|
| 1807 |
Report bugs to the package provider. |
| 1808 |
_ACEOF |
| 1809 |
ac_status=$? |
| 1810 |
fi |
| 1811 |
|
| 1812 |
if test "$ac_init_help" = "recursive"; then |
| 1813 |
# If there are subdirs, report their specific --help. |
| 1814 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1815 |
test -d "$ac_dir" || |
| 1816 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1817 |
continue |
| 1818 |
ac_builddir=. |
| 1819 |
|
| 1820 |
case "$ac_dir" in |
| 1821 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1822 |
*) |
| 1823 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1824 |
# A ".." for each directory in $ac_dir_suffix. |
| 1825 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1826 |
case $ac_top_builddir_sub in |
| 1827 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1828 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1829 |
esac ;; |
| 1830 |
esac |
| 1831 |
ac_abs_top_builddir=$ac_pwd |
| 1832 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1833 |
# for backward compatibility: |
| 1834 |
ac_top_builddir=$ac_top_build_prefix |
| 1835 |
|
| 1836 |
case $srcdir in |
| 1837 |
.) # We are building in place. |
| 1838 |
ac_srcdir=. |
| 1839 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1840 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1841 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1842 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1843 |
ac_top_srcdir=$srcdir |
| 1844 |
ac_abs_top_srcdir=$srcdir ;; |
| 1845 |
*) # Relative name. |
| 1846 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1847 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1848 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1849 |
esac |
| 1850 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1851 |
|
| 1852 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1853 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1854 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1855 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1856 |
echo && |
| 1857 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1858 |
elif test -f "$ac_srcdir/configure"; then |
| 1859 |
echo && |
| 1860 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1861 |
else |
| 1862 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1863 |
fi || ac_status=$? |
| 1864 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1865 |
done |
| 1866 |
fi |
| 1867 |
|
| 1868 |
test -n "$ac_init_help" && exit $ac_status |
| 1869 |
if $ac_init_version; then |
| 1870 |
cat <<\_ACEOF |
| 1871 |
configure |
| 1872 |
generated by GNU Autoconf 2.71 |
| 1873 |
|
| 1874 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 1875 |
This configure script is free software; the Free Software Foundation |
| 1876 |
gives unlimited permission to copy, distribute and modify it. |
| 1877 |
_ACEOF |
| 1878 |
exit |
| 1879 |
fi |
| 1880 |
|
| 1881 |
## ------------------------ ## |
| 1882 |
## Autoconf initialization. ## |
| 1883 |
## ------------------------ ## |
| 1884 |
|
| 1885 |
# ac_fn_c_try_compile LINENO |
| 1886 |
# -------------------------- |
| 1887 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1888 |
ac_fn_c_try_compile () |
| 1889 |
{ |
| 1890 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1891 |
rm -f conftest.$ac_objext conftest.beam |
| 1892 |
if { { ac_try="$ac_compile" |
| 1893 |
case "(($ac_try" in |
| 1894 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1895 |
*) ac_try_echo=$ac_try;; |
| 1896 |
esac |
| 1897 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1898 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1899 |
(eval "$ac_compile") 2>conftest.err |
| 1900 |
ac_status=$? |
| 1901 |
if test -s conftest.err; then |
| 1902 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1903 |
cat conftest.er1 >&5 |
| 1904 |
mv -f conftest.er1 conftest.err |
| 1905 |
fi |
| 1906 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1907 |
test $ac_status = 0; } && { |
| 1908 |
test -z "$ac_c_werror_flag" || |
| 1909 |
test ! -s conftest.err |
| 1910 |
} && test -s conftest.$ac_objext |
| 1911 |
then : |
| 1912 |
ac_retval=0 |
| 1913 |
else $as_nop |
| 1914 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1915 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1916 |
|
| 1917 |
ac_retval=1 |
| 1918 |
fi |
| 1919 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1920 |
as_fn_set_status $ac_retval |
| 1921 |
|
| 1922 |
} # ac_fn_c_try_compile |
| 1923 |
|
| 1924 |
# ac_fn_c_try_cpp LINENO |
| 1925 |
# ---------------------- |
| 1926 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1927 |
ac_fn_c_try_cpp () |
| 1928 |
{ |
| 1929 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1930 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1931 |
case "(($ac_try" in |
| 1932 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1933 |
*) ac_try_echo=$ac_try;; |
| 1934 |
esac |
| 1935 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1936 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1937 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1938 |
ac_status=$? |
| 1939 |
if test -s conftest.err; then |
| 1940 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1941 |
cat conftest.er1 >&5 |
| 1942 |
mv -f conftest.er1 conftest.err |
| 1943 |
fi |
| 1944 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1945 |
test $ac_status = 0; } > conftest.i && { |
| 1946 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1947 |
test ! -s conftest.err |
| 1948 |
} |
| 1949 |
then : |
| 1950 |
ac_retval=0 |
| 1951 |
else $as_nop |
| 1952 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1953 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1954 |
|
| 1955 |
ac_retval=1 |
| 1956 |
fi |
| 1957 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1958 |
as_fn_set_status $ac_retval |
| 1959 |
|
| 1960 |
} # ac_fn_c_try_cpp |
| 1961 |
|
| 1962 |
# ac_fn_c_try_link LINENO |
| 1963 |
# ----------------------- |
| 1964 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1965 |
ac_fn_c_try_link () |
| 1966 |
{ |
| 1967 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1968 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1969 |
if { { ac_try="$ac_link" |
| 1970 |
case "(($ac_try" in |
| 1971 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1972 |
*) ac_try_echo=$ac_try;; |
| 1973 |
esac |
| 1974 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1975 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1976 |
(eval "$ac_link") 2>conftest.err |
| 1977 |
ac_status=$? |
| 1978 |
if test -s conftest.err; then |
| 1979 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1980 |
cat conftest.er1 >&5 |
| 1981 |
mv -f conftest.er1 conftest.err |
| 1982 |
fi |
| 1983 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1984 |
test $ac_status = 0; } && { |
| 1985 |
test -z "$ac_c_werror_flag" || |
| 1986 |
test ! -s conftest.err |
| 1987 |
} && test -s conftest$ac_exeext && { |
| 1988 |
test "$cross_compiling" = yes || |
| 1989 |
test -x conftest$ac_exeext |
| 1990 |
} |
| 1991 |
then : |
| 1992 |
ac_retval=0 |
| 1993 |
else $as_nop |
| 1994 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1995 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1996 |
|
| 1997 |
ac_retval=1 |
| 1998 |
fi |
| 1999 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2000 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2001 |
# interfere with the next link command; also delete a directory that is |
| 2002 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2003 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2004 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2005 |
as_fn_set_status $ac_retval |
| 2006 |
|
| 2007 |
} # ac_fn_c_try_link |
| 2008 |
|
| 2009 |
# ac_fn_c_try_run LINENO |
| 2010 |
# ---------------------- |
| 2011 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 2012 |
# executables *can* be run. |
| 2013 |
ac_fn_c_try_run () |
| 2014 |
{ |
| 2015 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2016 |
if { { ac_try="$ac_link" |
| 2017 |
case "(($ac_try" in |
| 2018 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2019 |
*) ac_try_echo=$ac_try;; |
| 2020 |
esac |
| 2021 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2022 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2023 |
(eval "$ac_link") 2>&5 |
| 2024 |
ac_status=$? |
| 2025 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2026 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2027 |
{ { case "(($ac_try" in |
| 2028 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2029 |
*) ac_try_echo=$ac_try;; |
| 2030 |
esac |
| 2031 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2032 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2033 |
(eval "$ac_try") 2>&5 |
| 2034 |
ac_status=$? |
| 2035 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2036 |
test $ac_status = 0; }; } |
| 2037 |
then : |
| 2038 |
ac_retval=0 |
| 2039 |
else $as_nop |
| 2040 |
printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 2041 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2042 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2043 |
|
| 2044 |
ac_retval=$ac_status |
| 2045 |
fi |
| 2046 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2047 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2048 |
as_fn_set_status $ac_retval |
| 2049 |
|
| 2050 |
} # ac_fn_c_try_run |
| 2051 |
|
| 2052 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2053 |
# ------------------------------------------------------- |
| 2054 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 2055 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 2056 |
ac_fn_c_check_header_compile () |
| 2057 |
{ |
| 2058 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2060 |
printf %s "checking for $2... " >&6; } |
| 2061 |
if eval test \${$3+y} |
| 2062 |
then : |
| 2063 |
printf %s "(cached) " >&6 |
| 2064 |
else $as_nop |
| 2065 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2066 |
/* end confdefs.h. */ |
| 2067 |
$4 |
| 2068 |
#include <$2> |
| 2069 |
_ACEOF |
| 2070 |
if ac_fn_c_try_compile "$LINENO" |
| 2071 |
then : |
| 2072 |
eval "$3=yes" |
| 2073 |
else $as_nop |
| 2074 |
eval "$3=no" |
| 2075 |
fi |
| 2076 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2077 |
fi |
| 2078 |
eval ac_res=\$$3 |
| 2079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2080 |
printf "%s\n" "$ac_res" >&6; } |
| 2081 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2082 |
|
| 2083 |
} # ac_fn_c_check_header_compile |
| 2084 |
|
| 2085 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2086 |
# ------------------------------------------- |
| 2087 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2088 |
# variable VAR accordingly. |
| 2089 |
ac_fn_c_check_type () |
| 2090 |
{ |
| 2091 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2092 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2093 |
printf %s "checking for $2... " >&6; } |
| 2094 |
if eval test \${$3+y} |
| 2095 |
then : |
| 2096 |
printf %s "(cached) " >&6 |
| 2097 |
else $as_nop |
| 2098 |
eval "$3=no" |
| 2099 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2100 |
/* end confdefs.h. */ |
| 2101 |
$4 |
| 2102 |
int |
| 2103 |
main (void) |
| 2104 |
{ |
| 2105 |
if (sizeof ($2)) |
| 2106 |
return 0; |
| 2107 |
; |
| 2108 |
return 0; |
| 2109 |
} |
| 2110 |
_ACEOF |
| 2111 |
if ac_fn_c_try_compile "$LINENO" |
| 2112 |
then : |
| 2113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2114 |
/* end confdefs.h. */ |
| 2115 |
$4 |
| 2116 |
int |
| 2117 |
main (void) |
| 2118 |
{ |
| 2119 |
if (sizeof (($2))) |
| 2120 |
return 0; |
| 2121 |
; |
| 2122 |
return 0; |
| 2123 |
} |
| 2124 |
_ACEOF |
| 2125 |
if ac_fn_c_try_compile "$LINENO" |
| 2126 |
then : |
| 2127 |
|
| 2128 |
else $as_nop |
| 2129 |
eval "$3=yes" |
| 2130 |
fi |
| 2131 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2132 |
fi |
| 2133 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2134 |
fi |
| 2135 |
eval ac_res=\$$3 |
| 2136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2137 |
printf "%s\n" "$ac_res" >&6; } |
| 2138 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2139 |
|
| 2140 |
} # ac_fn_c_check_type |
| 2141 |
|
| 2142 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2143 |
# ---------------------------------------------------- |
| 2144 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2145 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2146 |
ac_fn_c_check_member () |
| 2147 |
{ |
| 2148 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2149 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2150 |
printf %s "checking for $2.$3... " >&6; } |
| 2151 |
if eval test \${$4+y} |
| 2152 |
then : |
| 2153 |
printf %s "(cached) " >&6 |
| 2154 |
else $as_nop |
| 2155 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2156 |
/* end confdefs.h. */ |
| 2157 |
$5 |
| 2158 |
int |
| 2159 |
main (void) |
| 2160 |
{ |
| 2161 |
static $2 ac_aggr; |
| 2162 |
if (ac_aggr.$3) |
| 2163 |
return 0; |
| 2164 |
; |
| 2165 |
return 0; |
| 2166 |
} |
| 2167 |
_ACEOF |
| 2168 |
if ac_fn_c_try_compile "$LINENO" |
| 2169 |
then : |
| 2170 |
eval "$4=yes" |
| 2171 |
else $as_nop |
| 2172 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2173 |
/* end confdefs.h. */ |
| 2174 |
$5 |
| 2175 |
int |
| 2176 |
main (void) |
| 2177 |
{ |
| 2178 |
static $2 ac_aggr; |
| 2179 |
if (sizeof ac_aggr.$3) |
| 2180 |
return 0; |
| 2181 |
; |
| 2182 |
return 0; |
| 2183 |
} |
| 2184 |
_ACEOF |
| 2185 |
if ac_fn_c_try_compile "$LINENO" |
| 2186 |
then : |
| 2187 |
eval "$4=yes" |
| 2188 |
else $as_nop |
| 2189 |
eval "$4=no" |
| 2190 |
fi |
| 2191 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2192 |
fi |
| 2193 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2194 |
fi |
| 2195 |
eval ac_res=\$$4 |
| 2196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2197 |
printf "%s\n" "$ac_res" >&6; } |
| 2198 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2199 |
|
| 2200 |
} # ac_fn_c_check_member |
| 2201 |
|
| 2202 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2203 |
# -------------------------------------------- |
| 2204 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2205 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2206 |
# computed |
| 2207 |
ac_fn_c_compute_int () |
| 2208 |
{ |
| 2209 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2210 |
if test "$cross_compiling" = yes; then |
| 2211 |
# Depending upon the size, compute the lo and hi bounds. |
| 2212 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2213 |
/* end confdefs.h. */ |
| 2214 |
$4 |
| 2215 |
int |
| 2216 |
main (void) |
| 2217 |
{ |
| 2218 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2219 |
test_array [0] = 0; |
| 2220 |
return test_array [0]; |
| 2221 |
|
| 2222 |
; |
| 2223 |
return 0; |
| 2224 |
} |
| 2225 |
_ACEOF |
| 2226 |
if ac_fn_c_try_compile "$LINENO" |
| 2227 |
then : |
| 2228 |
ac_lo=0 ac_mid=0 |
| 2229 |
while :; do |
| 2230 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2231 |
/* end confdefs.h. */ |
| 2232 |
$4 |
| 2233 |
int |
| 2234 |
main (void) |
| 2235 |
{ |
| 2236 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2237 |
test_array [0] = 0; |
| 2238 |
return test_array [0]; |
| 2239 |
|
| 2240 |
; |
| 2241 |
return 0; |
| 2242 |
} |
| 2243 |
_ACEOF |
| 2244 |
if ac_fn_c_try_compile "$LINENO" |
| 2245 |
then : |
| 2246 |
ac_hi=$ac_mid; break |
| 2247 |
else $as_nop |
| 2248 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2249 |
if test $ac_lo -le $ac_mid; then |
| 2250 |
ac_lo= ac_hi= |
| 2251 |
break |
| 2252 |
fi |
| 2253 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2254 |
fi |
| 2255 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2256 |
done |
| 2257 |
else $as_nop |
| 2258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2259 |
/* end confdefs.h. */ |
| 2260 |
$4 |
| 2261 |
int |
| 2262 |
main (void) |
| 2263 |
{ |
| 2264 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2265 |
test_array [0] = 0; |
| 2266 |
return test_array [0]; |
| 2267 |
|
| 2268 |
; |
| 2269 |
return 0; |
| 2270 |
} |
| 2271 |
_ACEOF |
| 2272 |
if ac_fn_c_try_compile "$LINENO" |
| 2273 |
then : |
| 2274 |
ac_hi=-1 ac_mid=-1 |
| 2275 |
while :; do |
| 2276 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2277 |
/* end confdefs.h. */ |
| 2278 |
$4 |
| 2279 |
int |
| 2280 |
main (void) |
| 2281 |
{ |
| 2282 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2283 |
test_array [0] = 0; |
| 2284 |
return test_array [0]; |
| 2285 |
|
| 2286 |
; |
| 2287 |
return 0; |
| 2288 |
} |
| 2289 |
_ACEOF |
| 2290 |
if ac_fn_c_try_compile "$LINENO" |
| 2291 |
then : |
| 2292 |
ac_lo=$ac_mid; break |
| 2293 |
else $as_nop |
| 2294 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2295 |
if test $ac_mid -le $ac_hi; then |
| 2296 |
ac_lo= ac_hi= |
| 2297 |
break |
| 2298 |
fi |
| 2299 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2300 |
fi |
| 2301 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2302 |
done |
| 2303 |
else $as_nop |
| 2304 |
ac_lo= ac_hi= |
| 2305 |
fi |
| 2306 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2307 |
fi |
| 2308 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2309 |
# Binary search between lo and hi bounds. |
| 2310 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2311 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2312 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2313 |
/* end confdefs.h. */ |
| 2314 |
$4 |
| 2315 |
int |
| 2316 |
main (void) |
| 2317 |
{ |
| 2318 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2319 |
test_array [0] = 0; |
| 2320 |
return test_array [0]; |
| 2321 |
|
| 2322 |
; |
| 2323 |
return 0; |
| 2324 |
} |
| 2325 |
_ACEOF |
| 2326 |
if ac_fn_c_try_compile "$LINENO" |
| 2327 |
then : |
| 2328 |
ac_hi=$ac_mid |
| 2329 |
else $as_nop |
| 2330 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2331 |
fi |
| 2332 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2333 |
done |
| 2334 |
case $ac_lo in #(( |
| 2335 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2336 |
'') ac_retval=1 ;; |
| 2337 |
esac |
| 2338 |
else |
| 2339 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2340 |
/* end confdefs.h. */ |
| 2341 |
$4 |
| 2342 |
static long int longval (void) { return $2; } |
| 2343 |
static unsigned long int ulongval (void) { return $2; } |
| 2344 |
#include <stdio.h> |
| 2345 |
#include <stdlib.h> |
| 2346 |
int |
| 2347 |
main (void) |
| 2348 |
{ |
| 2349 |
|
| 2350 |
FILE *f = fopen ("conftest.val", "w"); |
| 2351 |
if (! f) |
| 2352 |
return 1; |
| 2353 |
if (($2) < 0) |
| 2354 |
{ |
| 2355 |
long int i = longval (); |
| 2356 |
if (i != ($2)) |
| 2357 |
return 1; |
| 2358 |
fprintf (f, "%ld", i); |
| 2359 |
} |
| 2360 |
else |
| 2361 |
{ |
| 2362 |
unsigned long int i = ulongval (); |
| 2363 |
if (i != ($2)) |
| 2364 |
return 1; |
| 2365 |
fprintf (f, "%lu", i); |
| 2366 |
} |
| 2367 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2368 |
on some platforms. */ |
| 2369 |
return ferror (f) || fclose (f) != 0; |
| 2370 |
|
| 2371 |
; |
| 2372 |
return 0; |
| 2373 |
} |
| 2374 |
_ACEOF |
| 2375 |
if ac_fn_c_try_run "$LINENO" |
| 2376 |
then : |
| 2377 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2378 |
else $as_nop |
| 2379 |
ac_retval=1 |
| 2380 |
fi |
| 2381 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2382 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2383 |
rm -f conftest.val |
| 2384 |
|
| 2385 |
fi |
| 2386 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2387 |
as_fn_set_status $ac_retval |
| 2388 |
|
| 2389 |
} # ac_fn_c_compute_int |
| 2390 |
|
| 2391 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 2392 |
# ---------------------------------- |
| 2393 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2394 |
ac_fn_c_check_func () |
| 2395 |
{ |
| 2396 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2398 |
printf %s "checking for $2... " >&6; } |
| 2399 |
if eval test \${$3+y} |
| 2400 |
then : |
| 2401 |
printf %s "(cached) " >&6 |
| 2402 |
else $as_nop |
| 2403 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2404 |
/* end confdefs.h. */ |
| 2405 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2406 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2407 |
#define $2 innocuous_$2 |
| 2408 |
|
| 2409 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2410 |
which can conflict with char $2 (); below. */ |
| 2411 |
|
| 2412 |
#include <limits.h> |
| 2413 |
#undef $2 |
| 2414 |
|
| 2415 |
/* Override any GCC internal prototype to avoid an error. |
| 2416 |
Use char because int might match the return type of a GCC |
| 2417 |
builtin and then its argument prototype would still apply. */ |
| 2418 |
#ifdef __cplusplus |
| 2419 |
extern "C" |
| 2420 |
#endif |
| 2421 |
char $2 (); |
| 2422 |
/* The GNU C library defines this for functions which it implements |
| 2423 |
to always fail with ENOSYS. Some functions are actually named |
| 2424 |
something starting with __ and the normal name is an alias. */ |
| 2425 |
#if defined __stub_$2 || defined __stub___$2 |
| 2426 |
choke me |
| 2427 |
#endif |
| 2428 |
|
| 2429 |
int |
| 2430 |
main (void) |
| 2431 |
{ |
| 2432 |
return $2 (); |
| 2433 |
; |
| 2434 |
return 0; |
| 2435 |
} |
| 2436 |
_ACEOF |
| 2437 |
if ac_fn_c_try_link "$LINENO" |
| 2438 |
then : |
| 2439 |
eval "$3=yes" |
| 2440 |
else $as_nop |
| 2441 |
eval "$3=no" |
| 2442 |
fi |
| 2443 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 2444 |
conftest$ac_exeext conftest.$ac_ext |
| 2445 |
fi |
| 2446 |
eval ac_res=\$$3 |
| 2447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2448 |
printf "%s\n" "$ac_res" >&6; } |
| 2449 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2450 |
|
| 2451 |
} # ac_fn_c_check_func |
| 2452 |
|
| 2453 |
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2454 |
# ------------------------------------------------------------------ |
| 2455 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2456 |
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2457 |
ac_fn_check_decl () |
| 2458 |
{ |
| 2459 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2460 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2462 |
printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2463 |
if eval test \${$3+y} |
| 2464 |
then : |
| 2465 |
printf %s "(cached) " >&6 |
| 2466 |
else $as_nop |
| 2467 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2468 |
eval ac_save_FLAGS=\$$6 |
| 2469 |
as_fn_append $6 " $5" |
| 2470 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2471 |
/* end confdefs.h. */ |
| 2472 |
$4 |
| 2473 |
int |
| 2474 |
main (void) |
| 2475 |
{ |
| 2476 |
#ifndef $as_decl_name |
| 2477 |
#ifdef __cplusplus |
| 2478 |
(void) $as_decl_use; |
| 2479 |
#else |
| 2480 |
(void) $as_decl_name; |
| 2481 |
#endif |
| 2482 |
#endif |
| 2483 |
|
| 2484 |
; |
| 2485 |
return 0; |
| 2486 |
} |
| 2487 |
_ACEOF |
| 2488 |
if ac_fn_c_try_compile "$LINENO" |
| 2489 |
then : |
| 2490 |
eval "$3=yes" |
| 2491 |
else $as_nop |
| 2492 |
eval "$3=no" |
| 2493 |
fi |
| 2494 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2495 |
eval $6=\$ac_save_FLAGS |
| 2496 |
|
| 2497 |
fi |
| 2498 |
eval ac_res=\$$3 |
| 2499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2500 |
printf "%s\n" "$ac_res" >&6; } |
| 2501 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2502 |
|
| 2503 |
} # ac_fn_check_decl |
| 2504 |
|
| 2505 |
# ac_fn_cxx_try_compile LINENO |
| 2506 |
# ---------------------------- |
| 2507 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2508 |
ac_fn_cxx_try_compile () |
| 2509 |
{ |
| 2510 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2511 |
rm -f conftest.$ac_objext conftest.beam |
| 2512 |
if { { ac_try="$ac_compile" |
| 2513 |
case "(($ac_try" in |
| 2514 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2515 |
*) ac_try_echo=$ac_try;; |
| 2516 |
esac |
| 2517 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2518 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2519 |
(eval "$ac_compile") 2>conftest.err |
| 2520 |
ac_status=$? |
| 2521 |
if test -s conftest.err; then |
| 2522 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2523 |
cat conftest.er1 >&5 |
| 2524 |
mv -f conftest.er1 conftest.err |
| 2525 |
fi |
| 2526 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2527 |
test $ac_status = 0; } && { |
| 2528 |
test -z "$ac_cxx_werror_flag" || |
| 2529 |
test ! -s conftest.err |
| 2530 |
} && test -s conftest.$ac_objext |
| 2531 |
then : |
| 2532 |
ac_retval=0 |
| 2533 |
else $as_nop |
| 2534 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2535 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2536 |
|
| 2537 |
ac_retval=1 |
| 2538 |
fi |
| 2539 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2540 |
as_fn_set_status $ac_retval |
| 2541 |
|
| 2542 |
} # ac_fn_cxx_try_compile |
| 2543 |
|
| 2544 |
# ac_fn_cxx_try_link LINENO |
| 2545 |
# ------------------------- |
| 2546 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2547 |
ac_fn_cxx_try_link () |
| 2548 |
{ |
| 2549 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2550 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2551 |
if { { ac_try="$ac_link" |
| 2552 |
case "(($ac_try" in |
| 2553 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2554 |
*) ac_try_echo=$ac_try;; |
| 2555 |
esac |
| 2556 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2557 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2558 |
(eval "$ac_link") 2>conftest.err |
| 2559 |
ac_status=$? |
| 2560 |
if test -s conftest.err; then |
| 2561 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2562 |
cat conftest.er1 >&5 |
| 2563 |
mv -f conftest.er1 conftest.err |
| 2564 |
fi |
| 2565 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2566 |
test $ac_status = 0; } && { |
| 2567 |
test -z "$ac_cxx_werror_flag" || |
| 2568 |
test ! -s conftest.err |
| 2569 |
} && test -s conftest$ac_exeext && { |
| 2570 |
test "$cross_compiling" = yes || |
| 2571 |
test -x conftest$ac_exeext |
| 2572 |
} |
| 2573 |
then : |
| 2574 |
ac_retval=0 |
| 2575 |
else $as_nop |
| 2576 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2577 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2578 |
|
| 2579 |
ac_retval=1 |
| 2580 |
fi |
| 2581 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2582 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2583 |
# interfere with the next link command; also delete a directory that is |
| 2584 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2585 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2586 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2587 |
as_fn_set_status $ac_retval |
| 2588 |
|
| 2589 |
} # ac_fn_cxx_try_link |
| 2590 |
ac_configure_args_raw= |
| 2591 |
for ac_arg |
| 2592 |
do |
| 2593 |
case $ac_arg in |
| 2594 |
*\'*) |
| 2595 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2596 |
esac |
| 2597 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2598 |
done |
| 2599 |
|
| 2600 |
case $ac_configure_args_raw in |
| 2601 |
*$as_nl*) |
| 2602 |
ac_safe_unquote= ;; |
| 2603 |
*) |
| 2604 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2605 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 2606 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2607 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2608 |
esac |
| 2609 |
|
| 2610 |
cat >config.log <<_ACEOF |
| 2611 |
This file contains any messages produced by compilers while |
| 2612 |
running configure, to aid debugging if configure makes a mistake. |
| 2613 |
|
| 2614 |
It was created by $as_me, which was |
| 2615 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 2616 |
|
| 2617 |
$ $0$ac_configure_args_raw |
| 2618 |
|
| 2619 |
_ACEOF |
| 2620 |
exec 5>>config.log |
| 2621 |
{ |
| 2622 |
cat <<_ASUNAME |
| 2623 |
## --------- ## |
| 2624 |
## Platform. ## |
| 2625 |
## --------- ## |
| 2626 |
|
| 2627 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2628 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2629 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2630 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2631 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2632 |
|
| 2633 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2634 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2635 |
|
| 2636 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2637 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2638 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2639 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2640 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2641 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2642 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2643 |
|
| 2644 |
_ASUNAME |
| 2645 |
|
| 2646 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2647 |
for as_dir in $PATH |
| 2648 |
do |
| 2649 |
IFS=$as_save_IFS |
| 2650 |
case $as_dir in #((( |
| 2651 |
'') as_dir=./ ;; |
| 2652 |
*/) ;; |
| 2653 |
*) as_dir=$as_dir/ ;; |
| 2654 |
esac |
| 2655 |
printf "%s\n" "PATH: $as_dir" |
| 2656 |
done |
| 2657 |
IFS=$as_save_IFS |
| 2658 |
|
| 2659 |
} >&5 |
| 2660 |
|
| 2661 |
cat >&5 <<_ACEOF |
| 2662 |
|
| 2663 |
|
| 2664 |
## ----------- ## |
| 2665 |
## Core tests. ## |
| 2666 |
## ----------- ## |
| 2667 |
|
| 2668 |
_ACEOF |
| 2669 |
|
| 2670 |
|
| 2671 |
# Keep a trace of the command line. |
| 2672 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2673 |
# Strip out --silent because we don't want to record it for future runs. |
| 2674 |
# Also quote any args containing shell meta-characters. |
| 2675 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2676 |
ac_configure_args= |
| 2677 |
ac_configure_args0= |
| 2678 |
ac_configure_args1= |
| 2679 |
ac_must_keep_next=false |
| 2680 |
for ac_pass in 1 2 |
| 2681 |
do |
| 2682 |
for ac_arg |
| 2683 |
do |
| 2684 |
case $ac_arg in |
| 2685 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2686 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2687 |
| -silent | --silent | --silen | --sile | --sil) |
| 2688 |
continue ;; |
| 2689 |
*\'*) |
| 2690 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2691 |
esac |
| 2692 |
case $ac_pass in |
| 2693 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2694 |
2) |
| 2695 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2696 |
if test $ac_must_keep_next = true; then |
| 2697 |
ac_must_keep_next=false # Got value, back to normal. |
| 2698 |
else |
| 2699 |
case $ac_arg in |
| 2700 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2701 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2702 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2703 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2704 |
case "$ac_configure_args0 " in |
| 2705 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2706 |
esac |
| 2707 |
;; |
| 2708 |
-* ) ac_must_keep_next=true ;; |
| 2709 |
esac |
| 2710 |
fi |
| 2711 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2712 |
;; |
| 2713 |
esac |
| 2714 |
done |
| 2715 |
done |
| 2716 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2717 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2718 |
|
| 2719 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2720 |
# config.log. We remove comments because anyway the quotes in there |
| 2721 |
# would cause problems or look ugly. |
| 2722 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2723 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2724 |
trap 'exit_status=$? |
| 2725 |
# Sanitize IFS. |
| 2726 |
IFS=" "" $as_nl" |
| 2727 |
# Save into config.log some information that might help in debugging. |
| 2728 |
{ |
| 2729 |
echo |
| 2730 |
|
| 2731 |
printf "%s\n" "## ---------------- ## |
| 2732 |
## Cache variables. ## |
| 2733 |
## ---------------- ##" |
| 2734 |
echo |
| 2735 |
# The following way of writing the cache mishandles newlines in values, |
| 2736 |
( |
| 2737 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2738 |
eval ac_val=\$$ac_var |
| 2739 |
case $ac_val in #( |
| 2740 |
*${as_nl}*) |
| 2741 |
case $ac_var in #( |
| 2742 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2743 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2744 |
esac |
| 2745 |
case $ac_var in #( |
| 2746 |
_ | IFS | as_nl) ;; #( |
| 2747 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2748 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2749 |
esac ;; |
| 2750 |
esac |
| 2751 |
done |
| 2752 |
(set) 2>&1 | |
| 2753 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2754 |
*${as_nl}ac_space=\ *) |
| 2755 |
sed -n \ |
| 2756 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2757 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2758 |
;; #( |
| 2759 |
*) |
| 2760 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2761 |
;; |
| 2762 |
esac | |
| 2763 |
sort |
| 2764 |
) |
| 2765 |
echo |
| 2766 |
|
| 2767 |
printf "%s\n" "## ----------------- ## |
| 2768 |
## Output variables. ## |
| 2769 |
## ----------------- ##" |
| 2770 |
echo |
| 2771 |
for ac_var in $ac_subst_vars |
| 2772 |
do |
| 2773 |
eval ac_val=\$$ac_var |
| 2774 |
case $ac_val in |
| 2775 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2776 |
esac |
| 2777 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2778 |
done | sort |
| 2779 |
echo |
| 2780 |
|
| 2781 |
if test -n "$ac_subst_files"; then |
| 2782 |
printf "%s\n" "## ------------------- ## |
| 2783 |
## File substitutions. ## |
| 2784 |
## ------------------- ##" |
| 2785 |
echo |
| 2786 |
for ac_var in $ac_subst_files |
| 2787 |
do |
| 2788 |
eval ac_val=\$$ac_var |
| 2789 |
case $ac_val in |
| 2790 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2791 |
esac |
| 2792 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2793 |
done | sort |
| 2794 |
echo |
| 2795 |
fi |
| 2796 |
|
| 2797 |
if test -s confdefs.h; then |
| 2798 |
printf "%s\n" "## ----------- ## |
| 2799 |
## confdefs.h. ## |
| 2800 |
## ----------- ##" |
| 2801 |
echo |
| 2802 |
cat confdefs.h |
| 2803 |
echo |
| 2804 |
fi |
| 2805 |
test "$ac_signal" != 0 && |
| 2806 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2807 |
printf "%s\n" "$as_me: exit $exit_status" |
| 2808 |
} >&5 |
| 2809 |
rm -f core *.core core.conftest.* && |
| 2810 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2811 |
exit $exit_status |
| 2812 |
' 0 |
| 2813 |
for ac_signal in 1 2 13 15; do |
| 2814 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2815 |
done |
| 2816 |
ac_signal=0 |
| 2817 |
|
| 2818 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2819 |
rm -f -r conftest* confdefs.h |
| 2820 |
|
| 2821 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2822 |
|
| 2823 |
# Predefined preprocessor variables. |
| 2824 |
|
| 2825 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2826 |
|
| 2827 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2828 |
|
| 2829 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2830 |
|
| 2831 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2832 |
|
| 2833 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2834 |
|
| 2835 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2836 |
|
| 2837 |
|
| 2838 |
# Let the site file select an alternate cache file if it wants to. |
| 2839 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2840 |
if test -n "$CONFIG_SITE"; then |
| 2841 |
ac_site_files="$CONFIG_SITE" |
| 2842 |
elif test "x$prefix" != xNONE; then |
| 2843 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2844 |
else |
| 2845 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2846 |
fi |
| 2847 |
|
| 2848 |
for ac_site_file in $ac_site_files |
| 2849 |
do |
| 2850 |
case $ac_site_file in #( |
| 2851 |
*/*) : |
| 2852 |
;; #( |
| 2853 |
*) : |
| 2854 |
ac_site_file=./$ac_site_file ;; |
| 2855 |
esac |
| 2856 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2858 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2859 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2860 |
. "$ac_site_file" \ |
| 2861 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2862 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2863 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2864 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2865 |
fi |
| 2866 |
done |
| 2867 |
|
| 2868 |
if test -r "$cache_file"; then |
| 2869 |
# Some versions of bash will fail to source /dev/null (special files |
| 2870 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2871 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2872 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2873 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2874 |
case $cache_file in |
| 2875 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2876 |
*) . "./$cache_file";; |
| 2877 |
esac |
| 2878 |
fi |
| 2879 |
else |
| 2880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2881 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2882 |
>$cache_file |
| 2883 |
fi |
| 2884 |
|
| 2885 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 2886 |
ac_c_conftest_c89_globals=' |
| 2887 |
/* Does the compiler advertise C89 conformance? |
| 2888 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 2889 |
while being otherwise adequately conformant. */ |
| 2890 |
#if !defined __STDC__ |
| 2891 |
# error "Compiler does not advertise C89 conformance" |
| 2892 |
#endif |
| 2893 |
|
| 2894 |
#include <stddef.h> |
| 2895 |
#include <stdarg.h> |
| 2896 |
struct stat; |
| 2897 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2898 |
struct buf { int x; }; |
| 2899 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2900 |
static char *e (p, i) |
| 2901 |
char **p; |
| 2902 |
int i; |
| 2903 |
{ |
| 2904 |
return p[i]; |
| 2905 |
} |
| 2906 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2907 |
{ |
| 2908 |
char *s; |
| 2909 |
va_list v; |
| 2910 |
va_start (v,p); |
| 2911 |
s = g (p, va_arg (v,int)); |
| 2912 |
va_end (v); |
| 2913 |
return s; |
| 2914 |
} |
| 2915 |
|
| 2916 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2917 |
function prototypes and stuff, but not \xHH hex character constants. |
| 2918 |
These do not provoke an error unfortunately, instead are silently treated |
| 2919 |
as an "x". The following induces an error, until -std is added to get |
| 2920 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2921 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 2922 |
that is true only with -std. */ |
| 2923 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2924 |
|
| 2925 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2926 |
inside strings and character constants. */ |
| 2927 |
#define FOO(x) '\''x'\'' |
| 2928 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2929 |
|
| 2930 |
int test (int i, double x); |
| 2931 |
struct s1 {int (*f) (int a);}; |
| 2932 |
struct s2 {int (*f) (double a);}; |
| 2933 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2934 |
int, int);' |
| 2935 |
|
| 2936 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2937 |
ac_c_conftest_c89_main=' |
| 2938 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2939 |
' |
| 2940 |
|
| 2941 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2942 |
ac_c_conftest_c99_globals=' |
| 2943 |
// Does the compiler advertise C99 conformance? |
| 2944 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2945 |
# error "Compiler does not advertise C99 conformance" |
| 2946 |
#endif |
| 2947 |
|
| 2948 |
#include <stdbool.h> |
| 2949 |
extern int puts (const char *); |
| 2950 |
extern int printf (const char *, ...); |
| 2951 |
extern int dprintf (int, const char *, ...); |
| 2952 |
extern void *malloc (size_t); |
| 2953 |
|
| 2954 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2955 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2956 |
// FILE and stderr. |
| 2957 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2958 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2959 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2960 |
static void |
| 2961 |
test_varargs_macros (void) |
| 2962 |
{ |
| 2963 |
int x = 1234; |
| 2964 |
int y = 5678; |
| 2965 |
debug ("Flag"); |
| 2966 |
debug ("X = %d\n", x); |
| 2967 |
showlist (The first, second, and third items.); |
| 2968 |
report (x>y, "x is %d but y is %d", x, y); |
| 2969 |
} |
| 2970 |
|
| 2971 |
// Check long long types. |
| 2972 |
#define BIG64 18446744073709551615ull |
| 2973 |
#define BIG32 4294967295ul |
| 2974 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2975 |
#if !BIG_OK |
| 2976 |
#error "your preprocessor is broken" |
| 2977 |
#endif |
| 2978 |
#if BIG_OK |
| 2979 |
#else |
| 2980 |
#error "your preprocessor is broken" |
| 2981 |
#endif |
| 2982 |
static long long int bignum = -9223372036854775807LL; |
| 2983 |
static unsigned long long int ubignum = BIG64; |
| 2984 |
|
| 2985 |
struct incomplete_array |
| 2986 |
{ |
| 2987 |
int datasize; |
| 2988 |
double data[]; |
| 2989 |
}; |
| 2990 |
|
| 2991 |
struct named_init { |
| 2992 |
int number; |
| 2993 |
const wchar_t *name; |
| 2994 |
double average; |
| 2995 |
}; |
| 2996 |
|
| 2997 |
typedef const char *ccp; |
| 2998 |
|
| 2999 |
static inline int |
| 3000 |
test_restrict (ccp restrict text) |
| 3001 |
{ |
| 3002 |
// See if C++-style comments work. |
| 3003 |
// Iterate through items via the restricted pointer. |
| 3004 |
// Also check for declarations in for loops. |
| 3005 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 3006 |
continue; |
| 3007 |
return 0; |
| 3008 |
} |
| 3009 |
|
| 3010 |
// Check varargs and va_copy. |
| 3011 |
static bool |
| 3012 |
test_varargs (const char *format, ...) |
| 3013 |
{ |
| 3014 |
va_list args; |
| 3015 |
va_start (args, format); |
| 3016 |
va_list args_copy; |
| 3017 |
va_copy (args_copy, args); |
| 3018 |
|
| 3019 |
const char *str = ""; |
| 3020 |
int number = 0; |
| 3021 |
float fnumber = 0; |
| 3022 |
|
| 3023 |
while (*format) |
| 3024 |
{ |
| 3025 |
switch (*format++) |
| 3026 |
{ |
| 3027 |
case '\''s'\'': // string |
| 3028 |
str = va_arg (args_copy, const char *); |
| 3029 |
break; |
| 3030 |
case '\''d'\'': // int |
| 3031 |
number = va_arg (args_copy, int); |
| 3032 |
break; |
| 3033 |
case '\''f'\'': // float |
| 3034 |
fnumber = va_arg (args_copy, double); |
| 3035 |
break; |
| 3036 |
default: |
| 3037 |
break; |
| 3038 |
} |
| 3039 |
} |
| 3040 |
va_end (args_copy); |
| 3041 |
va_end (args); |
| 3042 |
|
| 3043 |
return *str && number && fnumber; |
| 3044 |
} |
| 3045 |
' |
| 3046 |
|
| 3047 |
# Test code for whether the C compiler supports C99 (body of main). |
| 3048 |
ac_c_conftest_c99_main=' |
| 3049 |
// Check bool. |
| 3050 |
_Bool success = false; |
| 3051 |
success |= (argc != 0); |
| 3052 |
|
| 3053 |
// Check restrict. |
| 3054 |
if (test_restrict ("String literal") == 0) |
| 3055 |
success = true; |
| 3056 |
char *restrict newvar = "Another string"; |
| 3057 |
|
| 3058 |
// Check varargs. |
| 3059 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 3060 |
test_varargs_macros (); |
| 3061 |
|
| 3062 |
// Check flexible array members. |
| 3063 |
struct incomplete_array *ia = |
| 3064 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 3065 |
ia->datasize = 10; |
| 3066 |
for (int i = 0; i < ia->datasize; ++i) |
| 3067 |
ia->data[i] = i * 1.234; |
| 3068 |
|
| 3069 |
// Check named initializers. |
| 3070 |
struct named_init ni = { |
| 3071 |
.number = 34, |
| 3072 |
.name = L"Test wide string", |
| 3073 |
.average = 543.34343, |
| 3074 |
}; |
| 3075 |
|
| 3076 |
ni.number = 58; |
| 3077 |
|
| 3078 |
int dynamic_array[ni.number]; |
| 3079 |
dynamic_array[0] = argv[0][0]; |
| 3080 |
dynamic_array[ni.number - 1] = 543; |
| 3081 |
|
| 3082 |
// work around unused variable warnings |
| 3083 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 3084 |
|| dynamic_array[ni.number - 1] != 543); |
| 3085 |
' |
| 3086 |
|
| 3087 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 3088 |
ac_c_conftest_c11_globals=' |
| 3089 |
// Does the compiler advertise C11 conformance? |
| 3090 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 3091 |
# error "Compiler does not advertise C11 conformance" |
| 3092 |
#endif |
| 3093 |
|
| 3094 |
// Check _Alignas. |
| 3095 |
char _Alignas (double) aligned_as_double; |
| 3096 |
char _Alignas (0) no_special_alignment; |
| 3097 |
extern char aligned_as_int; |
| 3098 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 3099 |
|
| 3100 |
// Check _Alignof. |
| 3101 |
enum |
| 3102 |
{ |
| 3103 |
int_alignment = _Alignof (int), |
| 3104 |
int_array_alignment = _Alignof (int[100]), |
| 3105 |
char_alignment = _Alignof (char) |
| 3106 |
}; |
| 3107 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 3108 |
|
| 3109 |
// Check _Noreturn. |
| 3110 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 3111 |
|
| 3112 |
// Check _Static_assert. |
| 3113 |
struct test_static_assert |
| 3114 |
{ |
| 3115 |
int x; |
| 3116 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 3117 |
"_Static_assert does not work in struct"); |
| 3118 |
long int y; |
| 3119 |
}; |
| 3120 |
|
| 3121 |
// Check UTF-8 literals. |
| 3122 |
#define u8 syntax error! |
| 3123 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 3124 |
|
| 3125 |
// Check duplicate typedefs. |
| 3126 |
typedef long *long_ptr; |
| 3127 |
typedef long int *long_ptr; |
| 3128 |
typedef long_ptr long_ptr; |
| 3129 |
|
| 3130 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 3131 |
struct anonymous |
| 3132 |
{ |
| 3133 |
union { |
| 3134 |
struct { int i; int j; }; |
| 3135 |
struct { int k; long int l; } w; |
| 3136 |
}; |
| 3137 |
int m; |
| 3138 |
} v1; |
| 3139 |
' |
| 3140 |
|
| 3141 |
# Test code for whether the C compiler supports C11 (body of main). |
| 3142 |
ac_c_conftest_c11_main=' |
| 3143 |
_Static_assert ((offsetof (struct anonymous, i) |
| 3144 |
== offsetof (struct anonymous, w.k)), |
| 3145 |
"Anonymous union alignment botch"); |
| 3146 |
v1.i = 2; |
| 3147 |
v1.w.k = 5; |
| 3148 |
ok |= v1.i != 5; |
| 3149 |
' |
| 3150 |
|
| 3151 |
# Test code for whether the C compiler supports C11 (complete). |
| 3152 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3153 |
${ac_c_conftest_c99_globals} |
| 3154 |
${ac_c_conftest_c11_globals} |
| 3155 |
|
| 3156 |
int |
| 3157 |
main (int argc, char **argv) |
| 3158 |
{ |
| 3159 |
int ok = 0; |
| 3160 |
${ac_c_conftest_c89_main} |
| 3161 |
${ac_c_conftest_c99_main} |
| 3162 |
${ac_c_conftest_c11_main} |
| 3163 |
return ok; |
| 3164 |
} |
| 3165 |
" |
| 3166 |
|
| 3167 |
# Test code for whether the C compiler supports C99 (complete). |
| 3168 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3169 |
${ac_c_conftest_c99_globals} |
| 3170 |
|
| 3171 |
int |
| 3172 |
main (int argc, char **argv) |
| 3173 |
{ |
| 3174 |
int ok = 0; |
| 3175 |
${ac_c_conftest_c89_main} |
| 3176 |
${ac_c_conftest_c99_main} |
| 3177 |
return ok; |
| 3178 |
} |
| 3179 |
" |
| 3180 |
|
| 3181 |
# Test code for whether the C compiler supports C89 (complete). |
| 3182 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3183 |
|
| 3184 |
int |
| 3185 |
main (int argc, char **argv) |
| 3186 |
{ |
| 3187 |
int ok = 0; |
| 3188 |
${ac_c_conftest_c89_main} |
| 3189 |
return ok; |
| 3190 |
} |
| 3191 |
" |
| 3192 |
|
| 3193 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3194 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3195 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3196 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3197 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3198 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3199 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3200 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3201 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3202 |
# Test code for whether the C++ compiler supports C++98 (global declarations) |
| 3203 |
ac_cxx_conftest_cxx98_globals=' |
| 3204 |
// Does the compiler advertise C++98 conformance? |
| 3205 |
#if !defined __cplusplus || __cplusplus < 199711L |
| 3206 |
# error "Compiler does not advertise C++98 conformance" |
| 3207 |
#endif |
| 3208 |
|
| 3209 |
// These inclusions are to reject old compilers that |
| 3210 |
// lack the unsuffixed header files. |
| 3211 |
#include <cstdlib> |
| 3212 |
#include <exception> |
| 3213 |
|
| 3214 |
// <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 3215 |
extern void assert (int); |
| 3216 |
namespace std { |
| 3217 |
extern int strcmp (const char *, const char *); |
| 3218 |
} |
| 3219 |
|
| 3220 |
// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 3221 |
using std::exception; |
| 3222 |
using std::strcmp; |
| 3223 |
|
| 3224 |
namespace { |
| 3225 |
|
| 3226 |
void test_exception_syntax() |
| 3227 |
{ |
| 3228 |
try { |
| 3229 |
throw "test"; |
| 3230 |
} catch (const char *s) { |
| 3231 |
// Extra parentheses suppress a warning when building autoconf itself, |
| 3232 |
// due to lint rules shared with more typical C programs. |
| 3233 |
assert (!(strcmp) (s, "test")); |
| 3234 |
} |
| 3235 |
} |
| 3236 |
|
| 3237 |
template <typename T> struct test_template |
| 3238 |
{ |
| 3239 |
T const val; |
| 3240 |
explicit test_template(T t) : val(t) {} |
| 3241 |
template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 3242 |
}; |
| 3243 |
|
| 3244 |
} // anonymous namespace |
| 3245 |
' |
| 3246 |
|
| 3247 |
# Test code for whether the C++ compiler supports C++98 (body of main) |
| 3248 |
ac_cxx_conftest_cxx98_main=' |
| 3249 |
assert (argc); |
| 3250 |
assert (! argv[0]); |
| 3251 |
{ |
| 3252 |
test_exception_syntax (); |
| 3253 |
test_template<double> tt (2.0); |
| 3254 |
assert (tt.add (4) == 6.0); |
| 3255 |
assert (true && !false); |
| 3256 |
} |
| 3257 |
' |
| 3258 |
|
| 3259 |
# Test code for whether the C++ compiler supports C++11 (global declarations) |
| 3260 |
ac_cxx_conftest_cxx11_globals=' |
| 3261 |
// Does the compiler advertise C++ 2011 conformance? |
| 3262 |
#if !defined __cplusplus || __cplusplus < 201103L |
| 3263 |
# error "Compiler does not advertise C++11 conformance" |
| 3264 |
#endif |
| 3265 |
|
| 3266 |
namespace cxx11test |
| 3267 |
{ |
| 3268 |
constexpr int get_val() { return 20; } |
| 3269 |
|
| 3270 |
struct testinit |
| 3271 |
{ |
| 3272 |
int i; |
| 3273 |
double d; |
| 3274 |
}; |
| 3275 |
|
| 3276 |
class delegate |
| 3277 |
{ |
| 3278 |
public: |
| 3279 |
delegate(int n) : n(n) {} |
| 3280 |
delegate(): delegate(2354) {} |
| 3281 |
|
| 3282 |
virtual int getval() { return this->n; }; |
| 3283 |
protected: |
| 3284 |
int n; |
| 3285 |
}; |
| 3286 |
|
| 3287 |
class overridden : public delegate |
| 3288 |
{ |
| 3289 |
public: |
| 3290 |
overridden(int n): delegate(n) {} |
| 3291 |
virtual int getval() override final { return this->n * 2; } |
| 3292 |
}; |
| 3293 |
|
| 3294 |
class nocopy |
| 3295 |
{ |
| 3296 |
public: |
| 3297 |
nocopy(int i): i(i) {} |
| 3298 |
nocopy() = default; |
| 3299 |
nocopy(const nocopy&) = delete; |
| 3300 |
nocopy & operator=(const nocopy&) = delete; |
| 3301 |
private: |
| 3302 |
int i; |
| 3303 |
}; |
| 3304 |
|
| 3305 |
// for testing lambda expressions |
| 3306 |
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 3307 |
{ |
| 3308 |
return f(v); |
| 3309 |
} |
| 3310 |
|
| 3311 |
// for testing variadic templates and trailing return types |
| 3312 |
template <typename V> auto sum(V first) -> V |
| 3313 |
{ |
| 3314 |
return first; |
| 3315 |
} |
| 3316 |
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 3317 |
{ |
| 3318 |
return first + sum(rest...); |
| 3319 |
} |
| 3320 |
} |
| 3321 |
' |
| 3322 |
|
| 3323 |
# Test code for whether the C++ compiler supports C++11 (body of main) |
| 3324 |
ac_cxx_conftest_cxx11_main=' |
| 3325 |
{ |
| 3326 |
// Test auto and decltype |
| 3327 |
auto a1 = 6538; |
| 3328 |
auto a2 = 48573953.4; |
| 3329 |
auto a3 = "String literal"; |
| 3330 |
|
| 3331 |
int total = 0; |
| 3332 |
for (auto i = a3; *i; ++i) { total += *i; } |
| 3333 |
|
| 3334 |
decltype(a2) a4 = 34895.034; |
| 3335 |
} |
| 3336 |
{ |
| 3337 |
// Test constexpr |
| 3338 |
short sa[cxx11test::get_val()] = { 0 }; |
| 3339 |
} |
| 3340 |
{ |
| 3341 |
// Test initializer lists |
| 3342 |
cxx11test::testinit il = { 4323, 435234.23544 }; |
| 3343 |
} |
| 3344 |
{ |
| 3345 |
// Test range-based for |
| 3346 |
int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 3347 |
14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 3348 |
for (auto &x : array) { x += 23; } |
| 3349 |
} |
| 3350 |
{ |
| 3351 |
// Test lambda expressions |
| 3352 |
using cxx11test::eval; |
| 3353 |
assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 3354 |
double d = 2.0; |
| 3355 |
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 3356 |
assert (d == 5.0); |
| 3357 |
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 3358 |
assert (d == 5.0); |
| 3359 |
} |
| 3360 |
{ |
| 3361 |
// Test use of variadic templates |
| 3362 |
using cxx11test::sum; |
| 3363 |
auto a = sum(1); |
| 3364 |
auto b = sum(1, 2); |
| 3365 |
auto c = sum(1.0, 2.0, 3.0); |
| 3366 |
} |
| 3367 |
{ |
| 3368 |
// Test constructor delegation |
| 3369 |
cxx11test::delegate d1; |
| 3370 |
cxx11test::delegate d2(); |
| 3371 |
cxx11test::delegate d3(45); |
| 3372 |
} |
| 3373 |
{ |
| 3374 |
// Test override and final |
| 3375 |
cxx11test::overridden o1(55464); |
| 3376 |
} |
| 3377 |
{ |
| 3378 |
// Test nullptr |
| 3379 |
char *c = nullptr; |
| 3380 |
} |
| 3381 |
{ |
| 3382 |
// Test template brackets |
| 3383 |
test_template<::test_template<int>> v(test_template<int>(12)); |
| 3384 |
} |
| 3385 |
{ |
| 3386 |
// Unicode literals |
| 3387 |
char const *utf8 = u8"UTF-8 string \u2500"; |
| 3388 |
char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 3389 |
char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 3390 |
} |
| 3391 |
' |
| 3392 |
|
| 3393 |
# Test code for whether the C compiler supports C++11 (complete). |
| 3394 |
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 3395 |
${ac_cxx_conftest_cxx11_globals} |
| 3396 |
|
| 3397 |
int |
| 3398 |
main (int argc, char **argv) |
| 3399 |
{ |
| 3400 |
int ok = 0; |
| 3401 |
${ac_cxx_conftest_cxx98_main} |
| 3402 |
${ac_cxx_conftest_cxx11_main} |
| 3403 |
return ok; |
| 3404 |
} |
| 3405 |
" |
| 3406 |
|
| 3407 |
# Test code for whether the C compiler supports C++98 (complete). |
| 3408 |
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 3409 |
int |
| 3410 |
main (int argc, char **argv) |
| 3411 |
{ |
| 3412 |
int ok = 0; |
| 3413 |
${ac_cxx_conftest_cxx98_main} |
| 3414 |
return ok; |
| 3415 |
} |
| 3416 |
" |
| 3417 |
|
| 3418 |
as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
| 3419 |
as_fn_append ac_func_c_list " fork HAVE_FORK" |
| 3420 |
as_fn_append ac_func_c_list " vfork HAVE_VFORK" |
| 3421 |
as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" |
| 3422 |
|
| 3423 |
# Auxiliary files required by this configure script. |
| 3424 |
ac_aux_files="config.guess config.sub" |
| 3425 |
|
| 3426 |
# Locations in which to look for auxiliary files. |
| 3427 |
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 3428 |
|
| 3429 |
# Search for a directory containing all of the required auxiliary files, |
| 3430 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3431 |
# If we don't find one directory that contains all the files we need, |
| 3432 |
# we report the set of missing files from the *first* directory in |
| 3433 |
# $ac_aux_dir_candidates and give up. |
| 3434 |
ac_missing_aux_files="" |
| 3435 |
ac_first_candidate=: |
| 3436 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3437 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3438 |
as_found=false |
| 3439 |
for as_dir in $ac_aux_dir_candidates |
| 3440 |
do |
| 3441 |
IFS=$as_save_IFS |
| 3442 |
case $as_dir in #((( |
| 3443 |
'') as_dir=./ ;; |
| 3444 |
*/) ;; |
| 3445 |
*) as_dir=$as_dir/ ;; |
| 3446 |
esac |
| 3447 |
as_found=: |
| 3448 |
|
| 3449 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3450 |
ac_aux_dir_found=yes |
| 3451 |
ac_install_sh= |
| 3452 |
for ac_aux in $ac_aux_files |
| 3453 |
do |
| 3454 |
# As a special case, if "install-sh" is required, that requirement |
| 3455 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3456 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 3457 |
if test x"$ac_aux" = x"install-sh" |
| 3458 |
then |
| 3459 |
if test -f "${as_dir}install-sh"; then |
| 3460 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3461 |
ac_install_sh="${as_dir}install-sh -c" |
| 3462 |
elif test -f "${as_dir}install.sh"; then |
| 3463 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3464 |
ac_install_sh="${as_dir}install.sh -c" |
| 3465 |
elif test -f "${as_dir}shtool"; then |
| 3466 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3467 |
ac_install_sh="${as_dir}shtool install -c" |
| 3468 |
else |
| 3469 |
ac_aux_dir_found=no |
| 3470 |
if $ac_first_candidate; then |
| 3471 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3472 |
else |
| 3473 |
break |
| 3474 |
fi |
| 3475 |
fi |
| 3476 |
else |
| 3477 |
if test -f "${as_dir}${ac_aux}"; then |
| 3478 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3479 |
else |
| 3480 |
ac_aux_dir_found=no |
| 3481 |
if $ac_first_candidate; then |
| 3482 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3483 |
else |
| 3484 |
break |
| 3485 |
fi |
| 3486 |
fi |
| 3487 |
fi |
| 3488 |
done |
| 3489 |
if test "$ac_aux_dir_found" = yes; then |
| 3490 |
ac_aux_dir="$as_dir" |
| 3491 |
break |
| 3492 |
fi |
| 3493 |
ac_first_candidate=false |
| 3494 |
|
| 3495 |
as_found=false |
| 3496 |
done |
| 3497 |
IFS=$as_save_IFS |
| 3498 |
if $as_found |
| 3499 |
then : |
| 3500 |
|
| 3501 |
else $as_nop |
| 3502 |
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 3503 |
fi |
| 3504 |
|
| 3505 |
|
| 3506 |
# These three variables are undocumented and unsupported, |
| 3507 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3508 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3509 |
# whose full name contains unusual characters. |
| 3510 |
if test -f "${ac_aux_dir}config.guess"; then |
| 3511 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3512 |
fi |
| 3513 |
if test -f "${ac_aux_dir}config.sub"; then |
| 3514 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3515 |
fi |
| 3516 |
if test -f "$ac_aux_dir/configure"; then |
| 3517 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3518 |
fi |
| 3519 |
|
| 3520 |
# Check that the precious variables saved in the cache have kept the same |
| 3521 |
# value. |
| 3522 |
ac_cache_corrupted=false |
| 3523 |
for ac_var in $ac_precious_vars; do |
| 3524 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3525 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 3526 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3527 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 3528 |
case $ac_old_set,$ac_new_set in |
| 3529 |
set,) |
| 3530 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3531 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3532 |
ac_cache_corrupted=: ;; |
| 3533 |
,set) |
| 3534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3535 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3536 |
ac_cache_corrupted=: ;; |
| 3537 |
,);; |
| 3538 |
*) |
| 3539 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3540 |
# differences in whitespace do not lead to failure. |
| 3541 |
ac_old_val_w=`echo x $ac_old_val` |
| 3542 |
ac_new_val_w=`echo x $ac_new_val` |
| 3543 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3544 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3545 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3546 |
ac_cache_corrupted=: |
| 3547 |
else |
| 3548 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3549 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3550 |
eval $ac_var=\$ac_old_val |
| 3551 |
fi |
| 3552 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3553 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3555 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3556 |
fi;; |
| 3557 |
esac |
| 3558 |
# Pass precious variables to config.status. |
| 3559 |
if test "$ac_new_set" = set; then |
| 3560 |
case $ac_new_val in |
| 3561 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3562 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 3563 |
esac |
| 3564 |
case " $ac_configure_args " in |
| 3565 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3566 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3567 |
esac |
| 3568 |
fi |
| 3569 |
done |
| 3570 |
if $ac_cache_corrupted; then |
| 3571 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3572 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3573 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3574 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3575 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3576 |
and start over" "$LINENO" 5 |
| 3577 |
fi |
| 3578 |
## -------------------- ## |
| 3579 |
## Main body of script. ## |
| 3580 |
## -------------------- ## |
| 3581 |
|
| 3582 |
ac_ext=c |
| 3583 |
ac_cpp='$CPP $CPPFLAGS' |
| 3584 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3585 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3586 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3587 |
|
| 3588 |
|
| 3589 |
|
| 3590 |
ac_ext=c |
| 3591 |
ac_cpp='$CPP $CPPFLAGS' |
| 3592 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3593 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3594 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3595 |
|
| 3596 |
|
| 3597 |
|
| 3598 |
|
| 3599 |
|
| 3600 |
|
| 3601 |
# Make sure we can run config.sub. |
| 3602 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3603 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3604 |
|
| 3605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3606 |
printf %s "checking build system type... " >&6; } |
| 3607 |
if test ${ac_cv_build+y} |
| 3608 |
then : |
| 3609 |
printf %s "(cached) " >&6 |
| 3610 |
else $as_nop |
| 3611 |
ac_build_alias=$build_alias |
| 3612 |
test "x$ac_build_alias" = x && |
| 3613 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 3614 |
test "x$ac_build_alias" = x && |
| 3615 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3616 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3617 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3618 |
|
| 3619 |
fi |
| 3620 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3621 |
printf "%s\n" "$ac_cv_build" >&6; } |
| 3622 |
case $ac_cv_build in |
| 3623 |
*-*-*) ;; |
| 3624 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3625 |
esac |
| 3626 |
build=$ac_cv_build |
| 3627 |
ac_save_IFS=$IFS; IFS='-' |
| 3628 |
set x $ac_cv_build |
| 3629 |
shift |
| 3630 |
build_cpu=$1 |
| 3631 |
build_vendor=$2 |
| 3632 |
shift; shift |
| 3633 |
# Remember, the first character of IFS is used to create $*, |
| 3634 |
# except with old shells: |
| 3635 |
build_os=$* |
| 3636 |
IFS=$ac_save_IFS |
| 3637 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3638 |
|
| 3639 |
|
| 3640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3641 |
printf %s "checking host system type... " >&6; } |
| 3642 |
if test ${ac_cv_host+y} |
| 3643 |
then : |
| 3644 |
printf %s "(cached) " >&6 |
| 3645 |
else $as_nop |
| 3646 |
if test "x$host_alias" = x; then |
| 3647 |
ac_cv_host=$ac_cv_build |
| 3648 |
else |
| 3649 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3650 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 3651 |
fi |
| 3652 |
|
| 3653 |
fi |
| 3654 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3655 |
printf "%s\n" "$ac_cv_host" >&6; } |
| 3656 |
case $ac_cv_host in |
| 3657 |
*-*-*) ;; |
| 3658 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3659 |
esac |
| 3660 |
host=$ac_cv_host |
| 3661 |
ac_save_IFS=$IFS; IFS='-' |
| 3662 |
set x $ac_cv_host |
| 3663 |
shift |
| 3664 |
host_cpu=$1 |
| 3665 |
host_vendor=$2 |
| 3666 |
shift; shift |
| 3667 |
# Remember, the first character of IFS is used to create $*, |
| 3668 |
# except with old shells: |
| 3669 |
host_os=$* |
| 3670 |
IFS=$ac_save_IFS |
| 3671 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3672 |
|
| 3673 |
|
| 3674 |
|
| 3675 |
CFLAGS="${CFLAGS:=}" |
| 3676 |
CPPFLAGS="${CPPFLAGS:=}" |
| 3677 |
CXXFLAGS="${CXXFLAGS:=}" |
| 3678 |
LDFLAGS="${LDFLAGS:=}" |
| 3679 |
|
| 3680 |
if test x"$host" != x"$build" ; then |
| 3681 |
CFLAGSAUX="${CFLAGSAUX:=}" |
| 3682 |
CPPFLAGSAUX="${CPPFLAGSAUX:=}" |
| 3683 |
LDFLAGSAUX="${LDFLAGSAUX:=}" |
| 3684 |
else |
| 3685 |
CFLAGSAUX="${CFLAGSAUX:-$CFLAGS}" |
| 3686 |
CPPFLAGSAUX="${CPPFLAGSAUX:-$CPPFLAGS}" |
| 3687 |
LDFLAGSAUX="${LDFLAGSAUX:-$LDFLAGS}" |
| 3688 |
fi |
| 3689 |
|
| 3690 |
THEMAKEFILE="${MAKEFILE:-Makefile}" |
| 3691 |
AUXFLAGS_MAK=auxflags.mak |
| 3692 |
|
| 3693 |
ARCH_AUTOCONF_HEADER=arch-config/arch_autoconf.h |
| 3694 |
ARCH_AUTOCONF_HEADER_PROTO=arch/arch_autoconf.h.in |
| 3695 |
|
| 3696 |
|
| 3697 |
|
| 3698 |
|
| 3699 |
|
| 3700 |
|
| 3701 |
|
| 3702 |
save_cflags="$CFLAGS" |
| 3703 |
|
| 3704 |
|
| 3705 |
|
| 3706 |
|
| 3707 |
|
| 3708 |
|
| 3709 |
|
| 3710 |
|
| 3711 |
|
| 3712 |
ac_ext=c |
| 3713 |
ac_cpp='$CPP $CPPFLAGS' |
| 3714 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3715 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3716 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3717 |
if test -n "$ac_tool_prefix"; then |
| 3718 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3719 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3720 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3721 |
printf %s "checking for $ac_word... " >&6; } |
| 3722 |
if test ${ac_cv_prog_CC+y} |
| 3723 |
then : |
| 3724 |
printf %s "(cached) " >&6 |
| 3725 |
else $as_nop |
| 3726 |
if test -n "$CC"; then |
| 3727 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3728 |
else |
| 3729 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3730 |
for as_dir in $PATH |
| 3731 |
do |
| 3732 |
IFS=$as_save_IFS |
| 3733 |
case $as_dir in #((( |
| 3734 |
'') as_dir=./ ;; |
| 3735 |
*/) ;; |
| 3736 |
*) as_dir=$as_dir/ ;; |
| 3737 |
esac |
| 3738 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3739 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3740 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3741 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3742 |
break 2 |
| 3743 |
fi |
| 3744 |
done |
| 3745 |
done |
| 3746 |
IFS=$as_save_IFS |
| 3747 |
|
| 3748 |
fi |
| 3749 |
fi |
| 3750 |
CC=$ac_cv_prog_CC |
| 3751 |
if test -n "$CC"; then |
| 3752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3753 |
printf "%s\n" "$CC" >&6; } |
| 3754 |
else |
| 3755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3756 |
printf "%s\n" "no" >&6; } |
| 3757 |
fi |
| 3758 |
|
| 3759 |
|
| 3760 |
fi |
| 3761 |
if test -z "$ac_cv_prog_CC"; then |
| 3762 |
ac_ct_CC=$CC |
| 3763 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3764 |
set dummy gcc; ac_word=$2 |
| 3765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3766 |
printf %s "checking for $ac_word... " >&6; } |
| 3767 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3768 |
then : |
| 3769 |
printf %s "(cached) " >&6 |
| 3770 |
else $as_nop |
| 3771 |
if test -n "$ac_ct_CC"; then |
| 3772 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3773 |
else |
| 3774 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3775 |
for as_dir in $PATH |
| 3776 |
do |
| 3777 |
IFS=$as_save_IFS |
| 3778 |
case $as_dir in #((( |
| 3779 |
'') as_dir=./ ;; |
| 3780 |
*/) ;; |
| 3781 |
*) as_dir=$as_dir/ ;; |
| 3782 |
esac |
| 3783 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3784 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3785 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3786 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3787 |
break 2 |
| 3788 |
fi |
| 3789 |
done |
| 3790 |
done |
| 3791 |
IFS=$as_save_IFS |
| 3792 |
|
| 3793 |
fi |
| 3794 |
fi |
| 3795 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3796 |
if test -n "$ac_ct_CC"; then |
| 3797 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3798 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3799 |
else |
| 3800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3801 |
printf "%s\n" "no" >&6; } |
| 3802 |
fi |
| 3803 |
|
| 3804 |
if test "x$ac_ct_CC" = x; then |
| 3805 |
CC="" |
| 3806 |
else |
| 3807 |
case $cross_compiling:$ac_tool_warned in |
| 3808 |
yes:) |
| 3809 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3810 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3811 |
ac_tool_warned=yes ;; |
| 3812 |
esac |
| 3813 |
CC=$ac_ct_CC |
| 3814 |
fi |
| 3815 |
else |
| 3816 |
CC="$ac_cv_prog_CC" |
| 3817 |
fi |
| 3818 |
|
| 3819 |
if test -z "$CC"; then |
| 3820 |
if test -n "$ac_tool_prefix"; then |
| 3821 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3822 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3824 |
printf %s "checking for $ac_word... " >&6; } |
| 3825 |
if test ${ac_cv_prog_CC+y} |
| 3826 |
then : |
| 3827 |
printf %s "(cached) " >&6 |
| 3828 |
else $as_nop |
| 3829 |
if test -n "$CC"; then |
| 3830 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3831 |
else |
| 3832 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3833 |
for as_dir in $PATH |
| 3834 |
do |
| 3835 |
IFS=$as_save_IFS |
| 3836 |
case $as_dir in #((( |
| 3837 |
'') as_dir=./ ;; |
| 3838 |
*/) ;; |
| 3839 |
*) as_dir=$as_dir/ ;; |
| 3840 |
esac |
| 3841 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3842 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3843 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3844 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3845 |
break 2 |
| 3846 |
fi |
| 3847 |
done |
| 3848 |
done |
| 3849 |
IFS=$as_save_IFS |
| 3850 |
|
| 3851 |
fi |
| 3852 |
fi |
| 3853 |
CC=$ac_cv_prog_CC |
| 3854 |
if test -n "$CC"; then |
| 3855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3856 |
printf "%s\n" "$CC" >&6; } |
| 3857 |
else |
| 3858 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3859 |
printf "%s\n" "no" >&6; } |
| 3860 |
fi |
| 3861 |
|
| 3862 |
|
| 3863 |
fi |
| 3864 |
fi |
| 3865 |
if test -z "$CC"; then |
| 3866 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3867 |
set dummy cc; ac_word=$2 |
| 3868 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3869 |
printf %s "checking for $ac_word... " >&6; } |
| 3870 |
if test ${ac_cv_prog_CC+y} |
| 3871 |
then : |
| 3872 |
printf %s "(cached) " >&6 |
| 3873 |
else $as_nop |
| 3874 |
if test -n "$CC"; then |
| 3875 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3876 |
else |
| 3877 |
ac_prog_rejected=no |
| 3878 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3879 |
for as_dir in $PATH |
| 3880 |
do |
| 3881 |
IFS=$as_save_IFS |
| 3882 |
case $as_dir in #((( |
| 3883 |
'') as_dir=./ ;; |
| 3884 |
*/) ;; |
| 3885 |
*) as_dir=$as_dir/ ;; |
| 3886 |
esac |
| 3887 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3888 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3889 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3890 |
ac_prog_rejected=yes |
| 3891 |
continue |
| 3892 |
fi |
| 3893 |
ac_cv_prog_CC="cc" |
| 3894 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3895 |
break 2 |
| 3896 |
fi |
| 3897 |
done |
| 3898 |
done |
| 3899 |
IFS=$as_save_IFS |
| 3900 |
|
| 3901 |
if test $ac_prog_rejected = yes; then |
| 3902 |
# We found a bogon in the path, so make sure we never use it. |
| 3903 |
set dummy $ac_cv_prog_CC |
| 3904 |
shift |
| 3905 |
if test $# != 0; then |
| 3906 |
# We chose a different compiler from the bogus one. |
| 3907 |
# However, it has the same basename, so the bogon will be chosen |
| 3908 |
# first if we set CC to just the basename; use the full file name. |
| 3909 |
shift |
| 3910 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3911 |
fi |
| 3912 |
fi |
| 3913 |
fi |
| 3914 |
fi |
| 3915 |
CC=$ac_cv_prog_CC |
| 3916 |
if test -n "$CC"; then |
| 3917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3918 |
printf "%s\n" "$CC" >&6; } |
| 3919 |
else |
| 3920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3921 |
printf "%s\n" "no" >&6; } |
| 3922 |
fi |
| 3923 |
|
| 3924 |
|
| 3925 |
fi |
| 3926 |
if test -z "$CC"; then |
| 3927 |
if test -n "$ac_tool_prefix"; then |
| 3928 |
for ac_prog in cl.exe |
| 3929 |
do |
| 3930 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3931 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3932 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3933 |
printf %s "checking for $ac_word... " >&6; } |
| 3934 |
if test ${ac_cv_prog_CC+y} |
| 3935 |
then : |
| 3936 |
printf %s "(cached) " >&6 |
| 3937 |
else $as_nop |
| 3938 |
if test -n "$CC"; then |
| 3939 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3940 |
else |
| 3941 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3942 |
for as_dir in $PATH |
| 3943 |
do |
| 3944 |
IFS=$as_save_IFS |
| 3945 |
case $as_dir in #((( |
| 3946 |
'') as_dir=./ ;; |
| 3947 |
*/) ;; |
| 3948 |
*) as_dir=$as_dir/ ;; |
| 3949 |
esac |
| 3950 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3951 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3952 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3953 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3954 |
break 2 |
| 3955 |
fi |
| 3956 |
done |
| 3957 |
done |
| 3958 |
IFS=$as_save_IFS |
| 3959 |
|
| 3960 |
fi |
| 3961 |
fi |
| 3962 |
CC=$ac_cv_prog_CC |
| 3963 |
if test -n "$CC"; then |
| 3964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3965 |
printf "%s\n" "$CC" >&6; } |
| 3966 |
else |
| 3967 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3968 |
printf "%s\n" "no" >&6; } |
| 3969 |
fi |
| 3970 |
|
| 3971 |
|
| 3972 |
test -n "$CC" && break |
| 3973 |
done |
| 3974 |
fi |
| 3975 |
if test -z "$CC"; then |
| 3976 |
ac_ct_CC=$CC |
| 3977 |
for ac_prog in cl.exe |
| 3978 |
do |
| 3979 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3980 |
set dummy $ac_prog; ac_word=$2 |
| 3981 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3982 |
printf %s "checking for $ac_word... " >&6; } |
| 3983 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3984 |
then : |
| 3985 |
printf %s "(cached) " >&6 |
| 3986 |
else $as_nop |
| 3987 |
if test -n "$ac_ct_CC"; then |
| 3988 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3989 |
else |
| 3990 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3991 |
for as_dir in $PATH |
| 3992 |
do |
| 3993 |
IFS=$as_save_IFS |
| 3994 |
case $as_dir in #((( |
| 3995 |
'') as_dir=./ ;; |
| 3996 |
*/) ;; |
| 3997 |
*) as_dir=$as_dir/ ;; |
| 3998 |
esac |
| 3999 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4000 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4001 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4002 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4003 |
break 2 |
| 4004 |
fi |
| 4005 |
done |
| 4006 |
done |
| 4007 |
IFS=$as_save_IFS |
| 4008 |
|
| 4009 |
fi |
| 4010 |
fi |
| 4011 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4012 |
if test -n "$ac_ct_CC"; then |
| 4013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4014 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4015 |
else |
| 4016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4017 |
printf "%s\n" "no" >&6; } |
| 4018 |
fi |
| 4019 |
|
| 4020 |
|
| 4021 |
test -n "$ac_ct_CC" && break |
| 4022 |
done |
| 4023 |
|
| 4024 |
if test "x$ac_ct_CC" = x; then |
| 4025 |
CC="" |
| 4026 |
else |
| 4027 |
case $cross_compiling:$ac_tool_warned in |
| 4028 |
yes:) |
| 4029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4030 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4031 |
ac_tool_warned=yes ;; |
| 4032 |
esac |
| 4033 |
CC=$ac_ct_CC |
| 4034 |
fi |
| 4035 |
fi |
| 4036 |
|
| 4037 |
fi |
| 4038 |
if test -z "$CC"; then |
| 4039 |
if test -n "$ac_tool_prefix"; then |
| 4040 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4041 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4042 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4043 |
printf %s "checking for $ac_word... " >&6; } |
| 4044 |
if test ${ac_cv_prog_CC+y} |
| 4045 |
then : |
| 4046 |
printf %s "(cached) " >&6 |
| 4047 |
else $as_nop |
| 4048 |
if test -n "$CC"; then |
| 4049 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4050 |
else |
| 4051 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4052 |
for as_dir in $PATH |
| 4053 |
do |
| 4054 |
IFS=$as_save_IFS |
| 4055 |
case $as_dir in #((( |
| 4056 |
'') as_dir=./ ;; |
| 4057 |
*/) ;; |
| 4058 |
*) as_dir=$as_dir/ ;; |
| 4059 |
esac |
| 4060 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4061 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4062 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4063 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4064 |
break 2 |
| 4065 |
fi |
| 4066 |
done |
| 4067 |
done |
| 4068 |
IFS=$as_save_IFS |
| 4069 |
|
| 4070 |
fi |
| 4071 |
fi |
| 4072 |
CC=$ac_cv_prog_CC |
| 4073 |
if test -n "$CC"; then |
| 4074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4075 |
printf "%s\n" "$CC" >&6; } |
| 4076 |
else |
| 4077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4078 |
printf "%s\n" "no" >&6; } |
| 4079 |
fi |
| 4080 |
|
| 4081 |
|
| 4082 |
fi |
| 4083 |
if test -z "$ac_cv_prog_CC"; then |
| 4084 |
ac_ct_CC=$CC |
| 4085 |
# Extract the first word of "clang", so it can be a program name with args. |
| 4086 |
set dummy clang; ac_word=$2 |
| 4087 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4088 |
printf %s "checking for $ac_word... " >&6; } |
| 4089 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4090 |
then : |
| 4091 |
printf %s "(cached) " >&6 |
| 4092 |
else $as_nop |
| 4093 |
if test -n "$ac_ct_CC"; then |
| 4094 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4095 |
else |
| 4096 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4097 |
for as_dir in $PATH |
| 4098 |
do |
| 4099 |
IFS=$as_save_IFS |
| 4100 |
case $as_dir in #((( |
| 4101 |
'') as_dir=./ ;; |
| 4102 |
*/) ;; |
| 4103 |
*) as_dir=$as_dir/ ;; |
| 4104 |
esac |
| 4105 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4106 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4107 |
ac_cv_prog_ac_ct_CC="clang" |
| 4108 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4109 |
break 2 |
| 4110 |
fi |
| 4111 |
done |
| 4112 |
done |
| 4113 |
IFS=$as_save_IFS |
| 4114 |
|
| 4115 |
fi |
| 4116 |
fi |
| 4117 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4118 |
if test -n "$ac_ct_CC"; then |
| 4119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4120 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4121 |
else |
| 4122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4123 |
printf "%s\n" "no" >&6; } |
| 4124 |
fi |
| 4125 |
|
| 4126 |
if test "x$ac_ct_CC" = x; then |
| 4127 |
CC="" |
| 4128 |
else |
| 4129 |
case $cross_compiling:$ac_tool_warned in |
| 4130 |
yes:) |
| 4131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4132 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4133 |
ac_tool_warned=yes ;; |
| 4134 |
esac |
| 4135 |
CC=$ac_ct_CC |
| 4136 |
fi |
| 4137 |
else |
| 4138 |
CC="$ac_cv_prog_CC" |
| 4139 |
fi |
| 4140 |
|
| 4141 |
fi |
| 4142 |
|
| 4143 |
|
| 4144 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4145 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4146 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4147 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4148 |
|
| 4149 |
# Provide some information about the compiler. |
| 4150 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4151 |
set X $ac_compile |
| 4152 |
ac_compiler=$2 |
| 4153 |
for ac_option in --version -v -V -qversion -version; do |
| 4154 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 4155 |
case "(($ac_try" in |
| 4156 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 |
*) ac_try_echo=$ac_try;; |
| 4158 |
esac |
| 4159 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4160 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4161 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4162 |
ac_status=$? |
| 4163 |
if test -s conftest.err; then |
| 4164 |
sed '10a\ |
| 4165 |
... rest of stderr output deleted ... |
| 4166 |
10q' conftest.err >conftest.er1 |
| 4167 |
cat conftest.er1 >&5 |
| 4168 |
fi |
| 4169 |
rm -f conftest.er1 conftest.err |
| 4170 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4171 |
test $ac_status = 0; } |
| 4172 |
done |
| 4173 |
|
| 4174 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4175 |
/* end confdefs.h. */ |
| 4176 |
|
| 4177 |
int |
| 4178 |
main (void) |
| 4179 |
{ |
| 4180 |
|
| 4181 |
; |
| 4182 |
return 0; |
| 4183 |
} |
| 4184 |
_ACEOF |
| 4185 |
ac_clean_files_save=$ac_clean_files |
| 4186 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4187 |
# Try to create an executable without -o first, disregard a.out. |
| 4188 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 4189 |
# of exeext. |
| 4190 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4191 |
printf %s "checking whether the C compiler works... " >&6; } |
| 4192 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4193 |
|
| 4194 |
# The possible output files: |
| 4195 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4196 |
|
| 4197 |
ac_rmfiles= |
| 4198 |
for ac_file in $ac_files |
| 4199 |
do |
| 4200 |
case $ac_file in |
| 4201 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4202 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4203 |
esac |
| 4204 |
done |
| 4205 |
rm -f $ac_rmfiles |
| 4206 |
|
| 4207 |
if { { ac_try="$ac_link_default" |
| 4208 |
case "(($ac_try" in |
| 4209 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4210 |
*) ac_try_echo=$ac_try;; |
| 4211 |
esac |
| 4212 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4213 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4214 |
(eval "$ac_link_default") 2>&5 |
| 4215 |
ac_status=$? |
| 4216 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4217 |
test $ac_status = 0; } |
| 4218 |
then : |
| 4219 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4220 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4221 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4222 |
# so that the user can short-circuit this test for compilers unknown to |
| 4223 |
# Autoconf. |
| 4224 |
for ac_file in $ac_files '' |
| 4225 |
do |
| 4226 |
test -f "$ac_file" || continue |
| 4227 |
case $ac_file in |
| 4228 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4229 |
;; |
| 4230 |
[ab].out ) |
| 4231 |
# We found the default executable, but exeext='' is most |
| 4232 |
# certainly right. |
| 4233 |
break;; |
| 4234 |
*.* ) |
| 4235 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4236 |
then :; else |
| 4237 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4238 |
fi |
| 4239 |
# We set ac_cv_exeext here because the later test for it is not |
| 4240 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 4241 |
# argument, so we may need to know it at that point already. |
| 4242 |
# Even if this section looks crufty: it has the advantage of |
| 4243 |
# actually working. |
| 4244 |
break;; |
| 4245 |
* ) |
| 4246 |
break;; |
| 4247 |
esac |
| 4248 |
done |
| 4249 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4250 |
|
| 4251 |
else $as_nop |
| 4252 |
ac_file='' |
| 4253 |
fi |
| 4254 |
if test -z "$ac_file" |
| 4255 |
then : |
| 4256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4257 |
printf "%s\n" "no" >&6; } |
| 4258 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4259 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4260 |
|
| 4261 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4262 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4263 |
as_fn_error 77 "C compiler cannot create executables |
| 4264 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4265 |
else $as_nop |
| 4266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4267 |
printf "%s\n" "yes" >&6; } |
| 4268 |
fi |
| 4269 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4270 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 4271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4272 |
printf "%s\n" "$ac_file" >&6; } |
| 4273 |
ac_exeext=$ac_cv_exeext |
| 4274 |
|
| 4275 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4276 |
ac_clean_files=$ac_clean_files_save |
| 4277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4278 |
printf %s "checking for suffix of executables... " >&6; } |
| 4279 |
if { { ac_try="$ac_link" |
| 4280 |
case "(($ac_try" in |
| 4281 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4282 |
*) ac_try_echo=$ac_try;; |
| 4283 |
esac |
| 4284 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4285 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4286 |
(eval "$ac_link") 2>&5 |
| 4287 |
ac_status=$? |
| 4288 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4289 |
test $ac_status = 0; } |
| 4290 |
then : |
| 4291 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4292 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4293 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4294 |
# `rm'. |
| 4295 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4296 |
test -f "$ac_file" || continue |
| 4297 |
case $ac_file in |
| 4298 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4299 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4300 |
break;; |
| 4301 |
* ) break;; |
| 4302 |
esac |
| 4303 |
done |
| 4304 |
else $as_nop |
| 4305 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4306 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4307 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4308 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4309 |
fi |
| 4310 |
rm -f conftest conftest$ac_cv_exeext |
| 4311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4312 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4313 |
|
| 4314 |
rm -f conftest.$ac_ext |
| 4315 |
EXEEXT=$ac_cv_exeext |
| 4316 |
ac_exeext=$EXEEXT |
| 4317 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4318 |
/* end confdefs.h. */ |
| 4319 |
#include <stdio.h> |
| 4320 |
int |
| 4321 |
main (void) |
| 4322 |
{ |
| 4323 |
FILE *f = fopen ("conftest.out", "w"); |
| 4324 |
return ferror (f) || fclose (f) != 0; |
| 4325 |
|
| 4326 |
; |
| 4327 |
return 0; |
| 4328 |
} |
| 4329 |
_ACEOF |
| 4330 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4331 |
# Check that the compiler produces executables we can run. If not, either |
| 4332 |
# the compiler is broken, or we cross compile. |
| 4333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4334 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 4335 |
if test "$cross_compiling" != yes; then |
| 4336 |
{ { ac_try="$ac_link" |
| 4337 |
case "(($ac_try" in |
| 4338 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4339 |
*) ac_try_echo=$ac_try;; |
| 4340 |
esac |
| 4341 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4342 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4343 |
(eval "$ac_link") 2>&5 |
| 4344 |
ac_status=$? |
| 4345 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4346 |
test $ac_status = 0; } |
| 4347 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4348 |
{ { case "(($ac_try" in |
| 4349 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4350 |
*) ac_try_echo=$ac_try;; |
| 4351 |
esac |
| 4352 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4353 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4354 |
(eval "$ac_try") 2>&5 |
| 4355 |
ac_status=$? |
| 4356 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4357 |
test $ac_status = 0; }; }; then |
| 4358 |
cross_compiling=no |
| 4359 |
else |
| 4360 |
if test "$cross_compiling" = maybe; then |
| 4361 |
cross_compiling=yes |
| 4362 |
else |
| 4363 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4364 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4365 |
as_fn_error 77 "cannot run C compiled programs. |
| 4366 |
If you meant to cross compile, use \`--host'. |
| 4367 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4368 |
fi |
| 4369 |
fi |
| 4370 |
fi |
| 4371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4372 |
printf "%s\n" "$cross_compiling" >&6; } |
| 4373 |
|
| 4374 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4375 |
ac_clean_files=$ac_clean_files_save |
| 4376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4377 |
printf %s "checking for suffix of object files... " >&6; } |
| 4378 |
if test ${ac_cv_objext+y} |
| 4379 |
then : |
| 4380 |
printf %s "(cached) " >&6 |
| 4381 |
else $as_nop |
| 4382 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4383 |
/* end confdefs.h. */ |
| 4384 |
|
| 4385 |
int |
| 4386 |
main (void) |
| 4387 |
{ |
| 4388 |
|
| 4389 |
; |
| 4390 |
return 0; |
| 4391 |
} |
| 4392 |
_ACEOF |
| 4393 |
rm -f conftest.o conftest.obj |
| 4394 |
if { { ac_try="$ac_compile" |
| 4395 |
case "(($ac_try" in |
| 4396 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4397 |
*) ac_try_echo=$ac_try;; |
| 4398 |
esac |
| 4399 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4400 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4401 |
(eval "$ac_compile") 2>&5 |
| 4402 |
ac_status=$? |
| 4403 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4404 |
test $ac_status = 0; } |
| 4405 |
then : |
| 4406 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4407 |
test -f "$ac_file" || continue; |
| 4408 |
case $ac_file in |
| 4409 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4410 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4411 |
break;; |
| 4412 |
esac |
| 4413 |
done |
| 4414 |
else $as_nop |
| 4415 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4416 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4417 |
|
| 4418 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4419 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4420 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4421 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4422 |
fi |
| 4423 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4424 |
fi |
| 4425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4426 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 4427 |
OBJEXT=$ac_cv_objext |
| 4428 |
ac_objext=$OBJEXT |
| 4429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4430 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4431 |
if test ${ac_cv_c_compiler_gnu+y} |
| 4432 |
then : |
| 4433 |
printf %s "(cached) " >&6 |
| 4434 |
else $as_nop |
| 4435 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4436 |
/* end confdefs.h. */ |
| 4437 |
|
| 4438 |
int |
| 4439 |
main (void) |
| 4440 |
{ |
| 4441 |
#ifndef __GNUC__ |
| 4442 |
choke me |
| 4443 |
#endif |
| 4444 |
|
| 4445 |
; |
| 4446 |
return 0; |
| 4447 |
} |
| 4448 |
_ACEOF |
| 4449 |
if ac_fn_c_try_compile "$LINENO" |
| 4450 |
then : |
| 4451 |
ac_compiler_gnu=yes |
| 4452 |
else $as_nop |
| 4453 |
ac_compiler_gnu=no |
| 4454 |
fi |
| 4455 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4456 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4457 |
|
| 4458 |
fi |
| 4459 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4460 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4461 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4462 |
|
| 4463 |
if test $ac_compiler_gnu = yes; then |
| 4464 |
GCC=yes |
| 4465 |
else |
| 4466 |
GCC= |
| 4467 |
fi |
| 4468 |
ac_test_CFLAGS=${CFLAGS+y} |
| 4469 |
ac_save_CFLAGS=$CFLAGS |
| 4470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4471 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 4472 |
if test ${ac_cv_prog_cc_g+y} |
| 4473 |
then : |
| 4474 |
printf %s "(cached) " >&6 |
| 4475 |
else $as_nop |
| 4476 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 4477 |
ac_c_werror_flag=yes |
| 4478 |
ac_cv_prog_cc_g=no |
| 4479 |
CFLAGS="-g" |
| 4480 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4481 |
/* end confdefs.h. */ |
| 4482 |
|
| 4483 |
int |
| 4484 |
main (void) |
| 4485 |
{ |
| 4486 |
|
| 4487 |
; |
| 4488 |
return 0; |
| 4489 |
} |
| 4490 |
_ACEOF |
| 4491 |
if ac_fn_c_try_compile "$LINENO" |
| 4492 |
then : |
| 4493 |
ac_cv_prog_cc_g=yes |
| 4494 |
else $as_nop |
| 4495 |
CFLAGS="" |
| 4496 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4497 |
/* end confdefs.h. */ |
| 4498 |
|
| 4499 |
int |
| 4500 |
main (void) |
| 4501 |
{ |
| 4502 |
|
| 4503 |
; |
| 4504 |
return 0; |
| 4505 |
} |
| 4506 |
_ACEOF |
| 4507 |
if ac_fn_c_try_compile "$LINENO" |
| 4508 |
then : |
| 4509 |
|
| 4510 |
else $as_nop |
| 4511 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4512 |
CFLAGS="-g" |
| 4513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4514 |
/* end confdefs.h. */ |
| 4515 |
|
| 4516 |
int |
| 4517 |
main (void) |
| 4518 |
{ |
| 4519 |
|
| 4520 |
; |
| 4521 |
return 0; |
| 4522 |
} |
| 4523 |
_ACEOF |
| 4524 |
if ac_fn_c_try_compile "$LINENO" |
| 4525 |
then : |
| 4526 |
ac_cv_prog_cc_g=yes |
| 4527 |
fi |
| 4528 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4529 |
fi |
| 4530 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4531 |
fi |
| 4532 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4533 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4534 |
fi |
| 4535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4536 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4537 |
if test $ac_test_CFLAGS; then |
| 4538 |
CFLAGS=$ac_save_CFLAGS |
| 4539 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4540 |
if test "$GCC" = yes; then |
| 4541 |
CFLAGS="-g -O2" |
| 4542 |
else |
| 4543 |
CFLAGS="-g" |
| 4544 |
fi |
| 4545 |
else |
| 4546 |
if test "$GCC" = yes; then |
| 4547 |
CFLAGS="-O2" |
| 4548 |
else |
| 4549 |
CFLAGS= |
| 4550 |
fi |
| 4551 |
fi |
| 4552 |
ac_prog_cc_stdc=no |
| 4553 |
if test x$ac_prog_cc_stdc = xno |
| 4554 |
then : |
| 4555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4556 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4557 |
if test ${ac_cv_prog_cc_c11+y} |
| 4558 |
then : |
| 4559 |
printf %s "(cached) " >&6 |
| 4560 |
else $as_nop |
| 4561 |
ac_cv_prog_cc_c11=no |
| 4562 |
ac_save_CC=$CC |
| 4563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4564 |
/* end confdefs.h. */ |
| 4565 |
$ac_c_conftest_c11_program |
| 4566 |
_ACEOF |
| 4567 |
for ac_arg in '' -std=gnu11 |
| 4568 |
do |
| 4569 |
CC="$ac_save_CC $ac_arg" |
| 4570 |
if ac_fn_c_try_compile "$LINENO" |
| 4571 |
then : |
| 4572 |
ac_cv_prog_cc_c11=$ac_arg |
| 4573 |
fi |
| 4574 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4575 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4576 |
done |
| 4577 |
rm -f conftest.$ac_ext |
| 4578 |
CC=$ac_save_CC |
| 4579 |
fi |
| 4580 |
|
| 4581 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 4582 |
then : |
| 4583 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4584 |
printf "%s\n" "unsupported" >&6; } |
| 4585 |
else $as_nop |
| 4586 |
if test "x$ac_cv_prog_cc_c11" = x |
| 4587 |
then : |
| 4588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4589 |
printf "%s\n" "none needed" >&6; } |
| 4590 |
else $as_nop |
| 4591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4592 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4593 |
CC="$CC $ac_cv_prog_cc_c11" |
| 4594 |
fi |
| 4595 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4596 |
ac_prog_cc_stdc=c11 |
| 4597 |
fi |
| 4598 |
fi |
| 4599 |
if test x$ac_prog_cc_stdc = xno |
| 4600 |
then : |
| 4601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4602 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4603 |
if test ${ac_cv_prog_cc_c99+y} |
| 4604 |
then : |
| 4605 |
printf %s "(cached) " >&6 |
| 4606 |
else $as_nop |
| 4607 |
ac_cv_prog_cc_c99=no |
| 4608 |
ac_save_CC=$CC |
| 4609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4610 |
/* end confdefs.h. */ |
| 4611 |
$ac_c_conftest_c99_program |
| 4612 |
_ACEOF |
| 4613 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4614 |
do |
| 4615 |
CC="$ac_save_CC $ac_arg" |
| 4616 |
if ac_fn_c_try_compile "$LINENO" |
| 4617 |
then : |
| 4618 |
ac_cv_prog_cc_c99=$ac_arg |
| 4619 |
fi |
| 4620 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4621 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4622 |
done |
| 4623 |
rm -f conftest.$ac_ext |
| 4624 |
CC=$ac_save_CC |
| 4625 |
fi |
| 4626 |
|
| 4627 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 4628 |
then : |
| 4629 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4630 |
printf "%s\n" "unsupported" >&6; } |
| 4631 |
else $as_nop |
| 4632 |
if test "x$ac_cv_prog_cc_c99" = x |
| 4633 |
then : |
| 4634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4635 |
printf "%s\n" "none needed" >&6; } |
| 4636 |
else $as_nop |
| 4637 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4638 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4639 |
CC="$CC $ac_cv_prog_cc_c99" |
| 4640 |
fi |
| 4641 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4642 |
ac_prog_cc_stdc=c99 |
| 4643 |
fi |
| 4644 |
fi |
| 4645 |
if test x$ac_prog_cc_stdc = xno |
| 4646 |
then : |
| 4647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4648 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4649 |
if test ${ac_cv_prog_cc_c89+y} |
| 4650 |
then : |
| 4651 |
printf %s "(cached) " >&6 |
| 4652 |
else $as_nop |
| 4653 |
ac_cv_prog_cc_c89=no |
| 4654 |
ac_save_CC=$CC |
| 4655 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4656 |
/* end confdefs.h. */ |
| 4657 |
$ac_c_conftest_c89_program |
| 4658 |
_ACEOF |
| 4659 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4660 |
do |
| 4661 |
CC="$ac_save_CC $ac_arg" |
| 4662 |
if ac_fn_c_try_compile "$LINENO" |
| 4663 |
then : |
| 4664 |
ac_cv_prog_cc_c89=$ac_arg |
| 4665 |
fi |
| 4666 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4667 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4668 |
done |
| 4669 |
rm -f conftest.$ac_ext |
| 4670 |
CC=$ac_save_CC |
| 4671 |
fi |
| 4672 |
|
| 4673 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 4674 |
then : |
| 4675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4676 |
printf "%s\n" "unsupported" >&6; } |
| 4677 |
else $as_nop |
| 4678 |
if test "x$ac_cv_prog_cc_c89" = x |
| 4679 |
then : |
| 4680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4681 |
printf "%s\n" "none needed" >&6; } |
| 4682 |
else $as_nop |
| 4683 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4684 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4685 |
CC="$CC $ac_cv_prog_cc_c89" |
| 4686 |
fi |
| 4687 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4688 |
ac_prog_cc_stdc=c89 |
| 4689 |
fi |
| 4690 |
fi |
| 4691 |
|
| 4692 |
ac_ext=c |
| 4693 |
ac_cpp='$CPP $CPPFLAGS' |
| 4694 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4695 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4696 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4697 |
|
| 4698 |
ac_ext=c |
| 4699 |
ac_cpp='$CPP $CPPFLAGS' |
| 4700 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4701 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4702 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4704 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 4705 |
# On Suns, sometimes $CPP names a directory. |
| 4706 |
if test -n "$CPP" && test -d "$CPP"; then |
| 4707 |
CPP= |
| 4708 |
fi |
| 4709 |
if test -z "$CPP"; then |
| 4710 |
if test ${ac_cv_prog_CPP+y} |
| 4711 |
then : |
| 4712 |
printf %s "(cached) " >&6 |
| 4713 |
else $as_nop |
| 4714 |
# Double quotes because $CC needs to be expanded |
| 4715 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 4716 |
do |
| 4717 |
ac_preproc_ok=false |
| 4718 |
for ac_c_preproc_warn_flag in '' yes |
| 4719 |
do |
| 4720 |
# Use a header file that comes with gcc, so configuring glibc |
| 4721 |
# with a fresh cross-compiler works. |
| 4722 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4723 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4724 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4725 |
/* end confdefs.h. */ |
| 4726 |
#include <limits.h> |
| 4727 |
Syntax error |
| 4728 |
_ACEOF |
| 4729 |
if ac_fn_c_try_cpp "$LINENO" |
| 4730 |
then : |
| 4731 |
|
| 4732 |
else $as_nop |
| 4733 |
# Broken: fails on valid input. |
| 4734 |
continue |
| 4735 |
fi |
| 4736 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4737 |
|
| 4738 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4739 |
# can be detected and how. |
| 4740 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4741 |
/* end confdefs.h. */ |
| 4742 |
#include <ac_nonexistent.h> |
| 4743 |
_ACEOF |
| 4744 |
if ac_fn_c_try_cpp "$LINENO" |
| 4745 |
then : |
| 4746 |
# Broken: success on invalid input. |
| 4747 |
continue |
| 4748 |
else $as_nop |
| 4749 |
# Passes both tests. |
| 4750 |
ac_preproc_ok=: |
| 4751 |
break |
| 4752 |
fi |
| 4753 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4754 |
|
| 4755 |
done |
| 4756 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4757 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4758 |
if $ac_preproc_ok |
| 4759 |
then : |
| 4760 |
break |
| 4761 |
fi |
| 4762 |
|
| 4763 |
done |
| 4764 |
ac_cv_prog_CPP=$CPP |
| 4765 |
|
| 4766 |
fi |
| 4767 |
CPP=$ac_cv_prog_CPP |
| 4768 |
else |
| 4769 |
ac_cv_prog_CPP=$CPP |
| 4770 |
fi |
| 4771 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4772 |
printf "%s\n" "$CPP" >&6; } |
| 4773 |
ac_preproc_ok=false |
| 4774 |
for ac_c_preproc_warn_flag in '' yes |
| 4775 |
do |
| 4776 |
# Use a header file that comes with gcc, so configuring glibc |
| 4777 |
# with a fresh cross-compiler works. |
| 4778 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4779 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4780 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4781 |
/* end confdefs.h. */ |
| 4782 |
#include <limits.h> |
| 4783 |
Syntax error |
| 4784 |
_ACEOF |
| 4785 |
if ac_fn_c_try_cpp "$LINENO" |
| 4786 |
then : |
| 4787 |
|
| 4788 |
else $as_nop |
| 4789 |
# Broken: fails on valid input. |
| 4790 |
continue |
| 4791 |
fi |
| 4792 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4793 |
|
| 4794 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4795 |
# can be detected and how. |
| 4796 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4797 |
/* end confdefs.h. */ |
| 4798 |
#include <ac_nonexistent.h> |
| 4799 |
_ACEOF |
| 4800 |
if ac_fn_c_try_cpp "$LINENO" |
| 4801 |
then : |
| 4802 |
# Broken: success on invalid input. |
| 4803 |
continue |
| 4804 |
else $as_nop |
| 4805 |
# Passes both tests. |
| 4806 |
ac_preproc_ok=: |
| 4807 |
break |
| 4808 |
fi |
| 4809 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4810 |
|
| 4811 |
done |
| 4812 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4813 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4814 |
if $ac_preproc_ok |
| 4815 |
then : |
| 4816 |
|
| 4817 |
else $as_nop |
| 4818 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4819 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4820 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4821 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4822 |
fi |
| 4823 |
|
| 4824 |
ac_ext=c |
| 4825 |
ac_cpp='$CPP $CPPFLAGS' |
| 4826 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4827 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4828 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4829 |
|
| 4830 |
CFLAGS="$save_cflags" |
| 4831 |
|
| 4832 |
AUXFLAGS_MAK_LINE00="CCAUX=@CC@" |
| 4833 |
AUXFLAGS_MAK_LINE01="GCFLAGSAUX=@CPPFLAGS@ @GCFLAGS@ @CFLAGS@" |
| 4834 |
AUXFLAGS_MAK_LINE02="CAPOPTAUX=" |
| 4835 |
AUXFLAGS_MAK_LINE03="CFLAGSAUX_STANDARD=@OPT_CFLAGS@" |
| 4836 |
AUXFLAGS_MAK_LINE04="CFLAGSAUX_DEBUG=@DBG_CFLAGS@" |
| 4837 |
AUXFLAGS_MAK_LINE05="CFLAGSAUX_PROFILE=-pg @OPT_CFLAGS@" |
| 4838 |
AUXFLAGS_MAK_LINE06="LDFLAGSAUX=@LDFLAGS@" |
| 4839 |
AUXFLAGS_MAK_LINE07="AUXEXTRALIBS=@LIBS@" |
| 4840 |
|
| 4841 |
GCFLAGSAUXTMP="\$(GCFLAGS)" |
| 4842 |
CAPOPTAUXTMP="\$(CAPOPT)" |
| 4843 |
CFLAGSAUX_STANDARDTMP="\$(CFLAGS_STANDARD)" |
| 4844 |
CFLAGSAUX_DEBUGTMP="\$(CFLAGS_DEBUG)" |
| 4845 |
CFLAGSAUX_PROFILETMP="\$(CFLAGS_PROFILE)" |
| 4846 |
LDFLAGSAUXTMP="\$(LDFLAGS)" |
| 4847 |
AUXEXTRALIBSTMP="\$(EXTRALIBS)" |
| 4848 |
|
| 4849 |
# purposefully do not include "help" output for this |
| 4850 |
# Check whether --enable-save_confaux was given. |
| 4851 |
if test ${enable_save_confaux+y} |
| 4852 |
then : |
| 4853 |
enableval=$enable_save_confaux; |
| 4854 |
fi |
| 4855 |
|
| 4856 |
# Check whether --enable-auxtools_only was given. |
| 4857 |
if test ${enable_auxtools_only+y} |
| 4858 |
then : |
| 4859 |
enableval=$enable_auxtools_only; |
| 4860 |
fi |
| 4861 |
|
| 4862 |
|
| 4863 |
absolute_source_path=$(cd "$(dirname "$0")" && pwd) |
| 4864 |
|
| 4865 |
if test x"$host" != x"$build" ; then |
| 4866 |
# rerun configure for the AUX tools, disabling a load of tests not relevant for CCAUX |
| 4867 |
olddir=`pwd` |
| 4868 |
if test x"$enable_save_confaux" = x"yes"; then |
| 4869 |
CONFAUXDIR=auxtmp |
| 4870 |
else |
| 4871 |
CONFAUXDIR=auxtmp$RANDOM$RANDOM |
| 4872 |
fi |
| 4873 |
mkdir $CONFAUXDIR |
| 4874 |
cd $CONFAUXDIR |
| 4875 |
echo -e $AUXFLAGS_MAK_CONTENTS > $AUXFLAGS_MAK.in |
| 4876 |
echo $AUXFLAGS_MAK_LINE00 > $AUXFLAGS_MAK.in |
| 4877 |
echo $AUXFLAGS_MAK_LINE01 >> $AUXFLAGS_MAK.in |
| 4878 |
echo $AUXFLAGS_MAK_LINE02 >> $AUXFLAGS_MAK.in |
| 4879 |
echo $AUXFLAGS_MAK_LINE03 >> $AUXFLAGS_MAK.in |
| 4880 |
echo $AUXFLAGS_MAK_LINE04 >> $AUXFLAGS_MAK.in |
| 4881 |
echo $AUXFLAGS_MAK_LINE05 >> $AUXFLAGS_MAK.in |
| 4882 |
echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in |
| 4883 |
echo $AUXFLAGS_MAK_LINE07 >> $AUXFLAGS_MAK.in |
| 4884 |
|
| 4885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Begin recursive call to configure script (for auxiliary tools)" >&5 |
| 4886 |
printf "%s\n" "$as_me: Begin recursive call to configure script (for auxiliary tools)" >&6;} |
| 4887 |
"$absolute_source_path/configure" CC="$CCAUX" CFLAGS="$CFLAGSAUX" CPPFLAGS="$CPPFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host=$build --build=$build --enable-auxtools_only --disable-hidden-visibility --with-local-zlib --with-local-brotli --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-jbig2dec --without-x --with-drivers="" |
| 4888 |
status=$? |
| 4889 |
cp config.log "$olddir/configaux.log" |
| 4890 |
if test $status -eq 0 ; then |
| 4891 |
CCAUX=$(grep CCAUX $AUXFLAGS_MAK | sed "s/CCAUX=//g") |
| 4892 |
GCFLAGSAUXTMP=$(grep GCFLAGSAUX $AUXFLAGS_MAK | sed "s/GCFLAGSAUX=//g") |
| 4893 |
CAPOPTAUXTMP=$(grep CAPOPTAUX $AUXFLAGS_MAK | sed "s/CAPOPTAUX=//g") |
| 4894 |
CFLAGSAUX_STANDARDTMP=$(grep CFLAGSAUX_STANDARD $AUXFLAGS_MAK | sed "s/CFLAGSAUX_STANDARD=//g") |
| 4895 |
CFLAGSAUX_DEBUGTMP=$(grep CFLAGSAUX_DEBUG $AUXFLAGS_MAK | sed "s/CFLAGSAUX_DEBUG=//g") |
| 4896 |
CFLAGS_PROFILETMP=$(grep CFLAGS_PROFILE $AUXFLAGS_MAK | sed "s/CFLAGS_PROFILE=//g") |
| 4897 |
LDFLAGSAUXTMP=$(grep LDFLAGSAUX $AUXFLAGS_MAK | sed "s/LDFLAGSAUX=//g") |
| 4898 |
AUXEXTRALIBSTMP=$(grep AUXEXTRALIBS$ $AUXFLAGS_MAK | sed "s/AUXEXTRALIBS$=//g") |
| 4899 |
fi |
| 4900 |
cd "$olddir" |
| 4901 |
|
| 4902 |
if test x"$enable_save_confaux" != x"yes"; then |
| 4903 |
rm -rf $CONFAUXDIR |
| 4904 |
fi |
| 4905 |
|
| 4906 |
if test $status -ne 0 ; then |
| 4907 |
as_fn_error $status "Recursive call to configure script failed" "$LINENO" 5 |
| 4908 |
else |
| 4909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Recursive call to configure script succeeded" >&5 |
| 4910 |
printf "%s\n" "$as_me: Recursive call to configure script succeeded" >&6;} |
| 4911 |
fi |
| 4912 |
fi |
| 4913 |
|
| 4914 |
GCFLAGSAUX=$GCFLAGSAUXTMP |
| 4915 |
CAPOPTAUX=$CAPOPTAUXTMP |
| 4916 |
CFLAGSAUX_STANDARD=$CFLAGSAUX_STANDARDTMP |
| 4917 |
CFLAGSAUX_DEBUG=$CFLAGSAUX_DEBUGTMP |
| 4918 |
CFLAGS_PROFILE=$CFLAGS_PROFILETMP |
| 4919 |
LDFLAGSAUX=$LDFLAGSAUXTMP |
| 4920 |
AUXEXTRALIBS=$AUXEXTRALIBSTMP |
| 4921 |
|
| 4922 |
# we have to do this here in case it took |
| 4923 |
# AC_PROG_CC to set CC (as it usually does) |
| 4924 |
CCAUX="${CCAUX:-$CC}" |
| 4925 |
|
| 4926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4927 |
printf %s "checking for a sed that does not truncate output... " >&6; } |
| 4928 |
if test ${ac_cv_path_SED+y} |
| 4929 |
then : |
| 4930 |
printf %s "(cached) " >&6 |
| 4931 |
else $as_nop |
| 4932 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4933 |
for ac_i in 1 2 3 4 5 6 7; do |
| 4934 |
ac_script="$ac_script$as_nl$ac_script" |
| 4935 |
done |
| 4936 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4937 |
{ ac_script=; unset ac_script;} |
| 4938 |
if test -z "$SED"; then |
| 4939 |
ac_path_SED_found=false |
| 4940 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4941 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4942 |
for as_dir in $PATH |
| 4943 |
do |
| 4944 |
IFS=$as_save_IFS |
| 4945 |
case $as_dir in #((( |
| 4946 |
'') as_dir=./ ;; |
| 4947 |
*/) ;; |
| 4948 |
*) as_dir=$as_dir/ ;; |
| 4949 |
esac |
| 4950 |
for ac_prog in sed gsed |
| 4951 |
do |
| 4952 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4953 |
ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 4954 |
as_fn_executable_p "$ac_path_SED" || continue |
| 4955 |
# Check for GNU ac_path_SED and select it if it is found. |
| 4956 |
# Check for GNU $ac_path_SED |
| 4957 |
case `"$ac_path_SED" --version 2>&1` in |
| 4958 |
*GNU*) |
| 4959 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4960 |
*) |
| 4961 |
ac_count=0 |
| 4962 |
printf %s 0123456789 >"conftest.in" |
| 4963 |
while : |
| 4964 |
do |
| 4965 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4966 |
mv "conftest.tmp" "conftest.in" |
| 4967 |
cp "conftest.in" "conftest.nl" |
| 4968 |
printf "%s\n" '' >> "conftest.nl" |
| 4969 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4970 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4971 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4972 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4973 |
# Best one so far, save it but keep looking for a better one |
| 4974 |
ac_cv_path_SED="$ac_path_SED" |
| 4975 |
ac_path_SED_max=$ac_count |
| 4976 |
fi |
| 4977 |
# 10*(2^10) chars as input seems more than enough |
| 4978 |
test $ac_count -gt 10 && break |
| 4979 |
done |
| 4980 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4981 |
esac |
| 4982 |
|
| 4983 |
$ac_path_SED_found && break 3 |
| 4984 |
done |
| 4985 |
done |
| 4986 |
done |
| 4987 |
IFS=$as_save_IFS |
| 4988 |
if test -z "$ac_cv_path_SED"; then |
| 4989 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4990 |
fi |
| 4991 |
else |
| 4992 |
ac_cv_path_SED=$SED |
| 4993 |
fi |
| 4994 |
|
| 4995 |
fi |
| 4996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4997 |
printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 4998 |
SED="$ac_cv_path_SED" |
| 4999 |
rm -f conftest.sed |
| 5000 |
|
| 5001 |
SED_EXTENDED_REGEX_OPT=-nre |
| 5002 |
sed_variant=`sed --version 2>&1` |
| 5003 |
sed_variant=`echo $sed_variant|sed -e 's/ .*//'` |
| 5004 |
if test "$sed_variant" != GNU ; then |
| 5005 |
SED_EXTENDED_REGEX_OPT=-nEe |
| 5006 |
fi |
| 5007 |
|
| 5008 |
|
| 5009 |
if test -n "$ac_tool_prefix"; then |
| 5010 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5011 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5012 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5013 |
printf %s "checking for $ac_word... " >&6; } |
| 5014 |
if test ${ac_cv_prog_RANLIB+y} |
| 5015 |
then : |
| 5016 |
printf %s "(cached) " >&6 |
| 5017 |
else $as_nop |
| 5018 |
if test -n "$RANLIB"; then |
| 5019 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5020 |
else |
| 5021 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5022 |
for as_dir in $PATH |
| 5023 |
do |
| 5024 |
IFS=$as_save_IFS |
| 5025 |
case $as_dir in #((( |
| 5026 |
'') as_dir=./ ;; |
| 5027 |
*/) ;; |
| 5028 |
*) as_dir=$as_dir/ ;; |
| 5029 |
esac |
| 5030 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5031 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5032 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5033 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5034 |
break 2 |
| 5035 |
fi |
| 5036 |
done |
| 5037 |
done |
| 5038 |
IFS=$as_save_IFS |
| 5039 |
|
| 5040 |
fi |
| 5041 |
fi |
| 5042 |
RANLIB=$ac_cv_prog_RANLIB |
| 5043 |
if test -n "$RANLIB"; then |
| 5044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5045 |
printf "%s\n" "$RANLIB" >&6; } |
| 5046 |
else |
| 5047 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5048 |
printf "%s\n" "no" >&6; } |
| 5049 |
fi |
| 5050 |
|
| 5051 |
|
| 5052 |
fi |
| 5053 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 5054 |
ac_ct_RANLIB=$RANLIB |
| 5055 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 5056 |
set dummy ranlib; ac_word=$2 |
| 5057 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5058 |
printf %s "checking for $ac_word... " >&6; } |
| 5059 |
if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 5060 |
then : |
| 5061 |
printf %s "(cached) " >&6 |
| 5062 |
else $as_nop |
| 5063 |
if test -n "$ac_ct_RANLIB"; then |
| 5064 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5065 |
else |
| 5066 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5067 |
for as_dir in $PATH |
| 5068 |
do |
| 5069 |
IFS=$as_save_IFS |
| 5070 |
case $as_dir in #((( |
| 5071 |
'') as_dir=./ ;; |
| 5072 |
*/) ;; |
| 5073 |
*) as_dir=$as_dir/ ;; |
| 5074 |
esac |
| 5075 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5076 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5077 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5078 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5079 |
break 2 |
| 5080 |
fi |
| 5081 |
done |
| 5082 |
done |
| 5083 |
IFS=$as_save_IFS |
| 5084 |
|
| 5085 |
fi |
| 5086 |
fi |
| 5087 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5088 |
if test -n "$ac_ct_RANLIB"; then |
| 5089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5090 |
printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 5091 |
else |
| 5092 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5093 |
printf "%s\n" "no" >&6; } |
| 5094 |
fi |
| 5095 |
|
| 5096 |
if test "x$ac_ct_RANLIB" = x; then |
| 5097 |
RANLIB=":" |
| 5098 |
else |
| 5099 |
case $cross_compiling:$ac_tool_warned in |
| 5100 |
yes:) |
| 5101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5102 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5103 |
ac_tool_warned=yes ;; |
| 5104 |
esac |
| 5105 |
RANLIB=$ac_ct_RANLIB |
| 5106 |
fi |
| 5107 |
else |
| 5108 |
RANLIB="$ac_cv_prog_RANLIB" |
| 5109 |
fi |
| 5110 |
|
| 5111 |
#AC_PROG_INSTALL |
| 5112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5113 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5114 |
if test ${ac_cv_path_GREP+y} |
| 5115 |
then : |
| 5116 |
printf %s "(cached) " >&6 |
| 5117 |
else $as_nop |
| 5118 |
if test -z "$GREP"; then |
| 5119 |
ac_path_GREP_found=false |
| 5120 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5121 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5123 |
do |
| 5124 |
IFS=$as_save_IFS |
| 5125 |
case $as_dir in #((( |
| 5126 |
'') as_dir=./ ;; |
| 5127 |
*/) ;; |
| 5128 |
*) as_dir=$as_dir/ ;; |
| 5129 |
esac |
| 5130 |
for ac_prog in grep ggrep |
| 5131 |
do |
| 5132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5133 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 5134 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 5135 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 5136 |
# Check for GNU $ac_path_GREP |
| 5137 |
case `"$ac_path_GREP" --version 2>&1` in |
| 5138 |
*GNU*) |
| 5139 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5140 |
*) |
| 5141 |
ac_count=0 |
| 5142 |
printf %s 0123456789 >"conftest.in" |
| 5143 |
while : |
| 5144 |
do |
| 5145 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5146 |
mv "conftest.tmp" "conftest.in" |
| 5147 |
cp "conftest.in" "conftest.nl" |
| 5148 |
printf "%s\n" 'GREP' >> "conftest.nl" |
| 5149 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5150 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5151 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5152 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5153 |
# Best one so far, save it but keep looking for a better one |
| 5154 |
ac_cv_path_GREP="$ac_path_GREP" |
| 5155 |
ac_path_GREP_max=$ac_count |
| 5156 |
fi |
| 5157 |
# 10*(2^10) chars as input seems more than enough |
| 5158 |
test $ac_count -gt 10 && break |
| 5159 |
done |
| 5160 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5161 |
esac |
| 5162 |
|
| 5163 |
$ac_path_GREP_found && break 3 |
| 5164 |
done |
| 5165 |
done |
| 5166 |
done |
| 5167 |
IFS=$as_save_IFS |
| 5168 |
if test -z "$ac_cv_path_GREP"; then |
| 5169 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5170 |
fi |
| 5171 |
else |
| 5172 |
ac_cv_path_GREP=$GREP |
| 5173 |
fi |
| 5174 |
|
| 5175 |
fi |
| 5176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5177 |
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 5178 |
GREP="$ac_cv_path_GREP" |
| 5179 |
|
| 5180 |
|
| 5181 |
|
| 5182 |
# If the caller has gives a specific pkg-config to use, then |
| 5183 |
# use it, and skip the tests. |
| 5184 |
if test x"$PKGCONFIG" != x"" ; then |
| 5185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $PKGCONFIG" >&5 |
| 5186 |
printf "%s\n" "$as_me: Using $PKGCONFIG" >&6;} |
| 5187 |
else |
| 5188 |
# this is an unpleasant hack |
| 5189 |
# but if we are cross compiling, and there isn't a matching |
| 5190 |
# pkconfig for the --host setting, then don't use the 'local' |
| 5191 |
# pkconfig at all |
| 5192 |
if test -n "$ac_tool_prefix"; then |
| 5193 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5194 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5196 |
printf %s "checking for $ac_word... " >&6; } |
| 5197 |
if test ${ac_cv_path_PKGCONFIG+y} |
| 5198 |
then : |
| 5199 |
printf %s "(cached) " >&6 |
| 5200 |
else $as_nop |
| 5201 |
case $PKGCONFIG in |
| 5202 |
[\\/]* | ?:[\\/]*) |
| 5203 |
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 5204 |
;; |
| 5205 |
*) |
| 5206 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5207 |
for as_dir in $PATH |
| 5208 |
do |
| 5209 |
IFS=$as_save_IFS |
| 5210 |
case $as_dir in #((( |
| 5211 |
'') as_dir=./ ;; |
| 5212 |
*/) ;; |
| 5213 |
*) as_dir=$as_dir/ ;; |
| 5214 |
esac |
| 5215 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5216 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5217 |
ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 5218 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5219 |
break 2 |
| 5220 |
fi |
| 5221 |
done |
| 5222 |
done |
| 5223 |
IFS=$as_save_IFS |
| 5224 |
|
| 5225 |
;; |
| 5226 |
esac |
| 5227 |
fi |
| 5228 |
PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 5229 |
if test -n "$PKGCONFIG"; then |
| 5230 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 5231 |
printf "%s\n" "$PKGCONFIG" >&6; } |
| 5232 |
else |
| 5233 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5234 |
printf "%s\n" "no" >&6; } |
| 5235 |
fi |
| 5236 |
|
| 5237 |
|
| 5238 |
fi |
| 5239 |
if test -z "$ac_cv_path_PKGCONFIG"; then |
| 5240 |
ac_pt_PKGCONFIG=$PKGCONFIG |
| 5241 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 5242 |
set dummy pkg-config; ac_word=$2 |
| 5243 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5244 |
printf %s "checking for $ac_word... " >&6; } |
| 5245 |
if test ${ac_cv_path_ac_pt_PKGCONFIG+y} |
| 5246 |
then : |
| 5247 |
printf %s "(cached) " >&6 |
| 5248 |
else $as_nop |
| 5249 |
case $ac_pt_PKGCONFIG in |
| 5250 |
[\\/]* | ?:[\\/]*) |
| 5251 |
ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 5252 |
;; |
| 5253 |
*) |
| 5254 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5255 |
for as_dir in $PATH |
| 5256 |
do |
| 5257 |
IFS=$as_save_IFS |
| 5258 |
case $as_dir in #((( |
| 5259 |
'') as_dir=./ ;; |
| 5260 |
*/) ;; |
| 5261 |
*) as_dir=$as_dir/ ;; |
| 5262 |
esac |
| 5263 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5264 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5265 |
ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 5266 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5267 |
break 2 |
| 5268 |
fi |
| 5269 |
done |
| 5270 |
done |
| 5271 |
IFS=$as_save_IFS |
| 5272 |
|
| 5273 |
;; |
| 5274 |
esac |
| 5275 |
fi |
| 5276 |
ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 5277 |
if test -n "$ac_pt_PKGCONFIG"; then |
| 5278 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 5279 |
printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } |
| 5280 |
else |
| 5281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5282 |
printf "%s\n" "no" >&6; } |
| 5283 |
fi |
| 5284 |
|
| 5285 |
if test "x$ac_pt_PKGCONFIG" = x; then |
| 5286 |
PKGCONFIG="" |
| 5287 |
else |
| 5288 |
case $cross_compiling:$ac_tool_warned in |
| 5289 |
yes:) |
| 5290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5291 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5292 |
ac_tool_warned=yes ;; |
| 5293 |
esac |
| 5294 |
PKGCONFIG=$ac_pt_PKGCONFIG |
| 5295 |
fi |
| 5296 |
else |
| 5297 |
PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 5298 |
fi |
| 5299 |
|
| 5300 |
if test x"$host" != x"$build" ; then |
| 5301 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 5302 |
set dummy pkg-config; ac_word=$2 |
| 5303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5304 |
printf %s "checking for $ac_word... " >&6; } |
| 5305 |
if test ${ac_cv_path_BUILD_PKGCONFIG+y} |
| 5306 |
then : |
| 5307 |
printf %s "(cached) " >&6 |
| 5308 |
else $as_nop |
| 5309 |
case $BUILD_PKGCONFIG in |
| 5310 |
[\\/]* | ?:[\\/]*) |
| 5311 |
ac_cv_path_BUILD_PKGCONFIG="$BUILD_PKGCONFIG" # Let the user override the test with a path. |
| 5312 |
;; |
| 5313 |
*) |
| 5314 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5315 |
for as_dir in $PATH |
| 5316 |
do |
| 5317 |
IFS=$as_save_IFS |
| 5318 |
case $as_dir in #((( |
| 5319 |
'') as_dir=./ ;; |
| 5320 |
*/) ;; |
| 5321 |
*) as_dir=$as_dir/ ;; |
| 5322 |
esac |
| 5323 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5324 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5325 |
ac_cv_path_BUILD_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 5326 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5327 |
break 2 |
| 5328 |
fi |
| 5329 |
done |
| 5330 |
done |
| 5331 |
IFS=$as_save_IFS |
| 5332 |
|
| 5333 |
;; |
| 5334 |
esac |
| 5335 |
fi |
| 5336 |
BUILD_PKGCONFIG=$ac_cv_path_BUILD_PKGCONFIG |
| 5337 |
if test -n "$BUILD_PKGCONFIG"; then |
| 5338 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_PKGCONFIG" >&5 |
| 5339 |
printf "%s\n" "$BUILD_PKGCONFIG" >&6; } |
| 5340 |
else |
| 5341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5342 |
printf "%s\n" "no" >&6; } |
| 5343 |
fi |
| 5344 |
|
| 5345 |
|
| 5346 |
if test x"$BUILD_PKGCONFIG" = x"$PKGCONFIG" ; then |
| 5347 |
PKGCONFIG= |
| 5348 |
fi |
| 5349 |
fi |
| 5350 |
fi |
| 5351 |
|
| 5352 |
if test -n "$ac_tool_prefix"; then |
| 5353 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5354 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5356 |
printf %s "checking for $ac_word... " >&6; } |
| 5357 |
if test ${ac_cv_path_STRIP_XE+y} |
| 5358 |
then : |
| 5359 |
printf %s "(cached) " >&6 |
| 5360 |
else $as_nop |
| 5361 |
case $STRIP_XE in |
| 5362 |
[\\/]* | ?:[\\/]*) |
| 5363 |
ac_cv_path_STRIP_XE="$STRIP_XE" # Let the user override the test with a path. |
| 5364 |
;; |
| 5365 |
*) |
| 5366 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5367 |
for as_dir in $PATH |
| 5368 |
do |
| 5369 |
IFS=$as_save_IFS |
| 5370 |
case $as_dir in #((( |
| 5371 |
'') as_dir=./ ;; |
| 5372 |
*/) ;; |
| 5373 |
*) as_dir=$as_dir/ ;; |
| 5374 |
esac |
| 5375 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5376 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5377 |
ac_cv_path_STRIP_XE="$as_dir$ac_word$ac_exec_ext" |
| 5378 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5379 |
break 2 |
| 5380 |
fi |
| 5381 |
done |
| 5382 |
done |
| 5383 |
IFS=$as_save_IFS |
| 5384 |
|
| 5385 |
;; |
| 5386 |
esac |
| 5387 |
fi |
| 5388 |
STRIP_XE=$ac_cv_path_STRIP_XE |
| 5389 |
if test -n "$STRIP_XE"; then |
| 5390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP_XE" >&5 |
| 5391 |
printf "%s\n" "$STRIP_XE" >&6; } |
| 5392 |
else |
| 5393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5394 |
printf "%s\n" "no" >&6; } |
| 5395 |
fi |
| 5396 |
|
| 5397 |
|
| 5398 |
fi |
| 5399 |
if test -z "$ac_cv_path_STRIP_XE"; then |
| 5400 |
ac_pt_STRIP_XE=$STRIP_XE |
| 5401 |
# Extract the first word of "strip", so it can be a program name with args. |
| 5402 |
set dummy strip; ac_word=$2 |
| 5403 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5404 |
printf %s "checking for $ac_word... " >&6; } |
| 5405 |
if test ${ac_cv_path_ac_pt_STRIP_XE+y} |
| 5406 |
then : |
| 5407 |
printf %s "(cached) " >&6 |
| 5408 |
else $as_nop |
| 5409 |
case $ac_pt_STRIP_XE in |
| 5410 |
[\\/]* | ?:[\\/]*) |
| 5411 |
ac_cv_path_ac_pt_STRIP_XE="$ac_pt_STRIP_XE" # Let the user override the test with a path. |
| 5412 |
;; |
| 5413 |
*) |
| 5414 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5415 |
for as_dir in $PATH |
| 5416 |
do |
| 5417 |
IFS=$as_save_IFS |
| 5418 |
case $as_dir in #((( |
| 5419 |
'') as_dir=./ ;; |
| 5420 |
*/) ;; |
| 5421 |
*) as_dir=$as_dir/ ;; |
| 5422 |
esac |
| 5423 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5424 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5425 |
ac_cv_path_ac_pt_STRIP_XE="$as_dir$ac_word$ac_exec_ext" |
| 5426 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5427 |
break 2 |
| 5428 |
fi |
| 5429 |
done |
| 5430 |
done |
| 5431 |
IFS=$as_save_IFS |
| 5432 |
|
| 5433 |
;; |
| 5434 |
esac |
| 5435 |
fi |
| 5436 |
ac_pt_STRIP_XE=$ac_cv_path_ac_pt_STRIP_XE |
| 5437 |
if test -n "$ac_pt_STRIP_XE"; then |
| 5438 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_STRIP_XE" >&5 |
| 5439 |
printf "%s\n" "$ac_pt_STRIP_XE" >&6; } |
| 5440 |
else |
| 5441 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5442 |
printf "%s\n" "no" >&6; } |
| 5443 |
fi |
| 5444 |
|
| 5445 |
if test "x$ac_pt_STRIP_XE" = x; then |
| 5446 |
STRIP_XE="" |
| 5447 |
else |
| 5448 |
case $cross_compiling:$ac_tool_warned in |
| 5449 |
yes:) |
| 5450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5451 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5452 |
ac_tool_warned=yes ;; |
| 5453 |
esac |
| 5454 |
STRIP_XE=$ac_pt_STRIP_XE |
| 5455 |
fi |
| 5456 |
else |
| 5457 |
STRIP_XE="$ac_cv_path_STRIP_XE" |
| 5458 |
fi |
| 5459 |
|
| 5460 |
|
| 5461 |
# this is an unpleasant hack |
| 5462 |
# but if we are cross compiling, and there isn't a matching |
| 5463 |
# pkconfig for the --host setting, then don't use the 'local' |
| 5464 |
# pkconfig at all |
| 5465 |
if test x"$host" != x"$build" ; then |
| 5466 |
# Extract the first word of "strip", so it can be a program name with args. |
| 5467 |
set dummy strip; ac_word=$2 |
| 5468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5469 |
printf %s "checking for $ac_word... " >&6; } |
| 5470 |
if test ${ac_cv_path_BUILD_STRIP_XE+y} |
| 5471 |
then : |
| 5472 |
printf %s "(cached) " >&6 |
| 5473 |
else $as_nop |
| 5474 |
case $BUILD_STRIP_XE in |
| 5475 |
[\\/]* | ?:[\\/]*) |
| 5476 |
ac_cv_path_BUILD_STRIP_XE="$BUILD_STRIP_XE" # Let the user override the test with a path. |
| 5477 |
;; |
| 5478 |
*) |
| 5479 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5480 |
for as_dir in $PATH |
| 5481 |
do |
| 5482 |
IFS=$as_save_IFS |
| 5483 |
case $as_dir in #((( |
| 5484 |
'') as_dir=./ ;; |
| 5485 |
*/) ;; |
| 5486 |
*) as_dir=$as_dir/ ;; |
| 5487 |
esac |
| 5488 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5489 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5490 |
ac_cv_path_BUILD_STRIP_XE="$as_dir$ac_word$ac_exec_ext" |
| 5491 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5492 |
break 2 |
| 5493 |
fi |
| 5494 |
done |
| 5495 |
done |
| 5496 |
IFS=$as_save_IFS |
| 5497 |
|
| 5498 |
;; |
| 5499 |
esac |
| 5500 |
fi |
| 5501 |
BUILD_STRIP_XE=$ac_cv_path_BUILD_STRIP_XE |
| 5502 |
if test -n "$BUILD_STRIP_XE"; then |
| 5503 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP_XE" >&5 |
| 5504 |
printf "%s\n" "$BUILD_STRIP_XE" >&6; } |
| 5505 |
else |
| 5506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5507 |
printf "%s\n" "no" >&6; } |
| 5508 |
fi |
| 5509 |
|
| 5510 |
|
| 5511 |
if test x"$BUILD_STRIP_XE" = x"$STRIP_XE" ; then |
| 5512 |
STRIP_XE= |
| 5513 |
fi |
| 5514 |
fi |
| 5515 |
|
| 5516 |
|
| 5517 |
GPL_CONF=yes |
| 5518 |
grep "GPL Ghostscript" $srcdir/base/gscdefs.h &> /dev/null |
| 5519 |
if test "$?" != "0" ; then |
| 5520 |
GPL_CONF=no |
| 5521 |
fi |
| 5522 |
|
| 5523 |
|
| 5524 |
# Check whether --enable-contrib was given. |
| 5525 |
if test ${enable_contrib+y} |
| 5526 |
then : |
| 5527 |
enableval=$enable_contrib; |
| 5528 |
fi |
| 5529 |
|
| 5530 |
|
| 5531 |
CONTRIBINCLUDE="include $srcdir/contrib/contrib.mak" |
| 5532 |
INSTALL_CONTRIB="install-contrib-extras" |
| 5533 |
|
| 5534 |
if test x"$enable_contrib" = x; then |
| 5535 |
case $host in |
| 5536 |
*-mingw*|*-msys*) |
| 5537 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling contrib devices" >&5 |
| 5538 |
printf "%s\n" "$as_me: WARNING: disabling contrib devices" >&2;} |
| 5539 |
enable_contrib=no |
| 5540 |
;; |
| 5541 |
*) |
| 5542 |
;; |
| 5543 |
esac |
| 5544 |
fi |
| 5545 |
|
| 5546 |
if test x"$enable_contrib" != x"no"; then |
| 5547 |
# This is just an arbitrary file in contrib to check |
| 5548 |
if test -f $srcdir/contrib/gdevbjc_.c; then |
| 5549 |
enable_contrib=yes |
| 5550 |
else |
| 5551 |
enable_contrib=no |
| 5552 |
fi |
| 5553 |
fi |
| 5554 |
|
| 5555 |
if test x$enable_contrib = xno; then |
| 5556 |
CONTRIBINCLUDE="" |
| 5557 |
INSTALL_CONTRIB="" |
| 5558 |
CFLAGS="$CFLAGS -DNOCONTRIB" |
| 5559 |
fi |
| 5560 |
|
| 5561 |
|
| 5562 |
|
| 5563 |
|
| 5564 |
CC_OPT_FLAGS_TO_TRY="-O -DNDEBUG" |
| 5565 |
CC_VISIBILITY_FLAGS_TO_TRY="" |
| 5566 |
SET_DT_SONAME="-soname=" |
| 5567 |
CFLAGS_LARGEFILE="" |
| 5568 |
|
| 5569 |
case $host in |
| 5570 |
*-linux*|*-gnu) |
| 5571 |
if test x"$GCC" = x"yes"; then |
| 5572 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5573 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5574 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5575 |
fi |
| 5576 |
;; |
| 5577 |
*bsd*) |
| 5578 |
if test x"$GCC" = x"yes"; then |
| 5579 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5580 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5581 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5582 |
fi |
| 5583 |
;; |
| 5584 |
*-darwin*) |
| 5585 |
if test x"$GCC" = x"yes"; then |
| 5586 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5587 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5588 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5589 |
fi |
| 5590 |
SET_DT_SONAME="" |
| 5591 |
;; |
| 5592 |
*-mingw*|*-msys*) |
| 5593 |
if test x"$GCC" = x"yes"; then |
| 5594 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5595 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5596 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5597 |
fi |
| 5598 |
SET_DT_SONAME="" |
| 5599 |
;; |
| 5600 |
*-sun*|*-solaris*) |
| 5601 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5602 |
CFLAGS_LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" |
| 5603 |
# the trailing space is required! |
| 5604 |
if test $GCC = no; then |
| 5605 |
SET_DT_SONAME="-h " |
| 5606 |
fi |
| 5607 |
if test x"$GCC" = x"yes"; then |
| 5608 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5609 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5610 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5611 |
else |
| 5612 |
CC_DBG_FLAGS_TO_TRY="-g -O0" |
| 5613 |
fi |
| 5614 |
;; |
| 5615 |
*-aix*) |
| 5616 |
if test x"$GCC" = x"yes"; then |
| 5617 |
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG" |
| 5618 |
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" |
| 5619 |
SET_DT_SONAME="so" |
| 5620 |
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden" |
| 5621 |
LDFLAGS="-Wl,-bbigtoc $LD_FLAGS" |
| 5622 |
fi |
| 5623 |
;; |
| 5624 |
esac |
| 5625 |
|
| 5626 |
|
| 5627 |
|
| 5628 |
|
| 5629 |
if test x"$GCC" = x"yes"; then |
| 5630 |
cflags_to_try="-Wall -Wstrict-prototypes -Wundef \ |
| 5631 |
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \ |
| 5632 |
-fno-strict-aliasing -Werror=declaration-after-statement \ |
| 5633 |
-fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs $CFLAGS_LARGEFILE" |
| 5634 |
optflags_to_try="$CC_OPT_FLAGS_TO_TRY" |
| 5635 |
dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" |
| 5636 |
else |
| 5637 |
cflags_to_try="$CFLAGS_LARGEFILE" |
| 5638 |
optflags_to_try="$CC_OPT_FLAGS_TO_TRY" |
| 5639 |
dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY" |
| 5640 |
fi |
| 5641 |
|
| 5642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports restrict" >&5 |
| 5643 |
printf %s "checking if compiler supports restrict... " >&6; } |
| 5644 |
|
| 5645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5646 |
/* end confdefs.h. */ |
| 5647 |
|
| 5648 |
#if defined(__STDC_VERSION__) && __STDC_VERSION__ == 199901L |
| 5649 |
void test (char * restrict p){} |
| 5650 |
#else |
| 5651 |
void test (char * __restrict p){} |
| 5652 |
#endif |
| 5653 |
|
| 5654 |
int |
| 5655 |
main (void) |
| 5656 |
{ |
| 5657 |
|
| 5658 |
#if defined(__STDC_VERSION__) && __STDC_VERSION__ == 199901L |
| 5659 |
char *restrict t; |
| 5660 |
#else |
| 5661 |
char * __restrict t; |
| 5662 |
#endif |
| 5663 |
test(t); |
| 5664 |
return 1; |
| 5665 |
|
| 5666 |
; |
| 5667 |
return 0; |
| 5668 |
} |
| 5669 |
_ACEOF |
| 5670 |
if ac_fn_c_try_compile "$LINENO" |
| 5671 |
then : |
| 5672 |
|
| 5673 |
CFLAGS="$CFLAGS -DHAVE_RESTRICT=1" |
| 5674 |
if test x"$host" = x"$build" ; then |
| 5675 |
CFLAGSAUX="$CFLAGSAUX -DHAVE_RESTRICT=1" |
| 5676 |
fi |
| 5677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5678 |
printf "%s\n" "yes" >&6; } |
| 5679 |
else $as_nop |
| 5680 |
|
| 5681 |
CFLAGS="$CFLAGS -DHAVE_RESTRICT=0" |
| 5682 |
if test x"$host" = x"$build" ; then |
| 5683 |
CFLAGSAUX="$CFLAGSAUX -DHAVE_RESTRICT=0" |
| 5684 |
fi |
| 5685 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5686 |
printf "%s\n" "no" >&6; } |
| 5687 |
fi |
| 5688 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5689 |
|
| 5690 |
|
| 5691 |
|
| 5692 |
|
| 5693 |
# Check whether --with-arch_h was given. |
| 5694 |
if test ${with_arch_h+y} |
| 5695 |
then : |
| 5696 |
withval=$with_arch_h; |
| 5697 |
else $as_nop |
| 5698 |
with_arch_h= |
| 5699 |
fi |
| 5700 |
|
| 5701 |
|
| 5702 |
ARCH_CONF_HEADER= |
| 5703 |
|
| 5704 |
if test x"$with_arch_h" = x""; then |
| 5705 |
case $host in |
| 5706 |
x86_64*-mingw*|x86_64*-msys*) |
| 5707 |
ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/windows-x64-msvc.h" |
| 5708 |
;; |
| 5709 |
*-mingw*|*-msys*) |
| 5710 |
ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/windows-x86-msvc.h" |
| 5711 |
;; |
| 5712 |
*-darwin*) |
| 5713 |
ARCH_CONF_HEADER="\$(GLSRCDIR)/../arch/osx-x86-x86_64-ppc_arm64-gcc.h" |
| 5714 |
;; |
| 5715 |
*) |
| 5716 |
ARCH_CONF_HEADER= |
| 5717 |
if test x"$host" != x"$build"; then |
| 5718 |
ARCH_CONF_HEADER="\$(GLSRCDIR)/../$ARCH_AUTOCONF_HEADER" |
| 5719 |
else |
| 5720 |
ARCH_CONF_HEADER= |
| 5721 |
fi |
| 5722 |
;; |
| 5723 |
esac |
| 5724 |
else |
| 5725 |
ARCH_CONF_HEADER=$with_arch_h |
| 5726 |
fi |
| 5727 |
|
| 5728 |
|
| 5729 |
|
| 5730 |
# debug configurarion is available by default with "make debug" |
| 5731 |
#AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], |
| 5732 |
# [turn on debugging])) |
| 5733 |
#if test x$enable_debug = xyes; then |
| 5734 |
# optflags_to_try="-g" |
| 5735 |
# CFLAGS="-DDEBUG $CFLAGS" |
| 5736 |
#fi |
| 5737 |
|
| 5738 |
# NOTE: To correctly disable GCC's strict aliasing with '-fno-strict-aliasing' |
| 5739 |
# option, the 'cflags_to_try' have to be checked after 'optflags_to_try'. |
| 5740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking supported compiler flags" >&5 |
| 5741 |
printf %s "checking supported compiler flags... " >&6; } |
| 5742 |
old_cflags=$CFLAGS |
| 5743 |
|
| 5744 |
for flag in $optflags_to_try; do |
| 5745 |
CFLAGS="$CFLAGS $flag" |
| 5746 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5747 |
/* end confdefs.h. */ |
| 5748 |
|
| 5749 |
int |
| 5750 |
main (void) |
| 5751 |
{ |
| 5752 |
return 0; |
| 5753 |
; |
| 5754 |
return 0; |
| 5755 |
} |
| 5756 |
_ACEOF |
| 5757 |
if ac_fn_c_try_compile "$LINENO" |
| 5758 |
then : |
| 5759 |
|
| 5760 |
echo " $flag" |
| 5761 |
OPT_CFLAGS="$OPT_CFLAGS $flag" |
| 5762 |
|
| 5763 |
fi |
| 5764 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5765 |
CFLAGS=$old_cflags |
| 5766 |
done |
| 5767 |
for flag in $cflags_to_try; do |
| 5768 |
CFLAGS="$CFLAGS $flag" |
| 5769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5770 |
/* end confdefs.h. */ |
| 5771 |
|
| 5772 |
int |
| 5773 |
main (void) |
| 5774 |
{ |
| 5775 |
return 0; |
| 5776 |
; |
| 5777 |
return 0; |
| 5778 |
} |
| 5779 |
_ACEOF |
| 5780 |
if ac_fn_c_try_compile "$LINENO" |
| 5781 |
then : |
| 5782 |
|
| 5783 |
echo " $flag" |
| 5784 |
GCFLAGS="$GCFLAGS $flag" |
| 5785 |
|
| 5786 |
fi |
| 5787 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5788 |
CFLAGS=$old_cflags |
| 5789 |
done |
| 5790 |
old_cflags=$CFLAGS |
| 5791 |
|
| 5792 |
for flag in $dbgflags_to_try; do |
| 5793 |
CFLAGS="$CFLAGS $flag" |
| 5794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5795 |
/* end confdefs.h. */ |
| 5796 |
|
| 5797 |
int |
| 5798 |
main (void) |
| 5799 |
{ |
| 5800 |
return 0; |
| 5801 |
; |
| 5802 |
return 0; |
| 5803 |
} |
| 5804 |
_ACEOF |
| 5805 |
if ac_fn_c_try_compile "$LINENO" |
| 5806 |
then : |
| 5807 |
|
| 5808 |
echo " $flag" |
| 5809 |
DBG_CFLAGS="$DBG_CFLAGS $flag" |
| 5810 |
|
| 5811 |
fi |
| 5812 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5813 |
CFLAGS=$old_cflags |
| 5814 |
done |
| 5815 |
|
| 5816 |
CFLAGS_VISIBILITY="" |
| 5817 |
|
| 5818 |
for flag in $CC_VISIBILITY_FLAGS_TO_TRY; do |
| 5819 |
CFLAGS="$CFLAGS $flag" |
| 5820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5821 |
/* end confdefs.h. */ |
| 5822 |
|
| 5823 |
int |
| 5824 |
main (void) |
| 5825 |
{ |
| 5826 |
return 0; |
| 5827 |
; |
| 5828 |
return 0; |
| 5829 |
} |
| 5830 |
_ACEOF |
| 5831 |
if ac_fn_c_try_compile "$LINENO" |
| 5832 |
then : |
| 5833 |
|
| 5834 |
echo " $flag" |
| 5835 |
CFLAGS_VISIBILITY="$CFLAGS_VISIBILITY $flag" |
| 5836 |
|
| 5837 |
fi |
| 5838 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5839 |
CFLAGS=$old_cflags |
| 5840 |
done |
| 5841 |
|
| 5842 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...done." >&5 |
| 5843 |
printf "%s\n" " ...done." >&6; } |
| 5844 |
|
| 5845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler/linker address santizer support" >&5 |
| 5846 |
printf %s "checking compiler/linker address santizer support... " >&6; } |
| 5847 |
|
| 5848 |
|
| 5849 |
# Check whether --with-sanitizer was given. |
| 5850 |
if test ${with_sanitizer+y} |
| 5851 |
then : |
| 5852 |
withval=$with_sanitizer; SANITIZER=$with_sanitizer |
| 5853 |
else $as_nop |
| 5854 |
SANITIZER=address |
| 5855 |
fi |
| 5856 |
|
| 5857 |
|
| 5858 |
CFLAGS_SANITIZE="" |
| 5859 |
CFLAGS_SANITIZE_TRY="-fsanitize=$SANITIZER -fno-omit-frame-pointer" |
| 5860 |
CFLAGS_SAVED="$CFLAGS" |
| 5861 |
CFLAGS="$CFLAGS_SANITIZE_TRY" |
| 5862 |
|
| 5863 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5864 |
/* end confdefs.h. */ |
| 5865 |
#include <stdio.h> |
| 5866 |
int |
| 5867 |
main (void) |
| 5868 |
{ |
| 5869 |
|
| 5870 |
return(0); |
| 5871 |
|
| 5872 |
; |
| 5873 |
return 0; |
| 5874 |
} |
| 5875 |
_ACEOF |
| 5876 |
if ac_fn_c_try_link "$LINENO" |
| 5877 |
then : |
| 5878 |
CFLAGS_SANITIZE="$CFLAGS" |
| 5879 |
else $as_nop |
| 5880 |
|
| 5881 |
if test x"$with_sanitizer" != x; then |
| 5882 |
as_fn_error $? "--with-sanitizer=$with_sanitizer not supported by compiler" "$LINENO" 5 |
| 5883 |
else |
| 5884 |
CFLAGS_SANITIZE="'****************ADDRESS_SANITIZER_NOT_SUPPORTED*********************'" |
| 5885 |
fi |
| 5886 |
|
| 5887 |
|
| 5888 |
fi |
| 5889 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5890 |
conftest$ac_exeext conftest.$ac_ext |
| 5891 |
|
| 5892 |
CFLAGS="$CFLAGS_SAVED" |
| 5893 |
|
| 5894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...done." >&5 |
| 5895 |
printf "%s\n" " ...done." >&6; } |
| 5896 |
|
| 5897 |
|
| 5898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler/linker address santizer build warnings support" >&5 |
| 5899 |
printf %s "checking compiler/linker address santizer build warnings support... " >&6; } |
| 5900 |
|
| 5901 |
CFLAGS_SANITIZE_TRY="$CFLAGS_SANITIZE -W -Wall -Wno-unused-parameter -Wno-sign-compare -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-shift-negative-value -Wno-old-style-declaration -Wno-unused-but-set-parameter" |
| 5902 |
CFLAGS_SAVED="$CFLAGS" |
| 5903 |
CFLAGS="$CFLAGS_SANITIZE_TRY" |
| 5904 |
|
| 5905 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5906 |
/* end confdefs.h. */ |
| 5907 |
#include <stdio.h> |
| 5908 |
int |
| 5909 |
main (void) |
| 5910 |
{ |
| 5911 |
|
| 5912 |
return(0); |
| 5913 |
|
| 5914 |
; |
| 5915 |
return 0; |
| 5916 |
} |
| 5917 |
_ACEOF |
| 5918 |
if ac_fn_c_try_link "$LINENO" |
| 5919 |
then : |
| 5920 |
CFLAGS_SANITIZE="$CFLAGS" |
| 5921 |
else $as_nop |
| 5922 |
echo 'extra warnings not supported' |
| 5923 |
fi |
| 5924 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5925 |
conftest$ac_exeext conftest.$ac_ext |
| 5926 |
|
| 5927 |
CFLAGS="$CFLAGS_SAVED" |
| 5928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...done." >&5 |
| 5929 |
printf "%s\n" " ...done." >&6; } |
| 5930 |
|
| 5931 |
|
| 5932 |
|
| 5933 |
ac_header= ac_cache= |
| 5934 |
for ac_item in $ac_header_c_list |
| 5935 |
do |
| 5936 |
if test $ac_cache; then |
| 5937 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5938 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5939 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5940 |
fi |
| 5941 |
ac_header= ac_cache= |
| 5942 |
elif test $ac_header; then |
| 5943 |
ac_cache=$ac_item |
| 5944 |
else |
| 5945 |
ac_header=$ac_item |
| 5946 |
fi |
| 5947 |
done |
| 5948 |
|
| 5949 |
|
| 5950 |
|
| 5951 |
|
| 5952 |
|
| 5953 |
|
| 5954 |
|
| 5955 |
|
| 5956 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5957 |
then : |
| 5958 |
|
| 5959 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5960 |
|
| 5961 |
fi |
| 5962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 5963 |
printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 5964 |
if test ${ac_cv_c_bigendian+y} |
| 5965 |
then : |
| 5966 |
printf %s "(cached) " >&6 |
| 5967 |
else $as_nop |
| 5968 |
ac_cv_c_bigendian=unknown |
| 5969 |
# See if we're dealing with a universal compiler. |
| 5970 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5971 |
/* end confdefs.h. */ |
| 5972 |
#ifndef __APPLE_CC__ |
| 5973 |
not a universal capable compiler |
| 5974 |
#endif |
| 5975 |
typedef int dummy; |
| 5976 |
|
| 5977 |
_ACEOF |
| 5978 |
if ac_fn_c_try_compile "$LINENO" |
| 5979 |
then : |
| 5980 |
|
| 5981 |
# Check for potential -arch flags. It is not universal unless |
| 5982 |
# there are at least two -arch flags with different values. |
| 5983 |
ac_arch= |
| 5984 |
ac_prev= |
| 5985 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 5986 |
if test -n "$ac_prev"; then |
| 5987 |
case $ac_word in |
| 5988 |
i?86 | x86_64 | ppc | ppc64) |
| 5989 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 5990 |
ac_arch=$ac_word |
| 5991 |
else |
| 5992 |
ac_cv_c_bigendian=universal |
| 5993 |
break |
| 5994 |
fi |
| 5995 |
;; |
| 5996 |
esac |
| 5997 |
ac_prev= |
| 5998 |
elif test "x$ac_word" = "x-arch"; then |
| 5999 |
ac_prev=arch |
| 6000 |
fi |
| 6001 |
done |
| 6002 |
fi |
| 6003 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6004 |
if test $ac_cv_c_bigendian = unknown; then |
| 6005 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 6006 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6007 |
/* end confdefs.h. */ |
| 6008 |
#include <sys/types.h> |
| 6009 |
#include <sys/param.h> |
| 6010 |
|
| 6011 |
int |
| 6012 |
main (void) |
| 6013 |
{ |
| 6014 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 6015 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 6016 |
&& LITTLE_ENDIAN) |
| 6017 |
bogus endian macros |
| 6018 |
#endif |
| 6019 |
|
| 6020 |
; |
| 6021 |
return 0; |
| 6022 |
} |
| 6023 |
_ACEOF |
| 6024 |
if ac_fn_c_try_compile "$LINENO" |
| 6025 |
then : |
| 6026 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 6027 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6028 |
/* end confdefs.h. */ |
| 6029 |
#include <sys/types.h> |
| 6030 |
#include <sys/param.h> |
| 6031 |
|
| 6032 |
int |
| 6033 |
main (void) |
| 6034 |
{ |
| 6035 |
#if BYTE_ORDER != BIG_ENDIAN |
| 6036 |
not big endian |
| 6037 |
#endif |
| 6038 |
|
| 6039 |
; |
| 6040 |
return 0; |
| 6041 |
} |
| 6042 |
_ACEOF |
| 6043 |
if ac_fn_c_try_compile "$LINENO" |
| 6044 |
then : |
| 6045 |
ac_cv_c_bigendian=yes |
| 6046 |
else $as_nop |
| 6047 |
ac_cv_c_bigendian=no |
| 6048 |
fi |
| 6049 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6050 |
fi |
| 6051 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6052 |
fi |
| 6053 |
if test $ac_cv_c_bigendian = unknown; then |
| 6054 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 6055 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6056 |
/* end confdefs.h. */ |
| 6057 |
#include <limits.h> |
| 6058 |
|
| 6059 |
int |
| 6060 |
main (void) |
| 6061 |
{ |
| 6062 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 6063 |
bogus endian macros |
| 6064 |
#endif |
| 6065 |
|
| 6066 |
; |
| 6067 |
return 0; |
| 6068 |
} |
| 6069 |
_ACEOF |
| 6070 |
if ac_fn_c_try_compile "$LINENO" |
| 6071 |
then : |
| 6072 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 6073 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6074 |
/* end confdefs.h. */ |
| 6075 |
#include <limits.h> |
| 6076 |
|
| 6077 |
int |
| 6078 |
main (void) |
| 6079 |
{ |
| 6080 |
#ifndef _BIG_ENDIAN |
| 6081 |
not big endian |
| 6082 |
#endif |
| 6083 |
|
| 6084 |
; |
| 6085 |
return 0; |
| 6086 |
} |
| 6087 |
_ACEOF |
| 6088 |
if ac_fn_c_try_compile "$LINENO" |
| 6089 |
then : |
| 6090 |
ac_cv_c_bigendian=yes |
| 6091 |
else $as_nop |
| 6092 |
ac_cv_c_bigendian=no |
| 6093 |
fi |
| 6094 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6095 |
fi |
| 6096 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6097 |
fi |
| 6098 |
if test $ac_cv_c_bigendian = unknown; then |
| 6099 |
# Compile a test program. |
| 6100 |
if test "$cross_compiling" = yes |
| 6101 |
then : |
| 6102 |
# Try to guess by grepping values from an object file. |
| 6103 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6104 |
/* end confdefs.h. */ |
| 6105 |
unsigned short int ascii_mm[] = |
| 6106 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 6107 |
unsigned short int ascii_ii[] = |
| 6108 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 6109 |
int use_ascii (int i) { |
| 6110 |
return ascii_mm[i] + ascii_ii[i]; |
| 6111 |
} |
| 6112 |
unsigned short int ebcdic_ii[] = |
| 6113 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 6114 |
unsigned short int ebcdic_mm[] = |
| 6115 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 6116 |
int use_ebcdic (int i) { |
| 6117 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 6118 |
} |
| 6119 |
extern int foo; |
| 6120 |
|
| 6121 |
int |
| 6122 |
main (void) |
| 6123 |
{ |
| 6124 |
return use_ascii (foo) == use_ebcdic (foo); |
| 6125 |
; |
| 6126 |
return 0; |
| 6127 |
} |
| 6128 |
_ACEOF |
| 6129 |
if ac_fn_c_try_compile "$LINENO" |
| 6130 |
then : |
| 6131 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 6132 |
ac_cv_c_bigendian=yes |
| 6133 |
fi |
| 6134 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 6135 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 6136 |
ac_cv_c_bigendian=no |
| 6137 |
else |
| 6138 |
# finding both strings is unlikely to happen, but who knows? |
| 6139 |
ac_cv_c_bigendian=unknown |
| 6140 |
fi |
| 6141 |
fi |
| 6142 |
fi |
| 6143 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6144 |
else $as_nop |
| 6145 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6146 |
/* end confdefs.h. */ |
| 6147 |
$ac_includes_default |
| 6148 |
int |
| 6149 |
main (void) |
| 6150 |
{ |
| 6151 |
|
| 6152 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 6153 |
union |
| 6154 |
{ |
| 6155 |
long int l; |
| 6156 |
char c[sizeof (long int)]; |
| 6157 |
} u; |
| 6158 |
u.l = 1; |
| 6159 |
return u.c[sizeof (long int) - 1] == 1; |
| 6160 |
|
| 6161 |
; |
| 6162 |
return 0; |
| 6163 |
} |
| 6164 |
_ACEOF |
| 6165 |
if ac_fn_c_try_run "$LINENO" |
| 6166 |
then : |
| 6167 |
ac_cv_c_bigendian=no |
| 6168 |
else $as_nop |
| 6169 |
ac_cv_c_bigendian=yes |
| 6170 |
fi |
| 6171 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6172 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6173 |
fi |
| 6174 |
|
| 6175 |
fi |
| 6176 |
fi |
| 6177 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 6178 |
printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 6179 |
case $ac_cv_c_bigendian in #( |
| 6180 |
yes) |
| 6181 |
BIGENDIAN=1;; #( |
| 6182 |
no) |
| 6183 |
BIGENDIAN=0 ;; #( |
| 6184 |
universal) |
| 6185 |
as_fn_error $? "Building of universal binaries is not implemented." "$LINENO" 5 |
| 6186 |
;; #( |
| 6187 |
*) |
| 6188 |
as_fn_error $? "Endian status cannot be determined" "$LINENO" 5 ;; |
| 6189 |
esac |
| 6190 |
|
| 6191 |
|
| 6192 |
|
| 6193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sse2 support" >&5 |
| 6194 |
printf %s "checking sse2 support... " >&6; } |
| 6195 |
save_cflags=$CFLAGS |
| 6196 |
CFLAGS="$CFLAGS $OPT_CFLAGS" |
| 6197 |
|
| 6198 |
HAVE_SSE2="" |
| 6199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6200 |
/* end confdefs.h. */ |
| 6201 |
#include <emmintrin.h> |
| 6202 |
int |
| 6203 |
main (void) |
| 6204 |
{ |
| 6205 |
|
| 6206 |
__m128i input1; |
| 6207 |
unsigned char buf1[128]; |
| 6208 |
input1 = _mm_loadu_si128((const __m128i *)buf1); |
| 6209 |
return(0); |
| 6210 |
|
| 6211 |
; |
| 6212 |
return 0; |
| 6213 |
} |
| 6214 |
_ACEOF |
| 6215 |
if ac_fn_c_try_link "$LINENO" |
| 6216 |
then : |
| 6217 |
HAVE_SSE2="-DHAVE_SSE2" |
| 6218 |
else $as_nop |
| 6219 |
HAVE_SSE2="" |
| 6220 |
fi |
| 6221 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6222 |
conftest$ac_exeext conftest.$ac_ext |
| 6223 |
|
| 6224 |
# Check whether --enable-sse2 was given. |
| 6225 |
if test ${enable_sse2+y} |
| 6226 |
then : |
| 6227 |
enableval=$enable_sse2; |
| 6228 |
if test "x$enable_sse2" = xno; then |
| 6229 |
HAVE_SSE2="" |
| 6230 |
fi |
| 6231 |
fi |
| 6232 |
|
| 6233 |
|
| 6234 |
if test "x$HAVE_SSE2" != x; then |
| 6235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6236 |
printf "%s\n" "yes" >&6; } |
| 6237 |
else |
| 6238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6239 |
printf "%s\n" "no" >&6; } |
| 6240 |
fi |
| 6241 |
|
| 6242 |
|
| 6243 |
CFLAGS=$save_cflags |
| 6244 |
|
| 6245 |
|
| 6246 |
|
| 6247 |
ac_header_dirent=no |
| 6248 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6249 |
as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6250 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6251 |
printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 6252 |
if eval test \${$as_ac_Header+y} |
| 6253 |
then : |
| 6254 |
printf %s "(cached) " >&6 |
| 6255 |
else $as_nop |
| 6256 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6257 |
/* end confdefs.h. */ |
| 6258 |
#include <sys/types.h> |
| 6259 |
#include <$ac_hdr> |
| 6260 |
|
| 6261 |
int |
| 6262 |
main (void) |
| 6263 |
{ |
| 6264 |
if ((DIR *) 0) |
| 6265 |
return 0; |
| 6266 |
; |
| 6267 |
return 0; |
| 6268 |
} |
| 6269 |
_ACEOF |
| 6270 |
if ac_fn_c_try_compile "$LINENO" |
| 6271 |
then : |
| 6272 |
eval "$as_ac_Header=yes" |
| 6273 |
else $as_nop |
| 6274 |
eval "$as_ac_Header=no" |
| 6275 |
fi |
| 6276 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6277 |
fi |
| 6278 |
eval ac_res=\$$as_ac_Header |
| 6279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6280 |
printf "%s\n" "$ac_res" >&6; } |
| 6281 |
if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 6282 |
then : |
| 6283 |
cat >>confdefs.h <<_ACEOF |
| 6284 |
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6285 |
_ACEOF |
| 6286 |
|
| 6287 |
ac_header_dirent=$ac_hdr; break |
| 6288 |
fi |
| 6289 |
|
| 6290 |
done |
| 6291 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6292 |
if test $ac_header_dirent = dirent.h; then |
| 6293 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6294 |
printf %s "checking for library containing opendir... " >&6; } |
| 6295 |
if test ${ac_cv_search_opendir+y} |
| 6296 |
then : |
| 6297 |
printf %s "(cached) " >&6 |
| 6298 |
else $as_nop |
| 6299 |
ac_func_search_save_LIBS=$LIBS |
| 6300 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6301 |
/* end confdefs.h. */ |
| 6302 |
|
| 6303 |
/* Override any GCC internal prototype to avoid an error. |
| 6304 |
Use char because int might match the return type of a GCC |
| 6305 |
builtin and then its argument prototype would still apply. */ |
| 6306 |
char opendir (); |
| 6307 |
int |
| 6308 |
main (void) |
| 6309 |
{ |
| 6310 |
return opendir (); |
| 6311 |
; |
| 6312 |
return 0; |
| 6313 |
} |
| 6314 |
_ACEOF |
| 6315 |
for ac_lib in '' dir |
| 6316 |
do |
| 6317 |
if test -z "$ac_lib"; then |
| 6318 |
ac_res="none required" |
| 6319 |
else |
| 6320 |
ac_res=-l$ac_lib |
| 6321 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6322 |
fi |
| 6323 |
if ac_fn_c_try_link "$LINENO" |
| 6324 |
then : |
| 6325 |
ac_cv_search_opendir=$ac_res |
| 6326 |
fi |
| 6327 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6328 |
conftest$ac_exeext |
| 6329 |
if test ${ac_cv_search_opendir+y} |
| 6330 |
then : |
| 6331 |
break |
| 6332 |
fi |
| 6333 |
done |
| 6334 |
if test ${ac_cv_search_opendir+y} |
| 6335 |
then : |
| 6336 |
|
| 6337 |
else $as_nop |
| 6338 |
ac_cv_search_opendir=no |
| 6339 |
fi |
| 6340 |
rm conftest.$ac_ext |
| 6341 |
LIBS=$ac_func_search_save_LIBS |
| 6342 |
fi |
| 6343 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6344 |
printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 6345 |
ac_res=$ac_cv_search_opendir |
| 6346 |
if test "$ac_res" != no |
| 6347 |
then : |
| 6348 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 6349 |
|
| 6350 |
fi |
| 6351 |
|
| 6352 |
else |
| 6353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6354 |
printf %s "checking for library containing opendir... " >&6; } |
| 6355 |
if test ${ac_cv_search_opendir+y} |
| 6356 |
then : |
| 6357 |
printf %s "(cached) " >&6 |
| 6358 |
else $as_nop |
| 6359 |
ac_func_search_save_LIBS=$LIBS |
| 6360 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6361 |
/* end confdefs.h. */ |
| 6362 |
|
| 6363 |
/* Override any GCC internal prototype to avoid an error. |
| 6364 |
Use char because int might match the return type of a GCC |
| 6365 |
builtin and then its argument prototype would still apply. */ |
| 6366 |
char opendir (); |
| 6367 |
int |
| 6368 |
main (void) |
| 6369 |
{ |
| 6370 |
return opendir (); |
| 6371 |
; |
| 6372 |
return 0; |
| 6373 |
} |
| 6374 |
_ACEOF |
| 6375 |
for ac_lib in '' x |
| 6376 |
do |
| 6377 |
if test -z "$ac_lib"; then |
| 6378 |
ac_res="none required" |
| 6379 |
else |
| 6380 |
ac_res=-l$ac_lib |
| 6381 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6382 |
fi |
| 6383 |
if ac_fn_c_try_link "$LINENO" |
| 6384 |
then : |
| 6385 |
ac_cv_search_opendir=$ac_res |
| 6386 |
fi |
| 6387 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6388 |
conftest$ac_exeext |
| 6389 |
if test ${ac_cv_search_opendir+y} |
| 6390 |
then : |
| 6391 |
break |
| 6392 |
fi |
| 6393 |
done |
| 6394 |
if test ${ac_cv_search_opendir+y} |
| 6395 |
then : |
| 6396 |
|
| 6397 |
else $as_nop |
| 6398 |
ac_cv_search_opendir=no |
| 6399 |
fi |
| 6400 |
rm conftest.$ac_ext |
| 6401 |
LIBS=$ac_func_search_save_LIBS |
| 6402 |
fi |
| 6403 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6404 |
printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 6405 |
ac_res=$ac_cv_search_opendir |
| 6406 |
if test "$ac_res" != no |
| 6407 |
then : |
| 6408 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 6409 |
|
| 6410 |
fi |
| 6411 |
|
| 6412 |
fi |
| 6413 |
|
| 6414 |
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 6415 |
if test "x$ac_cv_header_errno_h" = xyes |
| 6416 |
then : |
| 6417 |
printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 6418 |
|
| 6419 |
fi |
| 6420 |
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 6421 |
if test "x$ac_cv_header_fcntl_h" = xyes |
| 6422 |
then : |
| 6423 |
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 6424 |
|
| 6425 |
fi |
| 6426 |
ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 6427 |
if test "x$ac_cv_header_malloc_h" = xyes |
| 6428 |
then : |
| 6429 |
printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h |
| 6430 |
|
| 6431 |
fi |
| 6432 |
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" |
| 6433 |
if test "x$ac_cv_header_memory_h" = xyes |
| 6434 |
then : |
| 6435 |
printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h |
| 6436 |
|
| 6437 |
fi |
| 6438 |
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 6439 |
if test "x$ac_cv_header_stdlib_h" = xyes |
| 6440 |
then : |
| 6441 |
printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 6442 |
|
| 6443 |
fi |
| 6444 |
ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
| 6445 |
if test "x$ac_cv_header_strings_h" = xyes |
| 6446 |
then : |
| 6447 |
printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h |
| 6448 |
|
| 6449 |
fi |
| 6450 |
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 6451 |
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 6452 |
then : |
| 6453 |
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 6454 |
|
| 6455 |
fi |
| 6456 |
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 6457 |
if test "x$ac_cv_header_sys_param_h" = xyes |
| 6458 |
then : |
| 6459 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 6460 |
|
| 6461 |
fi |
| 6462 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 6463 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 6464 |
then : |
| 6465 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 6466 |
|
| 6467 |
fi |
| 6468 |
ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" |
| 6469 |
if test "x$ac_cv_header_sys_times_h" = xyes |
| 6470 |
then : |
| 6471 |
printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h |
| 6472 |
|
| 6473 |
fi |
| 6474 |
ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" |
| 6475 |
if test "x$ac_cv_header_syslog_h" = xyes |
| 6476 |
then : |
| 6477 |
printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h |
| 6478 |
|
| 6479 |
fi |
| 6480 |
ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
| 6481 |
if test "x$ac_cv_header_dirent_h" = xyes |
| 6482 |
then : |
| 6483 |
printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h |
| 6484 |
|
| 6485 |
fi |
| 6486 |
ac_fn_c_check_header_compile "$LINENO" "ndir.h" "ac_cv_header_ndir_h" "$ac_includes_default" |
| 6487 |
if test "x$ac_cv_header_ndir_h" = xyes |
| 6488 |
then : |
| 6489 |
printf "%s\n" "#define HAVE_NDIR_H 1" >>confdefs.h |
| 6490 |
|
| 6491 |
fi |
| 6492 |
ac_fn_c_check_header_compile "$LINENO" "sys/dir.h" "ac_cv_header_sys_dir_h" "$ac_includes_default" |
| 6493 |
if test "x$ac_cv_header_sys_dir_h" = xyes |
| 6494 |
then : |
| 6495 |
printf "%s\n" "#define HAVE_SYS_DIR_H 1" >>confdefs.h |
| 6496 |
|
| 6497 |
fi |
| 6498 |
ac_fn_c_check_header_compile "$LINENO" "sys/ndir.h" "ac_cv_header_sys_ndir_h" "$ac_includes_default" |
| 6499 |
if test "x$ac_cv_header_sys_ndir_h" = xyes |
| 6500 |
then : |
| 6501 |
printf "%s\n" "#define HAVE_SYS_NDIR_H 1" >>confdefs.h |
| 6502 |
|
| 6503 |
fi |
| 6504 |
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 6505 |
if test "x$ac_cv_header_inttypes_h" = xyes |
| 6506 |
then : |
| 6507 |
printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
| 6508 |
|
| 6509 |
fi |
| 6510 |
|
| 6511 |
|
| 6512 |
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 6513 |
if test "x$ac_cv_header_limits_h" = xyes |
| 6514 |
then : |
| 6515 |
CFLAGS="$CFLAGS -DHAVE_LIMITS_H=1" |
| 6516 |
fi |
| 6517 |
|
| 6518 |
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 6519 |
if test "x$ac_cv_header_string_h" = xyes |
| 6520 |
then : |
| 6521 |
CFLAGS="$CFLAGS -DHAVE_STRING_H=1" |
| 6522 |
fi |
| 6523 |
|
| 6524 |
|
| 6525 |
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 6526 |
if test "x$ac_cv_header_unistd_h" = xyes |
| 6527 |
then : |
| 6528 |
GCFLAGS="$GCFLAGS -DHAVE_UNISTD_H=1" |
| 6529 |
else $as_nop |
| 6530 |
GCFLAGS="$GCFLAGS -DHAVE_UNISTD_H=0" |
| 6531 |
fi |
| 6532 |
|
| 6533 |
ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 6534 |
if test "x$ac_cv_header_stdarg_h" = xyes |
| 6535 |
then : |
| 6536 |
GCFLAGS="$GCFLAGS -DHAVE_STDARG_H=1" |
| 6537 |
else $as_nop |
| 6538 |
GCFLAGS="$GCFLAGS -DHAVE_STDARG_H=0" |
| 6539 |
fi |
| 6540 |
|
| 6541 |
|
| 6542 |
|
| 6543 |
|
| 6544 |
# Check whether --with-make was given. |
| 6545 |
if test ${with_make+y} |
| 6546 |
then : |
| 6547 |
withval=$with_make; MAKE=$with_make |
| 6548 |
else $as_nop |
| 6549 |
MAKE=make |
| 6550 |
fi |
| 6551 |
|
| 6552 |
|
| 6553 |
# Extract the first word of "$MAKE", so it can be a program name with args. |
| 6554 |
set dummy $MAKE; ac_word=$2 |
| 6555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6556 |
printf %s "checking for $ac_word... " >&6; } |
| 6557 |
if test ${ac_cv_prog_MAKE_EXISTS+y} |
| 6558 |
then : |
| 6559 |
printf %s "(cached) " >&6 |
| 6560 |
else $as_nop |
| 6561 |
if test -n "$MAKE_EXISTS"; then |
| 6562 |
ac_cv_prog_MAKE_EXISTS="$MAKE_EXISTS" # Let the user override the test. |
| 6563 |
else |
| 6564 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6565 |
for as_dir in $PATH |
| 6566 |
do |
| 6567 |
IFS=$as_save_IFS |
| 6568 |
case $as_dir in #((( |
| 6569 |
'') as_dir=./ ;; |
| 6570 |
*/) ;; |
| 6571 |
*) as_dir=$as_dir/ ;; |
| 6572 |
esac |
| 6573 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6574 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6575 |
ac_cv_prog_MAKE_EXISTS="yes" |
| 6576 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6577 |
break 2 |
| 6578 |
fi |
| 6579 |
done |
| 6580 |
done |
| 6581 |
IFS=$as_save_IFS |
| 6582 |
|
| 6583 |
test -z "$ac_cv_prog_MAKE_EXISTS" && ac_cv_prog_MAKE_EXISTS="no" |
| 6584 |
fi |
| 6585 |
fi |
| 6586 |
MAKE_EXISTS=$ac_cv_prog_MAKE_EXISTS |
| 6587 |
if test -n "$MAKE_EXISTS"; then |
| 6588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE_EXISTS" >&5 |
| 6589 |
printf "%s\n" "$MAKE_EXISTS" >&6; } |
| 6590 |
else |
| 6591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6592 |
printf "%s\n" "no" >&6; } |
| 6593 |
fi |
| 6594 |
|
| 6595 |
|
| 6596 |
|
| 6597 |
if test x"$MAKE_EXISTS" = x"no" ; then |
| 6598 |
as_fn_error $? "Required make program '$MAKE' not found." "$LINENO" 5 |
| 6599 |
fi |
| 6600 |
|
| 6601 |
OBJDIR_BSDMAKE_WORKAROUND=obj |
| 6602 |
SUB_MAKE_OPTION= |
| 6603 |
ORDER_ONLY="" |
| 6604 |
|
| 6605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if make is GNU make" >&5 |
| 6606 |
printf %s "checking if make is GNU make... " >&6; } |
| 6607 |
if make --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then |
| 6608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6609 |
printf "%s\n" "yes" >&6; } |
| 6610 |
SUB_MAKE_OPTION="-f \$(MAKEFILE)" |
| 6611 |
ORDER_ONLY="|" |
| 6612 |
else |
| 6613 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6614 |
printf "%s\n" "no" >&6; } |
| 6615 |
# BSD Make treats obj special and cd into it first |
| 6616 |
OBJDIR_BSDMAKEWORKAOROUND="notobj" |
| 6617 |
fi |
| 6618 |
|
| 6619 |
|
| 6620 |
|
| 6621 |
|
| 6622 |
|
| 6623 |
ac_fn_c_check_header_compile "$LINENO" "sys/window.h" "ac_cv_header_sys_window_h" "$ac_includes_default" |
| 6624 |
if test "x$ac_cv_header_sys_window_h" = xyes |
| 6625 |
then : |
| 6626 |
|
| 6627 |
fi |
| 6628 |
|
| 6629 |
|
| 6630 |
|
| 6631 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 6632 |
printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 6633 |
if test ${ac_cv_c_const+y} |
| 6634 |
then : |
| 6635 |
printf %s "(cached) " >&6 |
| 6636 |
else $as_nop |
| 6637 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6638 |
/* end confdefs.h. */ |
| 6639 |
|
| 6640 |
int |
| 6641 |
main (void) |
| 6642 |
{ |
| 6643 |
|
| 6644 |
#ifndef __cplusplus |
| 6645 |
/* Ultrix mips cc rejects this sort of thing. */ |
| 6646 |
typedef int charset[2]; |
| 6647 |
const charset cs = { 0, 0 }; |
| 6648 |
/* SunOS 4.1.1 cc rejects this. */ |
| 6649 |
char const *const *pcpcc; |
| 6650 |
char **ppc; |
| 6651 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 6652 |
struct point {int x, y;}; |
| 6653 |
static struct point const zero = {0,0}; |
| 6654 |
/* IBM XL C 1.02.0.0 rejects this. |
| 6655 |
It does not let you subtract one const X* pointer from another in |
| 6656 |
an arm of an if-expression whose if-part is not a constant |
| 6657 |
expression */ |
| 6658 |
const char *g = "string"; |
| 6659 |
pcpcc = &g + (g ? g-g : 0); |
| 6660 |
/* HPUX 7.0 cc rejects these. */ |
| 6661 |
++pcpcc; |
| 6662 |
ppc = (char**) pcpcc; |
| 6663 |
pcpcc = (char const *const *) ppc; |
| 6664 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 6665 |
char tx; |
| 6666 |
char *t = &tx; |
| 6667 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6668 |
|
| 6669 |
*t++ = 0; |
| 6670 |
if (s) return 0; |
| 6671 |
} |
| 6672 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6673 |
int x[] = {25, 17}; |
| 6674 |
const int *foo = &x[0]; |
| 6675 |
++foo; |
| 6676 |
} |
| 6677 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6678 |
typedef const int *iptr; |
| 6679 |
iptr p = 0; |
| 6680 |
++p; |
| 6681 |
} |
| 6682 |
{ /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 6683 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6684 |
struct s { int j; const int *ap[3]; } bx; |
| 6685 |
struct s *b = &bx; b->j = 5; |
| 6686 |
} |
| 6687 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6688 |
const int foo = 10; |
| 6689 |
if (!foo) return 0; |
| 6690 |
} |
| 6691 |
return !cs[0] && !zero.x; |
| 6692 |
#endif |
| 6693 |
|
| 6694 |
; |
| 6695 |
return 0; |
| 6696 |
} |
| 6697 |
_ACEOF |
| 6698 |
if ac_fn_c_try_compile "$LINENO" |
| 6699 |
then : |
| 6700 |
ac_cv_c_const=yes |
| 6701 |
else $as_nop |
| 6702 |
ac_cv_c_const=no |
| 6703 |
fi |
| 6704 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6705 |
fi |
| 6706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 6707 |
printf "%s\n" "$ac_cv_c_const" >&6; } |
| 6708 |
if test $ac_cv_c_const = no; then |
| 6709 |
|
| 6710 |
printf "%s\n" "#define const /**/" >>confdefs.h |
| 6711 |
|
| 6712 |
fi |
| 6713 |
|
| 6714 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 6715 |
printf %s "checking for inline... " >&6; } |
| 6716 |
if test ${ac_cv_c_inline+y} |
| 6717 |
then : |
| 6718 |
printf %s "(cached) " >&6 |
| 6719 |
else $as_nop |
| 6720 |
ac_cv_c_inline=no |
| 6721 |
for ac_kw in inline __inline__ __inline; do |
| 6722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6723 |
/* end confdefs.h. */ |
| 6724 |
#ifndef __cplusplus |
| 6725 |
typedef int foo_t; |
| 6726 |
static $ac_kw foo_t static_foo (void) {return 0; } |
| 6727 |
$ac_kw foo_t foo (void) {return 0; } |
| 6728 |
#endif |
| 6729 |
|
| 6730 |
_ACEOF |
| 6731 |
if ac_fn_c_try_compile "$LINENO" |
| 6732 |
then : |
| 6733 |
ac_cv_c_inline=$ac_kw |
| 6734 |
fi |
| 6735 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6736 |
test "$ac_cv_c_inline" != no && break |
| 6737 |
done |
| 6738 |
|
| 6739 |
fi |
| 6740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 6741 |
printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 6742 |
|
| 6743 |
case $ac_cv_c_inline in |
| 6744 |
inline | yes) ;; |
| 6745 |
*) |
| 6746 |
case $ac_cv_c_inline in |
| 6747 |
no) ac_val=;; |
| 6748 |
*) ac_val=$ac_cv_c_inline;; |
| 6749 |
esac |
| 6750 |
cat >>confdefs.h <<_ACEOF |
| 6751 |
#ifndef __cplusplus |
| 6752 |
#define inline $ac_val |
| 6753 |
#endif |
| 6754 |
_ACEOF |
| 6755 |
;; |
| 6756 |
esac |
| 6757 |
|
| 6758 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 6759 |
if test "x$ac_cv_type_mode_t" = xyes |
| 6760 |
then : |
| 6761 |
|
| 6762 |
else $as_nop |
| 6763 |
|
| 6764 |
printf "%s\n" "#define mode_t int" >>confdefs.h |
| 6765 |
|
| 6766 |
fi |
| 6767 |
|
| 6768 |
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6769 |
if test "x$ac_cv_type_off_t" = xyes |
| 6770 |
then : |
| 6771 |
|
| 6772 |
else $as_nop |
| 6773 |
|
| 6774 |
printf "%s\n" "#define off_t long int" >>confdefs.h |
| 6775 |
|
| 6776 |
fi |
| 6777 |
|
| 6778 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6779 |
if test "x$ac_cv_type_size_t" = xyes |
| 6780 |
then : |
| 6781 |
|
| 6782 |
else $as_nop |
| 6783 |
|
| 6784 |
printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 6785 |
|
| 6786 |
fi |
| 6787 |
|
| 6788 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 6789 |
if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
| 6790 |
then : |
| 6791 |
|
| 6792 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h |
| 6793 |
|
| 6794 |
|
| 6795 |
printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
| 6796 |
|
| 6797 |
else $as_nop |
| 6798 |
case " $LIBOBJS " in |
| 6799 |
*" fileblocks.$ac_objext "* ) ;; |
| 6800 |
*) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 6801 |
;; |
| 6802 |
esac |
| 6803 |
|
| 6804 |
fi |
| 6805 |
|
| 6806 |
|
| 6807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 6808 |
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 6809 |
if test ${ac_cv_struct_tm+y} |
| 6810 |
then : |
| 6811 |
printf %s "(cached) " >&6 |
| 6812 |
else $as_nop |
| 6813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6814 |
/* end confdefs.h. */ |
| 6815 |
#include <sys/types.h> |
| 6816 |
#include <time.h> |
| 6817 |
|
| 6818 |
int |
| 6819 |
main (void) |
| 6820 |
{ |
| 6821 |
struct tm tm; |
| 6822 |
int *p = &tm.tm_sec; |
| 6823 |
return !p; |
| 6824 |
; |
| 6825 |
return 0; |
| 6826 |
} |
| 6827 |
_ACEOF |
| 6828 |
if ac_fn_c_try_compile "$LINENO" |
| 6829 |
then : |
| 6830 |
ac_cv_struct_tm=time.h |
| 6831 |
else $as_nop |
| 6832 |
ac_cv_struct_tm=sys/time.h |
| 6833 |
fi |
| 6834 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6835 |
fi |
| 6836 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 6837 |
printf "%s\n" "$ac_cv_struct_tm" >&6; } |
| 6838 |
if test $ac_cv_struct_tm = sys/time.h; then |
| 6839 |
|
| 6840 |
printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| 6841 |
|
| 6842 |
fi |
| 6843 |
|
| 6844 |
|
| 6845 |
if test "x$ac_cv_header_stdint_h" != xyes; then |
| 6846 |
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include <sys/types.h> |
| 6847 |
" |
| 6848 |
if test "x$ac_cv_type_int8_t" = xyes |
| 6849 |
then : |
| 6850 |
|
| 6851 |
printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h |
| 6852 |
|
| 6853 |
|
| 6854 |
fi |
| 6855 |
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include <sys/types.h> |
| 6856 |
" |
| 6857 |
if test "x$ac_cv_type_int16_t" = xyes |
| 6858 |
then : |
| 6859 |
|
| 6860 |
printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h |
| 6861 |
|
| 6862 |
|
| 6863 |
fi |
| 6864 |
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include <sys/types.h> |
| 6865 |
" |
| 6866 |
if test "x$ac_cv_type_int32_t" = xyes |
| 6867 |
then : |
| 6868 |
|
| 6869 |
printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h |
| 6870 |
|
| 6871 |
|
| 6872 |
fi |
| 6873 |
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include <sys/types.h> |
| 6874 |
" |
| 6875 |
if test "x$ac_cv_type_uint8_t" = xyes |
| 6876 |
then : |
| 6877 |
|
| 6878 |
printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h |
| 6879 |
|
| 6880 |
|
| 6881 |
fi |
| 6882 |
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include <sys/types.h> |
| 6883 |
" |
| 6884 |
if test "x$ac_cv_type_uint16_t" = xyes |
| 6885 |
then : |
| 6886 |
|
| 6887 |
printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h |
| 6888 |
|
| 6889 |
|
| 6890 |
fi |
| 6891 |
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> |
| 6892 |
" |
| 6893 |
if test "x$ac_cv_type_uint32_t" = xyes |
| 6894 |
then : |
| 6895 |
|
| 6896 |
printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h |
| 6897 |
|
| 6898 |
|
| 6899 |
fi |
| 6900 |
|
| 6901 |
if test "$ac_cv_type_uint8_t" = yes; then |
| 6902 |
printf "%s\n" "#define SYS_TYPES_HAS_STDINT_TYPES 1" >>confdefs.h |
| 6903 |
|
| 6904 |
GCFLAGS="$GCFLAGS -DSYS_TYPES_HAS_STDINT_TYPES" |
| 6905 |
fi |
| 6906 |
fi |
| 6907 |
|
| 6908 |
if test "$ac_cv_c_const" != yes; then |
| 6909 |
GCFLAGS="$GCFLAGS -Dconst=" |
| 6910 |
fi |
| 6911 |
if test "x$ac_cv_header_stdint_h" = "xyes"; then |
| 6912 |
GCFLAGS="$GCFLAGS -DHAVE_STDINT_H=1" |
| 6913 |
else |
| 6914 |
GCFLAGS="$GCFLAGS -DHAVE_STDINT_H=0" |
| 6915 |
fi |
| 6916 |
|
| 6917 |
if test "x$ac_cv_header_dirent_h" = "xyes"; then |
| 6918 |
GCFLAGS="$GCFLAGS -DHAVE_DIRENT_H=1" |
| 6919 |
else |
| 6920 |
GCFLAGS="$GCFLAGS -DHAVE_DIRENT_H=0" |
| 6921 |
fi |
| 6922 |
|
| 6923 |
if test "x$ac_cv_header_ndir_h" = xyes; then |
| 6924 |
GCFLAGS="$GCFLAGS -DHAVE_NDIR_H=1" |
| 6925 |
else |
| 6926 |
GCFLAGS="$GCFLAGS -DHAVE_NDIR_H=0" |
| 6927 |
fi |
| 6928 |
|
| 6929 |
if test "x$ac_cv_header_sys_dir_h" = "xyes"; then |
| 6930 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_DIR_H=1" |
| 6931 |
else |
| 6932 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_DIR_H=0" |
| 6933 |
fi |
| 6934 |
|
| 6935 |
if test "x$ac_cv_header_sys_ndir_h" = "xyes"; then |
| 6936 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_NDIR_H=1" |
| 6937 |
else |
| 6938 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_NDIR_H=0" |
| 6939 |
fi |
| 6940 |
|
| 6941 |
if test "x$ac_cv_header_sys_time_h" = "xyes"; then |
| 6942 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIME_H=1" |
| 6943 |
else |
| 6944 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIME_H=0" |
| 6945 |
fi |
| 6946 |
|
| 6947 |
if test "x$ac_cv_header_sys_times_h" = "xyes"; then |
| 6948 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIMES_H=1" |
| 6949 |
else |
| 6950 |
GCFLAGS="$GCFLAGS -DHAVE_SYS_TIMES_H=0" |
| 6951 |
fi |
| 6952 |
|
| 6953 |
if test "x$ac_cv_header_inttypes_h" = "xyes"; then |
| 6954 |
GCFLAGS="$GCFLAGS -DHAVE_INTTYPES_H=1" |
| 6955 |
else |
| 6956 |
GCFLAGS="$GCFLAGS -DHAVE_INTTYPES_H=0" |
| 6957 |
fi |
| 6958 |
|
| 6959 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 6960 |
printf %s "checking for dlopen in -ldl... " >&6; } |
| 6961 |
if test ${ac_cv_lib_dl_dlopen+y} |
| 6962 |
then : |
| 6963 |
printf %s "(cached) " >&6 |
| 6964 |
else $as_nop |
| 6965 |
ac_check_lib_save_LIBS=$LIBS |
| 6966 |
LIBS="-ldl $LIBS" |
| 6967 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6968 |
/* end confdefs.h. */ |
| 6969 |
|
| 6970 |
/* Override any GCC internal prototype to avoid an error. |
| 6971 |
Use char because int might match the return type of a GCC |
| 6972 |
builtin and then its argument prototype would still apply. */ |
| 6973 |
char dlopen (); |
| 6974 |
int |
| 6975 |
main (void) |
| 6976 |
{ |
| 6977 |
return dlopen (); |
| 6978 |
; |
| 6979 |
return 0; |
| 6980 |
} |
| 6981 |
_ACEOF |
| 6982 |
if ac_fn_c_try_link "$LINENO" |
| 6983 |
then : |
| 6984 |
ac_cv_lib_dl_dlopen=yes |
| 6985 |
else $as_nop |
| 6986 |
ac_cv_lib_dl_dlopen=no |
| 6987 |
fi |
| 6988 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6989 |
conftest$ac_exeext conftest.$ac_ext |
| 6990 |
LIBS=$ac_check_lib_save_LIBS |
| 6991 |
fi |
| 6992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6993 |
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 6994 |
if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 6995 |
then : |
| 6996 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 6997 |
if test "x$ac_cv_header_dlfcn_h" = xyes |
| 6998 |
then : |
| 6999 |
GCFLAGS="$GCFLAGS -DHAVE_LIBDL=1";LIBS="-ldl $LIBS" |
| 7000 |
fi |
| 7001 |
|
| 7002 |
|
| 7003 |
fi |
| 7004 |
|
| 7005 |
|
| 7006 |
large_color_index=1 |
| 7007 |
|
| 7008 |
|
| 7009 |
# Check whether --with-large_color_index was given. |
| 7010 |
if test ${with_large_color_index+y} |
| 7011 |
then : |
| 7012 |
withval=$with_large_color_index; large_color_index="$with_large_color_index" |
| 7013 |
fi |
| 7014 |
|
| 7015 |
|
| 7016 |
if test x"$large_color_index" != "x0"; then |
| 7017 |
color_ind_type="none" |
| 7018 |
# The cast to long int works around a bug in the HP C Compiler |
| 7019 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7020 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7021 |
# This bug is HP SR number 8606223364. |
| 7022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 7023 |
printf %s "checking size of unsigned long long... " >&6; } |
| 7024 |
if test ${ac_cv_sizeof_unsigned_long_long+y} |
| 7025 |
then : |
| 7026 |
printf %s "(cached) " >&6 |
| 7027 |
else $as_nop |
| 7028 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default" |
| 7029 |
then : |
| 7030 |
|
| 7031 |
else $as_nop |
| 7032 |
if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 7033 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7034 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7035 |
as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 7036 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7037 |
else |
| 7038 |
ac_cv_sizeof_unsigned_long_long=0 |
| 7039 |
fi |
| 7040 |
fi |
| 7041 |
|
| 7042 |
fi |
| 7043 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 7044 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 7045 |
|
| 7046 |
|
| 7047 |
|
| 7048 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h |
| 7049 |
|
| 7050 |
|
| 7051 |
if test $ac_cv_sizeof_unsigned_long_long = 8; then |
| 7052 |
color_ind_type="unsigned long long" |
| 7053 |
color_ind_size=$ac_cv_sizeof_unsigned_long_long |
| 7054 |
else |
| 7055 |
# The cast to long int works around a bug in the HP C Compiler |
| 7056 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7057 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7058 |
# This bug is HP SR number 8606223364. |
| 7059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5 |
| 7060 |
printf %s "checking size of unsigned long int... " >&6; } |
| 7061 |
if test ${ac_cv_sizeof_unsigned_long_int+y} |
| 7062 |
then : |
| 7063 |
printf %s "(cached) " >&6 |
| 7064 |
else $as_nop |
| 7065 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default" |
| 7066 |
then : |
| 7067 |
|
| 7068 |
else $as_nop |
| 7069 |
if test "$ac_cv_type_unsigned_long_int" = yes; then |
| 7070 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7071 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7072 |
as_fn_error 77 "cannot compute sizeof (unsigned long int) |
| 7073 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7074 |
else |
| 7075 |
ac_cv_sizeof_unsigned_long_int=0 |
| 7076 |
fi |
| 7077 |
fi |
| 7078 |
|
| 7079 |
fi |
| 7080 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5 |
| 7081 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; } |
| 7082 |
|
| 7083 |
|
| 7084 |
|
| 7085 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h |
| 7086 |
|
| 7087 |
|
| 7088 |
if test $ac_cv_sizeof_unsigned_long_int = 8; then |
| 7089 |
color_ind_type="unsigned long int" |
| 7090 |
color_ind_size=$ac_cv_sizeof_unsigned_long_int |
| 7091 |
else |
| 7092 |
# The cast to long int works around a bug in the HP C Compiler |
| 7093 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7094 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7095 |
# This bug is HP SR number 8606223364. |
| 7096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int64" >&5 |
| 7097 |
printf %s "checking size of unsigned __int64... " >&6; } |
| 7098 |
if test ${ac_cv_sizeof_unsigned___int64+y} |
| 7099 |
then : |
| 7100 |
printf %s "(cached) " >&6 |
| 7101 |
else $as_nop |
| 7102 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int64))" "ac_cv_sizeof_unsigned___int64" "$ac_includes_default" |
| 7103 |
then : |
| 7104 |
|
| 7105 |
else $as_nop |
| 7106 |
if test "$ac_cv_type_unsigned___int64" = yes; then |
| 7107 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7108 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7109 |
as_fn_error 77 "cannot compute sizeof (unsigned __int64) |
| 7110 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7111 |
else |
| 7112 |
ac_cv_sizeof_unsigned___int64=0 |
| 7113 |
fi |
| 7114 |
fi |
| 7115 |
|
| 7116 |
fi |
| 7117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int64" >&5 |
| 7118 |
printf "%s\n" "$ac_cv_sizeof_unsigned___int64" >&6; } |
| 7119 |
|
| 7120 |
|
| 7121 |
|
| 7122 |
printf "%s\n" "#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64" >>confdefs.h |
| 7123 |
|
| 7124 |
|
| 7125 |
if test $ac_cv_sizeof_unsigned___int64 = 8; then |
| 7126 |
color_ind_type="unsigned __int64" |
| 7127 |
color_ind_size=$ac_cv_sizeof_unsigned___int64 |
| 7128 |
else |
| 7129 |
# The cast to long int works around a bug in the HP C Compiler |
| 7130 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7131 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7132 |
# This bug is HP SR number 8606223364. |
| 7133 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int64_t" >&5 |
| 7134 |
printf %s "checking size of u_int64_t... " >&6; } |
| 7135 |
if test ${ac_cv_sizeof_u_int64_t+y} |
| 7136 |
then : |
| 7137 |
printf %s "(cached) " >&6 |
| 7138 |
else $as_nop |
| 7139 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int64_t))" "ac_cv_sizeof_u_int64_t" "$ac_includes_default" |
| 7140 |
then : |
| 7141 |
|
| 7142 |
else $as_nop |
| 7143 |
if test "$ac_cv_type_u_int64_t" = yes; then |
| 7144 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7145 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7146 |
as_fn_error 77 "cannot compute sizeof (u_int64_t) |
| 7147 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7148 |
else |
| 7149 |
ac_cv_sizeof_u_int64_t=0 |
| 7150 |
fi |
| 7151 |
fi |
| 7152 |
|
| 7153 |
fi |
| 7154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int64_t" >&5 |
| 7155 |
printf "%s\n" "$ac_cv_sizeof_u_int64_t" >&6; } |
| 7156 |
|
| 7157 |
|
| 7158 |
|
| 7159 |
printf "%s\n" "#define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t" >>confdefs.h |
| 7160 |
|
| 7161 |
|
| 7162 |
if test $ac_cv_sizeof_u_int64_t = 8; then |
| 7163 |
color_ind_type="u_int64_t" |
| 7164 |
color_ind_size=$ac_cv_sizeof_u_int64_t |
| 7165 |
fi |
| 7166 |
fi |
| 7167 |
fi |
| 7168 |
fi |
| 7169 |
else |
| 7170 |
color_ind_type="none" |
| 7171 |
# The cast to long int works around a bug in the HP C Compiler |
| 7172 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7173 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7174 |
# This bug is HP SR number 8606223364. |
| 7175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5 |
| 7176 |
printf %s "checking size of unsigned long int... " >&6; } |
| 7177 |
if test ${ac_cv_sizeof_unsigned_long_int+y} |
| 7178 |
then : |
| 7179 |
printf %s "(cached) " >&6 |
| 7180 |
else $as_nop |
| 7181 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default" |
| 7182 |
then : |
| 7183 |
|
| 7184 |
else $as_nop |
| 7185 |
if test "$ac_cv_type_unsigned_long_int" = yes; then |
| 7186 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7187 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7188 |
as_fn_error 77 "cannot compute sizeof (unsigned long int) |
| 7189 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7190 |
else |
| 7191 |
ac_cv_sizeof_unsigned_long_int=0 |
| 7192 |
fi |
| 7193 |
fi |
| 7194 |
|
| 7195 |
fi |
| 7196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5 |
| 7197 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; } |
| 7198 |
|
| 7199 |
|
| 7200 |
|
| 7201 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h |
| 7202 |
|
| 7203 |
|
| 7204 |
if test $ac_cv_sizeof_unsigned_long_int = 4; then |
| 7205 |
color_ind_type="unsigned long int" |
| 7206 |
color_ind_size=$ac_cv_sizeof_unsigned_long_int |
| 7207 |
else |
| 7208 |
# The cast to long int works around a bug in the HP C Compiler |
| 7209 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7210 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7211 |
# This bug is HP SR number 8606223364. |
| 7212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| 7213 |
printf %s "checking size of unsigned int... " >&6; } |
| 7214 |
if test ${ac_cv_sizeof_unsigned_int+y} |
| 7215 |
then : |
| 7216 |
printf %s "(cached) " >&6 |
| 7217 |
else $as_nop |
| 7218 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default" |
| 7219 |
then : |
| 7220 |
|
| 7221 |
else $as_nop |
| 7222 |
if test "$ac_cv_type_unsigned_int" = yes; then |
| 7223 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7224 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7225 |
as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 7226 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7227 |
else |
| 7228 |
ac_cv_sizeof_unsigned_int=0 |
| 7229 |
fi |
| 7230 |
fi |
| 7231 |
|
| 7232 |
fi |
| 7233 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 |
| 7234 |
printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; } |
| 7235 |
|
| 7236 |
|
| 7237 |
|
| 7238 |
printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h |
| 7239 |
|
| 7240 |
|
| 7241 |
if test $ac_cv_sizeof_unsigned_int = 4; then |
| 7242 |
color_ind_type="unsigned int" |
| 7243 |
color_ind_size=$ac_cv_sizeof_unsigned_int |
| 7244 |
else |
| 7245 |
# The cast to long int works around a bug in the HP C Compiler |
| 7246 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7247 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7248 |
# This bug is HP SR number 8606223364. |
| 7249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int32" >&5 |
| 7250 |
printf %s "checking size of unsigned __int32... " >&6; } |
| 7251 |
if test ${ac_cv_sizeof_unsigned___int32+y} |
| 7252 |
then : |
| 7253 |
printf %s "(cached) " >&6 |
| 7254 |
else $as_nop |
| 7255 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int32))" "ac_cv_sizeof_unsigned___int32" "$ac_includes_default" |
| 7256 |
then : |
| 7257 |
|
| 7258 |
else $as_nop |
| 7259 |
if test "$ac_cv_type_unsigned___int32" = yes; then |
| 7260 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7261 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7262 |
as_fn_error 77 "cannot compute sizeof (unsigned __int32) |
| 7263 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7264 |
else |
| 7265 |
ac_cv_sizeof_unsigned___int32=0 |
| 7266 |
fi |
| 7267 |
fi |
| 7268 |
|
| 7269 |
fi |
| 7270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int32" >&5 |
| 7271 |
printf "%s\n" "$ac_cv_sizeof_unsigned___int32" >&6; } |
| 7272 |
|
| 7273 |
|
| 7274 |
|
| 7275 |
printf "%s\n" "#define SIZEOF_UNSIGNED___INT32 $ac_cv_sizeof_unsigned___int32" >>confdefs.h |
| 7276 |
|
| 7277 |
|
| 7278 |
if test $ac_cv_sizeof_unsigned___int32 = 4; then |
| 7279 |
color_ind_type="unsigned __int32" |
| 7280 |
color_in_size=$ac_cv_sizeof_unsigned___int32 |
| 7281 |
else |
| 7282 |
# The cast to long int works around a bug in the HP C Compiler |
| 7283 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7284 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7285 |
# This bug is HP SR number 8606223364. |
| 7286 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5 |
| 7287 |
printf %s "checking size of u_int32_t... " >&6; } |
| 7288 |
if test ${ac_cv_sizeof_u_int32_t+y} |
| 7289 |
then : |
| 7290 |
printf %s "(cached) " >&6 |
| 7291 |
else $as_nop |
| 7292 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default" |
| 7293 |
then : |
| 7294 |
|
| 7295 |
else $as_nop |
| 7296 |
if test "$ac_cv_type_u_int32_t" = yes; then |
| 7297 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7298 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7299 |
as_fn_error 77 "cannot compute sizeof (u_int32_t) |
| 7300 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7301 |
else |
| 7302 |
ac_cv_sizeof_u_int32_t=0 |
| 7303 |
fi |
| 7304 |
fi |
| 7305 |
|
| 7306 |
fi |
| 7307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5 |
| 7308 |
printf "%s\n" "$ac_cv_sizeof_u_int32_t" >&6; } |
| 7309 |
|
| 7310 |
|
| 7311 |
|
| 7312 |
printf "%s\n" "#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t" >>confdefs.h |
| 7313 |
|
| 7314 |
|
| 7315 |
if test $ac_cv_sizeof_u_int32_t = 4; then |
| 7316 |
color_ind_type="u_int32_t" |
| 7317 |
color_ind_size=$ac_cv_sizeof_u_int32_t |
| 7318 |
fi |
| 7319 |
fi |
| 7320 |
fi |
| 7321 |
fi |
| 7322 |
fi |
| 7323 |
|
| 7324 |
if test "$color_ind_type" != "none"; then |
| 7325 |
GCFLAGS="$GCFLAGS -DGX_COLOR_INDEX_TYPE=\"$color_ind_type\"" |
| 7326 |
ARCH_SIZEOF_GX_COLOR_INDEX=$color_ind_size |
| 7327 |
fi |
| 7328 |
|
| 7329 |
|
| 7330 |
|
| 7331 |
|
| 7332 |
|
| 7333 |
|
| 7334 |
SUBCONFIG_OPTS="--build=$build --host=$host" |
| 7335 |
|
| 7336 |
#SUBCONFIG_OPTS="" |
| 7337 |
#if test x"$build_alias" != x""; then |
| 7338 |
# SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias" |
| 7339 |
#fi |
| 7340 |
#if test x"$host_alias" != x""; then |
| 7341 |
# SUBCONFIG_OPTS="$SUBCONFIG_OPTS --host=$host_alias" |
| 7342 |
#fi |
| 7343 |
|
| 7344 |
save_cflags=$CFLAGS |
| 7345 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking neon support" >&5 |
| 7346 |
printf %s "checking neon support... " >&6; } |
| 7347 |
CFLAGS="$save_cflags $OPT_CFLAGS -mfpu=neon -mcpu=cortex-a53" |
| 7348 |
HAVE_NEON="" |
| 7349 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7350 |
/* end confdefs.h. */ |
| 7351 |
#include "arm_neon.h" |
| 7352 |
int |
| 7353 |
main (void) |
| 7354 |
{ |
| 7355 |
|
| 7356 |
int32x4_t round = vdupq_n_s32(10); |
| 7357 |
return(0); |
| 7358 |
|
| 7359 |
; |
| 7360 |
return 0; |
| 7361 |
} |
| 7362 |
_ACEOF |
| 7363 |
if ac_fn_c_try_link "$LINENO" |
| 7364 |
then : |
| 7365 |
HAVE_NEON="-DHAVE_NEON" |
| 7366 |
else $as_nop |
| 7367 |
HAVE_NEON="" |
| 7368 |
fi |
| 7369 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7370 |
conftest$ac_exeext conftest.$ac_ext |
| 7371 |
|
| 7372 |
# Check whether --enable-neon was given. |
| 7373 |
if test ${enable_neon+y} |
| 7374 |
then : |
| 7375 |
enableval=$enable_neon; |
| 7376 |
if test "x$enable_neon" = xno; then |
| 7377 |
HAVE_NEON="" |
| 7378 |
fi |
| 7379 |
fi |
| 7380 |
|
| 7381 |
|
| 7382 |
if test "x$HAVE_NEON" != x; then |
| 7383 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7384 |
printf "%s\n" "yes" >&6; } |
| 7385 |
else |
| 7386 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7387 |
printf "%s\n" "no" >&6; } |
| 7388 |
fi |
| 7389 |
CFLAGS=$save_cflags |
| 7390 |
|
| 7391 |
|
| 7392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
| 7393 |
printf %s "checking for cos in -lm... " >&6; } |
| 7394 |
if test ${ac_cv_lib_m_cos+y} |
| 7395 |
then : |
| 7396 |
printf %s "(cached) " >&6 |
| 7397 |
else $as_nop |
| 7398 |
ac_check_lib_save_LIBS=$LIBS |
| 7399 |
LIBS="-lm $LIBS" |
| 7400 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7401 |
/* end confdefs.h. */ |
| 7402 |
|
| 7403 |
/* Override any GCC internal prototype to avoid an error. |
| 7404 |
Use char because int might match the return type of a GCC |
| 7405 |
builtin and then its argument prototype would still apply. */ |
| 7406 |
char cos (); |
| 7407 |
int |
| 7408 |
main (void) |
| 7409 |
{ |
| 7410 |
return cos (); |
| 7411 |
; |
| 7412 |
return 0; |
| 7413 |
} |
| 7414 |
_ACEOF |
| 7415 |
if ac_fn_c_try_link "$LINENO" |
| 7416 |
then : |
| 7417 |
ac_cv_lib_m_cos=yes |
| 7418 |
else $as_nop |
| 7419 |
ac_cv_lib_m_cos=no |
| 7420 |
fi |
| 7421 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7422 |
conftest$ac_exeext conftest.$ac_ext |
| 7423 |
LIBS=$ac_check_lib_save_LIBS |
| 7424 |
fi |
| 7425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
| 7426 |
printf "%s\n" "$ac_cv_lib_m_cos" >&6; } |
| 7427 |
if test "x$ac_cv_lib_m_cos" = xyes |
| 7428 |
then : |
| 7429 |
printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h |
| 7430 |
|
| 7431 |
LIBS="-lm $LIBS" |
| 7432 |
|
| 7433 |
fi |
| 7434 |
|
| 7435 |
|
| 7436 |
|
| 7437 |
for ac_func in pread pwrite |
| 7438 |
do : |
| 7439 |
as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7440 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7441 |
if eval test \"x\$"$as_ac_var"\" = x"yes" |
| 7442 |
then : |
| 7443 |
cat >>confdefs.h <<_ACEOF |
| 7444 |
#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7445 |
_ACEOF |
| 7446 |
HAVE_PREAD_PWRITE="-DHAVE_PREAD_PWRITE=1" |
| 7447 |
else $as_nop |
| 7448 |
HAVE_PREAD_PWRITE= |
| 7449 |
fi |
| 7450 |
|
| 7451 |
done |
| 7452 |
|
| 7453 |
if test "x$HAVE_PREAD_PWRITE" != "x"; then |
| 7454 |
save_cflags=$CFLAGS |
| 7455 |
CFLAGS="$CFLAGS -D__USE_UNIX98=1 -D_XOPEN_SOURCE=500" |
| 7456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 7457 |
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 7458 |
if test ${ac_cv_c_undeclared_builtin_options+y} |
| 7459 |
then : |
| 7460 |
printf %s "(cached) " >&6 |
| 7461 |
else $as_nop |
| 7462 |
ac_save_CFLAGS=$CFLAGS |
| 7463 |
ac_cv_c_undeclared_builtin_options='cannot detect' |
| 7464 |
for ac_arg in '' -fno-builtin; do |
| 7465 |
CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 7466 |
# This test program should *not* compile successfully. |
| 7467 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7468 |
/* end confdefs.h. */ |
| 7469 |
|
| 7470 |
int |
| 7471 |
main (void) |
| 7472 |
{ |
| 7473 |
(void) strchr; |
| 7474 |
; |
| 7475 |
return 0; |
| 7476 |
} |
| 7477 |
_ACEOF |
| 7478 |
if ac_fn_c_try_compile "$LINENO" |
| 7479 |
then : |
| 7480 |
|
| 7481 |
else $as_nop |
| 7482 |
# This test program should compile successfully. |
| 7483 |
# No library function is consistently available on |
| 7484 |
# freestanding implementations, so test against a dummy |
| 7485 |
# declaration. Include always-available headers on the |
| 7486 |
# off chance that they somehow elicit warnings. |
| 7487 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7488 |
/* end confdefs.h. */ |
| 7489 |
#include <float.h> |
| 7490 |
#include <limits.h> |
| 7491 |
#include <stdarg.h> |
| 7492 |
#include <stddef.h> |
| 7493 |
extern void ac_decl (int, char *); |
| 7494 |
|
| 7495 |
int |
| 7496 |
main (void) |
| 7497 |
{ |
| 7498 |
(void) ac_decl (0, (char *) 0); |
| 7499 |
(void) ac_decl; |
| 7500 |
|
| 7501 |
; |
| 7502 |
return 0; |
| 7503 |
} |
| 7504 |
_ACEOF |
| 7505 |
if ac_fn_c_try_compile "$LINENO" |
| 7506 |
then : |
| 7507 |
if test x"$ac_arg" = x |
| 7508 |
then : |
| 7509 |
ac_cv_c_undeclared_builtin_options='none needed' |
| 7510 |
else $as_nop |
| 7511 |
ac_cv_c_undeclared_builtin_options=$ac_arg |
| 7512 |
fi |
| 7513 |
break |
| 7514 |
fi |
| 7515 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7516 |
fi |
| 7517 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7518 |
done |
| 7519 |
CFLAGS=$ac_save_CFLAGS |
| 7520 |
|
| 7521 |
fi |
| 7522 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 7523 |
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 7524 |
case $ac_cv_c_undeclared_builtin_options in #( |
| 7525 |
'cannot detect') : |
| 7526 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7527 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7528 |
as_fn_error $? "cannot make $CC report undeclared builtins |
| 7529 |
See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 7530 |
'none needed') : |
| 7531 |
ac_c_undeclared_builtin_options='' ;; #( |
| 7532 |
*) : |
| 7533 |
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 7534 |
esac |
| 7535 |
|
| 7536 |
ac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 7537 |
if test "x$ac_cv_have_decl_pwrite" = xyes |
| 7538 |
then : |
| 7539 |
ac_have_decl=1 |
| 7540 |
else $as_nop |
| 7541 |
ac_have_decl=0 |
| 7542 |
fi |
| 7543 |
printf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h |
| 7544 |
if test $ac_have_decl = 1 |
| 7545 |
then : |
| 7546 |
|
| 7547 |
else $as_nop |
| 7548 |
HAVE_PREAD_PWRITE= |
| 7549 |
fi |
| 7550 |
ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 7551 |
if test "x$ac_cv_have_decl_pread" = xyes |
| 7552 |
then : |
| 7553 |
ac_have_decl=1 |
| 7554 |
else $as_nop |
| 7555 |
ac_have_decl=0 |
| 7556 |
fi |
| 7557 |
printf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h |
| 7558 |
if test $ac_have_decl = 1 |
| 7559 |
then : |
| 7560 |
|
| 7561 |
else $as_nop |
| 7562 |
HAVE_PREAD_PWRITE= |
| 7563 |
fi |
| 7564 |
|
| 7565 |
CFLAGS=$save_cflags |
| 7566 |
if test "x$HAVE_PREAD_PWRITE" != "x"; then |
| 7567 |
GCFLAGS="$GCFLAGS -D__USE_UNIX98=1" |
| 7568 |
fi |
| 7569 |
fi |
| 7570 |
|
| 7571 |
|
| 7572 |
|
| 7573 |
ac_fn_check_decl "$LINENO" "popen" "ac_cv_have_decl_popen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 7574 |
if test "x$ac_cv_have_decl_popen" = xyes |
| 7575 |
then : |
| 7576 |
HAVE_POPEN_PROTO="-DHAVE_POPEN_PROTO=1" |
| 7577 |
else $as_nop |
| 7578 |
AVE_POPEN_PROTO= |
| 7579 |
fi |
| 7580 |
|
| 7581 |
|
| 7582 |
SYNC="nosync" |
| 7583 |
PTHREAD_LIBS="" |
| 7584 |
RECURSIVE_MUTEXATTR="" |
| 7585 |
|
| 7586 |
# Check whether --enable-threading was given. |
| 7587 |
if test ${enable_threading+y} |
| 7588 |
then : |
| 7589 |
enableval=$enable_threading; |
| 7590 |
fi |
| 7591 |
|
| 7592 |
|
| 7593 |
# if you haven't got pread/pwrite, we can't use multithreading |
| 7594 |
if test "x$HAVE_PREAD_PWRITE" != "x"; then |
| 7595 |
if test "$enable_threading" != "no"; then |
| 7596 |
mutex_result="no" |
| 7597 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 7598 |
printf %s "checking for pthread_create in -lpthread... " >&6; } |
| 7599 |
if test ${ac_cv_lib_pthread_pthread_create+y} |
| 7600 |
then : |
| 7601 |
printf %s "(cached) " >&6 |
| 7602 |
else $as_nop |
| 7603 |
ac_check_lib_save_LIBS=$LIBS |
| 7604 |
LIBS="-lpthread $LIBS" |
| 7605 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7606 |
/* end confdefs.h. */ |
| 7607 |
|
| 7608 |
/* Override any GCC internal prototype to avoid an error. |
| 7609 |
Use char because int might match the return type of a GCC |
| 7610 |
builtin and then its argument prototype would still apply. */ |
| 7611 |
char pthread_create (); |
| 7612 |
int |
| 7613 |
main (void) |
| 7614 |
{ |
| 7615 |
return pthread_create (); |
| 7616 |
; |
| 7617 |
return 0; |
| 7618 |
} |
| 7619 |
_ACEOF |
| 7620 |
if ac_fn_c_try_link "$LINENO" |
| 7621 |
then : |
| 7622 |
ac_cv_lib_pthread_pthread_create=yes |
| 7623 |
else $as_nop |
| 7624 |
ac_cv_lib_pthread_pthread_create=no |
| 7625 |
fi |
| 7626 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7627 |
conftest$ac_exeext conftest.$ac_ext |
| 7628 |
LIBS=$ac_check_lib_save_LIBS |
| 7629 |
fi |
| 7630 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 7631 |
printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 7632 |
if test "x$ac_cv_lib_pthread_pthread_create" = xyes |
| 7633 |
then : |
| 7634 |
|
| 7635 |
SYNC=posync; |
| 7636 |
PTHREAD_LIBS="-lpthread" |
| 7637 |
|
| 7638 |
fi |
| 7639 |
|
| 7640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5 |
| 7641 |
printf %s "checking for recursive mutexes... " >&6; } |
| 7642 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7643 |
/* end confdefs.h. */ |
| 7644 |
#include <pthread.h> |
| 7645 |
int |
| 7646 |
main (void) |
| 7647 |
{ |
| 7648 |
|
| 7649 |
static int k = PTHREAD_MUTEX_RECURSIVE; |
| 7650 |
#ifndef pthread_mutexattr_settype |
| 7651 |
#ifdef __cplusplus |
| 7652 |
(void) pthread_mutexattr_settype; |
| 7653 |
#else |
| 7654 |
(void) pthread_mutexattr_settype; |
| 7655 |
#endif |
| 7656 |
#endif |
| 7657 |
; |
| 7658 |
return 0; |
| 7659 |
|
| 7660 |
; |
| 7661 |
return 0; |
| 7662 |
} |
| 7663 |
_ACEOF |
| 7664 |
if ac_fn_c_try_compile "$LINENO" |
| 7665 |
then : |
| 7666 |
RECURSIVE_MUTEXATTR="-DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE" |
| 7667 |
mutex_result="PTHREAD_MUTEX_RECURSIVE" |
| 7668 |
else $as_nop |
| 7669 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7670 |
/* end confdefs.h. */ |
| 7671 |
#include <pthread.h> |
| 7672 |
int |
| 7673 |
main (void) |
| 7674 |
{ |
| 7675 |
|
| 7676 |
static int k = PTHREAD_MUTEX_RECURSIVE_NP; |
| 7677 |
#ifndef pthread_mutexattr_settype |
| 7678 |
#ifdef __cplusplus |
| 7679 |
(void) pthread_mutexattr_settype; |
| 7680 |
#else |
| 7681 |
(void) pthread_mutexattr_settype; |
| 7682 |
#endif |
| 7683 |
#endif |
| 7684 |
; |
| 7685 |
return 0; |
| 7686 |
|
| 7687 |
; |
| 7688 |
return 0; |
| 7689 |
} |
| 7690 |
_ACEOF |
| 7691 |
if ac_fn_c_try_compile "$LINENO" |
| 7692 |
then : |
| 7693 |
RECURSIVE_MUTEXATTR="-DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE_NP" |
| 7694 |
mutex_result="PTHREAD_MUTEX_RECURSIVE_NP" |
| 7695 |
fi |
| 7696 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7697 |
fi |
| 7698 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7699 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mutex_result" >&5 |
| 7700 |
printf "%s\n" "$mutex_result" >&6; } |
| 7701 |
fi |
| 7702 |
fi |
| 7703 |
|
| 7704 |
|
| 7705 |
|
| 7706 |
|
| 7707 |
|
| 7708 |
TESSERACTDIR=$srcdir/tesseract |
| 7709 |
LEPTONICADIR=$srcdir/leptonica |
| 7710 |
OCR_VERSION=0 |
| 7711 |
OCR_SHARED=0 |
| 7712 |
LEPTONICAINCLUDE= |
| 7713 |
TESSERACTINCLUDE= |
| 7714 |
TESSERACT_LIBS= |
| 7715 |
OCR_DEVS= |
| 7716 |
|
| 7717 |
OCR_DEVS_WARNING_LINE1= |
| 7718 |
OCR_DEVS_WARNING_LINE2= |
| 7719 |
|
| 7720 |
|
| 7721 |
# Check whether --with-tesseract was given. |
| 7722 |
if test ${with_tesseract+y} |
| 7723 |
then : |
| 7724 |
withval=$with_tesseract; |
| 7725 |
fi |
| 7726 |
|
| 7727 |
|
| 7728 |
if test x$with_tesseract != xno; then |
| 7729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local Tesseract library source" >&5 |
| 7730 |
printf %s "checking for local Tesseract library source... " >&6; } |
| 7731 |
if test -d $srcdir/tesseract && test -d $srcdir/leptonica; then |
| 7732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7733 |
printf "%s\n" "yes" >&6; } |
| 7734 |
|
| 7735 |
if test x$with_tesseract != xno; then |
| 7736 |
|
| 7737 |
case $host in |
| 7738 |
*-aix*) |
| 7739 |
if test x"$GXX" = x"no" ; then |
| 7740 |
with_tesseract=no |
| 7741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OCR devices disabled due to incompatibility with IBM AIX" >&5 |
| 7742 |
printf "%s\n" "$as_me: WARNING: OCR devices disabled due to incompatibility with IBM AIX" >&2;} |
| 7743 |
OCR_DEVS_WARNING_LINE1="OCR devices disabled due to incompatibility with IBM AIX" |
| 7744 |
else |
| 7745 |
CXXFLAGS="$CXXFLAGS -pthread" |
| 7746 |
LDFLAGS="$LDFLAGS -pthread" |
| 7747 |
fi |
| 7748 |
;; |
| 7749 |
*-sun*|*-solaris*) |
| 7750 |
if test x"$GXX" = x"no" ; then |
| 7751 |
with_tesseract=no |
| 7752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OCR devices disabled due to incompatibility with Oracle/Sun Solaris" >&5 |
| 7753 |
printf "%s\n" "$as_me: WARNING: OCR devices disabled due to incompatibility with Oracle/Sun Solaris" >&2;} |
| 7754 |
OCR_DEVS_WARNING_LINE1="OCR devices disabled due to incompatibility with Oracle/Sun Solaris" |
| 7755 |
else |
| 7756 |
# For some reason, the gnu std lib on Solaris (SPARC) doesn't include (all?) the atomic data |
| 7757 |
# types, so disable their use. |
| 7758 |
CXXFLAGS="$CXXFLAGS -D__STDC_NO_ATOMICS__=1" |
| 7759 |
fi |
| 7760 |
;; |
| 7761 |
esac |
| 7762 |
|
| 7763 |
ac_ext=cpp |
| 7764 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7765 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7766 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7767 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7768 |
|
| 7769 |
|
| 7770 |
|
| 7771 |
|
| 7772 |
|
| 7773 |
|
| 7774 |
|
| 7775 |
ac_ext=cpp |
| 7776 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7777 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7778 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7779 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7780 |
if test -z "$CXX"; then |
| 7781 |
if test -n "$CCC"; then |
| 7782 |
CXX=$CCC |
| 7783 |
else |
| 7784 |
if test -n "$ac_tool_prefix"; then |
| 7785 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 7786 |
do |
| 7787 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7788 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7789 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7790 |
printf %s "checking for $ac_word... " >&6; } |
| 7791 |
if test ${ac_cv_prog_CXX+y} |
| 7792 |
then : |
| 7793 |
printf %s "(cached) " >&6 |
| 7794 |
else $as_nop |
| 7795 |
if test -n "$CXX"; then |
| 7796 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7797 |
else |
| 7798 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7799 |
for as_dir in $PATH |
| 7800 |
do |
| 7801 |
IFS=$as_save_IFS |
| 7802 |
case $as_dir in #((( |
| 7803 |
'') as_dir=./ ;; |
| 7804 |
*/) ;; |
| 7805 |
*) as_dir=$as_dir/ ;; |
| 7806 |
esac |
| 7807 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7808 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7809 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7810 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7811 |
break 2 |
| 7812 |
fi |
| 7813 |
done |
| 7814 |
done |
| 7815 |
IFS=$as_save_IFS |
| 7816 |
|
| 7817 |
fi |
| 7818 |
fi |
| 7819 |
CXX=$ac_cv_prog_CXX |
| 7820 |
if test -n "$CXX"; then |
| 7821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7822 |
printf "%s\n" "$CXX" >&6; } |
| 7823 |
else |
| 7824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7825 |
printf "%s\n" "no" >&6; } |
| 7826 |
fi |
| 7827 |
|
| 7828 |
|
| 7829 |
test -n "$CXX" && break |
| 7830 |
done |
| 7831 |
fi |
| 7832 |
if test -z "$CXX"; then |
| 7833 |
ac_ct_CXX=$CXX |
| 7834 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 7835 |
do |
| 7836 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7837 |
set dummy $ac_prog; ac_word=$2 |
| 7838 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7839 |
printf %s "checking for $ac_word... " >&6; } |
| 7840 |
if test ${ac_cv_prog_ac_ct_CXX+y} |
| 7841 |
then : |
| 7842 |
printf %s "(cached) " >&6 |
| 7843 |
else $as_nop |
| 7844 |
if test -n "$ac_ct_CXX"; then |
| 7845 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7846 |
else |
| 7847 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7848 |
for as_dir in $PATH |
| 7849 |
do |
| 7850 |
IFS=$as_save_IFS |
| 7851 |
case $as_dir in #((( |
| 7852 |
'') as_dir=./ ;; |
| 7853 |
*/) ;; |
| 7854 |
*) as_dir=$as_dir/ ;; |
| 7855 |
esac |
| 7856 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7857 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7858 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7859 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7860 |
break 2 |
| 7861 |
fi |
| 7862 |
done |
| 7863 |
done |
| 7864 |
IFS=$as_save_IFS |
| 7865 |
|
| 7866 |
fi |
| 7867 |
fi |
| 7868 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7869 |
if test -n "$ac_ct_CXX"; then |
| 7870 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7871 |
printf "%s\n" "$ac_ct_CXX" >&6; } |
| 7872 |
else |
| 7873 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7874 |
printf "%s\n" "no" >&6; } |
| 7875 |
fi |
| 7876 |
|
| 7877 |
|
| 7878 |
test -n "$ac_ct_CXX" && break |
| 7879 |
done |
| 7880 |
|
| 7881 |
if test "x$ac_ct_CXX" = x; then |
| 7882 |
CXX="g++" |
| 7883 |
else |
| 7884 |
case $cross_compiling:$ac_tool_warned in |
| 7885 |
yes:) |
| 7886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7887 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7888 |
ac_tool_warned=yes ;; |
| 7889 |
esac |
| 7890 |
CXX=$ac_ct_CXX |
| 7891 |
fi |
| 7892 |
fi |
| 7893 |
|
| 7894 |
fi |
| 7895 |
fi |
| 7896 |
# Provide some information about the compiler. |
| 7897 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7898 |
set X $ac_compile |
| 7899 |
ac_compiler=$2 |
| 7900 |
for ac_option in --version -v -V -qversion; do |
| 7901 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 7902 |
case "(($ac_try" in |
| 7903 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7904 |
*) ac_try_echo=$ac_try;; |
| 7905 |
esac |
| 7906 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7907 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 7908 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7909 |
ac_status=$? |
| 7910 |
if test -s conftest.err; then |
| 7911 |
sed '10a\ |
| 7912 |
... rest of stderr output deleted ... |
| 7913 |
10q' conftest.err >conftest.er1 |
| 7914 |
cat conftest.er1 >&5 |
| 7915 |
fi |
| 7916 |
rm -f conftest.er1 conftest.err |
| 7917 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7918 |
test $ac_status = 0; } |
| 7919 |
done |
| 7920 |
|
| 7921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 7922 |
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 7923 |
if test ${ac_cv_cxx_compiler_gnu+y} |
| 7924 |
then : |
| 7925 |
printf %s "(cached) " >&6 |
| 7926 |
else $as_nop |
| 7927 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7928 |
/* end confdefs.h. */ |
| 7929 |
|
| 7930 |
int |
| 7931 |
main (void) |
| 7932 |
{ |
| 7933 |
#ifndef __GNUC__ |
| 7934 |
choke me |
| 7935 |
#endif |
| 7936 |
|
| 7937 |
; |
| 7938 |
return 0; |
| 7939 |
} |
| 7940 |
_ACEOF |
| 7941 |
if ac_fn_cxx_try_compile "$LINENO" |
| 7942 |
then : |
| 7943 |
ac_compiler_gnu=yes |
| 7944 |
else $as_nop |
| 7945 |
ac_compiler_gnu=no |
| 7946 |
fi |
| 7947 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7948 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7949 |
|
| 7950 |
fi |
| 7951 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7952 |
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7953 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7954 |
|
| 7955 |
if test $ac_compiler_gnu = yes; then |
| 7956 |
GXX=yes |
| 7957 |
else |
| 7958 |
GXX= |
| 7959 |
fi |
| 7960 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 7961 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 7962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7963 |
printf %s "checking whether $CXX accepts -g... " >&6; } |
| 7964 |
if test ${ac_cv_prog_cxx_g+y} |
| 7965 |
then : |
| 7966 |
printf %s "(cached) " >&6 |
| 7967 |
else $as_nop |
| 7968 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7969 |
ac_cxx_werror_flag=yes |
| 7970 |
ac_cv_prog_cxx_g=no |
| 7971 |
CXXFLAGS="-g" |
| 7972 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7973 |
/* end confdefs.h. */ |
| 7974 |
|
| 7975 |
int |
| 7976 |
main (void) |
| 7977 |
{ |
| 7978 |
|
| 7979 |
; |
| 7980 |
return 0; |
| 7981 |
} |
| 7982 |
_ACEOF |
| 7983 |
if ac_fn_cxx_try_compile "$LINENO" |
| 7984 |
then : |
| 7985 |
ac_cv_prog_cxx_g=yes |
| 7986 |
else $as_nop |
| 7987 |
CXXFLAGS="" |
| 7988 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7989 |
/* end confdefs.h. */ |
| 7990 |
|
| 7991 |
int |
| 7992 |
main (void) |
| 7993 |
{ |
| 7994 |
|
| 7995 |
; |
| 7996 |
return 0; |
| 7997 |
} |
| 7998 |
_ACEOF |
| 7999 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8000 |
then : |
| 8001 |
|
| 8002 |
else $as_nop |
| 8003 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 8004 |
CXXFLAGS="-g" |
| 8005 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8006 |
/* end confdefs.h. */ |
| 8007 |
|
| 8008 |
int |
| 8009 |
main (void) |
| 8010 |
{ |
| 8011 |
|
| 8012 |
; |
| 8013 |
return 0; |
| 8014 |
} |
| 8015 |
_ACEOF |
| 8016 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8017 |
then : |
| 8018 |
ac_cv_prog_cxx_g=yes |
| 8019 |
fi |
| 8020 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8021 |
fi |
| 8022 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8023 |
fi |
| 8024 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8025 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 8026 |
fi |
| 8027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 8028 |
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 8029 |
if test $ac_test_CXXFLAGS; then |
| 8030 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 8031 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 8032 |
if test "$GXX" = yes; then |
| 8033 |
CXXFLAGS="-g -O2" |
| 8034 |
else |
| 8035 |
CXXFLAGS="-g" |
| 8036 |
fi |
| 8037 |
else |
| 8038 |
if test "$GXX" = yes; then |
| 8039 |
CXXFLAGS="-O2" |
| 8040 |
else |
| 8041 |
CXXFLAGS= |
| 8042 |
fi |
| 8043 |
fi |
| 8044 |
ac_prog_cxx_stdcxx=no |
| 8045 |
if test x$ac_prog_cxx_stdcxx = xno |
| 8046 |
then : |
| 8047 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 8048 |
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 8049 |
if test ${ac_cv_prog_cxx_cxx11+y} |
| 8050 |
then : |
| 8051 |
printf %s "(cached) " >&6 |
| 8052 |
else $as_nop |
| 8053 |
ac_cv_prog_cxx_cxx11=no |
| 8054 |
ac_save_CXX=$CXX |
| 8055 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8056 |
/* end confdefs.h. */ |
| 8057 |
$ac_cxx_conftest_cxx11_program |
| 8058 |
_ACEOF |
| 8059 |
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 8060 |
do |
| 8061 |
CXX="$ac_save_CXX $ac_arg" |
| 8062 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8063 |
then : |
| 8064 |
ac_cv_prog_cxx_cxx11=$ac_arg |
| 8065 |
fi |
| 8066 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8067 |
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 8068 |
done |
| 8069 |
rm -f conftest.$ac_ext |
| 8070 |
CXX=$ac_save_CXX |
| 8071 |
fi |
| 8072 |
|
| 8073 |
if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 8074 |
then : |
| 8075 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 8076 |
printf "%s\n" "unsupported" >&6; } |
| 8077 |
else $as_nop |
| 8078 |
if test "x$ac_cv_prog_cxx_cxx11" = x |
| 8079 |
then : |
| 8080 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 8081 |
printf "%s\n" "none needed" >&6; } |
| 8082 |
else $as_nop |
| 8083 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 8084 |
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 8085 |
CXX="$CXX $ac_cv_prog_cxx_cxx11" |
| 8086 |
fi |
| 8087 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 8088 |
ac_prog_cxx_stdcxx=cxx11 |
| 8089 |
fi |
| 8090 |
fi |
| 8091 |
if test x$ac_prog_cxx_stdcxx = xno |
| 8092 |
then : |
| 8093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 8094 |
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 8095 |
if test ${ac_cv_prog_cxx_cxx98+y} |
| 8096 |
then : |
| 8097 |
printf %s "(cached) " >&6 |
| 8098 |
else $as_nop |
| 8099 |
ac_cv_prog_cxx_cxx98=no |
| 8100 |
ac_save_CXX=$CXX |
| 8101 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8102 |
/* end confdefs.h. */ |
| 8103 |
$ac_cxx_conftest_cxx98_program |
| 8104 |
_ACEOF |
| 8105 |
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 8106 |
do |
| 8107 |
CXX="$ac_save_CXX $ac_arg" |
| 8108 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8109 |
then : |
| 8110 |
ac_cv_prog_cxx_cxx98=$ac_arg |
| 8111 |
fi |
| 8112 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8113 |
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 8114 |
done |
| 8115 |
rm -f conftest.$ac_ext |
| 8116 |
CXX=$ac_save_CXX |
| 8117 |
fi |
| 8118 |
|
| 8119 |
if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 8120 |
then : |
| 8121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 8122 |
printf "%s\n" "unsupported" >&6; } |
| 8123 |
else $as_nop |
| 8124 |
if test "x$ac_cv_prog_cxx_cxx98" = x |
| 8125 |
then : |
| 8126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 8127 |
printf "%s\n" "none needed" >&6; } |
| 8128 |
else $as_nop |
| 8129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 8130 |
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 8131 |
CXX="$CXX $ac_cv_prog_cxx_cxx98" |
| 8132 |
fi |
| 8133 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 8134 |
ac_prog_cxx_stdcxx=cxx98 |
| 8135 |
fi |
| 8136 |
fi |
| 8137 |
|
| 8138 |
ac_ext=cpp |
| 8139 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 8140 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8141 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8142 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8143 |
|
| 8144 |
|
| 8145 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8146 |
/* end confdefs.h. */ |
| 8147 |
|
| 8148 |
int |
| 8149 |
main (void) |
| 8150 |
{ |
| 8151 |
return 0; |
| 8152 |
; |
| 8153 |
return 0; |
| 8154 |
} |
| 8155 |
_ACEOF |
| 8156 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8157 |
then : |
| 8158 |
HAVE_CXX_COMPILER=yes; |
| 8159 |
else $as_nop |
| 8160 |
HAVE_CXX_COMPILER=no |
| 8161 |
fi |
| 8162 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8163 |
if test x$HAVE_CXX_COMPILER != xyes; then |
| 8164 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling tesseract as no working C++ compiler" >&5 |
| 8165 |
printf "%s\n" "$as_me: WARNING: Disabling tesseract as no working C++ compiler" >&2;} |
| 8166 |
elif test x$SYNC = xnosync ; then |
| 8167 |
as_fn_error $? "Threading disabled or not available. Tesseract OCR relies on threading. Rerun configure with \"--without-tesseract\" to exclude OCR from the build" "$LINENO" 5 |
| 8168 |
else |
| 8169 |
|
| 8170 |
save_cxxflags="$CXXFLAGS" |
| 8171 |
save_ldflags="$LDFLAGS" |
| 8172 |
CXXFLAGS_TO_USE="" |
| 8173 |
|
| 8174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking supported C++ compiler flags" >&5 |
| 8175 |
printf %s "checking supported C++ compiler flags... " >&6; } |
| 8176 |
for flag in "-std=c++17 -stdlib=libstdc++" "-std=c++17" "-stdlib=libstdc++" ; do |
| 8177 |
CXXFLAGS="$CXXFLAGS $flag" |
| 8178 |
|
| 8179 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8180 |
/* end confdefs.h. */ |
| 8181 |
|
| 8182 |
|
| 8183 |
#include <cstdlib> |
| 8184 |
#include <cstdint> |
| 8185 |
#include <filesystem> |
| 8186 |
|
| 8187 |
int |
| 8188 |
main (void) |
| 8189 |
{ |
| 8190 |
return 0; |
| 8191 |
; |
| 8192 |
return 0; |
| 8193 |
} |
| 8194 |
_ACEOF |
| 8195 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8196 |
then : |
| 8197 |
|
| 8198 |
echo " $flag"; CXXFLAGS_TO_USE="$CXXFLAGS_TO_USE $flag" |
| 8199 |
|
| 8200 |
fi |
| 8201 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8202 |
|
| 8203 |
CXXFLAGS="$old_cflags" |
| 8204 |
done |
| 8205 |
|
| 8206 |
if test x"$GXX" = x"no" || test "x$CXXFLAGS_TO_USE" != x; then |
| 8207 |
if test x"$GXX" = x"no" ; then |
| 8208 |
OCR_DEVS_WARNING_LINE1="C++ compiler does not appear to be gcc or compatible, attempting to continue anyway" |
| 8209 |
OCR_DEVS_WARNING_LINE2="NOTE: that tesseract requires a C++17 compatible C++ compiler" |
| 8210 |
fi |
| 8211 |
|
| 8212 |
CXXFLAGS="$save_cxxflags $CXXFLAGS_TO_USE" |
| 8213 |
|
| 8214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sse4.1 support" >&5 |
| 8215 |
printf %s "checking sse4.1 support... " >&6; } |
| 8216 |
save_cxxflags=$CXXFLAGS |
| 8217 |
TESS_CXXFLAGS="$CXXFLAGS" |
| 8218 |
CXXFLAGS="$CXXFLAGS -msse4.1" |
| 8219 |
|
| 8220 |
TESS_SSE4_1="" |
| 8221 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8222 |
/* end confdefs.h. */ |
| 8223 |
#include <emmintrin.h> |
| 8224 |
#include <smmintrin.h> |
| 8225 |
int |
| 8226 |
main (void) |
| 8227 |
{ |
| 8228 |
__m128i input1; |
| 8229 |
unsigned char buf1[128]; |
| 8230 |
input1 = _mm_loadu_si128((const __m128i *)buf1); |
| 8231 |
input1 = _mm_hadd_epi32(input1, input1); |
| 8232 |
return(0); |
| 8233 |
|
| 8234 |
; |
| 8235 |
return 0; |
| 8236 |
} |
| 8237 |
_ACEOF |
| 8238 |
if ac_fn_cxx_try_link "$LINENO" |
| 8239 |
then : |
| 8240 |
TESS_SSE4_1="-msse4.1" |
| 8241 |
else $as_nop |
| 8242 |
TESS_SSE4_1="" |
| 8243 |
fi |
| 8244 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8245 |
conftest$ac_exeext conftest.$ac_ext |
| 8246 |
|
| 8247 |
if test "x$TESS_SSE4_1" != x; then |
| 8248 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8249 |
printf "%s\n" "yes" >&6; } |
| 8250 |
TESS_CXXFLAGS="$TESS_CXXFLAGS -DHAVE_SSE4_1" |
| 8251 |
else |
| 8252 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8253 |
printf "%s\n" "no" >&6; } |
| 8254 |
fi |
| 8255 |
|
| 8256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking avx support" >&5 |
| 8257 |
printf %s "checking avx support... " >&6; } |
| 8258 |
CXXFLAGS="$save_cxxflags -mavx" |
| 8259 |
|
| 8260 |
TESS_AVX="" |
| 8261 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8262 |
/* end confdefs.h. */ |
| 8263 |
#include <immintrin.h> |
| 8264 |
int |
| 8265 |
main (void) |
| 8266 |
{ |
| 8267 |
__m256d input1 = _mm256_setzero_pd(); |
| 8268 |
input1 = _mm256_hadd_pd(input1, input1); |
| 8269 |
return(0); |
| 8270 |
; |
| 8271 |
return 0; |
| 8272 |
} |
| 8273 |
_ACEOF |
| 8274 |
if ac_fn_cxx_try_link "$LINENO" |
| 8275 |
then : |
| 8276 |
TESS_AVX="-mavx" |
| 8277 |
else $as_nop |
| 8278 |
TESS_AVX="" |
| 8279 |
fi |
| 8280 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8281 |
conftest$ac_exeext conftest.$ac_ext |
| 8282 |
|
| 8283 |
if test "x$TESS_AVX" != x; then |
| 8284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8285 |
printf "%s\n" "yes" >&6; } |
| 8286 |
TESS_CXXFLAGS="$TESS_CXXFLAGS -DHAVE_AVX" |
| 8287 |
else |
| 8288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8289 |
printf "%s\n" "no" >&6; } |
| 8290 |
fi |
| 8291 |
|
| 8292 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking avx2 support" >&5 |
| 8293 |
printf %s "checking avx2 support... " >&6; } |
| 8294 |
CXXFLAGS="$save_cxxflags -mavx2" |
| 8295 |
|
| 8296 |
TESS_AVX2="" |
| 8297 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8298 |
/* end confdefs.h. */ |
| 8299 |
#include <immintrin.h> |
| 8300 |
int |
| 8301 |
main (void) |
| 8302 |
{ |
| 8303 |
__m256i input1; |
| 8304 |
unsigned char buf1[256]; |
| 8305 |
input1 = _mm256_loadu_si256((const __m256i *)buf1); |
| 8306 |
input1 = _mm256_adds_epu8(input1, input1); |
| 8307 |
return(0); |
| 8308 |
; |
| 8309 |
return 0; |
| 8310 |
} |
| 8311 |
_ACEOF |
| 8312 |
if ac_fn_cxx_try_link "$LINENO" |
| 8313 |
then : |
| 8314 |
TESS_AVX2="-mavx2" |
| 8315 |
else $as_nop |
| 8316 |
TESS_AVX2="" |
| 8317 |
fi |
| 8318 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8319 |
conftest$ac_exeext conftest.$ac_ext |
| 8320 |
|
| 8321 |
if test "x$TESS_AVX2" != x; then |
| 8322 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8323 |
printf "%s\n" "yes" >&6; } |
| 8324 |
TESS_CXXFLAGS="$TESS_CXXFLAGS -DHAVE_AVX2" |
| 8325 |
else |
| 8326 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8327 |
printf "%s\n" "no" >&6; } |
| 8328 |
fi |
| 8329 |
|
| 8330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fma support" >&5 |
| 8331 |
printf %s "checking fma support... " >&6; } |
| 8332 |
CXXFLAGS="$save_cxxflags -mfma" |
| 8333 |
|
| 8334 |
TESS_FMA="" |
| 8335 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8336 |
/* end confdefs.h. */ |
| 8337 |
#include <immintrin.h> |
| 8338 |
int |
| 8339 |
main (void) |
| 8340 |
{ |
| 8341 |
__m256d input1 = _mm256_setzero_pd(); |
| 8342 |
input1 = _mm256_fmadd_pd(input1, input1, input1); |
| 8343 |
return(0); |
| 8344 |
; |
| 8345 |
return 0; |
| 8346 |
} |
| 8347 |
_ACEOF |
| 8348 |
if ac_fn_cxx_try_link "$LINENO" |
| 8349 |
then : |
| 8350 |
TESS_FMA="-mfma" |
| 8351 |
else $as_nop |
| 8352 |
TESS_FMA="" |
| 8353 |
fi |
| 8354 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8355 |
conftest$ac_exeext conftest.$ac_ext |
| 8356 |
|
| 8357 |
if test "x$TESS_FMA" != x; then |
| 8358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8359 |
printf "%s\n" "yes" >&6; } |
| 8360 |
TESS_CXXFLAGS="$TESS_CXXFLAGS -DHAVE_FMA" |
| 8361 |
else |
| 8362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8363 |
printf "%s\n" "no" >&6; } |
| 8364 |
fi |
| 8365 |
|
| 8366 |
# The conditions for including neon code in tesseract are |
| 8367 |
# dismally inconsistent in different parts of the code, so |
| 8368 |
# I'm disabling it completely until I have time to look in |
| 8369 |
# more detail. |
| 8370 |
# AC_MSG_CHECKING([neon support]) |
| 8371 |
# CXXFLAGS="$save_cxxflags" |
| 8372 |
# LDFLAGS="$save_ldflags -mfpu=neon -mcpu=cortex-a53" |
| 8373 |
# |
| 8374 |
# TESS_NEON="" |
| 8375 |
# AC_LINK_IFELSE( |
| 8376 |
# [AC_LANG_PROGRAM([#include "arm_neon.h"], |
| 8377 |
# [int32x4_t round = vdupq_n_s32(10); |
| 8378 |
# return(0);])], |
| 8379 |
# [TESS_NEON="-D__ARM_NEON__"], |
| 8380 |
# [TESS_NEON=""]) |
| 8381 |
# |
| 8382 |
# if test "x$TESS_NEON" != x && test "x$enable_neon" != xno; then |
| 8383 |
# AC_MSG_RESULT(yes) |
| 8384 |
# TESS_CXXFLAGS="$TESS_CXXFLAGS -DHAVE_NEON" |
| 8385 |
# LDFLAGS="$save_ldflags -mfpu=neon -mcpu=cortex-a53" |
| 8386 |
# else |
| 8387 |
# AC_MSG_RESULT(no) |
| 8388 |
# TESS_NEON="" |
| 8389 |
# LDFLAGS="$save_ldflags" |
| 8390 |
# fi |
| 8391 |
|
| 8392 |
CXXFLAGS="$save_cxxflags" |
| 8393 |
|
| 8394 |
OCR_VERSION=1 |
| 8395 |
OCR_SHARED=0 |
| 8396 |
OCR_DEVS="\$(DD)ocr.dev \$(DD)hocr.dev \$(DD)pdfocr8.dev \$(DD)pdfocr24.dev \$(DD)pdfocr32.dev" |
| 8397 |
LEPTONICAINCLUDE="include \$(GLSRCDIR)/leptonica.mak" |
| 8398 |
TESSERACTINCLUDE="include \$(GLSRCDIR)/tesseract.mak" |
| 8399 |
TESSERACT_LIBS="-lstdc++" |
| 8400 |
else |
| 8401 |
OCR_DEVS_WARNING_LINE1="OCR devices disabled due to missing or incompatible C++ compiler or supporting libraries" |
| 8402 |
fi |
| 8403 |
fi |
| 8404 |
ac_ext=c |
| 8405 |
ac_cpp='$CPP $CPPFLAGS' |
| 8406 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8407 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8408 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8409 |
|
| 8410 |
fi |
| 8411 |
else |
| 8412 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8413 |
printf "%s\n" "no" >&6; } |
| 8414 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler" >&5 |
| 8415 |
printf %s "checking for C++ compiler... " >&6; } |
| 8416 |
|
| 8417 |
ac_ext=cpp |
| 8418 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 8419 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8420 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8421 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8422 |
|
| 8423 |
ac_ext=cpp |
| 8424 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 8425 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8426 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8427 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8428 |
if test -z "$CXX"; then |
| 8429 |
if test -n "$CCC"; then |
| 8430 |
CXX=$CCC |
| 8431 |
else |
| 8432 |
if test -n "$ac_tool_prefix"; then |
| 8433 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 8434 |
do |
| 8435 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8436 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 8437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8438 |
printf %s "checking for $ac_word... " >&6; } |
| 8439 |
if test ${ac_cv_prog_CXX+y} |
| 8440 |
then : |
| 8441 |
printf %s "(cached) " >&6 |
| 8442 |
else $as_nop |
| 8443 |
if test -n "$CXX"; then |
| 8444 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 8445 |
else |
| 8446 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8447 |
for as_dir in $PATH |
| 8448 |
do |
| 8449 |
IFS=$as_save_IFS |
| 8450 |
case $as_dir in #((( |
| 8451 |
'') as_dir=./ ;; |
| 8452 |
*/) ;; |
| 8453 |
*) as_dir=$as_dir/ ;; |
| 8454 |
esac |
| 8455 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8456 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8457 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 8458 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8459 |
break 2 |
| 8460 |
fi |
| 8461 |
done |
| 8462 |
done |
| 8463 |
IFS=$as_save_IFS |
| 8464 |
|
| 8465 |
fi |
| 8466 |
fi |
| 8467 |
CXX=$ac_cv_prog_CXX |
| 8468 |
if test -n "$CXX"; then |
| 8469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 8470 |
printf "%s\n" "$CXX" >&6; } |
| 8471 |
else |
| 8472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8473 |
printf "%s\n" "no" >&6; } |
| 8474 |
fi |
| 8475 |
|
| 8476 |
|
| 8477 |
test -n "$CXX" && break |
| 8478 |
done |
| 8479 |
fi |
| 8480 |
if test -z "$CXX"; then |
| 8481 |
ac_ct_CXX=$CXX |
| 8482 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 8483 |
do |
| 8484 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8485 |
set dummy $ac_prog; ac_word=$2 |
| 8486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8487 |
printf %s "checking for $ac_word... " >&6; } |
| 8488 |
if test ${ac_cv_prog_ac_ct_CXX+y} |
| 8489 |
then : |
| 8490 |
printf %s "(cached) " >&6 |
| 8491 |
else $as_nop |
| 8492 |
if test -n "$ac_ct_CXX"; then |
| 8493 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 8494 |
else |
| 8495 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8496 |
for as_dir in $PATH |
| 8497 |
do |
| 8498 |
IFS=$as_save_IFS |
| 8499 |
case $as_dir in #((( |
| 8500 |
'') as_dir=./ ;; |
| 8501 |
*/) ;; |
| 8502 |
*) as_dir=$as_dir/ ;; |
| 8503 |
esac |
| 8504 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8505 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8506 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 8507 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8508 |
break 2 |
| 8509 |
fi |
| 8510 |
done |
| 8511 |
done |
| 8512 |
IFS=$as_save_IFS |
| 8513 |
|
| 8514 |
fi |
| 8515 |
fi |
| 8516 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 8517 |
if test -n "$ac_ct_CXX"; then |
| 8518 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 8519 |
printf "%s\n" "$ac_ct_CXX" >&6; } |
| 8520 |
else |
| 8521 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8522 |
printf "%s\n" "no" >&6; } |
| 8523 |
fi |
| 8524 |
|
| 8525 |
|
| 8526 |
test -n "$ac_ct_CXX" && break |
| 8527 |
done |
| 8528 |
|
| 8529 |
if test "x$ac_ct_CXX" = x; then |
| 8530 |
CXX="g++" |
| 8531 |
else |
| 8532 |
case $cross_compiling:$ac_tool_warned in |
| 8533 |
yes:) |
| 8534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8535 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8536 |
ac_tool_warned=yes ;; |
| 8537 |
esac |
| 8538 |
CXX=$ac_ct_CXX |
| 8539 |
fi |
| 8540 |
fi |
| 8541 |
|
| 8542 |
fi |
| 8543 |
fi |
| 8544 |
# Provide some information about the compiler. |
| 8545 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 8546 |
set X $ac_compile |
| 8547 |
ac_compiler=$2 |
| 8548 |
for ac_option in --version -v -V -qversion; do |
| 8549 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 8550 |
case "(($ac_try" in |
| 8551 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8552 |
*) ac_try_echo=$ac_try;; |
| 8553 |
esac |
| 8554 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 8555 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 8556 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 8557 |
ac_status=$? |
| 8558 |
if test -s conftest.err; then |
| 8559 |
sed '10a\ |
| 8560 |
... rest of stderr output deleted ... |
| 8561 |
10q' conftest.err >conftest.er1 |
| 8562 |
cat conftest.er1 >&5 |
| 8563 |
fi |
| 8564 |
rm -f conftest.er1 conftest.err |
| 8565 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8566 |
test $ac_status = 0; } |
| 8567 |
done |
| 8568 |
|
| 8569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 8570 |
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 8571 |
if test ${ac_cv_cxx_compiler_gnu+y} |
| 8572 |
then : |
| 8573 |
printf %s "(cached) " >&6 |
| 8574 |
else $as_nop |
| 8575 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8576 |
/* end confdefs.h. */ |
| 8577 |
|
| 8578 |
int |
| 8579 |
main (void) |
| 8580 |
{ |
| 8581 |
#ifndef __GNUC__ |
| 8582 |
choke me |
| 8583 |
#endif |
| 8584 |
|
| 8585 |
; |
| 8586 |
return 0; |
| 8587 |
} |
| 8588 |
_ACEOF |
| 8589 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8590 |
then : |
| 8591 |
ac_compiler_gnu=yes |
| 8592 |
else $as_nop |
| 8593 |
ac_compiler_gnu=no |
| 8594 |
fi |
| 8595 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8596 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 8597 |
|
| 8598 |
fi |
| 8599 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 8600 |
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 8601 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8602 |
|
| 8603 |
if test $ac_compiler_gnu = yes; then |
| 8604 |
GXX=yes |
| 8605 |
else |
| 8606 |
GXX= |
| 8607 |
fi |
| 8608 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 8609 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 8610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 8611 |
printf %s "checking whether $CXX accepts -g... " >&6; } |
| 8612 |
if test ${ac_cv_prog_cxx_g+y} |
| 8613 |
then : |
| 8614 |
printf %s "(cached) " >&6 |
| 8615 |
else $as_nop |
| 8616 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 8617 |
ac_cxx_werror_flag=yes |
| 8618 |
ac_cv_prog_cxx_g=no |
| 8619 |
CXXFLAGS="-g" |
| 8620 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8621 |
/* end confdefs.h. */ |
| 8622 |
|
| 8623 |
int |
| 8624 |
main (void) |
| 8625 |
{ |
| 8626 |
|
| 8627 |
; |
| 8628 |
return 0; |
| 8629 |
} |
| 8630 |
_ACEOF |
| 8631 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8632 |
then : |
| 8633 |
ac_cv_prog_cxx_g=yes |
| 8634 |
else $as_nop |
| 8635 |
CXXFLAGS="" |
| 8636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8637 |
/* end confdefs.h. */ |
| 8638 |
|
| 8639 |
int |
| 8640 |
main (void) |
| 8641 |
{ |
| 8642 |
|
| 8643 |
; |
| 8644 |
return 0; |
| 8645 |
} |
| 8646 |
_ACEOF |
| 8647 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8648 |
then : |
| 8649 |
|
| 8650 |
else $as_nop |
| 8651 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 8652 |
CXXFLAGS="-g" |
| 8653 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8654 |
/* end confdefs.h. */ |
| 8655 |
|
| 8656 |
int |
| 8657 |
main (void) |
| 8658 |
{ |
| 8659 |
|
| 8660 |
; |
| 8661 |
return 0; |
| 8662 |
} |
| 8663 |
_ACEOF |
| 8664 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8665 |
then : |
| 8666 |
ac_cv_prog_cxx_g=yes |
| 8667 |
fi |
| 8668 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8669 |
fi |
| 8670 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8671 |
fi |
| 8672 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8673 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 8674 |
fi |
| 8675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 8676 |
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 8677 |
if test $ac_test_CXXFLAGS; then |
| 8678 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 8679 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 8680 |
if test "$GXX" = yes; then |
| 8681 |
CXXFLAGS="-g -O2" |
| 8682 |
else |
| 8683 |
CXXFLAGS="-g" |
| 8684 |
fi |
| 8685 |
else |
| 8686 |
if test "$GXX" = yes; then |
| 8687 |
CXXFLAGS="-O2" |
| 8688 |
else |
| 8689 |
CXXFLAGS= |
| 8690 |
fi |
| 8691 |
fi |
| 8692 |
ac_prog_cxx_stdcxx=no |
| 8693 |
if test x$ac_prog_cxx_stdcxx = xno |
| 8694 |
then : |
| 8695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 8696 |
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 8697 |
if test ${ac_cv_prog_cxx_cxx11+y} |
| 8698 |
then : |
| 8699 |
printf %s "(cached) " >&6 |
| 8700 |
else $as_nop |
| 8701 |
ac_cv_prog_cxx_cxx11=no |
| 8702 |
ac_save_CXX=$CXX |
| 8703 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8704 |
/* end confdefs.h. */ |
| 8705 |
$ac_cxx_conftest_cxx11_program |
| 8706 |
_ACEOF |
| 8707 |
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 8708 |
do |
| 8709 |
CXX="$ac_save_CXX $ac_arg" |
| 8710 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8711 |
then : |
| 8712 |
ac_cv_prog_cxx_cxx11=$ac_arg |
| 8713 |
fi |
| 8714 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8715 |
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 8716 |
done |
| 8717 |
rm -f conftest.$ac_ext |
| 8718 |
CXX=$ac_save_CXX |
| 8719 |
fi |
| 8720 |
|
| 8721 |
if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 8722 |
then : |
| 8723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 8724 |
printf "%s\n" "unsupported" >&6; } |
| 8725 |
else $as_nop |
| 8726 |
if test "x$ac_cv_prog_cxx_cxx11" = x |
| 8727 |
then : |
| 8728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 8729 |
printf "%s\n" "none needed" >&6; } |
| 8730 |
else $as_nop |
| 8731 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 8732 |
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 8733 |
CXX="$CXX $ac_cv_prog_cxx_cxx11" |
| 8734 |
fi |
| 8735 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 8736 |
ac_prog_cxx_stdcxx=cxx11 |
| 8737 |
fi |
| 8738 |
fi |
| 8739 |
if test x$ac_prog_cxx_stdcxx = xno |
| 8740 |
then : |
| 8741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 8742 |
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 8743 |
if test ${ac_cv_prog_cxx_cxx98+y} |
| 8744 |
then : |
| 8745 |
printf %s "(cached) " >&6 |
| 8746 |
else $as_nop |
| 8747 |
ac_cv_prog_cxx_cxx98=no |
| 8748 |
ac_save_CXX=$CXX |
| 8749 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8750 |
/* end confdefs.h. */ |
| 8751 |
$ac_cxx_conftest_cxx98_program |
| 8752 |
_ACEOF |
| 8753 |
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 8754 |
do |
| 8755 |
CXX="$ac_save_CXX $ac_arg" |
| 8756 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8757 |
then : |
| 8758 |
ac_cv_prog_cxx_cxx98=$ac_arg |
| 8759 |
fi |
| 8760 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8761 |
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 8762 |
done |
| 8763 |
rm -f conftest.$ac_ext |
| 8764 |
CXX=$ac_save_CXX |
| 8765 |
fi |
| 8766 |
|
| 8767 |
if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 8768 |
then : |
| 8769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 8770 |
printf "%s\n" "unsupported" >&6; } |
| 8771 |
else $as_nop |
| 8772 |
if test "x$ac_cv_prog_cxx_cxx98" = x |
| 8773 |
then : |
| 8774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 8775 |
printf "%s\n" "none needed" >&6; } |
| 8776 |
else $as_nop |
| 8777 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 8778 |
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 8779 |
CXX="$CXX $ac_cv_prog_cxx_cxx98" |
| 8780 |
fi |
| 8781 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 8782 |
ac_prog_cxx_stdcxx=cxx98 |
| 8783 |
fi |
| 8784 |
fi |
| 8785 |
|
| 8786 |
ac_ext=cpp |
| 8787 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 8788 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8789 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8790 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8791 |
|
| 8792 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8793 |
/* end confdefs.h. */ |
| 8794 |
|
| 8795 |
int |
| 8796 |
main (void) |
| 8797 |
{ |
| 8798 |
return 0; |
| 8799 |
; |
| 8800 |
return 0; |
| 8801 |
} |
| 8802 |
_ACEOF |
| 8803 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8804 |
then : |
| 8805 |
HAVE_CXX_COMPILER=yes; |
| 8806 |
else $as_nop |
| 8807 |
HAVE_CXX_COMPILER=no |
| 8808 |
fi |
| 8809 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8810 |
|
| 8811 |
if test x"$HAVE_CXX_COMPILER" != x"yes" ; then |
| 8812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8813 |
printf "%s\n" "no" >&6; } |
| 8814 |
OCR_DEVS_WARNING_LINE1="Disabling tesseract (OCR devices) as no working C++ compiler" |
| 8815 |
else |
| 8816 |
save_cxxflags="$CXXFLAGS" |
| 8817 |
cxxflags_to_try="-stdlib=libstdc++" |
| 8818 |
CXXFLAGS_TO_USE="" |
| 8819 |
|
| 8820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking supported C++ compiler flags" >&5 |
| 8821 |
printf %s "checking supported C++ compiler flags... " >&6; } |
| 8822 |
for flag in $cxxflags_to_try ; do |
| 8823 |
CXXFLAGS="$CXXFLAGS $flag" |
| 8824 |
|
| 8825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8826 |
/* end confdefs.h. */ |
| 8827 |
#include <cstdlib> |
| 8828 |
int |
| 8829 |
main (void) |
| 8830 |
{ |
| 8831 |
return 0; |
| 8832 |
; |
| 8833 |
return 0; |
| 8834 |
} |
| 8835 |
_ACEOF |
| 8836 |
if ac_fn_cxx_try_compile "$LINENO" |
| 8837 |
then : |
| 8838 |
|
| 8839 |
echo " $flag"; CXXFLAGS_TO_USE="$CXXFLAGS_TO_USE $flag" |
| 8840 |
|
| 8841 |
fi |
| 8842 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8843 |
|
| 8844 |
CXXFLAGS="$old_cflags" |
| 8845 |
done |
| 8846 |
TESS_CXXFLAGS="$save_cxxflags $CXXFLAGS_TO_USE" |
| 8847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 8848 |
printf "%s\n" "done" >&6; } |
| 8849 |
|
| 8850 |
if test "x$PKGCONFIG" != x; then |
| 8851 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tesseract >= 4.1.0 with pkg-config" >&5 |
| 8852 |
printf %s "checking for tesseract >= 4.1.0 with pkg-config... " >&6; } |
| 8853 |
if $PKGCONFIG --atleast-version=4.1.0 tesseract; then |
| 8854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8855 |
printf "%s\n" "yes" >&6; } |
| 8856 |
# A little naff: because we ultimately link through CC (rather than CXX) |
| 8857 |
# we have to explicitly add -lstdc++ |
| 8858 |
TESSERACT_LIBS="`$PKGCONFIG --libs tesseract lept` -lstdc++" |
| 8859 |
TESS_CXXFLAGS="$TESS_CXXFLAGS `$PKGCONFIG --cflags tesseract lept`" |
| 8860 |
OCR_VERSION=1 |
| 8861 |
OCR_SHARED=1 |
| 8862 |
OCR_DEVS="\$(DD)ocr.dev \$(DD)hocr.dev \$(DD)pdfocr8.dev \$(DD)pdfocr24.dev \$(DD)pdfocr32.dev" |
| 8863 |
LEPTONICAINCLUDE="include \$(GLSRCDIR)/stub.mak" |
| 8864 |
TESSERACTINCLUDE="include \$(GLSRCDIR)/tessshared.mak" |
| 8865 |
else |
| 8866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8867 |
printf "%s\n" "no" >&6; } |
| 8868 |
fi |
| 8869 |
fi |
| 8870 |
fi |
| 8871 |
ac_ext=c |
| 8872 |
ac_cpp='$CPP $CPPFLAGS' |
| 8873 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8874 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8875 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8876 |
|
| 8877 |
fi |
| 8878 |
fi |
| 8879 |
|
| 8880 |
|
| 8881 |
|
| 8882 |
|
| 8883 |
|
| 8884 |
|
| 8885 |
|
| 8886 |
|
| 8887 |
|
| 8888 |
|
| 8889 |
|
| 8890 |
|
| 8891 |
|
| 8892 |
|
| 8893 |
|
| 8894 |
|
| 8895 |
# Check whether --with-libiconv was given. |
| 8896 |
if test ${with_libiconv+y} |
| 8897 |
then : |
| 8898 |
withval=$with_libiconv; |
| 8899 |
else $as_nop |
| 8900 |
with_libiconv=maybe |
| 8901 |
fi |
| 8902 |
|
| 8903 |
found_iconv=no |
| 8904 |
case $with_libiconv in |
| 8905 |
maybe) |
| 8906 |
# Check in the C library first |
| 8907 |
ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" |
| 8908 |
if test "x$ac_cv_func_iconv_open" = xyes |
| 8909 |
then : |
| 8910 |
with_libiconv=no; found_iconv=yes |
| 8911 |
fi |
| 8912 |
|
| 8913 |
# Check if we have GNU libiconv |
| 8914 |
if test $found_iconv = "no"; then |
| 8915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
| 8916 |
printf %s "checking for libiconv_open in -liconv... " >&6; } |
| 8917 |
if test ${ac_cv_lib_iconv_libiconv_open+y} |
| 8918 |
then : |
| 8919 |
printf %s "(cached) " >&6 |
| 8920 |
else $as_nop |
| 8921 |
ac_check_lib_save_LIBS=$LIBS |
| 8922 |
LIBS="-liconv $LIBS" |
| 8923 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8924 |
/* end confdefs.h. */ |
| 8925 |
|
| 8926 |
/* Override any GCC internal prototype to avoid an error. |
| 8927 |
Use char because int might match the return type of a GCC |
| 8928 |
builtin and then its argument prototype would still apply. */ |
| 8929 |
char libiconv_open (); |
| 8930 |
int |
| 8931 |
main (void) |
| 8932 |
{ |
| 8933 |
return libiconv_open (); |
| 8934 |
; |
| 8935 |
return 0; |
| 8936 |
} |
| 8937 |
_ACEOF |
| 8938 |
if ac_fn_c_try_link "$LINENO" |
| 8939 |
then : |
| 8940 |
ac_cv_lib_iconv_libiconv_open=yes |
| 8941 |
else $as_nop |
| 8942 |
ac_cv_lib_iconv_libiconv_open=no |
| 8943 |
fi |
| 8944 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8945 |
conftest$ac_exeext conftest.$ac_ext |
| 8946 |
LIBS=$ac_check_lib_save_LIBS |
| 8947 |
fi |
| 8948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
| 8949 |
printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; } |
| 8950 |
if test "x$ac_cv_lib_iconv_libiconv_open" = xyes |
| 8951 |
then : |
| 8952 |
with_libiconv=gnu; found_iconv=yes |
| 8953 |
fi |
| 8954 |
|
| 8955 |
fi |
| 8956 |
# Check if we have a iconv in -liconv, possibly from vendor |
| 8957 |
if test $found_iconv = "no"; then |
| 8958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
| 8959 |
printf %s "checking for iconv_open in -liconv... " >&6; } |
| 8960 |
if test ${ac_cv_lib_iconv_iconv_open+y} |
| 8961 |
then : |
| 8962 |
printf %s "(cached) " >&6 |
| 8963 |
else $as_nop |
| 8964 |
ac_check_lib_save_LIBS=$LIBS |
| 8965 |
LIBS="-liconv $LIBS" |
| 8966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8967 |
/* end confdefs.h. */ |
| 8968 |
|
| 8969 |
/* Override any GCC internal prototype to avoid an error. |
| 8970 |
Use char because int might match the return type of a GCC |
| 8971 |
builtin and then its argument prototype would still apply. */ |
| 8972 |
char iconv_open (); |
| 8973 |
int |
| 8974 |
main (void) |
| 8975 |
{ |
| 8976 |
return iconv_open (); |
| 8977 |
; |
| 8978 |
return 0; |
| 8979 |
} |
| 8980 |
_ACEOF |
| 8981 |
if ac_fn_c_try_link "$LINENO" |
| 8982 |
then : |
| 8983 |
ac_cv_lib_iconv_iconv_open=yes |
| 8984 |
else $as_nop |
| 8985 |
ac_cv_lib_iconv_iconv_open=no |
| 8986 |
fi |
| 8987 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8988 |
conftest$ac_exeext conftest.$ac_ext |
| 8989 |
LIBS=$ac_check_lib_save_LIBS |
| 8990 |
fi |
| 8991 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
| 8992 |
printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; } |
| 8993 |
if test "x$ac_cv_lib_iconv_iconv_open" = xyes |
| 8994 |
then : |
| 8995 |
with_libiconv=native; found_iconv=yes |
| 8996 |
fi |
| 8997 |
|
| 8998 |
fi |
| 8999 |
;; |
| 9000 |
no) |
| 9001 |
found_iconv=no |
| 9002 |
;; |
| 9003 |
gnu|yes) |
| 9004 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 |
| 9005 |
printf %s "checking for libiconv_open in -liconv... " >&6; } |
| 9006 |
if test ${ac_cv_lib_iconv_libiconv_open+y} |
| 9007 |
then : |
| 9008 |
printf %s "(cached) " >&6 |
| 9009 |
else $as_nop |
| 9010 |
ac_check_lib_save_LIBS=$LIBS |
| 9011 |
LIBS="-liconv $LIBS" |
| 9012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9013 |
/* end confdefs.h. */ |
| 9014 |
|
| 9015 |
/* Override any GCC internal prototype to avoid an error. |
| 9016 |
Use char because int might match the return type of a GCC |
| 9017 |
builtin and then its argument prototype would still apply. */ |
| 9018 |
char libiconv_open (); |
| 9019 |
int |
| 9020 |
main (void) |
| 9021 |
{ |
| 9022 |
return libiconv_open (); |
| 9023 |
; |
| 9024 |
return 0; |
| 9025 |
} |
| 9026 |
_ACEOF |
| 9027 |
if ac_fn_c_try_link "$LINENO" |
| 9028 |
then : |
| 9029 |
ac_cv_lib_iconv_libiconv_open=yes |
| 9030 |
else $as_nop |
| 9031 |
ac_cv_lib_iconv_libiconv_open=no |
| 9032 |
fi |
| 9033 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9034 |
conftest$ac_exeext conftest.$ac_ext |
| 9035 |
LIBS=$ac_check_lib_save_LIBS |
| 9036 |
fi |
| 9037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 |
| 9038 |
printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; } |
| 9039 |
if test "x$ac_cv_lib_iconv_libiconv_open" = xyes |
| 9040 |
then : |
| 9041 |
with_libiconv=gnu; found_iconv=yes |
| 9042 |
fi |
| 9043 |
|
| 9044 |
;; |
| 9045 |
native) |
| 9046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
| 9047 |
printf %s "checking for iconv_open in -liconv... " >&6; } |
| 9048 |
if test ${ac_cv_lib_iconv_iconv_open+y} |
| 9049 |
then : |
| 9050 |
printf %s "(cached) " >&6 |
| 9051 |
else $as_nop |
| 9052 |
ac_check_lib_save_LIBS=$LIBS |
| 9053 |
LIBS="-liconv $LIBS" |
| 9054 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9055 |
/* end confdefs.h. */ |
| 9056 |
|
| 9057 |
/* Override any GCC internal prototype to avoid an error. |
| 9058 |
Use char because int might match the return type of a GCC |
| 9059 |
builtin and then its argument prototype would still apply. */ |
| 9060 |
char iconv_open (); |
| 9061 |
int |
| 9062 |
main (void) |
| 9063 |
{ |
| 9064 |
return iconv_open (); |
| 9065 |
; |
| 9066 |
return 0; |
| 9067 |
} |
| 9068 |
_ACEOF |
| 9069 |
if ac_fn_c_try_link "$LINENO" |
| 9070 |
then : |
| 9071 |
ac_cv_lib_iconv_iconv_open=yes |
| 9072 |
else $as_nop |
| 9073 |
ac_cv_lib_iconv_iconv_open=no |
| 9074 |
fi |
| 9075 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9076 |
conftest$ac_exeext conftest.$ac_ext |
| 9077 |
LIBS=$ac_check_lib_save_LIBS |
| 9078 |
fi |
| 9079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
| 9080 |
printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; } |
| 9081 |
if test "x$ac_cv_lib_iconv_iconv_open" = xyes |
| 9082 |
then : |
| 9083 |
with_libiconv=native; found_iconv=yes |
| 9084 |
fi |
| 9085 |
|
| 9086 |
;; |
| 9087 |
esac |
| 9088 |
if test x$found_iconv != xno -a x$with_libiconv != xno ; then |
| 9089 |
LIBS="$LIBS -liconv" |
| 9090 |
fi |
| 9091 |
|
| 9092 |
case $with_libiconv in |
| 9093 |
gnu) |
| 9094 |
|
| 9095 |
printf "%s\n" "#define USE_LIBICONV_GNU 1" >>confdefs.h |
| 9096 |
|
| 9097 |
CFLAGS="$CFLAGS -DUSE_LIBICONV_GNU" |
| 9098 |
;; |
| 9099 |
native) |
| 9100 |
|
| 9101 |
printf "%s\n" "#define USE_LIBICONV_NATIVE 1" >>confdefs.h |
| 9102 |
|
| 9103 |
;; |
| 9104 |
esac |
| 9105 |
|
| 9106 |
|
| 9107 |
# Check whether --with-libidn was given. |
| 9108 |
if test ${with_libidn+y} |
| 9109 |
then : |
| 9110 |
withval=$with_libidn; |
| 9111 |
else $as_nop |
| 9112 |
with_libidn=maybe |
| 9113 |
fi |
| 9114 |
|
| 9115 |
|
| 9116 |
if test x$with_libidn != xno; then |
| 9117 |
if test x"$PKGCONFIG" != x""; then |
| 9118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn with pkg-config" >&5 |
| 9119 |
printf %s "checking for libidn with pkg-config... " >&6; } |
| 9120 |
if $PKGCONFIG --exists libidn; then |
| 9121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9122 |
printf "%s\n" "yes" >&6; } |
| 9123 |
LIBS="$LIBS `$PKGCONFIG --libs libidn`" |
| 9124 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags libidn`" |
| 9125 |
HAVE_LIBIDN=-DHAVE_LIBIDN |
| 9126 |
else |
| 9127 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9128 |
printf "%s\n" "no" >&6; } |
| 9129 |
fi |
| 9130 |
fi |
| 9131 |
if test -z "$HAVE_LIBIDN"; then |
| 9132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stringprep in -lidn" >&5 |
| 9133 |
printf %s "checking for stringprep in -lidn... " >&6; } |
| 9134 |
if test ${ac_cv_lib_idn_stringprep+y} |
| 9135 |
then : |
| 9136 |
printf %s "(cached) " >&6 |
| 9137 |
else $as_nop |
| 9138 |
ac_check_lib_save_LIBS=$LIBS |
| 9139 |
LIBS="-lidn $LIBS" |
| 9140 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9141 |
/* end confdefs.h. */ |
| 9142 |
|
| 9143 |
/* Override any GCC internal prototype to avoid an error. |
| 9144 |
Use char because int might match the return type of a GCC |
| 9145 |
builtin and then its argument prototype would still apply. */ |
| 9146 |
char stringprep (); |
| 9147 |
int |
| 9148 |
main (void) |
| 9149 |
{ |
| 9150 |
return stringprep (); |
| 9151 |
; |
| 9152 |
return 0; |
| 9153 |
} |
| 9154 |
_ACEOF |
| 9155 |
if ac_fn_c_try_link "$LINENO" |
| 9156 |
then : |
| 9157 |
ac_cv_lib_idn_stringprep=yes |
| 9158 |
else $as_nop |
| 9159 |
ac_cv_lib_idn_stringprep=no |
| 9160 |
fi |
| 9161 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9162 |
conftest$ac_exeext conftest.$ac_ext |
| 9163 |
LIBS=$ac_check_lib_save_LIBS |
| 9164 |
fi |
| 9165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_stringprep" >&5 |
| 9166 |
printf "%s\n" "$ac_cv_lib_idn_stringprep" >&6; } |
| 9167 |
if test "x$ac_cv_lib_idn_stringprep" = xyes |
| 9168 |
then : |
| 9169 |
|
| 9170 |
with_libidn=no |
| 9171 |
ac_fn_c_check_header_compile "$LINENO" "stringprep.h" "ac_cv_header_stringprep_h" "$ac_includes_default" |
| 9172 |
if test "x$ac_cv_header_stringprep_h" = xyes |
| 9173 |
then : |
| 9174 |
|
| 9175 |
with_libidn=yes |
| 9176 |
HAVE_LIBIDN="-DHAVE_LIBIDN" |
| 9177 |
LIBS="$LIBS -lidn" |
| 9178 |
|
| 9179 |
fi |
| 9180 |
|
| 9181 |
|
| 9182 |
else $as_nop |
| 9183 |
|
| 9184 |
if test x$with_libidn != xmaybe; then |
| 9185 |
as_fn_error $? "libidn not found" "$LINENO" 5 |
| 9186 |
fi |
| 9187 |
with_libidn=no |
| 9188 |
|
| 9189 |
fi |
| 9190 |
|
| 9191 |
fi |
| 9192 |
fi |
| 9193 |
|
| 9194 |
|
| 9195 |
|
| 9196 |
if test x"$GPL_CONF" = x"yes" ; then |
| 9197 |
|
| 9198 |
|
| 9199 |
|
| 9200 |
# Check whether --with-libpaper was given. |
| 9201 |
if test ${with_libpaper+y} |
| 9202 |
then : |
| 9203 |
withval=$with_libpaper; |
| 9204 |
fi |
| 9205 |
|
| 9206 |
else |
| 9207 |
with_libpaper=no |
| 9208 |
fi |
| 9209 |
|
| 9210 |
if test x$with_libpaper != xno; then |
| 9211 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 |
| 9212 |
printf %s "checking for systempapername in -lpaper... " >&6; } |
| 9213 |
if test ${ac_cv_lib_paper_systempapername+y} |
| 9214 |
then : |
| 9215 |
printf %s "(cached) " >&6 |
| 9216 |
else $as_nop |
| 9217 |
ac_check_lib_save_LIBS=$LIBS |
| 9218 |
LIBS="-lpaper $LIBS" |
| 9219 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9220 |
/* end confdefs.h. */ |
| 9221 |
|
| 9222 |
/* Override any GCC internal prototype to avoid an error. |
| 9223 |
Use char because int might match the return type of a GCC |
| 9224 |
builtin and then its argument prototype would still apply. */ |
| 9225 |
char systempapername (); |
| 9226 |
int |
| 9227 |
main (void) |
| 9228 |
{ |
| 9229 |
return systempapername (); |
| 9230 |
; |
| 9231 |
return 0; |
| 9232 |
} |
| 9233 |
_ACEOF |
| 9234 |
if ac_fn_c_try_link "$LINENO" |
| 9235 |
then : |
| 9236 |
ac_cv_lib_paper_systempapername=yes |
| 9237 |
else $as_nop |
| 9238 |
ac_cv_lib_paper_systempapername=no |
| 9239 |
fi |
| 9240 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9241 |
conftest$ac_exeext conftest.$ac_ext |
| 9242 |
LIBS=$ac_check_lib_save_LIBS |
| 9243 |
fi |
| 9244 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 |
| 9245 |
printf "%s\n" "$ac_cv_lib_paper_systempapername" >&6; } |
| 9246 |
if test "x$ac_cv_lib_paper_systempapername" = xyes |
| 9247 |
then : |
| 9248 |
with_libpaper=yes |
| 9249 |
else $as_nop |
| 9250 |
|
| 9251 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for libpaper" >&5 |
| 9252 |
printf "%s\n" "$as_me: WARNING: disabling support for libpaper" >&2;} |
| 9253 |
with_libpaper=no |
| 9254 |
|
| 9255 |
fi |
| 9256 |
|
| 9257 |
fi |
| 9258 |
if test x$with_libpaper != xno; then |
| 9259 |
ac_fn_c_check_header_compile "$LINENO" "paper.h" "ac_cv_header_paper_h" "$ac_includes_default" |
| 9260 |
if test "x$ac_cv_header_paper_h" = xyes |
| 9261 |
then : |
| 9262 |
with_libpaper=yes |
| 9263 |
else $as_nop |
| 9264 |
|
| 9265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for libpaper" >&5 |
| 9266 |
printf "%s\n" "$as_me: WARNING: disabling support for libpaper" >&2;} |
| 9267 |
with_libpaper=no |
| 9268 |
|
| 9269 |
fi |
| 9270 |
|
| 9271 |
fi |
| 9272 |
|
| 9273 |
if test x$with_libpaper != xno; then |
| 9274 |
LIBS="$LIBS -lpaper" |
| 9275 |
|
| 9276 |
printf "%s\n" "#define USE_LIBPAPER 1" >>confdefs.h |
| 9277 |
|
| 9278 |
CFLAGS="$CFLAGS -DUSE_LIBPAPER" |
| 9279 |
fi |
| 9280 |
|
| 9281 |
HAVE_FONTCONFIG="" |
| 9282 |
FONTCONFIG_CFLAGS="" |
| 9283 |
FONTCONFIG_LIBS="" |
| 9284 |
# Check whether --enable-fontconfig was given. |
| 9285 |
if test ${enable_fontconfig+y} |
| 9286 |
then : |
| 9287 |
enableval=$enable_fontconfig; |
| 9288 |
fi |
| 9289 |
|
| 9290 |
if test "$enable_fontconfig" != "no"; then |
| 9291 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard |
| 9292 |
# autoconf macro and b) requires pkg-config on the system, which is |
| 9293 |
# NOT standard on ANY OS, including Linux! |
| 9294 |
if test "x$PKGCONFIG" != x; then |
| 9295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig with pkg-config" >&5 |
| 9296 |
printf %s "checking for fontconfig with pkg-config... " >&6; } |
| 9297 |
if $PKGCONFIG --exists fontconfig; then |
| 9298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9299 |
printf "%s\n" "yes" >&6; } |
| 9300 |
FONTCONFIG_CFLAGS="$CFLAGS `$PKGCONFIG --cflags fontconfig`" |
| 9301 |
FONTCONFIG_LIBS="`$PKGCONFIG --libs fontconfig`" |
| 9302 |
HAVE_FONTCONFIG=-DHAVE_FONTCONFIG |
| 9303 |
else |
| 9304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9305 |
printf "%s\n" "no" >&6; } |
| 9306 |
fi |
| 9307 |
fi |
| 9308 |
if test -z "$HAVE_FONTCONFIG"; then |
| 9309 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FcInitLoadConfigAndFonts in -lfontconfig" >&5 |
| 9310 |
printf %s "checking for FcInitLoadConfigAndFonts in -lfontconfig... " >&6; } |
| 9311 |
if test ${ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts+y} |
| 9312 |
then : |
| 9313 |
printf %s "(cached) " >&6 |
| 9314 |
else $as_nop |
| 9315 |
ac_check_lib_save_LIBS=$LIBS |
| 9316 |
LIBS="-lfontconfig $LIBS" |
| 9317 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9318 |
/* end confdefs.h. */ |
| 9319 |
|
| 9320 |
/* Override any GCC internal prototype to avoid an error. |
| 9321 |
Use char because int might match the return type of a GCC |
| 9322 |
builtin and then its argument prototype would still apply. */ |
| 9323 |
char FcInitLoadConfigAndFonts (); |
| 9324 |
int |
| 9325 |
main (void) |
| 9326 |
{ |
| 9327 |
return FcInitLoadConfigAndFonts (); |
| 9328 |
; |
| 9329 |
return 0; |
| 9330 |
} |
| 9331 |
_ACEOF |
| 9332 |
if ac_fn_c_try_link "$LINENO" |
| 9333 |
then : |
| 9334 |
ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts=yes |
| 9335 |
else $as_nop |
| 9336 |
ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts=no |
| 9337 |
fi |
| 9338 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9339 |
conftest$ac_exeext conftest.$ac_ext |
| 9340 |
LIBS=$ac_check_lib_save_LIBS |
| 9341 |
fi |
| 9342 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" >&5 |
| 9343 |
printf "%s\n" "$ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" >&6; } |
| 9344 |
if test "x$ac_cv_lib_fontconfig_FcInitLoadConfigAndFonts" = xyes |
| 9345 |
then : |
| 9346 |
|
| 9347 |
ac_fn_c_check_header_compile "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
| 9348 |
if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes |
| 9349 |
then : |
| 9350 |
|
| 9351 |
FONTCONFIG_LIBS="-lfontconfig" |
| 9352 |
HAVE_FONTCONFIG="-DHAVE_FONTCONFIG" |
| 9353 |
|
| 9354 |
fi |
| 9355 |
|
| 9356 |
|
| 9357 |
fi |
| 9358 |
|
| 9359 |
fi |
| 9360 |
fi |
| 9361 |
|
| 9362 |
|
| 9363 |
|
| 9364 |
|
| 9365 |
HAVE_DBUS="" |
| 9366 |
DBUS_CFLAGS="" |
| 9367 |
DBUS_LIBS="" |
| 9368 |
# Check whether --enable-dbus was given. |
| 9369 |
if test ${enable_dbus+y} |
| 9370 |
then : |
| 9371 |
enableval=$enable_dbus; |
| 9372 |
fi |
| 9373 |
|
| 9374 |
if test "$enable_dbus" != "no"; then |
| 9375 |
if test "x$PKGCONFIG" != x; then |
| 9376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus with pkg-config" >&5 |
| 9377 |
printf %s "checking for dbus with pkg-config... " >&6; } |
| 9378 |
if $PKGCONFIG --exists dbus-1; then |
| 9379 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9380 |
printf "%s\n" "yes" >&6; } |
| 9381 |
DBUS_CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1`" |
| 9382 |
DBUS_LIBS="`$PKGCONFIG --libs dbus-1`" |
| 9383 |
HAVE_DBUS=-DHAVE_DBUS |
| 9384 |
else |
| 9385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9386 |
printf "%s\n" "no" >&6; } |
| 9387 |
fi |
| 9388 |
fi |
| 9389 |
if test -z "$HAVE_DBUS"; then |
| 9390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus_message_iter_get_basic in -ldbus" >&5 |
| 9391 |
printf %s "checking for dbus_message_iter_get_basic in -ldbus... " >&6; } |
| 9392 |
if test ${ac_cv_lib_dbus_dbus_message_iter_get_basic+y} |
| 9393 |
then : |
| 9394 |
printf %s "(cached) " >&6 |
| 9395 |
else $as_nop |
| 9396 |
ac_check_lib_save_LIBS=$LIBS |
| 9397 |
LIBS="-ldbus $LIBS" |
| 9398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9399 |
/* end confdefs.h. */ |
| 9400 |
|
| 9401 |
/* Override any GCC internal prototype to avoid an error. |
| 9402 |
Use char because int might match the return type of a GCC |
| 9403 |
builtin and then its argument prototype would still apply. */ |
| 9404 |
char dbus_message_iter_get_basic (); |
| 9405 |
int |
| 9406 |
main (void) |
| 9407 |
{ |
| 9408 |
return dbus_message_iter_get_basic (); |
| 9409 |
; |
| 9410 |
return 0; |
| 9411 |
} |
| 9412 |
_ACEOF |
| 9413 |
if ac_fn_c_try_link "$LINENO" |
| 9414 |
then : |
| 9415 |
ac_cv_lib_dbus_dbus_message_iter_get_basic=yes |
| 9416 |
else $as_nop |
| 9417 |
ac_cv_lib_dbus_dbus_message_iter_get_basic=no |
| 9418 |
fi |
| 9419 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9420 |
conftest$ac_exeext conftest.$ac_ext |
| 9421 |
LIBS=$ac_check_lib_save_LIBS |
| 9422 |
fi |
| 9423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_dbus_message_iter_get_basic" >&5 |
| 9424 |
printf "%s\n" "$ac_cv_lib_dbus_dbus_message_iter_get_basic" >&6; } |
| 9425 |
if test "x$ac_cv_lib_dbus_dbus_message_iter_get_basic" = xyes |
| 9426 |
then : |
| 9427 |
|
| 9428 |
ac_fn_c_check_header_compile "$LINENO" "dbus-1.0/dbus/dbus.h" "ac_cv_header_dbus_1_0_dbus_dbus_h" "$ac_includes_default" |
| 9429 |
if test "x$ac_cv_header_dbus_1_0_dbus_dbus_h" = xyes |
| 9430 |
then : |
| 9431 |
|
| 9432 |
DBUS_LIBS="-ldbus-1 -lpthread -lrt" |
| 9433 |
HAVE_DBUS="-DHAVE_DBUS" |
| 9434 |
|
| 9435 |
fi |
| 9436 |
|
| 9437 |
|
| 9438 |
fi |
| 9439 |
|
| 9440 |
fi |
| 9441 |
fi |
| 9442 |
|
| 9443 |
|
| 9444 |
|
| 9445 |
|
| 9446 |
|
| 9447 |
FT_BRIDGE=0 |
| 9448 |
SHARE_FT=0 |
| 9449 |
FTSRCDIR=src |
| 9450 |
FT_CFLAGS= |
| 9451 |
FT_LIBS= |
| 9452 |
|
| 9453 |
|
| 9454 |
INSERT_UFST_BRIDGE_EQUAL_ONE= |
| 9455 |
UFST_ROOT= |
| 9456 |
UFST_CFLAGS= |
| 9457 |
UFST_LIB_EXT= |
| 9458 |
FAPIUFST_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 9459 |
|
| 9460 |
if test x"$enable_fapi" != xno; then |
| 9461 |
|
| 9462 |
|
| 9463 |
# Check whether --with-ufst was given. |
| 9464 |
if test ${with_ufst+y} |
| 9465 |
then : |
| 9466 |
withval=$with_ufst; |
| 9467 |
else $as_nop |
| 9468 |
with_ufst=no |
| 9469 |
fi |
| 9470 |
|
| 9471 |
|
| 9472 |
if test x"$with_ufst" != xno; then |
| 9473 |
if test -d $with_ufst; then |
| 9474 |
INSERT_UFST_BRIDGE_EQUAL_ONE="UFST_BRIDGE=1" |
| 9475 |
CFLAGS="$CFLAGS -DUFST_BRIDGE=1" |
| 9476 |
case $with_ufst in |
| 9477 |
/*) UFST_ROOT=$with_ufst ;; |
| 9478 |
*) UFST_ROOT=`pwd`/$with_ufst ;; |
| 9479 |
esac |
| 9480 |
|
| 9481 |
# Various versions of UFST fail to build with -Werror=return-type so |
| 9482 |
# strip that off our GCFLAGS if it's there. |
| 9483 |
tmp_cflags="" |
| 9484 |
for tmp_cflag in $GCFLAGS ; do |
| 9485 |
echo $tmp_cflag |
| 9486 |
tmp_cflags="$tmp_cflags $(echo $tmp_cflag | grep -v "Werror=return-type")" |
| 9487 |
done |
| 9488 |
GCFLAGS="$tmp_cflags" |
| 9489 |
|
| 9490 |
FAPIUFST_MAK="\$(UFST_ROOT)\$(D)fapiufst.mak" |
| 9491 |
|
| 9492 |
if ! test -f $UFST_ROOT/fapiufst.mak ; then |
| 9493 |
echo $UFST_ROOT/fapiufst.mak |
| 9494 |
as_fn_error $? "UFST: fapiufst.mak not found" "$LINENO" 5 |
| 9495 |
fi |
| 9496 |
|
| 9497 |
# Check pointer size |
| 9498 |
# The cast to long int works around a bug in the HP C Compiler |
| 9499 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9500 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9501 |
# This bug is HP SR number 8606223364. |
| 9502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 |
| 9503 |
printf %s "checking size of char*... " >&6; } |
| 9504 |
if test ${ac_cv_sizeof_charp+y} |
| 9505 |
then : |
| 9506 |
printf %s "(cached) " >&6 |
| 9507 |
else $as_nop |
| 9508 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default" |
| 9509 |
then : |
| 9510 |
|
| 9511 |
else $as_nop |
| 9512 |
if test "$ac_cv_type_charp" = yes; then |
| 9513 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9514 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9515 |
as_fn_error 77 "cannot compute sizeof (char*) |
| 9516 |
See \`config.log' for more details" "$LINENO" 5; } |
| 9517 |
else |
| 9518 |
ac_cv_sizeof_charp=0 |
| 9519 |
fi |
| 9520 |
fi |
| 9521 |
|
| 9522 |
fi |
| 9523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 |
| 9524 |
printf "%s\n" "$ac_cv_sizeof_charp" >&6; } |
| 9525 |
|
| 9526 |
|
| 9527 |
|
| 9528 |
printf "%s\n" "#define SIZEOF_CHARP $ac_cv_sizeof_charp" >>confdefs.h |
| 9529 |
|
| 9530 |
|
| 9531 |
|
| 9532 |
# UFST 5.x uses strcmpi() but on GNU systems the equivalent is |
| 9533 |
# strcasecmp() |
| 9534 |
if test "x$ac_cv_sizeof_charp" = "x8"; then |
| 9535 |
UFST_CFLAGS="-DGCCx86_64 -DO_BINARY=0 -Dstrcmpi=strcasecmp" |
| 9536 |
else |
| 9537 |
if test "x$ac_cv_sizeof_charp" = "x4"; then |
| 9538 |
UFST_CFLAGS="-DGCCx86 -DO_BINARY=0 -Dstrcmpi=strcasecmp" |
| 9539 |
fi |
| 9540 |
fi |
| 9541 |
|
| 9542 |
UFST_LIB_EXT=.a |
| 9543 |
else |
| 9544 |
as_fn_error $? "UFST source directory not found" "$LINENO" 5 |
| 9545 |
fi |
| 9546 |
fi |
| 9547 |
|
| 9548 |
if test x"$enable_freetype" != xno; then |
| 9549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local freetype library source" >&5 |
| 9550 |
printf %s "checking for local freetype library source... " >&6; } |
| 9551 |
for dir in $srccdir/freetype2 $srcdir/freetype; do |
| 9552 |
if test -f $dir/src/base/ftbbox.c; then |
| 9553 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9554 |
printf "%s\n" "yes" >&6; } |
| 9555 |
SHARE_FT=0 |
| 9556 |
FTSRCDIR="$dir" |
| 9557 |
FT_CFLAGS="-I$dir/include" |
| 9558 |
FT_BRIDGE=1 |
| 9559 |
break; |
| 9560 |
fi |
| 9561 |
done |
| 9562 |
|
| 9563 |
if test x"$FTSRCDIR" = x"src"; then |
| 9564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9565 |
printf "%s\n" "no" >&6; } |
| 9566 |
if test x"$PKGCONFIG" != x""; then |
| 9567 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system freetype2 >= 2.4.2 with pkg-config" >&5 |
| 9568 |
printf %s "checking for system freetype2 >= 2.4.2 with pkg-config... " >&6; } |
| 9569 |
# pkg-config needs the libtool version, which != the freetype2 version <sigh!> |
| 9570 |
# There is a table of corresponding ft2<->libtool numbers in freetype/docs/VERSION.DLL |
| 9571 |
if $PKGCONFIG --atleast-version=12.0.6 freetype2; then |
| 9572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9573 |
printf "%s\n" "yes" >&6; } |
| 9574 |
if test "x$FT_CFLAGS" = "x"; then |
| 9575 |
FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags freetype2`" |
| 9576 |
fi |
| 9577 |
if test "x$FT_LIBS" = "x"; then |
| 9578 |
FT_LIBS="`$PKGCONFIG --libs-only-l freetype2`" |
| 9579 |
fi |
| 9580 |
if test "x$FT_LIB_PATH" = "x"; then |
| 9581 |
FT_LIB_PATH="`$PKGCONFIG --libs-only-L freetype2`" |
| 9582 |
fi |
| 9583 |
FT_BRIDGE=1 |
| 9584 |
SHARE_FT=1 |
| 9585 |
else |
| 9586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9587 |
printf "%s\n" "no" >&6; } |
| 9588 |
AFS=1 |
| 9589 |
fi |
| 9590 |
else |
| 9591 |
ac_fn_c_check_header_compile "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 9592 |
if test "x$ac_cv_header_ft2build_h" = xyes |
| 9593 |
then : |
| 9594 |
FT_BRIDGE=1 |
| 9595 |
else $as_nop |
| 9596 |
AFS=1 |
| 9597 |
fi |
| 9598 |
|
| 9599 |
|
| 9600 |
if test "x$FT_BRIDGE" = x1; then |
| 9601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
| 9602 |
printf %s "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| 9603 |
if test ${ac_cv_lib_freetype_FT_Init_FreeType+y} |
| 9604 |
then : |
| 9605 |
printf %s "(cached) " >&6 |
| 9606 |
else $as_nop |
| 9607 |
ac_check_lib_save_LIBS=$LIBS |
| 9608 |
LIBS="-lfreetype $LIBS" |
| 9609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9610 |
/* end confdefs.h. */ |
| 9611 |
|
| 9612 |
/* Override any GCC internal prototype to avoid an error. |
| 9613 |
Use char because int might match the return type of a GCC |
| 9614 |
builtin and then its argument prototype would still apply. */ |
| 9615 |
char FT_Init_FreeType (); |
| 9616 |
int |
| 9617 |
main (void) |
| 9618 |
{ |
| 9619 |
return FT_Init_FreeType (); |
| 9620 |
; |
| 9621 |
return 0; |
| 9622 |
} |
| 9623 |
_ACEOF |
| 9624 |
if ac_fn_c_try_link "$LINENO" |
| 9625 |
then : |
| 9626 |
ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 9627 |
else $as_nop |
| 9628 |
ac_cv_lib_freetype_FT_Init_FreeType=no |
| 9629 |
fi |
| 9630 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9631 |
conftest$ac_exeext conftest.$ac_ext |
| 9632 |
LIBS=$ac_check_lib_save_LIBS |
| 9633 |
fi |
| 9634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 9635 |
printf "%s\n" "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| 9636 |
if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes |
| 9637 |
then : |
| 9638 |
FT_BRIDGE=1 |
| 9639 |
else $as_nop |
| 9640 |
FT_BRIDGE=0; AFS=1 |
| 9641 |
fi |
| 9642 |
|
| 9643 |
|
| 9644 |
if test "x$FT_BRIDGE" = x1; then |
| 9645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system freetype2 library >= 2.4.2" >&5 |
| 9646 |
printf %s "checking for system freetype2 library >= 2.4.2... " >&6; } |
| 9647 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9648 |
/* end confdefs.h. */ |
| 9649 |
#include "ft2build.h" |
| 9650 |
#include FT_FREETYPE_H |
| 9651 |
int |
| 9652 |
main (void) |
| 9653 |
{ |
| 9654 |
|
| 9655 |
#if FREETYPE_MAJOR < 2 |
| 9656 |
FAIL |
| 9657 |
#endif |
| 9658 |
#if FREETYPE_MINOR < 4 |
| 9659 |
FAIL |
| 9660 |
#endif |
| 9661 |
#if FREETYPE_PATCH < 2 |
| 9662 |
FAIL |
| 9663 |
#endif |
| 9664 |
return(0); |
| 9665 |
|
| 9666 |
; |
| 9667 |
return 0; |
| 9668 |
} |
| 9669 |
_ACEOF |
| 9670 |
if ac_fn_c_try_compile "$LINENO" |
| 9671 |
then : |
| 9672 |
FT_BRIDGE=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9673 |
printf "%s\n" "yes" >&6; } |
| 9674 |
else $as_nop |
| 9675 |
FT_BRIDGE=0; AFS=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9676 |
printf "%s\n" "no" >&6; } |
| 9677 |
fi |
| 9678 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9679 |
fi |
| 9680 |
fi |
| 9681 |
fi |
| 9682 |
fi |
| 9683 |
fi |
| 9684 |
fi |
| 9685 |
|
| 9686 |
if test x"$FT_BRIDGE" != x"1"; then |
| 9687 |
if test x"$enable_auxtools_only" != x"yes" ; then |
| 9688 |
as_fn_error $? "No usable Freetype source or library found" "$LINENO" 5 |
| 9689 |
fi |
| 9690 |
fi |
| 9691 |
|
| 9692 |
|
| 9693 |
|
| 9694 |
|
| 9695 |
|
| 9696 |
|
| 9697 |
|
| 9698 |
|
| 9699 |
|
| 9700 |
|
| 9701 |
|
| 9702 |
|
| 9703 |
|
| 9704 |
TIFF_JPEG_INCLUDE= |
| 9705 |
|
| 9706 |
if test x"$enable_auxtools_only" = x"yes" ; then |
| 9707 |
LIBJPEGDIR= |
| 9708 |
SHARE_LIBJPEG=0 |
| 9709 |
printf "%s\n" "#define DONT_HAVE_JMEMSYS_H 1" >>confdefs.h |
| 9710 |
|
| 9711 |
|
| 9712 |
|
| 9713 |
else |
| 9714 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local jpeg library source" >&5 |
| 9715 |
printf %s "checking for local jpeg library source... " >&6; } |
| 9716 |
LIBJPEGDIR=src |
| 9717 |
if test -f $srcdir/jpeg/jpeglib.h; then |
| 9718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: jpeg" >&5 |
| 9719 |
printf "%s\n" "jpeg" >&6; } |
| 9720 |
SHARE_LIBJPEG=0 |
| 9721 |
LIBJPEGDIR=$srcdir/jpeg |
| 9722 |
elif test -f $srcdir/jpeg-6b/jpeglib.h; then |
| 9723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: jpeg-6b" >&5 |
| 9724 |
printf "%s\n" "jpeg-6b" >&6; } |
| 9725 |
SHARE_LIBJPEG=0 |
| 9726 |
LIBJPEGDIR=$srcdir/jpeg-6b |
| 9727 |
else |
| 9728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9729 |
printf "%s\n" "no" >&6; } |
| 9730 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 |
| 9731 |
printf %s "checking for jpeg_set_defaults in -ljpeg... " >&6; } |
| 9732 |
if test ${ac_cv_lib_jpeg_jpeg_set_defaults+y} |
| 9733 |
then : |
| 9734 |
printf %s "(cached) " >&6 |
| 9735 |
else $as_nop |
| 9736 |
ac_check_lib_save_LIBS=$LIBS |
| 9737 |
LIBS="-ljpeg $LIBS" |
| 9738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9739 |
/* end confdefs.h. */ |
| 9740 |
|
| 9741 |
/* Override any GCC internal prototype to avoid an error. |
| 9742 |
Use char because int might match the return type of a GCC |
| 9743 |
builtin and then its argument prototype would still apply. */ |
| 9744 |
char jpeg_set_defaults (); |
| 9745 |
int |
| 9746 |
main (void) |
| 9747 |
{ |
| 9748 |
return jpeg_set_defaults (); |
| 9749 |
; |
| 9750 |
return 0; |
| 9751 |
} |
| 9752 |
_ACEOF |
| 9753 |
if ac_fn_c_try_link "$LINENO" |
| 9754 |
then : |
| 9755 |
ac_cv_lib_jpeg_jpeg_set_defaults=yes |
| 9756 |
else $as_nop |
| 9757 |
ac_cv_lib_jpeg_jpeg_set_defaults=no |
| 9758 |
fi |
| 9759 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9760 |
conftest$ac_exeext conftest.$ac_ext |
| 9761 |
LIBS=$ac_check_lib_save_LIBS |
| 9762 |
fi |
| 9763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 |
| 9764 |
printf "%s\n" "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } |
| 9765 |
if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes |
| 9766 |
then : |
| 9767 |
|
| 9768 |
for ac_header in jpeglib.h |
| 9769 |
do : |
| 9770 |
ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| 9771 |
if test "x$ac_cv_header_jpeglib_h" = xyes |
| 9772 |
then : |
| 9773 |
printf "%s\n" "#define HAVE_JPEGLIB_H 1" >>confdefs.h |
| 9774 |
SHARE_LIBJPEG=1 |
| 9775 |
fi |
| 9776 |
|
| 9777 |
done |
| 9778 |
|
| 9779 |
fi |
| 9780 |
|
| 9781 |
fi |
| 9782 |
|
| 9783 |
if test x"$LIBJPEGDIR" != x"src" ; then |
| 9784 |
TIFF_JPEG_INCLUDE="$LIBJPEGDIR" |
| 9785 |
fi |
| 9786 |
|
| 9787 |
if test -z "$SHARE_LIBJPEG"; then |
| 9788 |
as_fn_error $? "I wasn't able to find a copy |
| 9789 |
of the jpeg library. This is required for compiling |
| 9790 |
ghostscript. Please download a copy of the source, |
| 9791 |
e.g. from http://www.ijg.org/, unpack it at the |
| 9792 |
top level of the gs source tree, and rename |
| 9793 |
the directory to 'jpeg'. |
| 9794 |
" "$LINENO" 5 |
| 9795 |
fi |
| 9796 |
|
| 9797 |
|
| 9798 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jmemsys.h" >&5 |
| 9799 |
printf %s "checking for jmemsys.h... " >&6; } |
| 9800 |
if test -r $LIBJPEGDIR/jmemsys.h; then |
| 9801 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9802 |
printf "%s\n" "yes" >&6; } |
| 9803 |
else |
| 9804 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9805 |
printf "%s\n" "no" >&6; } |
| 9806 |
|
| 9807 |
printf "%s\n" "#define DONT_HAVE_JMEMSYS_H 1" >>confdefs.h |
| 9808 |
|
| 9809 |
fi |
| 9810 |
fi |
| 9811 |
|
| 9812 |
# this option is useful if you're cross-compiling and want to use |
| 9813 |
# your toolchain's zlib for $host but the local one for $build |
| 9814 |
|
| 9815 |
# Check whether --with-local-zlib was given. |
| 9816 |
if test ${with_local_zlib+y} |
| 9817 |
then : |
| 9818 |
withval=$with_local_zlib; |
| 9819 |
fi |
| 9820 |
|
| 9821 |
|
| 9822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local zlib source" >&5 |
| 9823 |
printf %s "checking for local zlib source... " >&6; } |
| 9824 |
# we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR) |
| 9825 |
# this seems a harmless default |
| 9826 |
ZLIBDIR=src |
| 9827 |
AUX_SHARED_ZLIB= |
| 9828 |
ZLIBCFLAGS="" |
| 9829 |
|
| 9830 |
if test x"$with_local_zlib" = x"no" ; then |
| 9831 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip" >&5 |
| 9832 |
printf "%s\n" "skip" >&6; } |
| 9833 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 9834 |
printf %s "checking for deflate in -lz... " >&6; } |
| 9835 |
if test ${ac_cv_lib_z_deflate+y} |
| 9836 |
then : |
| 9837 |
printf %s "(cached) " >&6 |
| 9838 |
else $as_nop |
| 9839 |
ac_check_lib_save_LIBS=$LIBS |
| 9840 |
LIBS="-lz $LIBS" |
| 9841 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9842 |
/* end confdefs.h. */ |
| 9843 |
|
| 9844 |
/* Override any GCC internal prototype to avoid an error. |
| 9845 |
Use char because int might match the return type of a GCC |
| 9846 |
builtin and then its argument prototype would still apply. */ |
| 9847 |
char deflate (); |
| 9848 |
int |
| 9849 |
main (void) |
| 9850 |
{ |
| 9851 |
return deflate (); |
| 9852 |
; |
| 9853 |
return 0; |
| 9854 |
} |
| 9855 |
_ACEOF |
| 9856 |
if ac_fn_c_try_link "$LINENO" |
| 9857 |
then : |
| 9858 |
ac_cv_lib_z_deflate=yes |
| 9859 |
else $as_nop |
| 9860 |
ac_cv_lib_z_deflate=no |
| 9861 |
fi |
| 9862 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9863 |
conftest$ac_exeext conftest.$ac_ext |
| 9864 |
LIBS=$ac_check_lib_save_LIBS |
| 9865 |
fi |
| 9866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 9867 |
printf "%s\n" "$ac_cv_lib_z_deflate" >&6; } |
| 9868 |
if test "x$ac_cv_lib_z_deflate" = xyes |
| 9869 |
then : |
| 9870 |
|
| 9871 |
for ac_header in zlib.h |
| 9872 |
do : |
| 9873 |
ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 9874 |
if test "x$ac_cv_header_zlib_h" = xyes |
| 9875 |
then : |
| 9876 |
printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h |
| 9877 |
SHARE_ZLIB=1; AUX_SHARED_ZLIB="-l\$(ZLIB_NAME)" |
| 9878 |
fi |
| 9879 |
|
| 9880 |
done |
| 9881 |
|
| 9882 |
fi |
| 9883 |
|
| 9884 |
else |
| 9885 |
if test -d $srcdir/zlib; then |
| 9886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9887 |
printf "%s\n" "yes" >&6; } |
| 9888 |
SHARE_ZLIB=0 |
| 9889 |
ZLIBDIR=$srcdir/zlib |
| 9890 |
|
| 9891 |
if test x"$GCC" = x"yes"; then |
| 9892 |
ZLIBCFLAGS="-Wno-write-strings" |
| 9893 |
fi |
| 9894 |
else |
| 9895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9896 |
printf "%s\n" "no" >&6; } |
| 9897 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 9898 |
printf %s "checking for deflate in -lz... " >&6; } |
| 9899 |
if test ${ac_cv_lib_z_deflate+y} |
| 9900 |
then : |
| 9901 |
printf %s "(cached) " >&6 |
| 9902 |
else $as_nop |
| 9903 |
ac_check_lib_save_LIBS=$LIBS |
| 9904 |
LIBS="-lz $LIBS" |
| 9905 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9906 |
/* end confdefs.h. */ |
| 9907 |
|
| 9908 |
/* Override any GCC internal prototype to avoid an error. |
| 9909 |
Use char because int might match the return type of a GCC |
| 9910 |
builtin and then its argument prototype would still apply. */ |
| 9911 |
char deflate (); |
| 9912 |
int |
| 9913 |
main (void) |
| 9914 |
{ |
| 9915 |
return deflate (); |
| 9916 |
; |
| 9917 |
return 0; |
| 9918 |
} |
| 9919 |
_ACEOF |
| 9920 |
if ac_fn_c_try_link "$LINENO" |
| 9921 |
then : |
| 9922 |
ac_cv_lib_z_deflate=yes |
| 9923 |
else $as_nop |
| 9924 |
ac_cv_lib_z_deflate=no |
| 9925 |
fi |
| 9926 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9927 |
conftest$ac_exeext conftest.$ac_ext |
| 9928 |
LIBS=$ac_check_lib_save_LIBS |
| 9929 |
fi |
| 9930 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 9931 |
printf "%s\n" "$ac_cv_lib_z_deflate" >&6; } |
| 9932 |
if test "x$ac_cv_lib_z_deflate" = xyes |
| 9933 |
then : |
| 9934 |
|
| 9935 |
for ac_header in zlib.h |
| 9936 |
do : |
| 9937 |
ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 9938 |
if test "x$ac_cv_header_zlib_h" = xyes |
| 9939 |
then : |
| 9940 |
printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h |
| 9941 |
SHARE_ZLIB=1; AUX_SHARED_ZLIB="-l\$(ZLIB_NAME)" |
| 9942 |
fi |
| 9943 |
|
| 9944 |
done |
| 9945 |
|
| 9946 |
fi |
| 9947 |
|
| 9948 |
fi |
| 9949 |
fi |
| 9950 |
if test -z "$SHARE_ZLIB"; then |
| 9951 |
as_fn_error $? "I did not find a copy of zlib on your system. |
| 9952 |
Please either install it, or unpack a copy of the source in a |
| 9953 |
local directory named 'zlib'. See http://www.gzip.org/zlib/ |
| 9954 |
for more information. |
| 9955 |
" "$LINENO" 5 |
| 9956 |
fi |
| 9957 |
|
| 9958 |
|
| 9959 |
|
| 9960 |
|
| 9961 |
|
| 9962 |
|
| 9963 |
|
| 9964 |
if test x"$enable_auxtools_only" = x"yes" ; then |
| 9965 |
LIBPNGDIR="" |
| 9966 |
SHARE_LIBPNG=0 |
| 9967 |
else |
| 9968 |
LIBPNGDIR=src |
| 9969 |
PNGDEVS='' |
| 9970 |
PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha png16malpha' |
| 9971 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local png library source" >&5 |
| 9972 |
printf %s "checking for local png library source... " >&6; } |
| 9973 |
if test -f $srcdir/libpng/pngread.c; then |
| 9974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9975 |
printf "%s\n" "yes" >&6; } |
| 9976 |
SHARE_LIBPNG=0 |
| 9977 |
LIBPNGDIR=$srcdir/libpng |
| 9978 |
PNGDEVS="$PNGDEVS_ALL" |
| 9979 |
case $host in |
| 9980 |
*powerpc*) |
| 9981 |
# Building on PPC with gcc, disable libpng's PPC specific |
| 9982 |
# optimizations: we don't include the source file for it |
| 9983 |
# and it only applies to reading, which we don't use. |
| 9984 |
if test x"$GCC" = x"yes"; then |
| 9985 |
CFLAGS="$CFLAGS -DPNG_POWERPC_VSX_OPT=0" |
| 9986 |
fi |
| 9987 |
;; |
| 9988 |
*arm64*|*aarch64*) |
| 9989 |
# Building on arm64 with gcc, disable libpng's neon |
| 9990 |
# optimizations. |
| 9991 |
if test x"$GCC" = x"yes"; then |
| 9992 |
CFLAGS="$CFLAGS -DPNG_ARM_NEON_OPT=0" |
| 9993 |
fi |
| 9994 |
;; |
| 9995 |
esac |
| 9996 |
else |
| 9997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9998 |
printf "%s\n" "no" >&6; } |
| 9999 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 |
| 10000 |
printf %s "checking for png_create_write_struct in -lpng... " >&6; } |
| 10001 |
if test ${ac_cv_lib_png_png_create_write_struct+y} |
| 10002 |
then : |
| 10003 |
printf %s "(cached) " >&6 |
| 10004 |
else $as_nop |
| 10005 |
ac_check_lib_save_LIBS=$LIBS |
| 10006 |
LIBS="-lpng -lz $LIBS" |
| 10007 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10008 |
/* end confdefs.h. */ |
| 10009 |
|
| 10010 |
/* Override any GCC internal prototype to avoid an error. |
| 10011 |
Use char because int might match the return type of a GCC |
| 10012 |
builtin and then its argument prototype would still apply. */ |
| 10013 |
char png_create_write_struct (); |
| 10014 |
int |
| 10015 |
main (void) |
| 10016 |
{ |
| 10017 |
return png_create_write_struct (); |
| 10018 |
; |
| 10019 |
return 0; |
| 10020 |
} |
| 10021 |
_ACEOF |
| 10022 |
if ac_fn_c_try_link "$LINENO" |
| 10023 |
then : |
| 10024 |
ac_cv_lib_png_png_create_write_struct=yes |
| 10025 |
else $as_nop |
| 10026 |
ac_cv_lib_png_png_create_write_struct=no |
| 10027 |
fi |
| 10028 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10029 |
conftest$ac_exeext conftest.$ac_ext |
| 10030 |
LIBS=$ac_check_lib_save_LIBS |
| 10031 |
fi |
| 10032 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 |
| 10033 |
printf "%s\n" "$ac_cv_lib_png_png_create_write_struct" >&6; } |
| 10034 |
if test "x$ac_cv_lib_png_png_create_write_struct" = xyes |
| 10035 |
then : |
| 10036 |
|
| 10037 |
for ac_header in png.h |
| 10038 |
do : |
| 10039 |
ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 10040 |
if test "x$ac_cv_header_png_h" = xyes |
| 10041 |
then : |
| 10042 |
printf "%s\n" "#define HAVE_PNG_H 1" >>confdefs.h |
| 10043 |
|
| 10044 |
SHARE_LIBPNG=1 |
| 10045 |
PNGDEVS="$PNGDEVS_ALL" |
| 10046 |
|
| 10047 |
else $as_nop |
| 10048 |
SHARE_LIBPNG=0 |
| 10049 |
fi |
| 10050 |
|
| 10051 |
done |
| 10052 |
|
| 10053 |
else $as_nop |
| 10054 |
SHARE_LIBPNG=0 |
| 10055 |
fi |
| 10056 |
|
| 10057 |
fi |
| 10058 |
if test -z "$PNGDEVS"; then |
| 10059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling png output devices" >&5 |
| 10060 |
printf "%s\n" "$as_me: disabling png output devices" >&6;} |
| 10061 |
fi |
| 10062 |
fi |
| 10063 |
|
| 10064 |
|
| 10065 |
#AC_SUBST(PNGDEVS) |
| 10066 |
|
| 10067 |
# this option is useful if you're cross-compiling and want to use |
| 10068 |
# your toolchain's brotli for $host but the local one for $build |
| 10069 |
|
| 10070 |
# Check whether --with-local-brotli was given. |
| 10071 |
if test ${with_local_brotli+y} |
| 10072 |
then : |
| 10073 |
withval=$with_local_brotli; |
| 10074 |
fi |
| 10075 |
|
| 10076 |
|
| 10077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local brotli source" >&5 |
| 10078 |
printf %s "checking for local brotli source... " >&6; } |
| 10079 |
BROTLIDIR=src |
| 10080 |
SHARE_BROTLI= |
| 10081 |
BROTLICFLAGS="" |
| 10082 |
|
| 10083 |
BROTLI_COMMON_NAME="" |
| 10084 |
BROTLI_ENCODE_NAME="" |
| 10085 |
BROTLI_DECODE_NAME="" |
| 10086 |
|
| 10087 |
if test x"$with_local_brotli" = x"no" || [ ! -d $srcdir/brotli ] ; then |
| 10088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no." >&5 |
| 10089 |
printf "%s\n" "no." >&6; } |
| 10090 |
|
| 10091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDefaultAllocFunc in -lbrotlicommon" >&5 |
| 10092 |
printf %s "checking for BrotliDefaultAllocFunc in -lbrotlicommon... " >&6; } |
| 10093 |
if test ${ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc+y} |
| 10094 |
then : |
| 10095 |
printf %s "(cached) " >&6 |
| 10096 |
else $as_nop |
| 10097 |
ac_check_lib_save_LIBS=$LIBS |
| 10098 |
LIBS="-lbrotlicommon -lbrotlicommon $LIBS" |
| 10099 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10100 |
/* end confdefs.h. */ |
| 10101 |
|
| 10102 |
/* Override any GCC internal prototype to avoid an error. |
| 10103 |
Use char because int might match the return type of a GCC |
| 10104 |
builtin and then its argument prototype would still apply. */ |
| 10105 |
char BrotliDefaultAllocFunc (); |
| 10106 |
int |
| 10107 |
main (void) |
| 10108 |
{ |
| 10109 |
return BrotliDefaultAllocFunc (); |
| 10110 |
; |
| 10111 |
return 0; |
| 10112 |
} |
| 10113 |
_ACEOF |
| 10114 |
if ac_fn_c_try_link "$LINENO" |
| 10115 |
then : |
| 10116 |
ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc=yes |
| 10117 |
else $as_nop |
| 10118 |
ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc=no |
| 10119 |
fi |
| 10120 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10121 |
conftest$ac_exeext conftest.$ac_ext |
| 10122 |
LIBS=$ac_check_lib_save_LIBS |
| 10123 |
fi |
| 10124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc" >&5 |
| 10125 |
printf "%s\n" "$ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc" >&6; } |
| 10126 |
if test "x$ac_cv_lib_brotlicommon_BrotliDefaultAllocFunc" = xyes |
| 10127 |
then : |
| 10128 |
|
| 10129 |
for ac_header in brotli/shared_dictionary.h |
| 10130 |
do : |
| 10131 |
ac_fn_c_check_header_compile "$LINENO" "brotli/shared_dictionary.h" "ac_cv_header_brotli_shared_dictionary_h" "$ac_includes_default" |
| 10132 |
if test "x$ac_cv_header_brotli_shared_dictionary_h" = xyes |
| 10133 |
then : |
| 10134 |
printf "%s\n" "#define HAVE_BROTLI_SHARED_DICTIONARY_H 1" >>confdefs.h |
| 10135 |
BROTLI_COMMON_NAME="brotlicommon" |
| 10136 |
fi |
| 10137 |
|
| 10138 |
done |
| 10139 |
|
| 10140 |
fi |
| 10141 |
|
| 10142 |
|
| 10143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliEncoderCreateInstance in -lbrotlienc" >&5 |
| 10144 |
printf %s "checking for BrotliEncoderCreateInstance in -lbrotlienc... " >&6; } |
| 10145 |
if test ${ac_cv_lib_brotlienc_BrotliEncoderCreateInstance+y} |
| 10146 |
then : |
| 10147 |
printf %s "(cached) " >&6 |
| 10148 |
else $as_nop |
| 10149 |
ac_check_lib_save_LIBS=$LIBS |
| 10150 |
LIBS="-lbrotlienc -lbrotlicommon $LIBS" |
| 10151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10152 |
/* end confdefs.h. */ |
| 10153 |
|
| 10154 |
/* Override any GCC internal prototype to avoid an error. |
| 10155 |
Use char because int might match the return type of a GCC |
| 10156 |
builtin and then its argument prototype would still apply. */ |
| 10157 |
char BrotliEncoderCreateInstance (); |
| 10158 |
int |
| 10159 |
main (void) |
| 10160 |
{ |
| 10161 |
return BrotliEncoderCreateInstance (); |
| 10162 |
; |
| 10163 |
return 0; |
| 10164 |
} |
| 10165 |
_ACEOF |
| 10166 |
if ac_fn_c_try_link "$LINENO" |
| 10167 |
then : |
| 10168 |
ac_cv_lib_brotlienc_BrotliEncoderCreateInstance=yes |
| 10169 |
else $as_nop |
| 10170 |
ac_cv_lib_brotlienc_BrotliEncoderCreateInstance=no |
| 10171 |
fi |
| 10172 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10173 |
conftest$ac_exeext conftest.$ac_ext |
| 10174 |
LIBS=$ac_check_lib_save_LIBS |
| 10175 |
fi |
| 10176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlienc_BrotliEncoderCreateInstance" >&5 |
| 10177 |
printf "%s\n" "$ac_cv_lib_brotlienc_BrotliEncoderCreateInstance" >&6; } |
| 10178 |
if test "x$ac_cv_lib_brotlienc_BrotliEncoderCreateInstance" = xyes |
| 10179 |
then : |
| 10180 |
|
| 10181 |
for ac_header in brotli/encode.h |
| 10182 |
do : |
| 10183 |
ac_fn_c_check_header_compile "$LINENO" "brotli/encode.h" "ac_cv_header_brotli_encode_h" "$ac_includes_default" |
| 10184 |
if test "x$ac_cv_header_brotli_encode_h" = xyes |
| 10185 |
then : |
| 10186 |
printf "%s\n" "#define HAVE_BROTLI_ENCODE_H 1" >>confdefs.h |
| 10187 |
BROTLI_ENCODE_NAME="brotlienc" |
| 10188 |
fi |
| 10189 |
|
| 10190 |
done |
| 10191 |
|
| 10192 |
fi |
| 10193 |
|
| 10194 |
|
| 10195 |
|
| 10196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderCreateInstance in -lbrotlidec" >&5 |
| 10197 |
printf %s "checking for BrotliDecoderCreateInstance in -lbrotlidec... " >&6; } |
| 10198 |
if test ${ac_cv_lib_brotlidec_BrotliDecoderCreateInstance+y} |
| 10199 |
then : |
| 10200 |
printf %s "(cached) " >&6 |
| 10201 |
else $as_nop |
| 10202 |
ac_check_lib_save_LIBS=$LIBS |
| 10203 |
LIBS="-lbrotlidec -lbrotlicommon $LIBS" |
| 10204 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10205 |
/* end confdefs.h. */ |
| 10206 |
|
| 10207 |
/* Override any GCC internal prototype to avoid an error. |
| 10208 |
Use char because int might match the return type of a GCC |
| 10209 |
builtin and then its argument prototype would still apply. */ |
| 10210 |
char BrotliDecoderCreateInstance (); |
| 10211 |
int |
| 10212 |
main (void) |
| 10213 |
{ |
| 10214 |
return BrotliDecoderCreateInstance (); |
| 10215 |
; |
| 10216 |
return 0; |
| 10217 |
} |
| 10218 |
_ACEOF |
| 10219 |
if ac_fn_c_try_link "$LINENO" |
| 10220 |
then : |
| 10221 |
ac_cv_lib_brotlidec_BrotliDecoderCreateInstance=yes |
| 10222 |
else $as_nop |
| 10223 |
ac_cv_lib_brotlidec_BrotliDecoderCreateInstance=no |
| 10224 |
fi |
| 10225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10226 |
conftest$ac_exeext conftest.$ac_ext |
| 10227 |
LIBS=$ac_check_lib_save_LIBS |
| 10228 |
fi |
| 10229 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderCreateInstance" >&5 |
| 10230 |
printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderCreateInstance" >&6; } |
| 10231 |
if test "x$ac_cv_lib_brotlidec_BrotliDecoderCreateInstance" = xyes |
| 10232 |
then : |
| 10233 |
|
| 10234 |
for ac_header in brotli/decode.h |
| 10235 |
do : |
| 10236 |
ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default" |
| 10237 |
if test "x$ac_cv_header_brotli_decode_h" = xyes |
| 10238 |
then : |
| 10239 |
printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h |
| 10240 |
BROTLI_DECODE_NAME="brotlidec" |
| 10241 |
fi |
| 10242 |
|
| 10243 |
done |
| 10244 |
|
| 10245 |
fi |
| 10246 |
|
| 10247 |
|
| 10248 |
if test x"$BROTLI_COMMON_NAME" = x"" || test x"$BROTLI_ENCODE_NAME" = x"" || test x"$BROTLI_DECODE_NAME" = x"" ; then |
| 10249 |
BROTLI_COMMON_NAME="" |
| 10250 |
BROTLI_ENCODE_NAME="" |
| 10251 |
BROTLI_DECODE_NAME="" |
| 10252 |
else |
| 10253 |
SHARE_BROTLI=1 |
| 10254 |
fi |
| 10255 |
else |
| 10256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10257 |
printf "%s\n" "yes" >&6; } |
| 10258 |
SHARE_BROTLI=0 |
| 10259 |
BROTLIDIR=$srcdir/brotli |
| 10260 |
if test x"$GCC" = x"yes"; then |
| 10261 |
BROTLICFLAGS="-Wno-write-strings" |
| 10262 |
fi |
| 10263 |
fi |
| 10264 |
if test -z "$SHARE_BROTLI"; then |
| 10265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I did not find a copy of brotli on your system." >&5 |
| 10266 |
printf "%s\n" "$as_me: WARNING: I did not find a copy of brotli on your system." >&2;} |
| 10267 |
fi |
| 10268 |
|
| 10269 |
|
| 10270 |
|
| 10271 |
|
| 10272 |
|
| 10273 |
|
| 10274 |
|
| 10275 |
|
| 10276 |
|
| 10277 |
WHICHLCMS= |
| 10278 |
|
| 10279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local lcms2mt library source" >&5 |
| 10280 |
printf %s "checking for local lcms2mt library source... " >&6; } |
| 10281 |
LCMS2DIR=src |
| 10282 |
LCMS2MTDIR=src |
| 10283 |
|
| 10284 |
if test x"$enable_auxtools_only" = x"yes" ; then |
| 10285 |
SHARELCMS=0 |
| 10286 |
LCMS2DIR= |
| 10287 |
LCMS2MTDIR= |
| 10288 |
else |
| 10289 |
# First check for Artifex version |
| 10290 |
LCMS2MTSRC=$srcdir/lcms2mt |
| 10291 |
if test -f $LCMS2MTSRC/include/lcms2mt.h; then |
| 10292 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10293 |
printf "%s\n" "yes" >&6; } |
| 10294 |
SHARELCMS=0 |
| 10295 |
WHICHLCMS=lcms2mt |
| 10296 |
LCMS2MTDIR=$LCMS2MTSRC |
| 10297 |
else |
| 10298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10299 |
printf "%s\n" "no" >&6; } |
| 10300 |
# Now check for local lcms2 (non-Artifex) |
| 10301 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local lcms2 library source" >&5 |
| 10302 |
printf %s "checking for local lcms2 library source... " >&6; } |
| 10303 |
LCMS2SRC=$srcdir/lcms2 |
| 10304 |
if test -f $LCMS2SRC/include/lcms2.h; then |
| 10305 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10306 |
printf "%s\n" "yes" >&6; } |
| 10307 |
SHARELCMS=0 |
| 10308 |
WHICHLCMS=lcms2 |
| 10309 |
LCMS2DIR=$LCMS2SRC |
| 10310 |
else |
| 10311 |
# See if we have system library of lcms2 |
| 10312 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10313 |
printf "%s\n" "no" >&6; } |
| 10314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system lcms2 library" >&5 |
| 10315 |
printf %s "checking for system lcms2 library... " >&6; } |
| 10316 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _cmsCreateMutex in -llcms2" >&5 |
| 10317 |
printf %s "checking for _cmsCreateMutex in -llcms2... " >&6; } |
| 10318 |
if test ${ac_cv_lib_lcms2__cmsCreateMutex+y} |
| 10319 |
then : |
| 10320 |
printf %s "(cached) " >&6 |
| 10321 |
else $as_nop |
| 10322 |
ac_check_lib_save_LIBS=$LIBS |
| 10323 |
LIBS="-llcms2 $LIBS" |
| 10324 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10325 |
/* end confdefs.h. */ |
| 10326 |
|
| 10327 |
/* Override any GCC internal prototype to avoid an error. |
| 10328 |
Use char because int might match the return type of a GCC |
| 10329 |
builtin and then its argument prototype would still apply. */ |
| 10330 |
char _cmsCreateMutex (); |
| 10331 |
int |
| 10332 |
main (void) |
| 10333 |
{ |
| 10334 |
return _cmsCreateMutex (); |
| 10335 |
; |
| 10336 |
return 0; |
| 10337 |
} |
| 10338 |
_ACEOF |
| 10339 |
if ac_fn_c_try_link "$LINENO" |
| 10340 |
then : |
| 10341 |
ac_cv_lib_lcms2__cmsCreateMutex=yes |
| 10342 |
else $as_nop |
| 10343 |
ac_cv_lib_lcms2__cmsCreateMutex=no |
| 10344 |
fi |
| 10345 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10346 |
conftest$ac_exeext conftest.$ac_ext |
| 10347 |
LIBS=$ac_check_lib_save_LIBS |
| 10348 |
fi |
| 10349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2__cmsCreateMutex" >&5 |
| 10350 |
printf "%s\n" "$ac_cv_lib_lcms2__cmsCreateMutex" >&6; } |
| 10351 |
if test "x$ac_cv_lib_lcms2__cmsCreateMutex" = xyes |
| 10352 |
then : |
| 10353 |
|
| 10354 |
for ac_header in lcms2.h |
| 10355 |
do : |
| 10356 |
ac_fn_c_check_header_compile "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" |
| 10357 |
if test "x$ac_cv_header_lcms2_h" = xyes |
| 10358 |
then : |
| 10359 |
printf "%s\n" "#define HAVE_LCMS2_H 1" >>confdefs.h |
| 10360 |
SHARELCMS=1;WHICHLCMS=lcms2 |
| 10361 |
fi |
| 10362 |
|
| 10363 |
done |
| 10364 |
|
| 10365 |
fi |
| 10366 |
|
| 10367 |
if test x$WHICHLCMS = x; then |
| 10368 |
as_fn_error $? "lcms2 not found, or too old" "$LINENO" 5 |
| 10369 |
fi |
| 10370 |
fi |
| 10371 |
fi |
| 10372 |
fi |
| 10373 |
|
| 10374 |
|
| 10375 |
|
| 10376 |
|
| 10377 |
|
| 10378 |
|
| 10379 |
|
| 10380 |
# Check whether --with-libtiff was given. |
| 10381 |
if test ${with_libtiff+y} |
| 10382 |
then : |
| 10383 |
withval=$with_libtiff; with_libtiff=no |
| 10384 |
fi |
| 10385 |
|
| 10386 |
|
| 10387 |
|
| 10388 |
# Check whether --with-system-libtiff was given. |
| 10389 |
if test ${with_system_libtiff+y} |
| 10390 |
then : |
| 10391 |
withval=$with_system_libtiff; |
| 10392 |
else $as_nop |
| 10393 |
with_system_libtiff=check |
| 10394 |
fi |
| 10395 |
|
| 10396 |
|
| 10397 |
if test x"$with_libtiff" = x"no" ; then |
| 10398 |
with_system_libtiff=none |
| 10399 |
fi |
| 10400 |
|
| 10401 |
TIFFDEVS='' |
| 10402 |
FAX_DEVS='' |
| 10403 |
XPSWRITEDEVICE='' |
| 10404 |
|
| 10405 |
|
| 10406 |
LIBTIFFDIR='src' |
| 10407 |
LIBTIFFCONFDIR='src' |
| 10408 |
TIFFCFLAGS='' |
| 10409 |
|
| 10410 |
TIFFDEVS_ALL='tiffs tiff12nc tiff24nc tiff48nc tiff32nc tiff64nc tiffcrle tifflzw tiffpack tiffgray tiffsep tiffsep1 tiffscaled tiffscaled4 tiffscaled8 tiffscaled24 tiffscaled32' |
| 10411 |
FAX_DEVS_ALL='cfax dfaxlow dfaxhigh fax faxg3 faxg32d faxg4 tiffg3 tiffg32d tiffg4 tfax' |
| 10412 |
|
| 10413 |
case "x$with_system_libtiff" in |
| 10414 |
xcheck) |
| 10415 |
if test -d $srcdir/tiff; then |
| 10416 |
LIBTIFFDIR=$srcdir/tiff |
| 10417 |
LIBTIFFCONFDIR=tiff-config |
| 10418 |
HAVE_LOCAL_LIBTIFF=1 |
| 10419 |
SHARE_LIBTIFF=0 |
| 10420 |
ENABLETIFF="\$(D_)TIFF_INCLUDED\$(_D)" |
| 10421 |
else |
| 10422 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard |
| 10423 |
# autoconf macro and b) requires pkg-config on the system, which is |
| 10424 |
# NOT standard on ANY OS, including Linux! |
| 10425 |
if test "x$PKGCONFIG" != x; then |
| 10426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff with pkg-config" >&5 |
| 10427 |
printf %s "checking for libtiff with pkg-config... " >&6; } |
| 10428 |
if $PKGCONFIG --exists libtiff-4; then |
| 10429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10430 |
printf "%s\n" "yes" >&6; } |
| 10431 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" |
| 10432 |
LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" |
| 10433 |
HAVE_SYSTEM_LIBTIFF=1 |
| 10434 |
fi |
| 10435 |
fi |
| 10436 |
if test "x$HAVE_SYSTEM_LIBTIFF" = "x1"; then |
| 10437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| 10438 |
printf %s "checking for TIFFOpen in -ltiff... " >&6; } |
| 10439 |
if test ${ac_cv_lib_tiff_TIFFOpen+y} |
| 10440 |
then : |
| 10441 |
printf %s "(cached) " >&6 |
| 10442 |
else $as_nop |
| 10443 |
ac_check_lib_save_LIBS=$LIBS |
| 10444 |
LIBS="-ltiff -ljpeg $LIBS" |
| 10445 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10446 |
/* end confdefs.h. */ |
| 10447 |
|
| 10448 |
/* Override any GCC internal prototype to avoid an error. |
| 10449 |
Use char because int might match the return type of a GCC |
| 10450 |
builtin and then its argument prototype would still apply. */ |
| 10451 |
char TIFFOpen (); |
| 10452 |
int |
| 10453 |
main (void) |
| 10454 |
{ |
| 10455 |
return TIFFOpen (); |
| 10456 |
; |
| 10457 |
return 0; |
| 10458 |
} |
| 10459 |
_ACEOF |
| 10460 |
if ac_fn_c_try_link "$LINENO" |
| 10461 |
then : |
| 10462 |
ac_cv_lib_tiff_TIFFOpen=yes |
| 10463 |
else $as_nop |
| 10464 |
ac_cv_lib_tiff_TIFFOpen=no |
| 10465 |
fi |
| 10466 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10467 |
conftest$ac_exeext conftest.$ac_ext |
| 10468 |
LIBS=$ac_check_lib_save_LIBS |
| 10469 |
fi |
| 10470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
| 10471 |
printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| 10472 |
if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes |
| 10473 |
then : |
| 10474 |
for ac_header in tiff.h |
| 10475 |
do : |
| 10476 |
ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| 10477 |
if test "x$ac_cv_header_tiff_h" = xyes |
| 10478 |
then : |
| 10479 |
printf "%s\n" "#define HAVE_TIFF_H 1" >>confdefs.h |
| 10480 |
HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1 |
| 10481 |
fi |
| 10482 |
|
| 10483 |
done |
| 10484 |
fi |
| 10485 |
|
| 10486 |
fi |
| 10487 |
fi |
| 10488 |
if test "x$HAVE_LOCAL_LIBTIFF" = x && test "x$HAVE_SYSTEM_LIBTIFF" = x; then |
| 10489 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find a copy of libtiff on your system. Disabling tiff and xps output devices." >&5 |
| 10490 |
printf "%s\n" "$as_me: Could not find a copy of libtiff on your system. Disabling tiff and xps output devices." >&6;} |
| 10491 |
else |
| 10492 |
TIFFDEVS="$TIFFDEVS_ALL" |
| 10493 |
FAX_DEVS="$FAX_DEVS_ALL" |
| 10494 |
XPSWRITEDEVICE='xpswrite' |
| 10495 |
ENABLETIFF="\$(D_)TIFF_INCLUDED\$(_D)" |
| 10496 |
fi |
| 10497 |
;; |
| 10498 |
xyes) |
| 10499 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard |
| 10500 |
# autoconf macro and b) requires pkg-config on the system, which is |
| 10501 |
# NOT standard on ANY OS, including Linux! |
| 10502 |
if test "x$PKGCONFIG" != x; then |
| 10503 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff with pkg-config" >&5 |
| 10504 |
printf %s "checking for libtiff with pkg-config... " >&6; } |
| 10505 |
if $PKGCONFIG --exists libtiff-4; then |
| 10506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10507 |
printf "%s\n" "yes" >&6; } |
| 10508 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" |
| 10509 |
LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" |
| 10510 |
HAVE_SYSTEM_LIBTIFF=1 |
| 10511 |
fi |
| 10512 |
fi |
| 10513 |
if test -z "$HAVE_SYSTEM_LIBTIFF"; then |
| 10514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| 10515 |
printf %s "checking for TIFFOpen in -ltiff... " >&6; } |
| 10516 |
if test ${ac_cv_lib_tiff_TIFFOpen+y} |
| 10517 |
then : |
| 10518 |
printf %s "(cached) " >&6 |
| 10519 |
else $as_nop |
| 10520 |
ac_check_lib_save_LIBS=$LIBS |
| 10521 |
LIBS="-ltiff -ljpeg $LIBS" |
| 10522 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10523 |
/* end confdefs.h. */ |
| 10524 |
|
| 10525 |
/* Override any GCC internal prototype to avoid an error. |
| 10526 |
Use char because int might match the return type of a GCC |
| 10527 |
builtin and then its argument prototype would still apply. */ |
| 10528 |
char TIFFOpen (); |
| 10529 |
int |
| 10530 |
main (void) |
| 10531 |
{ |
| 10532 |
return TIFFOpen (); |
| 10533 |
; |
| 10534 |
return 0; |
| 10535 |
} |
| 10536 |
_ACEOF |
| 10537 |
if ac_fn_c_try_link "$LINENO" |
| 10538 |
then : |
| 10539 |
ac_cv_lib_tiff_TIFFOpen=yes |
| 10540 |
else $as_nop |
| 10541 |
ac_cv_lib_tiff_TIFFOpen=no |
| 10542 |
fi |
| 10543 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10544 |
conftest$ac_exeext conftest.$ac_ext |
| 10545 |
LIBS=$ac_check_lib_save_LIBS |
| 10546 |
fi |
| 10547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
| 10548 |
printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| 10549 |
if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes |
| 10550 |
then : |
| 10551 |
for ac_header in tiff.h |
| 10552 |
do : |
| 10553 |
ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| 10554 |
if test "x$ac_cv_header_tiff_h" = xyes |
| 10555 |
then : |
| 10556 |
printf "%s\n" "#define HAVE_TIFF_H 1" >>confdefs.h |
| 10557 |
HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1 |
| 10558 |
fi |
| 10559 |
|
| 10560 |
done |
| 10561 |
fi |
| 10562 |
|
| 10563 |
fi |
| 10564 |
if test "x$HAVE_SYSTEM_LIBTIFF" != x; then |
| 10565 |
SHARE_LIBTIFF=1 |
| 10566 |
TIFFDEVS="$TIFFDEVS_ALL" |
| 10567 |
FAX_DEVS="$FAX_DEVS_ALL" |
| 10568 |
XPSWRITEDEVICE='xpswrite' |
| 10569 |
ENABLETIFF="\$(D_)TIFF_INCLUDED\$(_D)" |
| 10570 |
else |
| 10571 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find a copy of libtiff on your system. Disabling tiff and xps output devices." >&5 |
| 10572 |
printf "%s\n" "$as_me: Could not find a copy of libtiff on your system. Disabling tiff and xps output devices." >&6;} |
| 10573 |
fi |
| 10574 |
;; |
| 10575 |
xno) |
| 10576 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local libtiff source" >&5 |
| 10577 |
printf %s "checking for local libtiff source... " >&6; } |
| 10578 |
if test -d $srcdir/tiff; then |
| 10579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10580 |
printf "%s\n" "yes" >&6; } |
| 10581 |
LIBTIFFDIR=$srcdir/tiff |
| 10582 |
LIBTIFFCONFDIR=tiff-config |
| 10583 |
SHARE_LIBTIFF=0 |
| 10584 |
TIFFDEVS="$TIFFDEVS_ALL" |
| 10585 |
FAX_DEVS="$FAX_DEVS_ALL" |
| 10586 |
XPSWRITEDEVICE='xpswrite' |
| 10587 |
ENABLETIFF="\$(D_)TIFF_INCLUDED\$(_D)" |
| 10588 |
else |
| 10589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10590 |
printf "%s\n" "no" >&6; } |
| 10591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find local copy of libtiff. Disabling tiff and xps output devices." >&5 |
| 10592 |
printf "%s\n" "$as_me: Could not find local copy of libtiff. Disabling tiff and xps output devices." >&6;} |
| 10593 |
fi |
| 10594 |
;; |
| 10595 |
xnone) |
| 10596 |
;; |
| 10597 |
esac |
| 10598 |
|
| 10599 |
# Skip this check for the recursive configure call. |
| 10600 |
# Not relevant for AUX tools. |
| 10601 |
if test x"$enable_auxtools_only" != x"yes" ; then |
| 10602 |
if test x"$ENABLETIFF" != x"" && test x"$SHARE_LIBTIFF" != x"$SHARE_LIBJPEG" ; then |
| 10603 |
as_fn_error $? "Mixing local libtiff with shared libjpeg not supported" "$LINENO" 5 |
| 10604 |
fi |
| 10605 |
fi |
| 10606 |
|
| 10607 |
CGLAGS_STORE=$CFLAGS |
| 10608 |
CFLAGS=-Wno-misleading-indentation |
| 10609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10610 |
/* end confdefs.h. */ |
| 10611 |
|
| 10612 |
int |
| 10613 |
main (void) |
| 10614 |
{ |
| 10615 |
return 0; |
| 10616 |
; |
| 10617 |
return 0; |
| 10618 |
} |
| 10619 |
_ACEOF |
| 10620 |
if ac_fn_c_try_compile "$LINENO" |
| 10621 |
then : |
| 10622 |
CFLAGS_NMI="-Wno-misleading-indentation" |
| 10623 |
else $as_nop |
| 10624 |
CFLAGS_NMI="" |
| 10625 |
fi |
| 10626 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10627 |
|
| 10628 |
CFLAGS=-Wno-undef |
| 10629 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10630 |
/* end confdefs.h. */ |
| 10631 |
|
| 10632 |
int |
| 10633 |
main (void) |
| 10634 |
{ |
| 10635 |
return 0; |
| 10636 |
; |
| 10637 |
return 0; |
| 10638 |
} |
| 10639 |
_ACEOF |
| 10640 |
if ac_fn_c_try_compile "$LINENO" |
| 10641 |
then : |
| 10642 |
CFLAGS_NUD="-Wno-undef" |
| 10643 |
else $as_nop |
| 10644 |
CFLAGS_NUD="" |
| 10645 |
fi |
| 10646 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10647 |
|
| 10648 |
CFLAGS=$CGLAGS_STORE |
| 10649 |
|
| 10650 |
if test x"$SHARE_LIBTIFF" = x"0" ; then |
| 10651 |
echo "Running libtiff configure script..." |
| 10652 |
olddir=`pwd` |
| 10653 |
if ! test -d "$LIBTIFFCONFDIR" ; then |
| 10654 |
mkdir "$LIBTIFFCONFDIR" |
| 10655 |
fi |
| 10656 |
cd "$LIBTIFFCONFDIR" && "$absolute_source_path/$LIBTIFFDIR/configure" $GS_TIFF_CONFIGURE_OPTS --disable-sphinx --disable-pixarlog --disable-lerc --disable-jbig --disable-lzma --disable-zstd --disable-webp --disable-libdeflate $SUBCONFIG_OPTS |
| 10657 |
status=$? |
| 10658 |
if test $status -ne 0 ; then |
| 10659 |
as_fn_error $status "libtiff configure script failed" "$LINENO" 5 |
| 10660 |
fi |
| 10661 |
cd "$olddir" |
| 10662 |
|
| 10663 |
if test x"$GCC" = x"yes"; then |
| 10664 |
TIFFCFLAGS="-Wno-write-strings $CFLAGS_NMI $CFLAGS_NUD -DJPEG_LIB_MK1_OR_12BIT=0" |
| 10665 |
fi |
| 10666 |
# if we're building with our own libjpeg, or we have another libjpeg available, allow jpeg compression in TIFF |
| 10667 |
if test x"$SHARE_LIBJPEG" = x"1" ; then |
| 10668 |
TIFFCFLAGS="-DJPEG_SUPPORT -DOJPEG_SUPPORT -DJPEG_LIB_MK1_OR_12BIT=0 $TIFFCFLAGS" |
| 10669 |
fi |
| 10670 |
|
| 10671 |
echo |
| 10672 |
echo "Continuing with Ghostscript configuration..." |
| 10673 |
fi |
| 10674 |
|
| 10675 |
|
| 10676 |
|
| 10677 |
|
| 10678 |
|
| 10679 |
|
| 10680 |
|
| 10681 |
|
| 10682 |
SHARE_EXPAT=0 |
| 10683 |
EXPATDIR=src |
| 10684 |
EXPAT_CFLAGS= |
| 10685 |
EXPAT_LIBS= |
| 10686 |
|
| 10687 |
if test x"$with_xps" != x"no" -a x"$enable_auxtools_only" != x"yes" ; then |
| 10688 |
if test -f $srcdir/xps/xps.mak; then |
| 10689 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local expat library source" >&5 |
| 10690 |
printf %s "checking for local expat library source... " >&6; } |
| 10691 |
if test -f $srcdir/expat/lib/expat.h ; then |
| 10692 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10693 |
printf "%s\n" "yes" >&6; } |
| 10694 |
SHARE_EXPAT=0 |
| 10695 |
EXPATDIR=$srcdir/expat |
| 10696 |
EXPAT_CFLAGS="-DHAVE_MEMMOVE" |
| 10697 |
if test x"$BIGENDIAN" != x"0"; then |
| 10698 |
EXPAT_CFLAGS="$EXPAT_CFLAGS -DBYTEORDER=4321" |
| 10699 |
else |
| 10700 |
EXPAT_CFLAGS="$EXPAT_CFLAGS -DBYTEORDER=1234" |
| 10701 |
fi |
| 10702 |
else |
| 10703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreateNS in -lexpat" >&5 |
| 10704 |
printf %s "checking for XML_ParserCreateNS in -lexpat... " >&6; } |
| 10705 |
if test ${ac_cv_lib_expat_XML_ParserCreateNS+y} |
| 10706 |
then : |
| 10707 |
printf %s "(cached) " >&6 |
| 10708 |
else $as_nop |
| 10709 |
ac_check_lib_save_LIBS=$LIBS |
| 10710 |
LIBS="-lexpat $LIBS" |
| 10711 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10712 |
/* end confdefs.h. */ |
| 10713 |
|
| 10714 |
/* Override any GCC internal prototype to avoid an error. |
| 10715 |
Use char because int might match the return type of a GCC |
| 10716 |
builtin and then its argument prototype would still apply. */ |
| 10717 |
char XML_ParserCreateNS (); |
| 10718 |
int |
| 10719 |
main (void) |
| 10720 |
{ |
| 10721 |
return XML_ParserCreateNS (); |
| 10722 |
; |
| 10723 |
return 0; |
| 10724 |
} |
| 10725 |
_ACEOF |
| 10726 |
if ac_fn_c_try_link "$LINENO" |
| 10727 |
then : |
| 10728 |
ac_cv_lib_expat_XML_ParserCreateNS=yes |
| 10729 |
else $as_nop |
| 10730 |
ac_cv_lib_expat_XML_ParserCreateNS=no |
| 10731 |
fi |
| 10732 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10733 |
conftest$ac_exeext conftest.$ac_ext |
| 10734 |
LIBS=$ac_check_lib_save_LIBS |
| 10735 |
fi |
| 10736 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreateNS" >&5 |
| 10737 |
printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreateNS" >&6; } |
| 10738 |
if test "x$ac_cv_lib_expat_XML_ParserCreateNS" = xyes |
| 10739 |
then : |
| 10740 |
|
| 10741 |
ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" |
| 10742 |
if test "x$ac_cv_header_expat_h" = xyes |
| 10743 |
then : |
| 10744 |
SHARE_EXPAT=1 |
| 10745 |
fi |
| 10746 |
|
| 10747 |
|
| 10748 |
else $as_nop |
| 10749 |
|
| 10750 |
as_fn_error $? "expat lib not found" "$LINENO" 5 |
| 10751 |
|
| 10752 |
fi |
| 10753 |
|
| 10754 |
if test $SHARE_EXPAT = 1; then |
| 10755 |
if test "x$PKGCONFIG" != x; then |
| 10756 |
if $PKGCONFIG --exists expat; then |
| 10757 |
EXPAT_LIBS="`$PKGCONFIG --libs expat`" |
| 10758 |
CFLAGS="$CFLAGS `$PKGCONFIG --cflags expat`" |
| 10759 |
fi |
| 10760 |
fi |
| 10761 |
if test x"$XPS_LDFLAGS" = x ; then |
| 10762 |
EXPAT_LIBS="-lexpat" |
| 10763 |
fi |
| 10764 |
fi |
| 10765 |
fi |
| 10766 |
fi |
| 10767 |
fi |
| 10768 |
|
| 10769 |
|
| 10770 |
|
| 10771 |
|
| 10772 |
|
| 10773 |
|
| 10774 |
# Check whether --enable-cups was given. |
| 10775 |
if test ${enable_cups+y} |
| 10776 |
then : |
| 10777 |
enableval=$enable_cups; |
| 10778 |
fi |
| 10779 |
|
| 10780 |
|
| 10781 |
|
| 10782 |
# Check whether --with-pdftoraster was given. |
| 10783 |
if test ${with_pdftoraster+y} |
| 10784 |
then : |
| 10785 |
withval=$with_pdftoraster; |
| 10786 |
fi |
| 10787 |
|
| 10788 |
|
| 10789 |
|
| 10790 |
# Check whether --with-local-cups was given. |
| 10791 |
if test ${with_local_cups+y} |
| 10792 |
then : |
| 10793 |
withval=$with_local_cups; with_local_cups=yes |
| 10794 |
else $as_nop |
| 10795 |
with_local_cups=no |
| 10796 |
fi |
| 10797 |
|
| 10798 |
|
| 10799 |
|
| 10800 |
# Check whether --with-cups-serverbin was given. |
| 10801 |
if test ${with_cups_serverbin+y} |
| 10802 |
then : |
| 10803 |
withval=$with_cups_serverbin; CUPS_SERVERBIN="$withval" |
| 10804 |
else $as_nop |
| 10805 |
CUPS_SERVERBIN="" |
| 10806 |
fi |
| 10807 |
|
| 10808 |
|
| 10809 |
|
| 10810 |
# Check whether --with-cups-serverroot was given. |
| 10811 |
if test ${with_cups_serverroot+y} |
| 10812 |
then : |
| 10813 |
withval=$with_cups_serverroot; CUPS_SERVERROOT="$withval" |
| 10814 |
else $as_nop |
| 10815 |
CUPS_SERVERROOT="" |
| 10816 |
fi |
| 10817 |
|
| 10818 |
|
| 10819 |
|
| 10820 |
|
| 10821 |
# Check whether --with-cups-datadir was given. |
| 10822 |
if test ${with_cups_datadir+y} |
| 10823 |
then : |
| 10824 |
withval=$with_cups_datadir; CUPS_DATADIR="$withval" |
| 10825 |
else $as_nop |
| 10826 |
CUPS_DATADIR="" |
| 10827 |
fi |
| 10828 |
|
| 10829 |
|
| 10830 |
CUPSDEV="" |
| 10831 |
CUPSINCLUDE="" |
| 10832 |
CUPSCFLAGS="" |
| 10833 |
CUPSLIBS="" |
| 10834 |
CUPSLIBDIRS="" |
| 10835 |
CUPSCONFIG="${CUPSCONFIG:=}" |
| 10836 |
CUPSSERVERBIN="" |
| 10837 |
CUPSSERVERROOT="" |
| 10838 |
CUPSDATA="" |
| 10839 |
CUPSVERSION="0" |
| 10840 |
CUPSPDFTORASTER="0" |
| 10841 |
CUPS_DIR="" |
| 10842 |
LIB_CUPS_DIR="src" |
| 10843 |
|
| 10844 |
cups_hard_fail=0 |
| 10845 |
|
| 10846 |
SHARELCUPS=1 |
| 10847 |
SHARELCUPSI=1 |
| 10848 |
|
| 10849 |
case $host in |
| 10850 |
*-mingw*|*-msys*|*-cygwin*) |
| 10851 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling cups" >&5 |
| 10852 |
printf "%s\n" "$as_me: WARNING: disabling cups" >&2;} |
| 10853 |
enable_cups=no |
| 10854 |
;; |
| 10855 |
*) |
| 10856 |
;; |
| 10857 |
esac |
| 10858 |
|
| 10859 |
if ( test -f $srcdir/cups/gdevcups.c ); then |
| 10860 |
CUPS_DIR="$srcdir/cups" |
| 10861 |
# If the user explicitly enabled cups, hard fail if not found |
| 10862 |
if test x"$enable_cups" = x"yes"; then |
| 10863 |
cups_hard_fail=1 |
| 10864 |
fi |
| 10865 |
if test x$enable_cups != xno; then |
| 10866 |
if test x$with_local_cups != xyes; then |
| 10867 |
if test x"$CUPSCONFIG" = x""; then |
| 10868 |
if test -n "$ac_tool_prefix"; then |
| 10869 |
# Extract the first word of "${ac_tool_prefix}cups-config", so it can be a program name with args. |
| 10870 |
set dummy ${ac_tool_prefix}cups-config; ac_word=$2 |
| 10871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10872 |
printf %s "checking for $ac_word... " >&6; } |
| 10873 |
if test ${ac_cv_path_CUPSCONFIG+y} |
| 10874 |
then : |
| 10875 |
printf %s "(cached) " >&6 |
| 10876 |
else $as_nop |
| 10877 |
case $CUPSCONFIG in |
| 10878 |
[\\/]* | ?:[\\/]*) |
| 10879 |
ac_cv_path_CUPSCONFIG="$CUPSCONFIG" # Let the user override the test with a path. |
| 10880 |
;; |
| 10881 |
*) |
| 10882 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10883 |
for as_dir in $PATH |
| 10884 |
do |
| 10885 |
IFS=$as_save_IFS |
| 10886 |
case $as_dir in #((( |
| 10887 |
'') as_dir=./ ;; |
| 10888 |
*/) ;; |
| 10889 |
*) as_dir=$as_dir/ ;; |
| 10890 |
esac |
| 10891 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10892 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10893 |
ac_cv_path_CUPSCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 10894 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10895 |
break 2 |
| 10896 |
fi |
| 10897 |
done |
| 10898 |
done |
| 10899 |
IFS=$as_save_IFS |
| 10900 |
|
| 10901 |
;; |
| 10902 |
esac |
| 10903 |
fi |
| 10904 |
CUPSCONFIG=$ac_cv_path_CUPSCONFIG |
| 10905 |
if test -n "$CUPSCONFIG"; then |
| 10906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPSCONFIG" >&5 |
| 10907 |
printf "%s\n" "$CUPSCONFIG" >&6; } |
| 10908 |
else |
| 10909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10910 |
printf "%s\n" "no" >&6; } |
| 10911 |
fi |
| 10912 |
|
| 10913 |
|
| 10914 |
fi |
| 10915 |
if test -z "$ac_cv_path_CUPSCONFIG"; then |
| 10916 |
ac_pt_CUPSCONFIG=$CUPSCONFIG |
| 10917 |
# Extract the first word of "cups-config", so it can be a program name with args. |
| 10918 |
set dummy cups-config; ac_word=$2 |
| 10919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10920 |
printf %s "checking for $ac_word... " >&6; } |
| 10921 |
if test ${ac_cv_path_ac_pt_CUPSCONFIG+y} |
| 10922 |
then : |
| 10923 |
printf %s "(cached) " >&6 |
| 10924 |
else $as_nop |
| 10925 |
case $ac_pt_CUPSCONFIG in |
| 10926 |
[\\/]* | ?:[\\/]*) |
| 10927 |
ac_cv_path_ac_pt_CUPSCONFIG="$ac_pt_CUPSCONFIG" # Let the user override the test with a path. |
| 10928 |
;; |
| 10929 |
*) |
| 10930 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10931 |
for as_dir in $PATH |
| 10932 |
do |
| 10933 |
IFS=$as_save_IFS |
| 10934 |
case $as_dir in #((( |
| 10935 |
'') as_dir=./ ;; |
| 10936 |
*/) ;; |
| 10937 |
*) as_dir=$as_dir/ ;; |
| 10938 |
esac |
| 10939 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10940 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10941 |
ac_cv_path_ac_pt_CUPSCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 10942 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10943 |
break 2 |
| 10944 |
fi |
| 10945 |
done |
| 10946 |
done |
| 10947 |
IFS=$as_save_IFS |
| 10948 |
|
| 10949 |
;; |
| 10950 |
esac |
| 10951 |
fi |
| 10952 |
ac_pt_CUPSCONFIG=$ac_cv_path_ac_pt_CUPSCONFIG |
| 10953 |
if test -n "$ac_pt_CUPSCONFIG"; then |
| 10954 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CUPSCONFIG" >&5 |
| 10955 |
printf "%s\n" "$ac_pt_CUPSCONFIG" >&6; } |
| 10956 |
else |
| 10957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10958 |
printf "%s\n" "no" >&6; } |
| 10959 |
fi |
| 10960 |
|
| 10961 |
if test "x$ac_pt_CUPSCONFIG" = x; then |
| 10962 |
CUPSCONFIG="" |
| 10963 |
else |
| 10964 |
case $cross_compiling:$ac_tool_warned in |
| 10965 |
yes:) |
| 10966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10967 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10968 |
ac_tool_warned=yes ;; |
| 10969 |
esac |
| 10970 |
CUPSCONFIG=$ac_pt_CUPSCONFIG |
| 10971 |
fi |
| 10972 |
else |
| 10973 |
CUPSCONFIG="$ac_cv_path_CUPSCONFIG" |
| 10974 |
fi |
| 10975 |
|
| 10976 |
if test x"$build" != x"$host"; then |
| 10977 |
# Extract the first word of "cups-config", so it can be a program name with args. |
| 10978 |
set dummy cups-config; ac_word=$2 |
| 10979 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10980 |
printf %s "checking for $ac_word... " >&6; } |
| 10981 |
if test ${ac_cv_path_BUILD_CUPSCONFIG+y} |
| 10982 |
then : |
| 10983 |
printf %s "(cached) " >&6 |
| 10984 |
else $as_nop |
| 10985 |
case $BUILD_CUPSCONFIG in |
| 10986 |
[\\/]* | ?:[\\/]*) |
| 10987 |
ac_cv_path_BUILD_CUPSCONFIG="$BUILD_CUPSCONFIG" # Let the user override the test with a path. |
| 10988 |
;; |
| 10989 |
*) |
| 10990 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10991 |
for as_dir in $PATH |
| 10992 |
do |
| 10993 |
IFS=$as_save_IFS |
| 10994 |
case $as_dir in #((( |
| 10995 |
'') as_dir=./ ;; |
| 10996 |
*/) ;; |
| 10997 |
*) as_dir=$as_dir/ ;; |
| 10998 |
esac |
| 10999 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11000 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11001 |
ac_cv_path_BUILD_CUPSCONFIG="$as_dir$ac_word$ac_exec_ext" |
| 11002 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11003 |
break 2 |
| 11004 |
fi |
| 11005 |
done |
| 11006 |
done |
| 11007 |
IFS=$as_save_IFS |
| 11008 |
|
| 11009 |
;; |
| 11010 |
esac |
| 11011 |
fi |
| 11012 |
BUILD_CUPSCONFIG=$ac_cv_path_BUILD_CUPSCONFIG |
| 11013 |
if test -n "$BUILD_CUPSCONFIG"; then |
| 11014 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CUPSCONFIG" >&5 |
| 11015 |
printf "%s\n" "$BUILD_CUPSCONFIG" >&6; } |
| 11016 |
else |
| 11017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11018 |
printf "%s\n" "no" >&6; } |
| 11019 |
fi |
| 11020 |
|
| 11021 |
|
| 11022 |
if test x"$BUILD_CUPSCONFIG" = x"$CUPSCONFIG" ; then |
| 11023 |
CUPSCONFIG= |
| 11024 |
fi |
| 11025 |
fi |
| 11026 |
else |
| 11027 |
# We were given a cups-config on the command line, assume the user intends to |
| 11028 |
# include cups, and make not finding a hard fail. |
| 11029 |
cups_hard_fail=1 |
| 11030 |
fi |
| 11031 |
# check for a libcups header |
| 11032 |
ac_fn_c_check_header_compile "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default" |
| 11033 |
if test "x$ac_cv_header_cups_cups_h" = xyes |
| 11034 |
then : |
| 11035 |
|
| 11036 |
else $as_nop |
| 11037 |
CUPSCONFIG="" |
| 11038 |
fi |
| 11039 |
|
| 11040 |
# And check for a libcupsimage header |
| 11041 |
if test "x$CUPSCONFIG" != x; then |
| 11042 |
ac_fn_c_check_header_compile "$LINENO" "cups/raster.h" "ac_cv_header_cups_raster_h" "$ac_includes_default" |
| 11043 |
if test "x$ac_cv_header_cups_raster_h" = xyes |
| 11044 |
then : |
| 11045 |
|
| 11046 |
else $as_nop |
| 11047 |
CUPSCONFIG="" |
| 11048 |
fi |
| 11049 |
|
| 11050 |
fi |
| 11051 |
|
| 11052 |
if test "x$CUPSCONFIG" != x; then |
| 11053 |
CUPSCFLAGS="`$CUPSCONFIG --cflags` $CFLAGS" |
| 11054 |
# CUPSLINK="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --static --image --libs | sed -e '1,$s/-lssl//'` $LIBS" |
| 11055 |
CUPSLINK="`$CUPSCONFIG --ldflags` `$CUPSCONFIG --image --libs`" |
| 11056 |
CUPSAPIVERSION="`$CUPSCONFIG --api-version`" |
| 11057 |
|
| 11058 |
|
| 11059 |
# the makefile wants a list of just the library names |
| 11060 |
for gs_item in $CUPSLINK; do |
| 11061 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/^-l//'` |
| 11062 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
| 11063 |
CUPSLIBS="$CUPSLIBS $gs_stripped_item" |
| 11064 |
fi |
| 11065 |
done |
| 11066 |
|
| 11067 |
|
| 11068 |
for gs_item in $CUPSLINK; do |
| 11069 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/-L//'` |
| 11070 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
| 11071 |
CUPSLIBDIRS="$CUPSLIBDIRS $gs_stripped_item" |
| 11072 |
fi |
| 11073 |
done |
| 11074 |
|
| 11075 |
|
| 11076 |
if test "x$CUPS_SERVERROOT" != "x"; then |
| 11077 |
CUPSSERVERROOT="$CUPS_SERVERROOT" |
| 11078 |
else |
| 11079 |
CUPSSERVERROOT="`$CUPSCONFIG --serverroot`" |
| 11080 |
fi |
| 11081 |
|
| 11082 |
if test "x$CUPS_SERVERBIN" != "x"; then |
| 11083 |
CUPSSERVERBIN="$CUPS_SERVERBIN" |
| 11084 |
else |
| 11085 |
CUPSSERVERBIN="`$CUPSCONFIG --serverbin`" |
| 11086 |
fi |
| 11087 |
|
| 11088 |
if test "x$CUPS_DATADIR" != "x"; then |
| 11089 |
CUPSDATA="$CUPS_DATADIR" |
| 11090 |
else |
| 11091 |
CUPSDATA="`$CUPSCONFIG --datadir`" |
| 11092 |
fi |
| 11093 |
|
| 11094 |
CUPSINCLUDE="include $srcdir/cups/cups.mak" |
| 11095 |
CUPSDEV="cups" |
| 11096 |
|
| 11097 |
# pwgraster support arrived in cups 1.5.x |
| 11098 |
if test "$CUPSAPIVERSION" ">" "1.4" ; then |
| 11099 |
CUPSDEV="$CUPSDEV pwgraster" |
| 11100 |
fi |
| 11101 |
|
| 11102 |
# appleraster support arrived in cups 2.2.2, so with |
| 11103 |
# API version 2.2 we do not necessarily have it, but |
| 11104 |
# 2.3 has it for sure |
| 11105 |
if test "$CUPSAPIVERSION" ">" "2.2" ; then |
| 11106 |
CUPSDEV="$CUPSDEV appleraster urf" |
| 11107 |
fi |
| 11108 |
|
| 11109 |
CUPSVERSION="`$CUPSCONFIG --version`" |
| 11110 |
|
| 11111 |
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" |
| 11112 |
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" |
| 11113 |
if ( test x$with_pdftoraster != xno ); then |
| 11114 |
if test "$CUPSVERSION" ">" "1.2"; then |
| 11115 |
CUPSPDFTORASTER="1" |
| 11116 |
fi |
| 11117 |
fi |
| 11118 |
else |
| 11119 |
if test x"$cups_hard_fail" = x"1" ; then |
| 11120 |
as_fn_error $? "libcups/libcupsimage not found" "$LINENO" 5 |
| 11121 |
fi |
| 11122 |
fi |
| 11123 |
else |
| 11124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: USING LOCAL CUPS SOURCE" >&5 |
| 11125 |
printf "%s\n" "$as_me: WARNING: USING LOCAL CUPS SOURCE" >&2;} |
| 11126 |
SHARELCUPS=0 |
| 11127 |
SHARELCUPSI=0 |
| 11128 |
|
| 11129 |
for ac_func in strlcat |
| 11130 |
do : |
| 11131 |
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" |
| 11132 |
if test "x$ac_cv_func_strlcat" = xyes |
| 11133 |
then : |
| 11134 |
printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h |
| 11135 |
CUPSCFLAGS="$CUPSCFLAGS -DHAVE_STRLCAT=1" |
| 11136 |
fi |
| 11137 |
|
| 11138 |
done |
| 11139 |
|
| 11140 |
for ac_func in strlcpy |
| 11141 |
do : |
| 11142 |
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 11143 |
if test "x$ac_cv_func_strlcpy" = xyes |
| 11144 |
then : |
| 11145 |
printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
| 11146 |
CUPSCFLAGS="$CUPSCFLAGS -DHAVE_STRLCPY=1" |
| 11147 |
fi |
| 11148 |
|
| 11149 |
done |
| 11150 |
|
| 11151 |
for ac_func in snprintf |
| 11152 |
do : |
| 11153 |
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 11154 |
if test "x$ac_cv_func_snprintf" = xyes |
| 11155 |
then : |
| 11156 |
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 11157 |
CUPSCFLAGS="$CUPSCFLAGS -DHAVE_SNPRINTF=1" |
| 11158 |
fi |
| 11159 |
|
| 11160 |
done |
| 11161 |
|
| 11162 |
for ac_func in vsnprintf |
| 11163 |
do : |
| 11164 |
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" |
| 11165 |
if test "x$ac_cv_func_vsnprintf" = xyes |
| 11166 |
then : |
| 11167 |
printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h |
| 11168 |
CUPSCFLAGS="$CUPSCFLAGS -DHAVE_VSNPRINTF=1" |
| 11169 |
fi |
| 11170 |
|
| 11171 |
done |
| 11172 |
LCUPSBUILDTYPE=linux |
| 11173 |
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak" |
| 11174 |
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak" |
| 11175 |
CUPSDEV="cups pwgraster" |
| 11176 |
LIB_CUPS_DIR=$CUPS_DIR |
| 11177 |
fi |
| 11178 |
fi |
| 11179 |
fi |
| 11180 |
|
| 11181 |
#AC_SUBST(CUPSDEV) |
| 11182 |
|
| 11183 |
|
| 11184 |
|
| 11185 |
|
| 11186 |
|
| 11187 |
|
| 11188 |
|
| 11189 |
|
| 11190 |
|
| 11191 |
|
| 11192 |
|
| 11193 |
|
| 11194 |
|
| 11195 |
|
| 11196 |
|
| 11197 |
|
| 11198 |
|
| 11199 |
|
| 11200 |
|
| 11201 |
|
| 11202 |
|
| 11203 |
# Check whether --with-ijs was given. |
| 11204 |
if test ${with_ijs+y} |
| 11205 |
then : |
| 11206 |
withval=$with_ijs; |
| 11207 |
fi |
| 11208 |
|
| 11209 |
|
| 11210 |
case $host in |
| 11211 |
*-mingw*|*-msys*) |
| 11212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling the ijs device" >&5 |
| 11213 |
printf "%s\n" "$as_me: WARNING: disabling the ijs device" >&2;} |
| 11214 |
with_ijs=no |
| 11215 |
;; |
| 11216 |
*) |
| 11217 |
;; |
| 11218 |
esac |
| 11219 |
|
| 11220 |
IJSDIR=src |
| 11221 |
IJSDEVS='' |
| 11222 |
SHAREIJS=0 |
| 11223 |
if test x$with_ijs != xno; then |
| 11224 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local ijs library source" >&5 |
| 11225 |
printf %s "checking for local ijs library source... " >&6; } |
| 11226 |
if test -d $srcdir/ijs; then |
| 11227 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11228 |
printf "%s\n" "yes" >&6; } |
| 11229 |
IJSDIR=$srcdir/ijs |
| 11230 |
IJSDEVS='ijs' |
| 11231 |
else |
| 11232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11233 |
printf "%s\n" "no" >&6; } |
| 11234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ijs_server_init in -lijs" >&5 |
| 11235 |
printf %s "checking for ijs_server_init in -lijs... " >&6; } |
| 11236 |
if test ${ac_cv_lib_ijs_ijs_server_init+y} |
| 11237 |
then : |
| 11238 |
printf %s "(cached) " >&6 |
| 11239 |
else $as_nop |
| 11240 |
ac_check_lib_save_LIBS=$LIBS |
| 11241 |
LIBS="-lijs $LIBS" |
| 11242 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11243 |
/* end confdefs.h. */ |
| 11244 |
|
| 11245 |
/* Override any GCC internal prototype to avoid an error. |
| 11246 |
Use char because int might match the return type of a GCC |
| 11247 |
builtin and then its argument prototype would still apply. */ |
| 11248 |
char ijs_server_init (); |
| 11249 |
int |
| 11250 |
main (void) |
| 11251 |
{ |
| 11252 |
return ijs_server_init (); |
| 11253 |
; |
| 11254 |
return 0; |
| 11255 |
} |
| 11256 |
_ACEOF |
| 11257 |
if ac_fn_c_try_link "$LINENO" |
| 11258 |
then : |
| 11259 |
ac_cv_lib_ijs_ijs_server_init=yes |
| 11260 |
else $as_nop |
| 11261 |
ac_cv_lib_ijs_ijs_server_init=no |
| 11262 |
fi |
| 11263 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11264 |
conftest$ac_exeext conftest.$ac_ext |
| 11265 |
LIBS=$ac_check_lib_save_LIBS |
| 11266 |
fi |
| 11267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ijs_ijs_server_init" >&5 |
| 11268 |
printf "%s\n" "$ac_cv_lib_ijs_ijs_server_init" >&6; } |
| 11269 |
if test "x$ac_cv_lib_ijs_ijs_server_init" = xyes |
| 11270 |
then : |
| 11271 |
|
| 11272 |
for ac_header in ijs/ijs.h |
| 11273 |
do : |
| 11274 |
ac_fn_c_check_header_compile "$LINENO" "ijs/ijs.h" "ac_cv_header_ijs_ijs_h" "$ac_includes_default" |
| 11275 |
if test "x$ac_cv_header_ijs_ijs_h" = xyes |
| 11276 |
then : |
| 11277 |
printf "%s\n" "#define HAVE_IJS_IJS_H 1" >>confdefs.h |
| 11278 |
SHAREIJS=1 |
| 11279 |
fi |
| 11280 |
|
| 11281 |
done |
| 11282 |
|
| 11283 |
fi |
| 11284 |
|
| 11285 |
if test $SHAREIJS -eq 1 ; then |
| 11286 |
IJSLIB=ijs |
| 11287 |
# This is for safety - it prevents our header search path going outside the GS source tree |
| 11288 |
IJSDIR='$(GLOBJDIR)' |
| 11289 |
IJSDEVS='ijs' |
| 11290 |
fi |
| 11291 |
fi |
| 11292 |
fi |
| 11293 |
|
| 11294 |
|
| 11295 |
|
| 11296 |
#AC_SUBST(IJSDEVS) |
| 11297 |
|
| 11298 |
|
| 11299 |
JBIG2_DECODER= |
| 11300 |
JBIG2DIR=src |
| 11301 |
SHARE_JBIG2=0 |
| 11302 |
JBIG2DEVS='' |
| 11303 |
JBIG2_AUTOCONF_CFLAGS= |
| 11304 |
|
| 11305 |
JB2_STDINT_TYPES_IN= |
| 11306 |
JBIG2DEC_REQ=0.19 |
| 11307 |
|
| 11308 |
if test "x$JBIG2_DECODER" = x; then |
| 11309 |
|
| 11310 |
# Check whether --with-jbig2dec was given. |
| 11311 |
if test ${with_jbig2dec+y} |
| 11312 |
then : |
| 11313 |
withval=$with_jbig2dec; |
| 11314 |
fi |
| 11315 |
|
| 11316 |
if test x$with_jbig2dec != xno; then |
| 11317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local jbig2dec library source" >&5 |
| 11318 |
printf %s "checking for local jbig2dec library source... " >&6; } |
| 11319 |
for d in $srcdir/jbig2dec $srcdir/jbig2dec-0.2 $srcdir/jbig2dec-0.3; do |
| 11320 |
test -d "$d" && JBIG2DIR=$d && break |
| 11321 |
done |
| 11322 |
if test "x$JBIG2DIR" != xsrc; then |
| 11323 |
JBIG2_DECODER=jbig2dec |
| 11324 |
if test x$ac_cv_header_stdint_h = xyes ; then |
| 11325 |
JBIG2_AUTOCONF_CFLAGS="-DHAVE_STDINT_H=1" |
| 11326 |
else |
| 11327 |
|
| 11328 |
for include in sys/types.h inttypes.h sys/inttypes.h sys/int_types.h ; do |
| 11329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t in $include" >&5 |
| 11330 |
printf %s "checking for uint32_t in $include... " >&6; } |
| 11331 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11332 |
/* end confdefs.h. */ |
| 11333 |
#include <$include> |
| 11334 |
int |
| 11335 |
main (void) |
| 11336 |
{ |
| 11337 |
uint32_t canary; |
| 11338 |
; |
| 11339 |
return 0; |
| 11340 |
} |
| 11341 |
_ACEOF |
| 11342 |
if ac_fn_c_try_compile "$LINENO" |
| 11343 |
then : |
| 11344 |
|
| 11345 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11346 |
printf "%s\n" "yes" >&6; } |
| 11347 |
stdint_types_in="$include" |
| 11348 |
break; |
| 11349 |
|
| 11350 |
else $as_nop |
| 11351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11352 |
printf "%s\n" "no" >&6; } |
| 11353 |
|
| 11354 |
fi |
| 11355 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11356 |
done |
| 11357 |
|
| 11358 |
case "$stdint_types_in" in |
| 11359 |
"sys/types.h") |
| 11360 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_TYPES_H" |
| 11361 |
;; |
| 11362 |
"inttypes.h") |
| 11363 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_INTTYPES_H" |
| 11364 |
;; |
| 11365 |
"sys/inttypes.h") |
| 11366 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_INTTYPES_H" |
| 11367 |
;; |
| 11368 |
"sys/int_types.h") |
| 11369 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DSTD_INT_USE_SYS_INT_TYPES_H" |
| 11370 |
;; |
| 11371 |
*) |
| 11372 |
as_fn_error $? " |
| 11373 |
Unable to find suitable definitions of the stdint.h types (uint32_t and friends). |
| 11374 |
These are required by jbig2dec. |
| 11375 |
" "$LINENO" 5 |
| 11376 |
esac |
| 11377 |
fi |
| 11378 |
|
| 11379 |
if test "x$BIGENDIAN" != "x0"; then |
| 11380 |
JBIG2_AUTOCONF_CFLAGS="$JBIG2_AUTOCONF_CFLAGS -DWORDS_BIGENDIAN" |
| 11381 |
fi |
| 11382 |
|
| 11383 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JBIG2DIR" >&5 |
| 11384 |
printf "%s\n" "$JBIG2DIR" >&6; } |
| 11385 |
echo "Continuing with Ghostscript configuration..." |
| 11386 |
else |
| 11387 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11388 |
printf "%s\n" "no" >&6; } |
| 11389 |
# We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard |
| 11390 |
# autoconf macro and b) requires pkg-config on the system, which is |
| 11391 |
# NOT standard on ANY OS, including Linux! |
| 11392 |
if test "x$PKGCONFIG" != x; then |
| 11393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jbig2dec $JBIG2DEC_REQ with pkg-config" >&5 |
| 11394 |
printf %s "checking for jbig2dec $JBIG2DEC_REQ with pkg-config... " >&6; } |
| 11395 |
if $PKGCONFIG --atleast-version=$JBIG2DEC_REQ jbig2dec; then |
| 11396 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11397 |
printf "%s\n" "yes" >&6; } |
| 11398 |
JBIG2DEC_CFLAGS="$CFLAGS `$PKGCONFIG --cflags jbig2dec`" |
| 11399 |
JBIG2DEC_LIBS="`$PKGCONFIG --libs jbig2dec`" |
| 11400 |
SHARE_JBIG2=1 |
| 11401 |
else |
| 11402 |
as_fn_error $? "jbig2 decoder not found, or too old" "$LINENO" 5 |
| 11403 |
fi |
| 11404 |
else |
| 11405 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jbig2dec library" >&5 |
| 11406 |
printf %s "checking for jbig2dec library... " >&6; } |
| 11407 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jbig2_page_out in -ljbig2dec" >&5 |
| 11408 |
printf %s "checking for jbig2_page_out in -ljbig2dec... " >&6; } |
| 11409 |
if test ${ac_cv_lib_jbig2dec_jbig2_page_out+y} |
| 11410 |
then : |
| 11411 |
printf %s "(cached) " >&6 |
| 11412 |
else $as_nop |
| 11413 |
ac_check_lib_save_LIBS=$LIBS |
| 11414 |
LIBS="-ljbig2dec $LIBS" |
| 11415 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11416 |
/* end confdefs.h. */ |
| 11417 |
|
| 11418 |
/* Override any GCC internal prototype to avoid an error. |
| 11419 |
Use char because int might match the return type of a GCC |
| 11420 |
builtin and then its argument prototype would still apply. */ |
| 11421 |
char jbig2_page_out (); |
| 11422 |
int |
| 11423 |
main (void) |
| 11424 |
{ |
| 11425 |
return jbig2_page_out (); |
| 11426 |
; |
| 11427 |
return 0; |
| 11428 |
} |
| 11429 |
_ACEOF |
| 11430 |
if ac_fn_c_try_link "$LINENO" |
| 11431 |
then : |
| 11432 |
ac_cv_lib_jbig2dec_jbig2_page_out=yes |
| 11433 |
else $as_nop |
| 11434 |
ac_cv_lib_jbig2dec_jbig2_page_out=no |
| 11435 |
fi |
| 11436 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11437 |
conftest$ac_exeext conftest.$ac_ext |
| 11438 |
LIBS=$ac_check_lib_save_LIBS |
| 11439 |
fi |
| 11440 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig2dec_jbig2_page_out" >&5 |
| 11441 |
printf "%s\n" "$ac_cv_lib_jbig2dec_jbig2_page_out" >&6; } |
| 11442 |
if test "x$ac_cv_lib_jbig2dec_jbig2_page_out" = xyes |
| 11443 |
then : |
| 11444 |
|
| 11445 |
SHARE_JBIG2=1 |
| 11446 |
|
| 11447 |
else $as_nop |
| 11448 |
|
| 11449 |
as_fn_error $? "jbig2 decoder not found, or too old" "$LINENO" 5 |
| 11450 |
|
| 11451 |
fi |
| 11452 |
|
| 11453 |
fi |
| 11454 |
if test x$with_jbig2dec != xno; then |
| 11455 |
JBIG2_DECODER=jbig2dec |
| 11456 |
fi |
| 11457 |
fi |
| 11458 |
fi |
| 11459 |
if test x$with_jbig2dec != xno; then |
| 11460 |
# I *think* jbig2dec handles these being missing gracefully |
| 11461 |
# if test x$ac_cv_header_stdint_h != xyes && test x$ac_cv_header_inttypes_h != xyes; then |
| 11462 |
# AC_MSG_WARN([JBIG2 support requires stdint types which do not seem to be available.]) |
| 11463 |
# else |
| 11464 |
JBIG2DEVS='$(PSD)jbig2.dev' |
| 11465 |
# fi |
| 11466 |
fi |
| 11467 |
fi |
| 11468 |
|
| 11469 |
|
| 11470 |
|
| 11471 |
|
| 11472 |
|
| 11473 |
|
| 11474 |
|
| 11475 |
JPXDIR=src |
| 11476 |
SHARE_JPX=0 |
| 11477 |
JPXDEVS='' |
| 11478 |
JPX_DECODER= |
| 11479 |
JPX_AUTOCONF_CFLAGS= |
| 11480 |
JPX_LRINTF_SUBST= |
| 11481 |
|
| 11482 |
if test "x$ac_cv_header_stdint_h" = "xyes"; then |
| 11483 |
CFLAGS_OPJ_HAVE_STDINT_H="-DOPJ_HAVE_STDINT_H=1" |
| 11484 |
else |
| 11485 |
CFLAGS_OPJ_HAVE_STDINT_H= |
| 11486 |
fi |
| 11487 |
|
| 11488 |
|
| 11489 |
if test "x$ac_cv_header_inttypes_h" = "xyes"; then |
| 11490 |
CFLAGS_OPJ_HAVE_INTTYPES_H="-DOPJ_HAVE_INTTYPES_H=1" |
| 11491 |
else |
| 11492 |
CFLAGS_OPJ_HAVE_INTTYPES_H= |
| 11493 |
fi |
| 11494 |
|
| 11495 |
if test "x$ac_cv_header_malloc_h" = "xyes"; then |
| 11496 |
CFLAGS_OPJ_HAVE_MALLOC_H="-DOPJ_HAVE_MALLOC_H=1" |
| 11497 |
else |
| 11498 |
CFLAGS_OPJ_HAVE_MALLOC_H= |
| 11499 |
fi |
| 11500 |
|
| 11501 |
if test "x$BIGENDIAN" != "x0"; then |
| 11502 |
CFLAGS_OPJ_BIGENDIAN="-DOPJ_BIG_ENDIAN" |
| 11503 |
else |
| 11504 |
CFLAGS_OPJ_BIGENDIAN= |
| 11505 |
fi |
| 11506 |
|
| 11507 |
|
| 11508 |
for ac_func in fseeko |
| 11509 |
do : |
| 11510 |
ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" |
| 11511 |
if test "x$ac_cv_func_fseeko" = xyes |
| 11512 |
then : |
| 11513 |
printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 11514 |
CFLAGS_OPJ_HAVE_FSEEKO="-DOPJ_HAVE_FSEEKO=1" |
| 11515 |
else $as_nop |
| 11516 |
CFLAGS_OPJ_HAVE_STDINT_H= |
| 11517 |
fi |
| 11518 |
|
| 11519 |
done |
| 11520 |
|
| 11521 |
JPX_SSE_CFLAGS="" |
| 11522 |
|
| 11523 |
if test "x$HAVE_SSE2" = "x" ; then |
| 11524 |
if test x"$GCC" = x"yes"; then |
| 11525 |
JPX_SSE_CFLAGS="-U__SSE__" |
| 11526 |
fi |
| 11527 |
fi |
| 11528 |
|
| 11529 |
ac_fn_check_decl "$LINENO" "lrintf" "ac_cv_have_decl_lrintf" "#include <math.h> |
| 11530 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 11531 |
if test "x$ac_cv_have_decl_lrintf" = xyes |
| 11532 |
then : |
| 11533 |
|
| 11534 |
else $as_nop |
| 11535 |
OPJ_LRINTF_SUBST="-D\"lrintf(a)\"=\"((long)(a+0.5))\"" |
| 11536 |
fi |
| 11537 |
|
| 11538 |
# Check whether --enable-openjpeg was given. |
| 11539 |
if test ${enable_openjpeg+y} |
| 11540 |
then : |
| 11541 |
enableval=$enable_openjpeg; |
| 11542 |
fi |
| 11543 |
|
| 11544 |
|
| 11545 |
OPENJPEGDIR=$srcdir/openjpeg |
| 11546 |
|
| 11547 |
if test "x$JPX_DECODER" = "x"; then |
| 11548 |
if test "x$enable_openjpeg" != "xno"; then |
| 11549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local OpenJPEG library source" >&5 |
| 11550 |
printf %s "checking for local OpenJPEG library source... " >&6; } |
| 11551 |
if test -e $OPENJPEGDIR/src/lib/openjp2/openjpeg.h; then |
| 11552 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11553 |
printf "%s\n" "yes" >&6; } |
| 11554 |
JPXDIR="$OPENJPEGDIR" |
| 11555 |
JPX_DECODER=openjpeg |
| 11556 |
SHARE_JPX=0 |
| 11557 |
|
| 11558 |
for ac_func in memalign |
| 11559 |
do : |
| 11560 |
ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" |
| 11561 |
if test "x$ac_cv_func_memalign" = xyes |
| 11562 |
then : |
| 11563 |
printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h |
| 11564 |
have_memalign=1 |
| 11565 |
fi |
| 11566 |
|
| 11567 |
done |
| 11568 |
|
| 11569 |
for ac_func in aligned_alloc |
| 11570 |
do : |
| 11571 |
ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc" |
| 11572 |
if test "x$ac_cv_func_aligned_alloc" = xyes |
| 11573 |
then : |
| 11574 |
printf "%s\n" "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h |
| 11575 |
have_aligned_alloc=1 |
| 11576 |
fi |
| 11577 |
|
| 11578 |
done |
| 11579 |
|
| 11580 |
for ac_func in _aligned_malloc |
| 11581 |
do : |
| 11582 |
ac_fn_c_check_func "$LINENO" "_aligned_malloc" "ac_cv_func__aligned_malloc" |
| 11583 |
if test "x$ac_cv_func__aligned_malloc" = xyes |
| 11584 |
then : |
| 11585 |
printf "%s\n" "#define HAVE__ALIGNED_MALLOC 1" >>confdefs.h |
| 11586 |
have__aligned_malloc=1 |
| 11587 |
fi |
| 11588 |
|
| 11589 |
done |
| 11590 |
|
| 11591 |
for ac_func in posix_memalign |
| 11592 |
do : |
| 11593 |
ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" |
| 11594 |
if test "x$ac_cv_func_posix_memalign" = xyes |
| 11595 |
then : |
| 11596 |
printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h |
| 11597 |
have_posix_memalign=1 |
| 11598 |
fi |
| 11599 |
|
| 11600 |
done |
| 11601 |
|
| 11602 |
if test "x$have_aligned_alloc" = "x1"; then |
| 11603 |
CFLAGS_OPJ_HAVE_ALIGNED_ALLOC="-DOPJ_HAVE_ALIGNED_ALLOC=1" |
| 11604 |
else |
| 11605 |
CFLAGS_OPJ_HAVE_ALIGNED_ALLOC= |
| 11606 |
fi |
| 11607 |
|
| 11608 |
if test "x$have__aligned_alloc" = "x1"; then |
| 11609 |
CFLAGS_OPJ_HAVE__ALIGNED_ALLOC="-DOPJ_HAVE__ALIGNED_ALLOC=1" |
| 11610 |
else |
| 11611 |
CFLAGS_OPJ_HAVE__ALIGNED_ALLOC= |
| 11612 |
fi |
| 11613 |
|
| 11614 |
if test "x$have_memalign" = "x1"; then |
| 11615 |
JPX_AUTOCONF_CFLAGS="" |
| 11616 |
CFLAGS_OPJ_HAVE_MEMALIGN="-DOPJ_HAVE_MEMALIGN=1" |
| 11617 |
else |
| 11618 |
JPX_AUTOCONF_CFLAGS="-D\"memalign(a,b)=malloc(b)\"" |
| 11619 |
CFLAGS_OPJ_HAVE_MEMALIGN= |
| 11620 |
fi |
| 11621 |
|
| 11622 |
if test "x$have_posix_memalign" = "x1"; then |
| 11623 |
CFLAGS_OPJ_HAVE_POSIX_MEMALIGN="-DOPJ_HAVE_POSIX_MEMALIGN=1" |
| 11624 |
else |
| 11625 |
CFLAGS_OPJ_HAVE_POSIX_MEMALIGN= |
| 11626 |
fi |
| 11627 |
|
| 11628 |
CFLAGS_old="$CFLAGS" |
| 11629 |
CFLAGS="-Wno-attributes" |
| 11630 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11631 |
/* end confdefs.h. */ |
| 11632 |
|
| 11633 |
int |
| 11634 |
main (void) |
| 11635 |
{ |
| 11636 |
return 0; |
| 11637 |
; |
| 11638 |
return 0; |
| 11639 |
} |
| 11640 |
_ACEOF |
| 11641 |
if ac_fn_c_try_compile "$LINENO" |
| 11642 |
then : |
| 11643 |
JPX_AUTOCONF_CFLAGS="$JPX_AUTOCONF_CFLAGS -Wno-attributes" |
| 11644 |
fi |
| 11645 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11646 |
CFLAGS="$CFLAGS_old" |
| 11647 |
|
| 11648 |
JPX_AUTOCONF_CFLAGS="$JPX_AUTOCONF_CFLAGS -DOPJ_STATIC -DMUTEX_pthread=0 $OPJ_LRINTF_SUBST -DUSE_JPIP -DUSE_OPENJPEG_JP2 $CFLAGS_OPJ_HAVE_STDINT_H $CFLAGS_OPJ_HAVE_INTTYPES_H $CFLAGS_OPJ_BIGENDIAN $CFLAGS_OPJ_HAVE_FSEEKO $CFLAGS_OPJ_HAVE_MALLOC_H $CFLAGS_OPJ_HAVE_ALIGNED_ALLOC $CFLAGS_OPJ_HAVE__ALIGNED_ALLOC $CFLAGS_OPJ_HAVE_MEMALIGN $CFLAGS_OPJ_HAVE_POSIX_MEMALIGN" |
| 11649 |
|
| 11650 |
else |
| 11651 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11652 |
printf "%s\n" "no" >&6; } |
| 11653 |
check_for_opj_stream_set_user_data=no |
| 11654 |
if test x"$PKGCONFIG" != x""; then |
| 11655 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenJPEG2" >&5 |
| 11656 |
printf %s "checking for OpenJPEG2... " >&6; } |
| 11657 |
if $PKGCONFIG --exists libopenjp2; then |
| 11658 |
JPX_AUTOCONF_CFLAGS="`$PKGCONFIG libopenjp2 --cflags` -DUSE_OPENJPEG_JP2" |
| 11659 |
JPX_AUTOCONF_LIBS="`$PKGCONFIG libopenjp2 --libs`" |
| 11660 |
SHARE_JPX=1 |
| 11661 |
JPX_DECODER=openjpeg |
| 11662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11663 |
printf "%s\n" "yes" >&6; } |
| 11664 |
else |
| 11665 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11666 |
printf "%s\n" "no" >&6; } |
| 11667 |
check_for_opj_stream_set_user_data=yes |
| 11668 |
fi |
| 11669 |
else |
| 11670 |
check_for_opj_stream_set_user_data=yes |
| 11671 |
fi |
| 11672 |
if test x"$check_for_opj_stream_set_user_data" != x"no"; then |
| 11673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opj_stream_set_user_data in -lopenjp2" >&5 |
| 11674 |
printf %s "checking for opj_stream_set_user_data in -lopenjp2... " >&6; } |
| 11675 |
if test ${ac_cv_lib_openjp2_opj_stream_set_user_data+y} |
| 11676 |
then : |
| 11677 |
printf %s "(cached) " >&6 |
| 11678 |
else $as_nop |
| 11679 |
ac_check_lib_save_LIBS=$LIBS |
| 11680 |
LIBS="-lopenjp2 $LIBS" |
| 11681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11682 |
/* end confdefs.h. */ |
| 11683 |
|
| 11684 |
/* Override any GCC internal prototype to avoid an error. |
| 11685 |
Use char because int might match the return type of a GCC |
| 11686 |
builtin and then its argument prototype would still apply. */ |
| 11687 |
char opj_stream_set_user_data (); |
| 11688 |
int |
| 11689 |
main (void) |
| 11690 |
{ |
| 11691 |
return opj_stream_set_user_data (); |
| 11692 |
; |
| 11693 |
return 0; |
| 11694 |
} |
| 11695 |
_ACEOF |
| 11696 |
if ac_fn_c_try_link "$LINENO" |
| 11697 |
then : |
| 11698 |
ac_cv_lib_openjp2_opj_stream_set_user_data=yes |
| 11699 |
else $as_nop |
| 11700 |
ac_cv_lib_openjp2_opj_stream_set_user_data=no |
| 11701 |
fi |
| 11702 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11703 |
conftest$ac_exeext conftest.$ac_ext |
| 11704 |
LIBS=$ac_check_lib_save_LIBS |
| 11705 |
fi |
| 11706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjp2_opj_stream_set_user_data" >&5 |
| 11707 |
printf "%s\n" "$ac_cv_lib_openjp2_opj_stream_set_user_data" >&6; } |
| 11708 |
if test "x$ac_cv_lib_openjp2_opj_stream_set_user_data" = xyes |
| 11709 |
then : |
| 11710 |
JPX_AUTOCONF_CFLAGS="$JPX_AUTOCONF_CFLAGS $OPJ_LRINTF_SUBST -DUSE_JPIP -DUSE_OPENJPEG_JP2 $CFLAGS_OPJ_HAVE_STDINT_H $CFLAGS_OPJ_HAVE_INTTYPES_H $CFLAGS_OPJ_BIGENDIAN $CFLAGS_OPJ_HAVE_FSEEKO $CFLAGS_OPJ_HAVE_MALLOC_H $CFLAGS_OPJ_HAVE_ALIGNED_ALLOC $CFLAGS_OPJ_HAVE__ALIGNED_ALLOC $CFLAGS_OPJ_HAVE_MEMALIGN $CFLAGS_OPJ_HAVE_POSIX_MEMALIGN"; |
| 11711 |
JPX_AUTOCONF_LIBS="-lopenjp2"; |
| 11712 |
SHARE_JPX=1 |
| 11713 |
|
| 11714 |
fi |
| 11715 |
|
| 11716 |
fi |
| 11717 |
fi |
| 11718 |
fi |
| 11719 |
fi |
| 11720 |
|
| 11721 |
|
| 11722 |
|
| 11723 |
|
| 11724 |
|
| 11725 |
|
| 11726 |
|
| 11727 |
|
| 11728 |
ENABLEURF= |
| 11729 |
URF_INCLUDE= |
| 11730 |
SURFX_H= |
| 11731 |
|
| 11732 |
# Check whether --with-urf was given. |
| 11733 |
if test ${with_urf+y} |
| 11734 |
then : |
| 11735 |
withval=$with_urf; |
| 11736 |
fi |
| 11737 |
|
| 11738 |
|
| 11739 |
if test x$with_urf != xno; then |
| 11740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for URF support" >&5 |
| 11741 |
printf %s "checking for URF support... " >&6; } |
| 11742 |
if test -d $srcdir/urf; then |
| 11743 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11744 |
printf "%s\n" "yes" >&6; } |
| 11745 |
ENABLEURF="\$(D_)URF_INCLUDED\$(_D)" |
| 11746 |
GPDL_URF_TOP_OBJ="\$(GPDLOBJ)/\$(GPDL_URF_TOP_OBJ_FILE)" |
| 11747 |
URF_INCLUDE="\$(I_)\$(URFSRCDIR)\$(_I)" |
| 11748 |
SURFX_H="\$(URFSRCDIR)\$(D)surfx.h" |
| 11749 |
else |
| 11750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11751 |
printf "%s\n" "no" >&6; } |
| 11752 |
fi |
| 11753 |
fi |
| 11754 |
|
| 11755 |
|
| 11756 |
|
| 11757 |
|
| 11758 |
|
| 11759 |
|
| 11760 |
ENABLESO= |
| 11761 |
|
| 11762 |
# Check whether --with-so was given. |
| 11763 |
if test ${with_so+y} |
| 11764 |
then : |
| 11765 |
withval=$with_so; |
| 11766 |
fi |
| 11767 |
|
| 11768 |
|
| 11769 |
if test x$with_so != xno; then |
| 11770 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SmartOffice support" >&5 |
| 11771 |
printf %s "checking for SmartOffice support... " >&6; } |
| 11772 |
if test -d $srcdir/so; then |
| 11773 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11774 |
printf "%s\n" "yes" >&6; } |
| 11775 |
ENABLESO="\$(D_)SO_INCLUDED\$(_D)" |
| 11776 |
GPDL_SO_TOP_OBJ="\$(GPDLOBJ)/\$(GPDL_SO_TOP_OBJ_FILE)" |
| 11777 |
# This will do for now, though clearly it's not ideal. |
| 11778 |
case $host in |
| 11779 |
i*86*-linux*|i*86*-gnu) |
| 11780 |
SO_PDFEXPORT_LIB="\$(SOSRCDIR)/lib/linux/x86/smart-office-lib.a" |
| 11781 |
;; |
| 11782 |
*-linux*|*-gnu) |
| 11783 |
SO_PDFEXPORT_LIB="\$(SOSRCDIR)/lib/linux/x64/smart-office-lib.a" |
| 11784 |
;; |
| 11785 |
*arm64*-darwin*) |
| 11786 |
SO_PDFEXPORT_LIB="\$(SOSRCDIR)/lib/macos/arm64/smart-office-lib.a" |
| 11787 |
;; |
| 11788 |
*i*86-darwin*) |
| 11789 |
SO_PDFEXPORT_LIB="\$(SOSRCDIR)/lib/macos/x86/smart-office-lib.a" |
| 11790 |
;; |
| 11791 |
*-darwin*) |
| 11792 |
SO_PDFEXPORT_LIB="\$(SOSRCDIR)/lib/macos/x64/smart-office-lib.a" |
| 11793 |
;; |
| 11794 |
esac |
| 11795 |
else |
| 11796 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11797 |
printf "%s\n" "no" >&6; } |
| 11798 |
fi |
| 11799 |
fi |
| 11800 |
|
| 11801 |
|
| 11802 |
|
| 11803 |
|
| 11804 |
|
| 11805 |
|
| 11806 |
# Check whether --with-cal was given. |
| 11807 |
if test ${with_cal+y} |
| 11808 |
then : |
| 11809 |
withval=$with_cal; |
| 11810 |
fi |
| 11811 |
|
| 11812 |
|
| 11813 |
if test x"$WHICHLCMS" != x"lcms2mt"; then |
| 11814 |
with_cal=no |
| 11815 |
if test -d $srcdir/cal; then |
| 11816 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CAL dependency lcms2mt missing..... disabling CAL" >&5 |
| 11817 |
printf "%s\n" "$as_me: WARNING: CAL dependency lcms2mt missing..... disabling CAL" >&2;} |
| 11818 |
fi |
| 11819 |
fi |
| 11820 |
|
| 11821 |
CALSRCDIR=$srcdir/cal |
| 11822 |
if test x$with_cal != xno; then |
| 11823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local CAL library source" >&5 |
| 11824 |
printf %s "checking for local CAL library source... " >&6; } |
| 11825 |
if test -d $srcdir/cal; then |
| 11826 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11827 |
printf "%s\n" "yes" >&6; } |
| 11828 |
WITH_CAL=1 |
| 11829 |
else |
| 11830 |
WITH_CAL=0 |
| 11831 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11832 |
printf "%s\n" "no" >&6; } |
| 11833 |
fi |
| 11834 |
else |
| 11835 |
WITH_CAL=0 |
| 11836 |
fi |
| 11837 |
|
| 11838 |
if test x$WITH_CAL != x0; then |
| 11839 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sse4.2 support" >&5 |
| 11840 |
printf %s "checking sse4.2 support... " >&6; } |
| 11841 |
save_cflags=$CFLAGS |
| 11842 |
CFLAGS="$CFLAGS $OPT_CFLAGS -msse4.2" |
| 11843 |
|
| 11844 |
HAVE_SSE4_2="" |
| 11845 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11846 |
/* end confdefs.h. */ |
| 11847 |
#include <emmintrin.h> |
| 11848 |
#include <smmintrin.h> |
| 11849 |
int |
| 11850 |
main (void) |
| 11851 |
{ |
| 11852 |
|
| 11853 |
__m128i input1; |
| 11854 |
unsigned char buf1[128]; |
| 11855 |
input1 = _mm_loadu_si128((const __m128i *)buf1); |
| 11856 |
input1 = _mm_hadd_epi32(input1, input1); |
| 11857 |
(void)_mm_extract_epi64(input1, 0); |
| 11858 |
return(0); |
| 11859 |
|
| 11860 |
; |
| 11861 |
return 0; |
| 11862 |
} |
| 11863 |
_ACEOF |
| 11864 |
if ac_fn_c_try_link "$LINENO" |
| 11865 |
then : |
| 11866 |
HAVE_SSE4_2="-DHAVE_SSE4_2" |
| 11867 |
else $as_nop |
| 11868 |
HAVE_SSE4_2="" |
| 11869 |
fi |
| 11870 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11871 |
conftest$ac_exeext conftest.$ac_ext |
| 11872 |
|
| 11873 |
#AC_ARG_ENABLE([sse4.2], AS_HELP_STRING([--disable-sse4.2], |
| 11874 |
# [Do not use sse4.2 instrinsics]), [ |
| 11875 |
# if test "x$enable_sse4.2" = xno; then |
| 11876 |
# HAVE_SSE4_2="" |
| 11877 |
# fi]) |
| 11878 |
|
| 11879 |
if test "x$HAVE_SSE4_2" != x; then |
| 11880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11881 |
printf "%s\n" "yes" >&6; } |
| 11882 |
else |
| 11883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11884 |
printf "%s\n" "no" >&6; } |
| 11885 |
fi |
| 11886 |
|
| 11887 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking avx2 support" >&5 |
| 11888 |
printf %s "checking avx2 support... " >&6; } |
| 11889 |
CFLAGS="$save_cflags $OPT_CFLAGS -mavx2" |
| 11890 |
|
| 11891 |
HAVE_AVX2="" |
| 11892 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11893 |
/* end confdefs.h. */ |
| 11894 |
#include <immintrin.h> |
| 11895 |
int |
| 11896 |
main (void) |
| 11897 |
{ |
| 11898 |
|
| 11899 |
__m256i input1; |
| 11900 |
unsigned char buf1[256]; |
| 11901 |
input1 = _mm256_loadu_si256((const __m256i *)buf1); |
| 11902 |
input1 = _mm256_adds_epu8(input1, input1); |
| 11903 |
(void)_mm256_insert_epi64(input1, 0, 0); |
| 11904 |
return(0); |
| 11905 |
|
| 11906 |
; |
| 11907 |
return 0; |
| 11908 |
} |
| 11909 |
_ACEOF |
| 11910 |
if ac_fn_c_try_link "$LINENO" |
| 11911 |
then : |
| 11912 |
HAVE_AVX2="-DHAVE_AVX2" |
| 11913 |
else $as_nop |
| 11914 |
HAVE_AVX2="" |
| 11915 |
fi |
| 11916 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11917 |
conftest$ac_exeext conftest.$ac_ext |
| 11918 |
|
| 11919 |
#AC_ARG_ENABLE([sse4.2], AS_HELP_STRING([--disable-sse4.2], |
| 11920 |
# [Do not use sse4.2 instrinsics]), [ |
| 11921 |
# if test "x$enable_sse4.2" = xno; then |
| 11922 |
# HAVE_SSE4_2="" |
| 11923 |
# fi]) |
| 11924 |
|
| 11925 |
if test "x$HAVE_AVX2" != x; then |
| 11926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11927 |
printf "%s\n" "yes" >&6; } |
| 11928 |
else |
| 11929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11930 |
printf "%s\n" "no" >&6; } |
| 11931 |
fi |
| 11932 |
|
| 11933 |
#AC_SUBST(HAVE_SSE4_2) |
| 11934 |
#AC_SUBST(HAVE_NEON) |
| 11935 |
CFLAGS=$save_cflags |
| 11936 |
|
| 11937 |
CAL_CFLAGS="" |
| 11938 |
CAL_SSE4_2_CFLAGS="" |
| 11939 |
CAL_AVX2_CFLAGS="" |
| 11940 |
CAL_NEON_CFLAGS="" |
| 11941 |
if test "x$HAVE_SSE4_2" != x; then |
| 11942 |
CAL_SSE4_2_CFLAGS="-msse4.2" |
| 11943 |
CAL_CFLAGS="$CAL_CFLAGS $HAVE_SSE4_2" |
| 11944 |
fi |
| 11945 |
if test "x$HAVE_AVX2" != x; then |
| 11946 |
CAL_AVX2_CFLAGS="-mavx2" |
| 11947 |
CAL_CFLAGS="$CAL_CFLAGS $HAVE_AVX2" |
| 11948 |
fi |
| 11949 |
if test "x$HAVE_NEON" != x; then |
| 11950 |
CAL_NEON_CFLAGS="-mfpu=neon -mcpu=cortex-a53" |
| 11951 |
CAL_CFLAGS="$CAL_CFLAGS $HAVE_NEON" |
| 11952 |
fi |
| 11953 |
fi |
| 11954 |
|
| 11955 |
|
| 11956 |
|
| 11957 |
|
| 11958 |
|
| 11959 |
|
| 11960 |
|
| 11961 |
|
| 11962 |
# Check whether --enable-gtk was given. |
| 11963 |
if test ${enable_gtk+y} |
| 11964 |
then : |
| 11965 |
enableval=$enable_gtk; |
| 11966 |
fi |
| 11967 |
|
| 11968 |
SOC_CFLAGS="" |
| 11969 |
SOC_LIBS="" |
| 11970 |
SOC_LOADER="" |
| 11971 |
if test "x$enable_gtk" != "xno"; then |
| 11972 |
# Try GTK+ 3.x first... |
| 11973 |
if test "x$PKGCONFIG" != x; then |
| 11974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ 3.x" >&5 |
| 11975 |
printf %s "checking for GTK+ 3.x... " >&6; } |
| 11976 |
if $PKGCONFIG --exists gtk+-3.0; then |
| 11977 |
SOC_LOADER="dxmain" |
| 11978 |
SOC_CFLAGS="`$PKGCONFIG gtk+-3.0 --cflags`" |
| 11979 |
SOC_LIBS="`$PKGCONFIG gtk+-3.0 --libs`" |
| 11980 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11981 |
printf "%s\n" "yes" >&6; } |
| 11982 |
else |
| 11983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11984 |
printf "%s\n" "no" >&6; } |
| 11985 |
fi |
| 11986 |
|
| 11987 |
# Or resort to GTK+ 2.x |
| 11988 |
if test "x$SOC_LOADER" = "x"; then |
| 11989 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ 2.x" >&5 |
| 11990 |
printf %s "checking for GTK+ 2.x... " >&6; } |
| 11991 |
if $PKGCONFIG --exists gtk+-2.0; then |
| 11992 |
SOC_LOADER="dxmain" |
| 11993 |
SOC_CFLAGS="`$PKGCONFIG gtk+-2.0 --cflags`" |
| 11994 |
SOC_LIBS="`$PKGCONFIG gtk+-2.0 --libs`" |
| 11995 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11996 |
printf "%s\n" "yes" >&6; } |
| 11997 |
else |
| 11998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11999 |
printf "%s\n" "no" >&6; } |
| 12000 |
fi |
| 12001 |
fi |
| 12002 |
fi |
| 12003 |
fi |
| 12004 |
|
| 12005 |
if test "x$SOC_LOADER" = "x"; then |
| 12006 |
SOC_LOADER="dxmainc" |
| 12007 |
fi |
| 12008 |
|
| 12009 |
|
| 12010 |
|
| 12011 |
|
| 12012 |
|
| 12013 |
if test x"$enable_auxtools_only" = x"yes" ; then |
| 12014 |
no_x=yes |
| 12015 |
else |
| 12016 |
|
| 12017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 12018 |
printf %s "checking for X... " >&6; } |
| 12019 |
|
| 12020 |
|
| 12021 |
# Check whether --with-x was given. |
| 12022 |
if test ${with_x+y} |
| 12023 |
then : |
| 12024 |
withval=$with_x; |
| 12025 |
fi |
| 12026 |
|
| 12027 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 12028 |
if test "x$with_x" = xno; then |
| 12029 |
# The user explicitly disabled X. |
| 12030 |
have_x=disabled |
| 12031 |
else |
| 12032 |
case $x_includes,$x_libraries in #( |
| 12033 |
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 12034 |
*,NONE | NONE,*) if test ${ac_cv_have_x+y} |
| 12035 |
then : |
| 12036 |
printf %s "(cached) " >&6 |
| 12037 |
else $as_nop |
| 12038 |
# One or both of the vars are not set, and there is no cached value. |
| 12039 |
ac_x_includes=no |
| 12040 |
ac_x_libraries=no |
| 12041 |
# Do we need to do anything special at all? |
| 12042 |
ac_save_LIBS=$LIBS |
| 12043 |
LIBS="-lX11 $LIBS" |
| 12044 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12045 |
/* end confdefs.h. */ |
| 12046 |
#include <X11/Xlib.h> |
| 12047 |
int |
| 12048 |
main (void) |
| 12049 |
{ |
| 12050 |
XrmInitialize () |
| 12051 |
; |
| 12052 |
return 0; |
| 12053 |
} |
| 12054 |
_ACEOF |
| 12055 |
if ac_fn_c_try_link "$LINENO" |
| 12056 |
then : |
| 12057 |
# We can compile and link X programs with no special options. |
| 12058 |
ac_x_includes= |
| 12059 |
ac_x_libraries= |
| 12060 |
fi |
| 12061 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12062 |
conftest$ac_exeext conftest.$ac_ext |
| 12063 |
LIBS="$ac_save_LIBS" |
| 12064 |
# If that didn't work, only try xmkmf and file system searches |
| 12065 |
# for native compilation. |
| 12066 |
if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
| 12067 |
then : |
| 12068 |
rm -f -r conftest.dir |
| 12069 |
if mkdir conftest.dir; then |
| 12070 |
cd conftest.dir |
| 12071 |
cat >Imakefile <<'_ACEOF' |
| 12072 |
incroot: |
| 12073 |
@echo incroot='${INCROOT}' |
| 12074 |
usrlibdir: |
| 12075 |
@echo usrlibdir='${USRLIBDIR}' |
| 12076 |
libdir: |
| 12077 |
@echo libdir='${LIBDIR}' |
| 12078 |
_ACEOF |
| 12079 |
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 12080 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 12081 |
for ac_var in incroot usrlibdir libdir; do |
| 12082 |
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 12083 |
done |
| 12084 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 12085 |
for ac_extension in a so sl dylib la dll; do |
| 12086 |
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 12087 |
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 12088 |
ac_im_usrlibdir=$ac_im_libdir; break |
| 12089 |
fi |
| 12090 |
done |
| 12091 |
# Screen out bogus values from the imake configuration. They are |
| 12092 |
# bogus both because they are the default anyway, and because |
| 12093 |
# using them would break gcc on systems where it needs fixed includes. |
| 12094 |
case $ac_im_incroot in |
| 12095 |
/usr/include) ac_x_includes= ;; |
| 12096 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 12097 |
esac |
| 12098 |
case $ac_im_usrlibdir in |
| 12099 |
/usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 12100 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 12101 |
esac |
| 12102 |
fi |
| 12103 |
cd .. |
| 12104 |
rm -f -r conftest.dir |
| 12105 |
fi |
| 12106 |
|
| 12107 |
# Standard set of common directories for X headers. |
| 12108 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
| 12109 |
ac_x_header_dirs=' |
| 12110 |
/usr/X11/include |
| 12111 |
/usr/X11R7/include |
| 12112 |
/usr/X11R6/include |
| 12113 |
/usr/X11R5/include |
| 12114 |
/usr/X11R4/include |
| 12115 |
|
| 12116 |
/usr/include/X11 |
| 12117 |
/usr/include/X11R7 |
| 12118 |
/usr/include/X11R6 |
| 12119 |
/usr/include/X11R5 |
| 12120 |
/usr/include/X11R4 |
| 12121 |
|
| 12122 |
/usr/local/X11/include |
| 12123 |
/usr/local/X11R7/include |
| 12124 |
/usr/local/X11R6/include |
| 12125 |
/usr/local/X11R5/include |
| 12126 |
/usr/local/X11R4/include |
| 12127 |
|
| 12128 |
/usr/local/include/X11 |
| 12129 |
/usr/local/include/X11R7 |
| 12130 |
/usr/local/include/X11R6 |
| 12131 |
/usr/local/include/X11R5 |
| 12132 |
/usr/local/include/X11R4 |
| 12133 |
|
| 12134 |
/opt/X11/include |
| 12135 |
|
| 12136 |
/usr/X386/include |
| 12137 |
/usr/x386/include |
| 12138 |
/usr/XFree86/include/X11 |
| 12139 |
|
| 12140 |
/usr/include |
| 12141 |
/usr/local/include |
| 12142 |
/usr/unsupported/include |
| 12143 |
/usr/athena/include |
| 12144 |
/usr/local/x11r5/include |
| 12145 |
/usr/lpp/Xamples/include |
| 12146 |
|
| 12147 |
/usr/openwin/include |
| 12148 |
/usr/openwin/share/include' |
| 12149 |
|
| 12150 |
if test "$ac_x_includes" = no; then |
| 12151 |
# Guess where to find include files, by looking for Xlib.h. |
| 12152 |
# First, try using that file with no special directory specified. |
| 12153 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12154 |
/* end confdefs.h. */ |
| 12155 |
#include <X11/Xlib.h> |
| 12156 |
_ACEOF |
| 12157 |
if ac_fn_c_try_cpp "$LINENO" |
| 12158 |
then : |
| 12159 |
# We can compile using X headers with no special include directory. |
| 12160 |
ac_x_includes= |
| 12161 |
else $as_nop |
| 12162 |
for ac_dir in $ac_x_header_dirs; do |
| 12163 |
if test -r "$ac_dir/X11/Xlib.h"; then |
| 12164 |
ac_x_includes=$ac_dir |
| 12165 |
break |
| 12166 |
fi |
| 12167 |
done |
| 12168 |
fi |
| 12169 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 12170 |
fi # $ac_x_includes = no |
| 12171 |
|
| 12172 |
if test "$ac_x_libraries" = no; then |
| 12173 |
# Check for the libraries. |
| 12174 |
# See if we find them without any special options. |
| 12175 |
# Don't add to $LIBS permanently. |
| 12176 |
ac_save_LIBS=$LIBS |
| 12177 |
LIBS="-lX11 $LIBS" |
| 12178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12179 |
/* end confdefs.h. */ |
| 12180 |
#include <X11/Xlib.h> |
| 12181 |
int |
| 12182 |
main (void) |
| 12183 |
{ |
| 12184 |
XrmInitialize () |
| 12185 |
; |
| 12186 |
return 0; |
| 12187 |
} |
| 12188 |
_ACEOF |
| 12189 |
if ac_fn_c_try_link "$LINENO" |
| 12190 |
then : |
| 12191 |
LIBS=$ac_save_LIBS |
| 12192 |
# We can link X programs with no special library path. |
| 12193 |
ac_x_libraries= |
| 12194 |
else $as_nop |
| 12195 |
LIBS=$ac_save_LIBS |
| 12196 |
for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 12197 |
do |
| 12198 |
# Don't even attempt the hair of trying to link an X program! |
| 12199 |
for ac_extension in a so sl dylib la dll; do |
| 12200 |
if test -r "$ac_dir/libX11.$ac_extension"; then |
| 12201 |
ac_x_libraries=$ac_dir |
| 12202 |
break 2 |
| 12203 |
fi |
| 12204 |
done |
| 12205 |
done |
| 12206 |
fi |
| 12207 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12208 |
conftest$ac_exeext conftest.$ac_ext |
| 12209 |
fi # $ac_x_libraries = no |
| 12210 |
|
| 12211 |
fi |
| 12212 |
# Record the results. |
| 12213 |
case $ac_x_includes,$ac_x_libraries in #( |
| 12214 |
no,* | *,no | *\'*) : |
| 12215 |
# Didn't find X, or a directory has "'" in its name. |
| 12216 |
ac_cv_have_x="have_x=no" ;; #( |
| 12217 |
*) : |
| 12218 |
# Record where we found X for the cache. |
| 12219 |
ac_cv_have_x="have_x=yes\ |
| 12220 |
ac_x_includes='$ac_x_includes'\ |
| 12221 |
ac_x_libraries='$ac_x_libraries'" ;; |
| 12222 |
esac |
| 12223 |
fi |
| 12224 |
;; #( |
| 12225 |
*) have_x=yes;; |
| 12226 |
esac |
| 12227 |
eval "$ac_cv_have_x" |
| 12228 |
fi # $with_x != no |
| 12229 |
|
| 12230 |
if test "$have_x" != yes; then |
| 12231 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 12232 |
printf "%s\n" "$have_x" >&6; } |
| 12233 |
no_x=yes |
| 12234 |
else |
| 12235 |
# If each of the values was on the command line, it overrides each guess. |
| 12236 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 12237 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 12238 |
# Update the cache value to reflect the command line values. |
| 12239 |
ac_cv_have_x="have_x=yes\ |
| 12240 |
ac_x_includes='$x_includes'\ |
| 12241 |
ac_x_libraries='$x_libraries'" |
| 12242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 12243 |
printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
| 12244 |
fi |
| 12245 |
|
| 12246 |
if test "$no_x" = yes; then |
| 12247 |
# Not all programs may use this symbol, but it does not hurt to define it. |
| 12248 |
|
| 12249 |
printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| 12250 |
|
| 12251 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 12252 |
else |
| 12253 |
if test -n "$x_includes"; then |
| 12254 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 12255 |
fi |
| 12256 |
|
| 12257 |
# It would also be nice to do this for all -L options, not just this one. |
| 12258 |
if test -n "$x_libraries"; then |
| 12259 |
X_LIBS="$X_LIBS -L$x_libraries" |
| 12260 |
# For Solaris; some versions of Sun CC require a space after -R and |
| 12261 |
# others require no space. Words are not sufficient . . . . |
| 12262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 12263 |
printf %s "checking whether -R must be followed by a space... " >&6; } |
| 12264 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 12265 |
ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 12266 |
ac_c_werror_flag=yes |
| 12267 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12268 |
/* end confdefs.h. */ |
| 12269 |
|
| 12270 |
int |
| 12271 |
main (void) |
| 12272 |
{ |
| 12273 |
|
| 12274 |
; |
| 12275 |
return 0; |
| 12276 |
} |
| 12277 |
_ACEOF |
| 12278 |
if ac_fn_c_try_link "$LINENO" |
| 12279 |
then : |
| 12280 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12281 |
printf "%s\n" "no" >&6; } |
| 12282 |
X_LIBS="$X_LIBS -R$x_libraries" |
| 12283 |
else $as_nop |
| 12284 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 12285 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12286 |
/* end confdefs.h. */ |
| 12287 |
|
| 12288 |
int |
| 12289 |
main (void) |
| 12290 |
{ |
| 12291 |
|
| 12292 |
; |
| 12293 |
return 0; |
| 12294 |
} |
| 12295 |
_ACEOF |
| 12296 |
if ac_fn_c_try_link "$LINENO" |
| 12297 |
then : |
| 12298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12299 |
printf "%s\n" "yes" >&6; } |
| 12300 |
X_LIBS="$X_LIBS -R $x_libraries" |
| 12301 |
else $as_nop |
| 12302 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 12303 |
printf "%s\n" "neither works" >&6; } |
| 12304 |
fi |
| 12305 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12306 |
conftest$ac_exeext conftest.$ac_ext |
| 12307 |
fi |
| 12308 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12309 |
conftest$ac_exeext conftest.$ac_ext |
| 12310 |
ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 12311 |
LIBS=$ac_xsave_LIBS |
| 12312 |
fi |
| 12313 |
|
| 12314 |
# Check for system-dependent libraries X programs must link with. |
| 12315 |
# Do this before checking for the system-independent R6 libraries |
| 12316 |
# (-lICE), since we may need -lsocket or whatever for X linking. |
| 12317 |
|
| 12318 |
if test "$ISC" = yes; then |
| 12319 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 12320 |
else |
| 12321 |
# Martyn Johnson says this is needed for Ultrix, if the X |
| 12322 |
# libraries were built with DECnet support. And Karl Berry says |
| 12323 |
# the Alpha needs dnet_stub (dnet does not exist). |
| 12324 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 12325 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12326 |
/* end confdefs.h. */ |
| 12327 |
|
| 12328 |
/* Override any GCC internal prototype to avoid an error. |
| 12329 |
Use char because int might match the return type of a GCC |
| 12330 |
builtin and then its argument prototype would still apply. */ |
| 12331 |
char XOpenDisplay (); |
| 12332 |
int |
| 12333 |
main (void) |
| 12334 |
{ |
| 12335 |
return XOpenDisplay (); |
| 12336 |
; |
| 12337 |
return 0; |
| 12338 |
} |
| 12339 |
_ACEOF |
| 12340 |
if ac_fn_c_try_link "$LINENO" |
| 12341 |
then : |
| 12342 |
|
| 12343 |
else $as_nop |
| 12344 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 12345 |
printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
| 12346 |
if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
| 12347 |
then : |
| 12348 |
printf %s "(cached) " >&6 |
| 12349 |
else $as_nop |
| 12350 |
ac_check_lib_save_LIBS=$LIBS |
| 12351 |
LIBS="-ldnet $LIBS" |
| 12352 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12353 |
/* end confdefs.h. */ |
| 12354 |
|
| 12355 |
/* Override any GCC internal prototype to avoid an error. |
| 12356 |
Use char because int might match the return type of a GCC |
| 12357 |
builtin and then its argument prototype would still apply. */ |
| 12358 |
char dnet_ntoa (); |
| 12359 |
int |
| 12360 |
main (void) |
| 12361 |
{ |
| 12362 |
return dnet_ntoa (); |
| 12363 |
; |
| 12364 |
return 0; |
| 12365 |
} |
| 12366 |
_ACEOF |
| 12367 |
if ac_fn_c_try_link "$LINENO" |
| 12368 |
then : |
| 12369 |
ac_cv_lib_dnet_dnet_ntoa=yes |
| 12370 |
else $as_nop |
| 12371 |
ac_cv_lib_dnet_dnet_ntoa=no |
| 12372 |
fi |
| 12373 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12374 |
conftest$ac_exeext conftest.$ac_ext |
| 12375 |
LIBS=$ac_check_lib_save_LIBS |
| 12376 |
fi |
| 12377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 12378 |
printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 12379 |
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
| 12380 |
then : |
| 12381 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 12382 |
fi |
| 12383 |
|
| 12384 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 12385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 12386 |
printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 12387 |
if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
| 12388 |
then : |
| 12389 |
printf %s "(cached) " >&6 |
| 12390 |
else $as_nop |
| 12391 |
ac_check_lib_save_LIBS=$LIBS |
| 12392 |
LIBS="-ldnet_stub $LIBS" |
| 12393 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12394 |
/* end confdefs.h. */ |
| 12395 |
|
| 12396 |
/* Override any GCC internal prototype to avoid an error. |
| 12397 |
Use char because int might match the return type of a GCC |
| 12398 |
builtin and then its argument prototype would still apply. */ |
| 12399 |
char dnet_ntoa (); |
| 12400 |
int |
| 12401 |
main (void) |
| 12402 |
{ |
| 12403 |
return dnet_ntoa (); |
| 12404 |
; |
| 12405 |
return 0; |
| 12406 |
} |
| 12407 |
_ACEOF |
| 12408 |
if ac_fn_c_try_link "$LINENO" |
| 12409 |
then : |
| 12410 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 12411 |
else $as_nop |
| 12412 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 12413 |
fi |
| 12414 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12415 |
conftest$ac_exeext conftest.$ac_ext |
| 12416 |
LIBS=$ac_check_lib_save_LIBS |
| 12417 |
fi |
| 12418 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 12419 |
printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 12420 |
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
| 12421 |
then : |
| 12422 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 12423 |
fi |
| 12424 |
|
| 12425 |
fi |
| 12426 |
fi |
| 12427 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12428 |
conftest$ac_exeext conftest.$ac_ext |
| 12429 |
LIBS="$ac_xsave_LIBS" |
| 12430 |
|
| 12431 |
# [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, |
| 12432 |
# to get the SysV transport functions. |
| 12433 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 12434 |
# needs -lnsl. |
| 12435 |
# The nsl library prevents programs from opening the X display |
| 12436 |
# on Irix 5.2, according to T.E. Dickey. |
| 12437 |
# The functions gethostbyname, getservbyname, and inet_addr are |
| 12438 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 12439 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 12440 |
if test "x$ac_cv_func_gethostbyname" = xyes |
| 12441 |
then : |
| 12442 |
|
| 12443 |
fi |
| 12444 |
|
| 12445 |
if test $ac_cv_func_gethostbyname = no; then |
| 12446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 12447 |
printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 12448 |
if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 12449 |
then : |
| 12450 |
printf %s "(cached) " >&6 |
| 12451 |
else $as_nop |
| 12452 |
ac_check_lib_save_LIBS=$LIBS |
| 12453 |
LIBS="-lnsl $LIBS" |
| 12454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12455 |
/* end confdefs.h. */ |
| 12456 |
|
| 12457 |
/* Override any GCC internal prototype to avoid an error. |
| 12458 |
Use char because int might match the return type of a GCC |
| 12459 |
builtin and then its argument prototype would still apply. */ |
| 12460 |
char gethostbyname (); |
| 12461 |
int |
| 12462 |
main (void) |
| 12463 |
{ |
| 12464 |
return gethostbyname (); |
| 12465 |
; |
| 12466 |
return 0; |
| 12467 |
} |
| 12468 |
_ACEOF |
| 12469 |
if ac_fn_c_try_link "$LINENO" |
| 12470 |
then : |
| 12471 |
ac_cv_lib_nsl_gethostbyname=yes |
| 12472 |
else $as_nop |
| 12473 |
ac_cv_lib_nsl_gethostbyname=no |
| 12474 |
fi |
| 12475 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12476 |
conftest$ac_exeext conftest.$ac_ext |
| 12477 |
LIBS=$ac_check_lib_save_LIBS |
| 12478 |
fi |
| 12479 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 12480 |
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 12481 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 12482 |
then : |
| 12483 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 12484 |
fi |
| 12485 |
|
| 12486 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 12487 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 12488 |
printf %s "checking for gethostbyname in -lbsd... " >&6; } |
| 12489 |
if test ${ac_cv_lib_bsd_gethostbyname+y} |
| 12490 |
then : |
| 12491 |
printf %s "(cached) " >&6 |
| 12492 |
else $as_nop |
| 12493 |
ac_check_lib_save_LIBS=$LIBS |
| 12494 |
LIBS="-lbsd $LIBS" |
| 12495 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12496 |
/* end confdefs.h. */ |
| 12497 |
|
| 12498 |
/* Override any GCC internal prototype to avoid an error. |
| 12499 |
Use char because int might match the return type of a GCC |
| 12500 |
builtin and then its argument prototype would still apply. */ |
| 12501 |
char gethostbyname (); |
| 12502 |
int |
| 12503 |
main (void) |
| 12504 |
{ |
| 12505 |
return gethostbyname (); |
| 12506 |
; |
| 12507 |
return 0; |
| 12508 |
} |
| 12509 |
_ACEOF |
| 12510 |
if ac_fn_c_try_link "$LINENO" |
| 12511 |
then : |
| 12512 |
ac_cv_lib_bsd_gethostbyname=yes |
| 12513 |
else $as_nop |
| 12514 |
ac_cv_lib_bsd_gethostbyname=no |
| 12515 |
fi |
| 12516 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12517 |
conftest$ac_exeext conftest.$ac_ext |
| 12518 |
LIBS=$ac_check_lib_save_LIBS |
| 12519 |
fi |
| 12520 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 12521 |
printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 12522 |
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
| 12523 |
then : |
| 12524 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 12525 |
fi |
| 12526 |
|
| 12527 |
fi |
| 12528 |
fi |
| 12529 |
|
| 12530 |
# [email protected] says without -lsocket, |
| 12531 |
# socket/setsockopt and other routines are undefined under SCO ODT |
| 12532 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 12533 |
# on later versions), says Simon Leinen: it contains gethostby* |
| 12534 |
# variants that don't use the name server (or something). -lsocket |
| 12535 |
# must be given before -lnsl if both are needed. We assume that |
| 12536 |
# if connect needs -lnsl, so does gethostbyname. |
| 12537 |
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 12538 |
if test "x$ac_cv_func_connect" = xyes |
| 12539 |
then : |
| 12540 |
|
| 12541 |
fi |
| 12542 |
|
| 12543 |
if test $ac_cv_func_connect = no; then |
| 12544 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 12545 |
printf %s "checking for connect in -lsocket... " >&6; } |
| 12546 |
if test ${ac_cv_lib_socket_connect+y} |
| 12547 |
then : |
| 12548 |
printf %s "(cached) " >&6 |
| 12549 |
else $as_nop |
| 12550 |
ac_check_lib_save_LIBS=$LIBS |
| 12551 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 12552 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12553 |
/* end confdefs.h. */ |
| 12554 |
|
| 12555 |
/* Override any GCC internal prototype to avoid an error. |
| 12556 |
Use char because int might match the return type of a GCC |
| 12557 |
builtin and then its argument prototype would still apply. */ |
| 12558 |
char connect (); |
| 12559 |
int |
| 12560 |
main (void) |
| 12561 |
{ |
| 12562 |
return connect (); |
| 12563 |
; |
| 12564 |
return 0; |
| 12565 |
} |
| 12566 |
_ACEOF |
| 12567 |
if ac_fn_c_try_link "$LINENO" |
| 12568 |
then : |
| 12569 |
ac_cv_lib_socket_connect=yes |
| 12570 |
else $as_nop |
| 12571 |
ac_cv_lib_socket_connect=no |
| 12572 |
fi |
| 12573 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12574 |
conftest$ac_exeext conftest.$ac_ext |
| 12575 |
LIBS=$ac_check_lib_save_LIBS |
| 12576 |
fi |
| 12577 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 12578 |
printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
| 12579 |
if test "x$ac_cv_lib_socket_connect" = xyes |
| 12580 |
then : |
| 12581 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 12582 |
fi |
| 12583 |
|
| 12584 |
fi |
| 12585 |
|
| 12586 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
| 12587 |
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 12588 |
if test "x$ac_cv_func_remove" = xyes |
| 12589 |
then : |
| 12590 |
|
| 12591 |
fi |
| 12592 |
|
| 12593 |
if test $ac_cv_func_remove = no; then |
| 12594 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 12595 |
printf %s "checking for remove in -lposix... " >&6; } |
| 12596 |
if test ${ac_cv_lib_posix_remove+y} |
| 12597 |
then : |
| 12598 |
printf %s "(cached) " >&6 |
| 12599 |
else $as_nop |
| 12600 |
ac_check_lib_save_LIBS=$LIBS |
| 12601 |
LIBS="-lposix $LIBS" |
| 12602 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12603 |
/* end confdefs.h. */ |
| 12604 |
|
| 12605 |
/* Override any GCC internal prototype to avoid an error. |
| 12606 |
Use char because int might match the return type of a GCC |
| 12607 |
builtin and then its argument prototype would still apply. */ |
| 12608 |
char remove (); |
| 12609 |
int |
| 12610 |
main (void) |
| 12611 |
{ |
| 12612 |
return remove (); |
| 12613 |
; |
| 12614 |
return 0; |
| 12615 |
} |
| 12616 |
_ACEOF |
| 12617 |
if ac_fn_c_try_link "$LINENO" |
| 12618 |
then : |
| 12619 |
ac_cv_lib_posix_remove=yes |
| 12620 |
else $as_nop |
| 12621 |
ac_cv_lib_posix_remove=no |
| 12622 |
fi |
| 12623 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12624 |
conftest$ac_exeext conftest.$ac_ext |
| 12625 |
LIBS=$ac_check_lib_save_LIBS |
| 12626 |
fi |
| 12627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 12628 |
printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
| 12629 |
if test "x$ac_cv_lib_posix_remove" = xyes |
| 12630 |
then : |
| 12631 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 12632 |
fi |
| 12633 |
|
| 12634 |
fi |
| 12635 |
|
| 12636 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 12637 |
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 12638 |
if test "x$ac_cv_func_shmat" = xyes |
| 12639 |
then : |
| 12640 |
|
| 12641 |
fi |
| 12642 |
|
| 12643 |
if test $ac_cv_func_shmat = no; then |
| 12644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 12645 |
printf %s "checking for shmat in -lipc... " >&6; } |
| 12646 |
if test ${ac_cv_lib_ipc_shmat+y} |
| 12647 |
then : |
| 12648 |
printf %s "(cached) " >&6 |
| 12649 |
else $as_nop |
| 12650 |
ac_check_lib_save_LIBS=$LIBS |
| 12651 |
LIBS="-lipc $LIBS" |
| 12652 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12653 |
/* end confdefs.h. */ |
| 12654 |
|
| 12655 |
/* Override any GCC internal prototype to avoid an error. |
| 12656 |
Use char because int might match the return type of a GCC |
| 12657 |
builtin and then its argument prototype would still apply. */ |
| 12658 |
char shmat (); |
| 12659 |
int |
| 12660 |
main (void) |
| 12661 |
{ |
| 12662 |
return shmat (); |
| 12663 |
; |
| 12664 |
return 0; |
| 12665 |
} |
| 12666 |
_ACEOF |
| 12667 |
if ac_fn_c_try_link "$LINENO" |
| 12668 |
then : |
| 12669 |
ac_cv_lib_ipc_shmat=yes |
| 12670 |
else $as_nop |
| 12671 |
ac_cv_lib_ipc_shmat=no |
| 12672 |
fi |
| 12673 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12674 |
conftest$ac_exeext conftest.$ac_ext |
| 12675 |
LIBS=$ac_check_lib_save_LIBS |
| 12676 |
fi |
| 12677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 12678 |
printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
| 12679 |
if test "x$ac_cv_lib_ipc_shmat" = xyes |
| 12680 |
then : |
| 12681 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 12682 |
fi |
| 12683 |
|
| 12684 |
fi |
| 12685 |
fi |
| 12686 |
|
| 12687 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
| 12688 |
ac_save_LDFLAGS=$LDFLAGS |
| 12689 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 12690 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 12691 |
# check for ICE first), but we must link in the order -lSM -lICE or |
| 12692 |
# we get undefined symbols. So assume we have SM if we have ICE. |
| 12693 |
# These have to be linked with before -lX11, unlike the other |
| 12694 |
# libraries we check for below, so use a different variable. |
| 12695 |
# John Interrante, Karl Berry |
| 12696 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 12697 |
printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
| 12698 |
if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
| 12699 |
then : |
| 12700 |
printf %s "(cached) " >&6 |
| 12701 |
else $as_nop |
| 12702 |
ac_check_lib_save_LIBS=$LIBS |
| 12703 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 12704 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12705 |
/* end confdefs.h. */ |
| 12706 |
|
| 12707 |
/* Override any GCC internal prototype to avoid an error. |
| 12708 |
Use char because int might match the return type of a GCC |
| 12709 |
builtin and then its argument prototype would still apply. */ |
| 12710 |
char IceConnectionNumber (); |
| 12711 |
int |
| 12712 |
main (void) |
| 12713 |
{ |
| 12714 |
return IceConnectionNumber (); |
| 12715 |
; |
| 12716 |
return 0; |
| 12717 |
} |
| 12718 |
_ACEOF |
| 12719 |
if ac_fn_c_try_link "$LINENO" |
| 12720 |
then : |
| 12721 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
| 12722 |
else $as_nop |
| 12723 |
ac_cv_lib_ICE_IceConnectionNumber=no |
| 12724 |
fi |
| 12725 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12726 |
conftest$ac_exeext conftest.$ac_ext |
| 12727 |
LIBS=$ac_check_lib_save_LIBS |
| 12728 |
fi |
| 12729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 12730 |
printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 12731 |
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
| 12732 |
then : |
| 12733 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 12734 |
fi |
| 12735 |
|
| 12736 |
LDFLAGS=$ac_save_LDFLAGS |
| 12737 |
|
| 12738 |
fi |
| 12739 |
|
| 12740 |
fi |
| 12741 |
|
| 12742 |
X_LDFLAGS="" |
| 12743 |
X_CFLAGS="" |
| 12744 |
X_DEVS="" |
| 12745 |
X_LIBS="" |
| 12746 |
|
| 12747 |
if test x"$no_x" != x"yes"; then |
| 12748 |
if test "$x_libraries" = "/usr/lib"; then |
| 12749 |
echo "Ignoring X library directory \"$x_libraries\" requested by configure." |
| 12750 |
x_libraries="NONE" |
| 12751 |
fi |
| 12752 |
if test ! "$x_libraries" = "NONE" -a ! "$x_libraries" = ""; then |
| 12753 |
X_LDFLAGS="-L$x_libraries" |
| 12754 |
case $host in |
| 12755 |
*-sun*|*-solaris*) |
| 12756 |
X_LDFLAGS="$X_LDFLAGS -R$x_libraries" |
| 12757 |
;; |
| 12758 |
*) |
| 12759 |
;; |
| 12760 |
esac |
| 12761 |
|
| 12762 |
fi |
| 12763 |
|
| 12764 |
if test "$x_includes" = "/usr/include"; then |
| 12765 |
echo "Ignoring X include directory \"$x_includes\" requested by configure." |
| 12766 |
x_includes="NONE" |
| 12767 |
fi |
| 12768 |
if test ! "$x_includes" = "NONE" -a ! "$x_includes" = ""; then |
| 12769 |
X_CFLAGS="-I$x_includes" |
| 12770 |
fi |
| 12771 |
|
| 12772 |
SAVELIBS="$LIBS" |
| 12773 |
SAVELDFLAGS="$LDFLAGS" |
| 12774 |
LDFLAGS="$LDFLAGS $X_LDFLAGS" |
| 12775 |
|
| 12776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 |
| 12777 |
printf %s "checking for XOpenDisplay in -lX11... " >&6; } |
| 12778 |
if test ${ac_cv_lib_X11_XOpenDisplay+y} |
| 12779 |
then : |
| 12780 |
printf %s "(cached) " >&6 |
| 12781 |
else $as_nop |
| 12782 |
ac_check_lib_save_LIBS=$LIBS |
| 12783 |
LIBS="-lX11 $LIBS" |
| 12784 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12785 |
/* end confdefs.h. */ |
| 12786 |
|
| 12787 |
/* Override any GCC internal prototype to avoid an error. |
| 12788 |
Use char because int might match the return type of a GCC |
| 12789 |
builtin and then its argument prototype would still apply. */ |
| 12790 |
char XOpenDisplay (); |
| 12791 |
int |
| 12792 |
main (void) |
| 12793 |
{ |
| 12794 |
return XOpenDisplay (); |
| 12795 |
; |
| 12796 |
return 0; |
| 12797 |
} |
| 12798 |
_ACEOF |
| 12799 |
if ac_fn_c_try_link "$LINENO" |
| 12800 |
then : |
| 12801 |
ac_cv_lib_X11_XOpenDisplay=yes |
| 12802 |
else $as_nop |
| 12803 |
ac_cv_lib_X11_XOpenDisplay=no |
| 12804 |
fi |
| 12805 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12806 |
conftest$ac_exeext conftest.$ac_ext |
| 12807 |
LIBS=$ac_check_lib_save_LIBS |
| 12808 |
fi |
| 12809 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 |
| 12810 |
printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; } |
| 12811 |
if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes |
| 12812 |
then : |
| 12813 |
printf "%s\n" "#define HAVE_LIBX11 1" >>confdefs.h |
| 12814 |
|
| 12815 |
LIBS="-lX11 $LIBS" |
| 12816 |
|
| 12817 |
else $as_nop |
| 12818 |
no_x=yes |
| 12819 |
fi |
| 12820 |
|
| 12821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5 |
| 12822 |
printf %s "checking for XdbeQueryExtension in -lXext... " >&6; } |
| 12823 |
if test ${ac_cv_lib_Xext_XdbeQueryExtension+y} |
| 12824 |
then : |
| 12825 |
printf %s "(cached) " >&6 |
| 12826 |
else $as_nop |
| 12827 |
ac_check_lib_save_LIBS=$LIBS |
| 12828 |
LIBS="-lXext $LIBS" |
| 12829 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12830 |
/* end confdefs.h. */ |
| 12831 |
|
| 12832 |
/* Override any GCC internal prototype to avoid an error. |
| 12833 |
Use char because int might match the return type of a GCC |
| 12834 |
builtin and then its argument prototype would still apply. */ |
| 12835 |
char XdbeQueryExtension (); |
| 12836 |
int |
| 12837 |
main (void) |
| 12838 |
{ |
| 12839 |
return XdbeQueryExtension (); |
| 12840 |
; |
| 12841 |
return 0; |
| 12842 |
} |
| 12843 |
_ACEOF |
| 12844 |
if ac_fn_c_try_link "$LINENO" |
| 12845 |
then : |
| 12846 |
ac_cv_lib_Xext_XdbeQueryExtension=yes |
| 12847 |
else $as_nop |
| 12848 |
ac_cv_lib_Xext_XdbeQueryExtension=no |
| 12849 |
fi |
| 12850 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12851 |
conftest$ac_exeext conftest.$ac_ext |
| 12852 |
LIBS=$ac_check_lib_save_LIBS |
| 12853 |
fi |
| 12854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5 |
| 12855 |
printf "%s\n" "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; } |
| 12856 |
if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = xyes |
| 12857 |
then : |
| 12858 |
printf "%s\n" "#define HAVE_LIBXEXT 1" >>confdefs.h |
| 12859 |
|
| 12860 |
LIBS="-lXext $LIBS" |
| 12861 |
|
| 12862 |
else $as_nop |
| 12863 |
no_x=yes |
| 12864 |
fi |
| 12865 |
|
| 12866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XtAppCreateShell in -lXt" >&5 |
| 12867 |
printf %s "checking for XtAppCreateShell in -lXt... " >&6; } |
| 12868 |
if test ${ac_cv_lib_Xt_XtAppCreateShell+y} |
| 12869 |
then : |
| 12870 |
printf %s "(cached) " >&6 |
| 12871 |
else $as_nop |
| 12872 |
ac_check_lib_save_LIBS=$LIBS |
| 12873 |
LIBS="-lXt $LIBS" |
| 12874 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12875 |
/* end confdefs.h. */ |
| 12876 |
|
| 12877 |
/* Override any GCC internal prototype to avoid an error. |
| 12878 |
Use char because int might match the return type of a GCC |
| 12879 |
builtin and then its argument prototype would still apply. */ |
| 12880 |
char XtAppCreateShell (); |
| 12881 |
int |
| 12882 |
main (void) |
| 12883 |
{ |
| 12884 |
return XtAppCreateShell (); |
| 12885 |
; |
| 12886 |
return 0; |
| 12887 |
} |
| 12888 |
_ACEOF |
| 12889 |
if ac_fn_c_try_link "$LINENO" |
| 12890 |
then : |
| 12891 |
ac_cv_lib_Xt_XtAppCreateShell=yes |
| 12892 |
else $as_nop |
| 12893 |
ac_cv_lib_Xt_XtAppCreateShell=no |
| 12894 |
fi |
| 12895 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12896 |
conftest$ac_exeext conftest.$ac_ext |
| 12897 |
LIBS=$ac_check_lib_save_LIBS |
| 12898 |
fi |
| 12899 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtAppCreateShell" >&5 |
| 12900 |
printf "%s\n" "$ac_cv_lib_Xt_XtAppCreateShell" >&6; } |
| 12901 |
if test "x$ac_cv_lib_Xt_XtAppCreateShell" = xyes |
| 12902 |
then : |
| 12903 |
printf "%s\n" "#define HAVE_LIBXT 1" >>confdefs.h |
| 12904 |
|
| 12905 |
LIBS="-lXt $LIBS" |
| 12906 |
|
| 12907 |
else $as_nop |
| 12908 |
no_x=yes |
| 12909 |
fi |
| 12910 |
|
| 12911 |
|
| 12912 |
LDFLAGS="$SAVELDFLAGS" |
| 12913 |
LIBS="$SAVELIBS" |
| 12914 |
|
| 12915 |
if test x"$no_x" = x"yes"; then |
| 12916 |
as_fn_error $? "X11 libraries (libX11, libXt, libXext) not available, either install them, or rerun configure with \"--without-x\"" "$LINENO" 5 |
| 12917 |
else |
| 12918 |
X11DEVS="x11 x11alpha x11cmyk x11mono x11_ x11alt_ x11cmyk2 x11cmyk4 x11cmyk8 x11rg16x x11rg32x x11gray2 x11gray4" |
| 12919 |
X_DEVS=$X11DEVS |
| 12920 |
# the makefile wants a list of just the library names in X_LIBS |
| 12921 |
|
| 12922 |
# the makefile wants a list of just the library names |
| 12923 |
for gs_item in -lXt $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS; do |
| 12924 |
gs_stripped_item=`echo "$gs_item" | sed -e 's/^-l//'` |
| 12925 |
if test "x$gs_stripped_item" != "x$gs_item"; then |
| 12926 |
X_LIBS="$X_LIBS $gs_stripped_item" |
| 12927 |
fi |
| 12928 |
done |
| 12929 |
|
| 12930 |
fi |
| 12931 |
fi |
| 12932 |
|
| 12933 |
|
| 12934 |
|
| 12935 |
|
| 12936 |
#AC_SUBST(X_DEVS) |
| 12937 |
#AC_SUBST(X11DEVS) |
| 12938 |
|
| 12939 |
|
| 12940 |
|
| 12941 |
# Check whether --with-gs was given. |
| 12942 |
if test ${with_gs+y} |
| 12943 |
then : |
| 12944 |
withval=$with_gs; GS="$with_gs" |
| 12945 |
else $as_nop |
| 12946 |
GS='gs' |
| 12947 |
fi |
| 12948 |
|
| 12949 |
|
| 12950 |
|
| 12951 |
PCL=no_gpcl6 |
| 12952 |
PCL_TARGET= |
| 12953 |
|
| 12954 |
PLROMFS_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12955 |
PL_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12956 |
PCL_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12957 |
PCL_TOP_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12958 |
PXL_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12959 |
|
| 12960 |
if test x"$with_pcl" != x"no" ; then |
| 12961 |
if test -f $srcdir/pcl/pl/pl.mak; then |
| 12962 |
|
| 12963 |
# Check whether --with-pcl was given. |
| 12964 |
if test ${with_pcl+y} |
| 12965 |
then : |
| 12966 |
withval=$with_pcl; PCL="$with_pcl" |
| 12967 |
else $as_nop |
| 12968 |
PCL='gpcl6' |
| 12969 |
fi |
| 12970 |
|
| 12971 |
|
| 12972 |
PCL_TARGET=gpcl6 |
| 12973 |
|
| 12974 |
PLROMFS_MAK="\$(PLSRCDIR)\$(D)plromfs.mak" |
| 12975 |
PL_MAK="\$(PLSRCDIR)\$(D)pl.mak" |
| 12976 |
PCL_MAK="\$(PCL5SRCDIR)\$(D)pcl.mak" |
| 12977 |
PCL_TOP_MAK="\$(PCL5SRCDIR)\$(D)pcl_top.mak" |
| 12978 |
PXL_MAK="\$(PXLSRCDIR)\$(D)pxl.mak" |
| 12979 |
fi |
| 12980 |
fi |
| 12981 |
|
| 12982 |
|
| 12983 |
|
| 12984 |
|
| 12985 |
|
| 12986 |
|
| 12987 |
|
| 12988 |
|
| 12989 |
|
| 12990 |
|
| 12991 |
XPS=no_gxps |
| 12992 |
XPS_TARGET= |
| 12993 |
|
| 12994 |
XPS_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12995 |
XPSROMFS_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 12996 |
# gxps currently depends on code in pl |
| 12997 |
if test x"$with_xps" != x"no" ; then |
| 12998 |
if test x"$PCL_TARGET" != x ; then |
| 12999 |
if test -f $srcdir/xps/xps.mak; then |
| 13000 |
|
| 13001 |
# Check whether --with-xps was given. |
| 13002 |
if test ${with_xps+y} |
| 13003 |
then : |
| 13004 |
withval=$with_xps; XPS="$with_xps" |
| 13005 |
else $as_nop |
| 13006 |
XPS='gxps' |
| 13007 |
fi |
| 13008 |
|
| 13009 |
|
| 13010 |
XPS_TARGET=gxps |
| 13011 |
XPS_MAK="\$(XPSSRCDIR)\$(D)xps.mak" |
| 13012 |
XPSROMFS_MAK="\$(XPSSRCDIR)\$(D)xpsromfs.mak" |
| 13013 |
fi |
| 13014 |
fi |
| 13015 |
fi |
| 13016 |
|
| 13017 |
|
| 13018 |
|
| 13019 |
|
| 13020 |
|
| 13021 |
|
| 13022 |
GPDF_DEV= |
| 13023 |
PDF= |
| 13024 |
PDF_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 13025 |
PDFROMFS_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 13026 |
|
| 13027 |
if test x"$with_pdf" != x"no" -a x"$enable_auxtools_only" != x"yes" ; then |
| 13028 |
|
| 13029 |
if test x"$JBIG2_DECODER" = x""; then |
| 13030 |
as_fn_error $? "No JBIG2 decoder available, required for PDF support" "$LINENO" 5 |
| 13031 |
fi |
| 13032 |
if test x"$JPX_DECODER" = x""; then |
| 13033 |
as_fn_error $? "No JPX/JPEG2000 decoder available, required for PDF support" "$LINENO" 5 |
| 13034 |
fi |
| 13035 |
|
| 13036 |
if test -f $srcdir/pdf/pdf.mak; then |
| 13037 |
|
| 13038 |
# Check whether --with-pdf was given. |
| 13039 |
if test ${with_pdf+y} |
| 13040 |
then : |
| 13041 |
withval=$with_pdf; PDFEXE="$with_pdf" |
| 13042 |
else $as_nop |
| 13043 |
PDFEXE='gpdf' |
| 13044 |
fi |
| 13045 |
|
| 13046 |
|
| 13047 |
if test -f $srcdir/pcl/pl/pl.mak && test x"$PCL_TARGET" != x"" ; then |
| 13048 |
PDF_TARGET=gpdf |
| 13049 |
PDF=$PDFEXE |
| 13050 |
else |
| 13051 |
PDF=no_gpdf |
| 13052 |
fi |
| 13053 |
CFLAGS="-DBUILD_PDF=1 -I$srcdir/pdf $CFLAGS" |
| 13054 |
GPDF_DEV="\$(PDFOBJDIR)\$(D)pdfi.dev" |
| 13055 |
PDF_MAK="\$(PDFSRCDIR)\$(D)pdf.mak" |
| 13056 |
PDFROMFS_MAK="\$(PDFSRCDIR)\$(D)pdfromfs.mak" |
| 13057 |
fi |
| 13058 |
fi |
| 13059 |
|
| 13060 |
|
| 13061 |
|
| 13062 |
|
| 13063 |
|
| 13064 |
|
| 13065 |
|
| 13066 |
|
| 13067 |
GPDL=no_gpdl |
| 13068 |
GPDL_TARGET= |
| 13069 |
GPDL_TARGET_VAR= |
| 13070 |
|
| 13071 |
GPDL_MAK="\$(GLSRCDIR)\$(D)stub.mak" |
| 13072 |
# in order to build gpdl we need the pdls available |
| 13073 |
|
| 13074 |
if test "x$XPS_TARGET" != "x" && test "x$PCL_TARGET" != "x" ; then |
| 13075 |
if test -f $srcdir/gpdl/gpdl.mak; then |
| 13076 |
|
| 13077 |
# Check whether --with-gpdl was given. |
| 13078 |
if test ${with_gpdl+y} |
| 13079 |
then : |
| 13080 |
withval=$with_gpdl; GPDL="$with_gpdl" |
| 13081 |
else $as_nop |
| 13082 |
GPDL='gpdl' |
| 13083 |
fi |
| 13084 |
|
| 13085 |
|
| 13086 |
GPDL_TARGET=gpdl |
| 13087 |
GPDL_MAK="\$(GPDLSRCDIR)\$(D)gpdl.mak" |
| 13088 |
fi |
| 13089 |
fi |
| 13090 |
|
| 13091 |
|
| 13092 |
|
| 13093 |
|
| 13094 |
|
| 13095 |
COMPILE_INITS="1" |
| 13096 |
# Check whether --enable-compile-inits was given. |
| 13097 |
if test ${enable_compile_inits+y} |
| 13098 |
then : |
| 13099 |
enableval=$enable_compile_inits; |
| 13100 |
if test "x$enable_compile_inits" = xno; then |
| 13101 |
COMPILE_INITS="0" |
| 13102 |
fi |
| 13103 |
fi |
| 13104 |
|
| 13105 |
|
| 13106 |
|
| 13107 |
APPLE_DEVICES_REQUESTED="no" |
| 13108 |
|
| 13109 |
# Check whether --with-drivers was given. |
| 13110 |
if test ${with_drivers+y} |
| 13111 |
then : |
| 13112 |
withval=$with_drivers; drivers="$withval" |
| 13113 |
else $as_nop |
| 13114 |
drivers="ALL" |
| 13115 |
fi |
| 13116 |
|
| 13117 |
|
| 13118 |
|
| 13119 |
# Check whether --with-driversfile was given. |
| 13120 |
if test ${with_driversfile+y} |
| 13121 |
then : |
| 13122 |
withval=$with_driversfile; driversfile="$withval" |
| 13123 |
else $as_nop |
| 13124 |
driversfile="" |
| 13125 |
fi |
| 13126 |
|
| 13127 |
|
| 13128 |
if test "x$driversfile" != x; then |
| 13129 |
# Add drivers from file... |
| 13130 |
drivers="`tr '\n' ',' <$driversfile`" |
| 13131 |
fi |
| 13132 |
|
| 13133 |
if echo $drivers | grep 'APPLE\|appledmp\|iwhi\|iwhic\|iwlo\|iwlow\|iwlq\|iwlqc' >/dev/null; then |
| 13134 |
APPLE_DEVICES_REQUESTED="yes" |
| 13135 |
fi |
| 13136 |
|
| 13137 |
P_DEVS0="" |
| 13138 |
F_DEVS0="" |
| 13139 |
CUPS_DEVS0="" |
| 13140 |
XPS_DEVS0="" |
| 13141 |
JBIG2_DEVS="" |
| 13142 |
IJS_DEVS0="" |
| 13143 |
PNG_DEVS0="" |
| 13144 |
X11_DEVS0="" |
| 13145 |
|
| 13146 |
|
| 13147 |
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' |
| 13148 |
PCLXL_DEVS='pxlmono pxlcolor' |
| 13149 |
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' |
| 13150 |
CANON_DEVS='bj10e bj200 bjc600 bjc800 lbp8 lips3 bjcmono bjcgray bjccmyk bjccolor' |
| 13151 |
LEXMARK_DEVS='lxm5700m lxm3200 lex2050 lex3200 lex5700 lex7000' |
| 13152 |
BROTHER_DEVS='hl7x0 hl1240 hl1250' |
| 13153 |
APPLE_DEVS='appledmp iwhi iwhic iwlo iwlow iwlq iwlqc' |
| 13154 |
IBM_DEVS='ibmpro jetp3852' |
| 13155 |
OKI_DEVS='oki182 okiibm oki4w' |
| 13156 |
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' |
| 13157 |
MISC_PDEVS='uniprint ap3250 atx23 atx24 atx38 itk24i itk38 coslw2p coslwxl declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes md2k md5k gdi samsunggdi' |
| 13158 |
OPVP_DEVS='opvp oprp' |
| 13159 |
|
| 13160 |
ETS_HALFTONING_DEVS='rinkj' |
| 13161 |
|
| 13162 |
BMP_DEVS='bmpmono bmpgray bmpsep1 bmpsep8 bmp16 bmp256 bmp16m bmp32b' |
| 13163 |
URF_DEVS='urfgray urfrgb urfcmyk' |
| 13164 |
|
| 13165 |
JPEG_DEVS='jpeg jpeggray jpegcmyk' |
| 13166 |
# PNG_DEVS='png16 png16m png256 pngalpha pnggray pngmono' |
| 13167 |
|
| 13168 |
PCX_DEVS='pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk' |
| 13169 |
PBM_DEVS='pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw pam pamcmyk4 pamcmyk32 plan plang planm planc plank pppm' |
| 13170 |
PS_DEVS='psdf psdcmyk psdrgb psdcmyk16 psdrgb16 psdcmyktags psdrgbtags psdcmyktags16 pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng pdfimage8 pdfimage24 pdfimage32 PCLm PCLm8' |
| 13171 |
|
| 13172 |
# Handle --with-extract-dir=EXTRACT_DIR - build extract library and docxwrite |
| 13173 |
# device. |
| 13174 |
# |
| 13175 |
|
| 13176 |
# Check whether --with-extract-dir was given. |
| 13177 |
if test ${with_extract_dir+y} |
| 13178 |
then : |
| 13179 |
withval=$with_extract_dir; |
| 13180 |
EXTRACT_DIR="$withval" |
| 13181 |
if test x"$EXTRACT_DIR" != x"no" |
| 13182 |
then : |
| 13183 |
if test -e $EXTRACT_DIR |
| 13184 |
then : |
| 13185 |
PS_DEVS="$PS_DEVS docxwrite" |
| 13186 |
else $as_nop |
| 13187 |
as_fn_error $? "EXTRACT_DIR does not exist: $EXTRACT_DIR" "$LINENO" 5 |
| 13188 |
fi |
| 13189 |
fi |
| 13190 |
|
| 13191 |
else $as_nop |
| 13192 |
|
| 13193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for \"extract\" in default location" >&5 |
| 13194 |
printf %s "checking Checking for \"extract\" in default location... " >&6; } |
| 13195 |
EXTRACT_DIR="extract" |
| 13196 |
if test -e $EXTRACT_DIR |
| 13197 |
then : |
| 13198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13199 |
printf "%s\n" "yes" >&6; }; PS_DEVS="$PS_DEVS docxwrite" |
| 13200 |
else $as_nop |
| 13201 |
EXTRACT_DIR=""; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13202 |
printf "%s\n" "no" >&6; } |
| 13203 |
fi |
| 13204 |
|
| 13205 |
|
| 13206 |
fi |
| 13207 |
|
| 13208 |
|
| 13209 |
|
| 13210 |
|
| 13211 |
# the "display" device isn't an ideal fit in the list below, but it saves adding a "list" for just that one entry |
| 13212 |
MISC_FDEVS='ccr cif inferno mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 plan9bm bit bitrgb bitrgbtags bitcmyk devicen spotcmyk xcf plib plibg plibm plibc plibk display' |
| 13213 |
|
| 13214 |
XPSDEV=$XPSWRITEDEVICE |
| 13215 |
|
| 13216 |
while test -n "$drivers"; do |
| 13217 |
if echo $drivers |grep "," >/dev/null; then |
| 13218 |
THIS="`echo $drivers |sed -e 's/,.*//'`" |
| 13219 |
SEDCMD="s/$THIS,//" |
| 13220 |
drivers="`echo $drivers |sed -e $SEDCMD`" |
| 13221 |
else |
| 13222 |
THIS=$drivers |
| 13223 |
drivers="" |
| 13224 |
fi |
| 13225 |
case "$THIS" in |
| 13226 |
ALL) |
| 13227 |
# ALL = PRINTERS + FILES... |
| 13228 |
if test -z "$drivers"; then |
| 13229 |
drivers="PRINTERS,FILES,X11,OCR" |
| 13230 |
else |
| 13231 |
drivers="$drivers,PRINTERS,FILES,X11,OCR" |
| 13232 |
fi |
| 13233 |
;; |
| 13234 |
PRINTERS) |
| 13235 |
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" |
| 13236 |
IJS_DEVS0="$IJSDEVS" |
| 13237 |
if test x$ac_cv_lib_dl_dlopen != xno -a x$found_iconv != xno; then |
| 13238 |
P_DEVS0="$P_DEVS0 $OPVP_DEVS" |
| 13239 |
else |
| 13240 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&5 |
| 13241 |
printf "%s\n" "$as_me: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&2;} |
| 13242 |
fi |
| 13243 |
;; |
| 13244 |
FILES) |
| 13245 |
F_DEVS0="$F_DEVS0 $BMP_DEVS $FAX_DEVS $JPEG_DEVS $TIFFDEVS $PCX_DEVS $PBM_DEVS $PS_DEVS $MISC_FDEVS $XPSDEV $URF_DEVS" |
| 13246 |
CUPS_DEVS0="$CUPSDEV" |
| 13247 |
JBIG2_DEVS="$JBIG2FILEDEVS" |
| 13248 |
PNG_DEVS0="$PNGDEVS" |
| 13249 |
;; |
| 13250 |
APPLE) |
| 13251 |
# All Apple printers |
| 13252 |
P_DEVS0="$P_DEVS0 $APPLE_DEVS" |
| 13253 |
;; |
| 13254 |
BMP) |
| 13255 |
# BMP file format |
| 13256 |
F_DEVS0="$F_DEVS0 $BMP_DEVS" |
| 13257 |
;; |
| 13258 |
CANON) |
| 13259 |
# All Canon printers |
| 13260 |
P_DEVS0="$P_DEVS0 $CANON_DEVS" |
| 13261 |
;; |
| 13262 |
EPSON) |
| 13263 |
# All Epson printers |
| 13264 |
P_DEVS0="$P_DEVS0 $EPSON_DEVS" |
| 13265 |
;; |
| 13266 |
FAX) |
| 13267 |
# Fax file formats |
| 13268 |
F_DEVS0="$F_DEVS0 $FAX_DEVS" |
| 13269 |
;; |
| 13270 |
JPEG) |
| 13271 |
# Jpeg file formats |
| 13272 |
F_DEVS0="$F_DEVS0 $JPEG_DEVS" |
| 13273 |
;; |
| 13274 |
JBIG2) |
| 13275 |
# JBIG file formats |
| 13276 |
JBIG2_DEVS="$JBIG2DEVS" |
| 13277 |
;; |
| 13278 |
PNG) |
| 13279 |
# PNG file formats |
| 13280 |
PNG_DEVS0="$PNGDEVS" |
| 13281 |
;; |
| 13282 |
TIFF) |
| 13283 |
# TIFF file formats |
| 13284 |
F_DEVS0="$F_DEVS0 $TIFFDEVS" |
| 13285 |
;; |
| 13286 |
PCLXL) |
| 13287 |
# PCL XL/PCL 6 drivers |
| 13288 |
F_DEVS0="$F_DEVS0 $PCLXL_DEVS" |
| 13289 |
;; |
| 13290 |
PCX) |
| 13291 |
# PCX file formats |
| 13292 |
F_DEVS0="$F_DEVS0 $PCX_DEVS" |
| 13293 |
;; |
| 13294 |
PBM) |
| 13295 |
# PBM file formats |
| 13296 |
F_DEVS0="$F_DEVS0 $PBM_DEVS" |
| 13297 |
;; |
| 13298 |
CUPS) |
| 13299 |
# CUPS file format |
| 13300 |
CUPS_DEVS0="$CUPSDEV" |
| 13301 |
;; |
| 13302 |
HP) |
| 13303 |
# All HP printers |
| 13304 |
P_DEVS0="$P_DEVS0 $HP_DEVS" |
| 13305 |
;; |
| 13306 |
LEXMARK) |
| 13307 |
# All Lexmark printers |
| 13308 |
P_DEVS0="$P_DEVS0 $LEXMARK_DEVS" |
| 13309 |
;; |
| 13310 |
BROTHER) |
| 13311 |
# All Brother printers |
| 13312 |
P_DEVS0="$P_DEVS0 $BROTHER_DEVS" |
| 13313 |
;; |
| 13314 |
OKI) |
| 13315 |
# All OKI printers |
| 13316 |
P_DEVS0="$P_DEVS0 $OKI_DEVS" |
| 13317 |
;; |
| 13318 |
IBM) |
| 13319 |
# All IBM printers |
| 13320 |
P_DEVS0="$P_DEVS0 $IBM_DEVS" |
| 13321 |
;; |
| 13322 |
IJS) |
| 13323 |
# IJS printers |
| 13324 |
IJS_DEVS0="$IJSDEVS" |
| 13325 |
;; |
| 13326 |
JAPAN) |
| 13327 |
# All old japanese printers |
| 13328 |
P_DEVS0="$P_DEVS0 $JAPAN_DEVS" |
| 13329 |
;; |
| 13330 |
PS) |
| 13331 |
# PostScript/PDF writing |
| 13332 |
F_DEVS0="$F_DEVS0 $PS_DEVS" |
| 13333 |
;; |
| 13334 |
XPS) |
| 13335 |
# XPS writing |
| 13336 |
XPS_DEVS0="$XPSDEV" |
| 13337 |
;; |
| 13338 |
|
| 13339 |
ETS) |
| 13340 |
# ETS Halftoning devices |
| 13341 |
F_DEVS0="$F_DEVS0 $ETS_HALFTONING_DEVS" |
| 13342 |
;; |
| 13343 |
X11) |
| 13344 |
# X11 display devices |
| 13345 |
X11_DEVS0="$X_DEVS" |
| 13346 |
;; |
| 13347 |
URF) |
| 13348 |
# URF file format |
| 13349 |
F_DEVS0="$F_DEVS0 $URF_DEVS" |
| 13350 |
;; |
| 13351 |
OCR) |
| 13352 |
# OCR specific devices |
| 13353 |
OCR_DEVS0="$OCR_DEVS" |
| 13354 |
;; |
| 13355 |
opvp) |
| 13356 |
# Open Vector Printing driver... |
| 13357 |
if test x$ac_cv_lib_dl_dlopen != xno -a x$found_iconv != xno; then |
| 13358 |
P_DEVS0="$P_DEVS0 $OPVP_DEVS" |
| 13359 |
else |
| 13360 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&5 |
| 13361 |
printf "%s\n" "$as_me: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites..." >&2;} |
| 13362 |
fi |
| 13363 |
;; |
| 13364 |
*) |
| 13365 |
# It's a driver name (or a user messup) |
| 13366 |
P_DEVS0="$P_DEVS0 `echo $THIS |sed -e 's,\.dev$,,'`" |
| 13367 |
;; |
| 13368 |
esac |
| 13369 |
done |
| 13370 |
|
| 13371 |
noncontribmakefiles=`find $srcdir -name '*.mak' -print | grep -v '/contrib/'` |
| 13372 |
|
| 13373 |
# No need to include opvp/oprp driver without iconv/libiconv. |
| 13374 |
if test -n "$P_DEVS0"; then |
| 13375 |
if test x$found_iconv = xno ; then |
| 13376 |
P_DEVS0=`echo $P_DEVS0 | sed -e 's|opvp||' -e 's|oprp||'` |
| 13377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to include opvp/oprp driver due to missing iconv/libiconv..." >&5 |
| 13378 |
printf "%s\n" "$as_me: WARNING: Unable to include opvp/oprp driver due to missing iconv/libiconv..." >&2;} |
| 13379 |
fi |
| 13380 |
|
| 13381 |
# Remove contributed drivers if requested and make sure we don't have any |
| 13382 |
# duplicates in there, add $(DD)foo.dev constructs |
| 13383 |
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' ' '` |
| 13384 |
fi |
| 13385 |
|
| 13386 |
if test -n "$F_DEVS0"; then |
| 13387 |
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' ' '` |
| 13388 |
fi |
| 13389 |
|
| 13390 |
if test -n "$CUPS_DEVS0"; then |
| 13391 |
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' ' '` |
| 13392 |
fi |
| 13393 |
|
| 13394 |
if test -n "$XPS_DEVS0"; then |
| 13395 |
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' ' '` |
| 13396 |
fi |
| 13397 |
|
| 13398 |
if test -n "$IJS_DEVS0"; then |
| 13399 |
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' ' '` |
| 13400 |
fi |
| 13401 |
|
| 13402 |
if test -n "$PNG_DEVS0"; then |
| 13403 |
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' ' '` |
| 13404 |
fi |
| 13405 |
|
| 13406 |
if test -n "$X11_DEVS0"; then |
| 13407 |
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' ' '` |
| 13408 |
fi |
| 13409 |
|
| 13410 |
# if the user explicitly requested the Apple devices, then hard fail if they aren't available |
| 13411 |
if test x"$APPLE_DEVICES_REQUESTED" = x"yes" ; then |
| 13412 |
APDEVS=`echo $P_DEVS | grep 'APPLE\|appledmp\|iwhi\|iwhic\|iwlo\|iwlow\|iwlq\|iwlqc'` |
| 13413 |
if test -z "$APDEVS" ; then |
| 13414 |
as_fn_error $? "Requested Apple device(s) not available (appledmp, iwhi, iwhic, iwlo, iwlow, iwlq and/or iwlqc)" "$LINENO" 5 |
| 13415 |
fi |
| 13416 |
fi |
| 13417 |
|
| 13418 |
|
| 13419 |
|
| 13420 |
|
| 13421 |
|
| 13422 |
|
| 13423 |
|
| 13424 |
|
| 13425 |
|
| 13426 |
|
| 13427 |
# This now gets done after handling --enable-dynamic |
| 13428 |
# AC_SUBST(X11_DEVS) |
| 13429 |
|
| 13430 |
DYNAMIC_CFLAGS="" |
| 13431 |
DYNAMIC_DEVS="" |
| 13432 |
DYNAMIC_FLAGS="" |
| 13433 |
GS_DYNAMIC_LDFLAGS="" |
| 13434 |
PCL_DYNAMIC_LDFLAGS="" |
| 13435 |
XPS_DYNAMIC_LDFLAGS="" |
| 13436 |
PDL_DYNAMIC_LDFLAGS="" |
| 13437 |
DYNAMIC_LIBS="" |
| 13438 |
INSTALL_SHARED="" |
| 13439 |
SO_LIB_EXT=".so" |
| 13440 |
DLL_EXT="" |
| 13441 |
SO_LIB_VERSION_SEPARATOR="." |
| 13442 |
|
| 13443 |
libname1="_SO_BASE)\$(GS_SOEXT)\$(DLL_EXT)" |
| 13444 |
libname2="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(DLL_EXT)" |
| 13445 |
libname3="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MINOR)\$(DLL_EXT)" |
| 13446 |
GS_SONAME="lib\$(GS${libname1}" |
| 13447 |
GS_SONAME_MAJOR="lib\$(GS${libname2}" |
| 13448 |
GS_SONAME_MAJOR_MINOR="lib\$(GS${libname3}" |
| 13449 |
PCL_SONAME="lib\$(PCL${libname1}" |
| 13450 |
PCL_SONAME_MAJOR="lib\$(PCL${libname2}" |
| 13451 |
PCL_SONAME_MAJOR_MINOR="lib\$(PCL${libname3}" |
| 13452 |
XPS_SONAME="lib\$(XPS${libname1}" |
| 13453 |
XPS_SONAME_MAJOR="lib\$(XPS${libname2}" |
| 13454 |
XPS_SONAME_MAJOR_MINOR="lib\$(XPS${libname3}" |
| 13455 |
|
| 13456 |
PDF_SONAME="lib\$(PDF${libname1}" |
| 13457 |
PDF_SONAME_MAJOR="lib\$(PDF${libname2}" |
| 13458 |
PDF_SONAME_MAJOR_MINOR="lib\$(PDF${libname3}" |
| 13459 |
|
| 13460 |
GPDL_SONAME="lib\$(GPDL${libname1}" |
| 13461 |
GPDL_SONAME_MAJOR="lib\$(GPDL${libname2}" |
| 13462 |
GPDL_SONAME_MAJOR_MINOR="lib\$(GPDL${libname3}" |
| 13463 |
|
| 13464 |
hide_symbols=yes |
| 13465 |
attr_default= |
| 13466 |
attr_hidden= |
| 13467 |
_ldflags= |
| 13468 |
|
| 13469 |
# Check whether --enable-hidden-visibility was given. |
| 13470 |
if test ${enable_hidden_visibility+y} |
| 13471 |
then : |
| 13472 |
enableval=$enable_hidden_visibility; hide_symbols=no |
| 13473 |
fi |
| 13474 |
|
| 13475 |
|
| 13476 |
if test x"$hide_symbols" = x"yes" -a x"$GCC" = x"yes"; then |
| 13477 |
attr_default="__attribute__((visibility(\\\"default\\\")))" |
| 13478 |
attr_hidden="__attribute__((visibility(\\\"hidden\\\")))" |
| 13479 |
fi |
| 13480 |
|
| 13481 |
case $host in |
| 13482 |
*-linux*|*-gnu) |
| 13483 |
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS" |
| 13484 |
GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
| 13485 |
PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)" |
| 13486 |
XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)" |
| 13487 |
PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)" |
| 13488 |
PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)" |
| 13489 |
if test x"$GCC" = x"yes"; then |
| 13490 |
# GCC high level flag |
| 13491 |
DYNAMIC_LIBS="-rdynamic" |
| 13492 |
else |
| 13493 |
DYNAMIC_LIBS="" |
| 13494 |
fi |
| 13495 |
SO_LIB_EXT=".so" |
| 13496 |
;; |
| 13497 |
*-mingw*|*-msys*) |
| 13498 |
if test x"$hide_symbols" = x"yes"; then |
| 13499 |
attr_default="__declspec(dllexport)" |
| 13500 |
attr_hidden="" |
| 13501 |
else |
| 13502 |
_ldflags="-Wl,--export-all-symbols" |
| 13503 |
fi |
| 13504 |
_ldflags="$_ldflags -Wl,--enable-auto-import" |
| 13505 |
GS_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(GS_SO_BASE).dll.a $_ldflags" |
| 13506 |
PCL_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(PCL_SO_BASE).dll.a $_ldflags" |
| 13507 |
XPS_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(XPS_SO_BASE).dll.a $_ldflags" |
| 13508 |
PDL_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(PDL_SO_BASE).dll.a $_ldflags" |
| 13509 |
SO_LIB_EXT="" |
| 13510 |
DLL_EXT=".dll" |
| 13511 |
SO_LIB_VERSION_SEPARATOR="-" |
| 13512 |
# make sure the import library doesn't link a program against the DLL with the minor version in it |
| 13513 |
GS_SONAME="lib\$(GS${libname1}" |
| 13514 |
GS_SONAME_MAJOR="lib\$(GS${libname3}" |
| 13515 |
GS_SONAME_MAJOR_MINOR="lib\$(GS${libname2}" |
| 13516 |
PCL_SONAME="lib\$(PCL${libname1}" |
| 13517 |
PCL_SONAME_MAJOR="lib\$(PCL${libname3}" |
| 13518 |
PCL_SONAME_MAJOR_MINOR="lib\$(PCL${libname2}" |
| 13519 |
XPS_SONAME="lib\$(XPS${libname1}" |
| 13520 |
XPS_SONAME_MAJOR="lib\$(XPS${libname3}" |
| 13521 |
XPS_SONAME_MAJOR_MINOR="lib\$(XPS${libname2}" |
| 13522 |
PDF_SONAME="lib\$(PDF${libname1}" |
| 13523 |
PDF_SONAME_MAJOR="lib\$(PDF${libname3}" |
| 13524 |
PDF_SONAME_MAJOR_MINOR="lib\$(PDF${libname2}" |
| 13525 |
GPDL_SONAME="lib\$(GPDL${libname1}" |
| 13526 |
GPDL_SONAME_MAJOR="lib\$(GPDL${libname3}" |
| 13527 |
GPDL_SONAME_MAJOR_MINOR="lib\$(GPDL${libname2}" |
| 13528 |
;; |
| 13529 |
*-cygwin*) |
| 13530 |
if test x"$hide_symbols" = x"yes"; then |
| 13531 |
attr_default="__declspec(dllexport)" |
| 13532 |
attr_hidden="" |
| 13533 |
fi |
| 13534 |
GS_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(GS_SO_BASE).dll.a $_ldflags" |
| 13535 |
PCL_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(PCL_SO_BASE).dll.a $_ldflags" |
| 13536 |
XPS_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(XPS_SO_BASE).dll.a $_ldflags" |
| 13537 |
PDL_DYNAMIC_LDFLAGS="-shared -Wl,--out-implib=\$(BINDIR)/lib\$(PDL_SO_BASE).dll.a $_ldflags" |
| 13538 |
SO_LIB_EXT="" |
| 13539 |
DLL_EXT=".dll" |
| 13540 |
SO_LIB_VERSION_SEPARATOR="-" |
| 13541 |
# make sure the import library doesn't link a program against the DLL with the minor version in it |
| 13542 |
GS_SONAME="lib\$(GS${libname1}" |
| 13543 |
GS_SONAME_MAJOR="lib\$(GS${libname3}" |
| 13544 |
GS_SONAME_MAJOR_MINOR="cyg\$(GS${libname2}" |
| 13545 |
PCL_SONAME="lib\$(PCL${libname1}" |
| 13546 |
PCL_SONAME_MAJOR="lib\$(PCL${libname3}" |
| 13547 |
PCL_SONAME_MAJOR_MINOR="cyg\$(PCL${libname2}" |
| 13548 |
XPS_SONAME="lib\$(XPS${libname1}" |
| 13549 |
XPS_SONAME_MAJOR="lib\$(XPS${libname3}" |
| 13550 |
XPS_SONAME_MAJOR_MINOR="cyg\$(XPS${libname2}" |
| 13551 |
GPDL_SONAME="lib\$(GPDL${libname1}" |
| 13552 |
GPDL_SONAME_MAJOR="lib\$(GPDL${libname3}" |
| 13553 |
GPDL_SONAME_MAJOR_MINOR="cyg\$(GPDL${libname2}" |
| 13554 |
;; |
| 13555 |
*bsd*) |
| 13556 |
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS" |
| 13557 |
GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
| 13558 |
PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)" |
| 13559 |
XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)" |
| 13560 |
PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)" |
| 13561 |
PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)" |
| 13562 |
DYNAMIC_LIBS="" |
| 13563 |
SO_LIB_EXT=".so" |
| 13564 |
;; |
| 13565 |
*-darwin*) |
| 13566 |
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS" |
| 13567 |
GS_DYNAMIC_LDFLAGS="-dynamiclib -install_name $DARWIN_LDFLAGS_SO_PREFIX\$(GS_SONAME_MAJOR)" |
| 13568 |
PCL_DYNAMIC_LDFLAGS="-dynamiclib -install_name $DARWIN_LDFLAGS_SO_PREFIX\$(PCL_SONAME_MAJOR)" |
| 13569 |
XPS_DYNAMIC_LDFLAGS="-dynamiclib -install_name $DARWIN_LDFLAGS_SO_PREFIX\$(XPS_SONAME_MAJOR)" |
| 13570 |
PDL_DYNAMIC_LDFLAGS="-dynamiclib -install_name $DARWIN_LDFLAGS_SO_PREFIX\$(GPDL_SONAME_MAJOR)" |
| 13571 |
PDF_DYNAMIC_LDFLAGS="-dynamiclib -install_name $DARWIN_LDFLAGS_SO_PREFIX\$(PDF_SONAME_MAJOR)" |
| 13572 |
DYNAMIC_LIBS="" |
| 13573 |
SO_LIB_EXT="" |
| 13574 |
DLL_EXT=".dylib" |
| 13575 |
;; |
| 13576 |
*-sun*|*-solaris*) |
| 13577 |
if test x"$GCC" = x"yes"; then |
| 13578 |
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS" |
| 13579 |
else |
| 13580 |
DYNAMIC_CFLAGS="-KPIC $DYNAMIC_CFLAGS" |
| 13581 |
#if test x"$hide_symbols" = x"yes"; then |
| 13582 |
# attr_default="__global" |
| 13583 |
# attr_hidden="__hidden" |
| 13584 |
# _ldflags="-xldscope=hidden" |
| 13585 |
#fi |
| 13586 |
# ^^^ untested |
| 13587 |
fi |
| 13588 |
GS_DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR) $_ldflags" |
| 13589 |
PCL_DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR) $_ldflags" |
| 13590 |
XPS_DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR) $_ldflags" |
| 13591 |
PDL_DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR) $_ldflags" |
| 13592 |
PDF_DYNAMIC_LDFLAGS="-G -shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)" |
| 13593 |
DYNAMIC_LIBS="" |
| 13594 |
SO_LIB_EXT=".so" |
| 13595 |
;; |
| 13596 |
*-aix*) |
| 13597 |
if test x"$GCC" = x"yes"; then |
| 13598 |
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS" |
| 13599 |
GCFLAGS="-Wl,-brtl -D_LARGE_FILES $GCFLAGS" |
| 13600 |
GS_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC" |
| 13601 |
PCL_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC" |
| 13602 |
XPS_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC" |
| 13603 |
PDL_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC" |
| 13604 |
PDF_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC" |
| 13605 |
else |
| 13606 |
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS" |
| 13607 |
GCFLAGS="-Wl,-brtl -D_LARGE_FILES $GCFLAGS" |
| 13608 |
GS_DYNAMIC_LDFLAGS="-G -qmkshrobj -Wl,-brtl,-G" |
| 13609 |
PCL_DYNAMIC_LDFLAGS="-G -qmkshrobj -Wl,-brtl,-G" |
| 13610 |
XPS_DYNAMIC_LDFLAGS="-G -qmkshrobj -Wl,-brtl,-G" |
| 13611 |
PDL_DYNAMIC_LDFLAGS="-G -qmkshrobj -Wl,-brtl,-G" |
| 13612 |
PDF_DYNAMIC_LDFLAGS="-G -qmkshrobj -Wl,-brtl,-G" |
| 13613 |
fi |
| 13614 |
SO_LIB_EXT=".so" |
| 13615 |
;; |
| 13616 |
*-hpux*) |
| 13617 |
DYNAMIC_CFLAGS="+z $DYNAMIC_CFLAGS" |
| 13618 |
GS_DYNAMIC_LDFLAGS="-b -Wl,+h,\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)" |
| 13619 |
PCL_DYNAMIC_LDFLAGS="-b -Wl,+h,\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)" |
| 13620 |
XPS_DYNAMIC_LDFLAGS="-b -Wl,+h,\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)" |
| 13621 |
PDL_DYNAMIC_LDFLAGS="-b -Wl,+h,\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)" |
| 13622 |
PDF_DYNAMIC_LDFLAGS="-b -Wl,+h,\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)" |
| 13623 |
DYNAMIC_LIBS="" |
| 13624 |
SO_LIB_EXT=".so" |
| 13625 |
;; |
| 13626 |
esac |
| 13627 |
|
| 13628 |
if test x"$hide_symbols" = x"yes" ; then |
| 13629 |
if test x"$GCC" = x"yes"; then |
| 13630 |
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -fvisibility=hidden" |
| 13631 |
fi |
| 13632 |
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -DGSDLLEXPORT=\"$attr_default\"" |
| 13633 |
if test "x$FT_BRIDGE" = x1 -a "x$SHARE_FT" = x0 ; then |
| 13634 |
# disable warnings for redefined macros, so our abuse of FT_EXPORT() to hide symbols doesn't flag warnings |
| 13635 |
FT_HIDDEN_CFLAGS="-Wp,-w -D\"FT_EXPORT(x)\"=\"$attr_hidden x\" -D\"FT_EXPORT_DEF(x)\"=\"$attr_hidden x\"" |
| 13636 |
fi |
| 13637 |
if test "x$SHARE_EXPAT" = x0 ; then |
| 13638 |
XML_HIDDEN_CFLAGS="-DXML_STATIC -DXMLIMPORT=\"$attr_hidden\"" |
| 13639 |
fi |
| 13640 |
fi |
| 13641 |
|
| 13642 |
|
| 13643 |
|
| 13644 |
|
| 13645 |
|
| 13646 |
|
| 13647 |
|
| 13648 |
|
| 13649 |
|
| 13650 |
|
| 13651 |
|
| 13652 |
|
| 13653 |
|
| 13654 |
|
| 13655 |
|
| 13656 |
|
| 13657 |
|
| 13658 |
|
| 13659 |
|
| 13660 |
|
| 13661 |
|
| 13662 |
|
| 13663 |
# Check whether --enable-dynamic was given. |
| 13664 |
if test ${enable_dynamic+y} |
| 13665 |
then : |
| 13666 |
enableval=$enable_dynamic; |
| 13667 |
if test "x$enable_dynamic" != xno; then |
| 13668 |
if test x"$hide_symbols" = x"yes" ; then |
| 13669 |
as_fn_error $? "Sorry, (deprecated) dynamic driver support not compatible with hidden symbols - use --disable-hidden-visibility" "$LINENO" 5 |
| 13670 |
fi |
| 13671 |
|
| 13672 |
case $host in |
| 13673 |
*-linux*|*-gnu) |
| 13674 |
INSTALL_SHARED="install-shared" |
| 13675 |
if test "x$X_DEVS" != x; then |
| 13676 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
| 13677 |
else |
| 13678 |
DYNAMIC_DEVS="" |
| 13679 |
fi |
| 13680 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
| 13681 |
X11_DEVS="" |
| 13682 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
| 13683 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
| 13684 |
;; |
| 13685 |
*bsd*) |
| 13686 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
| 13687 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
| 13688 |
X11_DEVS="" |
| 13689 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
| 13690 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
| 13691 |
;; |
| 13692 |
*-darwin*) |
| 13693 |
INSTALL_SHARED="install-shared" |
| 13694 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
| 13695 |
X11_DEVS="" |
| 13696 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
| 13697 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
| 13698 |
;; |
| 13699 |
*-sun*|*-solaris*) |
| 13700 |
DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" |
| 13701 |
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" |
| 13702 |
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |
| 13703 |
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" |
| 13704 |
;; |
| 13705 |
*) |
| 13706 |
as_fn_error $? "Sorry, dynamic driver support not available on this platform!" "$LINENO" 5 |
| 13707 |
;; |
| 13708 |
esac |
| 13709 |
fi |
| 13710 |
|
| 13711 |
fi |
| 13712 |
|
| 13713 |
|
| 13714 |
|
| 13715 |
|
| 13716 |
|
| 13717 |
|
| 13718 |
|
| 13719 |
|
| 13720 |
|
| 13721 |
|
| 13722 |
|
| 13723 |
|
| 13724 |
|
| 13725 |
|
| 13726 |
|
| 13727 |
|
| 13728 |
|
| 13729 |
|
| 13730 |
# Check whether --with-fontpath was given. |
| 13731 |
if test ${with_fontpath+y} |
| 13732 |
then : |
| 13733 |
withval=$with_fontpath; fontpath="$withval" |
| 13734 |
else $as_nop |
| 13735 |
fontpath="" |
| 13736 |
fi |
| 13737 |
|
| 13738 |
|
| 13739 |
if test "x$prefix" = xNONE; then |
| 13740 |
prefix=/usr/local |
| 13741 |
fi |
| 13742 |
|
| 13743 |
if test "x$datadir" = 'x${prefix}/share'; then |
| 13744 |
datadir="$prefix/share" |
| 13745 |
fi |
| 13746 |
|
| 13747 |
if test "x$fontpath" = "x"; then |
| 13748 |
# These font directories are used by various Linux distributions... |
| 13749 |
fontpath="$datadir/fonts/default/ghostscript" |
| 13750 |
fontpath="${fontpath}:$datadir/fonts/default/Type1" |
| 13751 |
fontpath="${fontpath}:$datadir/fonts/default/TrueType" |
| 13752 |
|
| 13753 |
# These font directories are used by IRIX... |
| 13754 |
fontpath="${fontpath}:/usr/lib/DPS/outline/base" |
| 13755 |
|
| 13756 |
# These font directories are used by Solaris... |
| 13757 |
fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type1" |
| 13758 |
fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/TrueType" |
| 13759 |
|
| 13760 |
# This font directory is used by CUPS... |
| 13761 |
if test "x$CUPSCONFIG" != x; then |
| 13762 |
fontpath="${fontpath}:`$CUPSCONFIG --datadir`/fonts" |
| 13763 |
fi |
| 13764 |
fi |
| 13765 |
|
| 13766 |
|
| 13767 |
|
| 13768 |
|
| 13769 |
# Check whether --with-tessdata was given. |
| 13770 |
if test ${with_tessdata+y} |
| 13771 |
then : |
| 13772 |
withval=$with_tessdata; tessdata="$withval" |
| 13773 |
else $as_nop |
| 13774 |
tessdata="" |
| 13775 |
fi |
| 13776 |
|
| 13777 |
|
| 13778 |
if test "x$tessdata" = "x"; then |
| 13779 |
tessdata="${datadir}/tessdata" |
| 13780 |
fi |
| 13781 |
|
| 13782 |
|
| 13783 |
|
| 13784 |
|
| 13785 |
|
| 13786 |
for ac_func in mkstemp |
| 13787 |
do : |
| 13788 |
ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
| 13789 |
if test "x$ac_cv_func_mkstemp" = xyes |
| 13790 |
then : |
| 13791 |
printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
| 13792 |
HAVE_MKSTEMP=-DHAVE_MKSTEMP |
| 13793 |
fi |
| 13794 |
|
| 13795 |
done |
| 13796 |
|
| 13797 |
|
| 13798 |
|
| 13799 |
for ac_func in fopen64 |
| 13800 |
do : |
| 13801 |
ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64" |
| 13802 |
if test "x$ac_cv_func_fopen64" = xyes |
| 13803 |
then : |
| 13804 |
printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h |
| 13805 |
HAVE_FILE64=-DHAVE_FILE64 |
| 13806 |
fi |
| 13807 |
|
| 13808 |
done |
| 13809 |
|
| 13810 |
|
| 13811 |
|
| 13812 |
for ac_func in fseeko |
| 13813 |
do : |
| 13814 |
ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" |
| 13815 |
if test "x$ac_cv_func_fseeko" = xyes |
| 13816 |
then : |
| 13817 |
printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 13818 |
HAVE_FSEEKO=-DHAVE_FSEEKO |
| 13819 |
fi |
| 13820 |
|
| 13821 |
done |
| 13822 |
|
| 13823 |
|
| 13824 |
|
| 13825 |
for ac_func in mkstemp64 |
| 13826 |
do : |
| 13827 |
ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64" |
| 13828 |
if test "x$ac_cv_func_mkstemp64" = xyes |
| 13829 |
then : |
| 13830 |
printf "%s\n" "#define HAVE_MKSTEMP64 1" >>confdefs.h |
| 13831 |
HAVE_MKSTEMP64=-DHAVE_MKSTEMP64 |
| 13832 |
fi |
| 13833 |
|
| 13834 |
done |
| 13835 |
|
| 13836 |
|
| 13837 |
|
| 13838 |
for ac_func in setlocale |
| 13839 |
do : |
| 13840 |
ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
| 13841 |
if test "x$ac_cv_func_setlocale" = xyes |
| 13842 |
then : |
| 13843 |
printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h |
| 13844 |
HAVE_SETLOCALE=-DHAVE_SETLOCALE |
| 13845 |
fi |
| 13846 |
|
| 13847 |
done |
| 13848 |
|
| 13849 |
|
| 13850 |
|
| 13851 |
for ac_func in strerror |
| 13852 |
do : |
| 13853 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 13854 |
if test "x$ac_cv_func_strerror" = xyes |
| 13855 |
then : |
| 13856 |
printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
| 13857 |
HAVE_STRERROR=-DHAVE_STRERROR |
| 13858 |
fi |
| 13859 |
|
| 13860 |
done |
| 13861 |
|
| 13862 |
|
| 13863 |
|
| 13864 |
for ac_func in isnan |
| 13865 |
do : |
| 13866 |
ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" |
| 13867 |
if test "x$ac_cv_func_isnan" = xyes |
| 13868 |
then : |
| 13869 |
printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h |
| 13870 |
HAVE_ISNAN=-DHAVE_ISNAN |
| 13871 |
fi |
| 13872 |
|
| 13873 |
done |
| 13874 |
|
| 13875 |
|
| 13876 |
|
| 13877 |
for ac_func in isinf |
| 13878 |
do : |
| 13879 |
ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf" |
| 13880 |
if test "x$ac_cv_func_isinf" = xyes |
| 13881 |
then : |
| 13882 |
printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h |
| 13883 |
HAVE_ISINF=-DHAVE_ISINF |
| 13884 |
fi |
| 13885 |
|
| 13886 |
done |
| 13887 |
|
| 13888 |
|
| 13889 |
|
| 13890 |
for ac_func in fpclassify |
| 13891 |
do : |
| 13892 |
ac_fn_c_check_func "$LINENO" "fpclassify" "ac_cv_func_fpclassify" |
| 13893 |
if test "x$ac_cv_func_fpclassify" = xyes |
| 13894 |
then : |
| 13895 |
printf "%s\n" "#define HAVE_FPCLASSIFY 1" >>confdefs.h |
| 13896 |
HAVE_FPCLASSIFY=-DHAVE_FPCLASSIFY |
| 13897 |
fi |
| 13898 |
|
| 13899 |
done |
| 13900 |
|
| 13901 |
|
| 13902 |
|
| 13903 |
for ac_func in snprintf |
| 13904 |
do : |
| 13905 |
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 13906 |
if test "x$ac_cv_func_snprintf" = xyes |
| 13907 |
then : |
| 13908 |
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 13909 |
GCFLAGS="$GCFLAGS -DHAVE_SNPRINTF" |
| 13910 |
fi |
| 13911 |
|
| 13912 |
done |
| 13913 |
|
| 13914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 13915 |
printf %s "checking for egrep... " >&6; } |
| 13916 |
if test ${ac_cv_path_EGREP+y} |
| 13917 |
then : |
| 13918 |
printf %s "(cached) " >&6 |
| 13919 |
else $as_nop |
| 13920 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 13921 |
then ac_cv_path_EGREP="$GREP -E" |
| 13922 |
else |
| 13923 |
if test -z "$EGREP"; then |
| 13924 |
ac_path_EGREP_found=false |
| 13925 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 13926 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13927 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 13928 |
do |
| 13929 |
IFS=$as_save_IFS |
| 13930 |
case $as_dir in #((( |
| 13931 |
'') as_dir=./ ;; |
| 13932 |
*/) ;; |
| 13933 |
*) as_dir=$as_dir/ ;; |
| 13934 |
esac |
| 13935 |
for ac_prog in egrep |
| 13936 |
do |
| 13937 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13938 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 13939 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 13940 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 13941 |
# Check for GNU $ac_path_EGREP |
| 13942 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 13943 |
*GNU*) |
| 13944 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 13945 |
*) |
| 13946 |
ac_count=0 |
| 13947 |
printf %s 0123456789 >"conftest.in" |
| 13948 |
while : |
| 13949 |
do |
| 13950 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 13951 |
mv "conftest.tmp" "conftest.in" |
| 13952 |
cp "conftest.in" "conftest.nl" |
| 13953 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
| 13954 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 13955 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 13956 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 13957 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 13958 |
# Best one so far, save it but keep looking for a better one |
| 13959 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 13960 |
ac_path_EGREP_max=$ac_count |
| 13961 |
fi |
| 13962 |
# 10*(2^10) chars as input seems more than enough |
| 13963 |
test $ac_count -gt 10 && break |
| 13964 |
done |
| 13965 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 13966 |
esac |
| 13967 |
|
| 13968 |
$ac_path_EGREP_found && break 3 |
| 13969 |
done |
| 13970 |
done |
| 13971 |
done |
| 13972 |
IFS=$as_save_IFS |
| 13973 |
if test -z "$ac_cv_path_EGREP"; then |
| 13974 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 13975 |
fi |
| 13976 |
else |
| 13977 |
ac_cv_path_EGREP=$EGREP |
| 13978 |
fi |
| 13979 |
|
| 13980 |
fi |
| 13981 |
fi |
| 13982 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 13983 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 13984 |
EGREP="$ac_cv_path_EGREP" |
| 13985 |
|
| 13986 |
|
| 13987 |
if test $ac_cv_c_compiler_gnu = yes; then |
| 13988 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| 13989 |
printf %s "checking whether $CC needs -traditional... " >&6; } |
| 13990 |
if test ${ac_cv_prog_gcc_traditional+y} |
| 13991 |
then : |
| 13992 |
printf %s "(cached) " >&6 |
| 13993 |
else $as_nop |
| 13994 |
ac_pattern="Autoconf.*'x'" |
| 13995 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13996 |
/* end confdefs.h. */ |
| 13997 |
#include <sgtty.h> |
| 13998 |
Autoconf TIOCGETP |
| 13999 |
_ACEOF |
| 14000 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14001 |
$EGREP "$ac_pattern" >/dev/null 2>&1 |
| 14002 |
then : |
| 14003 |
ac_cv_prog_gcc_traditional=yes |
| 14004 |
else $as_nop |
| 14005 |
ac_cv_prog_gcc_traditional=no |
| 14006 |
fi |
| 14007 |
rm -rf conftest* |
| 14008 |
|
| 14009 |
|
| 14010 |
if test $ac_cv_prog_gcc_traditional = no; then |
| 14011 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14012 |
/* end confdefs.h. */ |
| 14013 |
#include <termio.h> |
| 14014 |
Autoconf TCGETA |
| 14015 |
_ACEOF |
| 14016 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14017 |
$EGREP "$ac_pattern" >/dev/null 2>&1 |
| 14018 |
then : |
| 14019 |
ac_cv_prog_gcc_traditional=yes |
| 14020 |
fi |
| 14021 |
rm -rf conftest* |
| 14022 |
|
| 14023 |
fi |
| 14024 |
fi |
| 14025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| 14026 |
printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } |
| 14027 |
if test $ac_cv_prog_gcc_traditional = yes; then |
| 14028 |
CC="$CC -traditional" |
| 14029 |
fi |
| 14030 |
fi |
| 14031 |
|
| 14032 |
|
| 14033 |
|
| 14034 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 14035 |
" |
| 14036 |
if test "x$ac_cv_type_pid_t" = xyes |
| 14037 |
then : |
| 14038 |
|
| 14039 |
else $as_nop |
| 14040 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14041 |
/* end confdefs.h. */ |
| 14042 |
|
| 14043 |
#if defined _WIN64 && !defined __CYGWIN__ |
| 14044 |
LLP64 |
| 14045 |
#endif |
| 14046 |
|
| 14047 |
int |
| 14048 |
main (void) |
| 14049 |
{ |
| 14050 |
|
| 14051 |
; |
| 14052 |
return 0; |
| 14053 |
} |
| 14054 |
|
| 14055 |
_ACEOF |
| 14056 |
if ac_fn_c_try_compile "$LINENO" |
| 14057 |
then : |
| 14058 |
ac_pid_type='int' |
| 14059 |
else $as_nop |
| 14060 |
ac_pid_type='__int64' |
| 14061 |
fi |
| 14062 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14063 |
|
| 14064 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 14065 |
|
| 14066 |
|
| 14067 |
fi |
| 14068 |
|
| 14069 |
|
| 14070 |
|
| 14071 |
ac_func= |
| 14072 |
for ac_item in $ac_func_c_list |
| 14073 |
do |
| 14074 |
if test $ac_func; then |
| 14075 |
ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func |
| 14076 |
if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then |
| 14077 |
echo "#define $ac_item 1" >> confdefs.h |
| 14078 |
fi |
| 14079 |
ac_func= |
| 14080 |
else |
| 14081 |
ac_func=$ac_item |
| 14082 |
fi |
| 14083 |
done |
| 14084 |
|
| 14085 |
|
| 14086 |
|
| 14087 |
if test "x$ac_cv_func_fork" = xyes; then |
| 14088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 14089 |
printf %s "checking for working fork... " >&6; } |
| 14090 |
if test ${ac_cv_func_fork_works+y} |
| 14091 |
then : |
| 14092 |
printf %s "(cached) " >&6 |
| 14093 |
else $as_nop |
| 14094 |
if test "$cross_compiling" = yes |
| 14095 |
then : |
| 14096 |
ac_cv_func_fork_works=cross |
| 14097 |
else $as_nop |
| 14098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14099 |
/* end confdefs.h. */ |
| 14100 |
$ac_includes_default |
| 14101 |
int |
| 14102 |
main (void) |
| 14103 |
{ |
| 14104 |
|
| 14105 |
/* By Ruediger Kuhlmann. */ |
| 14106 |
return fork () < 0; |
| 14107 |
|
| 14108 |
; |
| 14109 |
return 0; |
| 14110 |
} |
| 14111 |
_ACEOF |
| 14112 |
if ac_fn_c_try_run "$LINENO" |
| 14113 |
then : |
| 14114 |
ac_cv_func_fork_works=yes |
| 14115 |
else $as_nop |
| 14116 |
ac_cv_func_fork_works=no |
| 14117 |
fi |
| 14118 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14119 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14120 |
fi |
| 14121 |
|
| 14122 |
fi |
| 14123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 14124 |
printf "%s\n" "$ac_cv_func_fork_works" >&6; } |
| 14125 |
|
| 14126 |
else |
| 14127 |
ac_cv_func_fork_works=$ac_cv_func_fork |
| 14128 |
fi |
| 14129 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 14130 |
case $host in |
| 14131 |
*-*-amigaos* | *-*-msdosdjgpp*) |
| 14132 |
# Override, as these systems have only a dummy fork() stub |
| 14133 |
ac_cv_func_fork_works=no |
| 14134 |
;; |
| 14135 |
*) |
| 14136 |
ac_cv_func_fork_works=yes |
| 14137 |
;; |
| 14138 |
esac |
| 14139 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 14140 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 14141 |
fi |
| 14142 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14143 |
if test "x$ac_cv_func_vfork" = xyes; then |
| 14144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 14145 |
printf %s "checking for working vfork... " >&6; } |
| 14146 |
if test ${ac_cv_func_vfork_works+y} |
| 14147 |
then : |
| 14148 |
printf %s "(cached) " >&6 |
| 14149 |
else $as_nop |
| 14150 |
if test "$cross_compiling" = yes |
| 14151 |
then : |
| 14152 |
ac_cv_func_vfork_works=cross |
| 14153 |
else $as_nop |
| 14154 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14155 |
/* end confdefs.h. */ |
| 14156 |
/* Thanks to Paul Eggert for this test. */ |
| 14157 |
$ac_includes_default |
| 14158 |
#include <signal.h> |
| 14159 |
#include <sys/wait.h> |
| 14160 |
#ifdef HAVE_VFORK_H |
| 14161 |
# include <vfork.h> |
| 14162 |
#endif |
| 14163 |
|
| 14164 |
static void |
| 14165 |
do_nothing (int sig) |
| 14166 |
{ |
| 14167 |
(void) sig; |
| 14168 |
} |
| 14169 |
|
| 14170 |
/* On some sparc systems, changes by the child to local and incoming |
| 14171 |
argument registers are propagated back to the parent. The compiler |
| 14172 |
is told about this with #include <vfork.h>, but some compilers |
| 14173 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 14174 |
static variable whose address is put into a register that is |
| 14175 |
clobbered by the vfork. */ |
| 14176 |
static void |
| 14177 |
sparc_address_test (int arg) |
| 14178 |
{ |
| 14179 |
static pid_t child; |
| 14180 |
if (!child) { |
| 14181 |
child = vfork (); |
| 14182 |
if (child < 0) { |
| 14183 |
perror ("vfork"); |
| 14184 |
_exit(2); |
| 14185 |
} |
| 14186 |
if (!child) { |
| 14187 |
arg = getpid(); |
| 14188 |
write(-1, "", 0); |
| 14189 |
_exit (arg); |
| 14190 |
} |
| 14191 |
} |
| 14192 |
} |
| 14193 |
|
| 14194 |
int |
| 14195 |
main (void) |
| 14196 |
{ |
| 14197 |
pid_t parent = getpid (); |
| 14198 |
pid_t child; |
| 14199 |
|
| 14200 |
sparc_address_test (0); |
| 14201 |
|
| 14202 |
/* On Solaris 2.4, changes by the child to the signal handler |
| 14203 |
also munge signal handlers in the parent. To detect this, |
| 14204 |
start by putting the parent's handler in a known state. */ |
| 14205 |
signal (SIGTERM, SIG_DFL); |
| 14206 |
|
| 14207 |
child = vfork (); |
| 14208 |
|
| 14209 |
if (child == 0) { |
| 14210 |
/* Here is another test for sparc vfork register problems. This |
| 14211 |
test uses lots of local variables, at least as many local |
| 14212 |
variables as main has allocated so far including compiler |
| 14213 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 14214 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 14215 |
reuse the register of parent for one of the local variables, |
| 14216 |
since it will think that parent can't possibly be used any more |
| 14217 |
in this routine. Assigning to the local variable will thus |
| 14218 |
munge parent in the parent process. */ |
| 14219 |
pid_t |
| 14220 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 14221 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 14222 |
/* Convince the compiler that p..p7 are live; otherwise, it might |
| 14223 |
use the same hardware register for all 8 local variables. */ |
| 14224 |
if (p != p1 || p != p2 || p != p3 || p != p4 |
| 14225 |
|| p != p5 || p != p6 || p != p7) |
| 14226 |
_exit(1); |
| 14227 |
|
| 14228 |
/* Alter the child's signal handler. */ |
| 14229 |
if (signal (SIGTERM, do_nothing) != SIG_DFL) |
| 14230 |
_exit(1); |
| 14231 |
|
| 14232 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 14233 |
from child file descriptors. If the child closes a descriptor |
| 14234 |
before it execs or exits, this munges the parent's descriptor |
| 14235 |
as well. Test for this by closing stdout in the child. */ |
| 14236 |
_exit(close(fileno(stdout)) != 0); |
| 14237 |
} else { |
| 14238 |
int status; |
| 14239 |
struct stat st; |
| 14240 |
|
| 14241 |
while (wait(&status) != child) |
| 14242 |
; |
| 14243 |
return ( |
| 14244 |
/* Was there some problem with vforking? */ |
| 14245 |
child < 0 |
| 14246 |
|
| 14247 |
/* Did the child munge the parent's signal handler? */ |
| 14248 |
|| signal (SIGTERM, SIG_DFL) != SIG_DFL |
| 14249 |
|
| 14250 |
/* Did the child fail? (This shouldn't happen.) */ |
| 14251 |
|| status |
| 14252 |
|
| 14253 |
/* Did the vfork/compiler bug occur? */ |
| 14254 |
|| parent != getpid() |
| 14255 |
|
| 14256 |
/* Did the file descriptor bug occur? */ |
| 14257 |
|| fstat(fileno(stdout), &st) != 0 |
| 14258 |
); |
| 14259 |
} |
| 14260 |
} |
| 14261 |
_ACEOF |
| 14262 |
if ac_fn_c_try_run "$LINENO" |
| 14263 |
then : |
| 14264 |
ac_cv_func_vfork_works=yes |
| 14265 |
else $as_nop |
| 14266 |
ac_cv_func_vfork_works=no |
| 14267 |
fi |
| 14268 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14269 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14270 |
fi |
| 14271 |
|
| 14272 |
fi |
| 14273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 14274 |
printf "%s\n" "$ac_cv_func_vfork_works" >&6; } |
| 14275 |
|
| 14276 |
fi; |
| 14277 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 14278 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 14280 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 14281 |
fi |
| 14282 |
|
| 14283 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
| 14284 |
|
| 14285 |
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 14286 |
|
| 14287 |
else |
| 14288 |
|
| 14289 |
printf "%s\n" "#define vfork fork" >>confdefs.h |
| 14290 |
|
| 14291 |
fi |
| 14292 |
if test "x$ac_cv_func_fork_works" = xyes; then |
| 14293 |
|
| 14294 |
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 14295 |
|
| 14296 |
fi |
| 14297 |
|
| 14298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
| 14299 |
printf %s "checking for GNU libc compatible malloc... " >&6; } |
| 14300 |
if test ${ac_cv_func_malloc_0_nonnull+y} |
| 14301 |
then : |
| 14302 |
printf %s "(cached) " >&6 |
| 14303 |
else $as_nop |
| 14304 |
if test "$cross_compiling" = yes |
| 14305 |
then : |
| 14306 |
case "$host_os" in # (( |
| 14307 |
# Guess yes on platforms where we know the result. |
| 14308 |
*-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ |
| 14309 |
| hpux* | solaris* | cygwin* | mingw* | msys* ) |
| 14310 |
ac_cv_func_malloc_0_nonnull=yes ;; |
| 14311 |
# If we don't know, assume the worst. |
| 14312 |
*) ac_cv_func_malloc_0_nonnull=no ;; |
| 14313 |
esac |
| 14314 |
else $as_nop |
| 14315 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14316 |
/* end confdefs.h. */ |
| 14317 |
#include <stdlib.h> |
| 14318 |
|
| 14319 |
int |
| 14320 |
main (void) |
| 14321 |
{ |
| 14322 |
void *p = malloc (0); |
| 14323 |
int result = !p; |
| 14324 |
free (p); |
| 14325 |
return result; |
| 14326 |
; |
| 14327 |
return 0; |
| 14328 |
} |
| 14329 |
_ACEOF |
| 14330 |
if ac_fn_c_try_run "$LINENO" |
| 14331 |
then : |
| 14332 |
ac_cv_func_malloc_0_nonnull=yes |
| 14333 |
else $as_nop |
| 14334 |
ac_cv_func_malloc_0_nonnull=no |
| 14335 |
fi |
| 14336 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14337 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14338 |
fi |
| 14339 |
|
| 14340 |
fi |
| 14341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 14342 |
printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } |
| 14343 |
if test $ac_cv_func_malloc_0_nonnull = yes |
| 14344 |
then : |
| 14345 |
|
| 14346 |
printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h |
| 14347 |
|
| 14348 |
else $as_nop |
| 14349 |
printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h |
| 14350 |
|
| 14351 |
case " $LIBOBJS " in |
| 14352 |
*" malloc.$ac_objext "* ) ;; |
| 14353 |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
| 14354 |
;; |
| 14355 |
esac |
| 14356 |
|
| 14357 |
|
| 14358 |
printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h |
| 14359 |
|
| 14360 |
fi |
| 14361 |
|
| 14362 |
|
| 14363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| 14364 |
printf %s "checking for working memcmp... " >&6; } |
| 14365 |
if test ${ac_cv_func_memcmp_working+y} |
| 14366 |
then : |
| 14367 |
printf %s "(cached) " >&6 |
| 14368 |
else $as_nop |
| 14369 |
if test "$cross_compiling" = yes |
| 14370 |
then : |
| 14371 |
ac_cv_func_memcmp_working=no |
| 14372 |
else $as_nop |
| 14373 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14374 |
/* end confdefs.h. */ |
| 14375 |
$ac_includes_default |
| 14376 |
int |
| 14377 |
main (void) |
| 14378 |
{ |
| 14379 |
|
| 14380 |
/* Some versions of memcmp are not 8-bit clean. */ |
| 14381 |
char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 14382 |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 14383 |
return 1; |
| 14384 |
|
| 14385 |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 14386 |
or more and with at least one buffer not starting on a 4-byte boundary. |
| 14387 |
William Lewis provided this test program. */ |
| 14388 |
{ |
| 14389 |
char foo[21]; |
| 14390 |
char bar[21]; |
| 14391 |
int i; |
| 14392 |
for (i = 0; i < 4; i++) |
| 14393 |
{ |
| 14394 |
char *a = foo + i; |
| 14395 |
char *b = bar + i; |
| 14396 |
strcpy (a, "--------01111111"); |
| 14397 |
strcpy (b, "--------10000000"); |
| 14398 |
if (memcmp (a, b, 16) >= 0) |
| 14399 |
return 1; |
| 14400 |
} |
| 14401 |
return 0; |
| 14402 |
} |
| 14403 |
|
| 14404 |
; |
| 14405 |
return 0; |
| 14406 |
} |
| 14407 |
_ACEOF |
| 14408 |
if ac_fn_c_try_run "$LINENO" |
| 14409 |
then : |
| 14410 |
ac_cv_func_memcmp_working=yes |
| 14411 |
else $as_nop |
| 14412 |
ac_cv_func_memcmp_working=no |
| 14413 |
fi |
| 14414 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14415 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14416 |
fi |
| 14417 |
|
| 14418 |
fi |
| 14419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
| 14420 |
printf "%s\n" "$ac_cv_func_memcmp_working" >&6; } |
| 14421 |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 14422 |
*" memcmp.$ac_objext "* ) ;; |
| 14423 |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 14424 |
;; |
| 14425 |
esac |
| 14426 |
|
| 14427 |
|
| 14428 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
| 14429 |
printf %s "checking whether lstat correctly handles trailing slash... " >&6; } |
| 14430 |
if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} |
| 14431 |
then : |
| 14432 |
printf %s "(cached) " >&6 |
| 14433 |
else $as_nop |
| 14434 |
rm -f conftest.sym conftest.file |
| 14435 |
echo >conftest.file |
| 14436 |
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
| 14437 |
if test "$cross_compiling" = yes |
| 14438 |
then : |
| 14439 |
case "$host_os" in # (( |
| 14440 |
# Guess yes on glibc systems. |
| 14441 |
*-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; |
| 14442 |
# If we don't know, assume the worst. |
| 14443 |
*) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; |
| 14444 |
esac |
| 14445 |
else $as_nop |
| 14446 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14447 |
/* end confdefs.h. */ |
| 14448 |
$ac_includes_default |
| 14449 |
int |
| 14450 |
main (void) |
| 14451 |
{ |
| 14452 |
struct stat sbuf; |
| 14453 |
/* Linux will dereference the symlink and fail, as required by POSIX. |
| 14454 |
That is better in the sense that it means we will not |
| 14455 |
have to compile and use the lstat wrapper. */ |
| 14456 |
return lstat ("conftest.sym/", &sbuf) == 0; |
| 14457 |
; |
| 14458 |
return 0; |
| 14459 |
} |
| 14460 |
_ACEOF |
| 14461 |
if ac_fn_c_try_run "$LINENO" |
| 14462 |
then : |
| 14463 |
ac_cv_func_lstat_dereferences_slashed_symlink=yes |
| 14464 |
else $as_nop |
| 14465 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
| 14466 |
fi |
| 14467 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14468 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14469 |
fi |
| 14470 |
|
| 14471 |
else |
| 14472 |
# If the `ln -s' command failed, then we probably don't even |
| 14473 |
# have an lstat function. |
| 14474 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
| 14475 |
fi |
| 14476 |
rm -f conftest.sym conftest.file |
| 14477 |
|
| 14478 |
fi |
| 14479 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
| 14480 |
printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
| 14481 |
|
| 14482 |
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
| 14483 |
|
| 14484 |
printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h |
| 14485 |
|
| 14486 |
|
| 14487 |
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
| 14488 |
case " $LIBOBJS " in |
| 14489 |
*" lstat.$ac_objext "* ) ;; |
| 14490 |
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
| 14491 |
;; |
| 14492 |
esac |
| 14493 |
|
| 14494 |
fi |
| 14495 |
|
| 14496 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
| 14497 |
printf %s "checking whether stat accepts an empty string... " >&6; } |
| 14498 |
if test ${ac_cv_func_stat_empty_string_bug+y} |
| 14499 |
then : |
| 14500 |
printf %s "(cached) " >&6 |
| 14501 |
else $as_nop |
| 14502 |
if test "$cross_compiling" = yes |
| 14503 |
then : |
| 14504 |
ac_cv_func_stat_empty_string_bug=yes |
| 14505 |
else $as_nop |
| 14506 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14507 |
/* end confdefs.h. */ |
| 14508 |
$ac_includes_default |
| 14509 |
int |
| 14510 |
main (void) |
| 14511 |
{ |
| 14512 |
struct stat sbuf; |
| 14513 |
return stat ("", &sbuf) == 0; |
| 14514 |
; |
| 14515 |
return 0; |
| 14516 |
} |
| 14517 |
_ACEOF |
| 14518 |
if ac_fn_c_try_run "$LINENO" |
| 14519 |
then : |
| 14520 |
ac_cv_func_stat_empty_string_bug=no |
| 14521 |
else $as_nop |
| 14522 |
ac_cv_func_stat_empty_string_bug=yes |
| 14523 |
fi |
| 14524 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14525 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14526 |
fi |
| 14527 |
|
| 14528 |
fi |
| 14529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
| 14530 |
printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } |
| 14531 |
if test $ac_cv_func_stat_empty_string_bug = yes; then |
| 14532 |
case " $LIBOBJS " in |
| 14533 |
*" stat.$ac_objext "* ) ;; |
| 14534 |
*) LIBOBJS="$LIBOBJS stat.$ac_objext" |
| 14535 |
;; |
| 14536 |
esac |
| 14537 |
|
| 14538 |
|
| 14539 |
printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h |
| 14540 |
|
| 14541 |
fi |
| 14542 |
|
| 14543 |
|
| 14544 |
|
| 14545 |
if test "x$ac_cv_func_vprintf" = xno |
| 14546 |
then : |
| 14547 |
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 14548 |
if test "x$ac_cv_func__doprnt" = xyes |
| 14549 |
then : |
| 14550 |
|
| 14551 |
printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h |
| 14552 |
|
| 14553 |
fi |
| 14554 |
|
| 14555 |
fi |
| 14556 |
ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero" |
| 14557 |
if test "x$ac_cv_func_bzero" = xyes |
| 14558 |
then : |
| 14559 |
printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h |
| 14560 |
|
| 14561 |
fi |
| 14562 |
ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
| 14563 |
if test "x$ac_cv_func_dup2" = xyes |
| 14564 |
then : |
| 14565 |
printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h |
| 14566 |
|
| 14567 |
fi |
| 14568 |
ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" |
| 14569 |
if test "x$ac_cv_func_floor" = xyes |
| 14570 |
then : |
| 14571 |
printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
| 14572 |
|
| 14573 |
fi |
| 14574 |
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 14575 |
if test "x$ac_cv_func_gettimeofday" = xyes |
| 14576 |
then : |
| 14577 |
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 14578 |
|
| 14579 |
fi |
| 14580 |
ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" |
| 14581 |
if test "x$ac_cv_func_memchr" = xyes |
| 14582 |
then : |
| 14583 |
printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h |
| 14584 |
|
| 14585 |
fi |
| 14586 |
ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
| 14587 |
if test "x$ac_cv_func_memmove" = xyes |
| 14588 |
then : |
| 14589 |
printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h |
| 14590 |
|
| 14591 |
fi |
| 14592 |
ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 14593 |
if test "x$ac_cv_func_memset" = xyes |
| 14594 |
then : |
| 14595 |
printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h |
| 14596 |
|
| 14597 |
fi |
| 14598 |
ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" |
| 14599 |
if test "x$ac_cv_func_mkdir" = xyes |
| 14600 |
then : |
| 14601 |
printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h |
| 14602 |
|
| 14603 |
fi |
| 14604 |
ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" |
| 14605 |
if test "x$ac_cv_func_mkfifo" = xyes |
| 14606 |
then : |
| 14607 |
printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h |
| 14608 |
|
| 14609 |
fi |
| 14610 |
ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf" |
| 14611 |
if test "x$ac_cv_func_modf" = xyes |
| 14612 |
then : |
| 14613 |
printf "%s\n" "#define HAVE_MODF 1" >>confdefs.h |
| 14614 |
|
| 14615 |
fi |
| 14616 |
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| 14617 |
if test "x$ac_cv_func_pow" = xyes |
| 14618 |
then : |
| 14619 |
printf "%s\n" "#define HAVE_POW 1" >>confdefs.h |
| 14620 |
|
| 14621 |
fi |
| 14622 |
ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 14623 |
if test "x$ac_cv_func_putenv" = xyes |
| 14624 |
then : |
| 14625 |
printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 14626 |
|
| 14627 |
fi |
| 14628 |
ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint" |
| 14629 |
if test "x$ac_cv_func_rint" = xyes |
| 14630 |
then : |
| 14631 |
printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h |
| 14632 |
|
| 14633 |
fi |
| 14634 |
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 14635 |
if test "x$ac_cv_func_setenv" = xyes |
| 14636 |
then : |
| 14637 |
printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 14638 |
|
| 14639 |
fi |
| 14640 |
ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" |
| 14641 |
if test "x$ac_cv_func_sqrt" = xyes |
| 14642 |
then : |
| 14643 |
printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h |
| 14644 |
|
| 14645 |
fi |
| 14646 |
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 14647 |
if test "x$ac_cv_func_strchr" = xyes |
| 14648 |
then : |
| 14649 |
printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h |
| 14650 |
|
| 14651 |
fi |
| 14652 |
ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" |
| 14653 |
if test "x$ac_cv_func_strrchr" = xyes |
| 14654 |
then : |
| 14655 |
printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h |
| 14656 |
|
| 14657 |
fi |
| 14658 |
ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn" |
| 14659 |
if test "x$ac_cv_func_strspn" = xyes |
| 14660 |
then : |
| 14661 |
printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h |
| 14662 |
|
| 14663 |
fi |
| 14664 |
ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
| 14665 |
if test "x$ac_cv_func_strstr" = xyes |
| 14666 |
then : |
| 14667 |
printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h |
| 14668 |
|
| 14669 |
fi |
| 14670 |
|
| 14671 |
|
| 14672 |
|
| 14673 |
case $host in |
| 14674 |
*sparc*) |
| 14675 |
GCFLAGS="$GCFLAGS -DGS_USE_MEMORY_HEADER_ID=0" |
| 14676 |
;; |
| 14677 |
esac |
| 14678 |
|
| 14679 |
LCMS_ENDIAN= |
| 14680 |
LCMS2_ENDIAN= |
| 14681 |
|
| 14682 |
if test x"$BIGENDIAN" != x"0"; then |
| 14683 |
LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$BIGENDIAN" |
| 14684 |
LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$BIGENDIAN" |
| 14685 |
fi |
| 14686 |
|
| 14687 |
|
| 14688 |
|
| 14689 |
|
| 14690 |
|
| 14691 |
ALIGN_TEXT_PROG_INCS="\ |
| 14692 |
#include <stdio.h> |
| 14693 |
#include <stdlib.h> |
| 14694 |
" |
| 14695 |
|
| 14696 |
|
| 14697 |
ALIGN_TEXT_PROG="\ |
| 14698 |
struct altest |
| 14699 |
{ |
| 14700 |
char a; |
| 14701 |
int b; |
| 14702 |
long c; |
| 14703 |
long long d; |
| 14704 |
float e; |
| 14705 |
double f; |
| 14706 |
void *g; |
| 14707 |
}; |
| 14708 |
struct altest *a; |
| 14709 |
struct altest d; |
| 14710 |
char *b, *c, *lim; |
| 14711 |
int ret = 0; |
| 14712 |
c = b = malloc(64 * sizeof(struct altest)); |
| 14713 |
lim = b + (64 * sizeof(struct altest)); |
| 14714 |
do |
| 14715 |
{ |
| 14716 |
b++; |
| 14717 |
if ((b >= lim) || |
| 14718 |
((((unsigned int)b) & 4) == 0 && (((unsigned int)b) & 8) != 0)) |
| 14719 |
{ |
| 14720 |
break; |
| 14721 |
} |
| 14722 |
} while(1); |
| 14723 |
if (b >= lim) |
| 14724 |
{ |
| 14725 |
ret = -1; |
| 14726 |
} |
| 14727 |
else |
| 14728 |
{ |
| 14729 |
a = (struct altest *)b; |
| 14730 |
b = a->g; |
| 14731 |
ret = 0; |
| 14732 |
} |
| 14733 |
free(c); |
| 14734 |
exit(ret); |
| 14735 |
" |
| 14736 |
|
| 14737 |
|
| 14738 |
GS_MEMPTR_ALIGNMENT= |
| 14739 |
|
| 14740 |
|
| 14741 |
# Check whether --with-memory-alignment was given. |
| 14742 |
if test ${with_memory_alignment+y} |
| 14743 |
then : |
| 14744 |
withval=$with_memory_alignment; GS_MEMPTR_ALIGNMENT=$with_memory_alignment |
| 14745 |
else $as_nop |
| 14746 |
GS_MEMPTR_ALIGNMENT=check |
| 14747 |
fi |
| 14748 |
|
| 14749 |
|
| 14750 |
if test x"$GS_MEMPTR_ALIGNMENT" = xcheck ; then |
| 14751 |
case $host in |
| 14752 |
*hpux*|*-sun*|*-aix*|*-solaris*) |
| 14753 |
GS_MEMPTR_ALIGNMENT=8 |
| 14754 |
;; |
| 14755 |
*) |
| 14756 |
;; |
| 14757 |
esac |
| 14758 |
fi |
| 14759 |
|
| 14760 |
if test x"$GS_MEMPTR_ALIGNMENT" = xcheck ; then |
| 14761 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking minimum memory pointer alignment" >&5 |
| 14762 |
printf %s "checking minimum memory pointer alignment... " >&6; } |
| 14763 |
if test "$cross_compiling" = yes |
| 14764 |
then : |
| 14765 |
GS_MEMPTR_ALIGNMENT=4;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross compiling: assuming 4 byte - otherwise use \"--with-memory-alignment=\"" >&5 |
| 14766 |
printf "%s\n" "cross compiling: assuming 4 byte - otherwise use \"--with-memory-alignment=\"" >&6; } |
| 14767 |
else $as_nop |
| 14768 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14769 |
/* end confdefs.h. */ |
| 14770 |
$ALIGN_TEXT_PROG_INCS |
| 14771 |
int |
| 14772 |
main (void) |
| 14773 |
{ |
| 14774 |
|
| 14775 |
$ALIGN_TEXT_PROG |
| 14776 |
|
| 14777 |
; |
| 14778 |
return 0; |
| 14779 |
} |
| 14780 |
_ACEOF |
| 14781 |
if ac_fn_c_try_run "$LINENO" |
| 14782 |
then : |
| 14783 |
GS_MEMPTR_ALIGNMENT=4;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 14784 |
printf "%s\n" "done" >&6; } |
| 14785 |
else $as_nop |
| 14786 |
GS_MEMPTR_ALIGNMENT=8;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 14787 |
printf "%s\n" "done" >&6; } |
| 14788 |
fi |
| 14789 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14790 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14791 |
fi |
| 14792 |
|
| 14793 |
|
| 14794 |
fi |
| 14795 |
|
| 14796 |
if test x"$GS_MEMPTR_ALIGNMENT" != x4 && test x"$GS_MEMPTR_ALIGNMENT" != x8 ; then |
| 14797 |
as_fn_error -1 "4 and 8 are the only valid values for \"--with-memory-alignment\"" "$LINENO" 5 |
| 14798 |
fi |
| 14799 |
|
| 14800 |
if test x"$GS_MEMPTR_ALIGNMENT" != x4 || test x"$with_memory_alignment" != x ; then |
| 14801 |
LCMS2_PTR_ALIGNMENT="-DCMS_PTR_ALIGNMENT=$GS_MEMPTR_ALIGNMENT" |
| 14802 |
|
| 14803 |
GCFLAGS="$GCFLAGS -DGS_MEMPTR_ALIGNMENT=$GS_MEMPTR_ALIGNMENT" |
| 14804 |
fi |
| 14805 |
|
| 14806 |
|
| 14807 |
|
| 14808 |
|
| 14809 |
ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf" |
| 14810 |
if test "x$ac_cv_func_sqrtf" = xyes |
| 14811 |
then : |
| 14812 |
SQRTF_SUBST= |
| 14813 |
else $as_nop |
| 14814 |
SQRTF_SUBST="-Dsqrtf=\"(float)sqrt\"" |
| 14815 |
fi |
| 14816 |
|
| 14817 |
|
| 14818 |
|
| 14819 |
|
| 14820 |
|
| 14821 |
for ac_func in strnlen |
| 14822 |
do : |
| 14823 |
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" |
| 14824 |
if test "x$ac_cv_func_strnlen" = xyes |
| 14825 |
then : |
| 14826 |
printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h |
| 14827 |
HAVE_STRNLEN= |
| 14828 |
else $as_nop |
| 14829 |
HAVE_STRNLEN="-D\"strnlen(a,b)=strlen(a)\"" |
| 14830 |
fi |
| 14831 |
|
| 14832 |
done |
| 14833 |
|
| 14834 |
GCFLAGS="$GCFLAGS $HAVE_STRNLEN" |
| 14835 |
|
| 14836 |
|
| 14837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking byteswap support" >&5 |
| 14838 |
printf %s "checking byteswap support... " >&6; } |
| 14839 |
|
| 14840 |
HAVE_BSWAP32="" |
| 14841 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14842 |
/* end confdefs.h. */ |
| 14843 |
|
| 14844 |
int |
| 14845 |
main (void) |
| 14846 |
{ |
| 14847 |
|
| 14848 |
int a = 0; |
| 14849 |
int b = __builtin_bswap32(a); |
| 14850 |
return(0); |
| 14851 |
|
| 14852 |
; |
| 14853 |
return 0; |
| 14854 |
} |
| 14855 |
_ACEOF |
| 14856 |
if ac_fn_c_try_link "$LINENO" |
| 14857 |
then : |
| 14858 |
HAVE_BSWAP32="-DHAVE_BSWAP32" |
| 14859 |
else $as_nop |
| 14860 |
HAVE_BSWAP32="" |
| 14861 |
fi |
| 14862 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14863 |
conftest$ac_exeext conftest.$ac_ext |
| 14864 |
|
| 14865 |
# Check whether --enable-bswap32 was given. |
| 14866 |
if test ${enable_bswap32+y} |
| 14867 |
then : |
| 14868 |
enableval=$enable_bswap32; |
| 14869 |
if test "x$enable_bswap32" = xno; then |
| 14870 |
HAVE_BSWAP32="" |
| 14871 |
fi |
| 14872 |
fi |
| 14873 |
|
| 14874 |
|
| 14875 |
if test "x$HAVE_BSWAP32" != x; then |
| 14876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14877 |
printf "%s\n" "yes" >&6; } |
| 14878 |
else |
| 14879 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14880 |
printf "%s\n" "no" >&6; } |
| 14881 |
fi |
| 14882 |
|
| 14883 |
|
| 14884 |
|
| 14885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for byteswap.h" >&5 |
| 14886 |
printf %s "checking for byteswap.h... " >&6; } |
| 14887 |
|
| 14888 |
HAVE_BYTESWAP_H="" |
| 14889 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14890 |
/* end confdefs.h. */ |
| 14891 |
#include "byteswap.h" |
| 14892 |
int |
| 14893 |
main (void) |
| 14894 |
{ |
| 14895 |
|
| 14896 |
int a = 0; |
| 14897 |
int b = __builtin_bswap32(a); |
| 14898 |
return(0); |
| 14899 |
|
| 14900 |
; |
| 14901 |
return 0; |
| 14902 |
} |
| 14903 |
_ACEOF |
| 14904 |
if ac_fn_c_try_compile "$LINENO" |
| 14905 |
then : |
| 14906 |
HAVE_BYTESWAP_H="-DHAVE_BYTESWAP_H" |
| 14907 |
else $as_nop |
| 14908 |
HAVE_BYTESWAP_H="" |
| 14909 |
fi |
| 14910 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14911 |
|
| 14912 |
# Check whether --enable-byteswap-h was given. |
| 14913 |
if test ${enable_byteswap_h+y} |
| 14914 |
then : |
| 14915 |
enableval=$enable_byteswap_h; |
| 14916 |
if test "x$enable_byteswap-h" = xno; then |
| 14917 |
HAVE_BYTESWAP_H="" |
| 14918 |
fi |
| 14919 |
fi |
| 14920 |
|
| 14921 |
|
| 14922 |
if test "x$HAVE_BYTESWAP_H" != x; then |
| 14923 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14924 |
printf "%s\n" "yes" >&6; } |
| 14925 |
else |
| 14926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14927 |
printf "%s\n" "no" >&6; } |
| 14928 |
fi |
| 14929 |
|
| 14930 |
|
| 14931 |
|
| 14932 |
# -------------------------------------------------- |
| 14933 |
# Sun, BSD possibly other makes don't have quite the |
| 14934 |
# feature set of GNU make. We still prefer GNU make, |
| 14935 |
# but...... |
| 14936 |
# -------------------------------------------------- |
| 14937 |
|
| 14938 |
# Check whether --with-gnu-make was given. |
| 14939 |
if test ${with_gnu_make+y} |
| 14940 |
then : |
| 14941 |
withval=$with_gnu_make; gnu_make=no |
| 14942 |
fi |
| 14943 |
|
| 14944 |
|
| 14945 |
if test "x$gnu_make" != "xno"; then |
| 14946 |
SUB_MAKE_OPTION="-f \$(MAKEFILE)" |
| 14947 |
ORDER_ONLY="|" |
| 14948 |
else |
| 14949 |
SUB_MAKE_OPTION= |
| 14950 |
ORDER_ONLY="" |
| 14951 |
fi |
| 14952 |
|
| 14953 |
|
| 14954 |
|
| 14955 |
|
| 14956 |
# -------------------------------------------------- |
| 14957 |
# annoying: Windows doesn't allow "aux" as a |
| 14958 |
# directory nor file name, so if we're building in |
| 14959 |
# mingw, add the same prefix as the VS build uses |
| 14960 |
# -------------------------------------------------- |
| 14961 |
AUXDIRPOSTFIX="" |
| 14962 |
case $build in |
| 14963 |
*-mingw*|*-msys*|*-cygwin*) |
| 14964 |
AUXDIRPOSTFIX="_" |
| 14965 |
;; |
| 14966 |
esac |
| 14967 |
|
| 14968 |
|
| 14969 |
# -------------------------------------------------- |
| 14970 |
# Set executable name extention |
| 14971 |
# usually empty on Unix-like systems |
| 14972 |
# -------------------------------------------------- |
| 14973 |
EXEEXT="" |
| 14974 |
|
| 14975 |
case $host in |
| 14976 |
*-mingw*|*-msys*) |
| 14977 |
EXEEXT=".exe" |
| 14978 |
;; |
| 14979 |
*) |
| 14980 |
;; |
| 14981 |
esac |
| 14982 |
|
| 14983 |
|
| 14984 |
# Check whether --with-exe-ext was given. |
| 14985 |
if test ${with_exe_ext+y} |
| 14986 |
then : |
| 14987 |
withval=$with_exe_ext; EXEEXT="$with_exe_ext" |
| 14988 |
fi |
| 14989 |
|
| 14990 |
|
| 14991 |
|
| 14992 |
|
| 14993 |
# -------------------------------------------------- |
| 14994 |
# Set executable name extention for aux binaries |
| 14995 |
# usually empty on Unix-like systems |
| 14996 |
# -------------------------------------------------- |
| 14997 |
AUXEXEEXT="" |
| 14998 |
|
| 14999 |
case $build in |
| 15000 |
*-mingw*|*-msys*) |
| 15001 |
AUXEXEEXT=".exe" |
| 15002 |
;; |
| 15003 |
*) |
| 15004 |
;; |
| 15005 |
esac |
| 15006 |
|
| 15007 |
|
| 15008 |
# Check whether --with-aux-exe-ext was given. |
| 15009 |
if test ${with_aux_exe_ext+y} |
| 15010 |
then : |
| 15011 |
withval=$with_aux_exe_ext; AUXEXEEXT="$with_aux_exe_ext" |
| 15012 |
fi |
| 15013 |
|
| 15014 |
|
| 15015 |
|
| 15016 |
|
| 15017 |
# -------------------------------------------------- |
| 15018 |
# Check for disabling of versioned path option. |
| 15019 |
# By default the versioned path must be enabled! |
| 15020 |
# Using this option is user's own risk & responsibility. |
| 15021 |
# -------------------------------------------------- |
| 15022 |
|
| 15023 |
# Check whether --with-versioned-path was given. |
| 15024 |
if test ${with_versioned_path+y} |
| 15025 |
then : |
| 15026 |
withval=$with_versioned_path; versioned_path=no |
| 15027 |
fi |
| 15028 |
|
| 15029 |
|
| 15030 |
if test "x$versioned_path" != "xno"; then |
| 15031 |
VERSIONED_PATH='/$(GS_DOT_VERSION)' |
| 15032 |
else |
| 15033 |
VERSIONED_PATH='' |
| 15034 |
fi |
| 15035 |
|
| 15036 |
|
| 15037 |
|
| 15038 |
# -------------------------------------------------- |
| 15039 |
# Check if we are using GCC, and disable strict |
| 15040 |
# aliasing optimization if GCC supports it... |
| 15041 |
# |
| 15042 |
# NOTE: Strict aliasing can cause some parts |
| 15043 |
# of Ghostscript to malfunction. |
| 15044 |
# -------------------------------------------------- |
| 15045 |
if test x"$GCC" = x"yes"; then |
| 15046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to explicitly disable strict aliasing" >&5 |
| 15047 |
printf %s "checking whether to explicitly disable strict aliasing... " >&6; } |
| 15048 |
CFLAGS_backup="$CFLAGS" |
| 15049 |
CFLAGSAUX_backup="$CFLAGSAUX" |
| 15050 |
CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 15051 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15052 |
/* end confdefs.h. */ |
| 15053 |
|
| 15054 |
int |
| 15055 |
main (void) |
| 15056 |
{ |
| 15057 |
return 0; |
| 15058 |
; |
| 15059 |
return 0; |
| 15060 |
} |
| 15061 |
_ACEOF |
| 15062 |
if ac_fn_c_try_compile "$LINENO" |
| 15063 |
then : |
| 15064 |
|
| 15065 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15066 |
printf "%s\n" "yes" >&6; } |
| 15067 |
CFLAGS_backup="$CFLAGS" |
| 15068 |
if test x"$host" = x"$build" ; then |
| 15069 |
CFLAGSAUX_backup="$CFLAGSAUX -fno-strict-aliasing" |
| 15070 |
fi |
| 15071 |
|
| 15072 |
fi |
| 15073 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15074 |
CFLAGS="$CFLAGS_backup" |
| 15075 |
CFLAGSAUX="$CFLAGSAUX_backup" |
| 15076 |
fi |
| 15077 |
|
| 15078 |
# -------------------------------------------------- |
| 15079 |
# Modify build for internal cluster testing. |
| 15080 |
# DO NOT USE THIS OPTION OUTSIDE OF ARTIFEX! |
| 15081 |
# -------------------------------------------------- |
| 15082 |
# Check whether --enable-cluster was given. |
| 15083 |
if test ${enable_cluster+y} |
| 15084 |
then : |
| 15085 |
enableval=$enable_cluster; |
| 15086 |
fi |
| 15087 |
|
| 15088 |
|
| 15089 |
if test "x"$enable_cluster != "x"; then |
| 15090 |
CLUSTER_CFLAGS="-DCLUSTER" |
| 15091 |
else |
| 15092 |
CLUSTER_CFLAGS="" |
| 15093 |
fi |
| 15094 |
|
| 15095 |
|
| 15096 |
|
| 15097 |
if test x"$build" != x"$host"; then |
| 15098 |
|
| 15099 |
ilog2() |
| 15100 |
{ |
| 15101 |
ILOG2_VAL=$1 |
| 15102 |
ILOG2_RES=0 |
| 15103 |
while test $ILOG2_VAL -gt 1 ; do |
| 15104 |
ILOG2_VAL=$((ILOG2_VAL + 1)) |
| 15105 |
ILOG2_VAL=$((ILOG2_VAL >> 1)) |
| 15106 |
ILOG2_RES=$((ILOG2_RES + 1)) |
| 15107 |
done |
| 15108 |
return $ILOG2_RES |
| 15109 |
}; |
| 15110 |
|
| 15111 |
# -------------------------------------------------- |
| 15112 |
# Generate arch.h headers |
| 15113 |
# -------------------------------------------------- |
| 15114 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15115 |
# see AC_CHECK_SIZEOF for more information. |
| 15116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5 |
| 15117 |
printf %s "checking alignment of short... " >&6; } |
| 15118 |
if test ${ac_cv_alignof_short+y} |
| 15119 |
then : |
| 15120 |
printf %s "(cached) " >&6 |
| 15121 |
else $as_nop |
| 15122 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default |
| 15123 |
typedef struct { char x; short y; } ac__type_alignof_;" |
| 15124 |
then : |
| 15125 |
|
| 15126 |
else $as_nop |
| 15127 |
if test "$ac_cv_type_short" = yes; then |
| 15128 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15129 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15130 |
as_fn_error 77 "cannot compute alignment of short |
| 15131 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15132 |
else |
| 15133 |
ac_cv_alignof_short=0 |
| 15134 |
fi |
| 15135 |
fi |
| 15136 |
|
| 15137 |
fi |
| 15138 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5 |
| 15139 |
printf "%s\n" "$ac_cv_alignof_short" >&6; } |
| 15140 |
|
| 15141 |
|
| 15142 |
|
| 15143 |
printf "%s\n" "#define ALIGNOF_SHORT $ac_cv_alignof_short" >>confdefs.h |
| 15144 |
|
| 15145 |
|
| 15146 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15147 |
# see AC_CHECK_SIZEOF for more information. |
| 15148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5 |
| 15149 |
printf %s "checking alignment of int... " >&6; } |
| 15150 |
if test ${ac_cv_alignof_int+y} |
| 15151 |
then : |
| 15152 |
printf %s "(cached) " >&6 |
| 15153 |
else $as_nop |
| 15154 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default |
| 15155 |
typedef struct { char x; int y; } ac__type_alignof_;" |
| 15156 |
then : |
| 15157 |
|
| 15158 |
else $as_nop |
| 15159 |
if test "$ac_cv_type_int" = yes; then |
| 15160 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15161 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15162 |
as_fn_error 77 "cannot compute alignment of int |
| 15163 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15164 |
else |
| 15165 |
ac_cv_alignof_int=0 |
| 15166 |
fi |
| 15167 |
fi |
| 15168 |
|
| 15169 |
fi |
| 15170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5 |
| 15171 |
printf "%s\n" "$ac_cv_alignof_int" >&6; } |
| 15172 |
|
| 15173 |
|
| 15174 |
|
| 15175 |
printf "%s\n" "#define ALIGNOF_INT $ac_cv_alignof_int" >>confdefs.h |
| 15176 |
|
| 15177 |
|
| 15178 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15179 |
# see AC_CHECK_SIZEOF for more information. |
| 15180 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 |
| 15181 |
printf %s "checking alignment of long... " >&6; } |
| 15182 |
if test ${ac_cv_alignof_long+y} |
| 15183 |
then : |
| 15184 |
printf %s "(cached) " >&6 |
| 15185 |
else $as_nop |
| 15186 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default |
| 15187 |
typedef struct { char x; long y; } ac__type_alignof_;" |
| 15188 |
then : |
| 15189 |
|
| 15190 |
else $as_nop |
| 15191 |
if test "$ac_cv_type_long" = yes; then |
| 15192 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15193 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15194 |
as_fn_error 77 "cannot compute alignment of long |
| 15195 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15196 |
else |
| 15197 |
ac_cv_alignof_long=0 |
| 15198 |
fi |
| 15199 |
fi |
| 15200 |
|
| 15201 |
fi |
| 15202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 |
| 15203 |
printf "%s\n" "$ac_cv_alignof_long" >&6; } |
| 15204 |
|
| 15205 |
|
| 15206 |
|
| 15207 |
printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h |
| 15208 |
|
| 15209 |
|
| 15210 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15211 |
# see AC_CHECK_SIZEOF for more information. |
| 15212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 |
| 15213 |
printf %s "checking alignment of size_t... " >&6; } |
| 15214 |
if test ${ac_cv_alignof_size_t+y} |
| 15215 |
then : |
| 15216 |
printf %s "(cached) " >&6 |
| 15217 |
else $as_nop |
| 15218 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default |
| 15219 |
typedef struct { char x; size_t y; } ac__type_alignof_;" |
| 15220 |
then : |
| 15221 |
|
| 15222 |
else $as_nop |
| 15223 |
if test "$ac_cv_type_size_t" = yes; then |
| 15224 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15225 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15226 |
as_fn_error 77 "cannot compute alignment of size_t |
| 15227 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15228 |
else |
| 15229 |
ac_cv_alignof_size_t=0 |
| 15230 |
fi |
| 15231 |
fi |
| 15232 |
|
| 15233 |
fi |
| 15234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5 |
| 15235 |
printf "%s\n" "$ac_cv_alignof_size_t" >&6; } |
| 15236 |
|
| 15237 |
|
| 15238 |
|
| 15239 |
printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h |
| 15240 |
|
| 15241 |
|
| 15242 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15243 |
# see AC_CHECK_SIZEOF for more information. |
| 15244 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5 |
| 15245 |
printf %s "checking alignment of void *... " >&6; } |
| 15246 |
if test ${ac_cv_alignof_void_p+y} |
| 15247 |
then : |
| 15248 |
printf %s "(cached) " >&6 |
| 15249 |
else $as_nop |
| 15250 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default |
| 15251 |
typedef struct { char x; void * y; } ac__type_alignof_;" |
| 15252 |
then : |
| 15253 |
|
| 15254 |
else $as_nop |
| 15255 |
if test "$ac_cv_type_void_p" = yes; then |
| 15256 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15257 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15258 |
as_fn_error 77 "cannot compute alignment of void * |
| 15259 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15260 |
else |
| 15261 |
ac_cv_alignof_void_p=0 |
| 15262 |
fi |
| 15263 |
fi |
| 15264 |
|
| 15265 |
fi |
| 15266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5 |
| 15267 |
printf "%s\n" "$ac_cv_alignof_void_p" >&6; } |
| 15268 |
|
| 15269 |
|
| 15270 |
|
| 15271 |
printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h |
| 15272 |
|
| 15273 |
|
| 15274 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15275 |
# see AC_CHECK_SIZEOF for more information. |
| 15276 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5 |
| 15277 |
printf %s "checking alignment of float... " >&6; } |
| 15278 |
if test ${ac_cv_alignof_float+y} |
| 15279 |
then : |
| 15280 |
printf %s "(cached) " >&6 |
| 15281 |
else $as_nop |
| 15282 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_float" "$ac_includes_default |
| 15283 |
typedef struct { char x; float y; } ac__type_alignof_;" |
| 15284 |
then : |
| 15285 |
|
| 15286 |
else $as_nop |
| 15287 |
if test "$ac_cv_type_float" = yes; then |
| 15288 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15289 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15290 |
as_fn_error 77 "cannot compute alignment of float |
| 15291 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15292 |
else |
| 15293 |
ac_cv_alignof_float=0 |
| 15294 |
fi |
| 15295 |
fi |
| 15296 |
|
| 15297 |
fi |
| 15298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_float" >&5 |
| 15299 |
printf "%s\n" "$ac_cv_alignof_float" >&6; } |
| 15300 |
|
| 15301 |
|
| 15302 |
|
| 15303 |
printf "%s\n" "#define ALIGNOF_FLOAT $ac_cv_alignof_float" >>confdefs.h |
| 15304 |
|
| 15305 |
|
| 15306 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15307 |
# see AC_CHECK_SIZEOF for more information. |
| 15308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 |
| 15309 |
printf %s "checking alignment of double... " >&6; } |
| 15310 |
if test ${ac_cv_alignof_double+y} |
| 15311 |
then : |
| 15312 |
printf %s "(cached) " >&6 |
| 15313 |
else $as_nop |
| 15314 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default |
| 15315 |
typedef struct { char x; double y; } ac__type_alignof_;" |
| 15316 |
then : |
| 15317 |
|
| 15318 |
else $as_nop |
| 15319 |
if test "$ac_cv_type_double" = yes; then |
| 15320 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15321 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15322 |
as_fn_error 77 "cannot compute alignment of double |
| 15323 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15324 |
else |
| 15325 |
ac_cv_alignof_double=0 |
| 15326 |
fi |
| 15327 |
fi |
| 15328 |
|
| 15329 |
fi |
| 15330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5 |
| 15331 |
printf "%s\n" "$ac_cv_alignof_double" >&6; } |
| 15332 |
|
| 15333 |
|
| 15334 |
|
| 15335 |
printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h |
| 15336 |
|
| 15337 |
|
| 15338 |
# The cast to long int works around a bug in the HP C Compiler, |
| 15339 |
# see AC_CHECK_SIZEOF for more information. |
| 15340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of uint64_t" >&5 |
| 15341 |
printf %s "checking alignment of uint64_t... " >&6; } |
| 15342 |
if test ${ac_cv_alignof_uint64_t+y} |
| 15343 |
then : |
| 15344 |
printf %s "(cached) " >&6 |
| 15345 |
else $as_nop |
| 15346 |
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_uint64_t" "$ac_includes_default |
| 15347 |
typedef struct { char x; uint64_t y; } ac__type_alignof_;" |
| 15348 |
then : |
| 15349 |
|
| 15350 |
else $as_nop |
| 15351 |
if test "$ac_cv_type_uint64_t" = yes; then |
| 15352 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15353 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15354 |
as_fn_error 77 "cannot compute alignment of uint64_t |
| 15355 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15356 |
else |
| 15357 |
ac_cv_alignof_uint64_t=0 |
| 15358 |
fi |
| 15359 |
fi |
| 15360 |
|
| 15361 |
fi |
| 15362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_uint64_t" >&5 |
| 15363 |
printf "%s\n" "$ac_cv_alignof_uint64_t" >&6; } |
| 15364 |
|
| 15365 |
|
| 15366 |
|
| 15367 |
printf "%s\n" "#define ALIGNOF_UINT64_T $ac_cv_alignof_uint64_t" >>confdefs.h |
| 15368 |
|
| 15369 |
|
| 15370 |
|
| 15371 |
ARCH_ALIGN_SHORT_MOD=$ac_cv_alignof_short |
| 15372 |
|
| 15373 |
ARCH_ALIGN_INT_MOD=$ac_cv_alignof_int |
| 15374 |
|
| 15375 |
ARCH_ALIGN_LONG_MOD=$ac_cv_alignof_long |
| 15376 |
|
| 15377 |
ARCH_ALIGN_SIZE_T_MOD=$ac_cv_alignof_size_t |
| 15378 |
|
| 15379 |
ARCH_ALIGN_PTR_MOD=$ac_cv_alignof_void_p |
| 15380 |
|
| 15381 |
ARCH_ALIGN_FLOAT_MOD=$ac_cv_alignof_float |
| 15382 |
|
| 15383 |
ARCH_ALIGN_DOUBLE_MOD=$ac_cv_alignof_double |
| 15384 |
|
| 15385 |
ARCH_ALIGN_UINT64_T_MOD=$ac_cv_alignof_uint64_t |
| 15386 |
|
| 15387 |
|
| 15388 |
# The cast to long int works around a bug in the HP C Compiler |
| 15389 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15390 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15391 |
# This bug is HP SR number 8606223364. |
| 15392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
| 15393 |
printf %s "checking size of char... " >&6; } |
| 15394 |
if test ${ac_cv_sizeof_char+y} |
| 15395 |
then : |
| 15396 |
printf %s "(cached) " >&6 |
| 15397 |
else $as_nop |
| 15398 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default" |
| 15399 |
then : |
| 15400 |
|
| 15401 |
else $as_nop |
| 15402 |
if test "$ac_cv_type_char" = yes; then |
| 15403 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15404 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15405 |
as_fn_error 77 "cannot compute sizeof (char) |
| 15406 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15407 |
else |
| 15408 |
ac_cv_sizeof_char=0 |
| 15409 |
fi |
| 15410 |
fi |
| 15411 |
|
| 15412 |
fi |
| 15413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
| 15414 |
printf "%s\n" "$ac_cv_sizeof_char" >&6; } |
| 15415 |
|
| 15416 |
|
| 15417 |
|
| 15418 |
printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h |
| 15419 |
|
| 15420 |
|
| 15421 |
# The cast to long int works around a bug in the HP C Compiler |
| 15422 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15423 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15424 |
# This bug is HP SR number 8606223364. |
| 15425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 15426 |
printf %s "checking size of short... " >&6; } |
| 15427 |
if test ${ac_cv_sizeof_short+y} |
| 15428 |
then : |
| 15429 |
printf %s "(cached) " >&6 |
| 15430 |
else $as_nop |
| 15431 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" |
| 15432 |
then : |
| 15433 |
|
| 15434 |
else $as_nop |
| 15435 |
if test "$ac_cv_type_short" = yes; then |
| 15436 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15437 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15438 |
as_fn_error 77 "cannot compute sizeof (short) |
| 15439 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15440 |
else |
| 15441 |
ac_cv_sizeof_short=0 |
| 15442 |
fi |
| 15443 |
fi |
| 15444 |
|
| 15445 |
fi |
| 15446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 15447 |
printf "%s\n" "$ac_cv_sizeof_short" >&6; } |
| 15448 |
|
| 15449 |
|
| 15450 |
|
| 15451 |
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
| 15452 |
|
| 15453 |
|
| 15454 |
# The cast to long int works around a bug in the HP C Compiler |
| 15455 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15456 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15457 |
# This bug is HP SR number 8606223364. |
| 15458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 15459 |
printf %s "checking size of int... " >&6; } |
| 15460 |
if test ${ac_cv_sizeof_int+y} |
| 15461 |
then : |
| 15462 |
printf %s "(cached) " >&6 |
| 15463 |
else $as_nop |
| 15464 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 15465 |
then : |
| 15466 |
|
| 15467 |
else $as_nop |
| 15468 |
if test "$ac_cv_type_int" = yes; then |
| 15469 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15470 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15471 |
as_fn_error 77 "cannot compute sizeof (int) |
| 15472 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15473 |
else |
| 15474 |
ac_cv_sizeof_int=0 |
| 15475 |
fi |
| 15476 |
fi |
| 15477 |
|
| 15478 |
fi |
| 15479 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 15480 |
printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 15481 |
|
| 15482 |
|
| 15483 |
|
| 15484 |
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 15485 |
|
| 15486 |
|
| 15487 |
# The cast to long int works around a bug in the HP C Compiler |
| 15488 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15489 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15490 |
# This bug is HP SR number 8606223364. |
| 15491 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 15492 |
printf %s "checking size of long... " >&6; } |
| 15493 |
if test ${ac_cv_sizeof_long+y} |
| 15494 |
then : |
| 15495 |
printf %s "(cached) " >&6 |
| 15496 |
else $as_nop |
| 15497 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 15498 |
then : |
| 15499 |
|
| 15500 |
else $as_nop |
| 15501 |
if test "$ac_cv_type_long" = yes; then |
| 15502 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15503 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15504 |
as_fn_error 77 "cannot compute sizeof (long) |
| 15505 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15506 |
else |
| 15507 |
ac_cv_sizeof_long=0 |
| 15508 |
fi |
| 15509 |
fi |
| 15510 |
|
| 15511 |
fi |
| 15512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 15513 |
printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
| 15514 |
|
| 15515 |
|
| 15516 |
|
| 15517 |
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 15518 |
|
| 15519 |
|
| 15520 |
# The cast to long int works around a bug in the HP C Compiler |
| 15521 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15522 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15523 |
# This bug is HP SR number 8606223364. |
| 15524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 15525 |
printf %s "checking size of long long... " >&6; } |
| 15526 |
if test ${ac_cv_sizeof_long_long+y} |
| 15527 |
then : |
| 15528 |
printf %s "(cached) " >&6 |
| 15529 |
else $as_nop |
| 15530 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" |
| 15531 |
then : |
| 15532 |
|
| 15533 |
else $as_nop |
| 15534 |
if test "$ac_cv_type_long_long" = yes; then |
| 15535 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15536 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15537 |
as_fn_error 77 "cannot compute sizeof (long long) |
| 15538 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15539 |
else |
| 15540 |
ac_cv_sizeof_long_long=0 |
| 15541 |
fi |
| 15542 |
fi |
| 15543 |
|
| 15544 |
fi |
| 15545 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 15546 |
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } |
| 15547 |
|
| 15548 |
|
| 15549 |
|
| 15550 |
printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
| 15551 |
|
| 15552 |
|
| 15553 |
# The cast to long int works around a bug in the HP C Compiler |
| 15554 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15555 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15556 |
# This bug is HP SR number 8606223364. |
| 15557 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 15558 |
printf %s "checking size of size_t... " >&6; } |
| 15559 |
if test ${ac_cv_sizeof_size_t+y} |
| 15560 |
then : |
| 15561 |
printf %s "(cached) " >&6 |
| 15562 |
else $as_nop |
| 15563 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" |
| 15564 |
then : |
| 15565 |
|
| 15566 |
else $as_nop |
| 15567 |
if test "$ac_cv_type_size_t" = yes; then |
| 15568 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15569 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15570 |
as_fn_error 77 "cannot compute sizeof (size_t) |
| 15571 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15572 |
else |
| 15573 |
ac_cv_sizeof_size_t=0 |
| 15574 |
fi |
| 15575 |
fi |
| 15576 |
|
| 15577 |
fi |
| 15578 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 15579 |
printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } |
| 15580 |
|
| 15581 |
|
| 15582 |
|
| 15583 |
printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h |
| 15584 |
|
| 15585 |
|
| 15586 |
# The cast to long int works around a bug in the HP C Compiler |
| 15587 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15588 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15589 |
# This bug is HP SR number 8606223364. |
| 15590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 15591 |
printf %s "checking size of void *... " >&6; } |
| 15592 |
if test ${ac_cv_sizeof_void_p+y} |
| 15593 |
then : |
| 15594 |
printf %s "(cached) " >&6 |
| 15595 |
else $as_nop |
| 15596 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" |
| 15597 |
then : |
| 15598 |
|
| 15599 |
else $as_nop |
| 15600 |
if test "$ac_cv_type_void_p" = yes; then |
| 15601 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15602 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15603 |
as_fn_error 77 "cannot compute sizeof (void *) |
| 15604 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15605 |
else |
| 15606 |
ac_cv_sizeof_void_p=0 |
| 15607 |
fi |
| 15608 |
fi |
| 15609 |
|
| 15610 |
fi |
| 15611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 15612 |
printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } |
| 15613 |
|
| 15614 |
|
| 15615 |
|
| 15616 |
printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h |
| 15617 |
|
| 15618 |
|
| 15619 |
# The cast to long int works around a bug in the HP C Compiler |
| 15620 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15621 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15622 |
# This bug is HP SR number 8606223364. |
| 15623 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 15624 |
printf %s "checking size of float... " >&6; } |
| 15625 |
if test ${ac_cv_sizeof_float+y} |
| 15626 |
then : |
| 15627 |
printf %s "(cached) " >&6 |
| 15628 |
else $as_nop |
| 15629 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" |
| 15630 |
then : |
| 15631 |
|
| 15632 |
else $as_nop |
| 15633 |
if test "$ac_cv_type_float" = yes; then |
| 15634 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15635 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15636 |
as_fn_error 77 "cannot compute sizeof (float) |
| 15637 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15638 |
else |
| 15639 |
ac_cv_sizeof_float=0 |
| 15640 |
fi |
| 15641 |
fi |
| 15642 |
|
| 15643 |
fi |
| 15644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 15645 |
printf "%s\n" "$ac_cv_sizeof_float" >&6; } |
| 15646 |
|
| 15647 |
|
| 15648 |
|
| 15649 |
printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h |
| 15650 |
|
| 15651 |
|
| 15652 |
# The cast to long int works around a bug in the HP C Compiler |
| 15653 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15654 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15655 |
# This bug is HP SR number 8606223364. |
| 15656 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 15657 |
printf %s "checking size of double... " >&6; } |
| 15658 |
if test ${ac_cv_sizeof_double+y} |
| 15659 |
then : |
| 15660 |
printf %s "(cached) " >&6 |
| 15661 |
else $as_nop |
| 15662 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" |
| 15663 |
then : |
| 15664 |
|
| 15665 |
else $as_nop |
| 15666 |
if test "$ac_cv_type_double" = yes; then |
| 15667 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15668 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15669 |
as_fn_error 77 "cannot compute sizeof (double) |
| 15670 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15671 |
else |
| 15672 |
ac_cv_sizeof_double=0 |
| 15673 |
fi |
| 15674 |
fi |
| 15675 |
|
| 15676 |
fi |
| 15677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 15678 |
printf "%s\n" "$ac_cv_sizeof_double" >&6; } |
| 15679 |
|
| 15680 |
|
| 15681 |
|
| 15682 |
printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h |
| 15683 |
|
| 15684 |
|
| 15685 |
|
| 15686 |
ilog2 $ac_cv_sizeof_char |
| 15687 |
ARCH_LOG2_SIZEOF_CHAR=$? |
| 15688 |
|
| 15689 |
|
| 15690 |
ilog2 $ac_cv_sizeof_short |
| 15691 |
ARCH_LOG2_SIZEOF_SHORT=$? |
| 15692 |
|
| 15693 |
|
| 15694 |
ilog2 $ac_cv_sizeof_int |
| 15695 |
ARCH_LOG2_SIZEOF_INT=$? |
| 15696 |
|
| 15697 |
|
| 15698 |
ilog2 $ac_cv_sizeof_long |
| 15699 |
ARCH_LOG2_SIZEOF_LONG=$? |
| 15700 |
|
| 15701 |
|
| 15702 |
ilog2 $ac_cv_sizeof_long_long |
| 15703 |
ARCH_LOG2_SIZEOF_LONG_LONG=$? |
| 15704 |
|
| 15705 |
|
| 15706 |
ilog2 $ac_cv_sizeof_size_t |
| 15707 |
ARCH_LOG2_SIZEOF_SIZE_T=$? |
| 15708 |
|
| 15709 |
ARCH_SIZEOF_SIZE_T=$ac_cv_sizeof_size_t |
| 15710 |
|
| 15711 |
|
| 15712 |
ARCH_SIZEOF_PTR=$ac_cv_sizeof_void_p |
| 15713 |
|
| 15714 |
ilog2 $ac_cv_sizeof_void_p |
| 15715 |
ARCH_LOG2_SIZEOF_PTR=$? |
| 15716 |
|
| 15717 |
|
| 15718 |
ARCH_SIZEOF_FLOAT=$ac_cv_sizeof_float |
| 15719 |
|
| 15720 |
ilog2 $ac_cv_sizeof_float |
| 15721 |
ARCH_LOG2_SIZEOF_FLOAT=$? |
| 15722 |
|
| 15723 |
|
| 15724 |
ARCH_SIZEOF_DOUBLE=$ac_cv_sizeof_double |
| 15725 |
|
| 15726 |
ilog2 $ac_cv_sizeof_double |
| 15727 |
ARCH_LOG2_SIZEOF_DOUBLE=$? |
| 15728 |
|
| 15729 |
|
| 15730 |
ARCH_IS_BIG_ENDIAN=$BIGENDIAN |
| 15731 |
|
| 15732 |
|
| 15733 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pointers are signed" >&5 |
| 15734 |
printf %s "checking if pointers are signed... " >&6; } |
| 15735 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15736 |
/* end confdefs.h. */ |
| 15737 |
#include <stdint.h> |
| 15738 |
int |
| 15739 |
main (void) |
| 15740 |
{ |
| 15741 |
|
| 15742 |
char b[(char *)(uintptr_t)-1 < (char *)(uintptr_t)0 ? -1 : 0]; |
| 15743 |
return sizeof(b); |
| 15744 |
|
| 15745 |
; |
| 15746 |
return 0; |
| 15747 |
} |
| 15748 |
_ACEOF |
| 15749 |
if ac_fn_c_try_compile "$LINENO" |
| 15750 |
then : |
| 15751 |
ARCH_PTRS_ARE_SIGNED=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15752 |
printf "%s\n" "no" >&6; } |
| 15753 |
else $as_nop |
| 15754 |
ARCH_PTRS_ARE_SIGNED=1; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15755 |
printf "%s\n" "yes" >&6; } |
| 15756 |
fi |
| 15757 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15758 |
|
| 15759 |
|
| 15760 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dividing negative by positive truncates" >&5 |
| 15761 |
printf %s "checking if dividing negative by positive truncates... " >&6; } |
| 15762 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15763 |
/* end confdefs.h. */ |
| 15764 |
|
| 15765 |
int |
| 15766 |
main (void) |
| 15767 |
{ |
| 15768 |
|
| 15769 |
char b[-1 / 2 == 0 ? -1 : 0]; |
| 15770 |
return sizeof(b); |
| 15771 |
|
| 15772 |
; |
| 15773 |
return 0; |
| 15774 |
} |
| 15775 |
_ACEOF |
| 15776 |
if ac_fn_c_try_compile "$LINENO" |
| 15777 |
then : |
| 15778 |
ARCH_DIV_NEG_POS_TRUNCATES=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15779 |
printf "%s\n" "no" >&6; } |
| 15780 |
else $as_nop |
| 15781 |
ARCH_DIV_NEG_POS_TRUNCATES=1; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15782 |
printf "%s\n" "yes" >&6; } |
| 15783 |
fi |
| 15784 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15785 |
|
| 15786 |
|
| 15787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arithmetic shift works properly" >&5 |
| 15788 |
printf %s "checking if arithmetic shift works properly... " >&6; } |
| 15789 |
ARCH_ARITH_RSHIFT="" |
| 15790 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15791 |
/* end confdefs.h. */ |
| 15792 |
|
| 15793 |
int |
| 15794 |
main (void) |
| 15795 |
{ |
| 15796 |
|
| 15797 |
char b[(-1L >> 2) != -1 || (-1 >> 1) != -1 || (-1 >> 2) != -1 ? 0 : -1]; |
| 15798 |
return sizeof(b); |
| 15799 |
|
| 15800 |
; |
| 15801 |
return 0; |
| 15802 |
} |
| 15803 |
_ACEOF |
| 15804 |
if ac_fn_c_try_compile "$LINENO" |
| 15805 |
then : |
| 15806 |
ARCH_ARITH_RSHIFT=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15807 |
printf "%s\n" "no" >&6; } |
| 15808 |
fi |
| 15809 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15810 |
|
| 15811 |
if test "x${ARCH_ARITH_RSHIFT}" = "x"; then |
| 15812 |
# Turbo C problem |
| 15813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15814 |
/* end confdefs.h. */ |
| 15815 |
|
| 15816 |
int |
| 15817 |
main (void) |
| 15818 |
{ |
| 15819 |
|
| 15820 |
char b[(-1L >> 2) != -1 ? 0 : -1]; |
| 15821 |
return sizeof(b); |
| 15822 |
|
| 15823 |
; |
| 15824 |
return 0; |
| 15825 |
} |
| 15826 |
_ACEOF |
| 15827 |
if ac_fn_c_try_compile "$LINENO" |
| 15828 |
then : |
| 15829 |
ARCH_ARITH_RSHIFT=1; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15830 |
printf "%s\n" "no" >&6; } |
| 15831 |
fi |
| 15832 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15833 |
fi |
| 15834 |
|
| 15835 |
if test "x${ARCH_ARITH_RSHIFT}" = "x"; then |
| 15836 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15837 |
printf "%s\n" "yes" >&6; } |
| 15838 |
ARCH_ARITH_RSHIFT=2 |
| 15839 |
fi |
| 15840 |
|
| 15841 |
|
| 15842 |
|
| 15843 |
CONFIG_FILES_LIST="$CONFIG_FILES_LIST $ARCH_AUTOCONF_HEADER:$ARCH_AUTOCONF_HEADER_PROTO" |
| 15844 |
fi |
| 15845 |
|
| 15846 |
# Check whether --enable-mkromfs-quiet was given. |
| 15847 |
if test ${enable_mkromfs_quiet+y} |
| 15848 |
then : |
| 15849 |
enableval=$enable_mkromfs_quiet; MKROMFS_FLAGS="-q $MKROMFS_FLAGS" |
| 15850 |
fi |
| 15851 |
|
| 15852 |
|
| 15853 |
|
| 15854 |
|
| 15855 |
|
| 15856 |
if test x"$GCFLAGSAUX" = x"\$(GCFLAGS)" ; then |
| 15857 |
GCFLAGSAUX="$GCFLAGS" |
| 15858 |
fi |
| 15859 |
|
| 15860 |
CFLAGSAUX=$(echo $CFLAGSAUX | sed -e 's/-DGS_NO_FILESYSTEM//g') |
| 15861 |
|
| 15862 |
GXXFLAGS=$(echo $GCFLAGS | sed -e 's/-Wstrict-prototypes//g' | sed -e 's/-Wmissing-prototypes//g' | sed -e 's/-Werror=declaration-after-statement//g') |
| 15863 |
|
| 15864 |
SRCDIR="$srcdir" |
| 15865 |
|
| 15866 |
|
| 15867 |
|
| 15868 |
|
| 15869 |
|
| 15870 |
|
| 15871 |
|
| 15872 |
|
| 15873 |
|
| 15874 |
|
| 15875 |
|
| 15876 |
|
| 15877 |
|
| 15878 |
|
| 15879 |
|
| 15880 |
|
| 15881 |
|
| 15882 |
|
| 15883 |
|
| 15884 |
|
| 15885 |
|
| 15886 |
CONFIG_FILES_LIST="$CONFIG_FILES_LIST $THEMAKEFILE" |
| 15887 |
|
| 15888 |
if test x"$THEMAKEFILE" != x"$MAKEFILE" && test x"$build" = x"$host"; then |
| 15889 |
CONFIG_FILES_LIST="$CONFIG_FILES_LIST" |
| 15890 |
fi |
| 15891 |
|
| 15892 |
if test "x$AFS" = "x1"; then |
| 15893 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using \"native\" font scaler which is now deprecated (rather than freetype)," >&5 |
| 15894 |
printf "%s\n" "$as_me: WARNING: Using \"native\" font scaler which is now deprecated (rather than freetype)," >&2;} |
| 15895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for this will be removed in a future release" >&5 |
| 15896 |
printf "%s\n" "$as_me: WARNING: Support for this will be removed in a future release" >&2;} |
| 15897 |
fi |
| 15898 |
|
| 15899 |
if test x"$OCR_DEVS_WARNING_LINE1" != x"" ; then |
| 15900 |
echo "" |
| 15901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $OCR_DEVS_WARNING_LINE1" >&5 |
| 15902 |
printf "%s\n" "$as_me: WARNING: $OCR_DEVS_WARNING_LINE1" >&2;} |
| 15903 |
if test x"$OCR_DEVS_WARNING_LINE2" != x"" ; then |
| 15904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $OCR_DEVS_WARNING_LINE2" >&5 |
| 15905 |
printf "%s\n" "$as_me: WARNING: $OCR_DEVS_WARNING_LINE2" >&2;} |
| 15906 |
fi |
| 15907 |
echo "" |
| 15908 |
fi |
| 15909 |
|
| 15910 |
ac_config_files="$ac_config_files $CONFIG_FILES_LIST" |
| 15911 |
|
| 15912 |
|
| 15913 |
cat >confcache <<\_ACEOF |
| 15914 |
# This file is a shell script that caches the results of configure |
| 15915 |
# tests run on this system so they can be shared between configure |
| 15916 |
# scripts and configure runs, see configure's option --config-cache. |
| 15917 |
# It is not useful on other systems. If it contains results you don't |
| 15918 |
# want to keep, you may remove or edit it. |
| 15919 |
# |
| 15920 |
# config.status only pays attention to the cache file if you give it |
| 15921 |
# the --recheck option to rerun configure. |
| 15922 |
# |
| 15923 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15924 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15925 |
# following values. |
| 15926 |
|
| 15927 |
_ACEOF |
| 15928 |
|
| 15929 |
# The following way of writing the cache mishandles newlines in values, |
| 15930 |
# but we know of no workaround that is simple, portable, and efficient. |
| 15931 |
# So, we kill variables containing newlines. |
| 15932 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 15933 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 15934 |
( |
| 15935 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15936 |
eval ac_val=\$$ac_var |
| 15937 |
case $ac_val in #( |
| 15938 |
*${as_nl}*) |
| 15939 |
case $ac_var in #( |
| 15940 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 15941 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 15942 |
esac |
| 15943 |
case $ac_var in #( |
| 15944 |
_ | IFS | as_nl) ;; #( |
| 15945 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 15946 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 15947 |
esac ;; |
| 15948 |
esac |
| 15949 |
done |
| 15950 |
|
| 15951 |
(set) 2>&1 | |
| 15952 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15953 |
*${as_nl}ac_space=\ *) |
| 15954 |
# `set' does not quote correctly, so add quotes: double-quote |
| 15955 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 15956 |
sed -n \ |
| 15957 |
"s/'/'\\\\''/g; |
| 15958 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15959 |
;; #( |
| 15960 |
*) |
| 15961 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15962 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 15963 |
;; |
| 15964 |
esac | |
| 15965 |
sort |
| 15966 |
) | |
| 15967 |
sed ' |
| 15968 |
/^ac_cv_env_/b end |
| 15969 |
t clear |
| 15970 |
:clear |
| 15971 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 15972 |
t end |
| 15973 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15974 |
:end' >>confcache |
| 15975 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15976 |
if test -w "$cache_file"; then |
| 15977 |
if test "x$cache_file" != "x/dev/null"; then |
| 15978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 15979 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 15980 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 15981 |
cat confcache >"$cache_file" |
| 15982 |
else |
| 15983 |
case $cache_file in #( |
| 15984 |
*/* | ?:*) |
| 15985 |
mv -f confcache "$cache_file"$$ && |
| 15986 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 15987 |
*) |
| 15988 |
mv -f confcache "$cache_file" ;; |
| 15989 |
esac |
| 15990 |
fi |
| 15991 |
fi |
| 15992 |
else |
| 15993 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 15994 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 15995 |
fi |
| 15996 |
fi |
| 15997 |
rm -f confcache |
| 15998 |
|
| 15999 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16000 |
# Let make expand exec_prefix. |
| 16001 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16002 |
|
| 16003 |
# Transform confdefs.h into DEFS. |
| 16004 |
# Protect against shell expansion while executing Makefile rules. |
| 16005 |
# Protect against Makefile macro expansion. |
| 16006 |
# |
| 16007 |
# If the first sed substitution is executed (which looks for macros that |
| 16008 |
# take arguments), then branch to the quote section. Otherwise, |
| 16009 |
# look for a macro that doesn't take arguments. |
| 16010 |
ac_script=' |
| 16011 |
:mline |
| 16012 |
/\\$/{ |
| 16013 |
N |
| 16014 |
s,\\\n,, |
| 16015 |
b mline |
| 16016 |
} |
| 16017 |
t clear |
| 16018 |
:clear |
| 16019 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 16020 |
t quote |
| 16021 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 16022 |
t quote |
| 16023 |
b any |
| 16024 |
:quote |
| 16025 |
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16026 |
s/\[/\\&/g |
| 16027 |
s/\]/\\&/g |
| 16028 |
s/\$/$$/g |
| 16029 |
H |
| 16030 |
:any |
| 16031 |
${ |
| 16032 |
g |
| 16033 |
s/^\n// |
| 16034 |
s/\n/ /g |
| 16035 |
p |
| 16036 |
} |
| 16037 |
' |
| 16038 |
DEFS=`sed -n "$ac_script" confdefs.h` |
| 16039 |
|
| 16040 |
|
| 16041 |
ac_libobjs= |
| 16042 |
ac_ltlibobjs= |
| 16043 |
U= |
| 16044 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16045 |
# 1. Remove the extension, and $U if already installed. |
| 16046 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16047 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 16048 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16049 |
# will be set to the directory where LIBOBJS objects are built. |
| 16050 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16051 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 16052 |
done |
| 16053 |
LIBOBJS=$ac_libobjs |
| 16054 |
|
| 16055 |
LTLIBOBJS=$ac_ltlibobjs |
| 16056 |
|
| 16057 |
|
| 16058 |
|
| 16059 |
: "${CONFIG_STATUS=./config.status}" |
| 16060 |
ac_write_fail=0 |
| 16061 |
ac_clean_files_save=$ac_clean_files |
| 16062 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16064 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16065 |
as_write_fail=0 |
| 16066 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 16067 |
#! $SHELL |
| 16068 |
# Generated by $as_me. |
| 16069 |
# Run this file to recreate the current configuration. |
| 16070 |
# Compiler output produced by configure, useful for debugging |
| 16071 |
# configure, is in config.log if it exists. |
| 16072 |
|
| 16073 |
debug=false |
| 16074 |
ac_cs_recheck=false |
| 16075 |
ac_cs_silent=false |
| 16076 |
|
| 16077 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 16078 |
export SHELL |
| 16079 |
_ASEOF |
| 16080 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16081 |
## -------------------- ## |
| 16082 |
## M4sh Initialization. ## |
| 16083 |
## -------------------- ## |
| 16084 |
|
| 16085 |
# Be more Bourne compatible |
| 16086 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 16087 |
as_nop=: |
| 16088 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 16089 |
then : |
| 16090 |
emulate sh |
| 16091 |
NULLCMD=: |
| 16092 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 16093 |
# is contrary to our usage. Disable this feature. |
| 16094 |
alias -g '${1+"$@"}'='"$@"' |
| 16095 |
setopt NO_GLOB_SUBST |
| 16096 |
else $as_nop |
| 16097 |
case `(set -o) 2>/dev/null` in #( |
| 16098 |
*posix*) : |
| 16099 |
set -o posix ;; #( |
| 16100 |
*) : |
| 16101 |
;; |
| 16102 |
esac |
| 16103 |
fi |
| 16104 |
|
| 16105 |
|
| 16106 |
|
| 16107 |
# Reset variables that may have inherited troublesome values from |
| 16108 |
# the environment. |
| 16109 |
|
| 16110 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 16111 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 16112 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 16113 |
# Quoting is to prevent editors from complaining about space-tab. |
| 16114 |
as_nl=' |
| 16115 |
' |
| 16116 |
export as_nl |
| 16117 |
IFS=" "" $as_nl" |
| 16118 |
|
| 16119 |
PS1='$ ' |
| 16120 |
PS2='> ' |
| 16121 |
PS4='+ ' |
| 16122 |
|
| 16123 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 16124 |
LC_ALL=C |
| 16125 |
export LC_ALL |
| 16126 |
LANGUAGE=C |
| 16127 |
export LANGUAGE |
| 16128 |
|
| 16129 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 16130 |
# to be unset--not just set to an empty or harmless value--now, to |
| 16131 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 16132 |
# also avoids known problems related to "unset" and subshell syntax |
| 16133 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 16134 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 16135 |
do eval test \${$as_var+y} \ |
| 16136 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 16137 |
done |
| 16138 |
|
| 16139 |
# Ensure that fds 0, 1, and 2 are open. |
| 16140 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 16141 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 16142 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 16143 |
|
| 16144 |
# The user is always right. |
| 16145 |
if ${PATH_SEPARATOR+false} :; then |
| 16146 |
PATH_SEPARATOR=: |
| 16147 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16148 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16149 |
PATH_SEPARATOR=';' |
| 16150 |
} |
| 16151 |
fi |
| 16152 |
|
| 16153 |
|
| 16154 |
# Find who we are. Look in the path if we contain no directory separator. |
| 16155 |
as_myself= |
| 16156 |
case $0 in #(( |
| 16157 |
*[\\/]* ) as_myself=$0 ;; |
| 16158 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16159 |
for as_dir in $PATH |
| 16160 |
do |
| 16161 |
IFS=$as_save_IFS |
| 16162 |
case $as_dir in #((( |
| 16163 |
'') as_dir=./ ;; |
| 16164 |
*/) ;; |
| 16165 |
*) as_dir=$as_dir/ ;; |
| 16166 |
esac |
| 16167 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 16168 |
done |
| 16169 |
IFS=$as_save_IFS |
| 16170 |
|
| 16171 |
;; |
| 16172 |
esac |
| 16173 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16174 |
# in which case we are not to be found in the path. |
| 16175 |
if test "x$as_myself" = x; then |
| 16176 |
as_myself=$0 |
| 16177 |
fi |
| 16178 |
if test ! -f "$as_myself"; then |
| 16179 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16180 |
exit 1 |
| 16181 |
fi |
| 16182 |
|
| 16183 |
|
| 16184 |
|
| 16185 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16186 |
# ---------------------------------------- |
| 16187 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16188 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 16189 |
# script with STATUS, using 1 if that was 0. |
| 16190 |
as_fn_error () |
| 16191 |
{ |
| 16192 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16193 |
if test "$4"; then |
| 16194 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16195 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 16196 |
fi |
| 16197 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 16198 |
as_fn_exit $as_status |
| 16199 |
} # as_fn_error |
| 16200 |
|
| 16201 |
|
| 16202 |
|
| 16203 |
# as_fn_set_status STATUS |
| 16204 |
# ----------------------- |
| 16205 |
# Set $? to STATUS, without forking. |
| 16206 |
as_fn_set_status () |
| 16207 |
{ |
| 16208 |
return $1 |
| 16209 |
} # as_fn_set_status |
| 16210 |
|
| 16211 |
# as_fn_exit STATUS |
| 16212 |
# ----------------- |
| 16213 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16214 |
as_fn_exit () |
| 16215 |
{ |
| 16216 |
set +e |
| 16217 |
as_fn_set_status $1 |
| 16218 |
exit $1 |
| 16219 |
} # as_fn_exit |
| 16220 |
|
| 16221 |
# as_fn_unset VAR |
| 16222 |
# --------------- |
| 16223 |
# Portably unset VAR. |
| 16224 |
as_fn_unset () |
| 16225 |
{ |
| 16226 |
{ eval $1=; unset $1;} |
| 16227 |
} |
| 16228 |
as_unset=as_fn_unset |
| 16229 |
|
| 16230 |
# as_fn_append VAR VALUE |
| 16231 |
# ---------------------- |
| 16232 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16233 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 16234 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 16235 |
# implementations. |
| 16236 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 16237 |
then : |
| 16238 |
eval 'as_fn_append () |
| 16239 |
{ |
| 16240 |
eval $1+=\$2 |
| 16241 |
}' |
| 16242 |
else $as_nop |
| 16243 |
as_fn_append () |
| 16244 |
{ |
| 16245 |
eval $1=\$$1\$2 |
| 16246 |
} |
| 16247 |
fi # as_fn_append |
| 16248 |
|
| 16249 |
# as_fn_arith ARG... |
| 16250 |
# ------------------ |
| 16251 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16252 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16253 |
# must be portable across $(()) and expr. |
| 16254 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 16255 |
then : |
| 16256 |
eval 'as_fn_arith () |
| 16257 |
{ |
| 16258 |
as_val=$(( $* )) |
| 16259 |
}' |
| 16260 |
else $as_nop |
| 16261 |
as_fn_arith () |
| 16262 |
{ |
| 16263 |
as_val=`expr "$@" || test $? -eq 1` |
| 16264 |
} |
| 16265 |
fi # as_fn_arith |
| 16266 |
|
| 16267 |
|
| 16268 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16269 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16270 |
as_expr=expr |
| 16271 |
else |
| 16272 |
as_expr=false |
| 16273 |
fi |
| 16274 |
|
| 16275 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16276 |
as_basename=basename |
| 16277 |
else |
| 16278 |
as_basename=false |
| 16279 |
fi |
| 16280 |
|
| 16281 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16282 |
as_dirname=dirname |
| 16283 |
else |
| 16284 |
as_dirname=false |
| 16285 |
fi |
| 16286 |
|
| 16287 |
as_me=`$as_basename -- "$0" || |
| 16288 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16289 |
X"$0" : 'X\(//\)$' \| \ |
| 16290 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 16291 |
printf "%s\n" X/"$0" | |
| 16292 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16293 |
s//\1/ |
| 16294 |
q |
| 16295 |
} |
| 16296 |
/^X\/\(\/\/\)$/{ |
| 16297 |
s//\1/ |
| 16298 |
q |
| 16299 |
} |
| 16300 |
/^X\/\(\/\).*/{ |
| 16301 |
s//\1/ |
| 16302 |
q |
| 16303 |
} |
| 16304 |
s/.*/./; q'` |
| 16305 |
|
| 16306 |
# Avoid depending upon Character Ranges. |
| 16307 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16308 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16309 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16310 |
as_cr_digits='0123456789' |
| 16311 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16312 |
|
| 16313 |
|
| 16314 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 16315 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 16316 |
# for compatibility with existing Makefiles. |
| 16317 |
ECHO_C= ECHO_N= ECHO_T= |
| 16318 |
case `echo -n x` in #((((( |
| 16319 |
-n*) |
| 16320 |
case `echo 'xy\c'` in |
| 16321 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16322 |
xy) ECHO_C='\c';; |
| 16323 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16324 |
ECHO_T=' ';; |
| 16325 |
esac;; |
| 16326 |
*) |
| 16327 |
ECHO_N='-n';; |
| 16328 |
esac |
| 16329 |
|
| 16330 |
# For backward compatibility with old third-party macros, we provide |
| 16331 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 16332 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 16333 |
as_echo='printf %s\n' |
| 16334 |
as_echo_n='printf %s' |
| 16335 |
|
| 16336 |
rm -f conf$$ conf$$.exe conf$$.file |
| 16337 |
if test -d conf$$.dir; then |
| 16338 |
rm -f conf$$.dir/conf$$.file |
| 16339 |
else |
| 16340 |
rm -f conf$$.dir |
| 16341 |
mkdir conf$$.dir 2>/dev/null |
| 16342 |
fi |
| 16343 |
if (echo >conf$$.file) 2>/dev/null; then |
| 16344 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16345 |
as_ln_s='ln -s' |
| 16346 |
# ... but there are two gotchas: |
| 16347 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16348 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16349 |
# In both cases, we have to default to `cp -pR'. |
| 16350 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16351 |
as_ln_s='cp -pR' |
| 16352 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16353 |
as_ln_s=ln |
| 16354 |
else |
| 16355 |
as_ln_s='cp -pR' |
| 16356 |
fi |
| 16357 |
else |
| 16358 |
as_ln_s='cp -pR' |
| 16359 |
fi |
| 16360 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16361 |
rmdir conf$$.dir 2>/dev/null |
| 16362 |
|
| 16363 |
|
| 16364 |
# as_fn_mkdir_p |
| 16365 |
# ------------- |
| 16366 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 16367 |
as_fn_mkdir_p () |
| 16368 |
{ |
| 16369 |
|
| 16370 |
case $as_dir in #( |
| 16371 |
-*) as_dir=./$as_dir;; |
| 16372 |
esac |
| 16373 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 16374 |
as_dirs= |
| 16375 |
while :; do |
| 16376 |
case $as_dir in #( |
| 16377 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16378 |
*) as_qdir=$as_dir;; |
| 16379 |
esac |
| 16380 |
as_dirs="'$as_qdir' $as_dirs" |
| 16381 |
as_dir=`$as_dirname -- "$as_dir" || |
| 16382 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16383 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16384 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 16385 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16386 |
printf "%s\n" X"$as_dir" | |
| 16387 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16388 |
s//\1/ |
| 16389 |
q |
| 16390 |
} |
| 16391 |
/^X\(\/\/\)[^/].*/{ |
| 16392 |
s//\1/ |
| 16393 |
q |
| 16394 |
} |
| 16395 |
/^X\(\/\/\)$/{ |
| 16396 |
s//\1/ |
| 16397 |
q |
| 16398 |
} |
| 16399 |
/^X\(\/\).*/{ |
| 16400 |
s//\1/ |
| 16401 |
q |
| 16402 |
} |
| 16403 |
s/.*/./; q'` |
| 16404 |
test -d "$as_dir" && break |
| 16405 |
done |
| 16406 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16407 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 16408 |
|
| 16409 |
|
| 16410 |
} # as_fn_mkdir_p |
| 16411 |
if mkdir -p . 2>/dev/null; then |
| 16412 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 16413 |
else |
| 16414 |
test -d ./-p && rmdir ./-p |
| 16415 |
as_mkdir_p=false |
| 16416 |
fi |
| 16417 |
|
| 16418 |
|
| 16419 |
# as_fn_executable_p FILE |
| 16420 |
# ----------------------- |
| 16421 |
# Test if FILE is an executable regular file. |
| 16422 |
as_fn_executable_p () |
| 16423 |
{ |
| 16424 |
test -f "$1" && test -x "$1" |
| 16425 |
} # as_fn_executable_p |
| 16426 |
as_test_x='test -x' |
| 16427 |
as_executable_p=as_fn_executable_p |
| 16428 |
|
| 16429 |
# Sed expression to map a string onto a valid CPP name. |
| 16430 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16431 |
|
| 16432 |
# Sed expression to map a string onto a valid variable name. |
| 16433 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16434 |
|
| 16435 |
|
| 16436 |
exec 6>&1 |
| 16437 |
## ----------------------------------- ## |
| 16438 |
## Main body of $CONFIG_STATUS script. ## |
| 16439 |
## ----------------------------------- ## |
| 16440 |
_ASEOF |
| 16441 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 16442 |
|
| 16443 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16444 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 16445 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 16446 |
# values after options handling. |
| 16447 |
ac_log=" |
| 16448 |
This file was extended by $as_me, which was |
| 16449 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 16450 |
|
| 16451 |
CONFIG_FILES = $CONFIG_FILES |
| 16452 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 16453 |
CONFIG_LINKS = $CONFIG_LINKS |
| 16454 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16455 |
$ $0 $@ |
| 16456 |
|
| 16457 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16458 |
" |
| 16459 |
|
| 16460 |
_ACEOF |
| 16461 |
|
| 16462 |
case $ac_config_files in *" |
| 16463 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16464 |
esac |
| 16465 |
|
| 16466 |
|
| 16467 |
|
| 16468 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16469 |
# Files that config.status was made for. |
| 16470 |
config_files="$ac_config_files" |
| 16471 |
|
| 16472 |
_ACEOF |
| 16473 |
|
| 16474 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16475 |
ac_cs_usage="\ |
| 16476 |
\`$as_me' instantiates files and other configuration actions |
| 16477 |
from templates according to the current configuration. Unless the files |
| 16478 |
and actions are specified as TAGs, all are instantiated by default. |
| 16479 |
|
| 16480 |
Usage: $0 [OPTION]... [TAG]... |
| 16481 |
|
| 16482 |
-h, --help print this help, then exit |
| 16483 |
-V, --version print version number and configuration settings, then exit |
| 16484 |
--config print configuration, then exit |
| 16485 |
-q, --quiet, --silent |
| 16486 |
do not print progress messages |
| 16487 |
-d, --debug don't remove temporary files |
| 16488 |
--recheck update $as_me by reconfiguring in the same conditions |
| 16489 |
--file=FILE[:TEMPLATE] |
| 16490 |
instantiate the configuration file FILE |
| 16491 |
|
| 16492 |
Configuration files: |
| 16493 |
$config_files |
| 16494 |
|
| 16495 |
Report bugs to the package provider." |
| 16496 |
|
| 16497 |
_ACEOF |
| 16498 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 16499 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 16500 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16501 |
ac_cs_config='$ac_cs_config_escaped' |
| 16502 |
ac_cs_version="\\ |
| 16503 |
config.status |
| 16504 |
configured by $0, generated by GNU Autoconf 2.71, |
| 16505 |
with options \\"\$ac_cs_config\\" |
| 16506 |
|
| 16507 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 16508 |
This config.status script is free software; the Free Software Foundation |
| 16509 |
gives unlimited permission to copy, distribute and modify it." |
| 16510 |
|
| 16511 |
ac_pwd='$ac_pwd' |
| 16512 |
srcdir='$srcdir' |
| 16513 |
test -n "\$AWK" || AWK=awk |
| 16514 |
_ACEOF |
| 16515 |
|
| 16516 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16517 |
# The default lists apply if the user does not specify any file. |
| 16518 |
ac_need_defaults=: |
| 16519 |
while test $# != 0 |
| 16520 |
do |
| 16521 |
case $1 in |
| 16522 |
--*=?*) |
| 16523 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16524 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 16525 |
ac_shift=: |
| 16526 |
;; |
| 16527 |
--*=) |
| 16528 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16529 |
ac_optarg= |
| 16530 |
ac_shift=: |
| 16531 |
;; |
| 16532 |
*) |
| 16533 |
ac_option=$1 |
| 16534 |
ac_optarg=$2 |
| 16535 |
ac_shift=shift |
| 16536 |
;; |
| 16537 |
esac |
| 16538 |
|
| 16539 |
case $ac_option in |
| 16540 |
# Handling of the options. |
| 16541 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16542 |
ac_cs_recheck=: ;; |
| 16543 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 16544 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 16545 |
--config | --confi | --conf | --con | --co | --c ) |
| 16546 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 16547 |
--debug | --debu | --deb | --de | --d | -d ) |
| 16548 |
debug=: ;; |
| 16549 |
--file | --fil | --fi | --f ) |
| 16550 |
$ac_shift |
| 16551 |
case $ac_optarg in |
| 16552 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16553 |
'') as_fn_error $? "missing file argument" ;; |
| 16554 |
esac |
| 16555 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 16556 |
ac_need_defaults=false;; |
| 16557 |
--he | --h | --help | --hel | -h ) |
| 16558 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 16559 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16560 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16561 |
ac_cs_silent=: ;; |
| 16562 |
|
| 16563 |
# This is an error. |
| 16564 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 16565 |
Try \`$0 --help' for more information." ;; |
| 16566 |
|
| 16567 |
*) as_fn_append ac_config_targets " $1" |
| 16568 |
ac_need_defaults=false ;; |
| 16569 |
|
| 16570 |
esac |
| 16571 |
shift |
| 16572 |
done |
| 16573 |
|
| 16574 |
ac_configure_extra_args= |
| 16575 |
|
| 16576 |
if $ac_cs_silent; then |
| 16577 |
exec 6>/dev/null |
| 16578 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16579 |
fi |
| 16580 |
|
| 16581 |
_ACEOF |
| 16582 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16583 |
if \$ac_cs_recheck; then |
| 16584 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16585 |
shift |
| 16586 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16587 |
CONFIG_SHELL='$SHELL' |
| 16588 |
export CONFIG_SHELL |
| 16589 |
exec "\$@" |
| 16590 |
fi |
| 16591 |
|
| 16592 |
_ACEOF |
| 16593 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16594 |
exec 5>>config.log |
| 16595 |
{ |
| 16596 |
echo |
| 16597 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16598 |
## Running $as_me. ## |
| 16599 |
_ASBOX |
| 16600 |
printf "%s\n" "$ac_log" |
| 16601 |
} >&5 |
| 16602 |
|
| 16603 |
_ACEOF |
| 16604 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16605 |
_ACEOF |
| 16606 |
|
| 16607 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16608 |
|
| 16609 |
# Handling of arguments. |
| 16610 |
for ac_config_target in $ac_config_targets |
| 16611 |
do |
| 16612 |
case $ac_config_target in |
| 16613 |
"$CONFIG_FILES_LIST") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES_LIST" ;; |
| 16614 |
|
| 16615 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 16616 |
esac |
| 16617 |
done |
| 16618 |
|
| 16619 |
|
| 16620 |
# If the user did not use the arguments to specify the items to instantiate, |
| 16621 |
# then the envvar interface is used. Set only those that are not. |
| 16622 |
# We use the long form for the default assignment because of an extremely |
| 16623 |
# bizarre bug on SunOS 4.1.3. |
| 16624 |
if $ac_need_defaults; then |
| 16625 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 16626 |
fi |
| 16627 |
|
| 16628 |
# Have a temporary directory for convenience. Make it in the build tree |
| 16629 |
# simply because there is no reason against having it here, and in addition, |
| 16630 |
# creating and moving files from /tmp can sometimes cause problems. |
| 16631 |
# Hook for its removal unless debugging. |
| 16632 |
# Note that there is a small window in which the directory will not be cleaned: |
| 16633 |
# after its creation but before its name has been assigned to `$tmp'. |
| 16634 |
$debug || |
| 16635 |
{ |
| 16636 |
tmp= ac_tmp= |
| 16637 |
trap 'exit_status=$? |
| 16638 |
: "${ac_tmp:=$tmp}" |
| 16639 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 16640 |
' 0 |
| 16641 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 16642 |
} |
| 16643 |
# Create a (secure) tmp directory for tmp files. |
| 16644 |
|
| 16645 |
{ |
| 16646 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 16647 |
test -d "$tmp" |
| 16648 |
} || |
| 16649 |
{ |
| 16650 |
tmp=./conf$$-$RANDOM |
| 16651 |
(umask 077 && mkdir "$tmp") |
| 16652 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 16653 |
ac_tmp=$tmp |
| 16654 |
|
| 16655 |
# Set up the scripts for CONFIG_FILES section. |
| 16656 |
# No need to generate them if there are no CONFIG_FILES. |
| 16657 |
# This happens for instance with `./config.status config.h'. |
| 16658 |
if test -n "$CONFIG_FILES"; then |
| 16659 |
|
| 16660 |
|
| 16661 |
ac_cr=`echo X | tr X '\015'` |
| 16662 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16663 |
# But we know of no other shell where ac_cr would be empty at this |
| 16664 |
# point, so we can use a bashism as a fallback. |
| 16665 |
if test "x$ac_cr" = x; then |
| 16666 |
eval ac_cr=\$\'\\r\' |
| 16667 |
fi |
| 16668 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16669 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16670 |
ac_cs_awk_cr='\\r' |
| 16671 |
else |
| 16672 |
ac_cs_awk_cr=$ac_cr |
| 16673 |
fi |
| 16674 |
|
| 16675 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 16676 |
_ACEOF |
| 16677 |
|
| 16678 |
|
| 16679 |
{ |
| 16680 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16681 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16682 |
echo "_ACEOF" |
| 16683 |
} >conf$$subs.sh || |
| 16684 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16685 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 16686 |
ac_delim='%!_!# ' |
| 16687 |
for ac_last_try in false false false false false :; do |
| 16688 |
. ./conf$$subs.sh || |
| 16689 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16690 |
|
| 16691 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16692 |
if test $ac_delim_n = $ac_delim_num; then |
| 16693 |
break |
| 16694 |
elif $ac_last_try; then |
| 16695 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16696 |
else |
| 16697 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16698 |
fi |
| 16699 |
done |
| 16700 |
rm -f conf$$subs.sh |
| 16701 |
|
| 16702 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16703 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 16704 |
_ACEOF |
| 16705 |
sed -n ' |
| 16706 |
h |
| 16707 |
s/^/S["/; s/!.*/"]=/ |
| 16708 |
p |
| 16709 |
g |
| 16710 |
s/^[^!]*!// |
| 16711 |
:repl |
| 16712 |
t repl |
| 16713 |
s/'"$ac_delim"'$// |
| 16714 |
t delim |
| 16715 |
:nl |
| 16716 |
h |
| 16717 |
s/\(.\{148\}\)..*/\1/ |
| 16718 |
t more1 |
| 16719 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16720 |
p |
| 16721 |
n |
| 16722 |
b repl |
| 16723 |
:more1 |
| 16724 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16725 |
p |
| 16726 |
g |
| 16727 |
s/.\{148\}// |
| 16728 |
t nl |
| 16729 |
:delim |
| 16730 |
h |
| 16731 |
s/\(.\{148\}\)..*/\1/ |
| 16732 |
t more2 |
| 16733 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16734 |
p |
| 16735 |
b |
| 16736 |
:more2 |
| 16737 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16738 |
p |
| 16739 |
g |
| 16740 |
s/.\{148\}// |
| 16741 |
t delim |
| 16742 |
' <conf$$subs.awk | sed ' |
| 16743 |
/^[^""]/{ |
| 16744 |
N |
| 16745 |
s/\n// |
| 16746 |
} |
| 16747 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16748 |
rm -f conf$$subs.awk |
| 16749 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16750 |
_ACAWK |
| 16751 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 16752 |
for (key in S) S_is_set[key] = 1 |
| 16753 |
FS = "" |
| 16754 |
|
| 16755 |
} |
| 16756 |
{ |
| 16757 |
line = $ 0 |
| 16758 |
nfields = split(line, field, "@") |
| 16759 |
substed = 0 |
| 16760 |
len = length(field[1]) |
| 16761 |
for (i = 2; i < nfields; i++) { |
| 16762 |
key = field[i] |
| 16763 |
keylen = length(key) |
| 16764 |
if (S_is_set[key]) { |
| 16765 |
value = S[key] |
| 16766 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16767 |
len += length(value) + length(field[++i]) |
| 16768 |
substed = 1 |
| 16769 |
} else |
| 16770 |
len += 1 + keylen |
| 16771 |
} |
| 16772 |
|
| 16773 |
print line |
| 16774 |
} |
| 16775 |
|
| 16776 |
_ACAWK |
| 16777 |
_ACEOF |
| 16778 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16779 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16780 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16781 |
else |
| 16782 |
cat |
| 16783 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 16784 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 16785 |
_ACEOF |
| 16786 |
|
| 16787 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16788 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 16789 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 16790 |
# (actually we leave an empty line to preserve line numbers). |
| 16791 |
if test "x$srcdir" = x.; then |
| 16792 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16793 |
h |
| 16794 |
s/// |
| 16795 |
s/^/:/ |
| 16796 |
s/[ ]*$/:/ |
| 16797 |
s/:\$(srcdir):/:/g |
| 16798 |
s/:\${srcdir}:/:/g |
| 16799 |
s/:@srcdir@:/:/g |
| 16800 |
s/^:*// |
| 16801 |
s/:*$// |
| 16802 |
x |
| 16803 |
s/\(=[ ]*\).*/\1/ |
| 16804 |
G |
| 16805 |
s/\n// |
| 16806 |
s/^[^=]*=[ ]*$// |
| 16807 |
}' |
| 16808 |
fi |
| 16809 |
|
| 16810 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16811 |
fi # test -n "$CONFIG_FILES" |
| 16812 |
|
| 16813 |
|
| 16814 |
eval set X " :F $CONFIG_FILES " |
| 16815 |
shift |
| 16816 |
for ac_tag |
| 16817 |
do |
| 16818 |
case $ac_tag in |
| 16819 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 16820 |
esac |
| 16821 |
case $ac_mode$ac_tag in |
| 16822 |
:[FHL]*:*);; |
| 16823 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 16824 |
:[FH]-) ac_tag=-:-;; |
| 16825 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16826 |
esac |
| 16827 |
ac_save_IFS=$IFS |
| 16828 |
IFS=: |
| 16829 |
set x $ac_tag |
| 16830 |
IFS=$ac_save_IFS |
| 16831 |
shift |
| 16832 |
ac_file=$1 |
| 16833 |
shift |
| 16834 |
|
| 16835 |
case $ac_mode in |
| 16836 |
:L) ac_source=$1;; |
| 16837 |
:[FH]) |
| 16838 |
ac_file_inputs= |
| 16839 |
for ac_f |
| 16840 |
do |
| 16841 |
case $ac_f in |
| 16842 |
-) ac_f="$ac_tmp/stdin";; |
| 16843 |
*) # Look for the file first in the build tree, then in the source tree |
| 16844 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16845 |
# because $ac_f cannot contain `:'. |
| 16846 |
test -f "$ac_f" || |
| 16847 |
case $ac_f in |
| 16848 |
[\\/$]*) false;; |
| 16849 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16850 |
esac || |
| 16851 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 16852 |
esac |
| 16853 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 16854 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 16855 |
done |
| 16856 |
|
| 16857 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16858 |
# use $as_me), people would be surprised to read: |
| 16859 |
# /* config.h. Generated by config.status. */ |
| 16860 |
configure_input='Generated from '` |
| 16861 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16862 |
`' by configure.' |
| 16863 |
if test x"$ac_file" != x-; then |
| 16864 |
configure_input="$ac_file. $configure_input" |
| 16865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 16866 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 16867 |
fi |
| 16868 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 16869 |
case $configure_input in #( |
| 16870 |
*\&* | *\|* | *\\* ) |
| 16871 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 16872 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16873 |
*) ac_sed_conf_input=$configure_input;; |
| 16874 |
esac |
| 16875 |
|
| 16876 |
case $ac_tag in |
| 16877 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 16878 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 16879 |
esac |
| 16880 |
;; |
| 16881 |
esac |
| 16882 |
|
| 16883 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 16884 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16885 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16886 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 16887 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 16888 |
printf "%s\n" X"$ac_file" | |
| 16889 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16890 |
s//\1/ |
| 16891 |
q |
| 16892 |
} |
| 16893 |
/^X\(\/\/\)[^/].*/{ |
| 16894 |
s//\1/ |
| 16895 |
q |
| 16896 |
} |
| 16897 |
/^X\(\/\/\)$/{ |
| 16898 |
s//\1/ |
| 16899 |
q |
| 16900 |
} |
| 16901 |
/^X\(\/\).*/{ |
| 16902 |
s//\1/ |
| 16903 |
q |
| 16904 |
} |
| 16905 |
s/.*/./; q'` |
| 16906 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 16907 |
ac_builddir=. |
| 16908 |
|
| 16909 |
case "$ac_dir" in |
| 16910 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16911 |
*) |
| 16912 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 16913 |
# A ".." for each directory in $ac_dir_suffix. |
| 16914 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 16915 |
case $ac_top_builddir_sub in |
| 16916 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16917 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16918 |
esac ;; |
| 16919 |
esac |
| 16920 |
ac_abs_top_builddir=$ac_pwd |
| 16921 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16922 |
# for backward compatibility: |
| 16923 |
ac_top_builddir=$ac_top_build_prefix |
| 16924 |
|
| 16925 |
case $srcdir in |
| 16926 |
.) # We are building in place. |
| 16927 |
ac_srcdir=. |
| 16928 |
ac_top_srcdir=$ac_top_builddir_sub |
| 16929 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 16930 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 16931 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 16932 |
ac_top_srcdir=$srcdir |
| 16933 |
ac_abs_top_srcdir=$srcdir ;; |
| 16934 |
*) # Relative name. |
| 16935 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16936 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16937 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 16938 |
esac |
| 16939 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 16940 |
|
| 16941 |
|
| 16942 |
case $ac_mode in |
| 16943 |
:F) |
| 16944 |
# |
| 16945 |
# CONFIG_FILE |
| 16946 |
# |
| 16947 |
|
| 16948 |
_ACEOF |
| 16949 |
|
| 16950 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16951 |
# If the template does not know about datarootdir, expand it. |
| 16952 |
# FIXME: This hack should be removed a few years after 2.60. |
| 16953 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16954 |
ac_sed_dataroot=' |
| 16955 |
/datarootdir/ { |
| 16956 |
p |
| 16957 |
q |
| 16958 |
} |
| 16959 |
/@datadir@/p |
| 16960 |
/@docdir@/p |
| 16961 |
/@infodir@/p |
| 16962 |
/@localedir@/p |
| 16963 |
/@mandir@/p' |
| 16964 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 16965 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 16966 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16967 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16968 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16969 |
_ACEOF |
| 16970 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16971 |
ac_datarootdir_hack=' |
| 16972 |
s&@datadir@&$datadir&g |
| 16973 |
s&@docdir@&$docdir&g |
| 16974 |
s&@infodir@&$infodir&g |
| 16975 |
s&@localedir@&$localedir&g |
| 16976 |
s&@mandir@&$mandir&g |
| 16977 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16978 |
esac |
| 16979 |
_ACEOF |
| 16980 |
|
| 16981 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 16982 |
# Shell code in configure.ac might set extrasub. |
| 16983 |
# FIXME: do we really want to maintain this feature? |
| 16984 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16985 |
ac_sed_extra="$ac_vpsub |
| 16986 |
$extrasub |
| 16987 |
_ACEOF |
| 16988 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16989 |
:t |
| 16990 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16991 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 16992 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16993 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 16994 |
s&@srcdir@&$ac_srcdir&;t t |
| 16995 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16996 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16997 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16998 |
s&@builddir@&$ac_builddir&;t t |
| 16999 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17000 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17001 |
$ac_datarootdir_hack |
| 17002 |
" |
| 17003 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17004 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17005 |
|
| 17006 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17007 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17008 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17009 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 17010 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17011 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 17012 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17013 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 17014 |
|
| 17015 |
rm -f "$ac_tmp/stdin" |
| 17016 |
case $ac_file in |
| 17017 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17018 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 17019 |
esac \ |
| 17020 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17021 |
;; |
| 17022 |
|
| 17023 |
|
| 17024 |
|
| 17025 |
esac |
| 17026 |
|
| 17027 |
done # for ac_tag |
| 17028 |
|
| 17029 |
|
| 17030 |
as_fn_exit 0 |
| 17031 |
_ACEOF |
| 17032 |
ac_clean_files=$ac_clean_files_save |
| 17033 |
|
| 17034 |
test $ac_write_fail = 0 || |
| 17035 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17036 |
|
| 17037 |
|
| 17038 |
# configure is writing to config.log, and then calls config.status. |
| 17039 |
# config.status does its own redirection, appending to config.log. |
| 17040 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 17041 |
# by configure, so config.status won't be able to write to it; its |
| 17042 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 17043 |
# effectively closing config.log, so it can be properly (re)opened and |
| 17044 |
# appended to by config.status. When coming back to configure, we |
| 17045 |
# need to make the FD available again. |
| 17046 |
if test "$no_create" != yes; then |
| 17047 |
ac_cs_success=: |
| 17048 |
ac_config_status_args= |
| 17049 |
test "$silent" = yes && |
| 17050 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 17051 |
exec 5>/dev/null |
| 17052 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17053 |
exec 5>>config.log |
| 17054 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17055 |
# would make configure fail if this is the last instruction. |
| 17056 |
$ac_cs_success || as_fn_exit 1 |
| 17057 |
fi |
| 17058 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17060 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17061 |
fi |
| 17062 |
|
| 17063 |
|