| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.72. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 19 |
then : |
| 20 |
emulate sh |
| 21 |
NULLCMD=: |
| 22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 |
# is contrary to our usage. Disable this feature. |
| 24 |
alias -g '${1+"$@"}'='"$@"' |
| 25 |
setopt NO_GLOB_SUBST |
| 26 |
else case e in #( |
| 27 |
e) case `(set -o) 2>/dev/null` in #( |
| 28 |
*posix*) : |
| 29 |
set -o posix ;; #( |
| 30 |
*) : |
| 31 |
;; |
| 32 |
esac ;; |
| 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 142 |
then : |
| 143 |
emulate sh |
| 144 |
NULLCMD=: |
| 145 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 146 |
# is contrary to our usage. Disable this feature. |
| 147 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 148 |
setopt NO_GLOB_SUBST |
| 149 |
else case e in #( |
| 150 |
e) case \`(set -o) 2>/dev/null\` in #( |
| 151 |
*posix*) : |
| 152 |
set -o posix ;; #( |
| 153 |
*) : |
| 154 |
;; |
| 155 |
esac ;; |
| 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 case e in #( |
| 174 |
e) exitcode=1; echo positional parameters were not saved. ;; |
| 175 |
esac |
| 176 |
fi |
| 177 |
test x\$exitcode = x0 || exit 1 |
| 178 |
blah=\$(echo \$(echo blah)) |
| 179 |
test x\"\$blah\" = xblah || exit 1 |
| 180 |
test -x / || exit 1" |
| 181 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 182 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 183 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 184 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 185 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 186 |
if (eval "$as_required") 2>/dev/null |
| 187 |
then : |
| 188 |
as_have_required=yes |
| 189 |
else case e in #( |
| 190 |
e) as_have_required=no ;; |
| 191 |
esac |
| 192 |
fi |
| 193 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 |
then : |
| 195 |
|
| 196 |
else case e in #( |
| 197 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 |
as_found=false |
| 199 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 |
do |
| 201 |
IFS=$as_save_IFS |
| 202 |
case $as_dir in #((( |
| 203 |
'') as_dir=./ ;; |
| 204 |
*/) ;; |
| 205 |
*) as_dir=$as_dir/ ;; |
| 206 |
esac |
| 207 |
as_found=: |
| 208 |
case $as_dir in #( |
| 209 |
/*) |
| 210 |
for as_base in sh bash ksh sh5; do |
| 211 |
# Try only shells that exist, to save several forks. |
| 212 |
as_shell=$as_dir$as_base |
| 213 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 214 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 |
then : |
| 216 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 217 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 |
then : |
| 219 |
break 2 |
| 220 |
fi |
| 221 |
fi |
| 222 |
done;; |
| 223 |
esac |
| 224 |
as_found=false |
| 225 |
done |
| 226 |
IFS=$as_save_IFS |
| 227 |
if $as_found |
| 228 |
then : |
| 229 |
|
| 230 |
else case e in #( |
| 231 |
e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 |
then : |
| 234 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 |
fi ;; |
| 236 |
esac |
| 237 |
fi |
| 238 |
|
| 239 |
|
| 240 |
if test "x$CONFIG_SHELL" != x |
| 241 |
then : |
| 242 |
export CONFIG_SHELL |
| 243 |
# We cannot yet assume a decent shell, so we have to provide a |
| 244 |
# neutralization value for shells without unset; and this also |
| 245 |
# works around shells that cannot unset nonexistent variables. |
| 246 |
# Preserve -v and -x to the replacement shell. |
| 247 |
BASH_ENV=/dev/null |
| 248 |
ENV=/dev/null |
| 249 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 |
case $- in # (((( |
| 251 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 252 |
*v* ) as_opts=-v ;; |
| 253 |
*x* ) as_opts=-x ;; |
| 254 |
* ) as_opts= ;; |
| 255 |
esac |
| 256 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 258 |
# out after a failed 'exec'. |
| 259 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 |
exit 255 |
| 261 |
fi |
| 262 |
|
| 263 |
if test x$as_have_required = xno |
| 264 |
then : |
| 265 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 266 |
printf "%s\n" "$0: the shells that I found on your system." |
| 267 |
if test ${ZSH_VERSION+y} ; then |
| 268 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 269 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 270 |
else |
| 271 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 272 |
$0: including any error possibly output before this |
| 273 |
$0: message. Then install a modern shell, or manually run |
| 274 |
$0: the script under such a shell if you do have one." |
| 275 |
fi |
| 276 |
exit 1 |
| 277 |
fi ;; |
| 278 |
esac |
| 279 |
fi |
| 280 |
fi |
| 281 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 282 |
export SHELL |
| 283 |
# Unset more variables known to interfere with behavior of common tools. |
| 284 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 285 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 286 |
|
| 287 |
## --------------------- ## |
| 288 |
## M4sh Shell Functions. ## |
| 289 |
## --------------------- ## |
| 290 |
# as_fn_unset VAR |
| 291 |
# --------------- |
| 292 |
# Portably unset VAR. |
| 293 |
as_fn_unset () |
| 294 |
{ |
| 295 |
{ eval $1=; unset $1;} |
| 296 |
} |
| 297 |
as_unset=as_fn_unset |
| 298 |
|
| 299 |
|
| 300 |
# as_fn_set_status STATUS |
| 301 |
# ----------------------- |
| 302 |
# Set $? to STATUS, without forking. |
| 303 |
as_fn_set_status () |
| 304 |
{ |
| 305 |
return $1 |
| 306 |
} # as_fn_set_status |
| 307 |
|
| 308 |
# as_fn_exit STATUS |
| 309 |
# ----------------- |
| 310 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 311 |
as_fn_exit () |
| 312 |
{ |
| 313 |
set +e |
| 314 |
as_fn_set_status $1 |
| 315 |
exit $1 |
| 316 |
} # as_fn_exit |
| 317 |
|
| 318 |
# as_fn_mkdir_p |
| 319 |
# ------------- |
| 320 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 321 |
as_fn_mkdir_p () |
| 322 |
{ |
| 323 |
|
| 324 |
case $as_dir in #( |
| 325 |
-*) as_dir=./$as_dir;; |
| 326 |
esac |
| 327 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 328 |
as_dirs= |
| 329 |
while :; do |
| 330 |
case $as_dir in #( |
| 331 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 332 |
*) as_qdir=$as_dir;; |
| 333 |
esac |
| 334 |
as_dirs="'$as_qdir' $as_dirs" |
| 335 |
as_dir=`$as_dirname -- "$as_dir" || |
| 336 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 337 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 338 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 339 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 340 |
printf "%s\n" X"$as_dir" | |
| 341 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 342 |
s//\1/ |
| 343 |
q |
| 344 |
} |
| 345 |
/^X\(\/\/\)[^/].*/{ |
| 346 |
s//\1/ |
| 347 |
q |
| 348 |
} |
| 349 |
/^X\(\/\/\)$/{ |
| 350 |
s//\1/ |
| 351 |
q |
| 352 |
} |
| 353 |
/^X\(\/\).*/{ |
| 354 |
s//\1/ |
| 355 |
q |
| 356 |
} |
| 357 |
s/.*/./; q'` |
| 358 |
test -d "$as_dir" && break |
| 359 |
done |
| 360 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 361 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 362 |
|
| 363 |
|
| 364 |
} # as_fn_mkdir_p |
| 365 |
|
| 366 |
# as_fn_executable_p FILE |
| 367 |
# ----------------------- |
| 368 |
# Test if FILE is an executable regular file. |
| 369 |
as_fn_executable_p () |
| 370 |
{ |
| 371 |
test -f "$1" && test -x "$1" |
| 372 |
} # as_fn_executable_p |
| 373 |
# as_fn_append VAR VALUE |
| 374 |
# ---------------------- |
| 375 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 376 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 377 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 378 |
# implementations. |
| 379 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 380 |
then : |
| 381 |
eval 'as_fn_append () |
| 382 |
{ |
| 383 |
eval $1+=\$2 |
| 384 |
}' |
| 385 |
else case e in #( |
| 386 |
e) as_fn_append () |
| 387 |
{ |
| 388 |
eval $1=\$$1\$2 |
| 389 |
} ;; |
| 390 |
esac |
| 391 |
fi # as_fn_append |
| 392 |
|
| 393 |
# as_fn_arith ARG... |
| 394 |
# ------------------ |
| 395 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 |
# must be portable across $(()) and expr. |
| 398 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 399 |
then : |
| 400 |
eval 'as_fn_arith () |
| 401 |
{ |
| 402 |
as_val=$(( $* )) |
| 403 |
}' |
| 404 |
else case e in #( |
| 405 |
e) as_fn_arith () |
| 406 |
{ |
| 407 |
as_val=`expr "$@" || test $? -eq 1` |
| 408 |
} ;; |
| 409 |
esac |
| 410 |
fi # as_fn_arith |
| 411 |
|
| 412 |
|
| 413 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 414 |
# ---------------------------------------- |
| 415 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 416 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 417 |
# script with STATUS, using 1 if that was 0. |
| 418 |
as_fn_error () |
| 419 |
{ |
| 420 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 421 |
if test "$4"; then |
| 422 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 423 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 424 |
fi |
| 425 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 426 |
as_fn_exit $as_status |
| 427 |
} # as_fn_error |
| 428 |
|
| 429 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 430 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 431 |
as_expr=expr |
| 432 |
else |
| 433 |
as_expr=false |
| 434 |
fi |
| 435 |
|
| 436 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 437 |
as_basename=basename |
| 438 |
else |
| 439 |
as_basename=false |
| 440 |
fi |
| 441 |
|
| 442 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 443 |
as_dirname=dirname |
| 444 |
else |
| 445 |
as_dirname=false |
| 446 |
fi |
| 447 |
|
| 448 |
as_me=`$as_basename -- "$0" || |
| 449 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 450 |
X"$0" : 'X\(//\)$' \| \ |
| 451 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 452 |
printf "%s\n" X/"$0" | |
| 453 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 454 |
s//\1/ |
| 455 |
q |
| 456 |
} |
| 457 |
/^X\/\(\/\/\)$/{ |
| 458 |
s//\1/ |
| 459 |
q |
| 460 |
} |
| 461 |
/^X\/\(\/\).*/{ |
| 462 |
s//\1/ |
| 463 |
q |
| 464 |
} |
| 465 |
s/.*/./; q'` |
| 466 |
|
| 467 |
# Avoid depending upon Character Ranges. |
| 468 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 469 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 470 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 471 |
as_cr_digits='0123456789' |
| 472 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 473 |
|
| 474 |
|
| 475 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 476 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 477 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 478 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 479 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 480 |
sed -n ' |
| 481 |
p |
| 482 |
/[$]LINENO/= |
| 483 |
' <$as_myself | |
| 484 |
sed ' |
| 485 |
t clear |
| 486 |
:clear |
| 487 |
s/[$]LINENO.*/&-/ |
| 488 |
t lineno |
| 489 |
b |
| 490 |
:lineno |
| 491 |
N |
| 492 |
:loop |
| 493 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 494 |
t loop |
| 495 |
s/-\n.*// |
| 496 |
' >$as_me.lineno && |
| 497 |
chmod +x "$as_me.lineno" || |
| 498 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 499 |
|
| 500 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 501 |
# already done that, so ensure we don't try to do so again and fall |
| 502 |
# in an infinite loop. This has already happened in practice. |
| 503 |
_as_can_reexec=no; export _as_can_reexec |
| 504 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 505 |
# (the dirname of $[0] is not the place where we might find the |
| 506 |
# original and so on. Autoconf is especially sensitive to this). |
| 507 |
. "./$as_me.lineno" |
| 508 |
# Exit status is that of the last command. |
| 509 |
exit |
| 510 |
} |
| 511 |
|
| 512 |
|
| 513 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 514 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 515 |
# for compatibility with existing Makefiles. |
| 516 |
ECHO_C= ECHO_N= ECHO_T= |
| 517 |
case `echo -n x` in #((((( |
| 518 |
-n*) |
| 519 |
case `echo 'xy\c'` in |
| 520 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 521 |
xy) ECHO_C='\c';; |
| 522 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 523 |
ECHO_T=' ';; |
| 524 |
esac;; |
| 525 |
*) |
| 526 |
ECHO_N='-n';; |
| 527 |
esac |
| 528 |
|
| 529 |
# For backward compatibility with old third-party macros, we provide |
| 530 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 531 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 532 |
as_echo='printf %s\n' |
| 533 |
as_echo_n='printf %s' |
| 534 |
|
| 535 |
rm -f conf$$ conf$$.exe conf$$.file |
| 536 |
if test -d conf$$.dir; then |
| 537 |
rm -f conf$$.dir/conf$$.file |
| 538 |
else |
| 539 |
rm -f conf$$.dir |
| 540 |
mkdir conf$$.dir 2>/dev/null |
| 541 |
fi |
| 542 |
if (echo >conf$$.file) 2>/dev/null; then |
| 543 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 544 |
as_ln_s='ln -s' |
| 545 |
# ... but there are two gotchas: |
| 546 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 547 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 548 |
# In both cases, we have to default to 'cp -pR'. |
| 549 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 550 |
as_ln_s='cp -pR' |
| 551 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 552 |
as_ln_s=ln |
| 553 |
else |
| 554 |
as_ln_s='cp -pR' |
| 555 |
fi |
| 556 |
else |
| 557 |
as_ln_s='cp -pR' |
| 558 |
fi |
| 559 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 560 |
rmdir conf$$.dir 2>/dev/null |
| 561 |
|
| 562 |
if mkdir -p . 2>/dev/null; then |
| 563 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 564 |
else |
| 565 |
test -d ./-p && rmdir ./-p |
| 566 |
as_mkdir_p=false |
| 567 |
fi |
| 568 |
|
| 569 |
as_test_x='test -x' |
| 570 |
as_executable_p=as_fn_executable_p |
| 571 |
|
| 572 |
# Sed expression to map a string onto a valid CPP name. |
| 573 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 574 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 575 |
|
| 576 |
# Sed expression to map a string onto a valid variable name. |
| 577 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 578 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 579 |
|
| 580 |
|
| 581 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 582 |
exec 6>&1 |
| 583 |
|
| 584 |
# Name of the host. |
| 585 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 586 |
# so uname gets run too. |
| 587 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 588 |
|
| 589 |
# |
| 590 |
# Initializations. |
| 591 |
# |
| 592 |
ac_default_prefix=/usr/local |
| 593 |
ac_clean_files= |
| 594 |
ac_config_libobj_dir=. |
| 595 |
LIBOBJS= |
| 596 |
cross_compiling=no |
| 597 |
subdirs= |
| 598 |
MFLAGS= |
| 599 |
MAKEFLAGS= |
| 600 |
|
| 601 |
# Identity of this package. |
| 602 |
PACKAGE_NAME='' |
| 603 |
PACKAGE_TARNAME='' |
| 604 |
PACKAGE_VERSION='' |
| 605 |
PACKAGE_STRING='' |
| 606 |
PACKAGE_BUGREPORT='' |
| 607 |
PACKAGE_URL='' |
| 608 |
|
| 609 |
ac_unique_file="vim.h" |
| 610 |
# Factoring default headers for most tests. |
| 611 |
ac_includes_default="\ |
| 612 |
#include <stddef.h> |
| 613 |
#ifdef HAVE_STDIO_H |
| 614 |
# include <stdio.h> |
| 615 |
#endif |
| 616 |
#ifdef HAVE_STDLIB_H |
| 617 |
# include <stdlib.h> |
| 618 |
#endif |
| 619 |
#ifdef HAVE_STRING_H |
| 620 |
# include <string.h> |
| 621 |
#endif |
| 622 |
#ifdef HAVE_INTTYPES_H |
| 623 |
# include <inttypes.h> |
| 624 |
#endif |
| 625 |
#ifdef HAVE_STDINT_H |
| 626 |
# include <stdint.h> |
| 627 |
#endif |
| 628 |
#ifdef HAVE_STRINGS_H |
| 629 |
# include <strings.h> |
| 630 |
#endif |
| 631 |
#ifdef HAVE_SYS_TYPES_H |
| 632 |
# include <sys/types.h> |
| 633 |
#endif |
| 634 |
#ifdef HAVE_SYS_STAT_H |
| 635 |
# include <sys/stat.h> |
| 636 |
#endif |
| 637 |
#ifdef HAVE_UNISTD_H |
| 638 |
# include <unistd.h> |
| 639 |
#endif" |
| 640 |
|
| 641 |
ac_header_c_list= |
| 642 |
enable_year2038=no |
| 643 |
ac_subst_vars='LTLIBOBJS |
| 644 |
LIBOBJS |
| 645 |
LINK_AS_NEEDED |
| 646 |
DEPEND_CFLAGS_FILTER |
| 647 |
MSGFMTCMD |
| 648 |
MSGFMT_DESKTOP |
| 649 |
MAKEMO |
| 650 |
MSGFMT |
| 651 |
INSTALL_TOOL_LANGS |
| 652 |
INSTALL_LANGS |
| 653 |
TAGPRG |
| 654 |
GUI_X_LIBS |
| 655 |
GUITYPE |
| 656 |
GUI_LIB_LOC |
| 657 |
GUI_INC_LOC |
| 658 |
NARROW_PROTO |
| 659 |
MOTIF_LIBNAME |
| 660 |
GRESOURCE_OBJ |
| 661 |
GRESOURCE_SRC |
| 662 |
UPDATE_DESKTOP_DATABASE |
| 663 |
GTK_UPDATE_ICON_CACHE |
| 664 |
GLIB_COMPILE_RESOURCES |
| 665 |
GNOME_INCLUDEDIR |
| 666 |
GNOME_LIBDIR |
| 667 |
GNOME_LIBS |
| 668 |
GTK_LIBNAME |
| 669 |
GTK_LIBS |
| 670 |
GTK_CFLAGS |
| 671 |
GTK_CPPFLAGS |
| 672 |
X_LIB |
| 673 |
X_EXTRA_LIBS |
| 674 |
X_LIBS |
| 675 |
X_PRE_LIBS |
| 676 |
X_CFLAGS |
| 677 |
XMKMF |
| 678 |
xmkmfpath |
| 679 |
WAYLAND_OBJ |
| 680 |
WAYLAND_SRC |
| 681 |
WAYLAND_LIBS |
| 682 |
WAYLAND_CFLAGS |
| 683 |
WAYLAND_CPPFLAGS |
| 684 |
TERM_TEST |
| 685 |
TERM_OBJ |
| 686 |
TERM_SRC |
| 687 |
CHANNEL_OBJ |
| 688 |
CHANNEL_SRC |
| 689 |
NETBEANS_OBJ |
| 690 |
NETBEANS_SRC |
| 691 |
RUBY_LIBS |
| 692 |
RUBY_CFLAGS_EXTRA |
| 693 |
RUBY_CFLAGS |
| 694 |
RUBY_OBJ |
| 695 |
RUBY_SRC |
| 696 |
vi_cv_path_ruby |
| 697 |
TCL_LIBS |
| 698 |
TCL_CFLAGS_EXTRA |
| 699 |
TCL_CFLAGS |
| 700 |
TCL_OBJ |
| 701 |
TCL_SRC |
| 702 |
vi_cv_path_tcl |
| 703 |
PYTHON3_OBJ |
| 704 |
PYTHON3_SRC |
| 705 |
PYTHON3_CFLAGS_EXTRA |
| 706 |
PYTHON3_CFLAGS |
| 707 |
PYTHON3_LIBS |
| 708 |
vi_cv_var_python3_stable_abi |
| 709 |
vi_cv_path_python3 |
| 710 |
PYTHON_OBJ |
| 711 |
PYTHON_SRC |
| 712 |
PYTHON_CFLAGS_EXTRA |
| 713 |
PYTHON_CFLAGS |
| 714 |
PYTHON_LIBS |
| 715 |
vi_cv_path_python |
| 716 |
PERL_LIBS |
| 717 |
PERL_CFLAGS_EXTRA |
| 718 |
PERL_CFLAGS |
| 719 |
PERL_PRO |
| 720 |
PERL_OBJ |
| 721 |
PERL_SRC |
| 722 |
shrpenv |
| 723 |
vi_cv_perl_xsubpp |
| 724 |
vi_cv_perllib |
| 725 |
vi_cv_path_perl |
| 726 |
MZSCHEME_MZC |
| 727 |
MZSCHEME_EXTRA |
| 728 |
MZSCHEME_CFLAGS |
| 729 |
MZSCHEME_LIBS |
| 730 |
MZSCHEME_OBJ |
| 731 |
MZSCHEME_SRC |
| 732 |
vi_cv_path_mzscheme |
| 733 |
LUA_CFLAGS_EXTRA |
| 734 |
LUA_CFLAGS |
| 735 |
LUA_LIBS |
| 736 |
LUA_OBJ |
| 737 |
LUA_SRC |
| 738 |
vi_cv_path_plain_lua |
| 739 |
vi_cv_path_luajit |
| 740 |
vi_cv_path_lua |
| 741 |
XDIFF_OBJS_USED |
| 742 |
compiledby |
| 743 |
dogvimdiff |
| 744 |
dovimdiff |
| 745 |
QUOTESED |
| 746 |
line_break |
| 747 |
VIEWNAME |
| 748 |
EXNAME |
| 749 |
VIMNAME |
| 750 |
OS_EXTRA_OBJ |
| 751 |
OS_EXTRA_SRC |
| 752 |
XCODE_SELECT |
| 753 |
CPP_MM |
| 754 |
CROSS_COMPILING |
| 755 |
BUILD_DATE_MSG |
| 756 |
PKG_CONFIG |
| 757 |
STRIP |
| 758 |
AWK |
| 759 |
FGREP |
| 760 |
EGREP |
| 761 |
GREP |
| 762 |
CPP |
| 763 |
OBJEXT |
| 764 |
EXEEXT |
| 765 |
ac_ct_CC |
| 766 |
CPPFLAGS |
| 767 |
LDFLAGS |
| 768 |
CFLAGS |
| 769 |
CC |
| 770 |
SET_MAKE |
| 771 |
target_alias |
| 772 |
host_alias |
| 773 |
build_alias |
| 774 |
LIBS |
| 775 |
ECHO_T |
| 776 |
ECHO_N |
| 777 |
ECHO_C |
| 778 |
DEFS |
| 779 |
mandir |
| 780 |
localedir |
| 781 |
libdir |
| 782 |
psdir |
| 783 |
pdfdir |
| 784 |
dvidir |
| 785 |
htmldir |
| 786 |
infodir |
| 787 |
docdir |
| 788 |
oldincludedir |
| 789 |
includedir |
| 790 |
runstatedir |
| 791 |
localstatedir |
| 792 |
sharedstatedir |
| 793 |
sysconfdir |
| 794 |
datadir |
| 795 |
datarootdir |
| 796 |
libexecdir |
| 797 |
sbindir |
| 798 |
bindir |
| 799 |
program_transform_name |
| 800 |
prefix |
| 801 |
exec_prefix |
| 802 |
PACKAGE_URL |
| 803 |
PACKAGE_BUGREPORT |
| 804 |
PACKAGE_STRING |
| 805 |
PACKAGE_VERSION |
| 806 |
PACKAGE_TARNAME |
| 807 |
PACKAGE_NAME |
| 808 |
PATH_SEPARATOR |
| 809 |
SHELL' |
| 810 |
ac_subst_files='' |
| 811 |
ac_user_opts=' |
| 812 |
enable_option_checking |
| 813 |
enable_fail_if_missing |
| 814 |
enable_darwin |
| 815 |
with_mac_arch |
| 816 |
with_developer_dir |
| 817 |
with_local_dir |
| 818 |
with_vim_name |
| 819 |
with_ex_name |
| 820 |
with_view_name |
| 821 |
with_global_runtime |
| 822 |
with_modified_by |
| 823 |
enable_smack |
| 824 |
enable_selinux |
| 825 |
enable_xattr |
| 826 |
with_features |
| 827 |
with_compiledby |
| 828 |
enable_xsmp |
| 829 |
enable_xsmp_interact |
| 830 |
enable_luainterp |
| 831 |
with_lua_prefix |
| 832 |
with_luajit |
| 833 |
enable_mzschemeinterp |
| 834 |
with_plthome |
| 835 |
enable_perlinterp |
| 836 |
with_xsubpp |
| 837 |
enable_pythoninterp |
| 838 |
with_python_command |
| 839 |
with_python_config_dir |
| 840 |
enable_python3interp |
| 841 |
with_python3_command |
| 842 |
with_python3_stable_abi |
| 843 |
with_python3_config_dir |
| 844 |
enable_tclinterp |
| 845 |
with_tclsh |
| 846 |
enable_rubyinterp |
| 847 |
with_ruby_command |
| 848 |
enable_cscope |
| 849 |
enable_netbeans |
| 850 |
enable_channel |
| 851 |
enable_terminal |
| 852 |
enable_autoservername |
| 853 |
enable_multibyte |
| 854 |
enable_rightleft |
| 855 |
enable_arabic |
| 856 |
enable_farsi |
| 857 |
enable_xim |
| 858 |
enable_fontset |
| 859 |
with_wayland |
| 860 |
with_x |
| 861 |
enable_gui |
| 862 |
enable_gtk2_check |
| 863 |
enable_gnome_check |
| 864 |
enable_gtk4_check |
| 865 |
enable_gtk3_check |
| 866 |
enable_motif_check |
| 867 |
enable_gtktest |
| 868 |
with_gnome_includes |
| 869 |
with_gnome_libs |
| 870 |
with_gnome |
| 871 |
enable_icon_cache_update |
| 872 |
enable_desktop_database_update |
| 873 |
with_motif_lib |
| 874 |
with_tlib |
| 875 |
enable_largefile |
| 876 |
enable_canberra |
| 877 |
enable_libsodium |
| 878 |
enable_acl |
| 879 |
enable_gpm |
| 880 |
enable_sysmouse |
| 881 |
enable_nls |
| 882 |
enable_year2038 |
| 883 |
' |
| 884 |
ac_precious_vars='build_alias |
| 885 |
host_alias |
| 886 |
target_alias |
| 887 |
CC |
| 888 |
CFLAGS |
| 889 |
LDFLAGS |
| 890 |
LIBS |
| 891 |
CPPFLAGS |
| 892 |
CPP |
| 893 |
XMKMF' |
| 894 |
|
| 895 |
|
| 896 |
# Initialize some variables set by options. |
| 897 |
ac_init_help= |
| 898 |
ac_init_version=false |
| 899 |
ac_unrecognized_opts= |
| 900 |
ac_unrecognized_sep= |
| 901 |
# The variables have the same names as the options, with |
| 902 |
# dashes changed to underlines. |
| 903 |
cache_file=/dev/null |
| 904 |
exec_prefix=NONE |
| 905 |
no_create= |
| 906 |
no_recursion= |
| 907 |
prefix=NONE |
| 908 |
program_prefix=NONE |
| 909 |
program_suffix=NONE |
| 910 |
program_transform_name=s,x,x, |
| 911 |
silent= |
| 912 |
site= |
| 913 |
srcdir= |
| 914 |
verbose= |
| 915 |
x_includes=NONE |
| 916 |
x_libraries=NONE |
| 917 |
|
| 918 |
# Installation directory options. |
| 919 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 920 |
# and all the variables that are supposed to be based on exec_prefix |
| 921 |
# by default will actually change. |
| 922 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 923 |
# (The list follows the same order as the GNU Coding Standards.) |
| 924 |
bindir='${exec_prefix}/bin' |
| 925 |
sbindir='${exec_prefix}/sbin' |
| 926 |
libexecdir='${exec_prefix}/libexec' |
| 927 |
datarootdir='${prefix}/share' |
| 928 |
datadir='${datarootdir}' |
| 929 |
sysconfdir='${prefix}/etc' |
| 930 |
sharedstatedir='${prefix}/com' |
| 931 |
localstatedir='${prefix}/var' |
| 932 |
runstatedir='${localstatedir}/run' |
| 933 |
includedir='${prefix}/include' |
| 934 |
oldincludedir='/usr/include' |
| 935 |
docdir='${datarootdir}/doc/${PACKAGE}' |
| 936 |
infodir='${datarootdir}/info' |
| 937 |
htmldir='${docdir}' |
| 938 |
dvidir='${docdir}' |
| 939 |
pdfdir='${docdir}' |
| 940 |
psdir='${docdir}' |
| 941 |
libdir='${exec_prefix}/lib' |
| 942 |
localedir='${datarootdir}/locale' |
| 943 |
mandir='${datarootdir}/man' |
| 944 |
|
| 945 |
ac_prev= |
| 946 |
ac_dashdash= |
| 947 |
for ac_option |
| 948 |
do |
| 949 |
# If the previous option needs an argument, assign it. |
| 950 |
if test -n "$ac_prev"; then |
| 951 |
eval $ac_prev=\$ac_option |
| 952 |
ac_prev= |
| 953 |
continue |
| 954 |
fi |
| 955 |
|
| 956 |
case $ac_option in |
| 957 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 958 |
*=) ac_optarg= ;; |
| 959 |
*) ac_optarg=yes ;; |
| 960 |
esac |
| 961 |
|
| 962 |
case $ac_dashdash$ac_option in |
| 963 |
--) |
| 964 |
ac_dashdash=yes ;; |
| 965 |
|
| 966 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 967 |
ac_prev=bindir ;; |
| 968 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 969 |
bindir=$ac_optarg ;; |
| 970 |
|
| 971 |
-build | --build | --buil | --bui | --bu) |
| 972 |
ac_prev=build_alias ;; |
| 973 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 974 |
build_alias=$ac_optarg ;; |
| 975 |
|
| 976 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 977 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 978 |
ac_prev=cache_file ;; |
| 979 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 980 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 981 |
cache_file=$ac_optarg ;; |
| 982 |
|
| 983 |
--config-cache | -C) |
| 984 |
cache_file=config.cache ;; |
| 985 |
|
| 986 |
-datadir | --datadir | --datadi | --datad) |
| 987 |
ac_prev=datadir ;; |
| 988 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 989 |
datadir=$ac_optarg ;; |
| 990 |
|
| 991 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 992 |
| --dataroo | --dataro | --datar) |
| 993 |
ac_prev=datarootdir ;; |
| 994 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 995 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 996 |
datarootdir=$ac_optarg ;; |
| 997 |
|
| 998 |
-disable-* | --disable-*) |
| 999 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1000 |
# Reject names that are not valid shell variable names. |
| 1001 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1002 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1003 |
ac_useropt_orig=$ac_useropt |
| 1004 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1005 |
case $ac_user_opts in |
| 1006 |
*" |
| 1007 |
"enable_$ac_useropt" |
| 1008 |
"*) ;; |
| 1009 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1010 |
ac_unrecognized_sep=', ';; |
| 1011 |
esac |
| 1012 |
eval enable_$ac_useropt=no ;; |
| 1013 |
|
| 1014 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1015 |
ac_prev=docdir ;; |
| 1016 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1017 |
docdir=$ac_optarg ;; |
| 1018 |
|
| 1019 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1020 |
ac_prev=dvidir ;; |
| 1021 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1022 |
dvidir=$ac_optarg ;; |
| 1023 |
|
| 1024 |
-enable-* | --enable-*) |
| 1025 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1026 |
# Reject names that are not valid shell variable names. |
| 1027 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1028 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1029 |
ac_useropt_orig=$ac_useropt |
| 1030 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1031 |
case $ac_user_opts in |
| 1032 |
*" |
| 1033 |
"enable_$ac_useropt" |
| 1034 |
"*) ;; |
| 1035 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1036 |
ac_unrecognized_sep=', ';; |
| 1037 |
esac |
| 1038 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1039 |
|
| 1040 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1041 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1042 |
| --exec | --exe | --ex) |
| 1043 |
ac_prev=exec_prefix ;; |
| 1044 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1045 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1046 |
| --exec=* | --exe=* | --ex=*) |
| 1047 |
exec_prefix=$ac_optarg ;; |
| 1048 |
|
| 1049 |
-gas | --gas | --ga | --g) |
| 1050 |
# Obsolete; use --with-gas. |
| 1051 |
with_gas=yes ;; |
| 1052 |
|
| 1053 |
-help | --help | --hel | --he | -h) |
| 1054 |
ac_init_help=long ;; |
| 1055 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1056 |
ac_init_help=recursive ;; |
| 1057 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1058 |
ac_init_help=short ;; |
| 1059 |
|
| 1060 |
-host | --host | --hos | --ho) |
| 1061 |
ac_prev=host_alias ;; |
| 1062 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1063 |
host_alias=$ac_optarg ;; |
| 1064 |
|
| 1065 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1066 |
ac_prev=htmldir ;; |
| 1067 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1068 |
| --ht=*) |
| 1069 |
htmldir=$ac_optarg ;; |
| 1070 |
|
| 1071 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1072 |
| --includ | --inclu | --incl | --inc) |
| 1073 |
ac_prev=includedir ;; |
| 1074 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1075 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1076 |
includedir=$ac_optarg ;; |
| 1077 |
|
| 1078 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1079 |
ac_prev=infodir ;; |
| 1080 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1081 |
infodir=$ac_optarg ;; |
| 1082 |
|
| 1083 |
-libdir | --libdir | --libdi | --libd) |
| 1084 |
ac_prev=libdir ;; |
| 1085 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1086 |
libdir=$ac_optarg ;; |
| 1087 |
|
| 1088 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1089 |
| --libexe | --libex | --libe) |
| 1090 |
ac_prev=libexecdir ;; |
| 1091 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1092 |
| --libexe=* | --libex=* | --libe=*) |
| 1093 |
libexecdir=$ac_optarg ;; |
| 1094 |
|
| 1095 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1096 |
ac_prev=localedir ;; |
| 1097 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1098 |
localedir=$ac_optarg ;; |
| 1099 |
|
| 1100 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1101 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1102 |
ac_prev=localstatedir ;; |
| 1103 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1104 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1105 |
localstatedir=$ac_optarg ;; |
| 1106 |
|
| 1107 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1108 |
ac_prev=mandir ;; |
| 1109 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1110 |
mandir=$ac_optarg ;; |
| 1111 |
|
| 1112 |
-nfp | --nfp | --nf) |
| 1113 |
# Obsolete; use --without-fp. |
| 1114 |
with_fp=no ;; |
| 1115 |
|
| 1116 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1117 |
| --no-cr | --no-c | -n) |
| 1118 |
no_create=yes ;; |
| 1119 |
|
| 1120 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1121 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1122 |
no_recursion=yes ;; |
| 1123 |
|
| 1124 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1125 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1126 |
| --oldin | --oldi | --old | --ol | --o) |
| 1127 |
ac_prev=oldincludedir ;; |
| 1128 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1129 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1130 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1131 |
oldincludedir=$ac_optarg ;; |
| 1132 |
|
| 1133 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1134 |
ac_prev=prefix ;; |
| 1135 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1136 |
prefix=$ac_optarg ;; |
| 1137 |
|
| 1138 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1139 |
| --program-pre | --program-pr | --program-p) |
| 1140 |
ac_prev=program_prefix ;; |
| 1141 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1142 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1143 |
program_prefix=$ac_optarg ;; |
| 1144 |
|
| 1145 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1146 |
| --program-suf | --program-su | --program-s) |
| 1147 |
ac_prev=program_suffix ;; |
| 1148 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1149 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1150 |
program_suffix=$ac_optarg ;; |
| 1151 |
|
| 1152 |
-program-transform-name | --program-transform-name \ |
| 1153 |
| --program-transform-nam | --program-transform-na \ |
| 1154 |
| --program-transform-n | --program-transform- \ |
| 1155 |
| --program-transform | --program-transfor \ |
| 1156 |
| --program-transfo | --program-transf \ |
| 1157 |
| --program-trans | --program-tran \ |
| 1158 |
| --progr-tra | --program-tr | --program-t) |
| 1159 |
ac_prev=program_transform_name ;; |
| 1160 |
-program-transform-name=* | --program-transform-name=* \ |
| 1161 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1162 |
| --program-transform-n=* | --program-transform-=* \ |
| 1163 |
| --program-transform=* | --program-transfor=* \ |
| 1164 |
| --program-transfo=* | --program-transf=* \ |
| 1165 |
| --program-trans=* | --program-tran=* \ |
| 1166 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1167 |
program_transform_name=$ac_optarg ;; |
| 1168 |
|
| 1169 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1170 |
ac_prev=pdfdir ;; |
| 1171 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1172 |
pdfdir=$ac_optarg ;; |
| 1173 |
|
| 1174 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1175 |
ac_prev=psdir ;; |
| 1176 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1177 |
psdir=$ac_optarg ;; |
| 1178 |
|
| 1179 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1180 |
| -silent | --silent | --silen | --sile | --sil) |
| 1181 |
silent=yes ;; |
| 1182 |
|
| 1183 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1184 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1185 |
| --run | --ru | --r) |
| 1186 |
ac_prev=runstatedir ;; |
| 1187 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1188 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1189 |
| --run=* | --ru=* | --r=*) |
| 1190 |
runstatedir=$ac_optarg ;; |
| 1191 |
|
| 1192 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1193 |
ac_prev=sbindir ;; |
| 1194 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1195 |
| --sbi=* | --sb=*) |
| 1196 |
sbindir=$ac_optarg ;; |
| 1197 |
|
| 1198 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1199 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1200 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1201 |
| --sha | --sh) |
| 1202 |
ac_prev=sharedstatedir ;; |
| 1203 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1204 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1205 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1206 |
| --sha=* | --sh=*) |
| 1207 |
sharedstatedir=$ac_optarg ;; |
| 1208 |
|
| 1209 |
-site | --site | --sit) |
| 1210 |
ac_prev=site ;; |
| 1211 |
-site=* | --site=* | --sit=*) |
| 1212 |
site=$ac_optarg ;; |
| 1213 |
|
| 1214 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1215 |
ac_prev=srcdir ;; |
| 1216 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1217 |
srcdir=$ac_optarg ;; |
| 1218 |
|
| 1219 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1220 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1221 |
ac_prev=sysconfdir ;; |
| 1222 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1223 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1224 |
sysconfdir=$ac_optarg ;; |
| 1225 |
|
| 1226 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1227 |
ac_prev=target_alias ;; |
| 1228 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1229 |
target_alias=$ac_optarg ;; |
| 1230 |
|
| 1231 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1232 |
verbose=yes ;; |
| 1233 |
|
| 1234 |
-version | --version | --versio | --versi | --vers | -V) |
| 1235 |
ac_init_version=: ;; |
| 1236 |
|
| 1237 |
-with-* | --with-*) |
| 1238 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1239 |
# Reject names that are not valid shell variable names. |
| 1240 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1241 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1242 |
ac_useropt_orig=$ac_useropt |
| 1243 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1244 |
case $ac_user_opts in |
| 1245 |
*" |
| 1246 |
"with_$ac_useropt" |
| 1247 |
"*) ;; |
| 1248 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1249 |
ac_unrecognized_sep=', ';; |
| 1250 |
esac |
| 1251 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1252 |
|
| 1253 |
-without-* | --without-*) |
| 1254 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1255 |
# Reject names that are not valid shell variable names. |
| 1256 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1257 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1258 |
ac_useropt_orig=$ac_useropt |
| 1259 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1260 |
case $ac_user_opts in |
| 1261 |
*" |
| 1262 |
"with_$ac_useropt" |
| 1263 |
"*) ;; |
| 1264 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1265 |
ac_unrecognized_sep=', ';; |
| 1266 |
esac |
| 1267 |
eval with_$ac_useropt=no ;; |
| 1268 |
|
| 1269 |
--x) |
| 1270 |
# Obsolete; use --with-x. |
| 1271 |
with_x=yes ;; |
| 1272 |
|
| 1273 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1274 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1275 |
ac_prev=x_includes ;; |
| 1276 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1277 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1278 |
x_includes=$ac_optarg ;; |
| 1279 |
|
| 1280 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1281 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1282 |
ac_prev=x_libraries ;; |
| 1283 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1284 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1285 |
x_libraries=$ac_optarg ;; |
| 1286 |
|
| 1287 |
-*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1288 |
Try '$0 --help' for more information" |
| 1289 |
;; |
| 1290 |
|
| 1291 |
*=*) |
| 1292 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1293 |
# Reject names that are not valid shell variable names. |
| 1294 |
case $ac_envvar in #( |
| 1295 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1296 |
as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1297 |
esac |
| 1298 |
eval $ac_envvar=\$ac_optarg |
| 1299 |
export $ac_envvar ;; |
| 1300 |
|
| 1301 |
*) |
| 1302 |
# FIXME: should be removed in autoconf 3.0. |
| 1303 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1304 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1305 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1306 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1307 |
;; |
| 1308 |
|
| 1309 |
esac |
| 1310 |
done |
| 1311 |
|
| 1312 |
if test -n "$ac_prev"; then |
| 1313 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1314 |
as_fn_error $? "missing argument to $ac_option" |
| 1315 |
fi |
| 1316 |
|
| 1317 |
if test -n "$ac_unrecognized_opts"; then |
| 1318 |
case $enable_option_checking in |
| 1319 |
no) ;; |
| 1320 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1321 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1322 |
esac |
| 1323 |
fi |
| 1324 |
|
| 1325 |
# Check all directory arguments for consistency. |
| 1326 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1327 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1328 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1329 |
libdir localedir mandir runstatedir |
| 1330 |
do |
| 1331 |
eval ac_val=\$$ac_var |
| 1332 |
# Remove trailing slashes. |
| 1333 |
case $ac_val in |
| 1334 |
*/ ) |
| 1335 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1336 |
eval $ac_var=\$ac_val;; |
| 1337 |
esac |
| 1338 |
# Be sure to have absolute directory names. |
| 1339 |
case $ac_val in |
| 1340 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1341 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1342 |
esac |
| 1343 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1344 |
done |
| 1345 |
|
| 1346 |
# There might be people who depend on the old broken behavior: '$host' |
| 1347 |
# used to hold the argument of --host etc. |
| 1348 |
# FIXME: To remove some day. |
| 1349 |
build=$build_alias |
| 1350 |
host=$host_alias |
| 1351 |
target=$target_alias |
| 1352 |
|
| 1353 |
# FIXME: To remove some day. |
| 1354 |
if test "x$host_alias" != x; then |
| 1355 |
if test "x$build_alias" = x; then |
| 1356 |
cross_compiling=maybe |
| 1357 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1358 |
cross_compiling=yes |
| 1359 |
fi |
| 1360 |
fi |
| 1361 |
|
| 1362 |
ac_tool_prefix= |
| 1363 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1364 |
|
| 1365 |
test "$silent" = yes && exec 6>/dev/null |
| 1366 |
|
| 1367 |
|
| 1368 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1369 |
ac_ls_di=`ls -di .` && |
| 1370 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1371 |
as_fn_error $? "working directory cannot be determined" |
| 1372 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1373 |
as_fn_error $? "pwd does not report name of working directory" |
| 1374 |
|
| 1375 |
|
| 1376 |
# Find the source files, if location was not specified. |
| 1377 |
if test -z "$srcdir"; then |
| 1378 |
ac_srcdir_defaulted=yes |
| 1379 |
# Try the directory containing this script, then the parent directory. |
| 1380 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1381 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1382 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1383 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1384 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1385 |
printf "%s\n" X"$as_myself" | |
| 1386 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1387 |
s//\1/ |
| 1388 |
q |
| 1389 |
} |
| 1390 |
/^X\(\/\/\)[^/].*/{ |
| 1391 |
s//\1/ |
| 1392 |
q |
| 1393 |
} |
| 1394 |
/^X\(\/\/\)$/{ |
| 1395 |
s//\1/ |
| 1396 |
q |
| 1397 |
} |
| 1398 |
/^X\(\/\).*/{ |
| 1399 |
s//\1/ |
| 1400 |
q |
| 1401 |
} |
| 1402 |
s/.*/./; q'` |
| 1403 |
srcdir=$ac_confdir |
| 1404 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1405 |
srcdir=.. |
| 1406 |
fi |
| 1407 |
else |
| 1408 |
ac_srcdir_defaulted=no |
| 1409 |
fi |
| 1410 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1411 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1412 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1413 |
fi |
| 1414 |
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1415 |
ac_abs_confdir=`( |
| 1416 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1417 |
pwd)` |
| 1418 |
# When building in place, set srcdir=. |
| 1419 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1420 |
srcdir=. |
| 1421 |
fi |
| 1422 |
# Remove unnecessary trailing slashes from srcdir. |
| 1423 |
# Double slashes in file names in object file debugging info |
| 1424 |
# mess up M-x gdb in Emacs. |
| 1425 |
case $srcdir in |
| 1426 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1427 |
esac |
| 1428 |
for ac_var in $ac_precious_vars; do |
| 1429 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1430 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1431 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1432 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1433 |
done |
| 1434 |
|
| 1435 |
# |
| 1436 |
# Report the --help message. |
| 1437 |
# |
| 1438 |
if test "$ac_init_help" = "long"; then |
| 1439 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1440 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1441 |
cat <<_ACEOF |
| 1442 |
'configure' configures this package to adapt to many kinds of systems. |
| 1443 |
|
| 1444 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1445 |
|
| 1446 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1447 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1448 |
|
| 1449 |
Defaults for the options are specified in brackets. |
| 1450 |
|
| 1451 |
Configuration: |
| 1452 |
-h, --help display this help and exit |
| 1453 |
--help=short display options specific to this package |
| 1454 |
--help=recursive display the short help of all the included packages |
| 1455 |
-V, --version display version information and exit |
| 1456 |
-q, --quiet, --silent do not print 'checking ...' messages |
| 1457 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1458 |
-C, --config-cache alias for '--cache-file=config.cache' |
| 1459 |
-n, --no-create do not create output files |
| 1460 |
--srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1461 |
|
| 1462 |
Installation directories: |
| 1463 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1464 |
[$ac_default_prefix] |
| 1465 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1466 |
[PREFIX] |
| 1467 |
|
| 1468 |
By default, 'make install' will install all the files in |
| 1469 |
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1470 |
an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1471 |
for instance '--prefix=\$HOME'. |
| 1472 |
|
| 1473 |
For better control, use the options below. |
| 1474 |
|
| 1475 |
Fine tuning of the installation directories: |
| 1476 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1477 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1478 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1479 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1480 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1481 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1482 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1483 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1484 |
--includedir=DIR C header files [PREFIX/include] |
| 1485 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1486 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1487 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1488 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1489 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1490 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1491 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1492 |
--htmldir=DIR html documentation [DOCDIR] |
| 1493 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1494 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1495 |
--psdir=DIR ps documentation [DOCDIR] |
| 1496 |
_ACEOF |
| 1497 |
|
| 1498 |
cat <<\_ACEOF |
| 1499 |
|
| 1500 |
X features: |
| 1501 |
--x-includes=DIR X include files are in DIR |
| 1502 |
--x-libraries=DIR X library files are in DIR |
| 1503 |
_ACEOF |
| 1504 |
fi |
| 1505 |
|
| 1506 |
if test -n "$ac_init_help"; then |
| 1507 |
|
| 1508 |
cat <<\_ACEOF |
| 1509 |
|
| 1510 |
Optional Features: |
| 1511 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1512 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1513 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1514 |
--enable-fail-if-missing Fail if dependencies on additional features |
| 1515 |
specified on the command line are missing. |
| 1516 |
--disable-darwin Disable Darwin (Mac OS X) support. |
| 1517 |
--disable-smack Do not check for Smack support. |
| 1518 |
--disable-selinux Do not check for SELinux support. |
| 1519 |
--disable-xattr Do not check for XATTR support. |
| 1520 |
--disable-xsmp Disable XSMP session management |
| 1521 |
--disable-xsmp-interact Disable XSMP interaction |
| 1522 |
--enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic |
| 1523 |
--enable-mzschemeinterp Include MzScheme interpreter. |
| 1524 |
--enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic |
| 1525 |
--enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic |
| 1526 |
--enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic |
| 1527 |
--enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic |
| 1528 |
--enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic |
| 1529 |
--enable-cscope Include cscope interface. |
| 1530 |
--disable-netbeans Disable NetBeans integration support. |
| 1531 |
--disable-channel Disable process communication support. |
| 1532 |
--enable-terminal Enable terminal emulation support. |
| 1533 |
--enable-autoservername Automatically define servername at vim startup. |
| 1534 |
--enable-multibyte Include multibyte editing support. |
| 1535 |
--disable-rightleft Do not include Right-to-Left language support. |
| 1536 |
--disable-arabic Do not include Arabic language support. |
| 1537 |
--disable-farsi Deprecated. |
| 1538 |
--enable-xim Include XIM input support. |
| 1539 |
--enable-fontset Include X fontset output support. |
| 1540 |
--enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/gtk4/motif/haiku/photon/carbon |
| 1541 |
--enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes |
| 1542 |
--enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1543 |
--enable-gtk4-check If auto-select GUI, check for GTK 4 default=yes |
| 1544 |
--enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes |
| 1545 |
--enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1546 |
--disable-gtktest Do not try to compile and run a test GTK program |
| 1547 |
--disable-icon-cache-update update disabled |
| 1548 |
--disable-desktop-database-update update disabled |
| 1549 |
--disable-largefile omit support for large files |
| 1550 |
--disable-canberra Do not use libcanberra. |
| 1551 |
--disable-libsodium Do not use libsodium. |
| 1552 |
--disable-acl No check for ACL support. |
| 1553 |
--enable-gpm=OPTS Use gpm (Linux mouse daemon). default=yes OPTS=yes/no/dynamic |
| 1554 |
--disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
| 1555 |
--disable-nls Don't support NLS (gettext()). |
| 1556 |
--enable-year2038 support timestamps after 2038 |
| 1557 |
|
| 1558 |
Optional Packages: |
| 1559 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1560 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1561 |
--with-mac-arch=ARCH current, intel, ppc or both |
| 1562 |
--with-developer-dir=PATH use PATH as location for Xcode developer tools |
| 1563 |
--with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1564 |
--without-local-dir do not search /usr/local for local libraries. |
| 1565 |
--with-vim-name=NAME what to call the Vim executable |
| 1566 |
--with-ex-name=NAME what to call the Ex executable |
| 1567 |
--with-view-name=NAME what to call the View executable |
| 1568 |
--with-global-runtime=DIR global runtime directory in 'runtimepath', comma-separated for multiple directories |
| 1569 |
--with-modified-by=NAME name of who modified a release version |
| 1570 |
--with-features=TYPE tiny, normal or huge (default: huge) |
| 1571 |
--with-compiledby=NAME name to show in :version message |
| 1572 |
--with-lua-prefix=PFX Prefix where Lua is installed. |
| 1573 |
--with-luajit Link with LuaJIT instead of Lua. |
| 1574 |
--with-plthome=PLTHOME Use PLTHOME. |
| 1575 |
--with-xsubpp=PATH path to the xsubpp command |
| 1576 |
--with-python-command=NAME name of the Python 2 command (default: python2 or python) |
| 1577 |
--with-python-config-dir=PATH Python's config directory (deprecated) |
| 1578 |
--with-python3-command=NAME name of the Python 3 command (default: python3 or python) |
| 1579 |
--with-python3-stable-abi=VERSION stable ABI version to target (default: 3.8) |
| 1580 |
--with-python3-config-dir=PATH Python's config directory (deprecated) |
| 1581 |
--with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 1582 |
--with-ruby-command=RUBY name of the Ruby command (default: ruby) |
| 1583 |
--with-wayland Include support for the Wayland protocol. |
| 1584 |
--with-x use the X Window System |
| 1585 |
--with-gnome-includes=DIR Specify location of GNOME headers |
| 1586 |
--with-gnome-libs=DIR Specify location of GNOME libs |
| 1587 |
--with-gnome Specify prefix for GNOME files |
| 1588 |
--with-motif-lib=STRING Library for Motif |
| 1589 |
--with-tlib=library terminal library to be used |
| 1590 |
|
| 1591 |
Some influential environment variables: |
| 1592 |
CC C compiler command |
| 1593 |
CFLAGS C compiler flags |
| 1594 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1595 |
nonstandard directory <lib dir> |
| 1596 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1597 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1598 |
you have headers in a nonstandard directory <include dir> |
| 1599 |
CPP C preprocessor |
| 1600 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1601 |
|
| 1602 |
Use these variables to override the choices made by 'configure' or to help |
| 1603 |
it to find libraries and programs with nonstandard names/locations. |
| 1604 |
|
| 1605 |
Report bugs to the package provider. |
| 1606 |
_ACEOF |
| 1607 |
ac_status=$? |
| 1608 |
fi |
| 1609 |
|
| 1610 |
if test "$ac_init_help" = "recursive"; then |
| 1611 |
# If there are subdirs, report their specific --help. |
| 1612 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1613 |
test -d "$ac_dir" || |
| 1614 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1615 |
continue |
| 1616 |
ac_builddir=. |
| 1617 |
|
| 1618 |
case "$ac_dir" in |
| 1619 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1620 |
*) |
| 1621 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1622 |
# A ".." for each directory in $ac_dir_suffix. |
| 1623 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1624 |
case $ac_top_builddir_sub in |
| 1625 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1626 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1627 |
esac ;; |
| 1628 |
esac |
| 1629 |
ac_abs_top_builddir=$ac_pwd |
| 1630 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1631 |
# for backward compatibility: |
| 1632 |
ac_top_builddir=$ac_top_build_prefix |
| 1633 |
|
| 1634 |
case $srcdir in |
| 1635 |
.) # We are building in place. |
| 1636 |
ac_srcdir=. |
| 1637 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1638 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1639 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1640 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1641 |
ac_top_srcdir=$srcdir |
| 1642 |
ac_abs_top_srcdir=$srcdir ;; |
| 1643 |
*) # Relative name. |
| 1644 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1645 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1646 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1647 |
esac |
| 1648 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1649 |
|
| 1650 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1651 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1652 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1653 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1654 |
echo && |
| 1655 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1656 |
elif test -f "$ac_srcdir/configure"; then |
| 1657 |
echo && |
| 1658 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1659 |
else |
| 1660 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1661 |
fi || ac_status=$? |
| 1662 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1663 |
done |
| 1664 |
fi |
| 1665 |
|
| 1666 |
test -n "$ac_init_help" && exit $ac_status |
| 1667 |
if $ac_init_version; then |
| 1668 |
cat <<\_ACEOF |
| 1669 |
configure |
| 1670 |
generated by GNU Autoconf 2.72 |
| 1671 |
|
| 1672 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 1673 |
This configure script is free software; the Free Software Foundation |
| 1674 |
gives unlimited permission to copy, distribute and modify it. |
| 1675 |
_ACEOF |
| 1676 |
exit |
| 1677 |
fi |
| 1678 |
|
| 1679 |
## ------------------------ ## |
| 1680 |
## Autoconf initialization. ## |
| 1681 |
## ------------------------ ## |
| 1682 |
|
| 1683 |
# ac_fn_c_try_compile LINENO |
| 1684 |
# -------------------------- |
| 1685 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1686 |
ac_fn_c_try_compile () |
| 1687 |
{ |
| 1688 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1689 |
rm -f conftest.$ac_objext conftest.beam |
| 1690 |
if { { ac_try="$ac_compile" |
| 1691 |
case "(($ac_try" in |
| 1692 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1693 |
*) ac_try_echo=$ac_try;; |
| 1694 |
esac |
| 1695 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1696 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1697 |
(eval "$ac_compile") 2>conftest.err |
| 1698 |
ac_status=$? |
| 1699 |
if test -s conftest.err; then |
| 1700 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1701 |
cat conftest.er1 >&5 |
| 1702 |
mv -f conftest.er1 conftest.err |
| 1703 |
fi |
| 1704 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1705 |
test $ac_status = 0; } && { |
| 1706 |
test -z "$ac_c_werror_flag" || |
| 1707 |
test ! -s conftest.err |
| 1708 |
} && test -s conftest.$ac_objext |
| 1709 |
then : |
| 1710 |
ac_retval=0 |
| 1711 |
else case e in #( |
| 1712 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1713 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1714 |
|
| 1715 |
ac_retval=1 ;; |
| 1716 |
esac |
| 1717 |
fi |
| 1718 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1719 |
as_fn_set_status $ac_retval |
| 1720 |
|
| 1721 |
} # ac_fn_c_try_compile |
| 1722 |
|
| 1723 |
# ac_fn_c_try_cpp LINENO |
| 1724 |
# ---------------------- |
| 1725 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1726 |
ac_fn_c_try_cpp () |
| 1727 |
{ |
| 1728 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1729 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1730 |
case "(($ac_try" in |
| 1731 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1732 |
*) ac_try_echo=$ac_try;; |
| 1733 |
esac |
| 1734 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1735 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1736 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1737 |
ac_status=$? |
| 1738 |
if test -s conftest.err; then |
| 1739 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1740 |
cat conftest.er1 >&5 |
| 1741 |
mv -f conftest.er1 conftest.err |
| 1742 |
fi |
| 1743 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1744 |
test $ac_status = 0; } > conftest.i && { |
| 1745 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1746 |
test ! -s conftest.err |
| 1747 |
} |
| 1748 |
then : |
| 1749 |
ac_retval=0 |
| 1750 |
else case e in #( |
| 1751 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1752 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1753 |
|
| 1754 |
ac_retval=1 ;; |
| 1755 |
esac |
| 1756 |
fi |
| 1757 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1758 |
as_fn_set_status $ac_retval |
| 1759 |
|
| 1760 |
} # ac_fn_c_try_cpp |
| 1761 |
|
| 1762 |
# ac_fn_c_try_link LINENO |
| 1763 |
# ----------------------- |
| 1764 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1765 |
ac_fn_c_try_link () |
| 1766 |
{ |
| 1767 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1768 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1769 |
if { { ac_try="$ac_link" |
| 1770 |
case "(($ac_try" in |
| 1771 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1772 |
*) ac_try_echo=$ac_try;; |
| 1773 |
esac |
| 1774 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1775 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1776 |
(eval "$ac_link") 2>conftest.err |
| 1777 |
ac_status=$? |
| 1778 |
if test -s conftest.err; then |
| 1779 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1780 |
cat conftest.er1 >&5 |
| 1781 |
mv -f conftest.er1 conftest.err |
| 1782 |
fi |
| 1783 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1784 |
test $ac_status = 0; } && { |
| 1785 |
test -z "$ac_c_werror_flag" || |
| 1786 |
test ! -s conftest.err |
| 1787 |
} && test -s conftest$ac_exeext && { |
| 1788 |
test "$cross_compiling" = yes || |
| 1789 |
test -x conftest$ac_exeext |
| 1790 |
} |
| 1791 |
then : |
| 1792 |
ac_retval=0 |
| 1793 |
else case e in #( |
| 1794 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1795 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1796 |
|
| 1797 |
ac_retval=1 ;; |
| 1798 |
esac |
| 1799 |
fi |
| 1800 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1801 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1802 |
# interfere with the next link command; also delete a directory that is |
| 1803 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1804 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1805 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1806 |
as_fn_set_status $ac_retval |
| 1807 |
|
| 1808 |
} # ac_fn_c_try_link |
| 1809 |
|
| 1810 |
# ac_fn_c_try_run LINENO |
| 1811 |
# ---------------------- |
| 1812 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1813 |
# executables *can* be run. |
| 1814 |
ac_fn_c_try_run () |
| 1815 |
{ |
| 1816 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1817 |
if { { ac_try="$ac_link" |
| 1818 |
case "(($ac_try" in |
| 1819 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1820 |
*) ac_try_echo=$ac_try;; |
| 1821 |
esac |
| 1822 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1823 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1824 |
(eval "$ac_link") 2>&5 |
| 1825 |
ac_status=$? |
| 1826 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1827 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1828 |
{ { case "(($ac_try" in |
| 1829 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1830 |
*) ac_try_echo=$ac_try;; |
| 1831 |
esac |
| 1832 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1833 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1834 |
(eval "$ac_try") 2>&5 |
| 1835 |
ac_status=$? |
| 1836 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1837 |
test $ac_status = 0; }; } |
| 1838 |
then : |
| 1839 |
ac_retval=0 |
| 1840 |
else case e in #( |
| 1841 |
e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1842 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1843 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1844 |
|
| 1845 |
ac_retval=$ac_status ;; |
| 1846 |
esac |
| 1847 |
fi |
| 1848 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1849 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1850 |
as_fn_set_status $ac_retval |
| 1851 |
|
| 1852 |
} # ac_fn_c_try_run |
| 1853 |
|
| 1854 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1855 |
# ------------------------------------------------------- |
| 1856 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 1857 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 1858 |
ac_fn_c_check_header_compile () |
| 1859 |
{ |
| 1860 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1862 |
printf %s "checking for $2... " >&6; } |
| 1863 |
if eval test \${$3+y} |
| 1864 |
then : |
| 1865 |
printf %s "(cached) " >&6 |
| 1866 |
else case e in #( |
| 1867 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1868 |
/* end confdefs.h. */ |
| 1869 |
$4 |
| 1870 |
#include <$2> |
| 1871 |
_ACEOF |
| 1872 |
if ac_fn_c_try_compile "$LINENO" |
| 1873 |
then : |
| 1874 |
eval "$3=yes" |
| 1875 |
else case e in #( |
| 1876 |
e) eval "$3=no" ;; |
| 1877 |
esac |
| 1878 |
fi |
| 1879 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1880 |
esac |
| 1881 |
fi |
| 1882 |
eval ac_res=\$$3 |
| 1883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1884 |
printf "%s\n" "$ac_res" >&6; } |
| 1885 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1886 |
|
| 1887 |
} # ac_fn_c_check_header_compile |
| 1888 |
|
| 1889 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1890 |
# ---------------------------------- |
| 1891 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1892 |
ac_fn_c_check_func () |
| 1893 |
{ |
| 1894 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1896 |
printf %s "checking for $2... " >&6; } |
| 1897 |
if eval test \${$3+y} |
| 1898 |
then : |
| 1899 |
printf %s "(cached) " >&6 |
| 1900 |
else case e in #( |
| 1901 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1902 |
/* end confdefs.h. */ |
| 1903 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1904 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1905 |
#define $2 innocuous_$2 |
| 1906 |
|
| 1907 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1908 |
which can conflict with char $2 (void); below. */ |
| 1909 |
|
| 1910 |
#include <limits.h> |
| 1911 |
#undef $2 |
| 1912 |
|
| 1913 |
/* Override any GCC internal prototype to avoid an error. |
| 1914 |
Use char because int might match the return type of a GCC |
| 1915 |
builtin and then its argument prototype would still apply. */ |
| 1916 |
#ifdef __cplusplus |
| 1917 |
extern "C" |
| 1918 |
#endif |
| 1919 |
char $2 (void); |
| 1920 |
/* The GNU C library defines this for functions which it implements |
| 1921 |
to always fail with ENOSYS. Some functions are actually named |
| 1922 |
something starting with __ and the normal name is an alias. */ |
| 1923 |
#if defined __stub_$2 || defined __stub___$2 |
| 1924 |
choke me |
| 1925 |
#endif |
| 1926 |
|
| 1927 |
int |
| 1928 |
main (void) |
| 1929 |
{ |
| 1930 |
return $2 (); |
| 1931 |
; |
| 1932 |
return 0; |
| 1933 |
} |
| 1934 |
_ACEOF |
| 1935 |
if ac_fn_c_try_link "$LINENO" |
| 1936 |
then : |
| 1937 |
eval "$3=yes" |
| 1938 |
else case e in #( |
| 1939 |
e) eval "$3=no" ;; |
| 1940 |
esac |
| 1941 |
fi |
| 1942 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1943 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 1944 |
esac |
| 1945 |
fi |
| 1946 |
eval ac_res=\$$3 |
| 1947 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1948 |
printf "%s\n" "$ac_res" >&6; } |
| 1949 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1950 |
|
| 1951 |
} # ac_fn_c_check_func |
| 1952 |
|
| 1953 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1954 |
# -------------------------------------------- |
| 1955 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 1956 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1957 |
# computed |
| 1958 |
ac_fn_c_compute_int () |
| 1959 |
{ |
| 1960 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1961 |
if test "$cross_compiling" = yes; then |
| 1962 |
# Depending upon the size, compute the lo and hi bounds. |
| 1963 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1964 |
/* end confdefs.h. */ |
| 1965 |
$4 |
| 1966 |
int |
| 1967 |
main (void) |
| 1968 |
{ |
| 1969 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1970 |
test_array [0] = 0; |
| 1971 |
return test_array [0]; |
| 1972 |
|
| 1973 |
; |
| 1974 |
return 0; |
| 1975 |
} |
| 1976 |
_ACEOF |
| 1977 |
if ac_fn_c_try_compile "$LINENO" |
| 1978 |
then : |
| 1979 |
ac_lo=0 ac_mid=0 |
| 1980 |
while :; do |
| 1981 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1982 |
/* end confdefs.h. */ |
| 1983 |
$4 |
| 1984 |
int |
| 1985 |
main (void) |
| 1986 |
{ |
| 1987 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1988 |
test_array [0] = 0; |
| 1989 |
return test_array [0]; |
| 1990 |
|
| 1991 |
; |
| 1992 |
return 0; |
| 1993 |
} |
| 1994 |
_ACEOF |
| 1995 |
if ac_fn_c_try_compile "$LINENO" |
| 1996 |
then : |
| 1997 |
ac_hi=$ac_mid; break |
| 1998 |
else case e in #( |
| 1999 |
e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2000 |
if test $ac_lo -le $ac_mid; then |
| 2001 |
ac_lo= ac_hi= |
| 2002 |
break |
| 2003 |
fi |
| 2004 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; |
| 2005 |
esac |
| 2006 |
fi |
| 2007 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2008 |
done |
| 2009 |
else case e in #( |
| 2010 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2011 |
/* end confdefs.h. */ |
| 2012 |
$4 |
| 2013 |
int |
| 2014 |
main (void) |
| 2015 |
{ |
| 2016 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2017 |
test_array [0] = 0; |
| 2018 |
return test_array [0]; |
| 2019 |
|
| 2020 |
; |
| 2021 |
return 0; |
| 2022 |
} |
| 2023 |
_ACEOF |
| 2024 |
if ac_fn_c_try_compile "$LINENO" |
| 2025 |
then : |
| 2026 |
ac_hi=-1 ac_mid=-1 |
| 2027 |
while :; do |
| 2028 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2029 |
/* end confdefs.h. */ |
| 2030 |
$4 |
| 2031 |
int |
| 2032 |
main (void) |
| 2033 |
{ |
| 2034 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2035 |
test_array [0] = 0; |
| 2036 |
return test_array [0]; |
| 2037 |
|
| 2038 |
; |
| 2039 |
return 0; |
| 2040 |
} |
| 2041 |
_ACEOF |
| 2042 |
if ac_fn_c_try_compile "$LINENO" |
| 2043 |
then : |
| 2044 |
ac_lo=$ac_mid; break |
| 2045 |
else case e in #( |
| 2046 |
e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2047 |
if test $ac_mid -le $ac_hi; then |
| 2048 |
ac_lo= ac_hi= |
| 2049 |
break |
| 2050 |
fi |
| 2051 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; |
| 2052 |
esac |
| 2053 |
fi |
| 2054 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2055 |
done |
| 2056 |
else case e in #( |
| 2057 |
e) ac_lo= ac_hi= ;; |
| 2058 |
esac |
| 2059 |
fi |
| 2060 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2061 |
esac |
| 2062 |
fi |
| 2063 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2064 |
# Binary search between lo and hi bounds. |
| 2065 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2066 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2067 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2068 |
/* end confdefs.h. */ |
| 2069 |
$4 |
| 2070 |
int |
| 2071 |
main (void) |
| 2072 |
{ |
| 2073 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2074 |
test_array [0] = 0; |
| 2075 |
return test_array [0]; |
| 2076 |
|
| 2077 |
; |
| 2078 |
return 0; |
| 2079 |
} |
| 2080 |
_ACEOF |
| 2081 |
if ac_fn_c_try_compile "$LINENO" |
| 2082 |
then : |
| 2083 |
ac_hi=$ac_mid |
| 2084 |
else case e in #( |
| 2085 |
e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; |
| 2086 |
esac |
| 2087 |
fi |
| 2088 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2089 |
done |
| 2090 |
case $ac_lo in #(( |
| 2091 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2092 |
'') ac_retval=1 ;; |
| 2093 |
esac |
| 2094 |
else |
| 2095 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2096 |
/* end confdefs.h. */ |
| 2097 |
$4 |
| 2098 |
static long int longval (void) { return $2; } |
| 2099 |
static unsigned long int ulongval (void) { return $2; } |
| 2100 |
#include <stdio.h> |
| 2101 |
#include <stdlib.h> |
| 2102 |
int |
| 2103 |
main (void) |
| 2104 |
{ |
| 2105 |
|
| 2106 |
FILE *f = fopen ("conftest.val", "w"); |
| 2107 |
if (! f) |
| 2108 |
return 1; |
| 2109 |
if (($2) < 0) |
| 2110 |
{ |
| 2111 |
long int i = longval (); |
| 2112 |
if (i != ($2)) |
| 2113 |
return 1; |
| 2114 |
fprintf (f, "%ld", i); |
| 2115 |
} |
| 2116 |
else |
| 2117 |
{ |
| 2118 |
unsigned long int i = ulongval (); |
| 2119 |
if (i != ($2)) |
| 2120 |
return 1; |
| 2121 |
fprintf (f, "%lu", i); |
| 2122 |
} |
| 2123 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2124 |
on some platforms. */ |
| 2125 |
return ferror (f) || fclose (f) != 0; |
| 2126 |
|
| 2127 |
; |
| 2128 |
return 0; |
| 2129 |
} |
| 2130 |
_ACEOF |
| 2131 |
if ac_fn_c_try_run "$LINENO" |
| 2132 |
then : |
| 2133 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2134 |
else case e in #( |
| 2135 |
e) ac_retval=1 ;; |
| 2136 |
esac |
| 2137 |
fi |
| 2138 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2139 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2140 |
rm -f conftest.val |
| 2141 |
|
| 2142 |
fi |
| 2143 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2144 |
as_fn_set_status $ac_retval |
| 2145 |
|
| 2146 |
} # ac_fn_c_compute_int |
| 2147 |
|
| 2148 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2149 |
# ------------------------------------------- |
| 2150 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2151 |
# variable VAR accordingly. |
| 2152 |
ac_fn_c_check_type () |
| 2153 |
{ |
| 2154 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2156 |
printf %s "checking for $2... " >&6; } |
| 2157 |
if eval test \${$3+y} |
| 2158 |
then : |
| 2159 |
printf %s "(cached) " >&6 |
| 2160 |
else case e in #( |
| 2161 |
e) eval "$3=no" |
| 2162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2163 |
/* end confdefs.h. */ |
| 2164 |
$4 |
| 2165 |
int |
| 2166 |
main (void) |
| 2167 |
{ |
| 2168 |
if (sizeof ($2)) |
| 2169 |
return 0; |
| 2170 |
; |
| 2171 |
return 0; |
| 2172 |
} |
| 2173 |
_ACEOF |
| 2174 |
if ac_fn_c_try_compile "$LINENO" |
| 2175 |
then : |
| 2176 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2177 |
/* end confdefs.h. */ |
| 2178 |
$4 |
| 2179 |
int |
| 2180 |
main (void) |
| 2181 |
{ |
| 2182 |
if (sizeof (($2))) |
| 2183 |
return 0; |
| 2184 |
; |
| 2185 |
return 0; |
| 2186 |
} |
| 2187 |
_ACEOF |
| 2188 |
if ac_fn_c_try_compile "$LINENO" |
| 2189 |
then : |
| 2190 |
|
| 2191 |
else case e in #( |
| 2192 |
e) eval "$3=yes" ;; |
| 2193 |
esac |
| 2194 |
fi |
| 2195 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2196 |
fi |
| 2197 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2198 |
esac |
| 2199 |
fi |
| 2200 |
eval ac_res=\$$3 |
| 2201 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2202 |
printf "%s\n" "$ac_res" >&6; } |
| 2203 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2204 |
|
| 2205 |
} # ac_fn_c_check_type |
| 2206 |
|
| 2207 |
# ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2208 |
# ------------------------------------ |
| 2209 |
# Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2210 |
# accordingly. |
| 2211 |
ac_fn_c_find_uintX_t () |
| 2212 |
{ |
| 2213 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2215 |
printf %s "checking for uint$2_t... " >&6; } |
| 2216 |
if eval test \${$3+y} |
| 2217 |
then : |
| 2218 |
printf %s "(cached) " >&6 |
| 2219 |
else case e in #( |
| 2220 |
e) eval "$3=no" |
| 2221 |
# Order is important - never check a type that is potentially smaller |
| 2222 |
# than half of the expected target width. |
| 2223 |
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2224 |
'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2225 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2226 |
/* end confdefs.h. */ |
| 2227 |
$ac_includes_default |
| 2228 |
int |
| 2229 |
main (void) |
| 2230 |
{ |
| 2231 |
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2232 |
test_array [0] = 0; |
| 2233 |
return test_array [0]; |
| 2234 |
|
| 2235 |
; |
| 2236 |
return 0; |
| 2237 |
} |
| 2238 |
_ACEOF |
| 2239 |
if ac_fn_c_try_compile "$LINENO" |
| 2240 |
then : |
| 2241 |
case $ac_type in #( |
| 2242 |
uint$2_t) : |
| 2243 |
eval "$3=yes" ;; #( |
| 2244 |
*) : |
| 2245 |
eval "$3=\$ac_type" ;; |
| 2246 |
esac |
| 2247 |
fi |
| 2248 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2249 |
if eval test \"x\$"$3"\" = x"no" |
| 2250 |
then : |
| 2251 |
|
| 2252 |
else case e in #( |
| 2253 |
e) break ;; |
| 2254 |
esac |
| 2255 |
fi |
| 2256 |
done ;; |
| 2257 |
esac |
| 2258 |
fi |
| 2259 |
eval ac_res=\$$3 |
| 2260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2261 |
printf "%s\n" "$ac_res" >&6; } |
| 2262 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2263 |
|
| 2264 |
} # ac_fn_c_find_uintX_t |
| 2265 |
ac_configure_args_raw= |
| 2266 |
for ac_arg |
| 2267 |
do |
| 2268 |
case $ac_arg in |
| 2269 |
*\'*) |
| 2270 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2271 |
esac |
| 2272 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2273 |
done |
| 2274 |
|
| 2275 |
case $ac_configure_args_raw in |
| 2276 |
*$as_nl*) |
| 2277 |
ac_safe_unquote= ;; |
| 2278 |
*) |
| 2279 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2280 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 2281 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2282 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2283 |
esac |
| 2284 |
|
| 2285 |
cat >auto/config.log <<_ACEOF |
| 2286 |
This file contains any messages produced by compilers while |
| 2287 |
running configure, to aid debugging if configure makes a mistake. |
| 2288 |
|
| 2289 |
It was created by $as_me, which was |
| 2290 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 2291 |
|
| 2292 |
$ $0$ac_configure_args_raw |
| 2293 |
|
| 2294 |
_ACEOF |
| 2295 |
exec 5>>auto/config.log |
| 2296 |
{ |
| 2297 |
cat <<_ASUNAME |
| 2298 |
## --------- ## |
| 2299 |
## Platform. ## |
| 2300 |
## --------- ## |
| 2301 |
|
| 2302 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2303 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2304 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2305 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2306 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2307 |
|
| 2308 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2309 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2310 |
|
| 2311 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2312 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2313 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2314 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2315 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2316 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2317 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2318 |
|
| 2319 |
_ASUNAME |
| 2320 |
|
| 2321 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2322 |
for as_dir in $PATH |
| 2323 |
do |
| 2324 |
IFS=$as_save_IFS |
| 2325 |
case $as_dir in #((( |
| 2326 |
'') as_dir=./ ;; |
| 2327 |
*/) ;; |
| 2328 |
*) as_dir=$as_dir/ ;; |
| 2329 |
esac |
| 2330 |
printf "%s\n" "PATH: $as_dir" |
| 2331 |
done |
| 2332 |
IFS=$as_save_IFS |
| 2333 |
|
| 2334 |
} >&5 |
| 2335 |
|
| 2336 |
cat >&5 <<_ACEOF |
| 2337 |
|
| 2338 |
|
| 2339 |
## ----------- ## |
| 2340 |
## Core tests. ## |
| 2341 |
## ----------- ## |
| 2342 |
|
| 2343 |
_ACEOF |
| 2344 |
|
| 2345 |
|
| 2346 |
# Keep a trace of the command line. |
| 2347 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2348 |
# Strip out --silent because we don't want to record it for future runs. |
| 2349 |
# Also quote any args containing shell meta-characters. |
| 2350 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2351 |
ac_configure_args= |
| 2352 |
ac_configure_args0= |
| 2353 |
ac_configure_args1= |
| 2354 |
ac_must_keep_next=false |
| 2355 |
for ac_pass in 1 2 |
| 2356 |
do |
| 2357 |
for ac_arg |
| 2358 |
do |
| 2359 |
case $ac_arg in |
| 2360 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2361 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2362 |
| -silent | --silent | --silen | --sile | --sil) |
| 2363 |
continue ;; |
| 2364 |
*\'*) |
| 2365 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2366 |
esac |
| 2367 |
case $ac_pass in |
| 2368 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2369 |
2) |
| 2370 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2371 |
if test $ac_must_keep_next = true; then |
| 2372 |
ac_must_keep_next=false # Got value, back to normal. |
| 2373 |
else |
| 2374 |
case $ac_arg in |
| 2375 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2376 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2377 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2378 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2379 |
case "$ac_configure_args0 " in |
| 2380 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2381 |
esac |
| 2382 |
;; |
| 2383 |
-* ) ac_must_keep_next=true ;; |
| 2384 |
esac |
| 2385 |
fi |
| 2386 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2387 |
;; |
| 2388 |
esac |
| 2389 |
done |
| 2390 |
done |
| 2391 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2392 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2393 |
|
| 2394 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2395 |
# config.log. We remove comments because anyway the quotes in there |
| 2396 |
# would cause problems or look ugly. |
| 2397 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2398 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2399 |
trap 'exit_status=$? |
| 2400 |
# Sanitize IFS. |
| 2401 |
IFS=" "" $as_nl" |
| 2402 |
# Save into config.log some information that might help in debugging. |
| 2403 |
{ |
| 2404 |
echo |
| 2405 |
|
| 2406 |
printf "%s\n" "## ---------------- ## |
| 2407 |
## Cache variables. ## |
| 2408 |
## ---------------- ##" |
| 2409 |
echo |
| 2410 |
# The following way of writing the cache mishandles newlines in values, |
| 2411 |
( |
| 2412 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2413 |
eval ac_val=\$$ac_var |
| 2414 |
case $ac_val in #( |
| 2415 |
*${as_nl}*) |
| 2416 |
case $ac_var in #( |
| 2417 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2418 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2419 |
esac |
| 2420 |
case $ac_var in #( |
| 2421 |
_ | IFS | as_nl) ;; #( |
| 2422 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2423 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2424 |
esac ;; |
| 2425 |
esac |
| 2426 |
done |
| 2427 |
(set) 2>&1 | |
| 2428 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2429 |
*${as_nl}ac_space=\ *) |
| 2430 |
sed -n \ |
| 2431 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2432 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2433 |
;; #( |
| 2434 |
*) |
| 2435 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2436 |
;; |
| 2437 |
esac | |
| 2438 |
sort |
| 2439 |
) |
| 2440 |
echo |
| 2441 |
|
| 2442 |
printf "%s\n" "## ----------------- ## |
| 2443 |
## Output variables. ## |
| 2444 |
## ----------------- ##" |
| 2445 |
echo |
| 2446 |
for ac_var in $ac_subst_vars |
| 2447 |
do |
| 2448 |
eval ac_val=\$$ac_var |
| 2449 |
case $ac_val in |
| 2450 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2451 |
esac |
| 2452 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2453 |
done | sort |
| 2454 |
echo |
| 2455 |
|
| 2456 |
if test -n "$ac_subst_files"; then |
| 2457 |
printf "%s\n" "## ------------------- ## |
| 2458 |
## File substitutions. ## |
| 2459 |
## ------------------- ##" |
| 2460 |
echo |
| 2461 |
for ac_var in $ac_subst_files |
| 2462 |
do |
| 2463 |
eval ac_val=\$$ac_var |
| 2464 |
case $ac_val in |
| 2465 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2466 |
esac |
| 2467 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2468 |
done | sort |
| 2469 |
echo |
| 2470 |
fi |
| 2471 |
|
| 2472 |
if test -s confdefs.h; then |
| 2473 |
printf "%s\n" "## ----------- ## |
| 2474 |
## confdefs.h. ## |
| 2475 |
## ----------- ##" |
| 2476 |
echo |
| 2477 |
cat confdefs.h |
| 2478 |
echo |
| 2479 |
fi |
| 2480 |
test "$ac_signal" != 0 && |
| 2481 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2482 |
printf "%s\n" "$as_me: exit $exit_status" |
| 2483 |
} >&5 |
| 2484 |
rm -f core *.core core.conftest.* && |
| 2485 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2486 |
exit $exit_status |
| 2487 |
' 0 |
| 2488 |
for ac_signal in 1 2 13 15; do |
| 2489 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2490 |
done |
| 2491 |
ac_signal=0 |
| 2492 |
|
| 2493 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2494 |
rm -f -r conftest* confdefs.h |
| 2495 |
|
| 2496 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2497 |
|
| 2498 |
# Predefined preprocessor variables. |
| 2499 |
|
| 2500 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2501 |
|
| 2502 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2503 |
|
| 2504 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2505 |
|
| 2506 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2507 |
|
| 2508 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2509 |
|
| 2510 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2511 |
|
| 2512 |
|
| 2513 |
# Let the site file select an alternate cache file if it wants to. |
| 2514 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2515 |
if test -n "$CONFIG_SITE"; then |
| 2516 |
ac_site_files="$CONFIG_SITE" |
| 2517 |
elif test "x$prefix" != xNONE; then |
| 2518 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2519 |
else |
| 2520 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2521 |
fi |
| 2522 |
|
| 2523 |
for ac_site_file in $ac_site_files |
| 2524 |
do |
| 2525 |
case $ac_site_file in #( |
| 2526 |
*/*) : |
| 2527 |
;; #( |
| 2528 |
*) : |
| 2529 |
ac_site_file=./$ac_site_file ;; |
| 2530 |
esac |
| 2531 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2533 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2534 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2535 |
. "$ac_site_file" \ |
| 2536 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2537 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2538 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2539 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2540 |
fi |
| 2541 |
done |
| 2542 |
|
| 2543 |
if test -r "$cache_file"; then |
| 2544 |
# Some versions of bash will fail to source /dev/null (special files |
| 2545 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2546 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2548 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2549 |
case $cache_file in |
| 2550 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2551 |
*) . "./$cache_file";; |
| 2552 |
esac |
| 2553 |
fi |
| 2554 |
else |
| 2555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2556 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2557 |
>$cache_file |
| 2558 |
fi |
| 2559 |
|
| 2560 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 2561 |
ac_c_conftest_c89_globals=' |
| 2562 |
/* Does the compiler advertise C89 conformance? |
| 2563 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 2564 |
while being otherwise adequately conformant. */ |
| 2565 |
#if !defined __STDC__ |
| 2566 |
# error "Compiler does not advertise C89 conformance" |
| 2567 |
#endif |
| 2568 |
|
| 2569 |
#include <stddef.h> |
| 2570 |
#include <stdarg.h> |
| 2571 |
struct stat; |
| 2572 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2573 |
struct buf { int x; }; |
| 2574 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2575 |
static char *e (char **p, int i) |
| 2576 |
{ |
| 2577 |
return p[i]; |
| 2578 |
} |
| 2579 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2580 |
{ |
| 2581 |
char *s; |
| 2582 |
va_list v; |
| 2583 |
va_start (v,p); |
| 2584 |
s = g (p, va_arg (v,int)); |
| 2585 |
va_end (v); |
| 2586 |
return s; |
| 2587 |
} |
| 2588 |
|
| 2589 |
/* C89 style stringification. */ |
| 2590 |
#define noexpand_stringify(a) #a |
| 2591 |
const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2592 |
|
| 2593 |
/* C89 style token pasting. Exercises some of the corner cases that |
| 2594 |
e.g. old MSVC gets wrong, but not very hard. */ |
| 2595 |
#define noexpand_concat(a,b) a##b |
| 2596 |
#define expand_concat(a,b) noexpand_concat(a,b) |
| 2597 |
extern int vA; |
| 2598 |
extern int vbee; |
| 2599 |
#define aye A |
| 2600 |
#define bee B |
| 2601 |
int *pvA = &expand_concat(v,aye); |
| 2602 |
int *pvbee = &noexpand_concat(v,bee); |
| 2603 |
|
| 2604 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2605 |
function prototypes and stuff, but not \xHH hex character constants. |
| 2606 |
These do not provoke an error unfortunately, instead are silently treated |
| 2607 |
as an "x". The following induces an error, until -std is added to get |
| 2608 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2609 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 2610 |
that is true only with -std. */ |
| 2611 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2612 |
|
| 2613 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2614 |
inside strings and character constants. */ |
| 2615 |
#define FOO(x) '\''x'\'' |
| 2616 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2617 |
|
| 2618 |
int test (int i, double x); |
| 2619 |
struct s1 {int (*f) (int a);}; |
| 2620 |
struct s2 {int (*f) (double a);}; |
| 2621 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2622 |
int, int);' |
| 2623 |
|
| 2624 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2625 |
ac_c_conftest_c89_main=' |
| 2626 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2627 |
' |
| 2628 |
|
| 2629 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2630 |
ac_c_conftest_c99_globals=' |
| 2631 |
/* Does the compiler advertise C99 conformance? */ |
| 2632 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2633 |
# error "Compiler does not advertise C99 conformance" |
| 2634 |
#endif |
| 2635 |
|
| 2636 |
// See if C++-style comments work. |
| 2637 |
|
| 2638 |
#include <stdbool.h> |
| 2639 |
extern int puts (const char *); |
| 2640 |
extern int printf (const char *, ...); |
| 2641 |
extern int dprintf (int, const char *, ...); |
| 2642 |
extern void *malloc (size_t); |
| 2643 |
extern void free (void *); |
| 2644 |
|
| 2645 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2646 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2647 |
// FILE and stderr. |
| 2648 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2649 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2650 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2651 |
static void |
| 2652 |
test_varargs_macros (void) |
| 2653 |
{ |
| 2654 |
int x = 1234; |
| 2655 |
int y = 5678; |
| 2656 |
debug ("Flag"); |
| 2657 |
debug ("X = %d\n", x); |
| 2658 |
showlist (The first, second, and third items.); |
| 2659 |
report (x>y, "x is %d but y is %d", x, y); |
| 2660 |
} |
| 2661 |
|
| 2662 |
// Check long long types. |
| 2663 |
#define BIG64 18446744073709551615ull |
| 2664 |
#define BIG32 4294967295ul |
| 2665 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2666 |
#if !BIG_OK |
| 2667 |
#error "your preprocessor is broken" |
| 2668 |
#endif |
| 2669 |
#if BIG_OK |
| 2670 |
#else |
| 2671 |
#error "your preprocessor is broken" |
| 2672 |
#endif |
| 2673 |
static long long int bignum = -9223372036854775807LL; |
| 2674 |
static unsigned long long int ubignum = BIG64; |
| 2675 |
|
| 2676 |
struct incomplete_array |
| 2677 |
{ |
| 2678 |
int datasize; |
| 2679 |
double data[]; |
| 2680 |
}; |
| 2681 |
|
| 2682 |
struct named_init { |
| 2683 |
int number; |
| 2684 |
const wchar_t *name; |
| 2685 |
double average; |
| 2686 |
}; |
| 2687 |
|
| 2688 |
typedef const char *ccp; |
| 2689 |
|
| 2690 |
static inline int |
| 2691 |
test_restrict (ccp restrict text) |
| 2692 |
{ |
| 2693 |
// Iterate through items via the restricted pointer. |
| 2694 |
// Also check for declarations in for loops. |
| 2695 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2696 |
continue; |
| 2697 |
return 0; |
| 2698 |
} |
| 2699 |
|
| 2700 |
// Check varargs and va_copy. |
| 2701 |
static bool |
| 2702 |
test_varargs (const char *format, ...) |
| 2703 |
{ |
| 2704 |
va_list args; |
| 2705 |
va_start (args, format); |
| 2706 |
va_list args_copy; |
| 2707 |
va_copy (args_copy, args); |
| 2708 |
|
| 2709 |
const char *str = ""; |
| 2710 |
int number = 0; |
| 2711 |
float fnumber = 0; |
| 2712 |
|
| 2713 |
while (*format) |
| 2714 |
{ |
| 2715 |
switch (*format++) |
| 2716 |
{ |
| 2717 |
case '\''s'\'': // string |
| 2718 |
str = va_arg (args_copy, const char *); |
| 2719 |
break; |
| 2720 |
case '\''d'\'': // int |
| 2721 |
number = va_arg (args_copy, int); |
| 2722 |
break; |
| 2723 |
case '\''f'\'': // float |
| 2724 |
fnumber = va_arg (args_copy, double); |
| 2725 |
break; |
| 2726 |
default: |
| 2727 |
break; |
| 2728 |
} |
| 2729 |
} |
| 2730 |
va_end (args_copy); |
| 2731 |
va_end (args); |
| 2732 |
|
| 2733 |
return *str && number && fnumber; |
| 2734 |
} |
| 2735 |
' |
| 2736 |
|
| 2737 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2738 |
ac_c_conftest_c99_main=' |
| 2739 |
// Check bool. |
| 2740 |
_Bool success = false; |
| 2741 |
success |= (argc != 0); |
| 2742 |
|
| 2743 |
// Check restrict. |
| 2744 |
if (test_restrict ("String literal") == 0) |
| 2745 |
success = true; |
| 2746 |
char *restrict newvar = "Another string"; |
| 2747 |
|
| 2748 |
// Check varargs. |
| 2749 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2750 |
test_varargs_macros (); |
| 2751 |
|
| 2752 |
// Check flexible array members. |
| 2753 |
struct incomplete_array *ia = |
| 2754 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2755 |
ia->datasize = 10; |
| 2756 |
for (int i = 0; i < ia->datasize; ++i) |
| 2757 |
ia->data[i] = i * 1.234; |
| 2758 |
// Work around memory leak warnings. |
| 2759 |
free (ia); |
| 2760 |
|
| 2761 |
// Check named initializers. |
| 2762 |
struct named_init ni = { |
| 2763 |
.number = 34, |
| 2764 |
.name = L"Test wide string", |
| 2765 |
.average = 543.34343, |
| 2766 |
}; |
| 2767 |
|
| 2768 |
ni.number = 58; |
| 2769 |
|
| 2770 |
int dynamic_array[ni.number]; |
| 2771 |
dynamic_array[0] = argv[0][0]; |
| 2772 |
dynamic_array[ni.number - 1] = 543; |
| 2773 |
|
| 2774 |
// work around unused variable warnings |
| 2775 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2776 |
|| dynamic_array[ni.number - 1] != 543); |
| 2777 |
' |
| 2778 |
|
| 2779 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2780 |
ac_c_conftest_c11_globals=' |
| 2781 |
/* Does the compiler advertise C11 conformance? */ |
| 2782 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2783 |
# error "Compiler does not advertise C11 conformance" |
| 2784 |
#endif |
| 2785 |
|
| 2786 |
// Check _Alignas. |
| 2787 |
char _Alignas (double) aligned_as_double; |
| 2788 |
char _Alignas (0) no_special_alignment; |
| 2789 |
extern char aligned_as_int; |
| 2790 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2791 |
|
| 2792 |
// Check _Alignof. |
| 2793 |
enum |
| 2794 |
{ |
| 2795 |
int_alignment = _Alignof (int), |
| 2796 |
int_array_alignment = _Alignof (int[100]), |
| 2797 |
char_alignment = _Alignof (char) |
| 2798 |
}; |
| 2799 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2800 |
|
| 2801 |
// Check _Noreturn. |
| 2802 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2803 |
|
| 2804 |
// Check _Static_assert. |
| 2805 |
struct test_static_assert |
| 2806 |
{ |
| 2807 |
int x; |
| 2808 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 2809 |
"_Static_assert does not work in struct"); |
| 2810 |
long int y; |
| 2811 |
}; |
| 2812 |
|
| 2813 |
// Check UTF-8 literals. |
| 2814 |
#define u8 syntax error! |
| 2815 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2816 |
|
| 2817 |
// Check duplicate typedefs. |
| 2818 |
typedef long *long_ptr; |
| 2819 |
typedef long int *long_ptr; |
| 2820 |
typedef long_ptr long_ptr; |
| 2821 |
|
| 2822 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2823 |
struct anonymous |
| 2824 |
{ |
| 2825 |
union { |
| 2826 |
struct { int i; int j; }; |
| 2827 |
struct { int k; long int l; } w; |
| 2828 |
}; |
| 2829 |
int m; |
| 2830 |
} v1; |
| 2831 |
' |
| 2832 |
|
| 2833 |
# Test code for whether the C compiler supports C11 (body of main). |
| 2834 |
ac_c_conftest_c11_main=' |
| 2835 |
_Static_assert ((offsetof (struct anonymous, i) |
| 2836 |
== offsetof (struct anonymous, w.k)), |
| 2837 |
"Anonymous union alignment botch"); |
| 2838 |
v1.i = 2; |
| 2839 |
v1.w.k = 5; |
| 2840 |
ok |= v1.i != 5; |
| 2841 |
' |
| 2842 |
|
| 2843 |
# Test code for whether the C compiler supports C11 (complete). |
| 2844 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2845 |
${ac_c_conftest_c99_globals} |
| 2846 |
${ac_c_conftest_c11_globals} |
| 2847 |
|
| 2848 |
int |
| 2849 |
main (int argc, char **argv) |
| 2850 |
{ |
| 2851 |
int ok = 0; |
| 2852 |
${ac_c_conftest_c89_main} |
| 2853 |
${ac_c_conftest_c99_main} |
| 2854 |
${ac_c_conftest_c11_main} |
| 2855 |
return ok; |
| 2856 |
} |
| 2857 |
" |
| 2858 |
|
| 2859 |
# Test code for whether the C compiler supports C99 (complete). |
| 2860 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2861 |
${ac_c_conftest_c99_globals} |
| 2862 |
|
| 2863 |
int |
| 2864 |
main (int argc, char **argv) |
| 2865 |
{ |
| 2866 |
int ok = 0; |
| 2867 |
${ac_c_conftest_c89_main} |
| 2868 |
${ac_c_conftest_c99_main} |
| 2869 |
return ok; |
| 2870 |
} |
| 2871 |
" |
| 2872 |
|
| 2873 |
# Test code for whether the C compiler supports C89 (complete). |
| 2874 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2875 |
|
| 2876 |
int |
| 2877 |
main (int argc, char **argv) |
| 2878 |
{ |
| 2879 |
int ok = 0; |
| 2880 |
${ac_c_conftest_c89_main} |
| 2881 |
return ok; |
| 2882 |
} |
| 2883 |
" |
| 2884 |
|
| 2885 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2886 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2887 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2888 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2889 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2890 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2891 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2892 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2893 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2894 |
as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 2895 |
as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" |
| 2896 |
as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" |
| 2897 |
# Check that the precious variables saved in the cache have kept the same |
| 2898 |
# value. |
| 2899 |
ac_cache_corrupted=false |
| 2900 |
for ac_var in $ac_precious_vars; do |
| 2901 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2902 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2903 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2904 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2905 |
case $ac_old_set,$ac_new_set in |
| 2906 |
set,) |
| 2907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2908 |
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 2909 |
ac_cache_corrupted=: ;; |
| 2910 |
,set) |
| 2911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2912 |
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 2913 |
ac_cache_corrupted=: ;; |
| 2914 |
,);; |
| 2915 |
*) |
| 2916 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2917 |
# differences in whitespace do not lead to failure. |
| 2918 |
ac_old_val_w=`echo x $ac_old_val` |
| 2919 |
ac_new_val_w=`echo x $ac_new_val` |
| 2920 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2922 |
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 2923 |
ac_cache_corrupted=: |
| 2924 |
else |
| 2925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2926 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 2927 |
eval $ac_var=\$ac_old_val |
| 2928 |
fi |
| 2929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2930 |
printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2931 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2932 |
printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 2933 |
fi;; |
| 2934 |
esac |
| 2935 |
# Pass precious variables to config.status. |
| 2936 |
if test "$ac_new_set" = set; then |
| 2937 |
case $ac_new_val in |
| 2938 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2939 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2940 |
esac |
| 2941 |
case " $ac_configure_args " in |
| 2942 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2943 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2944 |
esac |
| 2945 |
fi |
| 2946 |
done |
| 2947 |
if $ac_cache_corrupted; then |
| 2948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2949 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2950 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2951 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2952 |
as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 2953 |
and start over" "$LINENO" 5 |
| 2954 |
fi |
| 2955 |
## -------------------- ## |
| 2956 |
## Main body of script. ## |
| 2957 |
## -------------------- ## |
| 2958 |
|
| 2959 |
ac_ext=c |
| 2960 |
ac_cpp='$CPP $CPPFLAGS' |
| 2961 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2962 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2963 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2964 |
|
| 2965 |
|
| 2966 |
|
| 2967 |
|
| 2968 |
ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 2969 |
|
| 2970 |
|
| 2971 |
printf "%s\n" "#define UNIX 1" >>confdefs.h |
| 2972 |
|
| 2973 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2974 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2975 |
set x ${MAKE-make} |
| 2976 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2977 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 2978 |
then : |
| 2979 |
printf %s "(cached) " >&6 |
| 2980 |
else case e in #( |
| 2981 |
e) cat >conftest.make <<\_ACEOF |
| 2982 |
SHELL = /bin/sh |
| 2983 |
all: |
| 2984 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2985 |
_ACEOF |
| 2986 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2987 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2988 |
*@@@%%%=?*=@@@%%%*) |
| 2989 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2990 |
*) |
| 2991 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2992 |
esac |
| 2993 |
rm -f conftest.make ;; |
| 2994 |
esac |
| 2995 |
fi |
| 2996 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2998 |
printf "%s\n" "yes" >&6; } |
| 2999 |
SET_MAKE= |
| 3000 |
else |
| 3001 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3002 |
printf "%s\n" "no" >&6; } |
| 3003 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3004 |
fi |
| 3005 |
|
| 3006 |
|
| 3007 |
|
| 3008 |
|
| 3009 |
|
| 3010 |
|
| 3011 |
|
| 3012 |
|
| 3013 |
|
| 3014 |
|
| 3015 |
|
| 3016 |
ac_ext=c |
| 3017 |
ac_cpp='$CPP $CPPFLAGS' |
| 3018 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3019 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3020 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3021 |
if test -n "$ac_tool_prefix"; then |
| 3022 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3023 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3025 |
printf %s "checking for $ac_word... " >&6; } |
| 3026 |
if test ${ac_cv_prog_CC+y} |
| 3027 |
then : |
| 3028 |
printf %s "(cached) " >&6 |
| 3029 |
else case e in #( |
| 3030 |
e) if test -n "$CC"; then |
| 3031 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3032 |
else |
| 3033 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3034 |
for as_dir in $PATH |
| 3035 |
do |
| 3036 |
IFS=$as_save_IFS |
| 3037 |
case $as_dir in #((( |
| 3038 |
'') as_dir=./ ;; |
| 3039 |
*/) ;; |
| 3040 |
*) as_dir=$as_dir/ ;; |
| 3041 |
esac |
| 3042 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3043 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3044 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3045 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3046 |
break 2 |
| 3047 |
fi |
| 3048 |
done |
| 3049 |
done |
| 3050 |
IFS=$as_save_IFS |
| 3051 |
|
| 3052 |
fi ;; |
| 3053 |
esac |
| 3054 |
fi |
| 3055 |
CC=$ac_cv_prog_CC |
| 3056 |
if test -n "$CC"; then |
| 3057 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3058 |
printf "%s\n" "$CC" >&6; } |
| 3059 |
else |
| 3060 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3061 |
printf "%s\n" "no" >&6; } |
| 3062 |
fi |
| 3063 |
|
| 3064 |
|
| 3065 |
fi |
| 3066 |
if test -z "$ac_cv_prog_CC"; then |
| 3067 |
ac_ct_CC=$CC |
| 3068 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3069 |
set dummy gcc; ac_word=$2 |
| 3070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3071 |
printf %s "checking for $ac_word... " >&6; } |
| 3072 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3073 |
then : |
| 3074 |
printf %s "(cached) " >&6 |
| 3075 |
else case e in #( |
| 3076 |
e) if test -n "$ac_ct_CC"; then |
| 3077 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3078 |
else |
| 3079 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3080 |
for as_dir in $PATH |
| 3081 |
do |
| 3082 |
IFS=$as_save_IFS |
| 3083 |
case $as_dir in #((( |
| 3084 |
'') as_dir=./ ;; |
| 3085 |
*/) ;; |
| 3086 |
*) as_dir=$as_dir/ ;; |
| 3087 |
esac |
| 3088 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3089 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3090 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3091 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3092 |
break 2 |
| 3093 |
fi |
| 3094 |
done |
| 3095 |
done |
| 3096 |
IFS=$as_save_IFS |
| 3097 |
|
| 3098 |
fi ;; |
| 3099 |
esac |
| 3100 |
fi |
| 3101 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3102 |
if test -n "$ac_ct_CC"; then |
| 3103 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3104 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3105 |
else |
| 3106 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3107 |
printf "%s\n" "no" >&6; } |
| 3108 |
fi |
| 3109 |
|
| 3110 |
if test "x$ac_ct_CC" = x; then |
| 3111 |
CC="" |
| 3112 |
else |
| 3113 |
case $cross_compiling:$ac_tool_warned in |
| 3114 |
yes:) |
| 3115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3116 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3117 |
ac_tool_warned=yes ;; |
| 3118 |
esac |
| 3119 |
CC=$ac_ct_CC |
| 3120 |
fi |
| 3121 |
else |
| 3122 |
CC="$ac_cv_prog_CC" |
| 3123 |
fi |
| 3124 |
|
| 3125 |
if test -z "$CC"; then |
| 3126 |
if test -n "$ac_tool_prefix"; then |
| 3127 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3128 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3130 |
printf %s "checking for $ac_word... " >&6; } |
| 3131 |
if test ${ac_cv_prog_CC+y} |
| 3132 |
then : |
| 3133 |
printf %s "(cached) " >&6 |
| 3134 |
else case e in #( |
| 3135 |
e) if test -n "$CC"; then |
| 3136 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3137 |
else |
| 3138 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3139 |
for as_dir in $PATH |
| 3140 |
do |
| 3141 |
IFS=$as_save_IFS |
| 3142 |
case $as_dir in #((( |
| 3143 |
'') as_dir=./ ;; |
| 3144 |
*/) ;; |
| 3145 |
*) as_dir=$as_dir/ ;; |
| 3146 |
esac |
| 3147 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3148 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3149 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3150 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3151 |
break 2 |
| 3152 |
fi |
| 3153 |
done |
| 3154 |
done |
| 3155 |
IFS=$as_save_IFS |
| 3156 |
|
| 3157 |
fi ;; |
| 3158 |
esac |
| 3159 |
fi |
| 3160 |
CC=$ac_cv_prog_CC |
| 3161 |
if test -n "$CC"; then |
| 3162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3163 |
printf "%s\n" "$CC" >&6; } |
| 3164 |
else |
| 3165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3166 |
printf "%s\n" "no" >&6; } |
| 3167 |
fi |
| 3168 |
|
| 3169 |
|
| 3170 |
fi |
| 3171 |
fi |
| 3172 |
if test -z "$CC"; then |
| 3173 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3174 |
set dummy cc; ac_word=$2 |
| 3175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3176 |
printf %s "checking for $ac_word... " >&6; } |
| 3177 |
if test ${ac_cv_prog_CC+y} |
| 3178 |
then : |
| 3179 |
printf %s "(cached) " >&6 |
| 3180 |
else case e in #( |
| 3181 |
e) if test -n "$CC"; then |
| 3182 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3183 |
else |
| 3184 |
ac_prog_rejected=no |
| 3185 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3186 |
for as_dir in $PATH |
| 3187 |
do |
| 3188 |
IFS=$as_save_IFS |
| 3189 |
case $as_dir in #((( |
| 3190 |
'') as_dir=./ ;; |
| 3191 |
*/) ;; |
| 3192 |
*) as_dir=$as_dir/ ;; |
| 3193 |
esac |
| 3194 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3195 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3196 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3197 |
ac_prog_rejected=yes |
| 3198 |
continue |
| 3199 |
fi |
| 3200 |
ac_cv_prog_CC="cc" |
| 3201 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3202 |
break 2 |
| 3203 |
fi |
| 3204 |
done |
| 3205 |
done |
| 3206 |
IFS=$as_save_IFS |
| 3207 |
|
| 3208 |
if test $ac_prog_rejected = yes; then |
| 3209 |
# We found a bogon in the path, so make sure we never use it. |
| 3210 |
set dummy $ac_cv_prog_CC |
| 3211 |
shift |
| 3212 |
if test $# != 0; then |
| 3213 |
# We chose a different compiler from the bogus one. |
| 3214 |
# However, it has the same basename, so the bogon will be chosen |
| 3215 |
# first if we set CC to just the basename; use the full file name. |
| 3216 |
shift |
| 3217 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3218 |
fi |
| 3219 |
fi |
| 3220 |
fi ;; |
| 3221 |
esac |
| 3222 |
fi |
| 3223 |
CC=$ac_cv_prog_CC |
| 3224 |
if test -n "$CC"; then |
| 3225 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3226 |
printf "%s\n" "$CC" >&6; } |
| 3227 |
else |
| 3228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3229 |
printf "%s\n" "no" >&6; } |
| 3230 |
fi |
| 3231 |
|
| 3232 |
|
| 3233 |
fi |
| 3234 |
if test -z "$CC"; then |
| 3235 |
if test -n "$ac_tool_prefix"; then |
| 3236 |
for ac_prog in cl.exe |
| 3237 |
do |
| 3238 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3239 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3240 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3241 |
printf %s "checking for $ac_word... " >&6; } |
| 3242 |
if test ${ac_cv_prog_CC+y} |
| 3243 |
then : |
| 3244 |
printf %s "(cached) " >&6 |
| 3245 |
else case e in #( |
| 3246 |
e) if test -n "$CC"; then |
| 3247 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3248 |
else |
| 3249 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3250 |
for as_dir in $PATH |
| 3251 |
do |
| 3252 |
IFS=$as_save_IFS |
| 3253 |
case $as_dir in #((( |
| 3254 |
'') as_dir=./ ;; |
| 3255 |
*/) ;; |
| 3256 |
*) as_dir=$as_dir/ ;; |
| 3257 |
esac |
| 3258 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3259 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3260 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3261 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3262 |
break 2 |
| 3263 |
fi |
| 3264 |
done |
| 3265 |
done |
| 3266 |
IFS=$as_save_IFS |
| 3267 |
|
| 3268 |
fi ;; |
| 3269 |
esac |
| 3270 |
fi |
| 3271 |
CC=$ac_cv_prog_CC |
| 3272 |
if test -n "$CC"; then |
| 3273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3274 |
printf "%s\n" "$CC" >&6; } |
| 3275 |
else |
| 3276 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3277 |
printf "%s\n" "no" >&6; } |
| 3278 |
fi |
| 3279 |
|
| 3280 |
|
| 3281 |
test -n "$CC" && break |
| 3282 |
done |
| 3283 |
fi |
| 3284 |
if test -z "$CC"; then |
| 3285 |
ac_ct_CC=$CC |
| 3286 |
for ac_prog in cl.exe |
| 3287 |
do |
| 3288 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3289 |
set dummy $ac_prog; ac_word=$2 |
| 3290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3291 |
printf %s "checking for $ac_word... " >&6; } |
| 3292 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3293 |
then : |
| 3294 |
printf %s "(cached) " >&6 |
| 3295 |
else case e in #( |
| 3296 |
e) if test -n "$ac_ct_CC"; then |
| 3297 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3298 |
else |
| 3299 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3300 |
for as_dir in $PATH |
| 3301 |
do |
| 3302 |
IFS=$as_save_IFS |
| 3303 |
case $as_dir in #((( |
| 3304 |
'') as_dir=./ ;; |
| 3305 |
*/) ;; |
| 3306 |
*) as_dir=$as_dir/ ;; |
| 3307 |
esac |
| 3308 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3309 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3310 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3311 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3312 |
break 2 |
| 3313 |
fi |
| 3314 |
done |
| 3315 |
done |
| 3316 |
IFS=$as_save_IFS |
| 3317 |
|
| 3318 |
fi ;; |
| 3319 |
esac |
| 3320 |
fi |
| 3321 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3322 |
if test -n "$ac_ct_CC"; then |
| 3323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3324 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3325 |
else |
| 3326 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3327 |
printf "%s\n" "no" >&6; } |
| 3328 |
fi |
| 3329 |
|
| 3330 |
|
| 3331 |
test -n "$ac_ct_CC" && break |
| 3332 |
done |
| 3333 |
|
| 3334 |
if test "x$ac_ct_CC" = x; then |
| 3335 |
CC="" |
| 3336 |
else |
| 3337 |
case $cross_compiling:$ac_tool_warned in |
| 3338 |
yes:) |
| 3339 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3340 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3341 |
ac_tool_warned=yes ;; |
| 3342 |
esac |
| 3343 |
CC=$ac_ct_CC |
| 3344 |
fi |
| 3345 |
fi |
| 3346 |
|
| 3347 |
fi |
| 3348 |
if test -z "$CC"; then |
| 3349 |
if test -n "$ac_tool_prefix"; then |
| 3350 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3351 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3353 |
printf %s "checking for $ac_word... " >&6; } |
| 3354 |
if test ${ac_cv_prog_CC+y} |
| 3355 |
then : |
| 3356 |
printf %s "(cached) " >&6 |
| 3357 |
else case e in #( |
| 3358 |
e) if test -n "$CC"; then |
| 3359 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3360 |
else |
| 3361 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3362 |
for as_dir in $PATH |
| 3363 |
do |
| 3364 |
IFS=$as_save_IFS |
| 3365 |
case $as_dir in #((( |
| 3366 |
'') as_dir=./ ;; |
| 3367 |
*/) ;; |
| 3368 |
*) as_dir=$as_dir/ ;; |
| 3369 |
esac |
| 3370 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3371 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3372 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3373 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3374 |
break 2 |
| 3375 |
fi |
| 3376 |
done |
| 3377 |
done |
| 3378 |
IFS=$as_save_IFS |
| 3379 |
|
| 3380 |
fi ;; |
| 3381 |
esac |
| 3382 |
fi |
| 3383 |
CC=$ac_cv_prog_CC |
| 3384 |
if test -n "$CC"; then |
| 3385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3386 |
printf "%s\n" "$CC" >&6; } |
| 3387 |
else |
| 3388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3389 |
printf "%s\n" "no" >&6; } |
| 3390 |
fi |
| 3391 |
|
| 3392 |
|
| 3393 |
fi |
| 3394 |
if test -z "$ac_cv_prog_CC"; then |
| 3395 |
ac_ct_CC=$CC |
| 3396 |
# Extract the first word of "clang", so it can be a program name with args. |
| 3397 |
set dummy clang; ac_word=$2 |
| 3398 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3399 |
printf %s "checking for $ac_word... " >&6; } |
| 3400 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3401 |
then : |
| 3402 |
printf %s "(cached) " >&6 |
| 3403 |
else case e in #( |
| 3404 |
e) if test -n "$ac_ct_CC"; then |
| 3405 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3406 |
else |
| 3407 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3408 |
for as_dir in $PATH |
| 3409 |
do |
| 3410 |
IFS=$as_save_IFS |
| 3411 |
case $as_dir in #((( |
| 3412 |
'') as_dir=./ ;; |
| 3413 |
*/) ;; |
| 3414 |
*) as_dir=$as_dir/ ;; |
| 3415 |
esac |
| 3416 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3417 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3418 |
ac_cv_prog_ac_ct_CC="clang" |
| 3419 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3420 |
break 2 |
| 3421 |
fi |
| 3422 |
done |
| 3423 |
done |
| 3424 |
IFS=$as_save_IFS |
| 3425 |
|
| 3426 |
fi ;; |
| 3427 |
esac |
| 3428 |
fi |
| 3429 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3430 |
if test -n "$ac_ct_CC"; then |
| 3431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3432 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3433 |
else |
| 3434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3435 |
printf "%s\n" "no" >&6; } |
| 3436 |
fi |
| 3437 |
|
| 3438 |
if test "x$ac_ct_CC" = x; then |
| 3439 |
CC="" |
| 3440 |
else |
| 3441 |
case $cross_compiling:$ac_tool_warned in |
| 3442 |
yes:) |
| 3443 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3444 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3445 |
ac_tool_warned=yes ;; |
| 3446 |
esac |
| 3447 |
CC=$ac_ct_CC |
| 3448 |
fi |
| 3449 |
else |
| 3450 |
CC="$ac_cv_prog_CC" |
| 3451 |
fi |
| 3452 |
|
| 3453 |
fi |
| 3454 |
|
| 3455 |
|
| 3456 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3457 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3458 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3459 |
See 'config.log' for more details" "$LINENO" 5; } |
| 3460 |
|
| 3461 |
# Provide some information about the compiler. |
| 3462 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3463 |
set X $ac_compile |
| 3464 |
ac_compiler=$2 |
| 3465 |
for ac_option in --version -v -V -qversion -version; do |
| 3466 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 3467 |
case "(($ac_try" in |
| 3468 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3469 |
*) ac_try_echo=$ac_try;; |
| 3470 |
esac |
| 3471 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3472 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3473 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3474 |
ac_status=$? |
| 3475 |
if test -s conftest.err; then |
| 3476 |
sed '10a\ |
| 3477 |
... rest of stderr output deleted ... |
| 3478 |
10q' conftest.err >conftest.er1 |
| 3479 |
cat conftest.er1 >&5 |
| 3480 |
fi |
| 3481 |
rm -f conftest.er1 conftest.err |
| 3482 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3483 |
test $ac_status = 0; } |
| 3484 |
done |
| 3485 |
|
| 3486 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3487 |
/* end confdefs.h. */ |
| 3488 |
|
| 3489 |
int |
| 3490 |
main (void) |
| 3491 |
{ |
| 3492 |
|
| 3493 |
; |
| 3494 |
return 0; |
| 3495 |
} |
| 3496 |
_ACEOF |
| 3497 |
ac_clean_files_save=$ac_clean_files |
| 3498 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3499 |
# Try to create an executable without -o first, disregard a.out. |
| 3500 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 3501 |
# of exeext. |
| 3502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3503 |
printf %s "checking whether the C compiler works... " >&6; } |
| 3504 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3505 |
|
| 3506 |
# The possible output files: |
| 3507 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3508 |
|
| 3509 |
ac_rmfiles= |
| 3510 |
for ac_file in $ac_files |
| 3511 |
do |
| 3512 |
case $ac_file in |
| 3513 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3514 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3515 |
esac |
| 3516 |
done |
| 3517 |
rm -f $ac_rmfiles |
| 3518 |
|
| 3519 |
if { { ac_try="$ac_link_default" |
| 3520 |
case "(($ac_try" in |
| 3521 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3522 |
*) ac_try_echo=$ac_try;; |
| 3523 |
esac |
| 3524 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3525 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3526 |
(eval "$ac_link_default") 2>&5 |
| 3527 |
ac_status=$? |
| 3528 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3529 |
test $ac_status = 0; } |
| 3530 |
then : |
| 3531 |
# Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 3532 |
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 3533 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3534 |
# so that the user can short-circuit this test for compilers unknown to |
| 3535 |
# Autoconf. |
| 3536 |
for ac_file in $ac_files '' |
| 3537 |
do |
| 3538 |
test -f "$ac_file" || continue |
| 3539 |
case $ac_file in |
| 3540 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3541 |
;; |
| 3542 |
[ab].out ) |
| 3543 |
# We found the default executable, but exeext='' is most |
| 3544 |
# certainly right. |
| 3545 |
break;; |
| 3546 |
*.* ) |
| 3547 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3548 |
then :; else |
| 3549 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3550 |
fi |
| 3551 |
# We set ac_cv_exeext here because the later test for it is not |
| 3552 |
# safe: cross compilers may not add the suffix if given an '-o' |
| 3553 |
# argument, so we may need to know it at that point already. |
| 3554 |
# Even if this section looks crufty: it has the advantage of |
| 3555 |
# actually working. |
| 3556 |
break;; |
| 3557 |
* ) |
| 3558 |
break;; |
| 3559 |
esac |
| 3560 |
done |
| 3561 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3562 |
|
| 3563 |
else case e in #( |
| 3564 |
e) ac_file='' ;; |
| 3565 |
esac |
| 3566 |
fi |
| 3567 |
if test -z "$ac_file" |
| 3568 |
then : |
| 3569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3570 |
printf "%s\n" "no" >&6; } |
| 3571 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 3572 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3573 |
|
| 3574 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3575 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3576 |
as_fn_error 77 "C compiler cannot create executables |
| 3577 |
See 'config.log' for more details" "$LINENO" 5; } |
| 3578 |
else case e in #( |
| 3579 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3580 |
printf "%s\n" "yes" >&6; } ;; |
| 3581 |
esac |
| 3582 |
fi |
| 3583 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3584 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 3585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3586 |
printf "%s\n" "$ac_file" >&6; } |
| 3587 |
ac_exeext=$ac_cv_exeext |
| 3588 |
|
| 3589 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3590 |
ac_clean_files=$ac_clean_files_save |
| 3591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3592 |
printf %s "checking for suffix of executables... " >&6; } |
| 3593 |
if { { ac_try="$ac_link" |
| 3594 |
case "(($ac_try" in |
| 3595 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3596 |
*) ac_try_echo=$ac_try;; |
| 3597 |
esac |
| 3598 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3599 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3600 |
(eval "$ac_link") 2>&5 |
| 3601 |
ac_status=$? |
| 3602 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3603 |
test $ac_status = 0; } |
| 3604 |
then : |
| 3605 |
# If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 3606 |
# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 3607 |
# work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 3608 |
# 'rm'. |
| 3609 |
for ac_file in conftest.exe conftest conftest.*; do |
| 3610 |
test -f "$ac_file" || continue |
| 3611 |
case $ac_file in |
| 3612 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3613 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3614 |
break;; |
| 3615 |
* ) break;; |
| 3616 |
esac |
| 3617 |
done |
| 3618 |
else case e in #( |
| 3619 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3620 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3621 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3622 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3623 |
esac |
| 3624 |
fi |
| 3625 |
rm -f conftest conftest$ac_cv_exeext |
| 3626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3627 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3628 |
|
| 3629 |
rm -f conftest.$ac_ext |
| 3630 |
EXEEXT=$ac_cv_exeext |
| 3631 |
ac_exeext=$EXEEXT |
| 3632 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3633 |
/* end confdefs.h. */ |
| 3634 |
#include <stdio.h> |
| 3635 |
int |
| 3636 |
main (void) |
| 3637 |
{ |
| 3638 |
FILE *f = fopen ("conftest.out", "w"); |
| 3639 |
if (!f) |
| 3640 |
return 1; |
| 3641 |
return ferror (f) || fclose (f) != 0; |
| 3642 |
|
| 3643 |
; |
| 3644 |
return 0; |
| 3645 |
} |
| 3646 |
_ACEOF |
| 3647 |
ac_clean_files="$ac_clean_files conftest.out" |
| 3648 |
# Check that the compiler produces executables we can run. If not, either |
| 3649 |
# the compiler is broken, or we cross compile. |
| 3650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3651 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 3652 |
if test "$cross_compiling" != yes; then |
| 3653 |
{ { ac_try="$ac_link" |
| 3654 |
case "(($ac_try" in |
| 3655 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 |
*) ac_try_echo=$ac_try;; |
| 3657 |
esac |
| 3658 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3659 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3660 |
(eval "$ac_link") 2>&5 |
| 3661 |
ac_status=$? |
| 3662 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3663 |
test $ac_status = 0; } |
| 3664 |
if { ac_try='./conftest$ac_cv_exeext' |
| 3665 |
{ { case "(($ac_try" in |
| 3666 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3667 |
*) ac_try_echo=$ac_try;; |
| 3668 |
esac |
| 3669 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3670 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3671 |
(eval "$ac_try") 2>&5 |
| 3672 |
ac_status=$? |
| 3673 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3674 |
test $ac_status = 0; }; }; then |
| 3675 |
cross_compiling=no |
| 3676 |
else |
| 3677 |
if test "$cross_compiling" = maybe; then |
| 3678 |
cross_compiling=yes |
| 3679 |
else |
| 3680 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3681 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3682 |
as_fn_error 77 "cannot run C compiled programs. |
| 3683 |
If you meant to cross compile, use '--host'. |
| 3684 |
See 'config.log' for more details" "$LINENO" 5; } |
| 3685 |
fi |
| 3686 |
fi |
| 3687 |
fi |
| 3688 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3689 |
printf "%s\n" "$cross_compiling" >&6; } |
| 3690 |
|
| 3691 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 3692 |
conftest.o conftest.obj conftest.out |
| 3693 |
ac_clean_files=$ac_clean_files_save |
| 3694 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3695 |
printf %s "checking for suffix of object files... " >&6; } |
| 3696 |
if test ${ac_cv_objext+y} |
| 3697 |
then : |
| 3698 |
printf %s "(cached) " >&6 |
| 3699 |
else case e in #( |
| 3700 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3701 |
/* end confdefs.h. */ |
| 3702 |
|
| 3703 |
int |
| 3704 |
main (void) |
| 3705 |
{ |
| 3706 |
|
| 3707 |
; |
| 3708 |
return 0; |
| 3709 |
} |
| 3710 |
_ACEOF |
| 3711 |
rm -f conftest.o conftest.obj |
| 3712 |
if { { ac_try="$ac_compile" |
| 3713 |
case "(($ac_try" in |
| 3714 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3715 |
*) ac_try_echo=$ac_try;; |
| 3716 |
esac |
| 3717 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3718 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3719 |
(eval "$ac_compile") 2>&5 |
| 3720 |
ac_status=$? |
| 3721 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3722 |
test $ac_status = 0; } |
| 3723 |
then : |
| 3724 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 3725 |
test -f "$ac_file" || continue; |
| 3726 |
case $ac_file in |
| 3727 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3728 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3729 |
break;; |
| 3730 |
esac |
| 3731 |
done |
| 3732 |
else case e in #( |
| 3733 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 3734 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3735 |
|
| 3736 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3737 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3738 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3739 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3740 |
esac |
| 3741 |
fi |
| 3742 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 3743 |
esac |
| 3744 |
fi |
| 3745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3746 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 3747 |
OBJEXT=$ac_cv_objext |
| 3748 |
ac_objext=$OBJEXT |
| 3749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3750 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3751 |
if test ${ac_cv_c_compiler_gnu+y} |
| 3752 |
then : |
| 3753 |
printf %s "(cached) " >&6 |
| 3754 |
else case e in #( |
| 3755 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3756 |
/* end confdefs.h. */ |
| 3757 |
|
| 3758 |
int |
| 3759 |
main (void) |
| 3760 |
{ |
| 3761 |
#ifndef __GNUC__ |
| 3762 |
choke me |
| 3763 |
#endif |
| 3764 |
|
| 3765 |
; |
| 3766 |
return 0; |
| 3767 |
} |
| 3768 |
_ACEOF |
| 3769 |
if ac_fn_c_try_compile "$LINENO" |
| 3770 |
then : |
| 3771 |
ac_compiler_gnu=yes |
| 3772 |
else case e in #( |
| 3773 |
e) ac_compiler_gnu=no ;; |
| 3774 |
esac |
| 3775 |
fi |
| 3776 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3777 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3778 |
;; |
| 3779 |
esac |
| 3780 |
fi |
| 3781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3782 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3783 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3784 |
|
| 3785 |
if test $ac_compiler_gnu = yes; then |
| 3786 |
GCC=yes |
| 3787 |
else |
| 3788 |
GCC= |
| 3789 |
fi |
| 3790 |
ac_test_CFLAGS=${CFLAGS+y} |
| 3791 |
ac_save_CFLAGS=$CFLAGS |
| 3792 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3793 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 3794 |
if test ${ac_cv_prog_cc_g+y} |
| 3795 |
then : |
| 3796 |
printf %s "(cached) " >&6 |
| 3797 |
else case e in #( |
| 3798 |
e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 3799 |
ac_c_werror_flag=yes |
| 3800 |
ac_cv_prog_cc_g=no |
| 3801 |
CFLAGS="-g" |
| 3802 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3803 |
/* end confdefs.h. */ |
| 3804 |
|
| 3805 |
int |
| 3806 |
main (void) |
| 3807 |
{ |
| 3808 |
|
| 3809 |
; |
| 3810 |
return 0; |
| 3811 |
} |
| 3812 |
_ACEOF |
| 3813 |
if ac_fn_c_try_compile "$LINENO" |
| 3814 |
then : |
| 3815 |
ac_cv_prog_cc_g=yes |
| 3816 |
else case e in #( |
| 3817 |
e) CFLAGS="" |
| 3818 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3819 |
/* end confdefs.h. */ |
| 3820 |
|
| 3821 |
int |
| 3822 |
main (void) |
| 3823 |
{ |
| 3824 |
|
| 3825 |
; |
| 3826 |
return 0; |
| 3827 |
} |
| 3828 |
_ACEOF |
| 3829 |
if ac_fn_c_try_compile "$LINENO" |
| 3830 |
then : |
| 3831 |
|
| 3832 |
else case e in #( |
| 3833 |
e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 3834 |
CFLAGS="-g" |
| 3835 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3836 |
/* end confdefs.h. */ |
| 3837 |
|
| 3838 |
int |
| 3839 |
main (void) |
| 3840 |
{ |
| 3841 |
|
| 3842 |
; |
| 3843 |
return 0; |
| 3844 |
} |
| 3845 |
_ACEOF |
| 3846 |
if ac_fn_c_try_compile "$LINENO" |
| 3847 |
then : |
| 3848 |
ac_cv_prog_cc_g=yes |
| 3849 |
fi |
| 3850 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3851 |
esac |
| 3852 |
fi |
| 3853 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3854 |
esac |
| 3855 |
fi |
| 3856 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3857 |
ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 3858 |
esac |
| 3859 |
fi |
| 3860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3861 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3862 |
if test $ac_test_CFLAGS; then |
| 3863 |
CFLAGS=$ac_save_CFLAGS |
| 3864 |
elif test $ac_cv_prog_cc_g = yes; then |
| 3865 |
if test "$GCC" = yes; then |
| 3866 |
CFLAGS="-g -O2" |
| 3867 |
else |
| 3868 |
CFLAGS="-g" |
| 3869 |
fi |
| 3870 |
else |
| 3871 |
if test "$GCC" = yes; then |
| 3872 |
CFLAGS="-O2" |
| 3873 |
else |
| 3874 |
CFLAGS= |
| 3875 |
fi |
| 3876 |
fi |
| 3877 |
ac_prog_cc_stdc=no |
| 3878 |
if test x$ac_prog_cc_stdc = xno |
| 3879 |
then : |
| 3880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3881 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3882 |
if test ${ac_cv_prog_cc_c11+y} |
| 3883 |
then : |
| 3884 |
printf %s "(cached) " >&6 |
| 3885 |
else case e in #( |
| 3886 |
e) ac_cv_prog_cc_c11=no |
| 3887 |
ac_save_CC=$CC |
| 3888 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3889 |
/* end confdefs.h. */ |
| 3890 |
$ac_c_conftest_c11_program |
| 3891 |
_ACEOF |
| 3892 |
for ac_arg in '' -std=gnu11 |
| 3893 |
do |
| 3894 |
CC="$ac_save_CC $ac_arg" |
| 3895 |
if ac_fn_c_try_compile "$LINENO" |
| 3896 |
then : |
| 3897 |
ac_cv_prog_cc_c11=$ac_arg |
| 3898 |
fi |
| 3899 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3900 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3901 |
done |
| 3902 |
rm -f conftest.$ac_ext |
| 3903 |
CC=$ac_save_CC ;; |
| 3904 |
esac |
| 3905 |
fi |
| 3906 |
|
| 3907 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 3908 |
then : |
| 3909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3910 |
printf "%s\n" "unsupported" >&6; } |
| 3911 |
else case e in #( |
| 3912 |
e) if test "x$ac_cv_prog_cc_c11" = x |
| 3913 |
then : |
| 3914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3915 |
printf "%s\n" "none needed" >&6; } |
| 3916 |
else case e in #( |
| 3917 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 3918 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 3919 |
CC="$CC $ac_cv_prog_cc_c11" ;; |
| 3920 |
esac |
| 3921 |
fi |
| 3922 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 3923 |
ac_prog_cc_stdc=c11 ;; |
| 3924 |
esac |
| 3925 |
fi |
| 3926 |
fi |
| 3927 |
if test x$ac_prog_cc_stdc = xno |
| 3928 |
then : |
| 3929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3930 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3931 |
if test ${ac_cv_prog_cc_c99+y} |
| 3932 |
then : |
| 3933 |
printf %s "(cached) " >&6 |
| 3934 |
else case e in #( |
| 3935 |
e) ac_cv_prog_cc_c99=no |
| 3936 |
ac_save_CC=$CC |
| 3937 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3938 |
/* end confdefs.h. */ |
| 3939 |
$ac_c_conftest_c99_program |
| 3940 |
_ACEOF |
| 3941 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3942 |
do |
| 3943 |
CC="$ac_save_CC $ac_arg" |
| 3944 |
if ac_fn_c_try_compile "$LINENO" |
| 3945 |
then : |
| 3946 |
ac_cv_prog_cc_c99=$ac_arg |
| 3947 |
fi |
| 3948 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3949 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 3950 |
done |
| 3951 |
rm -f conftest.$ac_ext |
| 3952 |
CC=$ac_save_CC ;; |
| 3953 |
esac |
| 3954 |
fi |
| 3955 |
|
| 3956 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 3957 |
then : |
| 3958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3959 |
printf "%s\n" "unsupported" >&6; } |
| 3960 |
else case e in #( |
| 3961 |
e) if test "x$ac_cv_prog_cc_c99" = x |
| 3962 |
then : |
| 3963 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3964 |
printf "%s\n" "none needed" >&6; } |
| 3965 |
else case e in #( |
| 3966 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 3967 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 3968 |
CC="$CC $ac_cv_prog_cc_c99" ;; |
| 3969 |
esac |
| 3970 |
fi |
| 3971 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 3972 |
ac_prog_cc_stdc=c99 ;; |
| 3973 |
esac |
| 3974 |
fi |
| 3975 |
fi |
| 3976 |
if test x$ac_prog_cc_stdc = xno |
| 3977 |
then : |
| 3978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3979 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3980 |
if test ${ac_cv_prog_cc_c89+y} |
| 3981 |
then : |
| 3982 |
printf %s "(cached) " >&6 |
| 3983 |
else case e in #( |
| 3984 |
e) ac_cv_prog_cc_c89=no |
| 3985 |
ac_save_CC=$CC |
| 3986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3987 |
/* end confdefs.h. */ |
| 3988 |
$ac_c_conftest_c89_program |
| 3989 |
_ACEOF |
| 3990 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3991 |
do |
| 3992 |
CC="$ac_save_CC $ac_arg" |
| 3993 |
if ac_fn_c_try_compile "$LINENO" |
| 3994 |
then : |
| 3995 |
ac_cv_prog_cc_c89=$ac_arg |
| 3996 |
fi |
| 3997 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3998 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3999 |
done |
| 4000 |
rm -f conftest.$ac_ext |
| 4001 |
CC=$ac_save_CC ;; |
| 4002 |
esac |
| 4003 |
fi |
| 4004 |
|
| 4005 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 4006 |
then : |
| 4007 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4008 |
printf "%s\n" "unsupported" >&6; } |
| 4009 |
else case e in #( |
| 4010 |
e) if test "x$ac_cv_prog_cc_c89" = x |
| 4011 |
then : |
| 4012 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4013 |
printf "%s\n" "none needed" >&6; } |
| 4014 |
else case e in #( |
| 4015 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4016 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4017 |
CC="$CC $ac_cv_prog_cc_c89" ;; |
| 4018 |
esac |
| 4019 |
fi |
| 4020 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4021 |
ac_prog_cc_stdc=c89 ;; |
| 4022 |
esac |
| 4023 |
fi |
| 4024 |
fi |
| 4025 |
|
| 4026 |
ac_ext=c |
| 4027 |
ac_cpp='$CPP $CPPFLAGS' |
| 4028 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4029 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4030 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4031 |
ac_ext=c |
| 4032 |
ac_cpp='$CPP $CPPFLAGS' |
| 4033 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4034 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4035 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4036 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4037 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 4038 |
# On Suns, sometimes $CPP names a directory. |
| 4039 |
if test -n "$CPP" && test -d "$CPP"; then |
| 4040 |
CPP= |
| 4041 |
fi |
| 4042 |
if test -z "$CPP"; then |
| 4043 |
if test ${ac_cv_prog_CPP+y} |
| 4044 |
then : |
| 4045 |
printf %s "(cached) " >&6 |
| 4046 |
else case e in #( |
| 4047 |
e) # Double quotes because $CC needs to be expanded |
| 4048 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 4049 |
do |
| 4050 |
ac_preproc_ok=false |
| 4051 |
for ac_c_preproc_warn_flag in '' yes |
| 4052 |
do |
| 4053 |
# Use a header file that comes with gcc, so configuring glibc |
| 4054 |
# with a fresh cross-compiler works. |
| 4055 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4056 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4057 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4058 |
/* end confdefs.h. */ |
| 4059 |
#include <limits.h> |
| 4060 |
Syntax error |
| 4061 |
_ACEOF |
| 4062 |
if ac_fn_c_try_cpp "$LINENO" |
| 4063 |
then : |
| 4064 |
|
| 4065 |
else case e in #( |
| 4066 |
e) # Broken: fails on valid input. |
| 4067 |
continue ;; |
| 4068 |
esac |
| 4069 |
fi |
| 4070 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4071 |
|
| 4072 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4073 |
# can be detected and how. |
| 4074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4075 |
/* end confdefs.h. */ |
| 4076 |
#include <ac_nonexistent.h> |
| 4077 |
_ACEOF |
| 4078 |
if ac_fn_c_try_cpp "$LINENO" |
| 4079 |
then : |
| 4080 |
# Broken: success on invalid input. |
| 4081 |
continue |
| 4082 |
else case e in #( |
| 4083 |
e) # Passes both tests. |
| 4084 |
ac_preproc_ok=: |
| 4085 |
break ;; |
| 4086 |
esac |
| 4087 |
fi |
| 4088 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4089 |
|
| 4090 |
done |
| 4091 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4092 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4093 |
if $ac_preproc_ok |
| 4094 |
then : |
| 4095 |
break |
| 4096 |
fi |
| 4097 |
|
| 4098 |
done |
| 4099 |
ac_cv_prog_CPP=$CPP |
| 4100 |
;; |
| 4101 |
esac |
| 4102 |
fi |
| 4103 |
CPP=$ac_cv_prog_CPP |
| 4104 |
else |
| 4105 |
ac_cv_prog_CPP=$CPP |
| 4106 |
fi |
| 4107 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4108 |
printf "%s\n" "$CPP" >&6; } |
| 4109 |
ac_preproc_ok=false |
| 4110 |
for ac_c_preproc_warn_flag in '' yes |
| 4111 |
do |
| 4112 |
# Use a header file that comes with gcc, so configuring glibc |
| 4113 |
# with a fresh cross-compiler works. |
| 4114 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4115 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4116 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4117 |
/* end confdefs.h. */ |
| 4118 |
#include <limits.h> |
| 4119 |
Syntax error |
| 4120 |
_ACEOF |
| 4121 |
if ac_fn_c_try_cpp "$LINENO" |
| 4122 |
then : |
| 4123 |
|
| 4124 |
else case e in #( |
| 4125 |
e) # Broken: fails on valid input. |
| 4126 |
continue ;; |
| 4127 |
esac |
| 4128 |
fi |
| 4129 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4130 |
|
| 4131 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4132 |
# can be detected and how. |
| 4133 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4134 |
/* end confdefs.h. */ |
| 4135 |
#include <ac_nonexistent.h> |
| 4136 |
_ACEOF |
| 4137 |
if ac_fn_c_try_cpp "$LINENO" |
| 4138 |
then : |
| 4139 |
# Broken: success on invalid input. |
| 4140 |
continue |
| 4141 |
else case e in #( |
| 4142 |
e) # Passes both tests. |
| 4143 |
ac_preproc_ok=: |
| 4144 |
break ;; |
| 4145 |
esac |
| 4146 |
fi |
| 4147 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4148 |
|
| 4149 |
done |
| 4150 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4151 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4152 |
if $ac_preproc_ok |
| 4153 |
then : |
| 4154 |
|
| 4155 |
else case e in #( |
| 4156 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4157 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4158 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4159 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4160 |
esac |
| 4161 |
fi |
| 4162 |
|
| 4163 |
ac_ext=c |
| 4164 |
ac_cpp='$CPP $CPPFLAGS' |
| 4165 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4166 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4167 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4169 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 4170 |
if test ${ac_cv_path_GREP+y} |
| 4171 |
then : |
| 4172 |
printf %s "(cached) " >&6 |
| 4173 |
else case e in #( |
| 4174 |
e) if test -z "$GREP"; then |
| 4175 |
ac_path_GREP_found=false |
| 4176 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4177 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4178 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4179 |
do |
| 4180 |
IFS=$as_save_IFS |
| 4181 |
case $as_dir in #((( |
| 4182 |
'') as_dir=./ ;; |
| 4183 |
*/) ;; |
| 4184 |
*) as_dir=$as_dir/ ;; |
| 4185 |
esac |
| 4186 |
for ac_prog in grep ggrep |
| 4187 |
do |
| 4188 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4189 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 4190 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 4191 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 4192 |
# Check for GNU $ac_path_GREP |
| 4193 |
case `"$ac_path_GREP" --version 2>&1` in #( |
| 4194 |
*GNU*) |
| 4195 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4196 |
#( |
| 4197 |
*) |
| 4198 |
ac_count=0 |
| 4199 |
printf %s 0123456789 >"conftest.in" |
| 4200 |
while : |
| 4201 |
do |
| 4202 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4203 |
mv "conftest.tmp" "conftest.in" |
| 4204 |
cp "conftest.in" "conftest.nl" |
| 4205 |
printf "%s\n" 'GREP' >> "conftest.nl" |
| 4206 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4207 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4208 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4209 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4210 |
# Best one so far, save it but keep looking for a better one |
| 4211 |
ac_cv_path_GREP="$ac_path_GREP" |
| 4212 |
ac_path_GREP_max=$ac_count |
| 4213 |
fi |
| 4214 |
# 10*(2^10) chars as input seems more than enough |
| 4215 |
test $ac_count -gt 10 && break |
| 4216 |
done |
| 4217 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4218 |
esac |
| 4219 |
|
| 4220 |
$ac_path_GREP_found && break 3 |
| 4221 |
done |
| 4222 |
done |
| 4223 |
done |
| 4224 |
IFS=$as_save_IFS |
| 4225 |
if test -z "$ac_cv_path_GREP"; then |
| 4226 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4227 |
fi |
| 4228 |
else |
| 4229 |
ac_cv_path_GREP=$GREP |
| 4230 |
fi |
| 4231 |
;; |
| 4232 |
esac |
| 4233 |
fi |
| 4234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4235 |
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 4236 |
GREP="$ac_cv_path_GREP" |
| 4237 |
|
| 4238 |
|
| 4239 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4240 |
printf %s "checking for egrep... " >&6; } |
| 4241 |
if test ${ac_cv_path_EGREP+y} |
| 4242 |
then : |
| 4243 |
printf %s "(cached) " >&6 |
| 4244 |
else case e in #( |
| 4245 |
e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4246 |
then ac_cv_path_EGREP="$GREP -E" |
| 4247 |
else |
| 4248 |
if test -z "$EGREP"; then |
| 4249 |
ac_path_EGREP_found=false |
| 4250 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4251 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4252 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4253 |
do |
| 4254 |
IFS=$as_save_IFS |
| 4255 |
case $as_dir in #((( |
| 4256 |
'') as_dir=./ ;; |
| 4257 |
*/) ;; |
| 4258 |
*) as_dir=$as_dir/ ;; |
| 4259 |
esac |
| 4260 |
for ac_prog in egrep |
| 4261 |
do |
| 4262 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4263 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 4264 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 4265 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 4266 |
# Check for GNU $ac_path_EGREP |
| 4267 |
case `"$ac_path_EGREP" --version 2>&1` in #( |
| 4268 |
*GNU*) |
| 4269 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4270 |
#( |
| 4271 |
*) |
| 4272 |
ac_count=0 |
| 4273 |
printf %s 0123456789 >"conftest.in" |
| 4274 |
while : |
| 4275 |
do |
| 4276 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4277 |
mv "conftest.tmp" "conftest.in" |
| 4278 |
cp "conftest.in" "conftest.nl" |
| 4279 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
| 4280 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4281 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4282 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4283 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4284 |
# Best one so far, save it but keep looking for a better one |
| 4285 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 4286 |
ac_path_EGREP_max=$ac_count |
| 4287 |
fi |
| 4288 |
# 10*(2^10) chars as input seems more than enough |
| 4289 |
test $ac_count -gt 10 && break |
| 4290 |
done |
| 4291 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4292 |
esac |
| 4293 |
|
| 4294 |
$ac_path_EGREP_found && break 3 |
| 4295 |
done |
| 4296 |
done |
| 4297 |
done |
| 4298 |
IFS=$as_save_IFS |
| 4299 |
if test -z "$ac_cv_path_EGREP"; then |
| 4300 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4301 |
fi |
| 4302 |
else |
| 4303 |
ac_cv_path_EGREP=$EGREP |
| 4304 |
fi |
| 4305 |
|
| 4306 |
fi ;; |
| 4307 |
esac |
| 4308 |
fi |
| 4309 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4310 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 4311 |
EGREP="$ac_cv_path_EGREP" |
| 4312 |
|
| 4313 |
EGREP_TRADITIONAL=$EGREP |
| 4314 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP |
| 4315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4316 |
printf %s "checking for fgrep... " >&6; } |
| 4317 |
if test ${ac_cv_path_FGREP+y} |
| 4318 |
then : |
| 4319 |
printf %s "(cached) " >&6 |
| 4320 |
else case e in #( |
| 4321 |
e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4322 |
then ac_cv_path_FGREP="$GREP -F" |
| 4323 |
else |
| 4324 |
if test -z "$FGREP"; then |
| 4325 |
ac_path_FGREP_found=false |
| 4326 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4327 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4328 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4329 |
do |
| 4330 |
IFS=$as_save_IFS |
| 4331 |
case $as_dir in #((( |
| 4332 |
'') as_dir=./ ;; |
| 4333 |
*/) ;; |
| 4334 |
*) as_dir=$as_dir/ ;; |
| 4335 |
esac |
| 4336 |
for ac_prog in fgrep |
| 4337 |
do |
| 4338 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4339 |
ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 4340 |
as_fn_executable_p "$ac_path_FGREP" || continue |
| 4341 |
# Check for GNU ac_path_FGREP and select it if it is found. |
| 4342 |
# Check for GNU $ac_path_FGREP |
| 4343 |
case `"$ac_path_FGREP" --version 2>&1` in #( |
| 4344 |
*GNU*) |
| 4345 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4346 |
#( |
| 4347 |
*) |
| 4348 |
ac_count=0 |
| 4349 |
printf %s 0123456789 >"conftest.in" |
| 4350 |
while : |
| 4351 |
do |
| 4352 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4353 |
mv "conftest.tmp" "conftest.in" |
| 4354 |
cp "conftest.in" "conftest.nl" |
| 4355 |
printf "%s\n" 'FGREP' >> "conftest.nl" |
| 4356 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4357 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4358 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4359 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4360 |
# Best one so far, save it but keep looking for a better one |
| 4361 |
ac_cv_path_FGREP="$ac_path_FGREP" |
| 4362 |
ac_path_FGREP_max=$ac_count |
| 4363 |
fi |
| 4364 |
# 10*(2^10) chars as input seems more than enough |
| 4365 |
test $ac_count -gt 10 && break |
| 4366 |
done |
| 4367 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4368 |
esac |
| 4369 |
|
| 4370 |
$ac_path_FGREP_found && break 3 |
| 4371 |
done |
| 4372 |
done |
| 4373 |
done |
| 4374 |
IFS=$as_save_IFS |
| 4375 |
if test -z "$ac_cv_path_FGREP"; then |
| 4376 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4377 |
fi |
| 4378 |
else |
| 4379 |
ac_cv_path_FGREP=$FGREP |
| 4380 |
fi |
| 4381 |
|
| 4382 |
fi ;; |
| 4383 |
esac |
| 4384 |
fi |
| 4385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4386 |
printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 4387 |
FGREP="$ac_cv_path_FGREP" |
| 4388 |
|
| 4389 |
for ac_prog in gawk mawk nawk awk |
| 4390 |
do |
| 4391 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4392 |
set dummy $ac_prog; ac_word=$2 |
| 4393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4394 |
printf %s "checking for $ac_word... " >&6; } |
| 4395 |
if test ${ac_cv_prog_AWK+y} |
| 4396 |
then : |
| 4397 |
printf %s "(cached) " >&6 |
| 4398 |
else case e in #( |
| 4399 |
e) if test -n "$AWK"; then |
| 4400 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4401 |
else |
| 4402 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4403 |
for as_dir in $PATH |
| 4404 |
do |
| 4405 |
IFS=$as_save_IFS |
| 4406 |
case $as_dir in #((( |
| 4407 |
'') as_dir=./ ;; |
| 4408 |
*/) ;; |
| 4409 |
*) as_dir=$as_dir/ ;; |
| 4410 |
esac |
| 4411 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4413 |
ac_cv_prog_AWK="$ac_prog" |
| 4414 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4415 |
break 2 |
| 4416 |
fi |
| 4417 |
done |
| 4418 |
done |
| 4419 |
IFS=$as_save_IFS |
| 4420 |
|
| 4421 |
fi ;; |
| 4422 |
esac |
| 4423 |
fi |
| 4424 |
AWK=$ac_cv_prog_AWK |
| 4425 |
if test -n "$AWK"; then |
| 4426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4427 |
printf "%s\n" "$AWK" >&6; } |
| 4428 |
else |
| 4429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4430 |
printf "%s\n" "no" >&6; } |
| 4431 |
fi |
| 4432 |
|
| 4433 |
|
| 4434 |
test -n "$AWK" && break |
| 4435 |
done |
| 4436 |
|
| 4437 |
# Extract the first word of "strip", so it can be a program name with args. |
| 4438 |
set dummy strip; ac_word=$2 |
| 4439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4440 |
printf %s "checking for $ac_word... " >&6; } |
| 4441 |
if test ${ac_cv_prog_STRIP+y} |
| 4442 |
then : |
| 4443 |
printf %s "(cached) " >&6 |
| 4444 |
else case e in #( |
| 4445 |
e) if test -n "$STRIP"; then |
| 4446 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4447 |
else |
| 4448 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 |
for as_dir in $PATH |
| 4450 |
do |
| 4451 |
IFS=$as_save_IFS |
| 4452 |
case $as_dir in #((( |
| 4453 |
'') as_dir=./ ;; |
| 4454 |
*/) ;; |
| 4455 |
*) as_dir=$as_dir/ ;; |
| 4456 |
esac |
| 4457 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4458 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4459 |
ac_cv_prog_STRIP="strip" |
| 4460 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4461 |
break 2 |
| 4462 |
fi |
| 4463 |
done |
| 4464 |
done |
| 4465 |
IFS=$as_save_IFS |
| 4466 |
|
| 4467 |
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 4468 |
fi ;; |
| 4469 |
esac |
| 4470 |
fi |
| 4471 |
STRIP=$ac_cv_prog_STRIP |
| 4472 |
if test -n "$STRIP"; then |
| 4473 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 4474 |
printf "%s\n" "$STRIP" >&6; } |
| 4475 |
else |
| 4476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4477 |
printf "%s\n" "no" >&6; } |
| 4478 |
fi |
| 4479 |
|
| 4480 |
|
| 4481 |
|
| 4482 |
|
| 4483 |
|
| 4484 |
|
| 4485 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 4486 |
printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 4487 |
if test ${ac_cv_header_sys_wait_h+y} |
| 4488 |
then : |
| 4489 |
printf %s "(cached) " >&6 |
| 4490 |
else case e in #( |
| 4491 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4492 |
/* end confdefs.h. */ |
| 4493 |
#include <sys/types.h> |
| 4494 |
#include <sys/wait.h> |
| 4495 |
#ifndef WEXITSTATUS |
| 4496 |
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 4497 |
#endif |
| 4498 |
#ifndef WIFEXITED |
| 4499 |
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 4500 |
#endif |
| 4501 |
|
| 4502 |
int |
| 4503 |
main (void) |
| 4504 |
{ |
| 4505 |
int s; |
| 4506 |
wait (&s); |
| 4507 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 4508 |
; |
| 4509 |
return 0; |
| 4510 |
} |
| 4511 |
_ACEOF |
| 4512 |
if ac_fn_c_try_compile "$LINENO" |
| 4513 |
then : |
| 4514 |
ac_cv_header_sys_wait_h=yes |
| 4515 |
else case e in #( |
| 4516 |
e) ac_cv_header_sys_wait_h=no ;; |
| 4517 |
esac |
| 4518 |
fi |
| 4519 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4520 |
esac |
| 4521 |
fi |
| 4522 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 4523 |
printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } |
| 4524 |
if test $ac_cv_header_sys_wait_h = yes; then |
| 4525 |
|
| 4526 |
printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 4527 |
|
| 4528 |
fi |
| 4529 |
|
| 4530 |
|
| 4531 |
if test -z "$PKG_CONFIG"; then |
| 4532 |
if test -n "$ac_tool_prefix"; then |
| 4533 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4534 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4536 |
printf %s "checking for $ac_word... " >&6; } |
| 4537 |
if test ${ac_cv_path_PKG_CONFIG+y} |
| 4538 |
then : |
| 4539 |
printf %s "(cached) " >&6 |
| 4540 |
else case e in #( |
| 4541 |
e) case $PKG_CONFIG in |
| 4542 |
[\\/]* | ?:[\\/]*) |
| 4543 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4544 |
;; |
| 4545 |
*) |
| 4546 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4547 |
for as_dir in $PATH |
| 4548 |
do |
| 4549 |
IFS=$as_save_IFS |
| 4550 |
case $as_dir in #((( |
| 4551 |
'') as_dir=./ ;; |
| 4552 |
*/) ;; |
| 4553 |
*) as_dir=$as_dir/ ;; |
| 4554 |
esac |
| 4555 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4556 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4557 |
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 4558 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4559 |
break 2 |
| 4560 |
fi |
| 4561 |
done |
| 4562 |
done |
| 4563 |
IFS=$as_save_IFS |
| 4564 |
|
| 4565 |
;; |
| 4566 |
esac ;; |
| 4567 |
esac |
| 4568 |
fi |
| 4569 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4570 |
if test -n "$PKG_CONFIG"; then |
| 4571 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 4572 |
printf "%s\n" "$PKG_CONFIG" >&6; } |
| 4573 |
else |
| 4574 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4575 |
printf "%s\n" "no" >&6; } |
| 4576 |
fi |
| 4577 |
|
| 4578 |
|
| 4579 |
fi |
| 4580 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4581 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4582 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 4583 |
set dummy pkg-config; ac_word=$2 |
| 4584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4585 |
printf %s "checking for $ac_word... " >&6; } |
| 4586 |
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 4587 |
then : |
| 4588 |
printf %s "(cached) " >&6 |
| 4589 |
else case e in #( |
| 4590 |
e) case $ac_pt_PKG_CONFIG in |
| 4591 |
[\\/]* | ?:[\\/]*) |
| 4592 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4593 |
;; |
| 4594 |
*) |
| 4595 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4596 |
for as_dir in $PATH |
| 4597 |
do |
| 4598 |
IFS=$as_save_IFS |
| 4599 |
case $as_dir in #((( |
| 4600 |
'') as_dir=./ ;; |
| 4601 |
*/) ;; |
| 4602 |
*) as_dir=$as_dir/ ;; |
| 4603 |
esac |
| 4604 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4605 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4606 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 4607 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4608 |
break 2 |
| 4609 |
fi |
| 4610 |
done |
| 4611 |
done |
| 4612 |
IFS=$as_save_IFS |
| 4613 |
|
| 4614 |
;; |
| 4615 |
esac ;; |
| 4616 |
esac |
| 4617 |
fi |
| 4618 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4619 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 4620 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 4621 |
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 4622 |
else |
| 4623 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4624 |
printf "%s\n" "no" >&6; } |
| 4625 |
fi |
| 4626 |
|
| 4627 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4628 |
PKG_CONFIG="no" |
| 4629 |
else |
| 4630 |
case $cross_compiling:$ac_tool_warned in |
| 4631 |
yes:) |
| 4632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4633 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4634 |
ac_tool_warned=yes ;; |
| 4635 |
esac |
| 4636 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4637 |
fi |
| 4638 |
else |
| 4639 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4640 |
fi |
| 4641 |
|
| 4642 |
fi |
| 4643 |
|
| 4644 |
if test x"$ac_cv_prog_cc_c99" = xno; then |
| 4645 |
|
| 4646 |
|
| 4647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 4648 |
printf %s "checking for unsigned long long int... " >&6; } |
| 4649 |
if test ${ac_cv_type_unsigned_long_long_int+y} |
| 4650 |
then : |
| 4651 |
printf %s "(cached) " >&6 |
| 4652 |
else case e in #( |
| 4653 |
e) ac_cv_type_unsigned_long_long_int=yes |
| 4654 |
case $ac_prog_cc_stdc in |
| 4655 |
no | c89) ;; |
| 4656 |
*) |
| 4657 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4658 |
/* end confdefs.h. */ |
| 4659 |
|
| 4660 |
/* For now, do not test the preprocessor; as of 2007 there are too many |
| 4661 |
implementations with broken preprocessors. Perhaps this can |
| 4662 |
be revisited in 2012. In the meantime, code should not expect |
| 4663 |
#if to work with literals wider than 32 bits. */ |
| 4664 |
/* Test literals. */ |
| 4665 |
long long int ll = 9223372036854775807ll; |
| 4666 |
long long int nll = -9223372036854775807LL; |
| 4667 |
unsigned long long int ull = 18446744073709551615ULL; |
| 4668 |
/* Test constant expressions. */ |
| 4669 |
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 4670 |
? 1 : -1)]; |
| 4671 |
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 4672 |
? 1 : -1)]; |
| 4673 |
int i = 63; |
| 4674 |
int |
| 4675 |
main (void) |
| 4676 |
{ |
| 4677 |
/* Test availability of runtime routines for shift and division. */ |
| 4678 |
long long int llmax = 9223372036854775807ll; |
| 4679 |
unsigned long long int ullmax = 18446744073709551615ull; |
| 4680 |
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 4681 |
| (llmax / ll) | (llmax % ll) |
| 4682 |
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 4683 |
| (ullmax / ull) | (ullmax % ull)); |
| 4684 |
; |
| 4685 |
return 0; |
| 4686 |
} |
| 4687 |
|
| 4688 |
_ACEOF |
| 4689 |
if ac_fn_c_try_link "$LINENO" |
| 4690 |
then : |
| 4691 |
|
| 4692 |
else case e in #( |
| 4693 |
e) ac_cv_type_unsigned_long_long_int=no ;; |
| 4694 |
esac |
| 4695 |
fi |
| 4696 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4697 |
conftest$ac_exeext conftest.$ac_ext;; |
| 4698 |
esac ;; |
| 4699 |
esac |
| 4700 |
fi |
| 4701 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 4702 |
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 4703 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 4704 |
|
| 4705 |
printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 4706 |
|
| 4707 |
fi |
| 4708 |
|
| 4709 |
|
| 4710 |
|
| 4711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 4712 |
printf %s "checking for long long int... " >&6; } |
| 4713 |
if test ${ac_cv_type_long_long_int+y} |
| 4714 |
then : |
| 4715 |
printf %s "(cached) " >&6 |
| 4716 |
else case e in #( |
| 4717 |
e) ac_cv_type_long_long_int=yes |
| 4718 |
case $ac_prog_cc_stdc in |
| 4719 |
no | c89) ;; |
| 4720 |
*) |
| 4721 |
ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 4722 |
if test $ac_cv_type_long_long_int = yes; then |
| 4723 |
if test "$cross_compiling" = yes |
| 4724 |
then : |
| 4725 |
: |
| 4726 |
else case e in #( |
| 4727 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4728 |
/* end confdefs.h. */ |
| 4729 |
#include <limits.h> |
| 4730 |
#ifndef LLONG_MAX |
| 4731 |
# define HALF \\ |
| 4732 |
(1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 4733 |
# define LLONG_MAX (HALF - 1 + HALF) |
| 4734 |
#endif |
| 4735 |
int |
| 4736 |
main (void) |
| 4737 |
{ |
| 4738 |
long long int n = 1; |
| 4739 |
int i; |
| 4740 |
for (i = 0; ; i++) |
| 4741 |
{ |
| 4742 |
long long int m = n << i; |
| 4743 |
if (m >> i != n) |
| 4744 |
return 1; |
| 4745 |
if (LLONG_MAX / 2 < m) |
| 4746 |
break; |
| 4747 |
} |
| 4748 |
return 0; |
| 4749 |
; |
| 4750 |
return 0; |
| 4751 |
} |
| 4752 |
_ACEOF |
| 4753 |
if ac_fn_c_try_run "$LINENO" |
| 4754 |
then : |
| 4755 |
|
| 4756 |
else case e in #( |
| 4757 |
e) ac_cv_type_long_long_int=no ;; |
| 4758 |
esac |
| 4759 |
fi |
| 4760 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4761 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4762 |
esac |
| 4763 |
fi |
| 4764 |
|
| 4765 |
fi;; |
| 4766 |
esac ;; |
| 4767 |
esac |
| 4768 |
fi |
| 4769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 4770 |
printf "%s\n" "$ac_cv_type_long_long_int" >&6; } |
| 4771 |
if test $ac_cv_type_long_long_int = yes; then |
| 4772 |
|
| 4773 |
printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 4774 |
|
| 4775 |
fi |
| 4776 |
|
| 4777 |
if test "$ac_cv_type_long_long_int" = no; then |
| 4778 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4779 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4780 |
as_fn_error $? "Compiler does not support long long int |
| 4781 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4782 |
fi |
| 4783 |
|
| 4784 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 |
| 4785 |
printf %s "checking if the compiler supports trailing commas... " >&6; } |
| 4786 |
trailing_commas=no |
| 4787 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4788 |
/* end confdefs.h. */ |
| 4789 |
|
| 4790 |
int |
| 4791 |
main (void) |
| 4792 |
{ |
| 4793 |
|
| 4794 |
enum { |
| 4795 |
one, |
| 4796 |
}; |
| 4797 |
; |
| 4798 |
return 0; |
| 4799 |
} |
| 4800 |
_ACEOF |
| 4801 |
if ac_fn_c_try_compile "$LINENO" |
| 4802 |
then : |
| 4803 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4804 |
printf "%s\n" "yes" >&6; }; trailing_commas=yes |
| 4805 |
else case e in #( |
| 4806 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4807 |
printf "%s\n" "no" >&6; } ;; |
| 4808 |
esac |
| 4809 |
fi |
| 4810 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4811 |
if test "$trailing_commas" = no; then |
| 4812 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4813 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4814 |
as_fn_error $? "Compiler does not support trailing comma in enum |
| 4815 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4816 |
fi |
| 4817 |
|
| 4818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 |
| 4819 |
printf %s "checking if the compiler supports C++ comments... " >&6; } |
| 4820 |
slash_comments=no |
| 4821 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4822 |
/* end confdefs.h. */ |
| 4823 |
|
| 4824 |
int |
| 4825 |
main (void) |
| 4826 |
{ |
| 4827 |
// C++ comments? |
| 4828 |
; |
| 4829 |
return 0; |
| 4830 |
} |
| 4831 |
_ACEOF |
| 4832 |
if ac_fn_c_try_compile "$LINENO" |
| 4833 |
then : |
| 4834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4835 |
printf "%s\n" "yes" >&6; }; slash_comments=yes |
| 4836 |
else case e in #( |
| 4837 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4838 |
printf "%s\n" "no" >&6; } ;; |
| 4839 |
esac |
| 4840 |
fi |
| 4841 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4842 |
if test "$slash_comments" = no; then |
| 4843 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4844 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4845 |
as_fn_error $? "Compiler does not support C++ comments |
| 4846 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4847 |
fi |
| 4848 |
fi |
| 4849 |
|
| 4850 |
if test -n "$SOURCE_DATE_EPOCH"; then |
| 4851 |
DATE_FMT="%b %d %Y %H:%M:%S" |
| 4852 |
BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT") |
| 4853 |
printf "%s\n" "#define BUILD_DATE \"$BUILD_DATE\"" >>confdefs.h |
| 4854 |
|
| 4855 |
BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='" |
| 4856 |
|
| 4857 |
fi |
| 4858 |
|
| 4859 |
|
| 4860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 |
| 4861 |
printf %s "checking --enable-fail-if-missing argument... " >&6; } |
| 4862 |
# Check whether --enable-fail_if_missing was given. |
| 4863 |
if test ${enable_fail_if_missing+y} |
| 4864 |
then : |
| 4865 |
enableval=$enable_fail_if_missing; fail_if_missing="yes" |
| 4866 |
else case e in #( |
| 4867 |
e) fail_if_missing="no" ;; |
| 4868 |
esac |
| 4869 |
fi |
| 4870 |
|
| 4871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 |
| 4872 |
printf "%s\n" "$fail_if_missing" >&6; } |
| 4873 |
|
| 4874 |
with_x_arg="$with_x" |
| 4875 |
|
| 4876 |
if test -z "$CFLAGS"; then |
| 4877 |
CFLAGS="-O" |
| 4878 |
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations" |
| 4879 |
fi |
| 4880 |
|
| 4881 |
if test "$GCC" = yes; then |
| 4882 |
gccversion=`$CC -dumpversion` |
| 4883 |
if test "x$gccversion" = "x"; then |
| 4884 |
gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 4885 |
fi |
| 4886 |
|
| 4887 |
if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 4888 |
echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 4889 |
CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 4890 |
else |
| 4891 |
if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 4892 |
echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 4893 |
CFLAGS="$CFLAGS -fno-strength-reduce" |
| 4894 |
fi |
| 4895 |
fi |
| 4896 |
fi |
| 4897 |
|
| 4898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 |
| 4899 |
printf %s "checking for clang version... " >&6; } |
| 4900 |
CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` |
| 4901 |
if test x"$CLANG_VERSION_STRING" != x"" ; then |
| 4902 |
CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` |
| 4903 |
CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` |
| 4904 |
CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` |
| 4905 |
CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` |
| 4906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 |
| 4907 |
printf "%s\n" "$CLANG_VERSION" >&6; } |
| 4908 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 |
| 4909 |
printf %s "checking if clang supports -fno-strength-reduce... " >&6; } |
| 4910 |
if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then |
| 4911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4912 |
printf "%s\n" "no" >&6; } |
| 4913 |
CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` |
| 4914 |
else |
| 4915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4916 |
printf "%s\n" "yes" >&6; } |
| 4917 |
fi |
| 4918 |
else |
| 4919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 |
| 4920 |
printf "%s\n" "N/A" >&6; } |
| 4921 |
fi |
| 4922 |
|
| 4923 |
CROSS_COMPILING= |
| 4924 |
if test "$cross_compiling" = yes; then |
| 4925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 4926 |
printf "%s\n" "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 4927 |
CROSS_COMPILING=1 |
| 4928 |
fi |
| 4929 |
|
| 4930 |
|
| 4931 |
test "$GCC" = yes && CPP_MM=M; |
| 4932 |
|
| 4933 |
if test -f ./toolcheck; then |
| 4934 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy tools" >&5 |
| 4935 |
printf %s "checking for buggy tools... " >&6; } |
| 4936 |
sh ./toolcheck 1>&6 |
| 4937 |
fi |
| 4938 |
|
| 4939 |
OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 4940 |
|
| 4941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname" >&5 |
| 4942 |
printf %s "checking uname... " >&6; } |
| 4943 |
if test "x$vim_cv_uname_output" = "x" ; then |
| 4944 |
vim_cv_uname_output=`(uname) 2>/dev/null` |
| 4945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_output" >&5 |
| 4946 |
printf "%s\n" "$vim_cv_uname_output" >&6; } |
| 4947 |
else |
| 4948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_output (cached)" >&5 |
| 4949 |
printf "%s\n" "$vim_cv_uname_output (cached)" >&6; } |
| 4950 |
fi |
| 4951 |
|
| 4952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname -r" >&5 |
| 4953 |
printf %s "checking uname -r... " >&6; } |
| 4954 |
if test "x$vim_cv_uname_r_output" = "x" ; then |
| 4955 |
vim_cv_uname_r_output=`(uname -r) 2>/dev/null` |
| 4956 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_r_output" >&5 |
| 4957 |
printf "%s\n" "$vim_cv_uname_r_output" >&6; } |
| 4958 |
else |
| 4959 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_r_output (cached)" >&5 |
| 4960 |
printf "%s\n" "$vim_cv_uname_r_output (cached)" >&6; } |
| 4961 |
fi |
| 4962 |
|
| 4963 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname -m" >&5 |
| 4964 |
printf %s "checking uname -m... " >&6; } |
| 4965 |
if test "x$vim_cv_uname_m_output" = "x" ; then |
| 4966 |
vim_cv_uname_m_output=`(uname -m) 2>/dev/null` |
| 4967 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_m_output" >&5 |
| 4968 |
printf "%s\n" "$vim_cv_uname_m_output" >&6; } |
| 4969 |
else |
| 4970 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_m_output (cached)" >&5 |
| 4971 |
printf "%s\n" "$vim_cv_uname_m_output (cached)" >&6; } |
| 4972 |
fi |
| 4973 |
|
| 4974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5 |
| 4975 |
printf %s "checking for Haiku... " >&6; } |
| 4976 |
case $vim_cv_uname_output in |
| 4977 |
Haiku) HAIKU=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4978 |
printf "%s\n" "yes" >&6; };; |
| 4979 |
*) HAIKU=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4980 |
printf "%s\n" "no" >&6; };; |
| 4981 |
esac |
| 4982 |
|
| 4983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 |
| 4984 |
printf %s "checking for QNX... " >&6; } |
| 4985 |
case $vim_cv_uname_output in |
| 4986 |
QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 4987 |
test -z "$with_x" && with_x=no |
| 4988 |
QNX=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4989 |
printf "%s\n" "yes" >&6; };; |
| 4990 |
*) QNX=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4991 |
printf "%s\n" "no" >&6; };; |
| 4992 |
esac |
| 4993 |
|
| 4994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 |
| 4995 |
printf %s "checking for Darwin (Mac OS X)... " >&6; } |
| 4996 |
if test "$vim_cv_uname_output" = Darwin; then |
| 4997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4998 |
printf "%s\n" "yes" >&6; } |
| 4999 |
MACOS_X=yes |
| 5000 |
CPPFLAGS="$CPPFLAGS -DMACOS_X" |
| 5001 |
|
| 5002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 |
| 5003 |
printf %s "checking --disable-darwin argument... " >&6; } |
| 5004 |
# Check whether --enable-darwin was given. |
| 5005 |
if test ${enable_darwin+y} |
| 5006 |
then : |
| 5007 |
enableval=$enable_darwin; |
| 5008 |
else case e in #( |
| 5009 |
e) enable_darwin="yes" ;; |
| 5010 |
esac |
| 5011 |
fi |
| 5012 |
|
| 5013 |
if test "$enable_darwin" = "yes"; then |
| 5014 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5015 |
printf "%s\n" "no" >&6; } |
| 5016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 |
| 5017 |
printf %s "checking if Darwin files are there... " >&6; } |
| 5018 |
if test -f os_macosx.m; then |
| 5019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5020 |
printf "%s\n" "yes" >&6; } |
| 5021 |
else |
| 5022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 |
| 5023 |
printf "%s\n" "no, Darwin support disabled" >&6; } |
| 5024 |
enable_darwin=no |
| 5025 |
fi |
| 5026 |
else |
| 5027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 |
| 5028 |
printf "%s\n" "yes, Darwin support excluded" >&6; } |
| 5029 |
fi |
| 5030 |
|
| 5031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 |
| 5032 |
printf %s "checking --with-mac-arch argument... " >&6; } |
| 5033 |
|
| 5034 |
# Check whether --with-mac-arch was given. |
| 5035 |
if test ${with_mac_arch+y} |
| 5036 |
then : |
| 5037 |
withval=$with_mac_arch; MACARCH="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 |
| 5038 |
printf "%s\n" "$MACARCH" >&6; } |
| 5039 |
else case e in #( |
| 5040 |
e) MACARCH="current"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 |
| 5041 |
printf "%s\n" "defaulting to $MACARCH" >&6; } ;; |
| 5042 |
esac |
| 5043 |
fi |
| 5044 |
|
| 5045 |
|
| 5046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 |
| 5047 |
printf %s "checking --with-developer-dir argument... " >&6; } |
| 5048 |
|
| 5049 |
# Check whether --with-developer-dir was given. |
| 5050 |
if test ${with_developer_dir+y} |
| 5051 |
then : |
| 5052 |
withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 |
| 5053 |
printf "%s\n" "$DEVELOPER_DIR" >&6; } |
| 5054 |
else case e in #( |
| 5055 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present" >&5 |
| 5056 |
printf "%s\n" "not present" >&6; } ;; |
| 5057 |
esac |
| 5058 |
fi |
| 5059 |
|
| 5060 |
|
| 5061 |
if test "x$DEVELOPER_DIR" = "x"; then |
| 5062 |
# Extract the first word of "xcode-select", so it can be a program name with args. |
| 5063 |
set dummy xcode-select; ac_word=$2 |
| 5064 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5065 |
printf %s "checking for $ac_word... " >&6; } |
| 5066 |
if test ${ac_cv_path_XCODE_SELECT+y} |
| 5067 |
then : |
| 5068 |
printf %s "(cached) " >&6 |
| 5069 |
else case e in #( |
| 5070 |
e) case $XCODE_SELECT in |
| 5071 |
[\\/]* | ?:[\\/]*) |
| 5072 |
ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. |
| 5073 |
;; |
| 5074 |
*) |
| 5075 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5076 |
for as_dir in $PATH |
| 5077 |
do |
| 5078 |
IFS=$as_save_IFS |
| 5079 |
case $as_dir in #((( |
| 5080 |
'') as_dir=./ ;; |
| 5081 |
*/) ;; |
| 5082 |
*) as_dir=$as_dir/ ;; |
| 5083 |
esac |
| 5084 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5085 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5086 |
ac_cv_path_XCODE_SELECT="$as_dir$ac_word$ac_exec_ext" |
| 5087 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5088 |
break 2 |
| 5089 |
fi |
| 5090 |
done |
| 5091 |
done |
| 5092 |
IFS=$as_save_IFS |
| 5093 |
|
| 5094 |
;; |
| 5095 |
esac ;; |
| 5096 |
esac |
| 5097 |
fi |
| 5098 |
XCODE_SELECT=$ac_cv_path_XCODE_SELECT |
| 5099 |
if test -n "$XCODE_SELECT"; then |
| 5100 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 |
| 5101 |
printf "%s\n" "$XCODE_SELECT" >&6; } |
| 5102 |
else |
| 5103 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5104 |
printf "%s\n" "no" >&6; } |
| 5105 |
fi |
| 5106 |
|
| 5107 |
|
| 5108 |
if test "x$XCODE_SELECT" != "x"; then |
| 5109 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 |
| 5110 |
printf %s "checking for developer dir using xcode-select... " >&6; } |
| 5111 |
DEVELOPER_DIR=`$XCODE_SELECT -print-path` |
| 5112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 |
| 5113 |
printf "%s\n" "$DEVELOPER_DIR" >&6; } |
| 5114 |
else |
| 5115 |
DEVELOPER_DIR=/Developer |
| 5116 |
fi |
| 5117 |
fi |
| 5118 |
|
| 5119 |
if test "x$MACARCH" = "xboth"; then |
| 5120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 |
| 5121 |
printf %s "checking for 10.4 universal SDK... " >&6; } |
| 5122 |
save_cppflags="$CPPFLAGS" |
| 5123 |
save_cflags="$CFLAGS" |
| 5124 |
save_ldflags="$LDFLAGS" |
| 5125 |
CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 5126 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5127 |
/* end confdefs.h. */ |
| 5128 |
|
| 5129 |
int |
| 5130 |
main (void) |
| 5131 |
{ |
| 5132 |
|
| 5133 |
; |
| 5134 |
return 0; |
| 5135 |
} |
| 5136 |
_ACEOF |
| 5137 |
if ac_fn_c_try_link "$LINENO" |
| 5138 |
then : |
| 5139 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 5140 |
printf "%s\n" "found" >&6; } |
| 5141 |
else case e in #( |
| 5142 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 5143 |
printf "%s\n" "not found" >&6; } |
| 5144 |
CFLAGS="$save_cflags" |
| 5145 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 |
| 5146 |
printf %s "checking if Intel architecture is supported... " >&6; } |
| 5147 |
CPPFLAGS="$CPPFLAGS -arch i386" |
| 5148 |
LDFLAGS="$save_ldflags -arch i386" |
| 5149 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5150 |
/* end confdefs.h. */ |
| 5151 |
|
| 5152 |
int |
| 5153 |
main (void) |
| 5154 |
{ |
| 5155 |
|
| 5156 |
; |
| 5157 |
return 0; |
| 5158 |
} |
| 5159 |
_ACEOF |
| 5160 |
if ac_fn_c_try_link "$LINENO" |
| 5161 |
then : |
| 5162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5163 |
printf "%s\n" "yes" >&6; }; MACARCH="intel" |
| 5164 |
else case e in #( |
| 5165 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5166 |
printf "%s\n" "no" >&6; } |
| 5167 |
MACARCH="ppc" |
| 5168 |
CPPFLAGS="$save_cppflags -arch ppc" |
| 5169 |
LDFLAGS="$save_ldflags -arch ppc" ;; |
| 5170 |
esac |
| 5171 |
fi |
| 5172 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5173 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 5174 |
esac |
| 5175 |
fi |
| 5176 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5177 |
conftest$ac_exeext conftest.$ac_ext |
| 5178 |
elif test "x$MACARCH" = "xintel"; then |
| 5179 |
CPPFLAGS="$CPPFLAGS -arch intel" |
| 5180 |
LDFLAGS="$LDFLAGS -arch intel" |
| 5181 |
elif test "x$MACARCH" = "xppc"; then |
| 5182 |
CPPFLAGS="$CPPFLAGS -arch ppc" |
| 5183 |
LDFLAGS="$LDFLAGS -arch ppc" |
| 5184 |
fi |
| 5185 |
|
| 5186 |
if test "$enable_darwin" = "yes"; then |
| 5187 |
MACOS_X_DARWIN=yes |
| 5188 |
OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; |
| 5189 |
OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 5190 |
printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
| 5191 |
|
| 5192 |
CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" |
| 5193 |
|
| 5194 |
if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3 -a "X$enable_gui" != Xgtk4; then |
| 5195 |
with_x=no |
| 5196 |
fi |
| 5197 |
fi |
| 5198 |
else |
| 5199 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5200 |
printf "%s\n" "no" >&6; } |
| 5201 |
fi |
| 5202 |
|
| 5203 |
ac_header= ac_cache= |
| 5204 |
for ac_item in $ac_header_c_list |
| 5205 |
do |
| 5206 |
if test $ac_cache; then |
| 5207 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5208 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5209 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5210 |
fi |
| 5211 |
ac_header= ac_cache= |
| 5212 |
elif test $ac_header; then |
| 5213 |
ac_cache=$ac_item |
| 5214 |
else |
| 5215 |
ac_header=$ac_item |
| 5216 |
fi |
| 5217 |
done |
| 5218 |
|
| 5219 |
|
| 5220 |
|
| 5221 |
|
| 5222 |
|
| 5223 |
|
| 5224 |
|
| 5225 |
|
| 5226 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5227 |
then : |
| 5228 |
|
| 5229 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5230 |
|
| 5231 |
fi |
| 5232 |
ac_fn_c_check_header_compile "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" |
| 5233 |
if test "x$ac_cv_header_AvailabilityMacros_h" = xyes |
| 5234 |
then : |
| 5235 |
printf "%s\n" "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h |
| 5236 |
|
| 5237 |
fi |
| 5238 |
|
| 5239 |
# 10.5 and earlier lack dispatch |
| 5240 |
ac_fn_c_check_header_compile "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" |
| 5241 |
if test "x$ac_cv_header_dispatch_dispatch_h" = xyes |
| 5242 |
then : |
| 5243 |
printf "%s\n" "#define HAVE_DISPATCH_DISPATCH_H 1" >>confdefs.h |
| 5244 |
|
| 5245 |
fi |
| 5246 |
|
| 5247 |
|
| 5248 |
|
| 5249 |
|
| 5250 |
|
| 5251 |
if test "$cross_compiling" = no; then |
| 5252 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 |
| 5253 |
printf %s "checking --with-local-dir argument... " >&6; } |
| 5254 |
have_local_include='' |
| 5255 |
have_local_lib='' |
| 5256 |
|
| 5257 |
# Check whether --with-local-dir was given. |
| 5258 |
if test ${with_local_dir+y} |
| 5259 |
then : |
| 5260 |
withval=$with_local_dir; |
| 5261 |
local_dir="$withval" |
| 5262 |
case "$withval" in |
| 5263 |
*/*) ;; |
| 5264 |
no) |
| 5265 |
# avoid adding local dir to LDFLAGS and CPPFLAGS |
| 5266 |
have_local_include=yes |
| 5267 |
have_local_lib=yes |
| 5268 |
;; |
| 5269 |
*) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; |
| 5270 |
esac |
| 5271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 |
| 5272 |
printf "%s\n" "$local_dir" >&6; } |
| 5273 |
|
| 5274 |
else case e in #( |
| 5275 |
e) |
| 5276 |
local_dir=/usr/local |
| 5277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 |
| 5278 |
printf "%s\n" "Defaulting to $local_dir" >&6; } |
| 5279 |
;; |
| 5280 |
esac |
| 5281 |
fi |
| 5282 |
|
| 5283 |
if test "$GCC" = yes -a "$local_dir" != no; then |
| 5284 |
echo 'void f(){}' > conftest.c |
| 5285 |
have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
| 5286 |
have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` |
| 5287 |
rm -f conftest.c conftest.o |
| 5288 |
fi |
| 5289 |
if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 5290 |
tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` |
| 5291 |
if test "$tt" = "$LDFLAGS"; then |
| 5292 |
LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
| 5293 |
fi |
| 5294 |
fi |
| 5295 |
if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 5296 |
tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` |
| 5297 |
if test "$tt" = "$CPPFLAGS"; then |
| 5298 |
CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
| 5299 |
fi |
| 5300 |
fi |
| 5301 |
fi |
| 5302 |
|
| 5303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 |
| 5304 |
printf %s "checking --with-vim-name argument... " >&6; } |
| 5305 |
|
| 5306 |
# Check whether --with-vim-name was given. |
| 5307 |
if test ${with_vim_name+y} |
| 5308 |
then : |
| 5309 |
withval=$with_vim_name; VIMNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 |
| 5310 |
printf "%s\n" "$VIMNAME" >&6; } |
| 5311 |
else case e in #( |
| 5312 |
e) VIMNAME="vim"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 |
| 5313 |
printf "%s\n" "Defaulting to $VIMNAME" >&6; } ;; |
| 5314 |
esac |
| 5315 |
fi |
| 5316 |
|
| 5317 |
|
| 5318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 |
| 5319 |
printf %s "checking --with-ex-name argument... " >&6; } |
| 5320 |
|
| 5321 |
# Check whether --with-ex-name was given. |
| 5322 |
if test ${with_ex_name+y} |
| 5323 |
then : |
| 5324 |
withval=$with_ex_name; EXNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 |
| 5325 |
printf "%s\n" "$EXNAME" >&6; } |
| 5326 |
else case e in #( |
| 5327 |
e) EXNAME="ex"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 |
| 5328 |
printf "%s\n" "Defaulting to ex" >&6; } ;; |
| 5329 |
esac |
| 5330 |
fi |
| 5331 |
|
| 5332 |
|
| 5333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 |
| 5334 |
printf %s "checking --with-view-name argument... " >&6; } |
| 5335 |
|
| 5336 |
# Check whether --with-view-name was given. |
| 5337 |
if test ${with_view_name+y} |
| 5338 |
then : |
| 5339 |
withval=$with_view_name; VIEWNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 |
| 5340 |
printf "%s\n" "$VIEWNAME" >&6; } |
| 5341 |
else case e in #( |
| 5342 |
e) VIEWNAME="view"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 |
| 5343 |
printf "%s\n" "Defaulting to view" >&6; } ;; |
| 5344 |
esac |
| 5345 |
fi |
| 5346 |
|
| 5347 |
|
| 5348 |
|
| 5349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 |
| 5350 |
printf %s "checking --with-global-runtime argument... " >&6; } |
| 5351 |
|
| 5352 |
# Check whether --with-global-runtime was given. |
| 5353 |
if test ${with_global_runtime+y} |
| 5354 |
then : |
| 5355 |
withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5356 |
printf "%s\n" "$withval" >&6; } |
| 5357 |
else case e in #( |
| 5358 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5359 |
printf "%s\n" "no" >&6; } ;; |
| 5360 |
esac |
| 5361 |
fi |
| 5362 |
|
| 5363 |
|
| 5364 |
if test "X$RUNTIME_GLOBAL" != "X"; then |
| 5365 |
RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') |
| 5366 |
printf "%s\n" "#define RUNTIME_GLOBAL \"$RUNTIME_GLOBAL\"" >>confdefs.h |
| 5367 |
|
| 5368 |
printf "%s\n" "#define RUNTIME_GLOBAL_AFTER \"$RUNTIME_GLOBAL_AFTER\"" >>confdefs.h |
| 5369 |
|
| 5370 |
fi |
| 5371 |
|
| 5372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 |
| 5373 |
printf %s "checking --with-modified-by argument... " >&6; } |
| 5374 |
|
| 5375 |
# Check whether --with-modified-by was given. |
| 5376 |
if test ${with_modified_by+y} |
| 5377 |
then : |
| 5378 |
withval=$with_modified_by; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5379 |
printf "%s\n" "$withval" >&6; }; printf "%s\n" "#define MODIFIED_BY \"$withval\"" >>confdefs.h |
| 5380 |
|
| 5381 |
else case e in #( |
| 5382 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5383 |
printf "%s\n" "no" >&6; } ;; |
| 5384 |
esac |
| 5385 |
fi |
| 5386 |
|
| 5387 |
|
| 5388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 |
| 5389 |
printf %s "checking if character set is EBCDIC... " >&6; } |
| 5390 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5391 |
/* end confdefs.h. */ |
| 5392 |
|
| 5393 |
int |
| 5394 |
main (void) |
| 5395 |
{ |
| 5396 |
/* TryCompile function for CharSet. |
| 5397 |
Treat any failure as ASCII for compatibility with existing art. |
| 5398 |
Use compile-time rather than run-time tests for cross-compiler |
| 5399 |
tolerance. */ |
| 5400 |
#if '0'!=240 |
| 5401 |
make an error "Character set is not EBCDIC" |
| 5402 |
#endif |
| 5403 |
; |
| 5404 |
return 0; |
| 5405 |
} |
| 5406 |
_ACEOF |
| 5407 |
if ac_fn_c_try_compile "$LINENO" |
| 5408 |
then : |
| 5409 |
# TryCompile action if true |
| 5410 |
cf_cv_ebcdic=yes |
| 5411 |
else case e in #( |
| 5412 |
e) # TryCompile action if false |
| 5413 |
cf_cv_ebcdic=no ;; |
| 5414 |
esac |
| 5415 |
fi |
| 5416 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5417 |
# end of TryCompile ]) |
| 5418 |
# end of CacheVal CvEbcdic |
| 5419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 |
| 5420 |
printf "%s\n" "$cf_cv_ebcdic" >&6; } |
| 5421 |
case "$cf_cv_ebcdic" in #(vi |
| 5422 |
yes) printf "%s\n" "#define EBCDIC 1" >>confdefs.h |
| 5423 |
|
| 5424 |
line_break='"\\n"' |
| 5425 |
;; |
| 5426 |
*) line_break='"\\012"';; |
| 5427 |
esac |
| 5428 |
|
| 5429 |
|
| 5430 |
if test "$cf_cv_ebcdic" = "yes"; then |
| 5431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 |
| 5432 |
printf %s "checking for z/OS Unix... " >&6; } |
| 5433 |
case $vim_cv_uname_output in |
| 5434 |
OS/390) zOSUnix="yes"; |
| 5435 |
if test "$CC" = "cc"; then |
| 5436 |
ccm="$_CC_CCMODE" |
| 5437 |
ccn="CC" |
| 5438 |
else |
| 5439 |
if test "$CC" = "c89"; then |
| 5440 |
ccm="$_CC_C89MODE" |
| 5441 |
ccn="C89" |
| 5442 |
else |
| 5443 |
ccm=1 |
| 5444 |
fi |
| 5445 |
fi |
| 5446 |
if test "$ccm" != "1"; then |
| 5447 |
echo "" |
| 5448 |
echo "------------------------------------------" |
| 5449 |
echo " On z/OS Unix, the environment variable" |
| 5450 |
echo " _CC_${ccn}MODE must be set to \"1\"!" |
| 5451 |
echo " Do:" |
| 5452 |
echo " export _CC_${ccn}MODE=1" |
| 5453 |
echo " and then call configure again." |
| 5454 |
echo "------------------------------------------" |
| 5455 |
exit 1 |
| 5456 |
fi |
| 5457 |
# Set CFLAGS for configure process. |
| 5458 |
# This will be reset later for config.mk. |
| 5459 |
# Use haltonmsg to force error for missing H files. |
| 5460 |
CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; |
| 5461 |
LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
| 5462 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5463 |
printf "%s\n" "yes" >&6; } |
| 5464 |
;; |
| 5465 |
*) zOSUnix="no"; |
| 5466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5467 |
printf "%s\n" "no" >&6; } |
| 5468 |
;; |
| 5469 |
esac |
| 5470 |
fi |
| 5471 |
|
| 5472 |
if test "$zOSUnix" = "yes"; then |
| 5473 |
QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/' -e 's/ */ /g'" |
| 5474 |
else |
| 5475 |
QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/' -e 's/ */ /g'" |
| 5476 |
fi |
| 5477 |
|
| 5478 |
|
| 5479 |
|
| 5480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 |
| 5481 |
printf %s "checking --disable-smack argument... " >&6; } |
| 5482 |
# Check whether --enable-smack was given. |
| 5483 |
if test ${enable_smack+y} |
| 5484 |
then : |
| 5485 |
enableval=$enable_smack; |
| 5486 |
else case e in #( |
| 5487 |
e) enable_smack="yes" ;; |
| 5488 |
esac |
| 5489 |
fi |
| 5490 |
|
| 5491 |
if test "$enable_smack" = "yes"; then |
| 5492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5493 |
printf "%s\n" "no" >&6; } |
| 5494 |
ac_fn_c_check_header_compile "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" |
| 5495 |
if test "x$ac_cv_header_linux_xattr_h" = xyes |
| 5496 |
then : |
| 5497 |
true |
| 5498 |
else case e in #( |
| 5499 |
e) enable_smack="no" ;; |
| 5500 |
esac |
| 5501 |
fi |
| 5502 |
|
| 5503 |
else |
| 5504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5505 |
printf "%s\n" "yes" >&6; } |
| 5506 |
fi |
| 5507 |
if test "$enable_smack" = "yes"; then |
| 5508 |
ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 5509 |
if test "x$ac_cv_header_sys_xattr_h" = xyes |
| 5510 |
then : |
| 5511 |
true |
| 5512 |
else case e in #( |
| 5513 |
e) enable_smack="no" ;; |
| 5514 |
esac |
| 5515 |
fi |
| 5516 |
|
| 5517 |
fi |
| 5518 |
if test "$enable_smack" = "yes"; then |
| 5519 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 |
| 5520 |
printf %s "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } |
| 5521 |
|
| 5522 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 5523 |
printf %s "checking for egrep -e... " >&6; } |
| 5524 |
if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 5525 |
then : |
| 5526 |
printf %s "(cached) " >&6 |
| 5527 |
else case e in #( |
| 5528 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 5529 |
ac_path_EGREP_TRADITIONAL_found=false |
| 5530 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5531 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5532 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5533 |
do |
| 5534 |
IFS=$as_save_IFS |
| 5535 |
case $as_dir in #((( |
| 5536 |
'') as_dir=./ ;; |
| 5537 |
*/) ;; |
| 5538 |
*) as_dir=$as_dir/ ;; |
| 5539 |
esac |
| 5540 |
for ac_prog in grep ggrep |
| 5541 |
do |
| 5542 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5543 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 5544 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 5545 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 5546 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 5547 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 5548 |
*GNU*) |
| 5549 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 5550 |
#( |
| 5551 |
*) |
| 5552 |
ac_count=0 |
| 5553 |
printf %s 0123456789 >"conftest.in" |
| 5554 |
while : |
| 5555 |
do |
| 5556 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5557 |
mv "conftest.tmp" "conftest.in" |
| 5558 |
cp "conftest.in" "conftest.nl" |
| 5559 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 5560 |
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5561 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5562 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5563 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 5564 |
# Best one so far, save it but keep looking for a better one |
| 5565 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 5566 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 5567 |
fi |
| 5568 |
# 10*(2^10) chars as input seems more than enough |
| 5569 |
test $ac_count -gt 10 && break |
| 5570 |
done |
| 5571 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5572 |
esac |
| 5573 |
|
| 5574 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 5575 |
done |
| 5576 |
done |
| 5577 |
done |
| 5578 |
IFS=$as_save_IFS |
| 5579 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 5580 |
: |
| 5581 |
fi |
| 5582 |
else |
| 5583 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 5584 |
fi |
| 5585 |
|
| 5586 |
if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 5587 |
then : |
| 5588 |
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 5589 |
else case e in #( |
| 5590 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 5591 |
ac_path_EGREP_TRADITIONAL_found=false |
| 5592 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5593 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5594 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5595 |
do |
| 5596 |
IFS=$as_save_IFS |
| 5597 |
case $as_dir in #((( |
| 5598 |
'') as_dir=./ ;; |
| 5599 |
*/) ;; |
| 5600 |
*) as_dir=$as_dir/ ;; |
| 5601 |
esac |
| 5602 |
for ac_prog in egrep |
| 5603 |
do |
| 5604 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5605 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 5606 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 5607 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 5608 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 5609 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 5610 |
*GNU*) |
| 5611 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 5612 |
#( |
| 5613 |
*) |
| 5614 |
ac_count=0 |
| 5615 |
printf %s 0123456789 >"conftest.in" |
| 5616 |
while : |
| 5617 |
do |
| 5618 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5619 |
mv "conftest.tmp" "conftest.in" |
| 5620 |
cp "conftest.in" "conftest.nl" |
| 5621 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 5622 |
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5623 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5624 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5625 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 5626 |
# Best one so far, save it but keep looking for a better one |
| 5627 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 5628 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 5629 |
fi |
| 5630 |
# 10*(2^10) chars as input seems more than enough |
| 5631 |
test $ac_count -gt 10 && break |
| 5632 |
done |
| 5633 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5634 |
esac |
| 5635 |
|
| 5636 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 5637 |
done |
| 5638 |
done |
| 5639 |
done |
| 5640 |
IFS=$as_save_IFS |
| 5641 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 5642 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5643 |
fi |
| 5644 |
else |
| 5645 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 5646 |
fi |
| 5647 |
;; |
| 5648 |
esac |
| 5649 |
fi ;; |
| 5650 |
esac |
| 5651 |
fi |
| 5652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 5653 |
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 5654 |
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 5655 |
|
| 5656 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5657 |
/* end confdefs.h. */ |
| 5658 |
#include <linux/xattr.h> |
| 5659 |
_ACEOF |
| 5660 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5661 |
$EGREP_TRADITIONAL "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1 |
| 5662 |
then : |
| 5663 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5664 |
printf "%s\n" "yes" >&6; } |
| 5665 |
else case e in #( |
| 5666 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5667 |
printf "%s\n" "no" >&6; }; enable_smack="no" ;; |
| 5668 |
esac |
| 5669 |
fi |
| 5670 |
rm -rf conftest* |
| 5671 |
|
| 5672 |
fi |
| 5673 |
if test "$enable_smack" = "yes"; then |
| 5674 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 |
| 5675 |
printf %s "checking for setxattr in -lattr... " >&6; } |
| 5676 |
if test ${ac_cv_lib_attr_setxattr+y} |
| 5677 |
then : |
| 5678 |
printf %s "(cached) " >&6 |
| 5679 |
else case e in #( |
| 5680 |
e) ac_check_lib_save_LIBS=$LIBS |
| 5681 |
LIBS="-lattr $LIBS" |
| 5682 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5683 |
/* end confdefs.h. */ |
| 5684 |
|
| 5685 |
/* Override any GCC internal prototype to avoid an error. |
| 5686 |
Use char because int might match the return type of a GCC |
| 5687 |
builtin and then its argument prototype would still apply. |
| 5688 |
The 'extern "C"' is for builds by C++ compilers; |
| 5689 |
although this is not generally supported in C code supporting it here |
| 5690 |
has little cost and some practical benefit (sr 110532). */ |
| 5691 |
#ifdef __cplusplus |
| 5692 |
extern "C" |
| 5693 |
#endif |
| 5694 |
char setxattr (void); |
| 5695 |
int |
| 5696 |
main (void) |
| 5697 |
{ |
| 5698 |
return setxattr (); |
| 5699 |
; |
| 5700 |
return 0; |
| 5701 |
} |
| 5702 |
_ACEOF |
| 5703 |
if ac_fn_c_try_link "$LINENO" |
| 5704 |
then : |
| 5705 |
ac_cv_lib_attr_setxattr=yes |
| 5706 |
else case e in #( |
| 5707 |
e) ac_cv_lib_attr_setxattr=no ;; |
| 5708 |
esac |
| 5709 |
fi |
| 5710 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5711 |
conftest$ac_exeext conftest.$ac_ext |
| 5712 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 5713 |
esac |
| 5714 |
fi |
| 5715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 |
| 5716 |
printf "%s\n" "$ac_cv_lib_attr_setxattr" >&6; } |
| 5717 |
if test "x$ac_cv_lib_attr_setxattr" = xyes |
| 5718 |
then : |
| 5719 |
LIBS="$LIBS -lattr" |
| 5720 |
found_smack="yes" |
| 5721 |
printf "%s\n" "#define HAVE_SMACK 1" >>confdefs.h |
| 5722 |
|
| 5723 |
fi |
| 5724 |
|
| 5725 |
fi |
| 5726 |
|
| 5727 |
if test "x$found_smack" = "x"; then |
| 5728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 |
| 5729 |
printf %s "checking --disable-selinux argument... " >&6; } |
| 5730 |
# Check whether --enable-selinux was given. |
| 5731 |
if test ${enable_selinux+y} |
| 5732 |
then : |
| 5733 |
enableval=$enable_selinux; |
| 5734 |
else case e in #( |
| 5735 |
e) enable_selinux="yes" ;; |
| 5736 |
esac |
| 5737 |
fi |
| 5738 |
|
| 5739 |
if test "$enable_selinux" = "yes"; then |
| 5740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5741 |
printf "%s\n" "no" >&6; } |
| 5742 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
| 5743 |
printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } |
| 5744 |
if test ${ac_cv_lib_selinux_is_selinux_enabled+y} |
| 5745 |
then : |
| 5746 |
printf %s "(cached) " >&6 |
| 5747 |
else case e in #( |
| 5748 |
e) ac_check_lib_save_LIBS=$LIBS |
| 5749 |
LIBS="-lselinux $LIBS" |
| 5750 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5751 |
/* end confdefs.h. */ |
| 5752 |
|
| 5753 |
/* Override any GCC internal prototype to avoid an error. |
| 5754 |
Use char because int might match the return type of a GCC |
| 5755 |
builtin and then its argument prototype would still apply. |
| 5756 |
The 'extern "C"' is for builds by C++ compilers; |
| 5757 |
although this is not generally supported in C code supporting it here |
| 5758 |
has little cost and some practical benefit (sr 110532). */ |
| 5759 |
#ifdef __cplusplus |
| 5760 |
extern "C" |
| 5761 |
#endif |
| 5762 |
char is_selinux_enabled (void); |
| 5763 |
int |
| 5764 |
main (void) |
| 5765 |
{ |
| 5766 |
return is_selinux_enabled (); |
| 5767 |
; |
| 5768 |
return 0; |
| 5769 |
} |
| 5770 |
_ACEOF |
| 5771 |
if ac_fn_c_try_link "$LINENO" |
| 5772 |
then : |
| 5773 |
ac_cv_lib_selinux_is_selinux_enabled=yes |
| 5774 |
else case e in #( |
| 5775 |
e) ac_cv_lib_selinux_is_selinux_enabled=no ;; |
| 5776 |
esac |
| 5777 |
fi |
| 5778 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5779 |
conftest$ac_exeext conftest.$ac_ext |
| 5780 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 5781 |
esac |
| 5782 |
fi |
| 5783 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 5784 |
printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
| 5785 |
if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes |
| 5786 |
then : |
| 5787 |
ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
| 5788 |
if test "x$ac_cv_header_selinux_selinux_h" = xyes |
| 5789 |
then : |
| 5790 |
LIBS="$LIBS -lselinux" |
| 5791 |
printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
| 5792 |
|
| 5793 |
fi |
| 5794 |
|
| 5795 |
fi |
| 5796 |
|
| 5797 |
else |
| 5798 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5799 |
printf "%s\n" "yes" >&6; } |
| 5800 |
fi |
| 5801 |
fi |
| 5802 |
|
| 5803 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-xattr argument" >&5 |
| 5804 |
printf %s "checking --enable-xattr argument... " >&6; } |
| 5805 |
# Check whether --enable-xattr was given. |
| 5806 |
if test ${enable_xattr+y} |
| 5807 |
then : |
| 5808 |
enableval=$enable_xattr; |
| 5809 |
else case e in #( |
| 5810 |
e) enable_xattr="yes" ;; |
| 5811 |
esac |
| 5812 |
fi |
| 5813 |
|
| 5814 |
if test "$enable_xattr" = "yes"; then |
| 5815 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5816 |
printf "%s\n" "yes" >&6; } |
| 5817 |
ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 5818 |
if test "x$ac_cv_header_sys_xattr_h" = xyes |
| 5819 |
then : |
| 5820 |
printf "%s\n" "#define HAVE_XATTR 1" >>confdefs.h |
| 5821 |
|
| 5822 |
fi |
| 5823 |
|
| 5824 |
else |
| 5825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5826 |
printf "%s\n" "no" >&6; } |
| 5827 |
fi |
| 5828 |
|
| 5829 |
|
| 5830 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 |
| 5831 |
printf %s "checking --with-features argument... " >&6; } |
| 5832 |
|
| 5833 |
# Check whether --with-features was given. |
| 5834 |
if test ${with_features+y} |
| 5835 |
then : |
| 5836 |
withval=$with_features; features="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $features" >&5 |
| 5837 |
printf "%s\n" "$features" >&6; } |
| 5838 |
else case e in #( |
| 5839 |
e) features="huge"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 |
| 5840 |
printf "%s\n" "Defaulting to huge" >&6; } ;; |
| 5841 |
esac |
| 5842 |
fi |
| 5843 |
|
| 5844 |
|
| 5845 |
case "$features" in |
| 5846 |
small) features="tiny" ;; |
| 5847 |
big) features="normal" ;; |
| 5848 |
esac |
| 5849 |
|
| 5850 |
dovimdiff="" |
| 5851 |
dogvimdiff="" |
| 5852 |
case "$features" in |
| 5853 |
tiny) printf "%s\n" "#define FEAT_TINY 1" >>confdefs.h |
| 5854 |
;; |
| 5855 |
normal) printf "%s\n" "#define FEAT_NORMAL 1" >>confdefs.h |
| 5856 |
dovimdiff="installvimdiff"; |
| 5857 |
dogvimdiff="installgvimdiff" ;; |
| 5858 |
huge) printf "%s\n" "#define FEAT_HUGE 1" >>confdefs.h |
| 5859 |
dovimdiff="installvimdiff"; |
| 5860 |
dogvimdiff="installgvimdiff" ;; |
| 5861 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 |
| 5862 |
printf "%s\n" "Sorry, $features is not supported" >&6; } ;; |
| 5863 |
esac |
| 5864 |
|
| 5865 |
|
| 5866 |
|
| 5867 |
|
| 5868 |
if test "x$features" = "xtiny"; then |
| 5869 |
has_eval=no |
| 5870 |
else |
| 5871 |
has_eval=yes |
| 5872 |
fi |
| 5873 |
|
| 5874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 |
| 5875 |
printf %s "checking --with-compiledby argument... " >&6; } |
| 5876 |
|
| 5877 |
# Check whether --with-compiledby was given. |
| 5878 |
if test ${with_compiledby+y} |
| 5879 |
then : |
| 5880 |
withval=$with_compiledby; compiledby="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5881 |
printf "%s\n" "$withval" >&6; } |
| 5882 |
else case e in #( |
| 5883 |
e) compiledby=""; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5884 |
printf "%s\n" "no" >&6; } ;; |
| 5885 |
esac |
| 5886 |
fi |
| 5887 |
|
| 5888 |
|
| 5889 |
|
| 5890 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 |
| 5891 |
printf %s "checking --disable-xsmp argument... " >&6; } |
| 5892 |
# Check whether --enable-xsmp was given. |
| 5893 |
if test ${enable_xsmp+y} |
| 5894 |
then : |
| 5895 |
enableval=$enable_xsmp; |
| 5896 |
else case e in #( |
| 5897 |
e) enable_xsmp="yes" ;; |
| 5898 |
esac |
| 5899 |
fi |
| 5900 |
|
| 5901 |
|
| 5902 |
if test "$enable_xsmp" = "yes"; then |
| 5903 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5904 |
printf "%s\n" "no" >&6; } |
| 5905 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 |
| 5906 |
printf %s "checking --disable-xsmp-interact argument... " >&6; } |
| 5907 |
# Check whether --enable-xsmp-interact was given. |
| 5908 |
if test ${enable_xsmp_interact+y} |
| 5909 |
then : |
| 5910 |
enableval=$enable_xsmp_interact; |
| 5911 |
else case e in #( |
| 5912 |
e) enable_xsmp_interact="yes" ;; |
| 5913 |
esac |
| 5914 |
fi |
| 5915 |
|
| 5916 |
if test "$enable_xsmp_interact" = "yes"; then |
| 5917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5918 |
printf "%s\n" "no" >&6; } |
| 5919 |
printf "%s\n" "#define USE_XSMP_INTERACT 1" >>confdefs.h |
| 5920 |
|
| 5921 |
else |
| 5922 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5923 |
printf "%s\n" "yes" >&6; } |
| 5924 |
fi |
| 5925 |
else |
| 5926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5927 |
printf "%s\n" "yes" >&6; } |
| 5928 |
fi |
| 5929 |
|
| 5930 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff feature" >&5 |
| 5931 |
printf %s "checking diff feature... " >&6; } |
| 5932 |
if test "x$features" = "xtiny"; then |
| 5933 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled in $features version" >&5 |
| 5934 |
printf "%s\n" "disabled in $features version" >&6; } |
| 5935 |
else |
| 5936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 |
| 5937 |
printf "%s\n" "enabled" >&6; } |
| 5938 |
printf "%s\n" "#define FEAT_DIFF 1" >>confdefs.h |
| 5939 |
|
| 5940 |
XDIFF_OBJS_USED="\$(XDIFF_OBJS)" |
| 5941 |
|
| 5942 |
fi |
| 5943 |
|
| 5944 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 |
| 5945 |
printf %s "checking --enable-luainterp argument... " >&6; } |
| 5946 |
# Check whether --enable-luainterp was given. |
| 5947 |
if test ${enable_luainterp+y} |
| 5948 |
then : |
| 5949 |
enableval=$enable_luainterp; |
| 5950 |
else case e in #( |
| 5951 |
e) enable_luainterp="no" ;; |
| 5952 |
esac |
| 5953 |
fi |
| 5954 |
|
| 5955 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 |
| 5956 |
printf "%s\n" "$enable_luainterp" >&6; } |
| 5957 |
|
| 5958 |
if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then |
| 5959 |
if test "$has_eval" = "no"; then |
| 5960 |
as_fn_error $? "cannot use Lua with tiny features" "$LINENO" 5 |
| 5961 |
fi |
| 5962 |
|
| 5963 |
|
| 5964 |
|
| 5965 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 |
| 5966 |
printf %s "checking --with-lua-prefix argument... " >&6; } |
| 5967 |
|
| 5968 |
# Check whether --with-lua_prefix was given. |
| 5969 |
if test ${with_lua_prefix+y} |
| 5970 |
then : |
| 5971 |
withval=$with_lua_prefix; with_lua_prefix="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 |
| 5972 |
printf "%s\n" "$with_lua_prefix" >&6; } |
| 5973 |
else case e in #( |
| 5974 |
e) with_lua_prefix="";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5975 |
printf "%s\n" "no" >&6; } ;; |
| 5976 |
esac |
| 5977 |
fi |
| 5978 |
|
| 5979 |
|
| 5980 |
if test "X$with_lua_prefix" != "X"; then |
| 5981 |
vi_cv_path_lua_pfx="$with_lua_prefix" |
| 5982 |
else |
| 5983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 |
| 5984 |
printf %s "checking LUA_PREFIX environment var... " >&6; } |
| 5985 |
if test "X$LUA_PREFIX" != "X"; then |
| 5986 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 |
| 5987 |
printf "%s\n" "\"$LUA_PREFIX\"" >&6; } |
| 5988 |
vi_cv_path_lua_pfx="$LUA_PREFIX" |
| 5989 |
else |
| 5990 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 |
| 5991 |
printf "%s\n" "not set, default to /usr" >&6; } |
| 5992 |
vi_cv_path_lua_pfx="/usr" |
| 5993 |
fi |
| 5994 |
fi |
| 5995 |
|
| 5996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 |
| 5997 |
printf %s "checking --with-luajit... " >&6; } |
| 5998 |
|
| 5999 |
# Check whether --with-luajit was given. |
| 6000 |
if test ${with_luajit+y} |
| 6001 |
then : |
| 6002 |
withval=$with_luajit; vi_cv_with_luajit="$withval" |
| 6003 |
else case e in #( |
| 6004 |
e) vi_cv_with_luajit="no" ;; |
| 6005 |
esac |
| 6006 |
fi |
| 6007 |
|
| 6008 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 |
| 6009 |
printf "%s\n" "$vi_cv_with_luajit" >&6; } |
| 6010 |
|
| 6011 |
LUA_INC= |
| 6012 |
if test "X$vi_cv_path_lua_pfx" != "X"; then |
| 6013 |
if test "x$vi_cv_with_luajit" != "xno"; then |
| 6014 |
# Extract the first word of "luajit", so it can be a program name with args. |
| 6015 |
set dummy luajit; ac_word=$2 |
| 6016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6017 |
printf %s "checking for $ac_word... " >&6; } |
| 6018 |
if test ${ac_cv_path_vi_cv_path_luajit+y} |
| 6019 |
then : |
| 6020 |
printf %s "(cached) " >&6 |
| 6021 |
else case e in #( |
| 6022 |
e) case $vi_cv_path_luajit in |
| 6023 |
[\\/]* | ?:[\\/]*) |
| 6024 |
ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. |
| 6025 |
;; |
| 6026 |
*) |
| 6027 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6028 |
for as_dir in $PATH |
| 6029 |
do |
| 6030 |
IFS=$as_save_IFS |
| 6031 |
case $as_dir in #((( |
| 6032 |
'') as_dir=./ ;; |
| 6033 |
*/) ;; |
| 6034 |
*) as_dir=$as_dir/ ;; |
| 6035 |
esac |
| 6036 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6037 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6038 |
ac_cv_path_vi_cv_path_luajit="$as_dir$ac_word$ac_exec_ext" |
| 6039 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6040 |
break 2 |
| 6041 |
fi |
| 6042 |
done |
| 6043 |
done |
| 6044 |
IFS=$as_save_IFS |
| 6045 |
|
| 6046 |
;; |
| 6047 |
esac ;; |
| 6048 |
esac |
| 6049 |
fi |
| 6050 |
vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit |
| 6051 |
if test -n "$vi_cv_path_luajit"; then |
| 6052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 |
| 6053 |
printf "%s\n" "$vi_cv_path_luajit" >&6; } |
| 6054 |
else |
| 6055 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6056 |
printf "%s\n" "no" >&6; } |
| 6057 |
fi |
| 6058 |
|
| 6059 |
|
| 6060 |
if test "X$vi_cv_path_luajit" != "X"; then |
| 6061 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 |
| 6062 |
printf %s "checking LuaJIT version... " >&6; } |
| 6063 |
if test ${vi_cv_version_luajit+y} |
| 6064 |
then : |
| 6065 |
printf %s "(cached) " >&6 |
| 6066 |
else case e in #( |
| 6067 |
e) vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-*[a-z0-9]*\)* .*/\1/'` ;; |
| 6068 |
esac |
| 6069 |
fi |
| 6070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 |
| 6071 |
printf "%s\n" "$vi_cv_version_luajit" >&6; } |
| 6072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 |
| 6073 |
printf %s "checking Lua version of LuaJIT... " >&6; } |
| 6074 |
if test ${vi_cv_version_lua_luajit+y} |
| 6075 |
then : |
| 6076 |
printf %s "(cached) " >&6 |
| 6077 |
else case e in #( |
| 6078 |
e) vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ;; |
| 6079 |
esac |
| 6080 |
fi |
| 6081 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 |
| 6082 |
printf "%s\n" "$vi_cv_version_lua_luajit" >&6; } |
| 6083 |
vi_cv_path_lua="$vi_cv_path_luajit" |
| 6084 |
vi_cv_version_lua="$vi_cv_version_lua_luajit" |
| 6085 |
fi |
| 6086 |
else |
| 6087 |
# Extract the first word of "lua", so it can be a program name with args. |
| 6088 |
set dummy lua; ac_word=$2 |
| 6089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6090 |
printf %s "checking for $ac_word... " >&6; } |
| 6091 |
if test ${ac_cv_path_vi_cv_path_plain_lua+y} |
| 6092 |
then : |
| 6093 |
printf %s "(cached) " >&6 |
| 6094 |
else case e in #( |
| 6095 |
e) case $vi_cv_path_plain_lua in |
| 6096 |
[\\/]* | ?:[\\/]*) |
| 6097 |
ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. |
| 6098 |
;; |
| 6099 |
*) |
| 6100 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6101 |
for as_dir in $PATH |
| 6102 |
do |
| 6103 |
IFS=$as_save_IFS |
| 6104 |
case $as_dir in #((( |
| 6105 |
'') as_dir=./ ;; |
| 6106 |
*/) ;; |
| 6107 |
*) as_dir=$as_dir/ ;; |
| 6108 |
esac |
| 6109 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6110 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6111 |
ac_cv_path_vi_cv_path_plain_lua="$as_dir$ac_word$ac_exec_ext" |
| 6112 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6113 |
break 2 |
| 6114 |
fi |
| 6115 |
done |
| 6116 |
done |
| 6117 |
IFS=$as_save_IFS |
| 6118 |
|
| 6119 |
;; |
| 6120 |
esac ;; |
| 6121 |
esac |
| 6122 |
fi |
| 6123 |
vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua |
| 6124 |
if test -n "$vi_cv_path_plain_lua"; then |
| 6125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 |
| 6126 |
printf "%s\n" "$vi_cv_path_plain_lua" >&6; } |
| 6127 |
else |
| 6128 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6129 |
printf "%s\n" "no" >&6; } |
| 6130 |
fi |
| 6131 |
|
| 6132 |
|
| 6133 |
if test "X$vi_cv_path_plain_lua" != "X"; then |
| 6134 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 |
| 6135 |
printf %s "checking Lua version... " >&6; } |
| 6136 |
if test ${vi_cv_version_plain_lua+y} |
| 6137 |
then : |
| 6138 |
printf %s "(cached) " >&6 |
| 6139 |
else case e in #( |
| 6140 |
e) vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` ;; |
| 6141 |
esac |
| 6142 |
fi |
| 6143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 |
| 6144 |
printf "%s\n" "$vi_cv_version_plain_lua" >&6; } |
| 6145 |
fi |
| 6146 |
vi_cv_path_lua="$vi_cv_path_plain_lua" |
| 6147 |
vi_cv_version_lua="$vi_cv_version_plain_lua" |
| 6148 |
fi |
| 6149 |
if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then |
| 6150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 |
| 6151 |
printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } |
| 6152 |
if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then |
| 6153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6154 |
printf "%s\n" "yes" >&6; } |
| 6155 |
LUA_INC=/luajit-$vi_cv_version_luajit |
| 6156 |
fi |
| 6157 |
fi |
| 6158 |
if test "X$LUA_INC" = "X"; then |
| 6159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 |
| 6160 |
printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } |
| 6161 |
if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then |
| 6162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6163 |
printf "%s\n" "yes" >&6; } |
| 6164 |
else |
| 6165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6166 |
printf "%s\n" "no" >&6; } |
| 6167 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 |
| 6168 |
printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } |
| 6169 |
if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then |
| 6170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6171 |
printf "%s\n" "yes" >&6; } |
| 6172 |
LUA_INC=/lua$vi_cv_version_lua |
| 6173 |
else |
| 6174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6175 |
printf "%s\n" "no" >&6; } |
| 6176 |
|
| 6177 |
# Detect moonjit: |
| 6178 |
# https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk |
| 6179 |
lua_suf=/moonjit-2.3 |
| 6180 |
inc_path="$vi_cv_path_lua_pfx/include" |
| 6181 |
for dir in "$inc_path"/moonjit-[0-9]* ; do |
| 6182 |
if test -d "$dir" ; then |
| 6183 |
lua_suf=`basename "$dir"` |
| 6184 |
lua_suf="/$lua_suf" |
| 6185 |
break |
| 6186 |
fi |
| 6187 |
done |
| 6188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5 |
| 6189 |
printf %s "checking if lua.h can be found in $inc_path$lua_suf... " >&6; } |
| 6190 |
if test -f "$inc_path$lua_suf/lua.h"; then |
| 6191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6192 |
printf "%s\n" "yes" >&6; } |
| 6193 |
LUA_INC=$lua_suf |
| 6194 |
else |
| 6195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6196 |
printf "%s\n" "no" >&6; } |
| 6197 |
vi_cv_path_lua_pfx= |
| 6198 |
fi |
| 6199 |
fi |
| 6200 |
fi |
| 6201 |
fi |
| 6202 |
fi |
| 6203 |
|
| 6204 |
if test "X$vi_cv_path_lua_pfx" != "X"; then |
| 6205 |
if test "x$vi_cv_with_luajit" != "xno"; then |
| 6206 |
multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` |
| 6207 |
if test "X$multiarch" != "X"; then |
| 6208 |
lib_multiarch="lib/${multiarch}" |
| 6209 |
else |
| 6210 |
lib_multiarch="lib" |
| 6211 |
fi |
| 6212 |
if test "X$vi_cv_version_lua" = "X"; then |
| 6213 |
LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" |
| 6214 |
else |
| 6215 |
LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" |
| 6216 |
fi |
| 6217 |
else |
| 6218 |
if test -d "${vi_cv_path_lua_pfx}/lib/lua$vi_cv_version_lua"; then |
| 6219 |
LUALIBDIR="lib/lua$vi_cv_version_lua" |
| 6220 |
else |
| 6221 |
LUALIBDIR=lib |
| 6222 |
fi |
| 6223 |
if test "X$LUA_INC" != "X"; then |
| 6224 |
LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua$vi_cv_version_lua" |
| 6225 |
else |
| 6226 |
LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua" |
| 6227 |
fi |
| 6228 |
fi |
| 6229 |
if test "$enable_luainterp" = "dynamic"; then |
| 6230 |
lua_ok="yes" |
| 6231 |
else |
| 6232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 |
| 6233 |
printf %s "checking if link with ${LUA_LIBS} is sane... " >&6; } |
| 6234 |
libs_save=$LIBS |
| 6235 |
LIBS="$LIBS $LUA_LIBS" |
| 6236 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6237 |
/* end confdefs.h. */ |
| 6238 |
|
| 6239 |
int |
| 6240 |
main (void) |
| 6241 |
{ |
| 6242 |
|
| 6243 |
; |
| 6244 |
return 0; |
| 6245 |
} |
| 6246 |
_ACEOF |
| 6247 |
if ac_fn_c_try_link "$LINENO" |
| 6248 |
then : |
| 6249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6250 |
printf "%s\n" "yes" >&6; }; lua_ok="yes" |
| 6251 |
else case e in #( |
| 6252 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6253 |
printf "%s\n" "no" >&6; }; lua_ok="no"; LUA_LIBS="" ;; |
| 6254 |
esac |
| 6255 |
fi |
| 6256 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6257 |
conftest$ac_exeext conftest.$ac_ext |
| 6258 |
LIBS=$libs_save |
| 6259 |
fi |
| 6260 |
if test "x$lua_ok" = "xyes"; then |
| 6261 |
LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" |
| 6262 |
LUA_SRC="if_lua.c" |
| 6263 |
LUA_OBJ="objects/if_lua.o" |
| 6264 |
printf "%s\n" "#define FEAT_LUA 1" >>confdefs.h |
| 6265 |
|
| 6266 |
fi |
| 6267 |
if test "$enable_luainterp" = "dynamic"; then |
| 6268 |
if test "x$vi_cv_with_luajit" != "xno"; then |
| 6269 |
luajit="jit" |
| 6270 |
fi |
| 6271 |
if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then |
| 6272 |
vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" |
| 6273 |
else |
| 6274 |
if test "x$MACOS_X" = "xyes"; then |
| 6275 |
ext="dylib" |
| 6276 |
indexes="" |
| 6277 |
else |
| 6278 |
ext="so" |
| 6279 |
indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" |
| 6280 |
multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` |
| 6281 |
if test "X$multiarch" != "X"; then |
| 6282 |
lib_multiarch="lib/${multiarch}" |
| 6283 |
fi |
| 6284 |
fi |
| 6285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 |
| 6286 |
printf %s "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } |
| 6287 |
for subdir in "${lib_multiarch}" lib64 lib; do |
| 6288 |
if test -z "$subdir"; then |
| 6289 |
continue |
| 6290 |
fi |
| 6291 |
for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ |
| 6292 |
".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do |
| 6293 |
for i in $indexes ""; do |
| 6294 |
if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then |
| 6295 |
sover2="$i" |
| 6296 |
break 3 |
| 6297 |
fi |
| 6298 |
done |
| 6299 |
done |
| 6300 |
sover="" |
| 6301 |
done |
| 6302 |
if test "X$sover" = "X"; then |
| 6303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6304 |
printf "%s\n" "no" >&6; } |
| 6305 |
lua_ok="no" |
| 6306 |
vi_cv_dll_name_lua="liblua${luajit}.${ext}" |
| 6307 |
else |
| 6308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6309 |
printf "%s\n" "yes" >&6; } |
| 6310 |
lua_ok="yes" |
| 6311 |
vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" |
| 6312 |
fi |
| 6313 |
fi |
| 6314 |
printf "%s\n" "#define DYNAMIC_LUA 1" >>confdefs.h |
| 6315 |
|
| 6316 |
LUA_LIBS="" |
| 6317 |
LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" |
| 6318 |
fi |
| 6319 |
if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ |
| 6320 |
test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ |
| 6321 |
test "$vim_cv_uname_m_output" = "x86_64"; then |
| 6322 |
LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" |
| 6323 |
fi |
| 6324 |
fi |
| 6325 |
if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then |
| 6326 |
as_fn_error $? "could not configure lua" "$LINENO" 5 |
| 6327 |
fi |
| 6328 |
|
| 6329 |
|
| 6330 |
|
| 6331 |
|
| 6332 |
|
| 6333 |
fi |
| 6334 |
|
| 6335 |
|
| 6336 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 |
| 6337 |
printf %s "checking --enable-mzschemeinterp argument... " >&6; } |
| 6338 |
# Check whether --enable-mzschemeinterp was given. |
| 6339 |
if test ${enable_mzschemeinterp+y} |
| 6340 |
then : |
| 6341 |
enableval=$enable_mzschemeinterp; |
| 6342 |
else case e in #( |
| 6343 |
e) enable_mzschemeinterp="no" ;; |
| 6344 |
esac |
| 6345 |
fi |
| 6346 |
|
| 6347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 |
| 6348 |
printf "%s\n" "$enable_mzschemeinterp" >&6; } |
| 6349 |
|
| 6350 |
if test "$enable_mzschemeinterp" = "yes"; then |
| 6351 |
|
| 6352 |
|
| 6353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 |
| 6354 |
printf %s "checking --with-plthome argument... " >&6; } |
| 6355 |
|
| 6356 |
# Check whether --with-plthome was given. |
| 6357 |
if test ${with_plthome+y} |
| 6358 |
then : |
| 6359 |
withval=$with_plthome; with_plthome="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 |
| 6360 |
printf "%s\n" "$with_plthome" >&6; } |
| 6361 |
else case e in #( |
| 6362 |
e) with_plthome="";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 |
| 6363 |
printf "%s\n" "\"no\"" >&6; } ;; |
| 6364 |
esac |
| 6365 |
fi |
| 6366 |
|
| 6367 |
|
| 6368 |
if test "X$with_plthome" != "X"; then |
| 6369 |
vi_cv_path_mzscheme_pfx="$with_plthome" |
| 6370 |
vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" |
| 6371 |
else |
| 6372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 |
| 6373 |
printf %s "checking PLTHOME environment var... " >&6; } |
| 6374 |
if test "X$PLTHOME" != "X"; then |
| 6375 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 |
| 6376 |
printf "%s\n" "\"$PLTHOME\"" >&6; } |
| 6377 |
vi_cv_path_mzscheme_pfx="$PLTHOME" |
| 6378 |
vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" |
| 6379 |
else |
| 6380 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 6381 |
printf "%s\n" "not set" >&6; } |
| 6382 |
# Extract the first word of "mzscheme", so it can be a program name with args. |
| 6383 |
set dummy mzscheme; ac_word=$2 |
| 6384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6385 |
printf %s "checking for $ac_word... " >&6; } |
| 6386 |
if test ${ac_cv_path_vi_cv_path_mzscheme+y} |
| 6387 |
then : |
| 6388 |
printf %s "(cached) " >&6 |
| 6389 |
else case e in #( |
| 6390 |
e) case $vi_cv_path_mzscheme in |
| 6391 |
[\\/]* | ?:[\\/]*) |
| 6392 |
ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 6393 |
;; |
| 6394 |
*) |
| 6395 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6396 |
for as_dir in $PATH |
| 6397 |
do |
| 6398 |
IFS=$as_save_IFS |
| 6399 |
case $as_dir in #((( |
| 6400 |
'') as_dir=./ ;; |
| 6401 |
*/) ;; |
| 6402 |
*) as_dir=$as_dir/ ;; |
| 6403 |
esac |
| 6404 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6405 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6406 |
ac_cv_path_vi_cv_path_mzscheme="$as_dir$ac_word$ac_exec_ext" |
| 6407 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6408 |
break 2 |
| 6409 |
fi |
| 6410 |
done |
| 6411 |
done |
| 6412 |
IFS=$as_save_IFS |
| 6413 |
|
| 6414 |
;; |
| 6415 |
esac ;; |
| 6416 |
esac |
| 6417 |
fi |
| 6418 |
vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 6419 |
if test -n "$vi_cv_path_mzscheme"; then |
| 6420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 |
| 6421 |
printf "%s\n" "$vi_cv_path_mzscheme" >&6; } |
| 6422 |
else |
| 6423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6424 |
printf "%s\n" "no" >&6; } |
| 6425 |
fi |
| 6426 |
|
| 6427 |
|
| 6428 |
|
| 6429 |
if test "X$vi_cv_path_mzscheme" != "X"; then |
| 6430 |
lsout=`ls -l $vi_cv_path_mzscheme` |
| 6431 |
if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 6432 |
vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 6433 |
fi |
| 6434 |
fi |
| 6435 |
|
| 6436 |
if test "X$vi_cv_path_mzscheme" != "X"; then |
| 6437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 |
| 6438 |
printf %s "checking MzScheme install prefix... " >&6; } |
| 6439 |
if test ${vi_cv_path_mzscheme_pfx+y} |
| 6440 |
then : |
| 6441 |
printf %s "(cached) " >&6 |
| 6442 |
else case e in #( |
| 6443 |
e) echo "(display (simplify-path \ |
| 6444 |
(build-path (call-with-values \ |
| 6445 |
(lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 6446 |
(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm |
| 6447 |
vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ |
| 6448 |
sed -e 's+/$++'` ;; |
| 6449 |
esac |
| 6450 |
fi |
| 6451 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 6452 |
printf "%s\n" "$vi_cv_path_mzscheme_pfx" >&6; } |
| 6453 |
rm -f mzdirs.scm |
| 6454 |
fi |
| 6455 |
fi |
| 6456 |
fi |
| 6457 |
|
| 6458 |
if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 6459 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 |
| 6460 |
printf %s "checking for racket include directory... " >&6; } |
| 6461 |
SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` |
| 6462 |
if test "X$SCHEME_INC" != "X"; then |
| 6463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 |
| 6464 |
printf "%s\n" "${SCHEME_INC}" >&6; } |
| 6465 |
else |
| 6466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6467 |
printf "%s\n" "not found" >&6; } |
| 6468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 6469 |
printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } |
| 6470 |
if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then |
| 6471 |
SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
| 6472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6473 |
printf "%s\n" "yes" >&6; } |
| 6474 |
else |
| 6475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6476 |
printf "%s\n" "no" >&6; } |
| 6477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
| 6478 |
printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } |
| 6479 |
if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then |
| 6480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6481 |
printf "%s\n" "yes" >&6; } |
| 6482 |
SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
| 6483 |
else |
| 6484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6485 |
printf "%s\n" "no" >&6; } |
| 6486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 |
| 6487 |
printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } |
| 6488 |
if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then |
| 6489 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6490 |
printf "%s\n" "yes" >&6; } |
| 6491 |
SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket |
| 6492 |
else |
| 6493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6494 |
printf "%s\n" "no" >&6; } |
| 6495 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 |
| 6496 |
printf %s "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
| 6497 |
if test -f /usr/include/plt/scheme.h; then |
| 6498 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6499 |
printf "%s\n" "yes" >&6; } |
| 6500 |
SCHEME_INC=/usr/include/plt |
| 6501 |
else |
| 6502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6503 |
printf "%s\n" "no" >&6; } |
| 6504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 |
| 6505 |
printf %s "checking if scheme.h can be found in /usr/include/racket/... " >&6; } |
| 6506 |
if test -f /usr/include/racket/scheme.h; then |
| 6507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6508 |
printf "%s\n" "yes" >&6; } |
| 6509 |
SCHEME_INC=/usr/include/racket |
| 6510 |
else |
| 6511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6512 |
printf "%s\n" "no" >&6; } |
| 6513 |
vi_cv_path_mzscheme_pfx= |
| 6514 |
fi |
| 6515 |
fi |
| 6516 |
fi |
| 6517 |
fi |
| 6518 |
fi |
| 6519 |
fi |
| 6520 |
fi |
| 6521 |
|
| 6522 |
if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 6523 |
|
| 6524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 |
| 6525 |
printf %s "checking for racket lib directory... " >&6; } |
| 6526 |
SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` |
| 6527 |
if test "X$SCHEME_LIB" != "X"; then |
| 6528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 |
| 6529 |
printf "%s\n" "${SCHEME_LIB}" >&6; } |
| 6530 |
else |
| 6531 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6532 |
printf "%s\n" "not found" >&6; } |
| 6533 |
fi |
| 6534 |
|
| 6535 |
for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do |
| 6536 |
if test "X$path" != "X"; then |
| 6537 |
if test "x$MACOS_X" = "xyes"; then |
| 6538 |
MZSCHEME_LIBS="-framework Racket" |
| 6539 |
MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6540 |
elif test -f "${path}/libmzscheme3m.a"; then |
| 6541 |
MZSCHEME_LIBS="${path}/libmzscheme3m.a" |
| 6542 |
MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6543 |
elif test -f "${path}/libracket3m.a"; then |
| 6544 |
MZSCHEME_LIBS="${path}/libracket3m.a" |
| 6545 |
if test -f "${path}/librktio.a"; then |
| 6546 |
MZSCHEME_LIBS="${MZSCHEME_LIBS} ${path}/librktio.a" |
| 6547 |
fi |
| 6548 |
MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6549 |
elif test -f "${path}/libracket.a"; then |
| 6550 |
MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" |
| 6551 |
elif test -f "${path}/libmzscheme.a"; then |
| 6552 |
MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" |
| 6553 |
else |
| 6554 |
if test -f "${path}/libmzscheme3m.so"; then |
| 6555 |
MZSCHEME_LIBS="-L${path} -lmzscheme3m" |
| 6556 |
MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6557 |
elif test -f "${path}/libracket3m.so"; then |
| 6558 |
MZSCHEME_LIBS="-L${path} -lracket3m" |
| 6559 |
MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6560 |
elif test -f "${path}/libracket.so"; then |
| 6561 |
MZSCHEME_LIBS="-L${path} -lracket -lmzgc" |
| 6562 |
else |
| 6563 |
if test "$path" != "$SCHEME_LIB"; then |
| 6564 |
continue |
| 6565 |
fi |
| 6566 |
MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" |
| 6567 |
fi |
| 6568 |
if test "$GCC" = yes; then |
| 6569 |
MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" |
| 6570 |
elif test "$vim_cv_uname_output" = SunOS && |
| 6571 |
echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
| 6572 |
MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" |
| 6573 |
fi |
| 6574 |
fi |
| 6575 |
fi |
| 6576 |
if test "X$MZSCHEME_LIBS" != "X"; then |
| 6577 |
break |
| 6578 |
fi |
| 6579 |
done |
| 6580 |
|
| 6581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 |
| 6582 |
printf %s "checking if racket requires -pthread... " >&6; } |
| 6583 |
if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then |
| 6584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6585 |
printf "%s\n" "yes" >&6; } |
| 6586 |
MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" |
| 6587 |
MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" |
| 6588 |
else |
| 6589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6590 |
printf "%s\n" "no" >&6; } |
| 6591 |
fi |
| 6592 |
|
| 6593 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 |
| 6594 |
printf %s "checking for racket config directory... " >&6; } |
| 6595 |
SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` |
| 6596 |
if test "X$SCHEME_CONFIGDIR" != "X"; then |
| 6597 |
MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" |
| 6598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 |
| 6599 |
printf "%s\n" "${SCHEME_CONFIGDIR}" >&6; } |
| 6600 |
else |
| 6601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6602 |
printf "%s\n" "not found" >&6; } |
| 6603 |
fi |
| 6604 |
|
| 6605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 |
| 6606 |
printf %s "checking for racket collects directory... " >&6; } |
| 6607 |
SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'` |
| 6608 |
if test "X$SCHEME_COLLECTS" = "X"; then |
| 6609 |
if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then |
| 6610 |
SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ |
| 6611 |
else |
| 6612 |
if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then |
| 6613 |
SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ |
| 6614 |
else |
| 6615 |
if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then |
| 6616 |
SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ |
| 6617 |
else |
| 6618 |
if test -d "$vi_cv_path_mzscheme_pfx/collects"; then |
| 6619 |
SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ |
| 6620 |
fi |
| 6621 |
fi |
| 6622 |
fi |
| 6623 |
fi |
| 6624 |
fi |
| 6625 |
if test "X$SCHEME_COLLECTS" != "X" ; then |
| 6626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 |
| 6627 |
printf "%s\n" "${SCHEME_COLLECTS}" >&6; } |
| 6628 |
else |
| 6629 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6630 |
printf "%s\n" "not found" >&6; } |
| 6631 |
fi |
| 6632 |
|
| 6633 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 |
| 6634 |
printf %s "checking for mzscheme_base.c... " >&6; } |
| 6635 |
if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then |
| 6636 |
MZSCHEME_EXTRA="mzscheme_base.c" |
| 6637 |
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 6638 |
MZSCHEME_MOD="++lib scheme/base" |
| 6639 |
else |
| 6640 |
if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then |
| 6641 |
MZSCHEME_EXTRA="mzscheme_base.c" |
| 6642 |
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 6643 |
MZSCHEME_MOD="++lib scheme/base" |
| 6644 |
else |
| 6645 |
if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then |
| 6646 |
MZSCHEME_EXTRA="mzscheme_base.c" |
| 6647 |
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" |
| 6648 |
MZSCHEME_MOD="" |
| 6649 |
fi |
| 6650 |
fi |
| 6651 |
fi |
| 6652 |
if test "X$MZSCHEME_EXTRA" != "X" ; then |
| 6653 |
MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
| 6654 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: needed" >&5 |
| 6655 |
printf "%s\n" "needed" >&6; } |
| 6656 |
else |
| 6657 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 |
| 6658 |
printf "%s\n" "not needed" >&6; } |
| 6659 |
fi |
| 6660 |
|
| 6661 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 |
| 6662 |
printf %s "checking for ffi_type_void in -lffi... " >&6; } |
| 6663 |
if test ${ac_cv_lib_ffi_ffi_type_void+y} |
| 6664 |
then : |
| 6665 |
printf %s "(cached) " >&6 |
| 6666 |
else case e in #( |
| 6667 |
e) ac_check_lib_save_LIBS=$LIBS |
| 6668 |
LIBS="-lffi $LIBS" |
| 6669 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6670 |
/* end confdefs.h. */ |
| 6671 |
|
| 6672 |
/* Override any GCC internal prototype to avoid an error. |
| 6673 |
Use char because int might match the return type of a GCC |
| 6674 |
builtin and then its argument prototype would still apply. |
| 6675 |
The 'extern "C"' is for builds by C++ compilers; |
| 6676 |
although this is not generally supported in C code supporting it here |
| 6677 |
has little cost and some practical benefit (sr 110532). */ |
| 6678 |
#ifdef __cplusplus |
| 6679 |
extern "C" |
| 6680 |
#endif |
| 6681 |
char ffi_type_void (void); |
| 6682 |
int |
| 6683 |
main (void) |
| 6684 |
{ |
| 6685 |
return ffi_type_void (); |
| 6686 |
; |
| 6687 |
return 0; |
| 6688 |
} |
| 6689 |
_ACEOF |
| 6690 |
if ac_fn_c_try_link "$LINENO" |
| 6691 |
then : |
| 6692 |
ac_cv_lib_ffi_ffi_type_void=yes |
| 6693 |
else case e in #( |
| 6694 |
e) ac_cv_lib_ffi_ffi_type_void=no ;; |
| 6695 |
esac |
| 6696 |
fi |
| 6697 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6698 |
conftest$ac_exeext conftest.$ac_ext |
| 6699 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 6700 |
esac |
| 6701 |
fi |
| 6702 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 |
| 6703 |
printf "%s\n" "$ac_cv_lib_ffi_ffi_type_void" >&6; } |
| 6704 |
if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes |
| 6705 |
then : |
| 6706 |
MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" |
| 6707 |
fi |
| 6708 |
|
| 6709 |
|
| 6710 |
MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ |
| 6711 |
-DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" |
| 6712 |
|
| 6713 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 |
| 6714 |
printf %s "checking if compile and link flags for MzScheme are sane... " >&6; } |
| 6715 |
cflags_save=$CFLAGS |
| 6716 |
libs_save=$LIBS |
| 6717 |
CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" |
| 6718 |
LIBS="$LIBS $MZSCHEME_LIBS" |
| 6719 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6720 |
/* end confdefs.h. */ |
| 6721 |
|
| 6722 |
int |
| 6723 |
main (void) |
| 6724 |
{ |
| 6725 |
|
| 6726 |
; |
| 6727 |
return 0; |
| 6728 |
} |
| 6729 |
_ACEOF |
| 6730 |
if ac_fn_c_try_link "$LINENO" |
| 6731 |
then : |
| 6732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6733 |
printf "%s\n" "yes" >&6; }; mzs_ok=yes |
| 6734 |
else case e in #( |
| 6735 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 |
| 6736 |
printf "%s\n" "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no ;; |
| 6737 |
esac |
| 6738 |
fi |
| 6739 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6740 |
conftest$ac_exeext conftest.$ac_ext |
| 6741 |
CFLAGS=$cflags_save |
| 6742 |
LIBS=$libs_save |
| 6743 |
if test $mzs_ok = yes; then |
| 6744 |
MZSCHEME_SRC="if_mzsch.c" |
| 6745 |
MZSCHEME_OBJ="objects/if_mzsch.o" |
| 6746 |
printf "%s\n" "#define FEAT_MZSCHEME 1" >>confdefs.h |
| 6747 |
|
| 6748 |
else |
| 6749 |
MZSCHEME_CFLAGS= |
| 6750 |
MZSCHEME_LIBS= |
| 6751 |
MZSCHEME_EXTRA= |
| 6752 |
MZSCHEME_MZC= |
| 6753 |
fi |
| 6754 |
fi |
| 6755 |
|
| 6756 |
|
| 6757 |
|
| 6758 |
|
| 6759 |
|
| 6760 |
|
| 6761 |
fi |
| 6762 |
|
| 6763 |
|
| 6764 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 |
| 6765 |
printf %s "checking --enable-perlinterp argument... " >&6; } |
| 6766 |
# Check whether --enable-perlinterp was given. |
| 6767 |
if test ${enable_perlinterp+y} |
| 6768 |
then : |
| 6769 |
enableval=$enable_perlinterp; |
| 6770 |
else case e in #( |
| 6771 |
e) enable_perlinterp="no" ;; |
| 6772 |
esac |
| 6773 |
fi |
| 6774 |
|
| 6775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 |
| 6776 |
printf "%s\n" "$enable_perlinterp" >&6; } |
| 6777 |
if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then |
| 6778 |
if test "$has_eval" = "no"; then |
| 6779 |
as_fn_error $? "cannot use Perl with tiny features" "$LINENO" 5 |
| 6780 |
fi |
| 6781 |
|
| 6782 |
# Extract the first word of "perl", so it can be a program name with args. |
| 6783 |
set dummy perl; ac_word=$2 |
| 6784 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6785 |
printf %s "checking for $ac_word... " >&6; } |
| 6786 |
if test ${ac_cv_path_vi_cv_path_perl+y} |
| 6787 |
then : |
| 6788 |
printf %s "(cached) " >&6 |
| 6789 |
else case e in #( |
| 6790 |
e) case $vi_cv_path_perl in |
| 6791 |
[\\/]* | ?:[\\/]*) |
| 6792 |
ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 6793 |
;; |
| 6794 |
*) |
| 6795 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6796 |
for as_dir in $PATH |
| 6797 |
do |
| 6798 |
IFS=$as_save_IFS |
| 6799 |
case $as_dir in #((( |
| 6800 |
'') as_dir=./ ;; |
| 6801 |
*/) ;; |
| 6802 |
*) as_dir=$as_dir/ ;; |
| 6803 |
esac |
| 6804 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6805 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6806 |
ac_cv_path_vi_cv_path_perl="$as_dir$ac_word$ac_exec_ext" |
| 6807 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6808 |
break 2 |
| 6809 |
fi |
| 6810 |
done |
| 6811 |
done |
| 6812 |
IFS=$as_save_IFS |
| 6813 |
|
| 6814 |
;; |
| 6815 |
esac ;; |
| 6816 |
esac |
| 6817 |
fi |
| 6818 |
vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 6819 |
if test -n "$vi_cv_path_perl"; then |
| 6820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 |
| 6821 |
printf "%s\n" "$vi_cv_path_perl" >&6; } |
| 6822 |
else |
| 6823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6824 |
printf "%s\n" "no" >&6; } |
| 6825 |
fi |
| 6826 |
|
| 6827 |
|
| 6828 |
if test "X$vi_cv_path_perl" != "X"; then |
| 6829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 |
| 6830 |
printf %s "checking Perl version... " >&6; } |
| 6831 |
if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 6832 |
eval `$vi_cv_path_perl -V:usethreads` |
| 6833 |
eval `$vi_cv_path_perl -V:libperl` |
| 6834 |
if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 6835 |
badthreads=no |
| 6836 |
else |
| 6837 |
if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 6838 |
eval `$vi_cv_path_perl -V:use5005threads` |
| 6839 |
if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 6840 |
badthreads=no |
| 6841 |
else |
| 6842 |
badthreads=yes |
| 6843 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 6844 |
printf "%s\n" ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } |
| 6845 |
fi |
| 6846 |
else |
| 6847 |
badthreads=yes |
| 6848 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 6849 |
printf "%s\n" ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
| 6850 |
fi |
| 6851 |
fi |
| 6852 |
if test $badthreads = no; then |
| 6853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 6854 |
printf "%s\n" "OK" >&6; } |
| 6855 |
eval `$vi_cv_path_perl -V:shrpenv` |
| 6856 |
if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 6857 |
shrpenv="" |
| 6858 |
fi |
| 6859 |
vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
| 6860 |
|
| 6861 |
vi_cv_perl_extutils=unknown_perl_extutils_path |
| 6862 |
|
| 6863 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-xsubpp path" >&5 |
| 6864 |
printf %s "checking --with-xsubpp path... " >&6; } |
| 6865 |
vi_cv_perl_xsubpp= |
| 6866 |
|
| 6867 |
# Check whether --with-xsubpp was given. |
| 6868 |
if test ${with_xsubpp+y} |
| 6869 |
then : |
| 6870 |
withval=$with_xsubpp; |
| 6871 |
if test -f "$withval" |
| 6872 |
then |
| 6873 |
vi_cv_perl_xsubpp="$withval" |
| 6874 |
fi |
| 6875 |
|
| 6876 |
fi |
| 6877 |
|
| 6878 |
|
| 6879 |
if test "x$vi_cv_perl_xsubpp" = "x" |
| 6880 |
then |
| 6881 |
for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do |
| 6882 |
xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" |
| 6883 |
if test -f "$xsubpp_path"; then |
| 6884 |
vi_cv_perl_xsubpp="$xsubpp_path" |
| 6885 |
fi |
| 6886 |
done |
| 6887 |
fi |
| 6888 |
|
| 6889 |
if test "x$vi_cv_perl_xsubpp" = "x" |
| 6890 |
then |
| 6891 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: empty" >&5 |
| 6892 |
printf "%s\n" "empty" >&6; } |
| 6893 |
else |
| 6894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_perl_xsubpp" >&5 |
| 6895 |
printf "%s\n" "$vi_cv_perl_xsubpp" >&6; } |
| 6896 |
fi |
| 6897 |
|
| 6898 |
|
| 6899 |
perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 6900 |
-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ |
| 6901 |
-e 's/-fdebug-prefix-map[^ ]*//g' \ |
| 6902 |
-e 's/-pipe //' \ |
| 6903 |
-e 's/-flto\(=auto\)\? //' \ |
| 6904 |
-e 's/-W[^ ]*//g' \ |
| 6905 |
-e 's/-D_FORTIFY_SOURCE=.//g'` |
| 6906 |
perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 6907 |
sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 6908 |
-e 's/-specs=[^ ]*//g' \ |
| 6909 |
-e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 6910 |
perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 6911 |
-e 'ccdlflags' | sed -e 's/-bE:perl.exp//' \ |
| 6912 |
-e 's/-specs=[^ ]*//g' ` |
| 6913 |
|
| 6914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 |
| 6915 |
printf %s "checking if compile and link flags for Perl are sane... " >&6; } |
| 6916 |
cflags_save=$CFLAGS |
| 6917 |
libs_save=$LIBS |
| 6918 |
ldflags_save=$LDFLAGS |
| 6919 |
CFLAGS="$CFLAGS $perlcppflags" |
| 6920 |
LIBS="$LIBS $perllibs" |
| 6921 |
perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` |
| 6922 |
LDFLAGS="$perlldflags $LDFLAGS" |
| 6923 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6924 |
/* end confdefs.h. */ |
| 6925 |
|
| 6926 |
int |
| 6927 |
main (void) |
| 6928 |
{ |
| 6929 |
|
| 6930 |
; |
| 6931 |
return 0; |
| 6932 |
} |
| 6933 |
_ACEOF |
| 6934 |
if ac_fn_c_try_link "$LINENO" |
| 6935 |
then : |
| 6936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6937 |
printf "%s\n" "yes" >&6; }; perl_ok=yes |
| 6938 |
else case e in #( |
| 6939 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 |
| 6940 |
printf "%s\n" "no: PERL DISABLED" >&6; }; perl_ok=no ;; |
| 6941 |
esac |
| 6942 |
fi |
| 6943 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6944 |
conftest$ac_exeext conftest.$ac_ext |
| 6945 |
CFLAGS=$cflags_save |
| 6946 |
LIBS=$libs_save |
| 6947 |
LDFLAGS=$ldflags_save |
| 6948 |
if test $perl_ok = yes; then |
| 6949 |
if test "X$perlcppflags" != "X"; then |
| 6950 |
PERL_CFLAGS=$perlcppflags |
| 6951 |
fi |
| 6952 |
if test "X$perlldflags" != "X"; then |
| 6953 |
if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then |
| 6954 |
LDFLAGS="$perlldflags $LDFLAGS" |
| 6955 |
fi |
| 6956 |
fi |
| 6957 |
PERL_LIBS=$perllibs |
| 6958 |
PERL_SRC="auto/if_perl.c" |
| 6959 |
PERL_OBJ="objects/if_perl.o" |
| 6960 |
PERL_PRO="proto/if_perl.pro" |
| 6961 |
printf "%s\n" "#define FEAT_PERL 1" >>confdefs.h |
| 6962 |
|
| 6963 |
fi |
| 6964 |
fi |
| 6965 |
else |
| 6966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 6967 |
printf "%s\n" ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } |
| 6968 |
fi |
| 6969 |
fi |
| 6970 |
|
| 6971 |
if test "x$MACOS_X" = "xyes"; then |
| 6972 |
dir=/System/Library/Perl |
| 6973 |
darwindir=$dir/darwin |
| 6974 |
if test -d $darwindir; then |
| 6975 |
PERL=/usr/bin/perl |
| 6976 |
else |
| 6977 |
dir=/System/Library/Perl/5.8.1 |
| 6978 |
darwindir=$dir/darwin-thread-multi-2level |
| 6979 |
if test -d $darwindir; then |
| 6980 |
PERL=/usr/bin/perl |
| 6981 |
fi |
| 6982 |
fi |
| 6983 |
if test -n "$PERL"; then |
| 6984 |
PERL_DIR="$dir" |
| 6985 |
PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 6986 |
PERL_OBJ="objects/if_perl.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 6987 |
PERL_LIBS="-L$darwindir/CORE -lperl" |
| 6988 |
fi |
| 6989 |
PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` |
| 6990 |
PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` |
| 6991 |
fi |
| 6992 |
if test "$enable_perlinterp" = "dynamic"; then |
| 6993 |
if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then |
| 6994 |
printf "%s\n" "#define DYNAMIC_PERL 1" >>confdefs.h |
| 6995 |
|
| 6996 |
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" |
| 6997 |
PERL_LIBS="" |
| 6998 |
fi |
| 6999 |
fi |
| 7000 |
|
| 7001 |
if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then |
| 7002 |
as_fn_error $? "could not configure perl" "$LINENO" 5 |
| 7003 |
fi |
| 7004 |
fi |
| 7005 |
|
| 7006 |
|
| 7007 |
|
| 7008 |
|
| 7009 |
|
| 7010 |
|
| 7011 |
|
| 7012 |
|
| 7013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 |
| 7014 |
printf %s "checking --enable-pythoninterp argument... " >&6; } |
| 7015 |
# Check whether --enable-pythoninterp was given. |
| 7016 |
if test ${enable_pythoninterp+y} |
| 7017 |
then : |
| 7018 |
enableval=$enable_pythoninterp; |
| 7019 |
else case e in #( |
| 7020 |
e) enable_pythoninterp="no" ;; |
| 7021 |
esac |
| 7022 |
fi |
| 7023 |
|
| 7024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 |
| 7025 |
printf "%s\n" "$enable_pythoninterp" >&6; } |
| 7026 |
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then |
| 7027 |
if test "$has_eval" = "no"; then |
| 7028 |
as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5 |
| 7029 |
fi |
| 7030 |
|
| 7031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 |
| 7032 |
printf %s "checking --with-python-command argument... " >&6; } |
| 7033 |
|
| 7034 |
|
| 7035 |
# Check whether --with-python-command was given. |
| 7036 |
if test ${with_python_command+y} |
| 7037 |
then : |
| 7038 |
withval=$with_python_command; vi_cv_path_python="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 |
| 7039 |
printf "%s\n" "$vi_cv_path_python" >&6; } |
| 7040 |
else case e in #( |
| 7041 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7042 |
printf "%s\n" "no" >&6; } ;; |
| 7043 |
esac |
| 7044 |
fi |
| 7045 |
|
| 7046 |
|
| 7047 |
if test "X$vi_cv_path_python" = "X"; then |
| 7048 |
for ac_prog in python2 python |
| 7049 |
do |
| 7050 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7051 |
set dummy $ac_prog; ac_word=$2 |
| 7052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7053 |
printf %s "checking for $ac_word... " >&6; } |
| 7054 |
if test ${ac_cv_path_vi_cv_path_python+y} |
| 7055 |
then : |
| 7056 |
printf %s "(cached) " >&6 |
| 7057 |
else case e in #( |
| 7058 |
e) case $vi_cv_path_python in |
| 7059 |
[\\/]* | ?:[\\/]*) |
| 7060 |
ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 7061 |
;; |
| 7062 |
*) |
| 7063 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7064 |
for as_dir in $PATH |
| 7065 |
do |
| 7066 |
IFS=$as_save_IFS |
| 7067 |
case $as_dir in #((( |
| 7068 |
'') as_dir=./ ;; |
| 7069 |
*/) ;; |
| 7070 |
*) as_dir=$as_dir/ ;; |
| 7071 |
esac |
| 7072 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7073 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7074 |
ac_cv_path_vi_cv_path_python="$as_dir$ac_word$ac_exec_ext" |
| 7075 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7076 |
break 2 |
| 7077 |
fi |
| 7078 |
done |
| 7079 |
done |
| 7080 |
IFS=$as_save_IFS |
| 7081 |
|
| 7082 |
;; |
| 7083 |
esac ;; |
| 7084 |
esac |
| 7085 |
fi |
| 7086 |
vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 7087 |
if test -n "$vi_cv_path_python"; then |
| 7088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 |
| 7089 |
printf "%s\n" "$vi_cv_path_python" >&6; } |
| 7090 |
else |
| 7091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7092 |
printf "%s\n" "no" >&6; } |
| 7093 |
fi |
| 7094 |
|
| 7095 |
|
| 7096 |
test -n "$vi_cv_path_python" && break |
| 7097 |
done |
| 7098 |
|
| 7099 |
fi |
| 7100 |
if test "X$vi_cv_path_python" != "X"; then |
| 7101 |
|
| 7102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 |
| 7103 |
printf %s "checking Python version... " >&6; } |
| 7104 |
if test ${vi_cv_var_python_version+y} |
| 7105 |
then : |
| 7106 |
printf %s "(cached) " >&6 |
| 7107 |
else case e in #( |
| 7108 |
e) vi_cv_var_python_version=` |
| 7109 |
${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
| 7110 |
;; |
| 7111 |
esac |
| 7112 |
fi |
| 7113 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 |
| 7114 |
printf "%s\n" "$vi_cv_var_python_version" >&6; } |
| 7115 |
|
| 7116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 |
| 7117 |
printf %s "checking Python is 2.3 or better... " >&6; } |
| 7118 |
if ${vi_cv_path_python} -c \ |
| 7119 |
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" |
| 7120 |
then |
| 7121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yep" >&5 |
| 7122 |
printf "%s\n" "yep" >&6; } |
| 7123 |
|
| 7124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 |
| 7125 |
printf %s "checking Python's install prefix... " >&6; } |
| 7126 |
if test ${vi_cv_path_python_pfx+y} |
| 7127 |
then : |
| 7128 |
printf %s "(cached) " >&6 |
| 7129 |
else case e in #( |
| 7130 |
e) vi_cv_path_python_pfx=` |
| 7131 |
${vi_cv_path_python} -c \ |
| 7132 |
"import sys; print sys.prefix"` ;; |
| 7133 |
esac |
| 7134 |
fi |
| 7135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 |
| 7136 |
printf "%s\n" "$vi_cv_path_python_pfx" >&6; } |
| 7137 |
|
| 7138 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 |
| 7139 |
printf %s "checking Python's execution prefix... " >&6; } |
| 7140 |
if test ${vi_cv_path_python_epfx+y} |
| 7141 |
then : |
| 7142 |
printf %s "(cached) " >&6 |
| 7143 |
else case e in #( |
| 7144 |
e) vi_cv_path_python_epfx=` |
| 7145 |
${vi_cv_path_python} -c \ |
| 7146 |
"import sys; print sys.exec_prefix"` ;; |
| 7147 |
esac |
| 7148 |
fi |
| 7149 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 |
| 7150 |
printf "%s\n" "$vi_cv_path_python_epfx" >&6; } |
| 7151 |
|
| 7152 |
|
| 7153 |
if test ${vi_cv_path_pythonpath+y} |
| 7154 |
then : |
| 7155 |
printf %s "(cached) " >&6 |
| 7156 |
else case e in #( |
| 7157 |
e) vi_cv_path_pythonpath=` |
| 7158 |
unset PYTHONPATH; |
| 7159 |
${vi_cv_path_python} -c \ |
| 7160 |
"import sys, string; print string.join(sys.path,':')"` ;; |
| 7161 |
esac |
| 7162 |
fi |
| 7163 |
|
| 7164 |
|
| 7165 |
|
| 7166 |
|
| 7167 |
# Check whether --with-python-config-dir was given. |
| 7168 |
if test ${with_python_config_dir+y} |
| 7169 |
then : |
| 7170 |
withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 |
| 7171 |
fi |
| 7172 |
|
| 7173 |
|
| 7174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 |
| 7175 |
printf %s "checking Python's configuration directory... " >&6; } |
| 7176 |
if test ${vi_cv_path_python_conf+y} |
| 7177 |
then : |
| 7178 |
printf %s "(cached) " >&6 |
| 7179 |
else case e in #( |
| 7180 |
e) |
| 7181 |
vi_cv_path_python_conf= |
| 7182 |
d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` |
| 7183 |
if test -d "$d" && test -f "$d/config.c"; then |
| 7184 |
vi_cv_path_python_conf="$d" |
| 7185 |
else |
| 7186 |
for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 7187 |
for subdir in lib64 lib share; do |
| 7188 |
d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 7189 |
if test -d "$d" && test -f "$d/config.c"; then |
| 7190 |
vi_cv_path_python_conf="$d" |
| 7191 |
fi |
| 7192 |
done |
| 7193 |
done |
| 7194 |
fi |
| 7195 |
;; |
| 7196 |
esac |
| 7197 |
fi |
| 7198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 |
| 7199 |
printf "%s\n" "$vi_cv_path_python_conf" >&6; } |
| 7200 |
|
| 7201 |
PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 7202 |
|
| 7203 |
if test "X$PYTHON_CONFDIR" = "X"; then |
| 7204 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 |
| 7205 |
printf "%s\n" "can't find it!" >&6; } |
| 7206 |
else |
| 7207 |
|
| 7208 |
if test ${vi_cv_path_python_plibs+y} |
| 7209 |
then : |
| 7210 |
printf %s "(cached) " >&6 |
| 7211 |
else case e in #( |
| 7212 |
e) |
| 7213 |
pwd=`pwd` |
| 7214 |
tmp_mkf="$pwd/config-PyMake$$" |
| 7215 |
cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
| 7216 |
__: |
| 7217 |
@echo "python_BASEMODLIBS='$(BASEMODLIBS)'" |
| 7218 |
@echo "python_LIBS='$(LIBS)'" |
| 7219 |
@echo "python_SYSLIBS='$(SYSLIBS)'" |
| 7220 |
@echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 7221 |
@echo "python_DLLLIBRARY='$(DLLLIBRARY)'" |
| 7222 |
@echo "python_INSTSONAME='$(INSTSONAME)'" |
| 7223 |
@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" |
| 7224 |
@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" |
| 7225 |
@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" |
| 7226 |
eof |
| 7227 |
eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 7228 |
rm -f -- "${tmp_mkf}" |
| 7229 |
if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ |
| 7230 |
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 7231 |
vi_cv_path_python_plibs="-framework Python" |
| 7232 |
if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then |
| 7233 |
vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" |
| 7234 |
fi |
| 7235 |
else |
| 7236 |
vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 7237 |
if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then |
| 7238 |
python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` |
| 7239 |
python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` |
| 7240 |
if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then |
| 7241 |
python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" |
| 7242 |
if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then |
| 7243 |
python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" |
| 7244 |
fi |
| 7245 |
python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" |
| 7246 |
fi |
| 7247 |
fi |
| 7248 |
vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 7249 |
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 7250 |
fi |
| 7251 |
;; |
| 7252 |
esac |
| 7253 |
fi |
| 7254 |
|
| 7255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 |
| 7256 |
printf %s "checking Python's dll name... " >&6; } |
| 7257 |
if test ${vi_cv_dll_name_python+y} |
| 7258 |
then : |
| 7259 |
printf %s "(cached) " >&6 |
| 7260 |
else case e in #( |
| 7261 |
e) |
| 7262 |
if test "X$python_DLLLIBRARY" != "X"; then |
| 7263 |
vi_cv_dll_name_python="$python_DLLLIBRARY" |
| 7264 |
else |
| 7265 |
vi_cv_dll_name_python="$python_INSTSONAME" |
| 7266 |
fi |
| 7267 |
;; |
| 7268 |
esac |
| 7269 |
fi |
| 7270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 |
| 7271 |
printf "%s\n" "$vi_cv_dll_name_python" >&6; } |
| 7272 |
|
| 7273 |
PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 7274 |
if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 7275 |
PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 7276 |
else |
| 7277 |
PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}" |
| 7278 |
fi |
| 7279 |
if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then |
| 7280 |
PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" |
| 7281 |
|
| 7282 |
fi |
| 7283 |
PYTHON_SRC="if_python.c" |
| 7284 |
PYTHON_OBJ="objects/if_python.o" |
| 7285 |
|
| 7286 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 |
| 7287 |
printf %s "checking if -pthread should be used... " >&6; } |
| 7288 |
threadsafe_flag= |
| 7289 |
thread_lib= |
| 7290 |
if test "$vim_cv_uname_output" != Darwin; then |
| 7291 |
test "$GCC" = yes && threadsafe_flag="-pthread" |
| 7292 |
if test "$vim_cv_uname_output" = FreeBSD; then |
| 7293 |
threadsafe_flag="-D_THREAD_SAFE" |
| 7294 |
thread_lib="-pthread" |
| 7295 |
fi |
| 7296 |
if test "$vim_cv_uname_output" = SunOS; then |
| 7297 |
threadsafe_flag="-pthreads" |
| 7298 |
fi |
| 7299 |
fi |
| 7300 |
libs_save_old=$LIBS |
| 7301 |
if test -n "$threadsafe_flag"; then |
| 7302 |
cflags_save=$CFLAGS |
| 7303 |
CFLAGS="$CFLAGS $threadsafe_flag" |
| 7304 |
LIBS="$LIBS $thread_lib" |
| 7305 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7306 |
/* end confdefs.h. */ |
| 7307 |
|
| 7308 |
int |
| 7309 |
main (void) |
| 7310 |
{ |
| 7311 |
|
| 7312 |
; |
| 7313 |
return 0; |
| 7314 |
} |
| 7315 |
_ACEOF |
| 7316 |
if ac_fn_c_try_link "$LINENO" |
| 7317 |
then : |
| 7318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7319 |
printf "%s\n" "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
| 7320 |
else case e in #( |
| 7321 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7322 |
printf "%s\n" "no" >&6; }; LIBS=$libs_save_old |
| 7323 |
;; |
| 7324 |
esac |
| 7325 |
fi |
| 7326 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7327 |
conftest$ac_exeext conftest.$ac_ext |
| 7328 |
CFLAGS=$cflags_save |
| 7329 |
else |
| 7330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7331 |
printf "%s\n" "no" >&6; } |
| 7332 |
fi |
| 7333 |
|
| 7334 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 |
| 7335 |
printf %s "checking if compile and link flags for Python are sane... " >&6; } |
| 7336 |
cflags_save=$CFLAGS |
| 7337 |
libs_save=$LIBS |
| 7338 |
CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 7339 |
LIBS="$LIBS $PYTHON_LIBS" |
| 7340 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7341 |
/* end confdefs.h. */ |
| 7342 |
|
| 7343 |
int |
| 7344 |
main (void) |
| 7345 |
{ |
| 7346 |
|
| 7347 |
; |
| 7348 |
return 0; |
| 7349 |
} |
| 7350 |
_ACEOF |
| 7351 |
if ac_fn_c_try_link "$LINENO" |
| 7352 |
then : |
| 7353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7354 |
printf "%s\n" "yes" >&6; }; python_ok=yes |
| 7355 |
else case e in #( |
| 7356 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 |
| 7357 |
printf "%s\n" "no: PYTHON DISABLED" >&6; }; python_ok=no ;; |
| 7358 |
esac |
| 7359 |
fi |
| 7360 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7361 |
conftest$ac_exeext conftest.$ac_ext |
| 7362 |
CFLAGS=$cflags_save |
| 7363 |
LIBS=$libs_save |
| 7364 |
if test $python_ok = yes; then |
| 7365 |
printf "%s\n" "#define FEAT_PYTHON 1" >>confdefs.h |
| 7366 |
|
| 7367 |
else |
| 7368 |
LIBS=$libs_save_old |
| 7369 |
PYTHON_SRC= |
| 7370 |
PYTHON_OBJ= |
| 7371 |
PYTHON_LIBS= |
| 7372 |
PYTHON_CFLAGS= |
| 7373 |
fi |
| 7374 |
fi |
| 7375 |
else |
| 7376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old" >&5 |
| 7377 |
printf "%s\n" "too old" >&6; } |
| 7378 |
fi |
| 7379 |
fi |
| 7380 |
|
| 7381 |
if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then |
| 7382 |
as_fn_error $? "could not configure python" "$LINENO" 5 |
| 7383 |
fi |
| 7384 |
fi |
| 7385 |
|
| 7386 |
|
| 7387 |
|
| 7388 |
|
| 7389 |
|
| 7390 |
|
| 7391 |
|
| 7392 |
|
| 7393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 |
| 7394 |
printf %s "checking --enable-python3interp argument... " >&6; } |
| 7395 |
# Check whether --enable-python3interp was given. |
| 7396 |
if test ${enable_python3interp+y} |
| 7397 |
then : |
| 7398 |
enableval=$enable_python3interp; |
| 7399 |
else case e in #( |
| 7400 |
e) enable_python3interp="no" ;; |
| 7401 |
esac |
| 7402 |
fi |
| 7403 |
|
| 7404 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 |
| 7405 |
printf "%s\n" "$enable_python3interp" >&6; } |
| 7406 |
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then |
| 7407 |
if test "$has_eval" = "no"; then |
| 7408 |
as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5 |
| 7409 |
fi |
| 7410 |
|
| 7411 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 |
| 7412 |
printf %s "checking --with-python3-command argument... " >&6; } |
| 7413 |
|
| 7414 |
|
| 7415 |
# Check whether --with-python3-command was given. |
| 7416 |
if test ${with_python3_command+y} |
| 7417 |
then : |
| 7418 |
withval=$with_python3_command; vi_cv_path_python3="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 |
| 7419 |
printf "%s\n" "$vi_cv_path_python3" >&6; } |
| 7420 |
else case e in #( |
| 7421 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7422 |
printf "%s\n" "no" >&6; } ;; |
| 7423 |
esac |
| 7424 |
fi |
| 7425 |
|
| 7426 |
|
| 7427 |
if test "X$vi_cv_path_python3" = "X"; then |
| 7428 |
for ac_prog in python3 python |
| 7429 |
do |
| 7430 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7431 |
set dummy $ac_prog; ac_word=$2 |
| 7432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7433 |
printf %s "checking for $ac_word... " >&6; } |
| 7434 |
if test ${ac_cv_path_vi_cv_path_python3+y} |
| 7435 |
then : |
| 7436 |
printf %s "(cached) " >&6 |
| 7437 |
else case e in #( |
| 7438 |
e) case $vi_cv_path_python3 in |
| 7439 |
[\\/]* | ?:[\\/]*) |
| 7440 |
ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. |
| 7441 |
;; |
| 7442 |
*) |
| 7443 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7444 |
for as_dir in $PATH |
| 7445 |
do |
| 7446 |
IFS=$as_save_IFS |
| 7447 |
case $as_dir in #((( |
| 7448 |
'') as_dir=./ ;; |
| 7449 |
*/) ;; |
| 7450 |
*) as_dir=$as_dir/ ;; |
| 7451 |
esac |
| 7452 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7453 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7454 |
ac_cv_path_vi_cv_path_python3="$as_dir$ac_word$ac_exec_ext" |
| 7455 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7456 |
break 2 |
| 7457 |
fi |
| 7458 |
done |
| 7459 |
done |
| 7460 |
IFS=$as_save_IFS |
| 7461 |
|
| 7462 |
;; |
| 7463 |
esac ;; |
| 7464 |
esac |
| 7465 |
fi |
| 7466 |
vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 |
| 7467 |
if test -n "$vi_cv_path_python3"; then |
| 7468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 |
| 7469 |
printf "%s\n" "$vi_cv_path_python3" >&6; } |
| 7470 |
else |
| 7471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7472 |
printf "%s\n" "no" >&6; } |
| 7473 |
fi |
| 7474 |
|
| 7475 |
|
| 7476 |
test -n "$vi_cv_path_python3" && break |
| 7477 |
done |
| 7478 |
|
| 7479 |
fi |
| 7480 |
if test "X$vi_cv_path_python3" != "X"; then |
| 7481 |
|
| 7482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 |
| 7483 |
printf %s "checking Python version... " >&6; } |
| 7484 |
if test ${vi_cv_var_python3_version+y} |
| 7485 |
then : |
| 7486 |
printf %s "(cached) " >&6 |
| 7487 |
else case e in #( |
| 7488 |
e) vi_cv_var_python3_version=` |
| 7489 |
${vi_cv_path_python3} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'` |
| 7490 |
;; |
| 7491 |
esac |
| 7492 |
fi |
| 7493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 |
| 7494 |
printf "%s\n" "$vi_cv_var_python3_version" >&6; } |
| 7495 |
|
| 7496 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 |
| 7497 |
printf %s "checking Python is 3.0 or better... " >&6; } |
| 7498 |
if ${vi_cv_path_python3} -c \ |
| 7499 |
"import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" |
| 7500 |
then |
| 7501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yep" >&5 |
| 7502 |
printf "%s\n" "yep" >&6; } |
| 7503 |
|
| 7504 |
python3_stable_abi_default=3.8 |
| 7505 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python3-stable-abi argument" >&5 |
| 7506 |
printf %s "checking --with-python3-stable-abi argument... " >&6; } |
| 7507 |
|
| 7508 |
|
| 7509 |
# Check whether --with-python3-stable-abi was given. |
| 7510 |
if test ${with_python3_stable_abi+y} |
| 7511 |
then : |
| 7512 |
withval=$with_python3_stable_abi; |
| 7513 |
if test "X$withval" = "Xyes"; then |
| 7514 |
vi_cv_var_python3_stable_abi=$python3_stable_abi_default |
| 7515 |
else |
| 7516 |
vi_cv_var_python3_stable_abi="$withval" |
| 7517 |
fi |
| 7518 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5 |
| 7519 |
printf "%s\n" "$vi_cv_var_python3_stable_abi" >&6; } |
| 7520 |
else case e in #( |
| 7521 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7522 |
printf "%s\n" "no" >&6; } ;; |
| 7523 |
esac |
| 7524 |
fi |
| 7525 |
|
| 7526 |
if test "X$vi_cv_var_python3_stable_abi" != "X"; then |
| 7527 |
if test ${vi_cv_var_python3_stable_abi_hex+y} |
| 7528 |
then : |
| 7529 |
printf %s "(cached) " >&6 |
| 7530 |
else case e in #( |
| 7531 |
e) |
| 7532 |
vi_cv_var_python3_stable_abi_hex=` |
| 7533 |
${vi_cv_path_python3} -c \ |
| 7534 |
"major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"` ;; |
| 7535 |
esac |
| 7536 |
fi |
| 7537 |
|
| 7538 |
if test "X$vi_cv_var_python3_stable_abi_hex" = "X"; then |
| 7539 |
as_fn_error $? "can't parse Python 3 stable ABI version. It should be \"<major>.<minor>\"" "$LINENO" 5 |
| 7540 |
fi |
| 7541 |
fi |
| 7542 |
|
| 7543 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 |
| 7544 |
printf %s "checking Python's abiflags... " >&6; } |
| 7545 |
if test ${vi_cv_var_python3_abiflags+y} |
| 7546 |
then : |
| 7547 |
printf %s "(cached) " >&6 |
| 7548 |
else case e in #( |
| 7549 |
e) |
| 7550 |
vi_cv_var_python3_abiflags= |
| 7551 |
if ${vi_cv_path_python3} -c \ |
| 7552 |
"import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" |
| 7553 |
then |
| 7554 |
vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ |
| 7555 |
"import sys; print(sys.abiflags)"` |
| 7556 |
fi ;; |
| 7557 |
esac |
| 7558 |
fi |
| 7559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 |
| 7560 |
printf "%s\n" "$vi_cv_var_python3_abiflags" >&6; } |
| 7561 |
|
| 7562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 |
| 7563 |
printf %s "checking Python's install prefix... " >&6; } |
| 7564 |
if test ${vi_cv_path_python3_pfx+y} |
| 7565 |
then : |
| 7566 |
printf %s "(cached) " >&6 |
| 7567 |
else case e in #( |
| 7568 |
e) vi_cv_path_python3_pfx=` |
| 7569 |
${vi_cv_path_python3} -c \ |
| 7570 |
"import sys; print(sys.prefix)"` ;; |
| 7571 |
esac |
| 7572 |
fi |
| 7573 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 |
| 7574 |
printf "%s\n" "$vi_cv_path_python3_pfx" >&6; } |
| 7575 |
|
| 7576 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 |
| 7577 |
printf %s "checking Python's execution prefix... " >&6; } |
| 7578 |
if test ${vi_cv_path_python3_epfx+y} |
| 7579 |
then : |
| 7580 |
printf %s "(cached) " >&6 |
| 7581 |
else case e in #( |
| 7582 |
e) vi_cv_path_python3_epfx=` |
| 7583 |
${vi_cv_path_python3} -c \ |
| 7584 |
"import sys; print(sys.exec_prefix)"` ;; |
| 7585 |
esac |
| 7586 |
fi |
| 7587 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 |
| 7588 |
printf "%s\n" "$vi_cv_path_python3_epfx" >&6; } |
| 7589 |
|
| 7590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's include path" >&5 |
| 7591 |
printf %s "checking Python's include path... " >&6; } |
| 7592 |
if test ${vi_cv_path_python3_include+y} |
| 7593 |
then : |
| 7594 |
printf %s "(cached) " >&6 |
| 7595 |
else case e in #( |
| 7596 |
e) vi_cv_path_python3_include=` |
| 7597 |
${vi_cv_path_python3} -c \ |
| 7598 |
"import sysconfig; print(sysconfig.get_path(\"include\"))"` ;; |
| 7599 |
esac |
| 7600 |
fi |
| 7601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_include" >&5 |
| 7602 |
printf "%s\n" "$vi_cv_path_python3_include" >&6; } |
| 7603 |
|
| 7604 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's include path" >&5 |
| 7605 |
printf %s "checking Python's include path... " >&6; } |
| 7606 |
if test ${vi_cv_path_python3_platinclude+y} |
| 7607 |
then : |
| 7608 |
printf %s "(cached) " >&6 |
| 7609 |
else case e in #( |
| 7610 |
e) vi_cv_path_python3_platinclude=` |
| 7611 |
${vi_cv_path_python3} -c \ |
| 7612 |
"import sysconfig; print(sysconfig.get_path(\"platinclude\"))"` ;; |
| 7613 |
esac |
| 7614 |
fi |
| 7615 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_platinclude" >&5 |
| 7616 |
printf "%s\n" "$vi_cv_path_python3_platinclude" >&6; } |
| 7617 |
|
| 7618 |
|
| 7619 |
if test ${vi_cv_path_python3path+y} |
| 7620 |
then : |
| 7621 |
printf %s "(cached) " >&6 |
| 7622 |
else case e in #( |
| 7623 |
e) vi_cv_path_python3path=` |
| 7624 |
unset PYTHONPATH; |
| 7625 |
${vi_cv_path_python3} -c \ |
| 7626 |
"import sys, string; print(':'.join(sys.path))"` ;; |
| 7627 |
esac |
| 7628 |
fi |
| 7629 |
|
| 7630 |
|
| 7631 |
|
| 7632 |
|
| 7633 |
# Check whether --with-python3-config-dir was given. |
| 7634 |
if test ${with_python3_config_dir+y} |
| 7635 |
then : |
| 7636 |
withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 |
| 7637 |
fi |
| 7638 |
|
| 7639 |
|
| 7640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 |
| 7641 |
printf %s "checking Python's configuration directory... " >&6; } |
| 7642 |
if test ${vi_cv_path_python3_conf+y} |
| 7643 |
then : |
| 7644 |
printf %s "(cached) " >&6 |
| 7645 |
else case e in #( |
| 7646 |
e) |
| 7647 |
vi_cv_path_python3_conf= |
| 7648 |
config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" |
| 7649 |
d=`${vi_cv_path_python3} -c "import sysconfig; print(sysconfig.get_config_var('LIBPL'))" 2> /dev/null` |
| 7650 |
if test "x$d" = "x"; then |
| 7651 |
d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` |
| 7652 |
fi |
| 7653 |
if test -d "$d" && test -f "$d/config.c"; then |
| 7654 |
vi_cv_path_python3_conf="$d" |
| 7655 |
else |
| 7656 |
for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do |
| 7657 |
for subdir in lib64 lib share; do |
| 7658 |
d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" |
| 7659 |
if test -d "$d" && test -f "$d/config.c"; then |
| 7660 |
vi_cv_path_python3_conf="$d" |
| 7661 |
fi |
| 7662 |
done |
| 7663 |
done |
| 7664 |
fi |
| 7665 |
;; |
| 7666 |
esac |
| 7667 |
fi |
| 7668 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 |
| 7669 |
printf "%s\n" "$vi_cv_path_python3_conf" >&6; } |
| 7670 |
|
| 7671 |
PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" |
| 7672 |
|
| 7673 |
if test "X$PYTHON3_CONFDIR" = "X"; then |
| 7674 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 |
| 7675 |
printf "%s\n" "can't find it!" >&6; } |
| 7676 |
else |
| 7677 |
|
| 7678 |
if test ${vi_cv_path_python3_plibs+y} |
| 7679 |
then : |
| 7680 |
printf %s "(cached) " >&6 |
| 7681 |
else case e in #( |
| 7682 |
e) |
| 7683 |
pwd=`pwd` |
| 7684 |
tmp_mkf="$pwd/config-PyMake$$" |
| 7685 |
cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
| 7686 |
__: |
| 7687 |
@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" |
| 7688 |
@echo "python3_LIBS='$(LIBS)'" |
| 7689 |
@echo "python3_SYSLIBS='$(SYSLIBS)'" |
| 7690 |
@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" |
| 7691 |
@echo "python3_INSTSONAME='$(INSTSONAME)'" |
| 7692 |
@echo "python3_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" |
| 7693 |
eof |
| 7694 |
eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 7695 |
rm -f -- "${tmp_mkf}" |
| 7696 |
vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" |
| 7697 |
vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" |
| 7698 |
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` |
| 7699 |
vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` |
| 7700 |
;; |
| 7701 |
esac |
| 7702 |
fi |
| 7703 |
|
| 7704 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 |
| 7705 |
printf %s "checking Python3's dll name... " >&6; } |
| 7706 |
if test ${vi_cv_dll_name_python3+y} |
| 7707 |
then : |
| 7708 |
printf %s "(cached) " >&6 |
| 7709 |
else case e in #( |
| 7710 |
e) |
| 7711 |
if test "X$python3_DLLLIBRARY" != "X"; then |
| 7712 |
vi_cv_dll_name_python3="$python3_DLLLIBRARY" |
| 7713 |
elif test "X$python3_PYTHONFRAMEWORKPREFIX" != "X"; then |
| 7714 |
vi_cv_dll_name_python3="${python3_PYTHONFRAMEWORKPREFIX}/${python3_INSTSONAME}" |
| 7715 |
else |
| 7716 |
vi_cv_dll_name_python3="$python3_INSTSONAME" |
| 7717 |
fi |
| 7718 |
;; |
| 7719 |
esac |
| 7720 |
fi |
| 7721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 |
| 7722 |
printf "%s\n" "$vi_cv_dll_name_python3" >&6; } |
| 7723 |
|
| 7724 |
PYTHON3_LIBS="${vi_cv_path_python3_plibs}" |
| 7725 |
if test "${vi_cv_path_python3_include}" = "${vi_cv_path_python3_platinclude}"; then |
| 7726 |
PYTHON3_CFLAGS="-I${vi_cv_path_python3_include}" |
| 7727 |
else |
| 7728 |
PYTHON3_CFLAGS="-I${vi_cv_path_python3_include} -I${vi_cv_path_python3_platinclude}" |
| 7729 |
fi |
| 7730 |
if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then |
| 7731 |
PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" |
| 7732 |
fi |
| 7733 |
if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
| 7734 |
PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPy_LIMITED_API=${vi_cv_var_python3_stable_abi_hex}" |
| 7735 |
fi |
| 7736 |
PYTHON3_SRC="if_python3.c" |
| 7737 |
PYTHON3_OBJ="objects/if_python3.o" |
| 7738 |
|
| 7739 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 |
| 7740 |
printf %s "checking if -pthread should be used... " >&6; } |
| 7741 |
threadsafe_flag= |
| 7742 |
thread_lib= |
| 7743 |
if test "$vim_cv_uname_output" != Darwin; then |
| 7744 |
test "$GCC" = yes && threadsafe_flag="-pthread" |
| 7745 |
if test "$vim_cv_uname_output" = FreeBSD; then |
| 7746 |
threadsafe_flag="-D_THREAD_SAFE" |
| 7747 |
thread_lib="-pthread" |
| 7748 |
fi |
| 7749 |
if test "$vim_cv_uname_output" = SunOS; then |
| 7750 |
threadsafe_flag="-pthreads" |
| 7751 |
fi |
| 7752 |
fi |
| 7753 |
libs_save_old=$LIBS |
| 7754 |
if test -n "$threadsafe_flag"; then |
| 7755 |
cflags_save=$CFLAGS |
| 7756 |
CFLAGS="$CFLAGS $threadsafe_flag" |
| 7757 |
LIBS="$LIBS $thread_lib" |
| 7758 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7759 |
/* end confdefs.h. */ |
| 7760 |
|
| 7761 |
int |
| 7762 |
main (void) |
| 7763 |
{ |
| 7764 |
|
| 7765 |
; |
| 7766 |
return 0; |
| 7767 |
} |
| 7768 |
_ACEOF |
| 7769 |
if ac_fn_c_try_link "$LINENO" |
| 7770 |
then : |
| 7771 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7772 |
printf "%s\n" "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" |
| 7773 |
else case e in #( |
| 7774 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7775 |
printf "%s\n" "no" >&6; }; LIBS=$libs_save_old |
| 7776 |
;; |
| 7777 |
esac |
| 7778 |
fi |
| 7779 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7780 |
conftest$ac_exeext conftest.$ac_ext |
| 7781 |
CFLAGS=$cflags_save |
| 7782 |
else |
| 7783 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7784 |
printf "%s\n" "no" >&6; } |
| 7785 |
fi |
| 7786 |
|
| 7787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 |
| 7788 |
printf %s "checking if compile and link flags for Python 3 are sane... " >&6; } |
| 7789 |
cflags_save=$CFLAGS |
| 7790 |
libs_save=$LIBS |
| 7791 |
CFLAGS="$CFLAGS $PYTHON3_CFLAGS" |
| 7792 |
LIBS="$LIBS $PYTHON3_LIBS" |
| 7793 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7794 |
/* end confdefs.h. */ |
| 7795 |
|
| 7796 |
int |
| 7797 |
main (void) |
| 7798 |
{ |
| 7799 |
|
| 7800 |
; |
| 7801 |
return 0; |
| 7802 |
} |
| 7803 |
_ACEOF |
| 7804 |
if ac_fn_c_try_link "$LINENO" |
| 7805 |
then : |
| 7806 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7807 |
printf "%s\n" "yes" >&6; }; python3_ok=yes |
| 7808 |
else case e in #( |
| 7809 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 |
| 7810 |
printf "%s\n" "no: PYTHON3 DISABLED" >&6; }; python3_ok=no ;; |
| 7811 |
esac |
| 7812 |
fi |
| 7813 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7814 |
conftest$ac_exeext conftest.$ac_ext |
| 7815 |
CFLAGS=$cflags_save |
| 7816 |
LIBS=$libs_save |
| 7817 |
if test "$python3_ok" = yes; then |
| 7818 |
printf "%s\n" "#define FEAT_PYTHON3 1" >>confdefs.h |
| 7819 |
|
| 7820 |
else |
| 7821 |
LIBS=$libs_save_old |
| 7822 |
PYTHON3_SRC= |
| 7823 |
PYTHON3_OBJ= |
| 7824 |
PYTHON3_LIBS= |
| 7825 |
PYTHON3_CFLAGS= |
| 7826 |
fi |
| 7827 |
fi |
| 7828 |
else |
| 7829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old" >&5 |
| 7830 |
printf "%s\n" "too old" >&6; } |
| 7831 |
fi |
| 7832 |
fi |
| 7833 |
if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then |
| 7834 |
as_fn_error $? "could not configure python3" "$LINENO" 5 |
| 7835 |
fi |
| 7836 |
fi |
| 7837 |
|
| 7838 |
|
| 7839 |
|
| 7840 |
|
| 7841 |
|
| 7842 |
|
| 7843 |
|
| 7844 |
if test "$python_ok" = yes && test "$python3_ok" = yes; then |
| 7845 |
printf "%s\n" "#define DYNAMIC_PYTHON 1" >>confdefs.h |
| 7846 |
|
| 7847 |
printf "%s\n" "#define DYNAMIC_PYTHON3 1" >>confdefs.h |
| 7848 |
|
| 7849 |
if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
| 7850 |
printf "%s\n" "#define DYNAMIC_PYTHON3_STABLE_ABI 1" >>confdefs.h |
| 7851 |
|
| 7852 |
fi |
| 7853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 |
| 7854 |
printf %s "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } |
| 7855 |
cflags_save=$CFLAGS |
| 7856 |
CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 7857 |
libs_save=$LIBS |
| 7858 |
LIBS="-ldl $LIBS" |
| 7859 |
if test "$cross_compiling" = yes |
| 7860 |
then : |
| 7861 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 7862 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 7863 |
as_fn_error $? "cannot run test program while cross compiling |
| 7864 |
See 'config.log' for more details" "$LINENO" 5; } |
| 7865 |
else case e in #( |
| 7866 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7867 |
/* end confdefs.h. */ |
| 7868 |
|
| 7869 |
#include <dlfcn.h> |
| 7870 |
/* If this program fails, then RTLD_GLOBAL is needed. |
| 7871 |
* RTLD_GLOBAL will be used and then it is not possible to |
| 7872 |
* have both python versions enabled in the same vim instance. |
| 7873 |
* Only the first python version used will be switched on. |
| 7874 |
*/ |
| 7875 |
|
| 7876 |
static int no_rtl_global_needed_for(char *python_instsoname, char *prefix) |
| 7877 |
{ |
| 7878 |
int needed = 0; |
| 7879 |
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); |
| 7880 |
if (pylib != 0) |
| 7881 |
{ |
| 7882 |
void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); |
| 7883 |
void (*init)(void) = dlsym(pylib, "Py_Initialize"); |
| 7884 |
int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); |
| 7885 |
void (*final)(void) = dlsym(pylib, "Py_Finalize"); |
| 7886 |
(*pfx)(prefix); |
| 7887 |
(*init)(); |
| 7888 |
needed = (*simple)("import termios") == -1; |
| 7889 |
(*final)(); |
| 7890 |
dlclose(pylib); |
| 7891 |
} |
| 7892 |
return !needed; |
| 7893 |
} |
| 7894 |
|
| 7895 |
int main() |
| 7896 |
{ |
| 7897 |
int not_needed = 0; |
| 7898 |
if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) |
| 7899 |
not_needed = 1; |
| 7900 |
return !not_needed; |
| 7901 |
} |
| 7902 |
_ACEOF |
| 7903 |
if ac_fn_c_try_run "$LINENO" |
| 7904 |
then : |
| 7905 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7906 |
printf "%s\n" "yes" >&6; };printf "%s\n" "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h |
| 7907 |
|
| 7908 |
else case e in #( |
| 7909 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7910 |
printf "%s\n" "no" >&6; } ;; |
| 7911 |
esac |
| 7912 |
fi |
| 7913 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7914 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7915 |
esac |
| 7916 |
fi |
| 7917 |
|
| 7918 |
|
| 7919 |
CFLAGS=$cflags_save |
| 7920 |
LIBS=$libs_save |
| 7921 |
|
| 7922 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 |
| 7923 |
printf %s "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } |
| 7924 |
cflags_save=$CFLAGS |
| 7925 |
CFLAGS="$CFLAGS $PYTHON3_CFLAGS" |
| 7926 |
libs_save=$LIBS |
| 7927 |
LIBS="-ldl $LIBS" |
| 7928 |
if test "$cross_compiling" = yes |
| 7929 |
then : |
| 7930 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 7931 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 7932 |
as_fn_error $? "cannot run test program while cross compiling |
| 7933 |
See 'config.log' for more details" "$LINENO" 5; } |
| 7934 |
else case e in #( |
| 7935 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7936 |
/* end confdefs.h. */ |
| 7937 |
|
| 7938 |
#include <dlfcn.h> |
| 7939 |
#include <wchar.h> |
| 7940 |
/* If this program fails, then RTLD_GLOBAL is needed. |
| 7941 |
* RTLD_GLOBAL will be used and then it is not possible to |
| 7942 |
* have both python versions enabled in the same vim instance. |
| 7943 |
* Only the first python version used will be switched on. |
| 7944 |
*/ |
| 7945 |
|
| 7946 |
static int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) |
| 7947 |
{ |
| 7948 |
int needed = 0; |
| 7949 |
void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); |
| 7950 |
if (pylib != 0) |
| 7951 |
{ |
| 7952 |
void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); |
| 7953 |
void (*init)(void) = dlsym(pylib, "Py_Initialize"); |
| 7954 |
int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); |
| 7955 |
void (*final)(void) = dlsym(pylib, "Py_Finalize"); |
| 7956 |
(*pfx)(prefix); |
| 7957 |
(*init)(); |
| 7958 |
needed = (*simple)("import termios") == -1; |
| 7959 |
(*final)(); |
| 7960 |
dlclose(pylib); |
| 7961 |
} |
| 7962 |
return !needed; |
| 7963 |
} |
| 7964 |
|
| 7965 |
int main() |
| 7966 |
{ |
| 7967 |
int not_needed = 0; |
| 7968 |
if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) |
| 7969 |
not_needed = 1; |
| 7970 |
return !not_needed; |
| 7971 |
} |
| 7972 |
_ACEOF |
| 7973 |
if ac_fn_c_try_run "$LINENO" |
| 7974 |
then : |
| 7975 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7976 |
printf "%s\n" "yes" >&6; };printf "%s\n" "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h |
| 7977 |
|
| 7978 |
else case e in #( |
| 7979 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7980 |
printf "%s\n" "no" >&6; } ;; |
| 7981 |
esac |
| 7982 |
fi |
| 7983 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7984 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7985 |
esac |
| 7986 |
fi |
| 7987 |
|
| 7988 |
|
| 7989 |
CFLAGS=$cflags_save |
| 7990 |
LIBS=$libs_save |
| 7991 |
|
| 7992 |
PYTHON_SRC="if_python.c" |
| 7993 |
PYTHON_OBJ="objects/if_python.o" |
| 7994 |
PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" |
| 7995 |
PYTHON_LIBS= |
| 7996 |
PYTHON3_SRC="if_python3.c" |
| 7997 |
PYTHON3_OBJ="objects/if_python3.o" |
| 7998 |
PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" |
| 7999 |
PYTHON3_LIBS= |
| 8000 |
elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then |
| 8001 |
printf "%s\n" "#define DYNAMIC_PYTHON 1" >>confdefs.h |
| 8002 |
|
| 8003 |
PYTHON_SRC="if_python.c" |
| 8004 |
PYTHON_OBJ="objects/if_python.o" |
| 8005 |
PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" |
| 8006 |
PYTHON_LIBS= |
| 8007 |
elif test "$python_ok" = yes; then |
| 8008 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 |
| 8009 |
printf %s "checking if -fPIE can be added for Python... " >&6; } |
| 8010 |
cflags_save=$CFLAGS |
| 8011 |
libs_save=$LIBS |
| 8012 |
CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" |
| 8013 |
LIBS="$LIBS $PYTHON_LIBS" |
| 8014 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8015 |
/* end confdefs.h. */ |
| 8016 |
|
| 8017 |
int |
| 8018 |
main (void) |
| 8019 |
{ |
| 8020 |
|
| 8021 |
; |
| 8022 |
return 0; |
| 8023 |
} |
| 8024 |
_ACEOF |
| 8025 |
if ac_fn_c_try_link "$LINENO" |
| 8026 |
then : |
| 8027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8028 |
printf "%s\n" "yes" >&6; }; fpie_ok=yes |
| 8029 |
else case e in #( |
| 8030 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8031 |
printf "%s\n" "no" >&6; }; fpie_ok=no ;; |
| 8032 |
esac |
| 8033 |
fi |
| 8034 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8035 |
conftest$ac_exeext conftest.$ac_ext |
| 8036 |
CFLAGS=$cflags_save |
| 8037 |
LIBS=$libs_save |
| 8038 |
if test $fpie_ok = yes; then |
| 8039 |
PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" |
| 8040 |
fi |
| 8041 |
elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then |
| 8042 |
printf "%s\n" "#define DYNAMIC_PYTHON3 1" >>confdefs.h |
| 8043 |
|
| 8044 |
if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
| 8045 |
printf "%s\n" "#define DYNAMIC_PYTHON3_STABLE_ABI 1" >>confdefs.h |
| 8046 |
|
| 8047 |
fi |
| 8048 |
PYTHON3_SRC="if_python3.c" |
| 8049 |
PYTHON3_OBJ="objects/if_python3.o" |
| 8050 |
PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" |
| 8051 |
PYTHON3_LIBS= |
| 8052 |
elif test "$python3_ok" = yes; then |
| 8053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 |
| 8054 |
printf %s "checking if -fPIE can be added for Python3... " >&6; } |
| 8055 |
cflags_save=$CFLAGS |
| 8056 |
libs_save=$LIBS |
| 8057 |
CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" |
| 8058 |
LIBS="$LIBS $PYTHON3_LIBS" |
| 8059 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8060 |
/* end confdefs.h. */ |
| 8061 |
|
| 8062 |
int |
| 8063 |
main (void) |
| 8064 |
{ |
| 8065 |
|
| 8066 |
; |
| 8067 |
return 0; |
| 8068 |
} |
| 8069 |
_ACEOF |
| 8070 |
if ac_fn_c_try_link "$LINENO" |
| 8071 |
then : |
| 8072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8073 |
printf "%s\n" "yes" >&6; }; fpie_ok=yes |
| 8074 |
else case e in #( |
| 8075 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8076 |
printf "%s\n" "no" >&6; }; fpie_ok=no ;; |
| 8077 |
esac |
| 8078 |
fi |
| 8079 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8080 |
conftest$ac_exeext conftest.$ac_ext |
| 8081 |
CFLAGS=$cflags_save |
| 8082 |
LIBS=$libs_save |
| 8083 |
if test $fpie_ok = yes; then |
| 8084 |
PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" |
| 8085 |
fi |
| 8086 |
fi |
| 8087 |
|
| 8088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 |
| 8089 |
printf %s "checking --enable-tclinterp argument... " >&6; } |
| 8090 |
# Check whether --enable-tclinterp was given. |
| 8091 |
if test ${enable_tclinterp+y} |
| 8092 |
then : |
| 8093 |
enableval=$enable_tclinterp; |
| 8094 |
else case e in #( |
| 8095 |
e) enable_tclinterp="no" ;; |
| 8096 |
esac |
| 8097 |
fi |
| 8098 |
|
| 8099 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 |
| 8100 |
printf "%s\n" "$enable_tclinterp" >&6; } |
| 8101 |
|
| 8102 |
if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then |
| 8103 |
|
| 8104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 |
| 8105 |
printf %s "checking --with-tclsh argument... " >&6; } |
| 8106 |
|
| 8107 |
# Check whether --with-tclsh was given. |
| 8108 |
if test ${with_tclsh+y} |
| 8109 |
then : |
| 8110 |
withval=$with_tclsh; tclsh_name="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 |
| 8111 |
printf "%s\n" "$tclsh_name" >&6; } |
| 8112 |
else case e in #( |
| 8113 |
e) tclsh_name="tclsh8.5"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8114 |
printf "%s\n" "no" >&6; } ;; |
| 8115 |
esac |
| 8116 |
fi |
| 8117 |
|
| 8118 |
# Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8119 |
set dummy $tclsh_name; ac_word=$2 |
| 8120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8121 |
printf %s "checking for $ac_word... " >&6; } |
| 8122 |
if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8123 |
then : |
| 8124 |
printf %s "(cached) " >&6 |
| 8125 |
else case e in #( |
| 8126 |
e) case $vi_cv_path_tcl in |
| 8127 |
[\\/]* | ?:[\\/]*) |
| 8128 |
ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8129 |
;; |
| 8130 |
*) |
| 8131 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8132 |
for as_dir in $PATH |
| 8133 |
do |
| 8134 |
IFS=$as_save_IFS |
| 8135 |
case $as_dir in #((( |
| 8136 |
'') as_dir=./ ;; |
| 8137 |
*/) ;; |
| 8138 |
*) as_dir=$as_dir/ ;; |
| 8139 |
esac |
| 8140 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8141 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8142 |
ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8143 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8144 |
break 2 |
| 8145 |
fi |
| 8146 |
done |
| 8147 |
done |
| 8148 |
IFS=$as_save_IFS |
| 8149 |
|
| 8150 |
;; |
| 8151 |
esac ;; |
| 8152 |
esac |
| 8153 |
fi |
| 8154 |
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 8155 |
if test -n "$vi_cv_path_tcl"; then |
| 8156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8157 |
printf "%s\n" "$vi_cv_path_tcl" >&6; } |
| 8158 |
else |
| 8159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8160 |
printf "%s\n" "no" >&6; } |
| 8161 |
fi |
| 8162 |
|
| 8163 |
|
| 8164 |
|
| 8165 |
|
| 8166 |
if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 8167 |
tclsh_name="tclsh8.4" |
| 8168 |
# Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8169 |
set dummy $tclsh_name; ac_word=$2 |
| 8170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8171 |
printf %s "checking for $ac_word... " >&6; } |
| 8172 |
if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8173 |
then : |
| 8174 |
printf %s "(cached) " >&6 |
| 8175 |
else case e in #( |
| 8176 |
e) case $vi_cv_path_tcl in |
| 8177 |
[\\/]* | ?:[\\/]*) |
| 8178 |
ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8179 |
;; |
| 8180 |
*) |
| 8181 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8182 |
for as_dir in $PATH |
| 8183 |
do |
| 8184 |
IFS=$as_save_IFS |
| 8185 |
case $as_dir in #((( |
| 8186 |
'') as_dir=./ ;; |
| 8187 |
*/) ;; |
| 8188 |
*) as_dir=$as_dir/ ;; |
| 8189 |
esac |
| 8190 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8191 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8192 |
ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8193 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8194 |
break 2 |
| 8195 |
fi |
| 8196 |
done |
| 8197 |
done |
| 8198 |
IFS=$as_save_IFS |
| 8199 |
|
| 8200 |
;; |
| 8201 |
esac ;; |
| 8202 |
esac |
| 8203 |
fi |
| 8204 |
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 8205 |
if test -n "$vi_cv_path_tcl"; then |
| 8206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8207 |
printf "%s\n" "$vi_cv_path_tcl" >&6; } |
| 8208 |
else |
| 8209 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8210 |
printf "%s\n" "no" >&6; } |
| 8211 |
fi |
| 8212 |
|
| 8213 |
|
| 8214 |
fi |
| 8215 |
if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then |
| 8216 |
tclsh_name="tclsh8.2" |
| 8217 |
# Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8218 |
set dummy $tclsh_name; ac_word=$2 |
| 8219 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8220 |
printf %s "checking for $ac_word... " >&6; } |
| 8221 |
if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8222 |
then : |
| 8223 |
printf %s "(cached) " >&6 |
| 8224 |
else case e in #( |
| 8225 |
e) case $vi_cv_path_tcl in |
| 8226 |
[\\/]* | ?:[\\/]*) |
| 8227 |
ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8228 |
;; |
| 8229 |
*) |
| 8230 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8231 |
for as_dir in $PATH |
| 8232 |
do |
| 8233 |
IFS=$as_save_IFS |
| 8234 |
case $as_dir in #((( |
| 8235 |
'') as_dir=./ ;; |
| 8236 |
*/) ;; |
| 8237 |
*) as_dir=$as_dir/ ;; |
| 8238 |
esac |
| 8239 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8240 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8241 |
ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8242 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8243 |
break 2 |
| 8244 |
fi |
| 8245 |
done |
| 8246 |
done |
| 8247 |
IFS=$as_save_IFS |
| 8248 |
|
| 8249 |
;; |
| 8250 |
esac ;; |
| 8251 |
esac |
| 8252 |
fi |
| 8253 |
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 8254 |
if test -n "$vi_cv_path_tcl"; then |
| 8255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8256 |
printf "%s\n" "$vi_cv_path_tcl" >&6; } |
| 8257 |
else |
| 8258 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8259 |
printf "%s\n" "no" >&6; } |
| 8260 |
fi |
| 8261 |
|
| 8262 |
|
| 8263 |
fi |
| 8264 |
if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 8265 |
tclsh_name="tclsh8.0" |
| 8266 |
# Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8267 |
set dummy $tclsh_name; ac_word=$2 |
| 8268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8269 |
printf %s "checking for $ac_word... " >&6; } |
| 8270 |
if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8271 |
then : |
| 8272 |
printf %s "(cached) " >&6 |
| 8273 |
else case e in #( |
| 8274 |
e) case $vi_cv_path_tcl in |
| 8275 |
[\\/]* | ?:[\\/]*) |
| 8276 |
ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8277 |
;; |
| 8278 |
*) |
| 8279 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8280 |
for as_dir in $PATH |
| 8281 |
do |
| 8282 |
IFS=$as_save_IFS |
| 8283 |
case $as_dir in #((( |
| 8284 |
'') as_dir=./ ;; |
| 8285 |
*/) ;; |
| 8286 |
*) as_dir=$as_dir/ ;; |
| 8287 |
esac |
| 8288 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8289 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8290 |
ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8291 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8292 |
break 2 |
| 8293 |
fi |
| 8294 |
done |
| 8295 |
done |
| 8296 |
IFS=$as_save_IFS |
| 8297 |
|
| 8298 |
;; |
| 8299 |
esac ;; |
| 8300 |
esac |
| 8301 |
fi |
| 8302 |
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 8303 |
if test -n "$vi_cv_path_tcl"; then |
| 8304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8305 |
printf "%s\n" "$vi_cv_path_tcl" >&6; } |
| 8306 |
else |
| 8307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8308 |
printf "%s\n" "no" >&6; } |
| 8309 |
fi |
| 8310 |
|
| 8311 |
|
| 8312 |
fi |
| 8313 |
if test "X$vi_cv_path_tcl" = "X"; then |
| 8314 |
tclsh_name="tclsh" |
| 8315 |
# Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8316 |
set dummy $tclsh_name; ac_word=$2 |
| 8317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8318 |
printf %s "checking for $ac_word... " >&6; } |
| 8319 |
if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8320 |
then : |
| 8321 |
printf %s "(cached) " >&6 |
| 8322 |
else case e in #( |
| 8323 |
e) case $vi_cv_path_tcl in |
| 8324 |
[\\/]* | ?:[\\/]*) |
| 8325 |
ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8326 |
;; |
| 8327 |
*) |
| 8328 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8329 |
for as_dir in $PATH |
| 8330 |
do |
| 8331 |
IFS=$as_save_IFS |
| 8332 |
case $as_dir in #((( |
| 8333 |
'') as_dir=./ ;; |
| 8334 |
*/) ;; |
| 8335 |
*) as_dir=$as_dir/ ;; |
| 8336 |
esac |
| 8337 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8338 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8339 |
ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8340 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8341 |
break 2 |
| 8342 |
fi |
| 8343 |
done |
| 8344 |
done |
| 8345 |
IFS=$as_save_IFS |
| 8346 |
|
| 8347 |
;; |
| 8348 |
esac ;; |
| 8349 |
esac |
| 8350 |
fi |
| 8351 |
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 8352 |
if test -n "$vi_cv_path_tcl"; then |
| 8353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8354 |
printf "%s\n" "$vi_cv_path_tcl" >&6; } |
| 8355 |
else |
| 8356 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8357 |
printf "%s\n" "no" >&6; } |
| 8358 |
fi |
| 8359 |
|
| 8360 |
|
| 8361 |
fi |
| 8362 |
if test "X$vi_cv_path_tcl" != "X"; then |
| 8363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 |
| 8364 |
printf %s "checking Tcl version... " >&6; } |
| 8365 |
if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then |
| 8366 |
tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
| 8367 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 |
| 8368 |
printf "%s\n" "$tclver - OK" >&6; }; |
| 8369 |
tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` |
| 8370 |
tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` |
| 8371 |
|
| 8372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 |
| 8373 |
printf %s "checking for location of Tcl include... " >&6; } |
| 8374 |
if test "x$MACOS_X" != "xyes"; then |
| 8375 |
tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" |
| 8376 |
else |
| 8377 |
tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /System/Library/Frameworks/Tcl.framework/Headers `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework/Versions/Current/Headers" |
| 8378 |
fi |
| 8379 |
TCL_INC= |
| 8380 |
for try in $tclinc; do |
| 8381 |
if test -f "$try/tcl.h"; then |
| 8382 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 |
| 8383 |
printf "%s\n" "$try/tcl.h" >&6; } |
| 8384 |
TCL_INC=$try |
| 8385 |
break |
| 8386 |
fi |
| 8387 |
done |
| 8388 |
if test -z "$TCL_INC"; then |
| 8389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8390 |
printf "%s\n" "<not found>" >&6; } |
| 8391 |
SKIP_TCL=YES |
| 8392 |
fi |
| 8393 |
if test -z "$SKIP_TCL"; then |
| 8394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 |
| 8395 |
printf %s "checking for location of tclConfig.sh script... " >&6; } |
| 8396 |
if test "x$MACOS_X" != "xyes"; then |
| 8397 |
tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 8398 |
tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
| 8399 |
else |
| 8400 |
tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 8401 |
tclcnf="$tclcnf /System/Library/Frameworks/Tcl.framework `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework" |
| 8402 |
fi |
| 8403 |
for try in $tclcnf; do |
| 8404 |
if test -f "$try/tclConfig.sh"; then |
| 8405 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 |
| 8406 |
printf "%s\n" "$try/tclConfig.sh" >&6; } |
| 8407 |
. "$try/tclConfig.sh" |
| 8408 |
if test "$enable_tclinterp" = "dynamic"; then |
| 8409 |
TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` |
| 8410 |
else |
| 8411 |
TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
| 8412 |
fi |
| 8413 |
TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` |
| 8414 |
break |
| 8415 |
fi |
| 8416 |
done |
| 8417 |
if test -z "$TCL_LIBS"; then |
| 8418 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8419 |
printf "%s\n" "<not found>" >&6; } |
| 8420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 |
| 8421 |
printf %s "checking for Tcl library by myself... " >&6; } |
| 8422 |
tcllib=`echo $tclinc | sed s/include/lib/g` |
| 8423 |
tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
| 8424 |
for ext in .so .a ; do |
| 8425 |
for ver in "" $tclver ; do |
| 8426 |
for try in $tcllib ; do |
| 8427 |
trylib=tcl$ver$ext |
| 8428 |
if test -f "$try/lib$trylib" ; then |
| 8429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 |
| 8430 |
printf "%s\n" "$try/lib$trylib" >&6; } |
| 8431 |
TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" |
| 8432 |
if test "$vim_cv_uname_output" = SunOS && |
| 8433 |
echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
| 8434 |
TCL_LIBS="$TCL_LIBS -R $try" |
| 8435 |
fi |
| 8436 |
break 3 |
| 8437 |
fi |
| 8438 |
done |
| 8439 |
done |
| 8440 |
done |
| 8441 |
if test -z "$TCL_LIBS"; then |
| 8442 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8443 |
printf "%s\n" "<not found>" >&6; } |
| 8444 |
SKIP_TCL=YES |
| 8445 |
fi |
| 8446 |
fi |
| 8447 |
if test -z "$SKIP_TCL"; then |
| 8448 |
printf "%s\n" "#define FEAT_TCL 1" >>confdefs.h |
| 8449 |
|
| 8450 |
TCL_SRC=if_tcl.c |
| 8451 |
TCL_OBJ=objects/if_tcl.o |
| 8452 |
TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 8453 |
fi |
| 8454 |
fi |
| 8455 |
else |
| 8456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 |
| 8457 |
printf "%s\n" "too old; need Tcl version 8.0 or later" >&6; } |
| 8458 |
fi |
| 8459 |
fi |
| 8460 |
if test "$enable_tclinterp" = "dynamic"; then |
| 8461 |
if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then |
| 8462 |
printf "%s\n" "#define DYNAMIC_TCL 1" >>confdefs.h |
| 8463 |
|
| 8464 |
TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" |
| 8465 |
fi |
| 8466 |
fi |
| 8467 |
if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then |
| 8468 |
as_fn_error $? "could not configure Tcl" "$LINENO" 5 |
| 8469 |
fi |
| 8470 |
fi |
| 8471 |
|
| 8472 |
|
| 8473 |
|
| 8474 |
|
| 8475 |
|
| 8476 |
|
| 8477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 |
| 8478 |
printf %s "checking --enable-rubyinterp argument... " >&6; } |
| 8479 |
# Check whether --enable-rubyinterp was given. |
| 8480 |
if test ${enable_rubyinterp+y} |
| 8481 |
then : |
| 8482 |
enableval=$enable_rubyinterp; |
| 8483 |
else case e in #( |
| 8484 |
e) enable_rubyinterp="no" ;; |
| 8485 |
esac |
| 8486 |
fi |
| 8487 |
|
| 8488 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 |
| 8489 |
printf "%s\n" "$enable_rubyinterp" >&6; } |
| 8490 |
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then |
| 8491 |
if test "$has_eval" = "no"; then |
| 8492 |
as_fn_error $? "cannot use Ruby with tiny features" "$LINENO" 5 |
| 8493 |
fi |
| 8494 |
|
| 8495 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 |
| 8496 |
printf %s "checking --with-ruby-command argument... " >&6; } |
| 8497 |
|
| 8498 |
|
| 8499 |
# Check whether --with-ruby-command was given. |
| 8500 |
if test ${with_ruby_command+y} |
| 8501 |
then : |
| 8502 |
withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 |
| 8503 |
printf "%s\n" "$RUBY_CMD" >&6; } |
| 8504 |
else case e in #( |
| 8505 |
e) RUBY_CMD="ruby"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 |
| 8506 |
printf "%s\n" "defaulting to $RUBY_CMD" >&6; } ;; |
| 8507 |
esac |
| 8508 |
fi |
| 8509 |
|
| 8510 |
# Extract the first word of "$RUBY_CMD", so it can be a program name with args. |
| 8511 |
set dummy $RUBY_CMD; ac_word=$2 |
| 8512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8513 |
printf %s "checking for $ac_word... " >&6; } |
| 8514 |
if test ${ac_cv_path_vi_cv_path_ruby+y} |
| 8515 |
then : |
| 8516 |
printf %s "(cached) " >&6 |
| 8517 |
else case e in #( |
| 8518 |
e) case $vi_cv_path_ruby in |
| 8519 |
[\\/]* | ?:[\\/]*) |
| 8520 |
ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 8521 |
;; |
| 8522 |
*) |
| 8523 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8524 |
for as_dir in $PATH |
| 8525 |
do |
| 8526 |
IFS=$as_save_IFS |
| 8527 |
case $as_dir in #((( |
| 8528 |
'') as_dir=./ ;; |
| 8529 |
*/) ;; |
| 8530 |
*) as_dir=$as_dir/ ;; |
| 8531 |
esac |
| 8532 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8533 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8534 |
ac_cv_path_vi_cv_path_ruby="$as_dir$ac_word$ac_exec_ext" |
| 8535 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8536 |
break 2 |
| 8537 |
fi |
| 8538 |
done |
| 8539 |
done |
| 8540 |
IFS=$as_save_IFS |
| 8541 |
|
| 8542 |
;; |
| 8543 |
esac ;; |
| 8544 |
esac |
| 8545 |
fi |
| 8546 |
vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 8547 |
if test -n "$vi_cv_path_ruby"; then |
| 8548 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 |
| 8549 |
printf "%s\n" "$vi_cv_path_ruby" >&6; } |
| 8550 |
else |
| 8551 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8552 |
printf "%s\n" "no" >&6; } |
| 8553 |
fi |
| 8554 |
|
| 8555 |
|
| 8556 |
if test "X$vi_cv_path_ruby" != "X"; then |
| 8557 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 |
| 8558 |
printf %s "checking Ruby version... " >&6; } |
| 8559 |
if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.9.1" or exit 1' >/dev/null 2>/dev/null; then |
| 8560 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 8561 |
printf "%s\n" "OK" >&6; } |
| 8562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 |
| 8563 |
printf %s "checking Ruby rbconfig... " >&6; } |
| 8564 |
ruby_rbconfig="RbConfig" |
| 8565 |
if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then |
| 8566 |
ruby_rbconfig="Config" |
| 8567 |
fi |
| 8568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 |
| 8569 |
printf "%s\n" "$ruby_rbconfig" >&6; } |
| 8570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 |
| 8571 |
printf %s "checking Ruby header files... " >&6; } |
| 8572 |
rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` |
| 8573 |
if test "X$rubyhdrdir" != "X"; then |
| 8574 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 |
| 8575 |
printf "%s\n" "$rubyhdrdir" >&6; } |
| 8576 |
RUBY_CFLAGS="-I$rubyhdrdir" |
| 8577 |
rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` |
| 8578 |
if test -d "$rubyarchdir"; then |
| 8579 |
RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" |
| 8580 |
fi |
| 8581 |
rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` |
| 8582 |
if test "X$rubyversion" = "X"; then |
| 8583 |
rubyversion=`$vi_cv_path_ruby -e "print RUBY_VERSION.gsub(/\./, '')[0,2]"` |
| 8584 |
fi |
| 8585 |
RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" |
| 8586 |
rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` |
| 8587 |
if test "X$rubylibs" != "X"; then |
| 8588 |
RUBY_LIBS="$rubylibs" |
| 8589 |
fi |
| 8590 |
librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` |
| 8591 |
librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` |
| 8592 |
rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` |
| 8593 |
if test -f "$rubylibdir/$librubya" || expr "$librubyarg" : "-lruby" >/dev/null; then |
| 8594 |
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" |
| 8595 |
elif test "$librubyarg" = "libruby.a"; then |
| 8596 |
librubyarg="-lruby" |
| 8597 |
RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" |
| 8598 |
fi |
| 8599 |
|
| 8600 |
if test "X$librubyarg" != "X"; then |
| 8601 |
RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 8602 |
fi |
| 8603 |
|
| 8604 |
|
| 8605 |
RUBY_SRC="if_ruby.c" |
| 8606 |
RUBY_OBJ="objects/if_ruby.o" |
| 8607 |
printf "%s\n" "#define FEAT_RUBY 1" >>confdefs.h |
| 8608 |
|
| 8609 |
if test "$enable_rubyinterp" = "dynamic"; then |
| 8610 |
libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` |
| 8611 |
if test -z "$libruby_soname"; then |
| 8612 |
libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` |
| 8613 |
fi |
| 8614 |
printf "%s\n" "#define DYNAMIC_RUBY 1" >>confdefs.h |
| 8615 |
|
| 8616 |
RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS" |
| 8617 |
RUBY_LIBS= |
| 8618 |
fi |
| 8619 |
if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then |
| 8620 |
RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec" |
| 8621 |
fi |
| 8622 |
else |
| 8623 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 |
| 8624 |
printf "%s\n" "not found; disabling Ruby" >&6; } |
| 8625 |
fi |
| 8626 |
else |
| 8627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.9.1 or later" >&5 |
| 8628 |
printf "%s\n" "too old; need Ruby version 1.9.1 or later" >&6; } |
| 8629 |
fi |
| 8630 |
fi |
| 8631 |
|
| 8632 |
if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then |
| 8633 |
as_fn_error $? "could not configure Ruby" "$LINENO" 5 |
| 8634 |
fi |
| 8635 |
fi |
| 8636 |
|
| 8637 |
|
| 8638 |
|
| 8639 |
|
| 8640 |
|
| 8641 |
|
| 8642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 |
| 8643 |
printf %s "checking --enable-cscope argument... " >&6; } |
| 8644 |
# Check whether --enable-cscope was given. |
| 8645 |
if test ${enable_cscope+y} |
| 8646 |
then : |
| 8647 |
enableval=$enable_cscope; |
| 8648 |
else case e in #( |
| 8649 |
e) enable_cscope="yes" ;; |
| 8650 |
esac |
| 8651 |
fi |
| 8652 |
|
| 8653 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 |
| 8654 |
printf "%s\n" "$enable_cscope" >&6; } |
| 8655 |
if test "$enable_cscope" = "yes"; then |
| 8656 |
printf "%s\n" "#define ENABLE_CSCOPE 1" >>confdefs.h |
| 8657 |
|
| 8658 |
fi |
| 8659 |
|
| 8660 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 |
| 8661 |
printf %s "checking --disable-netbeans argument... " >&6; } |
| 8662 |
# Check whether --enable-netbeans was given. |
| 8663 |
if test ${enable_netbeans+y} |
| 8664 |
then : |
| 8665 |
enableval=$enable_netbeans; |
| 8666 |
else case e in #( |
| 8667 |
e) enable_netbeans="yes" ;; |
| 8668 |
esac |
| 8669 |
fi |
| 8670 |
|
| 8671 |
if test "$enable_netbeans" = "yes"; then |
| 8672 |
if test "$has_eval" = "no"; then |
| 8673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny features" >&5 |
| 8674 |
printf "%s\n" "cannot use NetBeans with tiny features" >&6; } |
| 8675 |
enable_netbeans="no" |
| 8676 |
else |
| 8677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8678 |
printf "%s\n" "no" >&6; } |
| 8679 |
fi |
| 8680 |
else |
| 8681 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8682 |
printf "%s\n" "yes" >&6; } |
| 8683 |
fi |
| 8684 |
|
| 8685 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 |
| 8686 |
printf %s "checking --disable-channel argument... " >&6; } |
| 8687 |
# Check whether --enable-channel was given. |
| 8688 |
if test ${enable_channel+y} |
| 8689 |
then : |
| 8690 |
enableval=$enable_channel; |
| 8691 |
else case e in #( |
| 8692 |
e) enable_channel="yes" ;; |
| 8693 |
esac |
| 8694 |
fi |
| 8695 |
|
| 8696 |
if test "$enable_channel" = "yes"; then |
| 8697 |
if test "$has_eval" = "no"; then |
| 8698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny features" >&5 |
| 8699 |
printf "%s\n" "cannot use channels with tiny features" >&6; } |
| 8700 |
enable_channel="no" |
| 8701 |
else |
| 8702 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8703 |
printf "%s\n" "no" >&6; } |
| 8704 |
fi |
| 8705 |
else |
| 8706 |
if test "$enable_netbeans" = "yes"; then |
| 8707 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 |
| 8708 |
printf "%s\n" "yes, netbeans also disabled" >&6; } |
| 8709 |
enable_netbeans="no" |
| 8710 |
else |
| 8711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8712 |
printf "%s\n" "yes" >&6; } |
| 8713 |
fi |
| 8714 |
fi |
| 8715 |
|
| 8716 |
if test "$enable_channel" = "yes"; then |
| 8717 |
if test "x$HAIKU" = "xyes"; then |
| 8718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
| 8719 |
printf %s "checking for socket in -lnetwork... " >&6; } |
| 8720 |
if test ${ac_cv_lib_network_socket+y} |
| 8721 |
then : |
| 8722 |
printf %s "(cached) " >&6 |
| 8723 |
else case e in #( |
| 8724 |
e) ac_check_lib_save_LIBS=$LIBS |
| 8725 |
LIBS="-lnetwork $LIBS" |
| 8726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8727 |
/* end confdefs.h. */ |
| 8728 |
|
| 8729 |
/* Override any GCC internal prototype to avoid an error. |
| 8730 |
Use char because int might match the return type of a GCC |
| 8731 |
builtin and then its argument prototype would still apply. |
| 8732 |
The 'extern "C"' is for builds by C++ compilers; |
| 8733 |
although this is not generally supported in C code supporting it here |
| 8734 |
has little cost and some practical benefit (sr 110532). */ |
| 8735 |
#ifdef __cplusplus |
| 8736 |
extern "C" |
| 8737 |
#endif |
| 8738 |
char socket (void); |
| 8739 |
int |
| 8740 |
main (void) |
| 8741 |
{ |
| 8742 |
return socket (); |
| 8743 |
; |
| 8744 |
return 0; |
| 8745 |
} |
| 8746 |
_ACEOF |
| 8747 |
if ac_fn_c_try_link "$LINENO" |
| 8748 |
then : |
| 8749 |
ac_cv_lib_network_socket=yes |
| 8750 |
else case e in #( |
| 8751 |
e) ac_cv_lib_network_socket=no ;; |
| 8752 |
esac |
| 8753 |
fi |
| 8754 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8755 |
conftest$ac_exeext conftest.$ac_ext |
| 8756 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 8757 |
esac |
| 8758 |
fi |
| 8759 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
| 8760 |
printf "%s\n" "$ac_cv_lib_network_socket" >&6; } |
| 8761 |
if test "x$ac_cv_lib_network_socket" = xyes |
| 8762 |
then : |
| 8763 |
printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h |
| 8764 |
|
| 8765 |
LIBS="-lnetwork $LIBS" |
| 8766 |
|
| 8767 |
fi |
| 8768 |
|
| 8769 |
else |
| 8770 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8771 |
printf %s "checking for socket in -lsocket... " >&6; } |
| 8772 |
if test ${ac_cv_lib_socket_socket+y} |
| 8773 |
then : |
| 8774 |
printf %s "(cached) " >&6 |
| 8775 |
else case e in #( |
| 8776 |
e) ac_check_lib_save_LIBS=$LIBS |
| 8777 |
LIBS="-lsocket $LIBS" |
| 8778 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8779 |
/* end confdefs.h. */ |
| 8780 |
|
| 8781 |
/* Override any GCC internal prototype to avoid an error. |
| 8782 |
Use char because int might match the return type of a GCC |
| 8783 |
builtin and then its argument prototype would still apply. |
| 8784 |
The 'extern "C"' is for builds by C++ compilers; |
| 8785 |
although this is not generally supported in C code supporting it here |
| 8786 |
has little cost and some practical benefit (sr 110532). */ |
| 8787 |
#ifdef __cplusplus |
| 8788 |
extern "C" |
| 8789 |
#endif |
| 8790 |
char socket (void); |
| 8791 |
int |
| 8792 |
main (void) |
| 8793 |
{ |
| 8794 |
return socket (); |
| 8795 |
; |
| 8796 |
return 0; |
| 8797 |
} |
| 8798 |
_ACEOF |
| 8799 |
if ac_fn_c_try_link "$LINENO" |
| 8800 |
then : |
| 8801 |
ac_cv_lib_socket_socket=yes |
| 8802 |
else case e in #( |
| 8803 |
e) ac_cv_lib_socket_socket=no ;; |
| 8804 |
esac |
| 8805 |
fi |
| 8806 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8807 |
conftest$ac_exeext conftest.$ac_ext |
| 8808 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 8809 |
esac |
| 8810 |
fi |
| 8811 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8812 |
printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } |
| 8813 |
if test "x$ac_cv_lib_socket_socket" = xyes |
| 8814 |
then : |
| 8815 |
printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h |
| 8816 |
|
| 8817 |
LIBS="-lsocket $LIBS" |
| 8818 |
|
| 8819 |
fi |
| 8820 |
|
| 8821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 8822 |
printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 8823 |
if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 8824 |
then : |
| 8825 |
printf %s "(cached) " >&6 |
| 8826 |
else case e in #( |
| 8827 |
e) ac_check_lib_save_LIBS=$LIBS |
| 8828 |
LIBS="-lnsl $LIBS" |
| 8829 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8830 |
/* end confdefs.h. */ |
| 8831 |
|
| 8832 |
/* Override any GCC internal prototype to avoid an error. |
| 8833 |
Use char because int might match the return type of a GCC |
| 8834 |
builtin and then its argument prototype would still apply. |
| 8835 |
The 'extern "C"' is for builds by C++ compilers; |
| 8836 |
although this is not generally supported in C code supporting it here |
| 8837 |
has little cost and some practical benefit (sr 110532). */ |
| 8838 |
#ifdef __cplusplus |
| 8839 |
extern "C" |
| 8840 |
#endif |
| 8841 |
char gethostbyname (void); |
| 8842 |
int |
| 8843 |
main (void) |
| 8844 |
{ |
| 8845 |
return gethostbyname (); |
| 8846 |
; |
| 8847 |
return 0; |
| 8848 |
} |
| 8849 |
_ACEOF |
| 8850 |
if ac_fn_c_try_link "$LINENO" |
| 8851 |
then : |
| 8852 |
ac_cv_lib_nsl_gethostbyname=yes |
| 8853 |
else case e in #( |
| 8854 |
e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 8855 |
esac |
| 8856 |
fi |
| 8857 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8858 |
conftest$ac_exeext conftest.$ac_ext |
| 8859 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 8860 |
esac |
| 8861 |
fi |
| 8862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 8863 |
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 8864 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 8865 |
then : |
| 8866 |
printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h |
| 8867 |
|
| 8868 |
LIBS="-lnsl $LIBS" |
| 8869 |
|
| 8870 |
fi |
| 8871 |
|
| 8872 |
fi |
| 8873 |
|
| 8874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5 |
| 8875 |
printf %s "checking whether compiling with IPv6 networking is possible... " >&6; } |
| 8876 |
if test ${vim_cv_ipv6_networking+y} |
| 8877 |
then : |
| 8878 |
printf %s "(cached) " >&6 |
| 8879 |
else case e in #( |
| 8880 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8881 |
/* end confdefs.h. */ |
| 8882 |
|
| 8883 |
#include <stdio.h> |
| 8884 |
#include <stdlib.h> |
| 8885 |
#include <stdarg.h> |
| 8886 |
#include <fcntl.h> |
| 8887 |
#include <netdb.h> |
| 8888 |
#include <netinet/in.h> |
| 8889 |
#include <errno.h> |
| 8890 |
#include <sys/types.h> |
| 8891 |
#include <sys/socket.h> |
| 8892 |
/* Check bitfields */ |
| 8893 |
struct nbbuf { |
| 8894 |
unsigned int initDone:1; |
| 8895 |
unsigned short signmaplen; |
| 8896 |
}; |
| 8897 |
|
| 8898 |
int |
| 8899 |
main (void) |
| 8900 |
{ |
| 8901 |
|
| 8902 |
/* Check creating a socket. */ |
| 8903 |
struct sockaddr_in server; |
| 8904 |
struct addrinfo *res; |
| 8905 |
(void)socket(AF_INET, SOCK_STREAM, 0); |
| 8906 |
(void)htons(100); |
| 8907 |
(void)getaddrinfo("microsoft.com", NULL, NULL, &res); |
| 8908 |
if (errno == ECONNREFUSED) |
| 8909 |
(void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
| 8910 |
(void)freeaddrinfo(res); |
| 8911 |
|
| 8912 |
; |
| 8913 |
return 0; |
| 8914 |
} |
| 8915 |
_ACEOF |
| 8916 |
if ac_fn_c_try_link "$LINENO" |
| 8917 |
then : |
| 8918 |
vim_cv_ipv6_networking="yes" |
| 8919 |
else case e in #( |
| 8920 |
e) vim_cv_ipv6_networking="no" ;; |
| 8921 |
esac |
| 8922 |
fi |
| 8923 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8924 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 8925 |
esac |
| 8926 |
fi |
| 8927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5 |
| 8928 |
printf "%s\n" "$vim_cv_ipv6_networking" >&6; } |
| 8929 |
|
| 8930 |
if test "x$vim_cv_ipv6_networking" = "xyes"; then |
| 8931 |
printf "%s\n" "#define FEAT_IPV6 1" >>confdefs.h |
| 8932 |
|
| 8933 |
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" |
| 8934 |
if test "x$ac_cv_func_inet_ntop" = xyes |
| 8935 |
then : |
| 8936 |
printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h |
| 8937 |
|
| 8938 |
fi |
| 8939 |
|
| 8940 |
else |
| 8941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5 |
| 8942 |
printf %s "checking whether compiling with IPv4 networking is possible... " >&6; } |
| 8943 |
if test ${vim_cv_ipv4_networking+y} |
| 8944 |
then : |
| 8945 |
printf %s "(cached) " >&6 |
| 8946 |
else case e in #( |
| 8947 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8948 |
/* end confdefs.h. */ |
| 8949 |
|
| 8950 |
#include <stdio.h> |
| 8951 |
#include <stdlib.h> |
| 8952 |
#include <stdarg.h> |
| 8953 |
#include <fcntl.h> |
| 8954 |
#include <netdb.h> |
| 8955 |
#include <netinet/in.h> |
| 8956 |
#include <errno.h> |
| 8957 |
#include <sys/types.h> |
| 8958 |
#include <sys/socket.h> |
| 8959 |
/* Check bitfields */ |
| 8960 |
struct nbbuf { |
| 8961 |
unsigned int initDone:1; |
| 8962 |
unsigned short signmaplen; |
| 8963 |
}; |
| 8964 |
|
| 8965 |
int |
| 8966 |
main (void) |
| 8967 |
{ |
| 8968 |
|
| 8969 |
/* Check creating a socket. */ |
| 8970 |
struct sockaddr_in server; |
| 8971 |
(void)socket(AF_INET, SOCK_STREAM, 0); |
| 8972 |
(void)htons(100); |
| 8973 |
(void)gethostbyname("microsoft.com"); |
| 8974 |
if (errno == ECONNREFUSED) |
| 8975 |
(void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
| 8976 |
|
| 8977 |
; |
| 8978 |
return 0; |
| 8979 |
} |
| 8980 |
_ACEOF |
| 8981 |
if ac_fn_c_try_link "$LINENO" |
| 8982 |
then : |
| 8983 |
vim_cv_ipv4_networking="yes" |
| 8984 |
else case e in #( |
| 8985 |
e) vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no" ;; |
| 8986 |
esac |
| 8987 |
fi |
| 8988 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8989 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 8990 |
esac |
| 8991 |
fi |
| 8992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5 |
| 8993 |
printf "%s\n" "$vim_cv_ipv4_networking" >&6; } |
| 8994 |
fi |
| 8995 |
fi |
| 8996 |
if test "$enable_netbeans" = "yes"; then |
| 8997 |
printf "%s\n" "#define FEAT_NETBEANS_INTG 1" >>confdefs.h |
| 8998 |
|
| 8999 |
NETBEANS_SRC="netbeans.c" |
| 9000 |
|
| 9001 |
NETBEANS_OBJ="objects/netbeans.o" |
| 9002 |
|
| 9003 |
fi |
| 9004 |
if test "$enable_channel" = "yes"; then |
| 9005 |
printf "%s\n" "#define FEAT_JOB_CHANNEL 1" >>confdefs.h |
| 9006 |
|
| 9007 |
CHANNEL_SRC="job.c channel.c" |
| 9008 |
|
| 9009 |
CHANNEL_OBJ="objects/job.o objects/channel.o" |
| 9010 |
|
| 9011 |
fi |
| 9012 |
|
| 9013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 |
| 9014 |
printf %s "checking --enable-terminal argument... " >&6; } |
| 9015 |
# Check whether --enable-terminal was given. |
| 9016 |
if test ${enable_terminal+y} |
| 9017 |
then : |
| 9018 |
enableval=$enable_terminal; |
| 9019 |
else case e in #( |
| 9020 |
e) enable_terminal="auto" ;; |
| 9021 |
esac |
| 9022 |
fi |
| 9023 |
|
| 9024 |
if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then |
| 9025 |
if test "$has_eval" = "no"; then |
| 9026 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny features" >&5 |
| 9027 |
printf "%s\n" "cannot use terminal emulator with tiny features" >&6; } |
| 9028 |
enable_terminal="no" |
| 9029 |
else |
| 9030 |
if test "$enable_terminal" = "auto"; then |
| 9031 |
enable_terminal="yes" |
| 9032 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 |
| 9033 |
printf "%s\n" "defaulting to yes" >&6; } |
| 9034 |
else |
| 9035 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9036 |
printf "%s\n" "yes" >&6; } |
| 9037 |
fi |
| 9038 |
fi |
| 9039 |
else |
| 9040 |
if test "$enable_terminal" = "auto"; then |
| 9041 |
enable_terminal="no" |
| 9042 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 |
| 9043 |
printf "%s\n" "defaulting to no" >&6; } |
| 9044 |
else |
| 9045 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9046 |
printf "%s\n" "no" >&6; } |
| 9047 |
fi |
| 9048 |
fi |
| 9049 |
if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then |
| 9050 |
printf "%s\n" "#define FEAT_TERMINAL 1" >>confdefs.h |
| 9051 |
|
| 9052 |
TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" |
| 9053 |
|
| 9054 |
TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o" |
| 9055 |
|
| 9056 |
TERM_TEST="test_libvterm" |
| 9057 |
|
| 9058 |
fi |
| 9059 |
|
| 9060 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 |
| 9061 |
printf %s "checking --enable-autoservername argument... " >&6; } |
| 9062 |
# Check whether --enable-autoservername was given. |
| 9063 |
if test ${enable_autoservername+y} |
| 9064 |
then : |
| 9065 |
enableval=$enable_autoservername; |
| 9066 |
else case e in #( |
| 9067 |
e) enable_autoservername="no" ;; |
| 9068 |
esac |
| 9069 |
fi |
| 9070 |
|
| 9071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 |
| 9072 |
printf "%s\n" "$enable_autoservername" >&6; } |
| 9073 |
if test "$enable_autoservername" = "yes"; then |
| 9074 |
printf "%s\n" "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h |
| 9075 |
|
| 9076 |
fi |
| 9077 |
|
| 9078 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 |
| 9079 |
printf %s "checking --enable-multibyte argument... " >&6; } |
| 9080 |
# Check whether --enable-multibyte was given. |
| 9081 |
if test ${enable_multibyte+y} |
| 9082 |
then : |
| 9083 |
enableval=$enable_multibyte; |
| 9084 |
else case e in #( |
| 9085 |
e) enable_multibyte="yes" ;; |
| 9086 |
esac |
| 9087 |
fi |
| 9088 |
|
| 9089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 |
| 9090 |
printf "%s\n" "$enable_multibyte" >&6; } |
| 9091 |
if test "$enable_multibyte" != "yes"; then |
| 9092 |
as_fn_error $? "The multi-byte feature can no longer be disabled. If you have |
| 9093 |
a problem with this, discuss on the Vim mailing list." "$LINENO" 5 |
| 9094 |
fi |
| 9095 |
|
| 9096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5 |
| 9097 |
printf %s "checking --disable-rightleft argument... " >&6; } |
| 9098 |
# Check whether --enable-rightleft was given. |
| 9099 |
if test ${enable_rightleft+y} |
| 9100 |
then : |
| 9101 |
enableval=$enable_rightleft; |
| 9102 |
else case e in #( |
| 9103 |
e) enable_rightleft="yes" ;; |
| 9104 |
esac |
| 9105 |
fi |
| 9106 |
|
| 9107 |
if test "$enable_rightleft" = "yes"; then |
| 9108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9109 |
printf "%s\n" "no" >&6; } |
| 9110 |
else |
| 9111 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9112 |
printf "%s\n" "yes" >&6; } |
| 9113 |
printf "%s\n" "#define DISABLE_RIGHTLEFT 1" >>confdefs.h |
| 9114 |
|
| 9115 |
fi |
| 9116 |
|
| 9117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5 |
| 9118 |
printf %s "checking --disable-arabic argument... " >&6; } |
| 9119 |
# Check whether --enable-arabic was given. |
| 9120 |
if test ${enable_arabic+y} |
| 9121 |
then : |
| 9122 |
enableval=$enable_arabic; |
| 9123 |
else case e in #( |
| 9124 |
e) enable_arabic="yes" ;; |
| 9125 |
esac |
| 9126 |
fi |
| 9127 |
|
| 9128 |
if test "$enable_arabic" = "yes"; then |
| 9129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9130 |
printf "%s\n" "no" >&6; } |
| 9131 |
else |
| 9132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9133 |
printf "%s\n" "yes" >&6; } |
| 9134 |
printf "%s\n" "#define DISABLE_ARABIC 1" >>confdefs.h |
| 9135 |
|
| 9136 |
fi |
| 9137 |
|
| 9138 |
# Check whether --enable-farsi was given. |
| 9139 |
if test ${enable_farsi+y} |
| 9140 |
then : |
| 9141 |
enableval=$enable_farsi; |
| 9142 |
fi |
| 9143 |
|
| 9144 |
|
| 9145 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 |
| 9146 |
printf %s "checking --enable-xim argument... " >&6; } |
| 9147 |
# Check whether --enable-xim was given. |
| 9148 |
if test ${enable_xim+y} |
| 9149 |
then : |
| 9150 |
enableval=$enable_xim; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 |
| 9151 |
printf "%s\n" "$enable_xim" >&6; } |
| 9152 |
else case e in #( |
| 9153 |
e) enable_xim="auto"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 |
| 9154 |
printf "%s\n" "defaulting to auto" >&6; } ;; |
| 9155 |
esac |
| 9156 |
fi |
| 9157 |
|
| 9158 |
|
| 9159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 |
| 9160 |
printf %s "checking --enable-fontset argument... " >&6; } |
| 9161 |
# Check whether --enable-fontset was given. |
| 9162 |
if test ${enable_fontset+y} |
| 9163 |
then : |
| 9164 |
enableval=$enable_fontset; |
| 9165 |
else case e in #( |
| 9166 |
e) enable_fontset="no" ;; |
| 9167 |
esac |
| 9168 |
fi |
| 9169 |
|
| 9170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 |
| 9171 |
printf "%s\n" "$enable_fontset" >&6; } |
| 9172 |
|
| 9173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shm_open is available" >&5 |
| 9174 |
printf %s "checking if shm_open is available... " >&6; } |
| 9175 |
cppflags_save=$CPPFLAGS |
| 9176 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 9177 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9178 |
/* end confdefs.h. */ |
| 9179 |
#include <sys/mman.h> |
| 9180 |
#include <sys/stat.h> |
| 9181 |
#include <fcntl.h> |
| 9182 |
int |
| 9183 |
main (void) |
| 9184 |
{ |
| 9185 |
shm_open("/test", O_CREAT, 0600); |
| 9186 |
; |
| 9187 |
return 0; |
| 9188 |
} |
| 9189 |
_ACEOF |
| 9190 |
if ac_fn_c_try_link "$LINENO" |
| 9191 |
then : |
| 9192 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9193 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h |
| 9194 |
|
| 9195 |
else case e in #( |
| 9196 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9197 |
printf "%s\n" "no" >&6; } ;; |
| 9198 |
esac |
| 9199 |
fi |
| 9200 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9201 |
conftest$ac_exeext conftest.$ac_ext |
| 9202 |
CPPFLAGS=$cppflags_save |
| 9203 |
|
| 9204 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-wayland argument" >&5 |
| 9205 |
printf %s "checking --with-wayland argument... " >&6; } |
| 9206 |
|
| 9207 |
# Check whether --with-wayland was given. |
| 9208 |
if test ${with_wayland+y} |
| 9209 |
then : |
| 9210 |
withval=$with_wayland; with_wayland=$withval |
| 9211 |
else case e in #( |
| 9212 |
e) if test "x$features" = xtiny |
| 9213 |
then : |
| 9214 |
with_wayland=no |
| 9215 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use wayland with tiny features" >&5 |
| 9216 |
printf "%s\n" "cannot use wayland with tiny features" >&6; } |
| 9217 |
else case e in #( |
| 9218 |
e) with_wayland=yes |
| 9219 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9220 |
printf "%s\n" "yes" >&6; } ;; |
| 9221 |
esac |
| 9222 |
fi ;; |
| 9223 |
esac |
| 9224 |
fi |
| 9225 |
|
| 9226 |
|
| 9227 |
if test "$with_wayland" = yes; then |
| 9228 |
cppflags_save=$CPPFLAGS |
| 9229 |
cflags_save=$CFLAGS |
| 9230 |
|
| 9231 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wayland" >&5 |
| 9232 |
printf %s "checking for wayland... " >&6; } |
| 9233 |
if "$PKG_CONFIG" --exists 'wayland-client'; then |
| 9234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9235 |
printf "%s\n" "yes" >&6; } |
| 9236 |
|
| 9237 |
printf "%s\n" "#define HAVE_WAYLAND 1" >>confdefs.h |
| 9238 |
|
| 9239 |
WAYLAND_CPPFLAGS=`$PKG_CONFIG --cflags-only-I wayland-client` |
| 9240 |
WAYLAND_CFLAGS=`$PKG_CONFIG --cflags-only-other wayland-client` |
| 9241 |
CPPFLAGS="$CPPFLAGS $WAYLAND_CPPFLAGS" |
| 9242 |
CFLAGS="$CFLAGS $WAYLAND_CFLAGS" |
| 9243 |
WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client` |
| 9244 |
WAYLAND_SRC=" \ |
| 9245 |
auto/wayland/wlr-data-control-unstable-v1.c \ |
| 9246 |
auto/wayland/ext-data-control-v1.c \ |
| 9247 |
wayland.c" |
| 9248 |
WAYLAND_OBJ=" \ |
| 9249 |
objects/wlr-data-control-unstable-v1.o \ |
| 9250 |
objects/ext-data-control-v1.o \ |
| 9251 |
objects/wayland.o" |
| 9252 |
|
| 9253 |
|
| 9254 |
|
| 9255 |
|
| 9256 |
|
| 9257 |
|
| 9258 |
else |
| 9259 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9260 |
printf "%s\n" "no" >&6; } |
| 9261 |
with_wayland=no |
| 9262 |
fi |
| 9263 |
CPPFLAGS=$cppflags_save |
| 9264 |
CFLAGS=$cflags_save |
| 9265 |
fi |
| 9266 |
|
| 9267 |
if test "x$enable_gui" = "xgtk4"; then |
| 9268 |
with_x=no |
| 9269 |
fi |
| 9270 |
test -z "$with_x" && with_x=yes |
| 9271 |
test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" -a "x$enable_gui" != "xgtk4" && with_x=yes |
| 9272 |
if test "$with_x" = no; then |
| 9273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 |
| 9274 |
printf "%s\n" "defaulting to: don't HAVE_X11" >&6; } |
| 9275 |
else |
| 9276 |
|
| 9277 |
# Extract the first word of "xmkmf", so it can be a program name with args. |
| 9278 |
set dummy xmkmf; ac_word=$2 |
| 9279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9280 |
printf %s "checking for $ac_word... " >&6; } |
| 9281 |
if test ${ac_cv_path_xmkmfpath+y} |
| 9282 |
then : |
| 9283 |
printf %s "(cached) " >&6 |
| 9284 |
else case e in #( |
| 9285 |
e) case $xmkmfpath in |
| 9286 |
[\\/]* | ?:[\\/]*) |
| 9287 |
ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 9288 |
;; |
| 9289 |
*) |
| 9290 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9291 |
for as_dir in $PATH |
| 9292 |
do |
| 9293 |
IFS=$as_save_IFS |
| 9294 |
case $as_dir in #((( |
| 9295 |
'') as_dir=./ ;; |
| 9296 |
*/) ;; |
| 9297 |
*) as_dir=$as_dir/ ;; |
| 9298 |
esac |
| 9299 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9300 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9301 |
ac_cv_path_xmkmfpath="$as_dir$ac_word$ac_exec_ext" |
| 9302 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9303 |
break 2 |
| 9304 |
fi |
| 9305 |
done |
| 9306 |
done |
| 9307 |
IFS=$as_save_IFS |
| 9308 |
|
| 9309 |
;; |
| 9310 |
esac ;; |
| 9311 |
esac |
| 9312 |
fi |
| 9313 |
xmkmfpath=$ac_cv_path_xmkmfpath |
| 9314 |
if test -n "$xmkmfpath"; then |
| 9315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 |
| 9316 |
printf "%s\n" "$xmkmfpath" >&6; } |
| 9317 |
else |
| 9318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9319 |
printf "%s\n" "no" >&6; } |
| 9320 |
fi |
| 9321 |
|
| 9322 |
|
| 9323 |
|
| 9324 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 9325 |
printf %s "checking for X... " >&6; } |
| 9326 |
|
| 9327 |
|
| 9328 |
# Check whether --with-x was given. |
| 9329 |
if test ${with_x+y} |
| 9330 |
then : |
| 9331 |
withval=$with_x; |
| 9332 |
fi |
| 9333 |
|
| 9334 |
# $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know. |
| 9335 |
if test "x$with_x" = xno; then |
| 9336 |
# The user explicitly disabled X. |
| 9337 |
have_x=disabled |
| 9338 |
else |
| 9339 |
case $x_includes,$x_libraries in #( |
| 9340 |
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 9341 |
*,NONE | NONE,*) if test ${ac_cv_have_x+y} |
| 9342 |
then : |
| 9343 |
printf %s "(cached) " >&6 |
| 9344 |
else case e in #( |
| 9345 |
e) # One or both of the vars are not set, and there is no cached value. |
| 9346 |
ac_x_includes=no |
| 9347 |
ac_x_libraries=no |
| 9348 |
# Do we need to do anything special at all? |
| 9349 |
ac_save_LIBS=$LIBS |
| 9350 |
LIBS="-lX11 $LIBS" |
| 9351 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9352 |
/* end confdefs.h. */ |
| 9353 |
#include <X11/Xlib.h> |
| 9354 |
int |
| 9355 |
main (void) |
| 9356 |
{ |
| 9357 |
XrmInitialize () |
| 9358 |
; |
| 9359 |
return 0; |
| 9360 |
} |
| 9361 |
_ACEOF |
| 9362 |
if ac_fn_c_try_link "$LINENO" |
| 9363 |
then : |
| 9364 |
# We can compile and link X programs with no special options. |
| 9365 |
ac_x_includes= |
| 9366 |
ac_x_libraries= |
| 9367 |
fi |
| 9368 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9369 |
conftest$ac_exeext conftest.$ac_ext |
| 9370 |
LIBS="$ac_save_LIBS" |
| 9371 |
# If that didn't work, only try xmkmf and file system searches |
| 9372 |
# for native compilation. |
| 9373 |
if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
| 9374 |
then : |
| 9375 |
rm -f -r conftest.dir |
| 9376 |
if mkdir conftest.dir; then |
| 9377 |
cd conftest.dir |
| 9378 |
cat >Imakefile <<'_ACEOF' |
| 9379 |
incroot: |
| 9380 |
@echo incroot='${INCROOT}' |
| 9381 |
usrlibdir: |
| 9382 |
@echo usrlibdir='${USRLIBDIR}' |
| 9383 |
libdir: |
| 9384 |
@echo libdir='${LIBDIR}' |
| 9385 |
_ACEOF |
| 9386 |
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9387 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 9388 |
for ac_var in incroot usrlibdir libdir; do |
| 9389 |
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 9390 |
done |
| 9391 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 9392 |
for ac_extension in a so sl dylib la dll; do |
| 9393 |
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 9394 |
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 9395 |
ac_im_usrlibdir=$ac_im_libdir; break |
| 9396 |
fi |
| 9397 |
done |
| 9398 |
# Screen out bogus values from the imake configuration. They are |
| 9399 |
# bogus both because they are the default anyway, and because |
| 9400 |
# using them would break gcc on systems where it needs fixed includes. |
| 9401 |
case $ac_im_incroot in |
| 9402 |
/usr/include) ac_x_includes= ;; |
| 9403 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 9404 |
esac |
| 9405 |
case $ac_im_usrlibdir in |
| 9406 |
/usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 9407 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 9408 |
esac |
| 9409 |
fi |
| 9410 |
cd .. |
| 9411 |
rm -f -r conftest.dir |
| 9412 |
fi |
| 9413 |
|
| 9414 |
# Standard set of common directories for X headers. |
| 9415 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
| 9416 |
ac_x_header_dirs=' |
| 9417 |
/usr/X11/include |
| 9418 |
/usr/X11R7/include |
| 9419 |
/usr/X11R6/include |
| 9420 |
/usr/X11R5/include |
| 9421 |
/usr/X11R4/include |
| 9422 |
|
| 9423 |
/usr/include/X11 |
| 9424 |
/usr/include/X11R7 |
| 9425 |
/usr/include/X11R6 |
| 9426 |
/usr/include/X11R5 |
| 9427 |
/usr/include/X11R4 |
| 9428 |
|
| 9429 |
/usr/local/X11/include |
| 9430 |
/usr/local/X11R7/include |
| 9431 |
/usr/local/X11R6/include |
| 9432 |
/usr/local/X11R5/include |
| 9433 |
/usr/local/X11R4/include |
| 9434 |
|
| 9435 |
/usr/local/include/X11 |
| 9436 |
/usr/local/include/X11R7 |
| 9437 |
/usr/local/include/X11R6 |
| 9438 |
/usr/local/include/X11R5 |
| 9439 |
/usr/local/include/X11R4 |
| 9440 |
|
| 9441 |
/opt/X11/include |
| 9442 |
|
| 9443 |
/usr/X386/include |
| 9444 |
/usr/x386/include |
| 9445 |
/usr/XFree86/include/X11 |
| 9446 |
|
| 9447 |
/usr/include |
| 9448 |
/usr/local/include |
| 9449 |
/usr/unsupported/include |
| 9450 |
/usr/athena/include |
| 9451 |
/usr/local/x11r5/include |
| 9452 |
/usr/lpp/Xamples/include |
| 9453 |
|
| 9454 |
/usr/openwin/include |
| 9455 |
/usr/openwin/share/include' |
| 9456 |
|
| 9457 |
if test "$ac_x_includes" = no; then |
| 9458 |
# Guess where to find include files, by looking for Xlib.h. |
| 9459 |
# First, try using that file with no special directory specified. |
| 9460 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9461 |
/* end confdefs.h. */ |
| 9462 |
#include <X11/Xlib.h> |
| 9463 |
_ACEOF |
| 9464 |
if ac_fn_c_try_cpp "$LINENO" |
| 9465 |
then : |
| 9466 |
# We can compile using X headers with no special include directory. |
| 9467 |
ac_x_includes= |
| 9468 |
else case e in #( |
| 9469 |
e) for ac_dir in $ac_x_header_dirs; do |
| 9470 |
if test -r "$ac_dir/X11/Xlib.h"; then |
| 9471 |
ac_x_includes=$ac_dir |
| 9472 |
break |
| 9473 |
fi |
| 9474 |
done ;; |
| 9475 |
esac |
| 9476 |
fi |
| 9477 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 9478 |
fi # $ac_x_includes = no |
| 9479 |
|
| 9480 |
if test "$ac_x_libraries" = no; then |
| 9481 |
# Check for the libraries. |
| 9482 |
# See if we find them without any special options. |
| 9483 |
# Don't add to $LIBS permanently. |
| 9484 |
ac_save_LIBS=$LIBS |
| 9485 |
LIBS="-lX11 $LIBS" |
| 9486 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9487 |
/* end confdefs.h. */ |
| 9488 |
#include <X11/Xlib.h> |
| 9489 |
int |
| 9490 |
main (void) |
| 9491 |
{ |
| 9492 |
XrmInitialize () |
| 9493 |
; |
| 9494 |
return 0; |
| 9495 |
} |
| 9496 |
_ACEOF |
| 9497 |
if ac_fn_c_try_link "$LINENO" |
| 9498 |
then : |
| 9499 |
LIBS=$ac_save_LIBS |
| 9500 |
# We can link X programs with no special library path. |
| 9501 |
ac_x_libraries= |
| 9502 |
else case e in #( |
| 9503 |
e) LIBS=$ac_save_LIBS |
| 9504 |
for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 9505 |
do |
| 9506 |
# Don't even attempt the hair of trying to link an X program! |
| 9507 |
for ac_extension in a so sl dylib la dll; do |
| 9508 |
if test -r "$ac_dir/libX11.$ac_extension"; then |
| 9509 |
ac_x_libraries=$ac_dir |
| 9510 |
break 2 |
| 9511 |
fi |
| 9512 |
done |
| 9513 |
done ;; |
| 9514 |
esac |
| 9515 |
fi |
| 9516 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9517 |
conftest$ac_exeext conftest.$ac_ext |
| 9518 |
fi # $ac_x_libraries = no |
| 9519 |
|
| 9520 |
fi |
| 9521 |
# Record the results. |
| 9522 |
case $ac_x_includes,$ac_x_libraries in #( |
| 9523 |
no,* | *,no | *\'*) : |
| 9524 |
# Didn't find X, or a directory has "'" in its name. |
| 9525 |
ac_cv_have_x="have_x=no" ;; #( |
| 9526 |
*) : |
| 9527 |
# Record where we found X for the cache. |
| 9528 |
ac_cv_have_x="have_x=yes\ |
| 9529 |
ac_x_includes='$ac_x_includes'\ |
| 9530 |
ac_x_libraries='$ac_x_libraries'" ;; |
| 9531 |
esac ;; |
| 9532 |
esac |
| 9533 |
fi |
| 9534 |
;; #( |
| 9535 |
*) have_x=yes;; |
| 9536 |
esac |
| 9537 |
eval "$ac_cv_have_x" |
| 9538 |
fi # $with_x != no |
| 9539 |
|
| 9540 |
if test "$have_x" != yes; then |
| 9541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 9542 |
printf "%s\n" "$have_x" >&6; } |
| 9543 |
no_x=yes |
| 9544 |
else |
| 9545 |
# If each of the values was on the command line, it overrides each guess. |
| 9546 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 9547 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 9548 |
# Update the cache value to reflect the command line values. |
| 9549 |
ac_cv_have_x="have_x=yes\ |
| 9550 |
ac_x_includes='$x_includes'\ |
| 9551 |
ac_x_libraries='$x_libraries'" |
| 9552 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 9553 |
printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
| 9554 |
fi |
| 9555 |
|
| 9556 |
if test "$no_x" = yes; then |
| 9557 |
# Not all programs may use this symbol, but it does not hurt to define it. |
| 9558 |
|
| 9559 |
printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| 9560 |
|
| 9561 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 9562 |
else |
| 9563 |
if test -n "$x_includes"; then |
| 9564 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 9565 |
fi |
| 9566 |
|
| 9567 |
# It would also be nice to do this for all -L options, not just this one. |
| 9568 |
if test -n "$x_libraries"; then |
| 9569 |
X_LIBS="$X_LIBS -L$x_libraries" |
| 9570 |
# For Solaris; some versions of Sun CC require a space after -R and |
| 9571 |
# others require no space. Words are not sufficient . . . . |
| 9572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 9573 |
printf %s "checking whether -R must be followed by a space... " >&6; } |
| 9574 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 9575 |
ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 9576 |
ac_c_werror_flag=yes |
| 9577 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9578 |
/* end confdefs.h. */ |
| 9579 |
|
| 9580 |
int |
| 9581 |
main (void) |
| 9582 |
{ |
| 9583 |
|
| 9584 |
; |
| 9585 |
return 0; |
| 9586 |
} |
| 9587 |
_ACEOF |
| 9588 |
if ac_fn_c_try_link "$LINENO" |
| 9589 |
then : |
| 9590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9591 |
printf "%s\n" "no" >&6; } |
| 9592 |
X_LIBS="$X_LIBS -R$x_libraries" |
| 9593 |
else case e in #( |
| 9594 |
e) LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 9595 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9596 |
/* end confdefs.h. */ |
| 9597 |
|
| 9598 |
int |
| 9599 |
main (void) |
| 9600 |
{ |
| 9601 |
|
| 9602 |
; |
| 9603 |
return 0; |
| 9604 |
} |
| 9605 |
_ACEOF |
| 9606 |
if ac_fn_c_try_link "$LINENO" |
| 9607 |
then : |
| 9608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9609 |
printf "%s\n" "yes" >&6; } |
| 9610 |
X_LIBS="$X_LIBS -R $x_libraries" |
| 9611 |
else case e in #( |
| 9612 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 9613 |
printf "%s\n" "neither works" >&6; } ;; |
| 9614 |
esac |
| 9615 |
fi |
| 9616 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9617 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 9618 |
esac |
| 9619 |
fi |
| 9620 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9621 |
conftest$ac_exeext conftest.$ac_ext |
| 9622 |
ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 9623 |
LIBS=$ac_xsave_LIBS |
| 9624 |
fi |
| 9625 |
|
| 9626 |
# Check for system-dependent libraries X programs must link with. |
| 9627 |
# Do this before checking for the system-independent R6 libraries |
| 9628 |
# (-lICE), since we may need -lsocket or whatever for X linking. |
| 9629 |
|
| 9630 |
if test "$ISC" = yes; then |
| 9631 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 9632 |
else |
| 9633 |
# Martyn Johnson says this is needed for Ultrix, if the X |
| 9634 |
# libraries were built with DECnet support. And Karl Berry says |
| 9635 |
# the Alpha needs dnet_stub (dnet does not exist). |
| 9636 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 9637 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9638 |
/* end confdefs.h. */ |
| 9639 |
|
| 9640 |
/* Override any GCC internal prototype to avoid an error. |
| 9641 |
Use char because int might match the return type of a GCC |
| 9642 |
builtin and then its argument prototype would still apply. |
| 9643 |
The 'extern "C"' is for builds by C++ compilers; |
| 9644 |
although this is not generally supported in C code supporting it here |
| 9645 |
has little cost and some practical benefit (sr 110532). */ |
| 9646 |
#ifdef __cplusplus |
| 9647 |
extern "C" |
| 9648 |
#endif |
| 9649 |
char XOpenDisplay (void); |
| 9650 |
int |
| 9651 |
main (void) |
| 9652 |
{ |
| 9653 |
return XOpenDisplay (); |
| 9654 |
; |
| 9655 |
return 0; |
| 9656 |
} |
| 9657 |
_ACEOF |
| 9658 |
if ac_fn_c_try_link "$LINENO" |
| 9659 |
then : |
| 9660 |
|
| 9661 |
else case e in #( |
| 9662 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 9663 |
printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
| 9664 |
if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
| 9665 |
then : |
| 9666 |
printf %s "(cached) " >&6 |
| 9667 |
else case e in #( |
| 9668 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9669 |
LIBS="-ldnet $LIBS" |
| 9670 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9671 |
/* end confdefs.h. */ |
| 9672 |
|
| 9673 |
/* Override any GCC internal prototype to avoid an error. |
| 9674 |
Use char because int might match the return type of a GCC |
| 9675 |
builtin and then its argument prototype would still apply. |
| 9676 |
The 'extern "C"' is for builds by C++ compilers; |
| 9677 |
although this is not generally supported in C code supporting it here |
| 9678 |
has little cost and some practical benefit (sr 110532). */ |
| 9679 |
#ifdef __cplusplus |
| 9680 |
extern "C" |
| 9681 |
#endif |
| 9682 |
char dnet_ntoa (void); |
| 9683 |
int |
| 9684 |
main (void) |
| 9685 |
{ |
| 9686 |
return dnet_ntoa (); |
| 9687 |
; |
| 9688 |
return 0; |
| 9689 |
} |
| 9690 |
_ACEOF |
| 9691 |
if ac_fn_c_try_link "$LINENO" |
| 9692 |
then : |
| 9693 |
ac_cv_lib_dnet_dnet_ntoa=yes |
| 9694 |
else case e in #( |
| 9695 |
e) ac_cv_lib_dnet_dnet_ntoa=no ;; |
| 9696 |
esac |
| 9697 |
fi |
| 9698 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9699 |
conftest$ac_exeext conftest.$ac_ext |
| 9700 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9701 |
esac |
| 9702 |
fi |
| 9703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 9704 |
printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 9705 |
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
| 9706 |
then : |
| 9707 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 9708 |
fi |
| 9709 |
|
| 9710 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 9711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 9712 |
printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 9713 |
if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
| 9714 |
then : |
| 9715 |
printf %s "(cached) " >&6 |
| 9716 |
else case e in #( |
| 9717 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9718 |
LIBS="-ldnet_stub $LIBS" |
| 9719 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9720 |
/* end confdefs.h. */ |
| 9721 |
|
| 9722 |
/* Override any GCC internal prototype to avoid an error. |
| 9723 |
Use char because int might match the return type of a GCC |
| 9724 |
builtin and then its argument prototype would still apply. |
| 9725 |
The 'extern "C"' is for builds by C++ compilers; |
| 9726 |
although this is not generally supported in C code supporting it here |
| 9727 |
has little cost and some practical benefit (sr 110532). */ |
| 9728 |
#ifdef __cplusplus |
| 9729 |
extern "C" |
| 9730 |
#endif |
| 9731 |
char dnet_ntoa (void); |
| 9732 |
int |
| 9733 |
main (void) |
| 9734 |
{ |
| 9735 |
return dnet_ntoa (); |
| 9736 |
; |
| 9737 |
return 0; |
| 9738 |
} |
| 9739 |
_ACEOF |
| 9740 |
if ac_fn_c_try_link "$LINENO" |
| 9741 |
then : |
| 9742 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 9743 |
else case e in #( |
| 9744 |
e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;; |
| 9745 |
esac |
| 9746 |
fi |
| 9747 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9748 |
conftest$ac_exeext conftest.$ac_ext |
| 9749 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9750 |
esac |
| 9751 |
fi |
| 9752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 9753 |
printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 9754 |
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
| 9755 |
then : |
| 9756 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 9757 |
fi |
| 9758 |
|
| 9759 |
fi ;; |
| 9760 |
esac |
| 9761 |
fi |
| 9762 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9763 |
conftest$ac_exeext conftest.$ac_ext |
| 9764 |
LIBS="$ac_xsave_LIBS" |
| 9765 |
|
| 9766 |
# [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, |
| 9767 |
# to get the SysV transport functions. |
| 9768 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 9769 |
# needs -lnsl. |
| 9770 |
# The nsl library prevents programs from opening the X display |
| 9771 |
# on Irix 5.2, according to T.E. Dickey. |
| 9772 |
# The functions gethostbyname, getservbyname, and inet_addr are |
| 9773 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 9774 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 9775 |
if test "x$ac_cv_func_gethostbyname" = xyes |
| 9776 |
then : |
| 9777 |
|
| 9778 |
fi |
| 9779 |
|
| 9780 |
if test $ac_cv_func_gethostbyname = no; then |
| 9781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 9782 |
printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 9783 |
if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 9784 |
then : |
| 9785 |
printf %s "(cached) " >&6 |
| 9786 |
else case e in #( |
| 9787 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9788 |
LIBS="-lnsl $LIBS" |
| 9789 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9790 |
/* end confdefs.h. */ |
| 9791 |
|
| 9792 |
/* Override any GCC internal prototype to avoid an error. |
| 9793 |
Use char because int might match the return type of a GCC |
| 9794 |
builtin and then its argument prototype would still apply. |
| 9795 |
The 'extern "C"' is for builds by C++ compilers; |
| 9796 |
although this is not generally supported in C code supporting it here |
| 9797 |
has little cost and some practical benefit (sr 110532). */ |
| 9798 |
#ifdef __cplusplus |
| 9799 |
extern "C" |
| 9800 |
#endif |
| 9801 |
char gethostbyname (void); |
| 9802 |
int |
| 9803 |
main (void) |
| 9804 |
{ |
| 9805 |
return gethostbyname (); |
| 9806 |
; |
| 9807 |
return 0; |
| 9808 |
} |
| 9809 |
_ACEOF |
| 9810 |
if ac_fn_c_try_link "$LINENO" |
| 9811 |
then : |
| 9812 |
ac_cv_lib_nsl_gethostbyname=yes |
| 9813 |
else case e in #( |
| 9814 |
e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 9815 |
esac |
| 9816 |
fi |
| 9817 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9818 |
conftest$ac_exeext conftest.$ac_ext |
| 9819 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9820 |
esac |
| 9821 |
fi |
| 9822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 9823 |
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 9824 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 9825 |
then : |
| 9826 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 9827 |
fi |
| 9828 |
|
| 9829 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 9830 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 9831 |
printf %s "checking for gethostbyname in -lbsd... " >&6; } |
| 9832 |
if test ${ac_cv_lib_bsd_gethostbyname+y} |
| 9833 |
then : |
| 9834 |
printf %s "(cached) " >&6 |
| 9835 |
else case e in #( |
| 9836 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9837 |
LIBS="-lbsd $LIBS" |
| 9838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9839 |
/* end confdefs.h. */ |
| 9840 |
|
| 9841 |
/* Override any GCC internal prototype to avoid an error. |
| 9842 |
Use char because int might match the return type of a GCC |
| 9843 |
builtin and then its argument prototype would still apply. |
| 9844 |
The 'extern "C"' is for builds by C++ compilers; |
| 9845 |
although this is not generally supported in C code supporting it here |
| 9846 |
has little cost and some practical benefit (sr 110532). */ |
| 9847 |
#ifdef __cplusplus |
| 9848 |
extern "C" |
| 9849 |
#endif |
| 9850 |
char gethostbyname (void); |
| 9851 |
int |
| 9852 |
main (void) |
| 9853 |
{ |
| 9854 |
return gethostbyname (); |
| 9855 |
; |
| 9856 |
return 0; |
| 9857 |
} |
| 9858 |
_ACEOF |
| 9859 |
if ac_fn_c_try_link "$LINENO" |
| 9860 |
then : |
| 9861 |
ac_cv_lib_bsd_gethostbyname=yes |
| 9862 |
else case e in #( |
| 9863 |
e) ac_cv_lib_bsd_gethostbyname=no ;; |
| 9864 |
esac |
| 9865 |
fi |
| 9866 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9867 |
conftest$ac_exeext conftest.$ac_ext |
| 9868 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9869 |
esac |
| 9870 |
fi |
| 9871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 9872 |
printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 9873 |
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
| 9874 |
then : |
| 9875 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 9876 |
fi |
| 9877 |
|
| 9878 |
fi |
| 9879 |
fi |
| 9880 |
|
| 9881 |
# [email protected] says without -lsocket, |
| 9882 |
# socket/setsockopt and other routines are undefined under SCO ODT |
| 9883 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 9884 |
# on later versions), says Simon Leinen: it contains gethostby* |
| 9885 |
# variants that don't use the name server (or something). -lsocket |
| 9886 |
# must be given before -lnsl if both are needed. We assume that |
| 9887 |
# if connect needs -lnsl, so does gethostbyname. |
| 9888 |
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 9889 |
if test "x$ac_cv_func_connect" = xyes |
| 9890 |
then : |
| 9891 |
|
| 9892 |
fi |
| 9893 |
|
| 9894 |
if test $ac_cv_func_connect = no; then |
| 9895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 9896 |
printf %s "checking for connect in -lsocket... " >&6; } |
| 9897 |
if test ${ac_cv_lib_socket_connect+y} |
| 9898 |
then : |
| 9899 |
printf %s "(cached) " >&6 |
| 9900 |
else case e in #( |
| 9901 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9902 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 9903 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9904 |
/* end confdefs.h. */ |
| 9905 |
|
| 9906 |
/* Override any GCC internal prototype to avoid an error. |
| 9907 |
Use char because int might match the return type of a GCC |
| 9908 |
builtin and then its argument prototype would still apply. |
| 9909 |
The 'extern "C"' is for builds by C++ compilers; |
| 9910 |
although this is not generally supported in C code supporting it here |
| 9911 |
has little cost and some practical benefit (sr 110532). */ |
| 9912 |
#ifdef __cplusplus |
| 9913 |
extern "C" |
| 9914 |
#endif |
| 9915 |
char connect (void); |
| 9916 |
int |
| 9917 |
main (void) |
| 9918 |
{ |
| 9919 |
return connect (); |
| 9920 |
; |
| 9921 |
return 0; |
| 9922 |
} |
| 9923 |
_ACEOF |
| 9924 |
if ac_fn_c_try_link "$LINENO" |
| 9925 |
then : |
| 9926 |
ac_cv_lib_socket_connect=yes |
| 9927 |
else case e in #( |
| 9928 |
e) ac_cv_lib_socket_connect=no ;; |
| 9929 |
esac |
| 9930 |
fi |
| 9931 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9932 |
conftest$ac_exeext conftest.$ac_ext |
| 9933 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9934 |
esac |
| 9935 |
fi |
| 9936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 9937 |
printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
| 9938 |
if test "x$ac_cv_lib_socket_connect" = xyes |
| 9939 |
then : |
| 9940 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 9941 |
fi |
| 9942 |
|
| 9943 |
fi |
| 9944 |
|
| 9945 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
| 9946 |
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 9947 |
if test "x$ac_cv_func_remove" = xyes |
| 9948 |
then : |
| 9949 |
|
| 9950 |
fi |
| 9951 |
|
| 9952 |
if test $ac_cv_func_remove = no; then |
| 9953 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 9954 |
printf %s "checking for remove in -lposix... " >&6; } |
| 9955 |
if test ${ac_cv_lib_posix_remove+y} |
| 9956 |
then : |
| 9957 |
printf %s "(cached) " >&6 |
| 9958 |
else case e in #( |
| 9959 |
e) ac_check_lib_save_LIBS=$LIBS |
| 9960 |
LIBS="-lposix $LIBS" |
| 9961 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9962 |
/* end confdefs.h. */ |
| 9963 |
|
| 9964 |
/* Override any GCC internal prototype to avoid an error. |
| 9965 |
Use char because int might match the return type of a GCC |
| 9966 |
builtin and then its argument prototype would still apply. |
| 9967 |
The 'extern "C"' is for builds by C++ compilers; |
| 9968 |
although this is not generally supported in C code supporting it here |
| 9969 |
has little cost and some practical benefit (sr 110532). */ |
| 9970 |
#ifdef __cplusplus |
| 9971 |
extern "C" |
| 9972 |
#endif |
| 9973 |
char remove (void); |
| 9974 |
int |
| 9975 |
main (void) |
| 9976 |
{ |
| 9977 |
return remove (); |
| 9978 |
; |
| 9979 |
return 0; |
| 9980 |
} |
| 9981 |
_ACEOF |
| 9982 |
if ac_fn_c_try_link "$LINENO" |
| 9983 |
then : |
| 9984 |
ac_cv_lib_posix_remove=yes |
| 9985 |
else case e in #( |
| 9986 |
e) ac_cv_lib_posix_remove=no ;; |
| 9987 |
esac |
| 9988 |
fi |
| 9989 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9990 |
conftest$ac_exeext conftest.$ac_ext |
| 9991 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 9992 |
esac |
| 9993 |
fi |
| 9994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 9995 |
printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
| 9996 |
if test "x$ac_cv_lib_posix_remove" = xyes |
| 9997 |
then : |
| 9998 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 9999 |
fi |
| 10000 |
|
| 10001 |
fi |
| 10002 |
|
| 10003 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 10004 |
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 10005 |
if test "x$ac_cv_func_shmat" = xyes |
| 10006 |
then : |
| 10007 |
|
| 10008 |
fi |
| 10009 |
|
| 10010 |
if test $ac_cv_func_shmat = no; then |
| 10011 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 10012 |
printf %s "checking for shmat in -lipc... " >&6; } |
| 10013 |
if test ${ac_cv_lib_ipc_shmat+y} |
| 10014 |
then : |
| 10015 |
printf %s "(cached) " >&6 |
| 10016 |
else case e in #( |
| 10017 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10018 |
LIBS="-lipc $LIBS" |
| 10019 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10020 |
/* end confdefs.h. */ |
| 10021 |
|
| 10022 |
/* Override any GCC internal prototype to avoid an error. |
| 10023 |
Use char because int might match the return type of a GCC |
| 10024 |
builtin and then its argument prototype would still apply. |
| 10025 |
The 'extern "C"' is for builds by C++ compilers; |
| 10026 |
although this is not generally supported in C code supporting it here |
| 10027 |
has little cost and some practical benefit (sr 110532). */ |
| 10028 |
#ifdef __cplusplus |
| 10029 |
extern "C" |
| 10030 |
#endif |
| 10031 |
char shmat (void); |
| 10032 |
int |
| 10033 |
main (void) |
| 10034 |
{ |
| 10035 |
return shmat (); |
| 10036 |
; |
| 10037 |
return 0; |
| 10038 |
} |
| 10039 |
_ACEOF |
| 10040 |
if ac_fn_c_try_link "$LINENO" |
| 10041 |
then : |
| 10042 |
ac_cv_lib_ipc_shmat=yes |
| 10043 |
else case e in #( |
| 10044 |
e) ac_cv_lib_ipc_shmat=no ;; |
| 10045 |
esac |
| 10046 |
fi |
| 10047 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10048 |
conftest$ac_exeext conftest.$ac_ext |
| 10049 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10050 |
esac |
| 10051 |
fi |
| 10052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 10053 |
printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
| 10054 |
if test "x$ac_cv_lib_ipc_shmat" = xyes |
| 10055 |
then : |
| 10056 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 10057 |
fi |
| 10058 |
|
| 10059 |
fi |
| 10060 |
fi |
| 10061 |
|
| 10062 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
| 10063 |
ac_save_LDFLAGS=$LDFLAGS |
| 10064 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 10065 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 10066 |
# check for ICE first), but we must link in the order -lSM -lICE or |
| 10067 |
# we get undefined symbols. So assume we have SM if we have ICE. |
| 10068 |
# These have to be linked with before -lX11, unlike the other |
| 10069 |
# libraries we check for below, so use a different variable. |
| 10070 |
# John Interrante, Karl Berry |
| 10071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 10072 |
printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
| 10073 |
if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
| 10074 |
then : |
| 10075 |
printf %s "(cached) " >&6 |
| 10076 |
else case e in #( |
| 10077 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10078 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 10079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10080 |
/* end confdefs.h. */ |
| 10081 |
|
| 10082 |
/* Override any GCC internal prototype to avoid an error. |
| 10083 |
Use char because int might match the return type of a GCC |
| 10084 |
builtin and then its argument prototype would still apply. |
| 10085 |
The 'extern "C"' is for builds by C++ compilers; |
| 10086 |
although this is not generally supported in C code supporting it here |
| 10087 |
has little cost and some practical benefit (sr 110532). */ |
| 10088 |
#ifdef __cplusplus |
| 10089 |
extern "C" |
| 10090 |
#endif |
| 10091 |
char IceConnectionNumber (void); |
| 10092 |
int |
| 10093 |
main (void) |
| 10094 |
{ |
| 10095 |
return IceConnectionNumber (); |
| 10096 |
; |
| 10097 |
return 0; |
| 10098 |
} |
| 10099 |
_ACEOF |
| 10100 |
if ac_fn_c_try_link "$LINENO" |
| 10101 |
then : |
| 10102 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
| 10103 |
else case e in #( |
| 10104 |
e) ac_cv_lib_ICE_IceConnectionNumber=no ;; |
| 10105 |
esac |
| 10106 |
fi |
| 10107 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10108 |
conftest$ac_exeext conftest.$ac_ext |
| 10109 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10110 |
esac |
| 10111 |
fi |
| 10112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 10113 |
printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 10114 |
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
| 10115 |
then : |
| 10116 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 10117 |
fi |
| 10118 |
|
| 10119 |
LDFLAGS=$ac_save_LDFLAGS |
| 10120 |
|
| 10121 |
fi |
| 10122 |
|
| 10123 |
|
| 10124 |
if test "$zOSUnix" = "yes"; then |
| 10125 |
CFLAGS="$CFLAGS -W c,dll" |
| 10126 |
LDFLAGS="$LDFLAGS -W l,dll" |
| 10127 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 10128 |
fi |
| 10129 |
|
| 10130 |
|
| 10131 |
if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 10132 |
x_libraries=`echo "$x_includes" | sed s/include/lib/` |
| 10133 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 |
| 10134 |
printf "%s\n" "Corrected X libraries to $x_libraries" >&6; } |
| 10135 |
X_LIBS="$X_LIBS -L$x_libraries" |
| 10136 |
if test "$vim_cv_uname_output" = SunOS && |
| 10137 |
echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
| 10138 |
X_LIBS="$X_LIBS -R $x_libraries" |
| 10139 |
fi |
| 10140 |
fi |
| 10141 |
|
| 10142 |
if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 10143 |
x_includes=`echo "$x_libraries" | sed s/lib/include/` |
| 10144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 |
| 10145 |
printf "%s\n" "Corrected X includes to $x_includes" >&6; } |
| 10146 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 10147 |
fi |
| 10148 |
|
| 10149 |
X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 10150 |
X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 10151 |
X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 10152 |
|
| 10153 |
|
| 10154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 |
| 10155 |
printf %s "checking if X11 header files can be found... " >&6; } |
| 10156 |
cflags_save=$CFLAGS |
| 10157 |
CFLAGS="$CFLAGS $X_CFLAGS" |
| 10158 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10159 |
/* end confdefs.h. */ |
| 10160 |
#include <X11/Xlib.h> |
| 10161 |
#include <X11/Intrinsic.h> |
| 10162 |
int |
| 10163 |
main (void) |
| 10164 |
{ |
| 10165 |
|
| 10166 |
; |
| 10167 |
return 0; |
| 10168 |
} |
| 10169 |
_ACEOF |
| 10170 |
if ac_fn_c_try_compile "$LINENO" |
| 10171 |
then : |
| 10172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10173 |
printf "%s\n" "yes" >&6; } |
| 10174 |
else case e in #( |
| 10175 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10176 |
printf "%s\n" "no" >&6; }; no_x=yes ;; |
| 10177 |
esac |
| 10178 |
fi |
| 10179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10180 |
CFLAGS=$cflags_save |
| 10181 |
|
| 10182 |
if test "${no_x-no}" = yes; then |
| 10183 |
with_x=no |
| 10184 |
else |
| 10185 |
printf "%s\n" "#define HAVE_X11 1" >>confdefs.h |
| 10186 |
|
| 10187 |
X_LIB="-lXt -lX11"; |
| 10188 |
|
| 10189 |
|
| 10190 |
ac_save_LDFLAGS="$LDFLAGS" |
| 10191 |
LDFLAGS="-L$x_libraries $LDFLAGS" |
| 10192 |
|
| 10193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 10194 |
printf %s "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
| 10195 |
if test ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+y} |
| 10196 |
then : |
| 10197 |
printf %s "(cached) " >&6 |
| 10198 |
else case e in #( |
| 10199 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10200 |
LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
| 10201 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10202 |
/* end confdefs.h. */ |
| 10203 |
|
| 10204 |
/* Override any GCC internal prototype to avoid an error. |
| 10205 |
Use char because int might match the return type of a GCC |
| 10206 |
builtin and then its argument prototype would still apply. |
| 10207 |
The 'extern "C"' is for builds by C++ compilers; |
| 10208 |
although this is not generally supported in C code supporting it here |
| 10209 |
has little cost and some practical benefit (sr 110532). */ |
| 10210 |
#ifdef __cplusplus |
| 10211 |
extern "C" |
| 10212 |
#endif |
| 10213 |
char _XdmcpAuthDoIt (void); |
| 10214 |
int |
| 10215 |
main (void) |
| 10216 |
{ |
| 10217 |
return _XdmcpAuthDoIt (); |
| 10218 |
; |
| 10219 |
return 0; |
| 10220 |
} |
| 10221 |
_ACEOF |
| 10222 |
if ac_fn_c_try_link "$LINENO" |
| 10223 |
then : |
| 10224 |
ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
| 10225 |
else case e in #( |
| 10226 |
e) ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no ;; |
| 10227 |
esac |
| 10228 |
fi |
| 10229 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10230 |
conftest$ac_exeext conftest.$ac_ext |
| 10231 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10232 |
esac |
| 10233 |
fi |
| 10234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 10235 |
printf "%s\n" "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
| 10236 |
if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes |
| 10237 |
then : |
| 10238 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
| 10239 |
fi |
| 10240 |
|
| 10241 |
|
| 10242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 |
| 10243 |
printf %s "checking for IceOpenConnection in -lICE... " >&6; } |
| 10244 |
if test ${ac_cv_lib_ICE_IceOpenConnection+y} |
| 10245 |
then : |
| 10246 |
printf %s "(cached) " >&6 |
| 10247 |
else case e in #( |
| 10248 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10249 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 10250 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10251 |
/* end confdefs.h. */ |
| 10252 |
|
| 10253 |
/* Override any GCC internal prototype to avoid an error. |
| 10254 |
Use char because int might match the return type of a GCC |
| 10255 |
builtin and then its argument prototype would still apply. |
| 10256 |
The 'extern "C"' is for builds by C++ compilers; |
| 10257 |
although this is not generally supported in C code supporting it here |
| 10258 |
has little cost and some practical benefit (sr 110532). */ |
| 10259 |
#ifdef __cplusplus |
| 10260 |
extern "C" |
| 10261 |
#endif |
| 10262 |
char IceOpenConnection (void); |
| 10263 |
int |
| 10264 |
main (void) |
| 10265 |
{ |
| 10266 |
return IceOpenConnection (); |
| 10267 |
; |
| 10268 |
return 0; |
| 10269 |
} |
| 10270 |
_ACEOF |
| 10271 |
if ac_fn_c_try_link "$LINENO" |
| 10272 |
then : |
| 10273 |
ac_cv_lib_ICE_IceOpenConnection=yes |
| 10274 |
else case e in #( |
| 10275 |
e) ac_cv_lib_ICE_IceOpenConnection=no ;; |
| 10276 |
esac |
| 10277 |
fi |
| 10278 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10279 |
conftest$ac_exeext conftest.$ac_ext |
| 10280 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10281 |
esac |
| 10282 |
fi |
| 10283 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 10284 |
printf "%s\n" "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
| 10285 |
if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes |
| 10286 |
then : |
| 10287 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
| 10288 |
fi |
| 10289 |
|
| 10290 |
|
| 10291 |
LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
| 10292 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 10293 |
printf %s "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
| 10294 |
if test ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+y} |
| 10295 |
then : |
| 10296 |
printf %s "(cached) " >&6 |
| 10297 |
else case e in #( |
| 10298 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10299 |
LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
| 10300 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10301 |
/* end confdefs.h. */ |
| 10302 |
|
| 10303 |
/* Override any GCC internal prototype to avoid an error. |
| 10304 |
Use char because int might match the return type of a GCC |
| 10305 |
builtin and then its argument prototype would still apply. |
| 10306 |
The 'extern "C"' is for builds by C++ compilers; |
| 10307 |
although this is not generally supported in C code supporting it here |
| 10308 |
has little cost and some practical benefit (sr 110532). */ |
| 10309 |
#ifdef __cplusplus |
| 10310 |
extern "C" |
| 10311 |
#endif |
| 10312 |
char XpmCreatePixmapFromData (void); |
| 10313 |
int |
| 10314 |
main (void) |
| 10315 |
{ |
| 10316 |
return XpmCreatePixmapFromData (); |
| 10317 |
; |
| 10318 |
return 0; |
| 10319 |
} |
| 10320 |
_ACEOF |
| 10321 |
if ac_fn_c_try_link "$LINENO" |
| 10322 |
then : |
| 10323 |
ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
| 10324 |
else case e in #( |
| 10325 |
e) ac_cv_lib_Xpm_XpmCreatePixmapFromData=no ;; |
| 10326 |
esac |
| 10327 |
fi |
| 10328 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10329 |
conftest$ac_exeext conftest.$ac_ext |
| 10330 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10331 |
esac |
| 10332 |
fi |
| 10333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 10334 |
printf "%s\n" "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
| 10335 |
if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes |
| 10336 |
then : |
| 10337 |
X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
| 10338 |
fi |
| 10339 |
|
| 10340 |
|
| 10341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 |
| 10342 |
printf %s "checking if X11 header files implicitly declare return values... " >&6; } |
| 10343 |
cflags_save=$CFLAGS |
| 10344 |
if test "$GCC" = yes; then |
| 10345 |
CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
| 10346 |
else |
| 10347 |
CFLAGS="$CFLAGS $X_CFLAGS" |
| 10348 |
fi |
| 10349 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10350 |
/* end confdefs.h. */ |
| 10351 |
#include <X11/Xlib.h> |
| 10352 |
int |
| 10353 |
main (void) |
| 10354 |
{ |
| 10355 |
|
| 10356 |
; |
| 10357 |
return 0; |
| 10358 |
} |
| 10359 |
_ACEOF |
| 10360 |
if ac_fn_c_try_compile "$LINENO" |
| 10361 |
then : |
| 10362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10363 |
printf "%s\n" "no" >&6; } |
| 10364 |
else case e in #( |
| 10365 |
e) CFLAGS="$CFLAGS -Wno-implicit-int" |
| 10366 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10367 |
/* end confdefs.h. */ |
| 10368 |
#include <X11/Xlib.h> |
| 10369 |
int |
| 10370 |
main (void) |
| 10371 |
{ |
| 10372 |
|
| 10373 |
; |
| 10374 |
return 0; |
| 10375 |
} |
| 10376 |
_ACEOF |
| 10377 |
if ac_fn_c_try_compile "$LINENO" |
| 10378 |
then : |
| 10379 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10380 |
printf "%s\n" "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
| 10381 |
else case e in #( |
| 10382 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 |
| 10383 |
printf "%s\n" "test failed" >&6; } |
| 10384 |
;; |
| 10385 |
esac |
| 10386 |
fi |
| 10387 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10388 |
;; |
| 10389 |
esac |
| 10390 |
fi |
| 10391 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10392 |
CFLAGS=$cflags_save |
| 10393 |
|
| 10394 |
LDFLAGS="$ac_save_LDFLAGS" |
| 10395 |
|
| 10396 |
# The cast to long int works around a bug in the HP C Compiler |
| 10397 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10398 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10399 |
# This bug is HP SR number 8606223364. |
| 10400 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 10401 |
printf %s "checking size of wchar_t... " >&6; } |
| 10402 |
if test ${ac_cv_sizeof_wchar_t+y} |
| 10403 |
then : |
| 10404 |
printf %s "(cached) " >&6 |
| 10405 |
else case e in #( |
| 10406 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default" |
| 10407 |
then : |
| 10408 |
|
| 10409 |
else case e in #( |
| 10410 |
e) if test "$ac_cv_type_wchar_t" = yes; then |
| 10411 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10412 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 10413 |
as_fn_error 77 "cannot compute sizeof (wchar_t) |
| 10414 |
See 'config.log' for more details" "$LINENO" 5; } |
| 10415 |
else |
| 10416 |
ac_cv_sizeof_wchar_t=0 |
| 10417 |
fi ;; |
| 10418 |
esac |
| 10419 |
fi |
| 10420 |
;; |
| 10421 |
esac |
| 10422 |
fi |
| 10423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 10424 |
printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } |
| 10425 |
|
| 10426 |
|
| 10427 |
|
| 10428 |
printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h |
| 10429 |
|
| 10430 |
|
| 10431 |
if test "$ac_cv_sizeof_wchar_t" -le 2; then |
| 10432 |
printf "%s\n" "#define SMALL_WCHAR_T 1" >>confdefs.h |
| 10433 |
|
| 10434 |
fi |
| 10435 |
|
| 10436 |
fi |
| 10437 |
fi |
| 10438 |
|
| 10439 |
if test "x$with_x" = xno -a "x$with_x_arg" = xyes -a "x$enable_gui" != "xgtk4"; then |
| 10440 |
as_fn_error $? "could not configure X" "$LINENO" 5 |
| 10441 |
fi |
| 10442 |
|
| 10443 |
test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" -a "x$enable_gui" != xgtk4 && enable_gui=no |
| 10444 |
|
| 10445 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 |
| 10446 |
printf %s "checking --enable-gui argument... " >&6; } |
| 10447 |
# Check whether --enable-gui was given. |
| 10448 |
if test ${enable_gui+y} |
| 10449 |
then : |
| 10450 |
enableval=$enable_gui; |
| 10451 |
else case e in #( |
| 10452 |
e) enable_gui="auto" ;; |
| 10453 |
esac |
| 10454 |
fi |
| 10455 |
|
| 10456 |
|
| 10457 |
enable_gui_canon=`echo "_$enable_gui" | \ |
| 10458 |
sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 10459 |
|
| 10460 |
SKIP_GTK2=YES |
| 10461 |
SKIP_GTK3=YES |
| 10462 |
SKIP_GTK4=YES |
| 10463 |
SKIP_GNOME=YES |
| 10464 |
SKIP_MOTIF=YES |
| 10465 |
SKIP_PHOTON=YES |
| 10466 |
SKIP_HAIKU=YES |
| 10467 |
GUITYPE=NONE |
| 10468 |
|
| 10469 |
if test "x$HAIKU" = "xyes"; then |
| 10470 |
SKIP_HAIKU= |
| 10471 |
case "$enable_gui_canon" in |
| 10472 |
no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10473 |
printf "%s\n" "no GUI support" >&6; } |
| 10474 |
SKIP_HAIKU=YES ;; |
| 10475 |
yes|"") { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 |
| 10476 |
printf "%s\n" "yes - automatic GUI support" >&6; } ;; |
| 10477 |
auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 |
| 10478 |
printf "%s\n" "auto - automatic GUI support" >&6; } ;; |
| 10479 |
haiku) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5 |
| 10480 |
printf "%s\n" "Haiku GUI support" >&6; } ;; |
| 10481 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10482 |
printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } |
| 10483 |
SKIP_HAIKU=YES ;; |
| 10484 |
esac |
| 10485 |
elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
| 10486 |
SKIP_PHOTON= |
| 10487 |
case "$enable_gui_canon" in |
| 10488 |
no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10489 |
printf "%s\n" "no GUI support" >&6; } |
| 10490 |
SKIP_PHOTON=YES ;; |
| 10491 |
yes|""|auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5 |
| 10492 |
printf "%s\n" "automatic GUI support" >&6; } |
| 10493 |
gui_auto=yes ;; |
| 10494 |
photon) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 |
| 10495 |
printf "%s\n" "Photon GUI support" >&6; } ;; |
| 10496 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10497 |
printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } |
| 10498 |
SKIP_PHOTON=YES ;; |
| 10499 |
esac |
| 10500 |
|
| 10501 |
elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then |
| 10502 |
case "$enable_gui_canon" in |
| 10503 |
no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10504 |
printf "%s\n" "no GUI support" >&6; } ;; |
| 10505 |
yes|"") { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 |
| 10506 |
printf "%s\n" "yes - automatic GUI support" >&6; } |
| 10507 |
gui_auto=yes ;; |
| 10508 |
auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5 |
| 10509 |
printf "%s\n" "auto - disable GUI support for Mac OS" >&6; } ;; |
| 10510 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10511 |
printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
| 10512 |
esac |
| 10513 |
else |
| 10514 |
|
| 10515 |
case "$enable_gui_canon" in |
| 10516 |
no|none) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10517 |
printf "%s\n" "no GUI support" >&6; } ;; |
| 10518 |
yes|""|auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 |
| 10519 |
printf "%s\n" "yes/auto - automatic GUI support" >&6; } |
| 10520 |
gui_auto=yes |
| 10521 |
SKIP_GTK2= |
| 10522 |
SKIP_GTK3= |
| 10523 |
SKIP_GTK4= |
| 10524 |
SKIP_GNOME= |
| 10525 |
SKIP_MOTIF=;; |
| 10526 |
gtk2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 |
| 10527 |
printf "%s\n" "GTK+ 2.x GUI support" >&6; } |
| 10528 |
SKIP_GTK2=;; |
| 10529 |
gnome2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 |
| 10530 |
printf "%s\n" "GNOME 2.x GUI support" >&6; } |
| 10531 |
SKIP_GNOME= |
| 10532 |
SKIP_GTK2=;; |
| 10533 |
gtk3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 |
| 10534 |
printf "%s\n" "GTK+ 3.x GUI support" >&6; } |
| 10535 |
SKIP_GTK3=;; |
| 10536 |
gtk4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK 4.x GUI support" >&5 |
| 10537 |
printf "%s\n" "GTK 4.x GUI support" >&6; } |
| 10538 |
SKIP_GTK4=;; |
| 10539 |
motif) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 |
| 10540 |
printf "%s\n" "Motif GUI support" >&6; } |
| 10541 |
SKIP_MOTIF=;; |
| 10542 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10543 |
printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
| 10544 |
esac |
| 10545 |
|
| 10546 |
fi |
| 10547 |
|
| 10548 |
if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 10549 |
-a "$enable_gui_canon" != "gnome2"; then |
| 10550 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 |
| 10551 |
printf %s "checking whether or not to look for GTK+ 2... " >&6; } |
| 10552 |
# Check whether --enable-gtk2-check was given. |
| 10553 |
if test ${enable_gtk2_check+y} |
| 10554 |
then : |
| 10555 |
enableval=$enable_gtk2_check; |
| 10556 |
else case e in #( |
| 10557 |
e) enable_gtk2_check="yes" ;; |
| 10558 |
esac |
| 10559 |
fi |
| 10560 |
|
| 10561 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 |
| 10562 |
printf "%s\n" "$enable_gtk2_check" >&6; } |
| 10563 |
if test "x$enable_gtk2_check" = "xno"; then |
| 10564 |
SKIP_GTK2=YES |
| 10565 |
SKIP_GNOME=YES |
| 10566 |
fi |
| 10567 |
fi |
| 10568 |
|
| 10569 |
if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then |
| 10570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 |
| 10571 |
printf %s "checking whether or not to look for GNOME... " >&6; } |
| 10572 |
# Check whether --enable-gnome-check was given. |
| 10573 |
if test ${enable_gnome_check+y} |
| 10574 |
then : |
| 10575 |
enableval=$enable_gnome_check; |
| 10576 |
else case e in #( |
| 10577 |
e) enable_gnome_check="no" ;; |
| 10578 |
esac |
| 10579 |
fi |
| 10580 |
|
| 10581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 |
| 10582 |
printf "%s\n" "$enable_gnome_check" >&6; } |
| 10583 |
if test "x$enable_gnome_check" = "xno"; then |
| 10584 |
SKIP_GNOME=YES |
| 10585 |
fi |
| 10586 |
fi |
| 10587 |
|
| 10588 |
if test "x$SKIP_GTK4" != "xYES" -a "$enable_gui_canon" != "gtk4"; then |
| 10589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK 4" >&5 |
| 10590 |
printf %s "checking whether or not to look for GTK 4... " >&6; } |
| 10591 |
# Check whether --enable-gtk4-check was given. |
| 10592 |
if test ${enable_gtk4_check+y} |
| 10593 |
then : |
| 10594 |
enableval=$enable_gtk4_check; |
| 10595 |
else case e in #( |
| 10596 |
e) enable_gtk4_check="yes" ;; |
| 10597 |
esac |
| 10598 |
fi |
| 10599 |
|
| 10600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk4_check" >&5 |
| 10601 |
printf "%s\n" "$enable_gtk4_check" >&6; } |
| 10602 |
if test "x$enable_gtk4_check" = "xno"; then |
| 10603 |
SKIP_GTK4=YES |
| 10604 |
fi |
| 10605 |
fi |
| 10606 |
|
| 10607 |
if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then |
| 10608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 |
| 10609 |
printf %s "checking whether or not to look for GTK+ 3... " >&6; } |
| 10610 |
# Check whether --enable-gtk3-check was given. |
| 10611 |
if test ${enable_gtk3_check+y} |
| 10612 |
then : |
| 10613 |
enableval=$enable_gtk3_check; |
| 10614 |
else case e in #( |
| 10615 |
e) enable_gtk3_check="yes" ;; |
| 10616 |
esac |
| 10617 |
fi |
| 10618 |
|
| 10619 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 |
| 10620 |
printf "%s\n" "$enable_gtk3_check" >&6; } |
| 10621 |
if test "x$enable_gtk3_check" = "xno"; then |
| 10622 |
SKIP_GTK3=YES |
| 10623 |
fi |
| 10624 |
fi |
| 10625 |
|
| 10626 |
if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
| 10627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 |
| 10628 |
printf %s "checking whether or not to look for Motif... " >&6; } |
| 10629 |
# Check whether --enable-motif-check was given. |
| 10630 |
if test ${enable_motif_check+y} |
| 10631 |
then : |
| 10632 |
enableval=$enable_motif_check; |
| 10633 |
else case e in #( |
| 10634 |
e) enable_motif_check="yes" ;; |
| 10635 |
esac |
| 10636 |
fi |
| 10637 |
|
| 10638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 |
| 10639 |
printf "%s\n" "$enable_motif_check" >&6; } |
| 10640 |
if test "x$enable_motif_check" = "xno"; then |
| 10641 |
SKIP_MOTIF=YES |
| 10642 |
fi |
| 10643 |
fi |
| 10644 |
|
| 10645 |
|
| 10646 |
|
| 10647 |
|
| 10648 |
|
| 10649 |
|
| 10650 |
|
| 10651 |
if test -z "$SKIP_GTK3"; then |
| 10652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 |
| 10653 |
printf %s "checking --disable-gtktest argument... " >&6; } |
| 10654 |
# Check whether --enable-gtktest was given. |
| 10655 |
if test ${enable_gtktest+y} |
| 10656 |
then : |
| 10657 |
enableval=$enable_gtktest; |
| 10658 |
else case e in #( |
| 10659 |
e) enable_gtktest=yes ;; |
| 10660 |
esac |
| 10661 |
fi |
| 10662 |
|
| 10663 |
if test "x$enable_gtktest" = "xyes" ; then |
| 10664 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 |
| 10665 |
printf "%s\n" "gtk test enabled" >&6; } |
| 10666 |
else |
| 10667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 |
| 10668 |
printf "%s\n" "gtk test disabled" >&6; } |
| 10669 |
fi |
| 10670 |
|
| 10671 |
if test "x$PKG_CONFIG" != "xno"; then |
| 10672 |
|
| 10673 |
min_gtk_version="3.0.0" |
| 10674 |
|
| 10675 |
if test "$PKG_CONFIG" != "no"; then |
| 10676 |
case $min_gtk_version in #( |
| 10677 |
2.*) : |
| 10678 |
gtk_pkg_name="gtk+-2.0" ;; #( |
| 10679 |
3.*) : |
| 10680 |
gtk_pkg_name="gtk+-3.0" ;; #( |
| 10681 |
4.*) : |
| 10682 |
gtk_pkg_name="gtk4" ;; #( |
| 10683 |
*) : |
| 10684 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10685 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 10686 |
as_fn_error $? "The configure script does not know which pkg-config name to use for GTK $min_gtk_version\" |
| 10687 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 10688 |
esac |
| 10689 |
|
| 10690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config $gtk_pkg_name" >&5 |
| 10691 |
printf %s "checking for pkg-config $gtk_pkg_name... " >&6; } |
| 10692 |
if "$PKG_CONFIG" --exists "$gtk_pkg_name" |
| 10693 |
then : |
| 10694 |
|
| 10695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 10696 |
printf "%s\n" "found" >&6; } |
| 10697 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
| 10698 |
printf %s "checking for GTK - version >= $min_gtk_version... " >&6; } |
| 10699 |
GTK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $gtk_pkg_name` |
| 10700 |
GTK_CFLAGS=`$PKG_CONFIG --cflags-only-other $gtk_pkg_name` |
| 10701 |
GTK_LIBDIR=`$PKG_CONFIG --libs-only-L $gtk_pkg_name` |
| 10702 |
GTK_LIBS=`$PKG_CONFIG --libs $gtk_pkg_name` |
| 10703 |
gtk_major_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10704 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 10705 |
gtk_minor_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10706 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 10707 |
gtk_micro_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10708 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 10709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 10710 |
printf "%s\n" "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
| 10711 |
|
| 10712 |
else case e in #( |
| 10713 |
e) |
| 10714 |
GTK_CPPFLAGS="" |
| 10715 |
GTK_CFLAGS="" |
| 10716 |
GTK_LIBDIR="" |
| 10717 |
GTK_LIBS="" |
| 10718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; consider installing your distro GTK -dev package" >&5 |
| 10719 |
printf "%s\n" "no; consider installing your distro GTK -dev package" >&6; } |
| 10720 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10721 |
as_fn_error $? "pkg-config could not find $gtk_pkg_name" "$LINENO" 5 |
| 10722 |
fi |
| 10723 |
;; |
| 10724 |
esac |
| 10725 |
fi |
| 10726 |
fi |
| 10727 |
|
| 10728 |
gtktest_success="yes" |
| 10729 |
if test "$enable_gtktest" = "yes"; then |
| 10730 |
{ |
| 10731 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 10732 |
ac_save_CFLAGS="$CFLAGS" |
| 10733 |
ac_save_LIBS="$LIBS" |
| 10734 |
CPPFLAGS="$CPPFLAGS $GTK_CPPFLAGS" |
| 10735 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10736 |
LIBS="$LIBS $GTK_LIBS" |
| 10737 |
|
| 10738 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ability to compile GTK test program" >&5 |
| 10739 |
printf %s "checking ability to compile GTK test program... " >&6; } |
| 10740 |
if test "$cross_compiling" = yes |
| 10741 |
then : |
| 10742 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 10743 |
else case e in #( |
| 10744 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10745 |
/* end confdefs.h. */ |
| 10746 |
|
| 10747 |
#include <gtk/gtk.h> |
| 10748 |
#include <stdio.h> |
| 10749 |
#if STDC_HEADERS |
| 10750 |
# include <stdlib.h> |
| 10751 |
# include <stddef.h> |
| 10752 |
#endif |
| 10753 |
|
| 10754 |
int |
| 10755 |
main () |
| 10756 |
{ |
| 10757 |
int ex_major = $gtk_major_version; |
| 10758 |
int ex_minor = $gtk_minor_version; |
| 10759 |
int ex_micro = $gtk_micro_version; |
| 10760 |
|
| 10761 |
#if $gtk_major_version == 2 |
| 10762 |
guint ob_major = gtk_major_version; |
| 10763 |
guint ob_minor = gtk_minor_version; |
| 10764 |
guint ob_micro = gtk_micro_version; |
| 10765 |
#else |
| 10766 |
guint ob_major = gtk_get_major_version(); |
| 10767 |
guint ob_minor = gtk_get_minor_version(); |
| 10768 |
guint ob_micro = gtk_get_micro_version(); |
| 10769 |
#endif |
| 10770 |
|
| 10771 |
if ((ob_major > ex_major) || |
| 10772 |
((ob_major == ex_major) |
| 10773 |
&& (ob_minor > ex_minor)) || |
| 10774 |
((ob_major == ex_major) |
| 10775 |
&& (ob_minor == ex_minor) |
| 10776 |
&& (ob_micro >= ex_micro))) |
| 10777 |
return 0; |
| 10778 |
else |
| 10779 |
return 1; |
| 10780 |
} |
| 10781 |
|
| 10782 |
_ACEOF |
| 10783 |
if ac_fn_c_try_run "$LINENO" |
| 10784 |
then : |
| 10785 |
gtktest_success="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10786 |
printf "%s\n" "yes" >&6; } |
| 10787 |
else case e in #( |
| 10788 |
e) gtktest_success="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10789 |
printf "%s\n" "no" >&6; } ;; |
| 10790 |
esac |
| 10791 |
fi |
| 10792 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10793 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10794 |
esac |
| 10795 |
fi |
| 10796 |
|
| 10797 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 10798 |
CFLAGS="$ac_save_CFLAGS" |
| 10799 |
LIBS="$ac_save_LIBS" |
| 10800 |
} |
| 10801 |
fi |
| 10802 |
|
| 10803 |
if test "$gtktest_success" = "yes"; then |
| 10804 |
GUI_LIB_LOC="$GTK_LIBDIR" |
| 10805 |
GTK_LIBNAME="$GTK_LIBS" |
| 10806 |
GUI_INC_LOC="$GTK_CPPFLAGS" |
| 10807 |
else |
| 10808 |
GTK_CPPFLAGS="" |
| 10809 |
GTK_CFLAGS="" |
| 10810 |
GTK_LIBDIR="" |
| 10811 |
GTK_LIBS="" |
| 10812 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10813 |
as_fn_error $? "Failed to compile GTK test program." "$LINENO" 5 |
| 10814 |
fi |
| 10815 |
fi |
| 10816 |
|
| 10817 |
|
| 10818 |
|
| 10819 |
|
| 10820 |
|
| 10821 |
if test -n "$GTK_CPPFLAGS"; then |
| 10822 |
SKIP_GTK2=YES |
| 10823 |
SKIP_GTK4=YES |
| 10824 |
SKIP_GNOME=YES |
| 10825 |
SKIP_MOTIF=YES |
| 10826 |
GUITYPE=GTK |
| 10827 |
|
| 10828 |
printf "%s\n" "#define USE_GTK3 1" >>confdefs.h |
| 10829 |
|
| 10830 |
fi |
| 10831 |
fi |
| 10832 |
fi |
| 10833 |
|
| 10834 |
if test -z "$SKIP_GTK4"; then |
| 10835 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 |
| 10836 |
printf %s "checking --disable-gtktest argument... " >&6; } |
| 10837 |
# Check whether --enable-gtktest was given. |
| 10838 |
if test ${enable_gtktest+y} |
| 10839 |
then : |
| 10840 |
enableval=$enable_gtktest; |
| 10841 |
else case e in #( |
| 10842 |
e) enable_gtktest=yes ;; |
| 10843 |
esac |
| 10844 |
fi |
| 10845 |
|
| 10846 |
if test "x$enable_gtktest" = "xyes" ; then |
| 10847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 |
| 10848 |
printf "%s\n" "gtk test enabled" >&6; } |
| 10849 |
else |
| 10850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 |
| 10851 |
printf "%s\n" "gtk test disabled" >&6; } |
| 10852 |
fi |
| 10853 |
|
| 10854 |
if test "x$PKG_CONFIG" != "xno"; then |
| 10855 |
|
| 10856 |
min_gtk_version="4.0.0" |
| 10857 |
|
| 10858 |
if test "$PKG_CONFIG" != "no"; then |
| 10859 |
case $min_gtk_version in #( |
| 10860 |
2.*) : |
| 10861 |
gtk_pkg_name="gtk+-2.0" ;; #( |
| 10862 |
3.*) : |
| 10863 |
gtk_pkg_name="gtk+-3.0" ;; #( |
| 10864 |
4.*) : |
| 10865 |
gtk_pkg_name="gtk4" ;; #( |
| 10866 |
*) : |
| 10867 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10868 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 10869 |
as_fn_error $? "The configure script does not know which pkg-config name to use for GTK $min_gtk_version\" |
| 10870 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 10871 |
esac |
| 10872 |
|
| 10873 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config $gtk_pkg_name" >&5 |
| 10874 |
printf %s "checking for pkg-config $gtk_pkg_name... " >&6; } |
| 10875 |
if "$PKG_CONFIG" --exists "$gtk_pkg_name" |
| 10876 |
then : |
| 10877 |
|
| 10878 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 10879 |
printf "%s\n" "found" >&6; } |
| 10880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
| 10881 |
printf %s "checking for GTK - version >= $min_gtk_version... " >&6; } |
| 10882 |
GTK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $gtk_pkg_name` |
| 10883 |
GTK_CFLAGS=`$PKG_CONFIG --cflags-only-other $gtk_pkg_name` |
| 10884 |
GTK_LIBDIR=`$PKG_CONFIG --libs-only-L $gtk_pkg_name` |
| 10885 |
GTK_LIBS=`$PKG_CONFIG --libs $gtk_pkg_name` |
| 10886 |
gtk_major_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10887 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 10888 |
gtk_minor_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10889 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 10890 |
gtk_micro_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10891 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 10892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 10893 |
printf "%s\n" "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
| 10894 |
|
| 10895 |
else case e in #( |
| 10896 |
e) |
| 10897 |
GTK_CPPFLAGS="" |
| 10898 |
GTK_CFLAGS="" |
| 10899 |
GTK_LIBDIR="" |
| 10900 |
GTK_LIBS="" |
| 10901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; consider installing your distro GTK -dev package" >&5 |
| 10902 |
printf "%s\n" "no; consider installing your distro GTK -dev package" >&6; } |
| 10903 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10904 |
as_fn_error $? "pkg-config could not find $gtk_pkg_name" "$LINENO" 5 |
| 10905 |
fi |
| 10906 |
;; |
| 10907 |
esac |
| 10908 |
fi |
| 10909 |
fi |
| 10910 |
|
| 10911 |
gtktest_success="yes" |
| 10912 |
if test "$enable_gtktest" = "yes"; then |
| 10913 |
{ |
| 10914 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 10915 |
ac_save_CFLAGS="$CFLAGS" |
| 10916 |
ac_save_LIBS="$LIBS" |
| 10917 |
CPPFLAGS="$CPPFLAGS $GTK_CPPFLAGS" |
| 10918 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10919 |
LIBS="$LIBS $GTK_LIBS" |
| 10920 |
|
| 10921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ability to compile GTK test program" >&5 |
| 10922 |
printf %s "checking ability to compile GTK test program... " >&6; } |
| 10923 |
if test "$cross_compiling" = yes |
| 10924 |
then : |
| 10925 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 10926 |
else case e in #( |
| 10927 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10928 |
/* end confdefs.h. */ |
| 10929 |
|
| 10930 |
#include <gtk/gtk.h> |
| 10931 |
#include <stdio.h> |
| 10932 |
#if STDC_HEADERS |
| 10933 |
# include <stdlib.h> |
| 10934 |
# include <stddef.h> |
| 10935 |
#endif |
| 10936 |
|
| 10937 |
int |
| 10938 |
main () |
| 10939 |
{ |
| 10940 |
int ex_major = $gtk_major_version; |
| 10941 |
int ex_minor = $gtk_minor_version; |
| 10942 |
int ex_micro = $gtk_micro_version; |
| 10943 |
|
| 10944 |
#if $gtk_major_version == 2 |
| 10945 |
guint ob_major = gtk_major_version; |
| 10946 |
guint ob_minor = gtk_minor_version; |
| 10947 |
guint ob_micro = gtk_micro_version; |
| 10948 |
#else |
| 10949 |
guint ob_major = gtk_get_major_version(); |
| 10950 |
guint ob_minor = gtk_get_minor_version(); |
| 10951 |
guint ob_micro = gtk_get_micro_version(); |
| 10952 |
#endif |
| 10953 |
|
| 10954 |
if ((ob_major > ex_major) || |
| 10955 |
((ob_major == ex_major) |
| 10956 |
&& (ob_minor > ex_minor)) || |
| 10957 |
((ob_major == ex_major) |
| 10958 |
&& (ob_minor == ex_minor) |
| 10959 |
&& (ob_micro >= ex_micro))) |
| 10960 |
return 0; |
| 10961 |
else |
| 10962 |
return 1; |
| 10963 |
} |
| 10964 |
|
| 10965 |
_ACEOF |
| 10966 |
if ac_fn_c_try_run "$LINENO" |
| 10967 |
then : |
| 10968 |
gtktest_success="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10969 |
printf "%s\n" "yes" >&6; } |
| 10970 |
else case e in #( |
| 10971 |
e) gtktest_success="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10972 |
printf "%s\n" "no" >&6; } ;; |
| 10973 |
esac |
| 10974 |
fi |
| 10975 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10976 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10977 |
esac |
| 10978 |
fi |
| 10979 |
|
| 10980 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 10981 |
CFLAGS="$ac_save_CFLAGS" |
| 10982 |
LIBS="$ac_save_LIBS" |
| 10983 |
} |
| 10984 |
fi |
| 10985 |
|
| 10986 |
if test "$gtktest_success" = "yes"; then |
| 10987 |
GUI_LIB_LOC="$GTK_LIBDIR" |
| 10988 |
GTK_LIBNAME="$GTK_LIBS" |
| 10989 |
GUI_INC_LOC="$GTK_CPPFLAGS" |
| 10990 |
else |
| 10991 |
GTK_CPPFLAGS="" |
| 10992 |
GTK_CFLAGS="" |
| 10993 |
GTK_LIBDIR="" |
| 10994 |
GTK_LIBS="" |
| 10995 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10996 |
as_fn_error $? "Failed to compile GTK test program." "$LINENO" 5 |
| 10997 |
fi |
| 10998 |
fi |
| 10999 |
|
| 11000 |
|
| 11001 |
|
| 11002 |
|
| 11003 |
|
| 11004 |
if test -n "$GTK_CPPFLAGS"; then |
| 11005 |
SKIP_GTK3=YES |
| 11006 |
SKIP_GTK2=YES |
| 11007 |
SKIP_GNOME=YES |
| 11008 |
SKIP_MOTIF=YES |
| 11009 |
GUITYPE=GTK4 |
| 11010 |
|
| 11011 |
printf "%s\n" "#define USE_GTK4 1" >>confdefs.h |
| 11012 |
|
| 11013 |
X_LIBS= |
| 11014 |
X_PRE_LIBS= |
| 11015 |
X_EXTRA_LIBS= |
| 11016 |
X_LIB= |
| 11017 |
if test "$enable_xim" = "auto"; then |
| 11018 |
enable_xim="yes" |
| 11019 |
fi |
| 11020 |
fi |
| 11021 |
fi |
| 11022 |
fi |
| 11023 |
|
| 11024 |
if test -z "$SKIP_GTK2"; then |
| 11025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 |
| 11026 |
printf %s "checking --disable-gtktest argument... " >&6; } |
| 11027 |
# Check whether --enable-gtktest was given. |
| 11028 |
if test ${enable_gtktest+y} |
| 11029 |
then : |
| 11030 |
enableval=$enable_gtktest; |
| 11031 |
else case e in #( |
| 11032 |
e) enable_gtktest=yes ;; |
| 11033 |
esac |
| 11034 |
fi |
| 11035 |
|
| 11036 |
if test "x$enable_gtktest" = "xyes" ; then |
| 11037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 |
| 11038 |
printf "%s\n" "gtk test enabled" >&6; } |
| 11039 |
else |
| 11040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 |
| 11041 |
printf "%s\n" "gtk test disabled" >&6; } |
| 11042 |
fi |
| 11043 |
|
| 11044 |
if test "x$PKG_CONFIG" != "xno"; then |
| 11045 |
|
| 11046 |
min_gtk_version="2.2.0" |
| 11047 |
|
| 11048 |
if test "$PKG_CONFIG" != "no"; then |
| 11049 |
case $min_gtk_version in #( |
| 11050 |
2.*) : |
| 11051 |
gtk_pkg_name="gtk+-2.0" ;; #( |
| 11052 |
3.*) : |
| 11053 |
gtk_pkg_name="gtk+-3.0" ;; #( |
| 11054 |
4.*) : |
| 11055 |
gtk_pkg_name="gtk4" ;; #( |
| 11056 |
*) : |
| 11057 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 11058 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 11059 |
as_fn_error $? "The configure script does not know which pkg-config name to use for GTK $min_gtk_version\" |
| 11060 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 11061 |
esac |
| 11062 |
|
| 11063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config $gtk_pkg_name" >&5 |
| 11064 |
printf %s "checking for pkg-config $gtk_pkg_name... " >&6; } |
| 11065 |
if "$PKG_CONFIG" --exists "$gtk_pkg_name" |
| 11066 |
then : |
| 11067 |
|
| 11068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11069 |
printf "%s\n" "found" >&6; } |
| 11070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
| 11071 |
printf %s "checking for GTK - version >= $min_gtk_version... " >&6; } |
| 11072 |
GTK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $gtk_pkg_name` |
| 11073 |
GTK_CFLAGS=`$PKG_CONFIG --cflags-only-other $gtk_pkg_name` |
| 11074 |
GTK_LIBDIR=`$PKG_CONFIG --libs-only-L $gtk_pkg_name` |
| 11075 |
GTK_LIBS=`$PKG_CONFIG --libs $gtk_pkg_name` |
| 11076 |
gtk_major_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 11077 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 11078 |
gtk_minor_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 11079 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 11080 |
gtk_micro_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 11081 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 11082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 11083 |
printf "%s\n" "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
| 11084 |
|
| 11085 |
else case e in #( |
| 11086 |
e) |
| 11087 |
GTK_CPPFLAGS="" |
| 11088 |
GTK_CFLAGS="" |
| 11089 |
GTK_LIBDIR="" |
| 11090 |
GTK_LIBS="" |
| 11091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; consider installing your distro GTK -dev package" >&5 |
| 11092 |
printf "%s\n" "no; consider installing your distro GTK -dev package" >&6; } |
| 11093 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 11094 |
as_fn_error $? "pkg-config could not find $gtk_pkg_name" "$LINENO" 5 |
| 11095 |
fi |
| 11096 |
;; |
| 11097 |
esac |
| 11098 |
fi |
| 11099 |
fi |
| 11100 |
|
| 11101 |
gtktest_success="yes" |
| 11102 |
if test "$enable_gtktest" = "yes"; then |
| 11103 |
{ |
| 11104 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 11105 |
ac_save_CFLAGS="$CFLAGS" |
| 11106 |
ac_save_LIBS="$LIBS" |
| 11107 |
CPPFLAGS="$CPPFLAGS $GTK_CPPFLAGS" |
| 11108 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 11109 |
LIBS="$LIBS $GTK_LIBS" |
| 11110 |
|
| 11111 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ability to compile GTK test program" >&5 |
| 11112 |
printf %s "checking ability to compile GTK test program... " >&6; } |
| 11113 |
if test "$cross_compiling" = yes |
| 11114 |
then : |
| 11115 |
echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 11116 |
else case e in #( |
| 11117 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11118 |
/* end confdefs.h. */ |
| 11119 |
|
| 11120 |
#include <gtk/gtk.h> |
| 11121 |
#include <stdio.h> |
| 11122 |
#if STDC_HEADERS |
| 11123 |
# include <stdlib.h> |
| 11124 |
# include <stddef.h> |
| 11125 |
#endif |
| 11126 |
|
| 11127 |
int |
| 11128 |
main () |
| 11129 |
{ |
| 11130 |
int ex_major = $gtk_major_version; |
| 11131 |
int ex_minor = $gtk_minor_version; |
| 11132 |
int ex_micro = $gtk_micro_version; |
| 11133 |
|
| 11134 |
#if $gtk_major_version == 2 |
| 11135 |
guint ob_major = gtk_major_version; |
| 11136 |
guint ob_minor = gtk_minor_version; |
| 11137 |
guint ob_micro = gtk_micro_version; |
| 11138 |
#else |
| 11139 |
guint ob_major = gtk_get_major_version(); |
| 11140 |
guint ob_minor = gtk_get_minor_version(); |
| 11141 |
guint ob_micro = gtk_get_micro_version(); |
| 11142 |
#endif |
| 11143 |
|
| 11144 |
if ((ob_major > ex_major) || |
| 11145 |
((ob_major == ex_major) |
| 11146 |
&& (ob_minor > ex_minor)) || |
| 11147 |
((ob_major == ex_major) |
| 11148 |
&& (ob_minor == ex_minor) |
| 11149 |
&& (ob_micro >= ex_micro))) |
| 11150 |
return 0; |
| 11151 |
else |
| 11152 |
return 1; |
| 11153 |
} |
| 11154 |
|
| 11155 |
_ACEOF |
| 11156 |
if ac_fn_c_try_run "$LINENO" |
| 11157 |
then : |
| 11158 |
gtktest_success="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11159 |
printf "%s\n" "yes" >&6; } |
| 11160 |
else case e in #( |
| 11161 |
e) gtktest_success="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11162 |
printf "%s\n" "no" >&6; } ;; |
| 11163 |
esac |
| 11164 |
fi |
| 11165 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11166 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11167 |
esac |
| 11168 |
fi |
| 11169 |
|
| 11170 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 11171 |
CFLAGS="$ac_save_CFLAGS" |
| 11172 |
LIBS="$ac_save_LIBS" |
| 11173 |
} |
| 11174 |
fi |
| 11175 |
|
| 11176 |
if test "$gtktest_success" = "yes"; then |
| 11177 |
GUI_LIB_LOC="$GTK_LIBDIR" |
| 11178 |
GTK_LIBNAME="$GTK_LIBS" |
| 11179 |
GUI_INC_LOC="$GTK_CPPFLAGS" |
| 11180 |
else |
| 11181 |
GTK_CPPFLAGS="" |
| 11182 |
GTK_CFLAGS="" |
| 11183 |
GTK_LIBDIR="" |
| 11184 |
GTK_LIBS="" |
| 11185 |
if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 11186 |
as_fn_error $? "Failed to compile GTK test program." "$LINENO" 5 |
| 11187 |
fi |
| 11188 |
fi |
| 11189 |
|
| 11190 |
|
| 11191 |
|
| 11192 |
|
| 11193 |
|
| 11194 |
if test -n "$GTK_CPPFLAGS"; then |
| 11195 |
SKIP_MOTIF=YES |
| 11196 |
GUITYPE=GTK |
| 11197 |
|
| 11198 |
fi |
| 11199 |
fi |
| 11200 |
if test "x$GUITYPE" = "xGTK"; then |
| 11201 |
if test -z "$SKIP_GNOME"; then |
| 11202 |
{ |
| 11203 |
|
| 11204 |
|
| 11205 |
|
| 11206 |
|
| 11207 |
|
| 11208 |
|
| 11209 |
# Check whether --with-gnome-includes was given. |
| 11210 |
if test ${with_gnome_includes+y} |
| 11211 |
then : |
| 11212 |
withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
| 11213 |
|
| 11214 |
fi |
| 11215 |
|
| 11216 |
|
| 11217 |
|
| 11218 |
# Check whether --with-gnome-libs was given. |
| 11219 |
if test ${with_gnome_libs+y} |
| 11220 |
then : |
| 11221 |
withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
| 11222 |
|
| 11223 |
fi |
| 11224 |
|
| 11225 |
|
| 11226 |
|
| 11227 |
# Check whether --with-gnome was given. |
| 11228 |
if test ${with_gnome+y} |
| 11229 |
then : |
| 11230 |
withval=$with_gnome; if test x$withval = xyes; then |
| 11231 |
want_gnome=yes |
| 11232 |
have_gnome=yes |
| 11233 |
else |
| 11234 |
if test "x$withval" = xno; then |
| 11235 |
want_gnome=no |
| 11236 |
else |
| 11237 |
want_gnome=yes |
| 11238 |
LDFLAGS="$LDFLAGS -L$withval/lib" |
| 11239 |
CFLAGS="$CFLAGS -I$withval/include" |
| 11240 |
gnome_prefix=$withval/lib |
| 11241 |
fi |
| 11242 |
fi |
| 11243 |
else case e in #( |
| 11244 |
e) want_gnome=yes ;; |
| 11245 |
esac |
| 11246 |
fi |
| 11247 |
|
| 11248 |
|
| 11249 |
if test "x$want_gnome" = xyes; then |
| 11250 |
{ |
| 11251 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 |
| 11252 |
printf %s "checking for libgnomeui-2.0... " >&6; } |
| 11253 |
if $PKG_CONFIG --exists libgnomeui-2.0; then |
| 11254 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11255 |
printf "%s\n" "yes" >&6; } |
| 11256 |
GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 11257 |
GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 11258 |
GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags-only-I libgnomeui-2.0` |
| 11259 |
|
| 11260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 |
| 11261 |
printf %s "checking for FreeBSD... " >&6; } |
| 11262 |
if test "$vim_cv_uname_output" = FreeBSD; then |
| 11263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11264 |
printf "%s\n" "yes" >&6; } |
| 11265 |
GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
| 11266 |
GNOME_LIBS="$GNOME_LIBS -pthread" |
| 11267 |
else |
| 11268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11269 |
printf "%s\n" "no" >&6; } |
| 11270 |
fi |
| 11271 |
have_gnome=yes |
| 11272 |
else |
| 11273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11274 |
printf "%s\n" "not found" >&6; } |
| 11275 |
if test "x" = xfail; then |
| 11276 |
as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 |
| 11277 |
fi |
| 11278 |
fi |
| 11279 |
} |
| 11280 |
fi |
| 11281 |
|
| 11282 |
if test "x$have_gnome" = xyes ; then |
| 11283 |
printf "%s\n" "#define FEAT_GUI_GNOME 1" >>confdefs.h |
| 11284 |
|
| 11285 |
GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 11286 |
GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 11287 |
fi |
| 11288 |
} |
| 11289 |
fi |
| 11290 |
fi |
| 11291 |
fi |
| 11292 |
|
| 11293 |
if test "x$GUITYPE" = "xGTK"; then |
| 11294 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 |
| 11295 |
printf %s "checking version of Gdk-Pixbuf... " >&6; } |
| 11296 |
gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` |
| 11297 |
if test "x$gdk_pixbuf_version" != x ; then |
| 11298 |
gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ |
| 11299 |
sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` |
| 11300 |
if test "x$gdk_pixbuf_version_minor" != x -a \ |
| 11301 |
$gdk_pixbuf_version_minor -ge 31 ; then |
| 11302 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK." >&5 |
| 11303 |
printf "%s\n" "OK." >&6; } |
| 11304 |
# Extract the first word of "glib-compile-resources", so it can be a program name with args. |
| 11305 |
set dummy glib-compile-resources; ac_word=$2 |
| 11306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11307 |
printf %s "checking for $ac_word... " >&6; } |
| 11308 |
if test ${ac_cv_path_GLIB_COMPILE_RESOURCES+y} |
| 11309 |
then : |
| 11310 |
printf %s "(cached) " >&6 |
| 11311 |
else case e in #( |
| 11312 |
e) case $GLIB_COMPILE_RESOURCES in |
| 11313 |
[\\/]* | ?:[\\/]*) |
| 11314 |
ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. |
| 11315 |
;; |
| 11316 |
*) |
| 11317 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11318 |
for as_dir in $PATH |
| 11319 |
do |
| 11320 |
IFS=$as_save_IFS |
| 11321 |
case $as_dir in #((( |
| 11322 |
'') as_dir=./ ;; |
| 11323 |
*/) ;; |
| 11324 |
*) as_dir=$as_dir/ ;; |
| 11325 |
esac |
| 11326 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11327 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11328 |
ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir$ac_word$ac_exec_ext" |
| 11329 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11330 |
break 2 |
| 11331 |
fi |
| 11332 |
done |
| 11333 |
done |
| 11334 |
IFS=$as_save_IFS |
| 11335 |
|
| 11336 |
test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" |
| 11337 |
;; |
| 11338 |
esac ;; |
| 11339 |
esac |
| 11340 |
fi |
| 11341 |
GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES |
| 11342 |
if test -n "$GLIB_COMPILE_RESOURCES"; then |
| 11343 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 |
| 11344 |
printf "%s\n" "$GLIB_COMPILE_RESOURCES" >&6; } |
| 11345 |
else |
| 11346 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11347 |
printf "%s\n" "no" >&6; } |
| 11348 |
fi |
| 11349 |
|
| 11350 |
|
| 11351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 |
| 11352 |
printf %s "checking glib-compile-resources... " >&6; } |
| 11353 |
if test "x$GLIB_COMPILE_RESOURCES" = xno ; then |
| 11354 |
GLIB_COMPILE_RESOURCES="" |
| 11355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 |
| 11356 |
printf "%s\n" "cannot be found in PATH." >&6; } |
| 11357 |
else |
| 11358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: usable." >&5 |
| 11359 |
printf "%s\n" "usable." >&6; } |
| 11360 |
printf "%s\n" "#define USE_GRESOURCE 1" >>confdefs.h |
| 11361 |
|
| 11362 |
GRESOURCE_SRC="auto/gui_gtk_gresources.c" |
| 11363 |
GRESOURCE_OBJ="objects/gui_gtk_gresources.o" |
| 11364 |
fi |
| 11365 |
else |
| 11366 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 |
| 11367 |
printf "%s\n" "not usable." >&6; } |
| 11368 |
fi |
| 11369 |
else |
| 11370 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 |
| 11371 |
printf "%s\n" "cannot obtain from pkg_config." >&6; } |
| 11372 |
fi |
| 11373 |
|
| 11374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 |
| 11375 |
printf %s "checking --disable-icon-cache-update argument... " >&6; } |
| 11376 |
# Check whether --enable-icon_cache_update was given. |
| 11377 |
if test ${enable_icon_cache_update+y} |
| 11378 |
then : |
| 11379 |
enableval=$enable_icon_cache_update; |
| 11380 |
else case e in #( |
| 11381 |
e) enable_icon_cache_update="yes" ;; |
| 11382 |
esac |
| 11383 |
fi |
| 11384 |
|
| 11385 |
if test "$enable_icon_cache_update" = "yes"; then |
| 11386 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 11387 |
printf "%s\n" "not set" >&6; } |
| 11388 |
# Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. |
| 11389 |
set dummy gtk-update-icon-cache; ac_word=$2 |
| 11390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11391 |
printf %s "checking for $ac_word... " >&6; } |
| 11392 |
if test ${ac_cv_path_GTK_UPDATE_ICON_CACHE+y} |
| 11393 |
then : |
| 11394 |
printf %s "(cached) " >&6 |
| 11395 |
else case e in #( |
| 11396 |
e) case $GTK_UPDATE_ICON_CACHE in |
| 11397 |
[\\/]* | ?:[\\/]*) |
| 11398 |
ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. |
| 11399 |
;; |
| 11400 |
*) |
| 11401 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11402 |
for as_dir in $PATH |
| 11403 |
do |
| 11404 |
IFS=$as_save_IFS |
| 11405 |
case $as_dir in #((( |
| 11406 |
'') as_dir=./ ;; |
| 11407 |
*/) ;; |
| 11408 |
*) as_dir=$as_dir/ ;; |
| 11409 |
esac |
| 11410 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11411 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11412 |
ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir$ac_word$ac_exec_ext" |
| 11413 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11414 |
break 2 |
| 11415 |
fi |
| 11416 |
done |
| 11417 |
done |
| 11418 |
IFS=$as_save_IFS |
| 11419 |
|
| 11420 |
test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" |
| 11421 |
;; |
| 11422 |
esac ;; |
| 11423 |
esac |
| 11424 |
fi |
| 11425 |
GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE |
| 11426 |
if test -n "$GTK_UPDATE_ICON_CACHE"; then |
| 11427 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 |
| 11428 |
printf "%s\n" "$GTK_UPDATE_ICON_CACHE" >&6; } |
| 11429 |
else |
| 11430 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11431 |
printf "%s\n" "no" >&6; } |
| 11432 |
fi |
| 11433 |
|
| 11434 |
|
| 11435 |
if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then |
| 11436 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 |
| 11437 |
printf "%s\n" "not found in PATH." >&6; } |
| 11438 |
fi |
| 11439 |
else |
| 11440 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 |
| 11441 |
printf "%s\n" "update disabled" >&6; } |
| 11442 |
fi |
| 11443 |
|
| 11444 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 |
| 11445 |
printf %s "checking --disable-desktop-database-update argument... " >&6; } |
| 11446 |
# Check whether --enable-desktop_database_update was given. |
| 11447 |
if test ${enable_desktop_database_update+y} |
| 11448 |
then : |
| 11449 |
enableval=$enable_desktop_database_update; |
| 11450 |
else case e in #( |
| 11451 |
e) enable_desktop_database_update="yes" ;; |
| 11452 |
esac |
| 11453 |
fi |
| 11454 |
|
| 11455 |
if test "$enable_desktop_database_update" = "yes"; then |
| 11456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 11457 |
printf "%s\n" "not set" >&6; } |
| 11458 |
# Extract the first word of "update-desktop-database", so it can be a program name with args. |
| 11459 |
set dummy update-desktop-database; ac_word=$2 |
| 11460 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11461 |
printf %s "checking for $ac_word... " >&6; } |
| 11462 |
if test ${ac_cv_path_UPDATE_DESKTOP_DATABASE+y} |
| 11463 |
then : |
| 11464 |
printf %s "(cached) " >&6 |
| 11465 |
else case e in #( |
| 11466 |
e) case $UPDATE_DESKTOP_DATABASE in |
| 11467 |
[\\/]* | ?:[\\/]*) |
| 11468 |
ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. |
| 11469 |
;; |
| 11470 |
*) |
| 11471 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11472 |
for as_dir in $PATH |
| 11473 |
do |
| 11474 |
IFS=$as_save_IFS |
| 11475 |
case $as_dir in #((( |
| 11476 |
'') as_dir=./ ;; |
| 11477 |
*/) ;; |
| 11478 |
*) as_dir=$as_dir/ ;; |
| 11479 |
esac |
| 11480 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11481 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11482 |
ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir$ac_word$ac_exec_ext" |
| 11483 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11484 |
break 2 |
| 11485 |
fi |
| 11486 |
done |
| 11487 |
done |
| 11488 |
IFS=$as_save_IFS |
| 11489 |
|
| 11490 |
test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" |
| 11491 |
;; |
| 11492 |
esac ;; |
| 11493 |
esac |
| 11494 |
fi |
| 11495 |
UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE |
| 11496 |
if test -n "$UPDATE_DESKTOP_DATABASE"; then |
| 11497 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 |
| 11498 |
printf "%s\n" "$UPDATE_DESKTOP_DATABASE" >&6; } |
| 11499 |
else |
| 11500 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11501 |
printf "%s\n" "no" >&6; } |
| 11502 |
fi |
| 11503 |
|
| 11504 |
|
| 11505 |
if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then |
| 11506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 |
| 11507 |
printf "%s\n" "not found in PATH." >&6; } |
| 11508 |
fi |
| 11509 |
else |
| 11510 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 |
| 11511 |
printf "%s\n" "update disabled" >&6; } |
| 11512 |
fi |
| 11513 |
fi |
| 11514 |
|
| 11515 |
|
| 11516 |
|
| 11517 |
|
| 11518 |
|
| 11519 |
|
| 11520 |
|
| 11521 |
if test -z "$SKIP_MOTIF"; then |
| 11522 |
gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" |
| 11523 |
GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 11524 |
|
| 11525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 |
| 11526 |
printf %s "checking for location of Motif GUI includes... " >&6; } |
| 11527 |
gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 11528 |
GUI_INC_LOC= |
| 11529 |
for try in $gui_includes; do |
| 11530 |
if test -f "$try/Xm/Xm.h"; then |
| 11531 |
GUI_INC_LOC=$try |
| 11532 |
fi |
| 11533 |
done |
| 11534 |
if test -n "$GUI_INC_LOC"; then |
| 11535 |
if test "$GUI_INC_LOC" = /usr/include; then |
| 11536 |
GUI_INC_LOC= |
| 11537 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 |
| 11538 |
printf "%s\n" "in default path" >&6; } |
| 11539 |
else |
| 11540 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 |
| 11541 |
printf "%s\n" "$GUI_INC_LOC" >&6; } |
| 11542 |
fi |
| 11543 |
else |
| 11544 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 11545 |
printf "%s\n" "<not found>" >&6; } |
| 11546 |
SKIP_MOTIF=YES |
| 11547 |
fi |
| 11548 |
fi |
| 11549 |
|
| 11550 |
|
| 11551 |
if test -z "$SKIP_MOTIF"; then |
| 11552 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 |
| 11553 |
printf %s "checking --with-motif-lib argument... " >&6; } |
| 11554 |
|
| 11555 |
# Check whether --with-motif-lib was given. |
| 11556 |
if test ${with_motif_lib+y} |
| 11557 |
then : |
| 11558 |
withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 11559 |
fi |
| 11560 |
|
| 11561 |
|
| 11562 |
if test -n "$MOTIF_LIBNAME"; then |
| 11563 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 |
| 11564 |
printf "%s\n" "$MOTIF_LIBNAME" >&6; } |
| 11565 |
GUI_LIB_LOC= |
| 11566 |
else |
| 11567 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11568 |
printf "%s\n" "no" >&6; } |
| 11569 |
|
| 11570 |
GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 11571 |
|
| 11572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 |
| 11573 |
printf %s "checking for location of Motif GUI libs... " >&6; } |
| 11574 |
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" |
| 11575 |
GUI_LIB_LOC= |
| 11576 |
for try in $gui_libs; do |
| 11577 |
for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do |
| 11578 |
if test -f "$libtry"; then |
| 11579 |
GUI_LIB_LOC=$try |
| 11580 |
fi |
| 11581 |
done |
| 11582 |
done |
| 11583 |
if test -n "$GUI_LIB_LOC"; then |
| 11584 |
if test "$GUI_LIB_LOC" = /usr/lib \ |
| 11585 |
-o "$GUI_LIB_LOC" = /usr/lib64 \ |
| 11586 |
-o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ |
| 11587 |
-o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then |
| 11588 |
GUI_LIB_LOC= |
| 11589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 |
| 11590 |
printf "%s\n" "in default path" >&6; } |
| 11591 |
else |
| 11592 |
if test -n "$GUI_LIB_LOC"; then |
| 11593 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 |
| 11594 |
printf "%s\n" "$GUI_LIB_LOC" >&6; } |
| 11595 |
if test "$vim_cv_uname_output" = SunOS && |
| 11596 |
echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
| 11597 |
GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 11598 |
fi |
| 11599 |
fi |
| 11600 |
fi |
| 11601 |
MOTIF_LIBNAME=-lXm |
| 11602 |
else |
| 11603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 11604 |
printf "%s\n" "<not found>" >&6; } |
| 11605 |
SKIP_MOTIF=YES |
| 11606 |
fi |
| 11607 |
fi |
| 11608 |
fi |
| 11609 |
|
| 11610 |
if test -z "$SKIP_MOTIF"; then |
| 11611 |
GUITYPE=MOTIF |
| 11612 |
|
| 11613 |
fi |
| 11614 |
|
| 11615 |
if test -z "$SKIP_MOTIF"; then |
| 11616 |
if test -n "$GUI_INC_LOC"; then |
| 11617 |
GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 11618 |
fi |
| 11619 |
if test -n "$GUI_LIB_LOC"; then |
| 11620 |
GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 11621 |
fi |
| 11622 |
|
| 11623 |
ldflags_save=$LDFLAGS |
| 11624 |
LDFLAGS="$X_LIBS $LDFLAGS" |
| 11625 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
| 11626 |
printf %s "checking for XShapeQueryExtension in -lXext... " >&6; } |
| 11627 |
if test ${ac_cv_lib_Xext_XShapeQueryExtension+y} |
| 11628 |
then : |
| 11629 |
printf %s "(cached) " >&6 |
| 11630 |
else case e in #( |
| 11631 |
e) ac_check_lib_save_LIBS=$LIBS |
| 11632 |
LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 11633 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11634 |
/* end confdefs.h. */ |
| 11635 |
|
| 11636 |
/* Override any GCC internal prototype to avoid an error. |
| 11637 |
Use char because int might match the return type of a GCC |
| 11638 |
builtin and then its argument prototype would still apply. |
| 11639 |
The 'extern "C"' is for builds by C++ compilers; |
| 11640 |
although this is not generally supported in C code supporting it here |
| 11641 |
has little cost and some practical benefit (sr 110532). */ |
| 11642 |
#ifdef __cplusplus |
| 11643 |
extern "C" |
| 11644 |
#endif |
| 11645 |
char XShapeQueryExtension (void); |
| 11646 |
int |
| 11647 |
main (void) |
| 11648 |
{ |
| 11649 |
return XShapeQueryExtension (); |
| 11650 |
; |
| 11651 |
return 0; |
| 11652 |
} |
| 11653 |
_ACEOF |
| 11654 |
if ac_fn_c_try_link "$LINENO" |
| 11655 |
then : |
| 11656 |
ac_cv_lib_Xext_XShapeQueryExtension=yes |
| 11657 |
else case e in #( |
| 11658 |
e) ac_cv_lib_Xext_XShapeQueryExtension=no ;; |
| 11659 |
esac |
| 11660 |
fi |
| 11661 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11662 |
conftest$ac_exeext conftest.$ac_ext |
| 11663 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 11664 |
esac |
| 11665 |
fi |
| 11666 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 11667 |
printf "%s\n" "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
| 11668 |
if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes |
| 11669 |
then : |
| 11670 |
GUI_X_LIBS="-lXext" |
| 11671 |
fi |
| 11672 |
|
| 11673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 |
| 11674 |
printf %s "checking for wslen in -lw... " >&6; } |
| 11675 |
if test ${ac_cv_lib_w_wslen+y} |
| 11676 |
then : |
| 11677 |
printf %s "(cached) " >&6 |
| 11678 |
else case e in #( |
| 11679 |
e) ac_check_lib_save_LIBS=$LIBS |
| 11680 |
LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $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 |
The 'extern "C"' is for builds by C++ compilers; |
| 11688 |
although this is not generally supported in C code supporting it here |
| 11689 |
has little cost and some practical benefit (sr 110532). */ |
| 11690 |
#ifdef __cplusplus |
| 11691 |
extern "C" |
| 11692 |
#endif |
| 11693 |
char wslen (void); |
| 11694 |
int |
| 11695 |
main (void) |
| 11696 |
{ |
| 11697 |
return wslen (); |
| 11698 |
; |
| 11699 |
return 0; |
| 11700 |
} |
| 11701 |
_ACEOF |
| 11702 |
if ac_fn_c_try_link "$LINENO" |
| 11703 |
then : |
| 11704 |
ac_cv_lib_w_wslen=yes |
| 11705 |
else case e in #( |
| 11706 |
e) ac_cv_lib_w_wslen=no ;; |
| 11707 |
esac |
| 11708 |
fi |
| 11709 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11710 |
conftest$ac_exeext conftest.$ac_ext |
| 11711 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 11712 |
esac |
| 11713 |
fi |
| 11714 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 |
| 11715 |
printf "%s\n" "$ac_cv_lib_w_wslen" >&6; } |
| 11716 |
if test "x$ac_cv_lib_w_wslen" = xyes |
| 11717 |
then : |
| 11718 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
| 11719 |
fi |
| 11720 |
|
| 11721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 11722 |
printf %s "checking for dlsym in -ldl... " >&6; } |
| 11723 |
if test ${ac_cv_lib_dl_dlsym+y} |
| 11724 |
then : |
| 11725 |
printf %s "(cached) " >&6 |
| 11726 |
else case e in #( |
| 11727 |
e) ac_check_lib_save_LIBS=$LIBS |
| 11728 |
LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 11729 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11730 |
/* end confdefs.h. */ |
| 11731 |
|
| 11732 |
/* Override any GCC internal prototype to avoid an error. |
| 11733 |
Use char because int might match the return type of a GCC |
| 11734 |
builtin and then its argument prototype would still apply. |
| 11735 |
The 'extern "C"' is for builds by C++ compilers; |
| 11736 |
although this is not generally supported in C code supporting it here |
| 11737 |
has little cost and some practical benefit (sr 110532). */ |
| 11738 |
#ifdef __cplusplus |
| 11739 |
extern "C" |
| 11740 |
#endif |
| 11741 |
char dlsym (void); |
| 11742 |
int |
| 11743 |
main (void) |
| 11744 |
{ |
| 11745 |
return dlsym (); |
| 11746 |
; |
| 11747 |
return 0; |
| 11748 |
} |
| 11749 |
_ACEOF |
| 11750 |
if ac_fn_c_try_link "$LINENO" |
| 11751 |
then : |
| 11752 |
ac_cv_lib_dl_dlsym=yes |
| 11753 |
else case e in #( |
| 11754 |
e) ac_cv_lib_dl_dlsym=no ;; |
| 11755 |
esac |
| 11756 |
fi |
| 11757 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11758 |
conftest$ac_exeext conftest.$ac_ext |
| 11759 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 11760 |
esac |
| 11761 |
fi |
| 11762 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 11763 |
printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } |
| 11764 |
if test "x$ac_cv_lib_dl_dlsym" = xyes |
| 11765 |
then : |
| 11766 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
| 11767 |
fi |
| 11768 |
|
| 11769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 11770 |
printf %s "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
| 11771 |
if test ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+y} |
| 11772 |
then : |
| 11773 |
printf %s "(cached) " >&6 |
| 11774 |
else case e in #( |
| 11775 |
e) ac_check_lib_save_LIBS=$LIBS |
| 11776 |
LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 11777 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11778 |
/* end confdefs.h. */ |
| 11779 |
|
| 11780 |
/* Override any GCC internal prototype to avoid an error. |
| 11781 |
Use char because int might match the return type of a GCC |
| 11782 |
builtin and then its argument prototype would still apply. |
| 11783 |
The 'extern "C"' is for builds by C++ compilers; |
| 11784 |
although this is not generally supported in C code supporting it here |
| 11785 |
has little cost and some practical benefit (sr 110532). */ |
| 11786 |
#ifdef __cplusplus |
| 11787 |
extern "C" |
| 11788 |
#endif |
| 11789 |
char XmuCreateStippledPixmap (void); |
| 11790 |
int |
| 11791 |
main (void) |
| 11792 |
{ |
| 11793 |
return XmuCreateStippledPixmap (); |
| 11794 |
; |
| 11795 |
return 0; |
| 11796 |
} |
| 11797 |
_ACEOF |
| 11798 |
if ac_fn_c_try_link "$LINENO" |
| 11799 |
then : |
| 11800 |
ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
| 11801 |
else case e in #( |
| 11802 |
e) ac_cv_lib_Xmu_XmuCreateStippledPixmap=no ;; |
| 11803 |
esac |
| 11804 |
fi |
| 11805 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11806 |
conftest$ac_exeext conftest.$ac_ext |
| 11807 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 11808 |
esac |
| 11809 |
fi |
| 11810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 11811 |
printf "%s\n" "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
| 11812 |
if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes |
| 11813 |
then : |
| 11814 |
GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
| 11815 |
fi |
| 11816 |
|
| 11817 |
if test -z "$SKIP_MOTIF"; then |
| 11818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 |
| 11819 |
printf %s "checking for XpEndJob in -lXp... " >&6; } |
| 11820 |
if test ${ac_cv_lib_Xp_XpEndJob+y} |
| 11821 |
then : |
| 11822 |
printf %s "(cached) " >&6 |
| 11823 |
else case e in #( |
| 11824 |
e) ac_check_lib_save_LIBS=$LIBS |
| 11825 |
LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 11826 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11827 |
/* end confdefs.h. */ |
| 11828 |
|
| 11829 |
/* Override any GCC internal prototype to avoid an error. |
| 11830 |
Use char because int might match the return type of a GCC |
| 11831 |
builtin and then its argument prototype would still apply. |
| 11832 |
The 'extern "C"' is for builds by C++ compilers; |
| 11833 |
although this is not generally supported in C code supporting it here |
| 11834 |
has little cost and some practical benefit (sr 110532). */ |
| 11835 |
#ifdef __cplusplus |
| 11836 |
extern "C" |
| 11837 |
#endif |
| 11838 |
char XpEndJob (void); |
| 11839 |
int |
| 11840 |
main (void) |
| 11841 |
{ |
| 11842 |
return XpEndJob (); |
| 11843 |
; |
| 11844 |
return 0; |
| 11845 |
} |
| 11846 |
_ACEOF |
| 11847 |
if ac_fn_c_try_link "$LINENO" |
| 11848 |
then : |
| 11849 |
ac_cv_lib_Xp_XpEndJob=yes |
| 11850 |
else case e in #( |
| 11851 |
e) ac_cv_lib_Xp_XpEndJob=no ;; |
| 11852 |
esac |
| 11853 |
fi |
| 11854 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11855 |
conftest$ac_exeext conftest.$ac_ext |
| 11856 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 11857 |
esac |
| 11858 |
fi |
| 11859 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 11860 |
printf "%s\n" "$ac_cv_lib_Xp_XpEndJob" >&6; } |
| 11861 |
if test "x$ac_cv_lib_Xp_XpEndJob" = xyes |
| 11862 |
then : |
| 11863 |
GUI_X_LIBS="-lXp $GUI_X_LIBS" |
| 11864 |
fi |
| 11865 |
|
| 11866 |
fi |
| 11867 |
LDFLAGS=$ldflags_save |
| 11868 |
|
| 11869 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 |
| 11870 |
printf %s "checking for extra X11 defines... " >&6; } |
| 11871 |
NARROW_PROTO= |
| 11872 |
rm -fr conftestdir |
| 11873 |
if mkdir conftestdir; then |
| 11874 |
cd conftestdir |
| 11875 |
cat > Imakefile <<'EOF' |
| 11876 |
acfindx: |
| 11877 |
@echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 11878 |
EOF |
| 11879 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 11880 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 11881 |
fi |
| 11882 |
cd .. |
| 11883 |
rm -fr conftestdir |
| 11884 |
fi |
| 11885 |
if test -z "$NARROW_PROTO"; then |
| 11886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11887 |
printf "%s\n" "no" >&6; } |
| 11888 |
else |
| 11889 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 |
| 11890 |
printf "%s\n" "$NARROW_PROTO" >&6; } |
| 11891 |
fi |
| 11892 |
|
| 11893 |
fi |
| 11894 |
|
| 11895 |
if test "$enable_xsmp" = "yes" -a "x$with_x" != "xno"; then |
| 11896 |
cppflags_save=$CPPFLAGS |
| 11897 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11898 |
ac_fn_c_check_header_compile "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
| 11899 |
if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes |
| 11900 |
then : |
| 11901 |
printf "%s\n" "#define HAVE_X11_SM_SMLIB_H 1" >>confdefs.h |
| 11902 |
|
| 11903 |
fi |
| 11904 |
|
| 11905 |
CPPFLAGS=$cppflags_save |
| 11906 |
fi |
| 11907 |
|
| 11908 |
|
| 11909 |
if test -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then |
| 11910 |
cppflags_save=$CPPFLAGS |
| 11911 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11912 |
ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
| 11913 |
if test "x$ac_cv_header_X11_xpm_h" = xyes |
| 11914 |
then : |
| 11915 |
printf "%s\n" "#define HAVE_X11_XPM_H 1" >>confdefs.h |
| 11916 |
|
| 11917 |
fi |
| 11918 |
ac_fn_c_check_header_compile "$LINENO" "X11/Sunkeysym.h" "ac_cv_header_X11_Sunkeysym_h" "$ac_includes_default" |
| 11919 |
if test "x$ac_cv_header_X11_Sunkeysym_h" = xyes |
| 11920 |
then : |
| 11921 |
printf "%s\n" "#define HAVE_X11_SUNKEYSYM_H 1" >>confdefs.h |
| 11922 |
|
| 11923 |
fi |
| 11924 |
|
| 11925 |
|
| 11926 |
if test ! "$enable_xim" = "no"; then |
| 11927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 |
| 11928 |
printf %s "checking for XIMText in X11/Xlib.h... " >&6; } |
| 11929 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11930 |
/* end confdefs.h. */ |
| 11931 |
#include <X11/Xlib.h> |
| 11932 |
_ACEOF |
| 11933 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11934 |
$EGREP_TRADITIONAL "XIMText" >/dev/null 2>&1 |
| 11935 |
then : |
| 11936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11937 |
printf "%s\n" "yes" >&6; } |
| 11938 |
else case e in #( |
| 11939 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 |
| 11940 |
printf "%s\n" "no; xim has been disabled" >&6; }; enable_xim="no" ;; |
| 11941 |
esac |
| 11942 |
fi |
| 11943 |
rm -rf conftest* |
| 11944 |
|
| 11945 |
fi |
| 11946 |
CPPFLAGS=$cppflags_save |
| 11947 |
|
| 11948 |
if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then |
| 11949 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 |
| 11950 |
printf "%s\n" "X GUI selected; xim has been enabled" >&6; } |
| 11951 |
enable_xim="yes" |
| 11952 |
fi |
| 11953 |
fi |
| 11954 |
|
| 11955 |
if test -z "$SKIP_MOTIF"; then |
| 11956 |
cppflags_save=$CPPFLAGS |
| 11957 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 |
| 11959 |
printf %s "checking for X11/Xmu/Editres.h... " >&6; } |
| 11960 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11961 |
/* end confdefs.h. */ |
| 11962 |
|
| 11963 |
#include <X11/Intrinsic.h> |
| 11964 |
#include <X11/Xmu/Editres.h> |
| 11965 |
int |
| 11966 |
main (void) |
| 11967 |
{ |
| 11968 |
int i; i = 0; |
| 11969 |
; |
| 11970 |
return 0; |
| 11971 |
} |
| 11972 |
_ACEOF |
| 11973 |
if ac_fn_c_try_compile "$LINENO" |
| 11974 |
then : |
| 11975 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11976 |
printf "%s\n" "yes" >&6; } |
| 11977 |
printf "%s\n" "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h |
| 11978 |
|
| 11979 |
else case e in #( |
| 11980 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11981 |
printf "%s\n" "no" >&6; } ;; |
| 11982 |
esac |
| 11983 |
fi |
| 11984 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11985 |
CPPFLAGS=$cppflags_save |
| 11986 |
fi |
| 11987 |
|
| 11988 |
if test -z "$SKIP_MOTIF"; then |
| 11989 |
cppflags_save=$CPPFLAGS |
| 11990 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11991 |
if test "$zOSUnix" = "yes"; then |
| 11992 |
ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default" |
| 11993 |
if test "x$ac_cv_header_Xm_Xm_h" = xyes |
| 11994 |
then : |
| 11995 |
printf "%s\n" "#define HAVE_XM_XM_H 1" >>confdefs.h |
| 11996 |
|
| 11997 |
fi |
| 11998 |
|
| 11999 |
else |
| 12000 |
ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default" |
| 12001 |
if test "x$ac_cv_header_Xm_Xm_h" = xyes |
| 12002 |
then : |
| 12003 |
printf "%s\n" "#define HAVE_XM_XM_H 1" >>confdefs.h |
| 12004 |
|
| 12005 |
fi |
| 12006 |
ac_fn_c_check_header_compile "$LINENO" "Xm/XpmP.h" "ac_cv_header_Xm_XpmP_h" "$ac_includes_default" |
| 12007 |
if test "x$ac_cv_header_Xm_XpmP_h" = xyes |
| 12008 |
then : |
| 12009 |
printf "%s\n" "#define HAVE_XM_XPMP_H 1" >>confdefs.h |
| 12010 |
|
| 12011 |
fi |
| 12012 |
ac_fn_c_check_header_compile "$LINENO" "Xm/JoinSideT.h" "ac_cv_header_Xm_JoinSideT_h" "$ac_includes_default" |
| 12013 |
if test "x$ac_cv_header_Xm_JoinSideT_h" = xyes |
| 12014 |
then : |
| 12015 |
printf "%s\n" "#define HAVE_XM_JOINSIDET_H 1" >>confdefs.h |
| 12016 |
|
| 12017 |
fi |
| 12018 |
ac_fn_c_check_header_compile "$LINENO" "Xm/TraitP.h" "ac_cv_header_Xm_TraitP_h" "$ac_includes_default" |
| 12019 |
if test "x$ac_cv_header_Xm_TraitP_h" = xyes |
| 12020 |
then : |
| 12021 |
printf "%s\n" "#define HAVE_XM_TRAITP_H 1" >>confdefs.h |
| 12022 |
|
| 12023 |
fi |
| 12024 |
ac_fn_c_check_header_compile "$LINENO" "Xm/Manager.h" "ac_cv_header_Xm_Manager_h" "$ac_includes_default" |
| 12025 |
if test "x$ac_cv_header_Xm_Manager_h" = xyes |
| 12026 |
then : |
| 12027 |
printf "%s\n" "#define HAVE_XM_MANAGER_H 1" >>confdefs.h |
| 12028 |
|
| 12029 |
fi |
| 12030 |
ac_fn_c_check_header_compile "$LINENO" "Xm/UnhighlightT.h" "ac_cv_header_Xm_UnhighlightT_h" "$ac_includes_default" |
| 12031 |
if test "x$ac_cv_header_Xm_UnhighlightT_h" = xyes |
| 12032 |
then : |
| 12033 |
printf "%s\n" "#define HAVE_XM_UNHIGHLIGHTT_H 1" >>confdefs.h |
| 12034 |
|
| 12035 |
fi |
| 12036 |
ac_fn_c_check_header_compile "$LINENO" "Xm/Notebook.h" "ac_cv_header_Xm_Notebook_h" "$ac_includes_default" |
| 12037 |
if test "x$ac_cv_header_Xm_Notebook_h" = xyes |
| 12038 |
then : |
| 12039 |
printf "%s\n" "#define HAVE_XM_NOTEBOOK_H 1" >>confdefs.h |
| 12040 |
|
| 12041 |
fi |
| 12042 |
|
| 12043 |
fi |
| 12044 |
|
| 12045 |
if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then |
| 12046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 12047 |
printf %s "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
| 12048 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12049 |
/* end confdefs.h. */ |
| 12050 |
#include <Xm/XpmP.h> |
| 12051 |
int |
| 12052 |
main (void) |
| 12053 |
{ |
| 12054 |
XpmAttributes_21 attr; |
| 12055 |
; |
| 12056 |
return 0; |
| 12057 |
} |
| 12058 |
_ACEOF |
| 12059 |
if ac_fn_c_try_compile "$LINENO" |
| 12060 |
then : |
| 12061 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12062 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h |
| 12063 |
|
| 12064 |
else case e in #( |
| 12065 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12066 |
printf "%s\n" "no" >&6; }; printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h |
| 12067 |
|
| 12068 |
;; |
| 12069 |
esac |
| 12070 |
fi |
| 12071 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12072 |
else |
| 12073 |
printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h |
| 12074 |
|
| 12075 |
fi |
| 12076 |
CPPFLAGS=$cppflags_save |
| 12077 |
fi |
| 12078 |
|
| 12079 |
if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
| 12080 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 |
| 12081 |
printf "%s\n" "no GUI selected; xim has been disabled" >&6; } |
| 12082 |
enable_xim="no" |
| 12083 |
fi |
| 12084 |
if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
| 12085 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 |
| 12086 |
printf "%s\n" "no GUI selected; fontset has been disabled" >&6; } |
| 12087 |
enable_fontset="no" |
| 12088 |
fi |
| 12089 |
if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then |
| 12090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 12091 |
printf "%s\n" "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
| 12092 |
enable_fontset="no" |
| 12093 |
fi |
| 12094 |
|
| 12095 |
if test -z "$SKIP_HAIKU"; then |
| 12096 |
GUITYPE=HAIKUGUI |
| 12097 |
fi |
| 12098 |
|
| 12099 |
if test -z "$SKIP_PHOTON"; then |
| 12100 |
GUITYPE=PHOTONGUI |
| 12101 |
fi |
| 12102 |
|
| 12103 |
|
| 12104 |
|
| 12105 |
|
| 12106 |
|
| 12107 |
|
| 12108 |
if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
| 12109 |
as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 |
| 12110 |
fi |
| 12111 |
|
| 12112 |
if test "$enable_xim" = "yes"; then |
| 12113 |
printf "%s\n" "#define FEAT_XIM 1" >>confdefs.h |
| 12114 |
|
| 12115 |
fi |
| 12116 |
if test "$enable_fontset" = "yes"; then |
| 12117 |
printf "%s\n" "#define FEAT_XFONTSET 1" >>confdefs.h |
| 12118 |
|
| 12119 |
fi |
| 12120 |
|
| 12121 |
|
| 12122 |
|
| 12123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 |
| 12124 |
printf %s "checking for /proc link to executable... " >&6; } |
| 12125 |
if test -L "/proc/self/exe"; then |
| 12126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 |
| 12127 |
printf "%s\n" "/proc/self/exe" >&6; } |
| 12128 |
printf "%s\n" "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h |
| 12129 |
|
| 12130 |
elif test -L "/proc/self/path/a.out"; then |
| 12131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 |
| 12132 |
printf "%s\n" "/proc/self/path/a.out" >&6; } |
| 12133 |
printf "%s\n" "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h |
| 12134 |
|
| 12135 |
elif test -L "/proc/curproc/file"; then |
| 12136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 |
| 12137 |
printf "%s\n" "/proc/curproc/file" >&6; } |
| 12138 |
printf "%s\n" "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h |
| 12139 |
|
| 12140 |
else |
| 12141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12142 |
printf "%s\n" "no" >&6; } |
| 12143 |
fi |
| 12144 |
|
| 12145 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 |
| 12146 |
printf %s "checking for CYGWIN or MSYS environment... " >&6; } |
| 12147 |
case $vim_cv_uname_output in |
| 12148 |
CYGWIN*|MSYS*) CYGWIN=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12149 |
printf "%s\n" "yes" >&6; } |
| 12150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 |
| 12151 |
printf %s "checking for CYGWIN clipboard support... " >&6; } |
| 12152 |
if test "x$with_x" = "xno" ; then |
| 12153 |
OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o |
| 12154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12155 |
printf "%s\n" "yes" >&6; } |
| 12156 |
printf "%s\n" "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h |
| 12157 |
|
| 12158 |
else |
| 12159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 |
| 12160 |
printf "%s\n" "no - using X11" >&6; } |
| 12161 |
fi ;; |
| 12162 |
|
| 12163 |
*) CYGWIN=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12164 |
printf "%s\n" "no" >&6; };; |
| 12165 |
esac |
| 12166 |
|
| 12167 |
|
| 12168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 |
| 12169 |
printf %s "checking whether toupper is broken... " >&6; } |
| 12170 |
if test ${vim_cv_toupper_broken+y} |
| 12171 |
then : |
| 12172 |
printf %s "(cached) " >&6 |
| 12173 |
else case e in #( |
| 12174 |
e) |
| 12175 |
if test "$cross_compiling" = yes |
| 12176 |
then : |
| 12177 |
|
| 12178 |
vim_cv_toupper_broken=no |
| 12179 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_toupper_broken'" >&5 |
| 12180 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_toupper_broken'" >&2;} |
| 12181 |
|
| 12182 |
else case e in #( |
| 12183 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12184 |
/* end confdefs.h. */ |
| 12185 |
|
| 12186 |
#include "confdefs.h" |
| 12187 |
#include <ctype.h> |
| 12188 |
#if STDC_HEADERS |
| 12189 |
# include <stdlib.h> |
| 12190 |
# include <stddef.h> |
| 12191 |
#endif |
| 12192 |
int main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
| 12193 |
|
| 12194 |
_ACEOF |
| 12195 |
if ac_fn_c_try_run "$LINENO" |
| 12196 |
then : |
| 12197 |
|
| 12198 |
vim_cv_toupper_broken=yes |
| 12199 |
|
| 12200 |
else case e in #( |
| 12201 |
e) |
| 12202 |
vim_cv_toupper_broken=no |
| 12203 |
;; |
| 12204 |
esac |
| 12205 |
fi |
| 12206 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12207 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12208 |
esac |
| 12209 |
fi |
| 12210 |
;; |
| 12211 |
esac |
| 12212 |
fi |
| 12213 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 |
| 12214 |
printf "%s\n" "$vim_cv_toupper_broken" >&6; } |
| 12215 |
|
| 12216 |
if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 12217 |
printf "%s\n" "#define BROKEN_TOUPPER 1" >>confdefs.h |
| 12218 |
|
| 12219 |
fi |
| 12220 |
|
| 12221 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 |
| 12222 |
printf %s "checking whether __DATE__ and __TIME__ work... " >&6; } |
| 12223 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12224 |
/* end confdefs.h. */ |
| 12225 |
#include <stdio.h> |
| 12226 |
int |
| 12227 |
main (void) |
| 12228 |
{ |
| 12229 |
printf("(" __DATE__ " " __TIME__ ")"); |
| 12230 |
; |
| 12231 |
return 0; |
| 12232 |
} |
| 12233 |
_ACEOF |
| 12234 |
if ac_fn_c_try_compile "$LINENO" |
| 12235 |
then : |
| 12236 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12237 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DATE_TIME 1" >>confdefs.h |
| 12238 |
|
| 12239 |
else case e in #( |
| 12240 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12241 |
printf "%s\n" "no" >&6; } ;; |
| 12242 |
esac |
| 12243 |
fi |
| 12244 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12245 |
|
| 12246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 |
| 12247 |
printf %s "checking whether __attribute__((unused)) is allowed... " >&6; } |
| 12248 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12249 |
/* end confdefs.h. */ |
| 12250 |
#include <stdio.h> |
| 12251 |
int |
| 12252 |
main (void) |
| 12253 |
{ |
| 12254 |
int x __attribute__((unused)); |
| 12255 |
; |
| 12256 |
return 0; |
| 12257 |
} |
| 12258 |
_ACEOF |
| 12259 |
if ac_fn_c_try_compile "$LINENO" |
| 12260 |
then : |
| 12261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12262 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h |
| 12263 |
|
| 12264 |
else case e in #( |
| 12265 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12266 |
printf "%s\n" "no" >&6; } ;; |
| 12267 |
esac |
| 12268 |
fi |
| 12269 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12270 |
|
| 12271 |
ac_header_dirent=no |
| 12272 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 12273 |
as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` |
| 12274 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 12275 |
printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 12276 |
if eval test \${$as_ac_Header+y} |
| 12277 |
then : |
| 12278 |
printf %s "(cached) " >&6 |
| 12279 |
else case e in #( |
| 12280 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12281 |
/* end confdefs.h. */ |
| 12282 |
#include <sys/types.h> |
| 12283 |
#include <$ac_hdr> |
| 12284 |
|
| 12285 |
int |
| 12286 |
main (void) |
| 12287 |
{ |
| 12288 |
if ((DIR *) 0) |
| 12289 |
return 0; |
| 12290 |
; |
| 12291 |
return 0; |
| 12292 |
} |
| 12293 |
_ACEOF |
| 12294 |
if ac_fn_c_try_compile "$LINENO" |
| 12295 |
then : |
| 12296 |
eval "$as_ac_Header=yes" |
| 12297 |
else case e in #( |
| 12298 |
e) eval "$as_ac_Header=no" ;; |
| 12299 |
esac |
| 12300 |
fi |
| 12301 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12302 |
esac |
| 12303 |
fi |
| 12304 |
eval ac_res=\$$as_ac_Header |
| 12305 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 12306 |
printf "%s\n" "$ac_res" >&6; } |
| 12307 |
if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 12308 |
then : |
| 12309 |
cat >>confdefs.h <<_ACEOF |
| 12310 |
#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 |
| 12311 |
_ACEOF |
| 12312 |
|
| 12313 |
ac_header_dirent=$ac_hdr; break |
| 12314 |
fi |
| 12315 |
|
| 12316 |
done |
| 12317 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 12318 |
if test $ac_header_dirent = dirent.h; then |
| 12319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 12320 |
printf %s "checking for library containing opendir... " >&6; } |
| 12321 |
if test ${ac_cv_search_opendir+y} |
| 12322 |
then : |
| 12323 |
printf %s "(cached) " >&6 |
| 12324 |
else case e in #( |
| 12325 |
e) ac_func_search_save_LIBS=$LIBS |
| 12326 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12327 |
/* end confdefs.h. */ |
| 12328 |
|
| 12329 |
/* Override any GCC internal prototype to avoid an error. |
| 12330 |
Use char because int might match the return type of a GCC |
| 12331 |
builtin and then its argument prototype would still apply. |
| 12332 |
The 'extern "C"' is for builds by C++ compilers; |
| 12333 |
although this is not generally supported in C code supporting it here |
| 12334 |
has little cost and some practical benefit (sr 110532). */ |
| 12335 |
#ifdef __cplusplus |
| 12336 |
extern "C" |
| 12337 |
#endif |
| 12338 |
char opendir (void); |
| 12339 |
int |
| 12340 |
main (void) |
| 12341 |
{ |
| 12342 |
return opendir (); |
| 12343 |
; |
| 12344 |
return 0; |
| 12345 |
} |
| 12346 |
_ACEOF |
| 12347 |
for ac_lib in '' dir |
| 12348 |
do |
| 12349 |
if test -z "$ac_lib"; then |
| 12350 |
ac_res="none required" |
| 12351 |
else |
| 12352 |
ac_res=-l$ac_lib |
| 12353 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12354 |
fi |
| 12355 |
if ac_fn_c_try_link "$LINENO" |
| 12356 |
then : |
| 12357 |
ac_cv_search_opendir=$ac_res |
| 12358 |
fi |
| 12359 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12360 |
conftest$ac_exeext |
| 12361 |
if test ${ac_cv_search_opendir+y} |
| 12362 |
then : |
| 12363 |
break |
| 12364 |
fi |
| 12365 |
done |
| 12366 |
if test ${ac_cv_search_opendir+y} |
| 12367 |
then : |
| 12368 |
|
| 12369 |
else case e in #( |
| 12370 |
e) ac_cv_search_opendir=no ;; |
| 12371 |
esac |
| 12372 |
fi |
| 12373 |
rm conftest.$ac_ext |
| 12374 |
LIBS=$ac_func_search_save_LIBS ;; |
| 12375 |
esac |
| 12376 |
fi |
| 12377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 12378 |
printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 12379 |
ac_res=$ac_cv_search_opendir |
| 12380 |
if test "$ac_res" != no |
| 12381 |
then : |
| 12382 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12383 |
|
| 12384 |
fi |
| 12385 |
|
| 12386 |
else |
| 12387 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 12388 |
printf %s "checking for library containing opendir... " >&6; } |
| 12389 |
if test ${ac_cv_search_opendir+y} |
| 12390 |
then : |
| 12391 |
printf %s "(cached) " >&6 |
| 12392 |
else case e in #( |
| 12393 |
e) ac_func_search_save_LIBS=$LIBS |
| 12394 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12395 |
/* end confdefs.h. */ |
| 12396 |
|
| 12397 |
/* Override any GCC internal prototype to avoid an error. |
| 12398 |
Use char because int might match the return type of a GCC |
| 12399 |
builtin and then its argument prototype would still apply. |
| 12400 |
The 'extern "C"' is for builds by C++ compilers; |
| 12401 |
although this is not generally supported in C code supporting it here |
| 12402 |
has little cost and some practical benefit (sr 110532). */ |
| 12403 |
#ifdef __cplusplus |
| 12404 |
extern "C" |
| 12405 |
#endif |
| 12406 |
char opendir (void); |
| 12407 |
int |
| 12408 |
main (void) |
| 12409 |
{ |
| 12410 |
return opendir (); |
| 12411 |
; |
| 12412 |
return 0; |
| 12413 |
} |
| 12414 |
_ACEOF |
| 12415 |
for ac_lib in '' x |
| 12416 |
do |
| 12417 |
if test -z "$ac_lib"; then |
| 12418 |
ac_res="none required" |
| 12419 |
else |
| 12420 |
ac_res=-l$ac_lib |
| 12421 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12422 |
fi |
| 12423 |
if ac_fn_c_try_link "$LINENO" |
| 12424 |
then : |
| 12425 |
ac_cv_search_opendir=$ac_res |
| 12426 |
fi |
| 12427 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12428 |
conftest$ac_exeext |
| 12429 |
if test ${ac_cv_search_opendir+y} |
| 12430 |
then : |
| 12431 |
break |
| 12432 |
fi |
| 12433 |
done |
| 12434 |
if test ${ac_cv_search_opendir+y} |
| 12435 |
then : |
| 12436 |
|
| 12437 |
else case e in #( |
| 12438 |
e) ac_cv_search_opendir=no ;; |
| 12439 |
esac |
| 12440 |
fi |
| 12441 |
rm conftest.$ac_ext |
| 12442 |
LIBS=$ac_func_search_save_LIBS ;; |
| 12443 |
esac |
| 12444 |
fi |
| 12445 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 12446 |
printf "%s\n" "$ac_cv_search_opendir" >&6; } |
| 12447 |
ac_res=$ac_cv_search_opendir |
| 12448 |
if test "$ac_res" != no |
| 12449 |
then : |
| 12450 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12451 |
|
| 12452 |
fi |
| 12453 |
|
| 12454 |
fi |
| 12455 |
|
| 12456 |
|
| 12457 |
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" |
| 12458 |
if test "x$ac_cv_header_sys_wait_h" = xyes |
| 12459 |
then : |
| 12460 |
printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 12461 |
|
| 12462 |
fi |
| 12463 |
|
| 12464 |
ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" |
| 12465 |
if test "x$ac_cv_func_waitpid" = xyes |
| 12466 |
then : |
| 12467 |
printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 12468 |
|
| 12469 |
fi |
| 12470 |
|
| 12471 |
|
| 12472 |
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 12473 |
if test "x$ac_cv_header_stdint_h" = xyes |
| 12474 |
then : |
| 12475 |
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 12476 |
|
| 12477 |
fi |
| 12478 |
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 12479 |
if test "x$ac_cv_header_stdlib_h" = xyes |
| 12480 |
then : |
| 12481 |
printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 12482 |
|
| 12483 |
fi |
| 12484 |
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 12485 |
if test "x$ac_cv_header_string_h" = xyes |
| 12486 |
then : |
| 12487 |
printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h |
| 12488 |
|
| 12489 |
fi |
| 12490 |
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 12491 |
if test "x$ac_cv_header_sys_select_h" = xyes |
| 12492 |
then : |
| 12493 |
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 12494 |
|
| 12495 |
fi |
| 12496 |
ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 12497 |
if test "x$ac_cv_header_sys_utsname_h" = xyes |
| 12498 |
then : |
| 12499 |
printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h |
| 12500 |
|
| 12501 |
fi |
| 12502 |
ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" |
| 12503 |
if test "x$ac_cv_header_termcap_h" = xyes |
| 12504 |
then : |
| 12505 |
printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h |
| 12506 |
|
| 12507 |
fi |
| 12508 |
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 12509 |
if test "x$ac_cv_header_fcntl_h" = xyes |
| 12510 |
then : |
| 12511 |
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 12512 |
|
| 12513 |
fi |
| 12514 |
ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" |
| 12515 |
if test "x$ac_cv_header_sgtty_h" = xyes |
| 12516 |
then : |
| 12517 |
printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h |
| 12518 |
|
| 12519 |
fi |
| 12520 |
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 12521 |
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 12522 |
then : |
| 12523 |
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 12524 |
|
| 12525 |
fi |
| 12526 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 12527 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 12528 |
then : |
| 12529 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 12530 |
|
| 12531 |
fi |
| 12532 |
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 12533 |
if test "x$ac_cv_header_sys_types_h" = xyes |
| 12534 |
then : |
| 12535 |
printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 12536 |
|
| 12537 |
fi |
| 12538 |
ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" |
| 12539 |
if test "x$ac_cv_header_termio_h" = xyes |
| 12540 |
then : |
| 12541 |
printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h |
| 12542 |
|
| 12543 |
fi |
| 12544 |
ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" |
| 12545 |
if test "x$ac_cv_header_iconv_h" = xyes |
| 12546 |
then : |
| 12547 |
printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h |
| 12548 |
|
| 12549 |
fi |
| 12550 |
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 12551 |
if test "x$ac_cv_header_inttypes_h" = xyes |
| 12552 |
then : |
| 12553 |
printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
| 12554 |
|
| 12555 |
fi |
| 12556 |
ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 12557 |
if test "x$ac_cv_header_langinfo_h" = xyes |
| 12558 |
then : |
| 12559 |
printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 12560 |
|
| 12561 |
fi |
| 12562 |
ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
| 12563 |
if test "x$ac_cv_header_math_h" = xyes |
| 12564 |
then : |
| 12565 |
printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h |
| 12566 |
|
| 12567 |
fi |
| 12568 |
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 12569 |
if test "x$ac_cv_header_unistd_h" = xyes |
| 12570 |
then : |
| 12571 |
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 12572 |
|
| 12573 |
fi |
| 12574 |
ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
| 12575 |
if test "x$ac_cv_header_stropts_h" = xyes |
| 12576 |
then : |
| 12577 |
printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
| 12578 |
|
| 12579 |
fi |
| 12580 |
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 12581 |
if test "x$ac_cv_header_errno_h" = xyes |
| 12582 |
then : |
| 12583 |
printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 12584 |
|
| 12585 |
fi |
| 12586 |
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
| 12587 |
if test "x$ac_cv_header_sys_resource_h" = xyes |
| 12588 |
then : |
| 12589 |
printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h |
| 12590 |
|
| 12591 |
fi |
| 12592 |
ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" |
| 12593 |
if test "x$ac_cv_header_sys_systeminfo_h" = xyes |
| 12594 |
then : |
| 12595 |
printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h |
| 12596 |
|
| 12597 |
fi |
| 12598 |
ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 12599 |
if test "x$ac_cv_header_locale_h" = xyes |
| 12600 |
then : |
| 12601 |
printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h |
| 12602 |
|
| 12603 |
fi |
| 12604 |
ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default" |
| 12605 |
if test "x$ac_cv_header_sys_stream_h" = xyes |
| 12606 |
then : |
| 12607 |
printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h |
| 12608 |
|
| 12609 |
fi |
| 12610 |
ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
| 12611 |
if test "x$ac_cv_header_termios_h" = xyes |
| 12612 |
then : |
| 12613 |
printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h |
| 12614 |
|
| 12615 |
fi |
| 12616 |
ac_fn_c_check_header_compile "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default" |
| 12617 |
if test "x$ac_cv_header_libc_h" = xyes |
| 12618 |
then : |
| 12619 |
printf "%s\n" "#define HAVE_LIBC_H 1" >>confdefs.h |
| 12620 |
|
| 12621 |
fi |
| 12622 |
ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" |
| 12623 |
if test "x$ac_cv_header_sys_statfs_h" = xyes |
| 12624 |
then : |
| 12625 |
printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h |
| 12626 |
|
| 12627 |
fi |
| 12628 |
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 12629 |
if test "x$ac_cv_header_poll_h" = xyes |
| 12630 |
then : |
| 12631 |
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 12632 |
|
| 12633 |
fi |
| 12634 |
ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
| 12635 |
if test "x$ac_cv_header_sys_poll_h" = xyes |
| 12636 |
then : |
| 12637 |
printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h |
| 12638 |
|
| 12639 |
fi |
| 12640 |
ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 12641 |
if test "x$ac_cv_header_pwd_h" = xyes |
| 12642 |
then : |
| 12643 |
printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 12644 |
|
| 12645 |
fi |
| 12646 |
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
| 12647 |
if test "x$ac_cv_header_utime_h" = xyes |
| 12648 |
then : |
| 12649 |
printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
| 12650 |
|
| 12651 |
fi |
| 12652 |
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 12653 |
if test "x$ac_cv_header_sys_param_h" = xyes |
| 12654 |
then : |
| 12655 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 12656 |
|
| 12657 |
fi |
| 12658 |
ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "$ac_includes_default" |
| 12659 |
if test "x$ac_cv_header_sys_ptms_h" = xyes |
| 12660 |
then : |
| 12661 |
printf "%s\n" "#define HAVE_SYS_PTMS_H 1" >>confdefs.h |
| 12662 |
|
| 12663 |
fi |
| 12664 |
ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
| 12665 |
if test "x$ac_cv_header_libintl_h" = xyes |
| 12666 |
then : |
| 12667 |
printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h |
| 12668 |
|
| 12669 |
fi |
| 12670 |
ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 12671 |
if test "x$ac_cv_header_libgen_h" = xyes |
| 12672 |
then : |
| 12673 |
printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h |
| 12674 |
|
| 12675 |
fi |
| 12676 |
ac_fn_c_check_header_compile "$LINENO" "util/debug.h" "ac_cv_header_util_debug_h" "$ac_includes_default" |
| 12677 |
if test "x$ac_cv_header_util_debug_h" = xyes |
| 12678 |
then : |
| 12679 |
printf "%s\n" "#define HAVE_UTIL_DEBUG_H 1" >>confdefs.h |
| 12680 |
|
| 12681 |
fi |
| 12682 |
ac_fn_c_check_header_compile "$LINENO" "util/msg18n.h" "ac_cv_header_util_msg18n_h" "$ac_includes_default" |
| 12683 |
if test "x$ac_cv_header_util_msg18n_h" = xyes |
| 12684 |
then : |
| 12685 |
printf "%s\n" "#define HAVE_UTIL_MSG18N_H 1" >>confdefs.h |
| 12686 |
|
| 12687 |
fi |
| 12688 |
ac_fn_c_check_header_compile "$LINENO" "frame.h" "ac_cv_header_frame_h" "$ac_includes_default" |
| 12689 |
if test "x$ac_cv_header_frame_h" = xyes |
| 12690 |
then : |
| 12691 |
printf "%s\n" "#define HAVE_FRAME_H 1" >>confdefs.h |
| 12692 |
|
| 12693 |
fi |
| 12694 |
ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" |
| 12695 |
if test "x$ac_cv_header_sys_acl_h" = xyes |
| 12696 |
then : |
| 12697 |
printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h |
| 12698 |
|
| 12699 |
fi |
| 12700 |
ac_fn_c_check_header_compile "$LINENO" "sys/access.h" "ac_cv_header_sys_access_h" "$ac_includes_default" |
| 12701 |
if test "x$ac_cv_header_sys_access_h" = xyes |
| 12702 |
then : |
| 12703 |
printf "%s\n" "#define HAVE_SYS_ACCESS_H 1" >>confdefs.h |
| 12704 |
|
| 12705 |
fi |
| 12706 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" |
| 12707 |
if test "x$ac_cv_header_sys_sysinfo_h" = xyes |
| 12708 |
then : |
| 12709 |
printf "%s\n" "#define HAVE_SYS_SYSINFO_H 1" >>confdefs.h |
| 12710 |
|
| 12711 |
fi |
| 12712 |
ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 12713 |
if test "x$ac_cv_header_wchar_h" = xyes |
| 12714 |
then : |
| 12715 |
printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
| 12716 |
|
| 12717 |
fi |
| 12718 |
ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" |
| 12719 |
if test "x$ac_cv_header_wctype_h" = xyes |
| 12720 |
then : |
| 12721 |
printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h |
| 12722 |
|
| 12723 |
fi |
| 12724 |
|
| 12725 |
|
| 12726 |
ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H |
| 12727 |
# include <sys/stream.h> |
| 12728 |
#endif |
| 12729 |
" |
| 12730 |
if test "x$ac_cv_header_sys_ptem_h" = xyes |
| 12731 |
then : |
| 12732 |
printf "%s\n" "#define HAVE_SYS_PTEM_H 1" >>confdefs.h |
| 12733 |
|
| 12734 |
fi |
| 12735 |
|
| 12736 |
|
| 12737 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H |
| 12738 |
# include <sys/param.h> |
| 12739 |
#endif |
| 12740 |
" |
| 12741 |
if test "x$ac_cv_header_sys_sysctl_h" = xyes |
| 12742 |
then : |
| 12743 |
printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h |
| 12744 |
|
| 12745 |
fi |
| 12746 |
|
| 12747 |
|
| 12748 |
|
| 12749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 |
| 12750 |
printf %s "checking for pthread_np.h... " >&6; } |
| 12751 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12752 |
/* end confdefs.h. */ |
| 12753 |
|
| 12754 |
#include <pthread.h> |
| 12755 |
#include <pthread_np.h> |
| 12756 |
int |
| 12757 |
main (void) |
| 12758 |
{ |
| 12759 |
int i; i = 0; |
| 12760 |
; |
| 12761 |
return 0; |
| 12762 |
} |
| 12763 |
_ACEOF |
| 12764 |
if ac_fn_c_try_compile "$LINENO" |
| 12765 |
then : |
| 12766 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12767 |
printf "%s\n" "yes" >&6; } |
| 12768 |
printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h |
| 12769 |
|
| 12770 |
else case e in #( |
| 12771 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12772 |
printf "%s\n" "no" >&6; } ;; |
| 12773 |
esac |
| 12774 |
fi |
| 12775 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12776 |
|
| 12777 |
ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
| 12778 |
if test "x$ac_cv_header_strings_h" = xyes |
| 12779 |
then : |
| 12780 |
printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h |
| 12781 |
|
| 12782 |
fi |
| 12783 |
|
| 12784 |
if test "x$MACOS_X" = "xyes"; then |
| 12785 |
printf "%s\n" "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h |
| 12786 |
|
| 12787 |
else |
| 12788 |
|
| 12789 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 |
| 12790 |
printf %s "checking if strings.h can be included after string.h... " >&6; } |
| 12791 |
cppflags_save=$CPPFLAGS |
| 12792 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 12793 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12794 |
/* end confdefs.h. */ |
| 12795 |
|
| 12796 |
#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 12797 |
# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 12798 |
/* but don't do it on AIX 5.1 (Uribarri) */ |
| 12799 |
#endif |
| 12800 |
#ifdef HAVE_XM_XM_H |
| 12801 |
# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 12802 |
#endif |
| 12803 |
#ifdef HAVE_STRING_H |
| 12804 |
# include <string.h> |
| 12805 |
#endif |
| 12806 |
#if defined(HAVE_STRINGS_H) |
| 12807 |
# include <strings.h> |
| 12808 |
#endif |
| 12809 |
|
| 12810 |
int |
| 12811 |
main (void) |
| 12812 |
{ |
| 12813 |
int i; i = 0; |
| 12814 |
; |
| 12815 |
return 0; |
| 12816 |
} |
| 12817 |
_ACEOF |
| 12818 |
if ac_fn_c_try_compile "$LINENO" |
| 12819 |
then : |
| 12820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12821 |
printf "%s\n" "yes" >&6; } |
| 12822 |
else case e in #( |
| 12823 |
e) printf "%s\n" "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h |
| 12824 |
|
| 12825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12826 |
printf "%s\n" "no" >&6; } ;; |
| 12827 |
esac |
| 12828 |
fi |
| 12829 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12830 |
CPPFLAGS=$cppflags_save |
| 12831 |
fi |
| 12832 |
|
| 12833 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 12834 |
printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 12835 |
if test ${ac_cv_c_const+y} |
| 12836 |
then : |
| 12837 |
printf %s "(cached) " >&6 |
| 12838 |
else case e in #( |
| 12839 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12840 |
/* end confdefs.h. */ |
| 12841 |
|
| 12842 |
int |
| 12843 |
main (void) |
| 12844 |
{ |
| 12845 |
|
| 12846 |
#ifndef __cplusplus |
| 12847 |
/* Ultrix mips cc rejects this sort of thing. */ |
| 12848 |
typedef int charset[2]; |
| 12849 |
const charset cs = { 0, 0 }; |
| 12850 |
/* SunOS 4.1.1 cc rejects this. */ |
| 12851 |
char const *const *pcpcc; |
| 12852 |
char **ppc; |
| 12853 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 12854 |
struct point {int x, y;}; |
| 12855 |
static struct point const zero = {0,0}; |
| 12856 |
/* IBM XL C 1.02.0.0 rejects this. |
| 12857 |
It does not let you subtract one const X* pointer from another in |
| 12858 |
an arm of an if-expression whose if-part is not a constant |
| 12859 |
expression */ |
| 12860 |
const char *g = "string"; |
| 12861 |
pcpcc = &g + (g ? g-g : 0); |
| 12862 |
/* HPUX 7.0 cc rejects these. */ |
| 12863 |
++pcpcc; |
| 12864 |
ppc = (char**) pcpcc; |
| 12865 |
pcpcc = (char const *const *) ppc; |
| 12866 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 12867 |
char tx; |
| 12868 |
char *t = &tx; |
| 12869 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 12870 |
|
| 12871 |
*t++ = 0; |
| 12872 |
if (s) return 0; |
| 12873 |
} |
| 12874 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12875 |
int x[] = {25, 17}; |
| 12876 |
const int *foo = &x[0]; |
| 12877 |
++foo; |
| 12878 |
} |
| 12879 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12880 |
typedef const int *iptr; |
| 12881 |
iptr p = 0; |
| 12882 |
++p; |
| 12883 |
} |
| 12884 |
{ /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 12885 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 12886 |
struct s { int j; const int *ap[3]; } bx; |
| 12887 |
struct s *b = &bx; b->j = 5; |
| 12888 |
} |
| 12889 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12890 |
const int foo = 10; |
| 12891 |
if (!foo) return 0; |
| 12892 |
} |
| 12893 |
return !cs[0] && !zero.x; |
| 12894 |
#endif |
| 12895 |
|
| 12896 |
; |
| 12897 |
return 0; |
| 12898 |
} |
| 12899 |
_ACEOF |
| 12900 |
if ac_fn_c_try_compile "$LINENO" |
| 12901 |
then : |
| 12902 |
ac_cv_c_const=yes |
| 12903 |
else case e in #( |
| 12904 |
e) ac_cv_c_const=no ;; |
| 12905 |
esac |
| 12906 |
fi |
| 12907 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12908 |
esac |
| 12909 |
fi |
| 12910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 12911 |
printf "%s\n" "$ac_cv_c_const" >&6; } |
| 12912 |
if test $ac_cv_c_const = no; then |
| 12913 |
|
| 12914 |
printf "%s\n" "#define const /**/" >>confdefs.h |
| 12915 |
|
| 12916 |
fi |
| 12917 |
|
| 12918 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 12919 |
printf %s "checking for working volatile... " >&6; } |
| 12920 |
if test ${ac_cv_c_volatile+y} |
| 12921 |
then : |
| 12922 |
printf %s "(cached) " >&6 |
| 12923 |
else case e in #( |
| 12924 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12925 |
/* end confdefs.h. */ |
| 12926 |
|
| 12927 |
int |
| 12928 |
main (void) |
| 12929 |
{ |
| 12930 |
|
| 12931 |
volatile int x; |
| 12932 |
int * volatile y = (int *) 0; |
| 12933 |
return !x && !y; |
| 12934 |
; |
| 12935 |
return 0; |
| 12936 |
} |
| 12937 |
_ACEOF |
| 12938 |
if ac_fn_c_try_compile "$LINENO" |
| 12939 |
then : |
| 12940 |
ac_cv_c_volatile=yes |
| 12941 |
else case e in #( |
| 12942 |
e) ac_cv_c_volatile=no ;; |
| 12943 |
esac |
| 12944 |
fi |
| 12945 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12946 |
esac |
| 12947 |
fi |
| 12948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 12949 |
printf "%s\n" "$ac_cv_c_volatile" >&6; } |
| 12950 |
if test $ac_cv_c_volatile = no; then |
| 12951 |
|
| 12952 |
printf "%s\n" "#define volatile /**/" >>confdefs.h |
| 12953 |
|
| 12954 |
fi |
| 12955 |
|
| 12956 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 12957 |
if test "x$ac_cv_type_mode_t" = xyes |
| 12958 |
then : |
| 12959 |
|
| 12960 |
else case e in #( |
| 12961 |
e) |
| 12962 |
printf "%s\n" "#define mode_t int" >>confdefs.h |
| 12963 |
;; |
| 12964 |
esac |
| 12965 |
fi |
| 12966 |
|
| 12967 |
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 12968 |
if test "x$ac_cv_type_off_t" = xyes |
| 12969 |
then : |
| 12970 |
|
| 12971 |
else case e in #( |
| 12972 |
e) |
| 12973 |
printf "%s\n" "#define off_t long int" >>confdefs.h |
| 12974 |
;; |
| 12975 |
esac |
| 12976 |
fi |
| 12977 |
|
| 12978 |
|
| 12979 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 12980 |
" |
| 12981 |
if test "x$ac_cv_type_pid_t" = xyes |
| 12982 |
then : |
| 12983 |
|
| 12984 |
else case e in #( |
| 12985 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12986 |
/* end confdefs.h. */ |
| 12987 |
|
| 12988 |
#if defined _WIN64 && !defined __CYGWIN__ |
| 12989 |
LLP64 |
| 12990 |
#endif |
| 12991 |
|
| 12992 |
int |
| 12993 |
main (void) |
| 12994 |
{ |
| 12995 |
|
| 12996 |
; |
| 12997 |
return 0; |
| 12998 |
} |
| 12999 |
|
| 13000 |
_ACEOF |
| 13001 |
if ac_fn_c_try_compile "$LINENO" |
| 13002 |
then : |
| 13003 |
ac_pid_type='int' |
| 13004 |
else case e in #( |
| 13005 |
e) ac_pid_type='__int64' ;; |
| 13006 |
esac |
| 13007 |
fi |
| 13008 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13009 |
|
| 13010 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 13011 |
|
| 13012 |
;; |
| 13013 |
esac |
| 13014 |
fi |
| 13015 |
|
| 13016 |
|
| 13017 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 13018 |
if test "x$ac_cv_type_size_t" = xyes |
| 13019 |
then : |
| 13020 |
|
| 13021 |
else case e in #( |
| 13022 |
e) |
| 13023 |
printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 13024 |
;; |
| 13025 |
esac |
| 13026 |
fi |
| 13027 |
|
| 13028 |
ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
| 13029 |
if test "x$ac_cv_type_uid_t" = xyes |
| 13030 |
then : |
| 13031 |
|
| 13032 |
else case e in #( |
| 13033 |
e) |
| 13034 |
printf "%s\n" "#define uid_t int" >>confdefs.h |
| 13035 |
;; |
| 13036 |
esac |
| 13037 |
fi |
| 13038 |
|
| 13039 |
ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
| 13040 |
if test "x$ac_cv_type_gid_t" = xyes |
| 13041 |
then : |
| 13042 |
|
| 13043 |
else case e in #( |
| 13044 |
e) |
| 13045 |
printf "%s\n" "#define gid_t int" >>confdefs.h |
| 13046 |
;; |
| 13047 |
esac |
| 13048 |
fi |
| 13049 |
|
| 13050 |
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 13051 |
case $ac_cv_c_uint32_t in #( |
| 13052 |
no|yes) ;; #( |
| 13053 |
*) |
| 13054 |
|
| 13055 |
printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
| 13056 |
|
| 13057 |
|
| 13058 |
printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
| 13059 |
;; |
| 13060 |
esac |
| 13061 |
|
| 13062 |
|
| 13063 |
|
| 13064 |
|
| 13065 |
|
| 13066 |
ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" |
| 13067 |
if test "x$ac_cv_type_ino_t" = xyes |
| 13068 |
then : |
| 13069 |
|
| 13070 |
else case e in #( |
| 13071 |
e) |
| 13072 |
printf "%s\n" "#define ino_t long" >>confdefs.h |
| 13073 |
;; |
| 13074 |
esac |
| 13075 |
fi |
| 13076 |
|
| 13077 |
ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" |
| 13078 |
if test "x$ac_cv_type_dev_t" = xyes |
| 13079 |
then : |
| 13080 |
|
| 13081 |
else case e in #( |
| 13082 |
e) |
| 13083 |
printf "%s\n" "#define dev_t unsigned" >>confdefs.h |
| 13084 |
;; |
| 13085 |
esac |
| 13086 |
fi |
| 13087 |
|
| 13088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 13089 |
printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 13090 |
if test ${ac_cv_c_bigendian+y} |
| 13091 |
then : |
| 13092 |
printf %s "(cached) " >&6 |
| 13093 |
else case e in #( |
| 13094 |
e) ac_cv_c_bigendian=unknown |
| 13095 |
# See if we're dealing with a universal compiler. |
| 13096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13097 |
/* end confdefs.h. */ |
| 13098 |
#ifndef __APPLE_CC__ |
| 13099 |
not a universal capable compiler |
| 13100 |
#endif |
| 13101 |
typedef int dummy; |
| 13102 |
|
| 13103 |
_ACEOF |
| 13104 |
if ac_fn_c_try_compile "$LINENO" |
| 13105 |
then : |
| 13106 |
|
| 13107 |
# Check for potential -arch flags. It is not universal unless |
| 13108 |
# there are at least two -arch flags with different values. |
| 13109 |
ac_arch= |
| 13110 |
ac_prev= |
| 13111 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 13112 |
if test -n "$ac_prev"; then |
| 13113 |
case $ac_word in |
| 13114 |
i?86 | x86_64 | ppc | ppc64) |
| 13115 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 13116 |
ac_arch=$ac_word |
| 13117 |
else |
| 13118 |
ac_cv_c_bigendian=universal |
| 13119 |
break |
| 13120 |
fi |
| 13121 |
;; |
| 13122 |
esac |
| 13123 |
ac_prev= |
| 13124 |
elif test "x$ac_word" = "x-arch"; then |
| 13125 |
ac_prev=arch |
| 13126 |
fi |
| 13127 |
done |
| 13128 |
fi |
| 13129 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13130 |
if test $ac_cv_c_bigendian = unknown; then |
| 13131 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 13132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13133 |
/* end confdefs.h. */ |
| 13134 |
#include <sys/types.h> |
| 13135 |
#include <sys/param.h> |
| 13136 |
|
| 13137 |
int |
| 13138 |
main (void) |
| 13139 |
{ |
| 13140 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ |
| 13141 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ |
| 13142 |
&& LITTLE_ENDIAN) |
| 13143 |
bogus endian macros |
| 13144 |
#endif |
| 13145 |
|
| 13146 |
; |
| 13147 |
return 0; |
| 13148 |
} |
| 13149 |
_ACEOF |
| 13150 |
if ac_fn_c_try_compile "$LINENO" |
| 13151 |
then : |
| 13152 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 13153 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13154 |
/* end confdefs.h. */ |
| 13155 |
#include <sys/types.h> |
| 13156 |
#include <sys/param.h> |
| 13157 |
|
| 13158 |
int |
| 13159 |
main (void) |
| 13160 |
{ |
| 13161 |
#if BYTE_ORDER != BIG_ENDIAN |
| 13162 |
not big endian |
| 13163 |
#endif |
| 13164 |
|
| 13165 |
; |
| 13166 |
return 0; |
| 13167 |
} |
| 13168 |
_ACEOF |
| 13169 |
if ac_fn_c_try_compile "$LINENO" |
| 13170 |
then : |
| 13171 |
ac_cv_c_bigendian=yes |
| 13172 |
else case e in #( |
| 13173 |
e) ac_cv_c_bigendian=no ;; |
| 13174 |
esac |
| 13175 |
fi |
| 13176 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13177 |
fi |
| 13178 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13179 |
fi |
| 13180 |
if test $ac_cv_c_bigendian = unknown; then |
| 13181 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 13182 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13183 |
/* end confdefs.h. */ |
| 13184 |
#include <limits.h> |
| 13185 |
|
| 13186 |
int |
| 13187 |
main (void) |
| 13188 |
{ |
| 13189 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 13190 |
bogus endian macros |
| 13191 |
#endif |
| 13192 |
|
| 13193 |
; |
| 13194 |
return 0; |
| 13195 |
} |
| 13196 |
_ACEOF |
| 13197 |
if ac_fn_c_try_compile "$LINENO" |
| 13198 |
then : |
| 13199 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 13200 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13201 |
/* end confdefs.h. */ |
| 13202 |
#include <limits.h> |
| 13203 |
|
| 13204 |
int |
| 13205 |
main (void) |
| 13206 |
{ |
| 13207 |
#ifndef _BIG_ENDIAN |
| 13208 |
not big endian |
| 13209 |
#endif |
| 13210 |
|
| 13211 |
; |
| 13212 |
return 0; |
| 13213 |
} |
| 13214 |
_ACEOF |
| 13215 |
if ac_fn_c_try_compile "$LINENO" |
| 13216 |
then : |
| 13217 |
ac_cv_c_bigendian=yes |
| 13218 |
else case e in #( |
| 13219 |
e) ac_cv_c_bigendian=no ;; |
| 13220 |
esac |
| 13221 |
fi |
| 13222 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13223 |
fi |
| 13224 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13225 |
fi |
| 13226 |
if test $ac_cv_c_bigendian = unknown; then |
| 13227 |
# Compile a test program. |
| 13228 |
if test "$cross_compiling" = yes |
| 13229 |
then : |
| 13230 |
# Try to guess by grepping values from an object file. |
| 13231 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13232 |
/* end confdefs.h. */ |
| 13233 |
unsigned short int ascii_mm[] = |
| 13234 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13235 |
unsigned short int ascii_ii[] = |
| 13236 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 13237 |
int use_ascii (int i) { |
| 13238 |
return ascii_mm[i] + ascii_ii[i]; |
| 13239 |
} |
| 13240 |
unsigned short int ebcdic_ii[] = |
| 13241 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13242 |
unsigned short int ebcdic_mm[] = |
| 13243 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 13244 |
int use_ebcdic (int i) { |
| 13245 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 13246 |
} |
| 13247 |
int |
| 13248 |
main (int argc, char **argv) |
| 13249 |
{ |
| 13250 |
/* Intimidate the compiler so that it does not |
| 13251 |
optimize the arrays away. */ |
| 13252 |
char *p = argv[0]; |
| 13253 |
ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; |
| 13254 |
ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; |
| 13255 |
return use_ascii (argc) == use_ebcdic (*p); |
| 13256 |
} |
| 13257 |
_ACEOF |
| 13258 |
if ac_fn_c_try_link "$LINENO" |
| 13259 |
then : |
| 13260 |
if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then |
| 13261 |
ac_cv_c_bigendian=yes |
| 13262 |
fi |
| 13263 |
if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then |
| 13264 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 13265 |
ac_cv_c_bigendian=no |
| 13266 |
else |
| 13267 |
# finding both strings is unlikely to happen, but who knows? |
| 13268 |
ac_cv_c_bigendian=unknown |
| 13269 |
fi |
| 13270 |
fi |
| 13271 |
fi |
| 13272 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13273 |
conftest$ac_exeext conftest.$ac_ext |
| 13274 |
else case e in #( |
| 13275 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13276 |
/* end confdefs.h. */ |
| 13277 |
$ac_includes_default |
| 13278 |
int |
| 13279 |
main (void) |
| 13280 |
{ |
| 13281 |
|
| 13282 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 13283 |
union |
| 13284 |
{ |
| 13285 |
long int l; |
| 13286 |
char c[sizeof (long int)]; |
| 13287 |
} u; |
| 13288 |
u.l = 1; |
| 13289 |
return u.c[sizeof (long int) - 1] == 1; |
| 13290 |
|
| 13291 |
; |
| 13292 |
return 0; |
| 13293 |
} |
| 13294 |
_ACEOF |
| 13295 |
if ac_fn_c_try_run "$LINENO" |
| 13296 |
then : |
| 13297 |
ac_cv_c_bigendian=no |
| 13298 |
else case e in #( |
| 13299 |
e) ac_cv_c_bigendian=yes ;; |
| 13300 |
esac |
| 13301 |
fi |
| 13302 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13303 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13304 |
esac |
| 13305 |
fi |
| 13306 |
|
| 13307 |
fi ;; |
| 13308 |
esac |
| 13309 |
fi |
| 13310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 13311 |
printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 13312 |
case $ac_cv_c_bigendian in #( |
| 13313 |
yes) |
| 13314 |
printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 13315 |
;; #( |
| 13316 |
no) |
| 13317 |
;; #( |
| 13318 |
universal) |
| 13319 |
|
| 13320 |
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 13321 |
|
| 13322 |
;; #( |
| 13323 |
*) |
| 13324 |
as_fn_error $? "unknown endianness |
| 13325 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 13326 |
esac |
| 13327 |
|
| 13328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 13329 |
printf %s "checking for inline... " >&6; } |
| 13330 |
if test ${ac_cv_c_inline+y} |
| 13331 |
then : |
| 13332 |
printf %s "(cached) " >&6 |
| 13333 |
else case e in #( |
| 13334 |
e) ac_cv_c_inline=no |
| 13335 |
for ac_kw in inline __inline__ __inline; do |
| 13336 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13337 |
/* end confdefs.h. */ |
| 13338 |
#ifndef __cplusplus |
| 13339 |
typedef int foo_t; |
| 13340 |
static $ac_kw foo_t static_foo (void) {return 0; } |
| 13341 |
$ac_kw foo_t foo (void) {return 0; } |
| 13342 |
#endif |
| 13343 |
|
| 13344 |
_ACEOF |
| 13345 |
if ac_fn_c_try_compile "$LINENO" |
| 13346 |
then : |
| 13347 |
ac_cv_c_inline=$ac_kw |
| 13348 |
fi |
| 13349 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13350 |
test "$ac_cv_c_inline" != no && break |
| 13351 |
done |
| 13352 |
;; |
| 13353 |
esac |
| 13354 |
fi |
| 13355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 13356 |
printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 13357 |
|
| 13358 |
case $ac_cv_c_inline in |
| 13359 |
inline | yes) ;; |
| 13360 |
*) |
| 13361 |
case $ac_cv_c_inline in |
| 13362 |
no) ac_val=;; |
| 13363 |
*) ac_val=$ac_cv_c_inline;; |
| 13364 |
esac |
| 13365 |
cat >>confdefs.h <<_ACEOF |
| 13366 |
#ifndef __cplusplus |
| 13367 |
#define inline $ac_val |
| 13368 |
#endif |
| 13369 |
_ACEOF |
| 13370 |
;; |
| 13371 |
esac |
| 13372 |
|
| 13373 |
|
| 13374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 |
| 13375 |
printf %s "checking for rlim_t... " >&6; } |
| 13376 |
if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 13377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 13378 |
printf "%s\n" "(cached) $ac_cv_type_rlim_t" >&6; } |
| 13379 |
else |
| 13380 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13381 |
/* end confdefs.h. */ |
| 13382 |
|
| 13383 |
#include <sys/types.h> |
| 13384 |
#if STDC_HEADERS |
| 13385 |
# include <stdlib.h> |
| 13386 |
# include <stddef.h> |
| 13387 |
#endif |
| 13388 |
#ifdef HAVE_SYS_RESOURCE_H |
| 13389 |
# include <sys/resource.h> |
| 13390 |
#endif |
| 13391 |
|
| 13392 |
_ACEOF |
| 13393 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13394 |
$EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1 |
| 13395 |
then : |
| 13396 |
ac_cv_type_rlim_t=yes |
| 13397 |
else case e in #( |
| 13398 |
e) ac_cv_type_rlim_t=no ;; |
| 13399 |
esac |
| 13400 |
fi |
| 13401 |
rm -rf conftest* |
| 13402 |
|
| 13403 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 |
| 13404 |
printf "%s\n" "$ac_cv_type_rlim_t" >&6; } |
| 13405 |
fi |
| 13406 |
if test $ac_cv_type_rlim_t = no; then |
| 13407 |
cat >> confdefs.h <<\EOF |
| 13408 |
#define rlim_t unsigned long |
| 13409 |
EOF |
| 13410 |
fi |
| 13411 |
|
| 13412 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 |
| 13413 |
printf %s "checking for stack_t... " >&6; } |
| 13414 |
if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
| 13415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 |
| 13416 |
printf "%s\n" "(cached) $ac_cv_type_stack_t" >&6; } |
| 13417 |
else |
| 13418 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13419 |
/* end confdefs.h. */ |
| 13420 |
|
| 13421 |
#include <sys/types.h> |
| 13422 |
#if STDC_HEADERS |
| 13423 |
# include <stdlib.h> |
| 13424 |
# include <stddef.h> |
| 13425 |
#endif |
| 13426 |
#include <signal.h> |
| 13427 |
|
| 13428 |
_ACEOF |
| 13429 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13430 |
$EGREP_TRADITIONAL "stack_t" >/dev/null 2>&1 |
| 13431 |
then : |
| 13432 |
ac_cv_type_stack_t=yes |
| 13433 |
else case e in #( |
| 13434 |
e) ac_cv_type_stack_t=no ;; |
| 13435 |
esac |
| 13436 |
fi |
| 13437 |
rm -rf conftest* |
| 13438 |
|
| 13439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 |
| 13440 |
printf "%s\n" "$ac_cv_type_stack_t" >&6; } |
| 13441 |
fi |
| 13442 |
if test $ac_cv_type_stack_t = no; then |
| 13443 |
cat >> confdefs.h <<\EOF |
| 13444 |
#define stack_t struct sigaltstack |
| 13445 |
EOF |
| 13446 |
fi |
| 13447 |
|
| 13448 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 |
| 13449 |
printf %s "checking whether stack_t has an ss_base field... " >&6; } |
| 13450 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13451 |
/* end confdefs.h. */ |
| 13452 |
|
| 13453 |
#include <sys/types.h> |
| 13454 |
#if STDC_HEADERS |
| 13455 |
# include <stdlib.h> |
| 13456 |
# include <stddef.h> |
| 13457 |
#endif |
| 13458 |
#include <signal.h> |
| 13459 |
#include "confdefs.h" |
| 13460 |
|
| 13461 |
int |
| 13462 |
main (void) |
| 13463 |
{ |
| 13464 |
stack_t sigstk; sigstk.ss_base = 0; |
| 13465 |
; |
| 13466 |
return 0; |
| 13467 |
} |
| 13468 |
_ACEOF |
| 13469 |
if ac_fn_c_try_compile "$LINENO" |
| 13470 |
then : |
| 13471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13472 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SS_BASE 1" >>confdefs.h |
| 13473 |
|
| 13474 |
else case e in #( |
| 13475 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13476 |
printf "%s\n" "no" >&6; } ;; |
| 13477 |
esac |
| 13478 |
fi |
| 13479 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13480 |
|
| 13481 |
olibs="$LIBS" |
| 13482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 |
| 13483 |
printf %s "checking --with-tlib argument... " >&6; } |
| 13484 |
|
| 13485 |
# Check whether --with-tlib was given. |
| 13486 |
if test ${with_tlib+y} |
| 13487 |
then : |
| 13488 |
withval=$with_tlib; |
| 13489 |
fi |
| 13490 |
|
| 13491 |
if test -n "$with_tlib"; then |
| 13492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 |
| 13493 |
printf "%s\n" "$with_tlib" >&6; } |
| 13494 |
LIBS="$LIBS -l$with_tlib" |
| 13495 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 |
| 13496 |
printf %s "checking for linking with $with_tlib library... " >&6; } |
| 13497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13498 |
/* end confdefs.h. */ |
| 13499 |
|
| 13500 |
int |
| 13501 |
main (void) |
| 13502 |
{ |
| 13503 |
|
| 13504 |
; |
| 13505 |
return 0; |
| 13506 |
} |
| 13507 |
_ACEOF |
| 13508 |
if ac_fn_c_try_link "$LINENO" |
| 13509 |
then : |
| 13510 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 13511 |
printf "%s\n" "OK" >&6; } |
| 13512 |
else case e in #( |
| 13513 |
e) as_fn_error $? "FAILED" "$LINENO" 5 ;; |
| 13514 |
esac |
| 13515 |
fi |
| 13516 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13517 |
conftest$ac_exeext conftest.$ac_ext |
| 13518 |
olibs="$LIBS" |
| 13519 |
else |
| 13520 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 |
| 13521 |
printf "%s\n" "empty: automatic terminal library selection" >&6; } |
| 13522 |
case "$vim_cv_uname_output" in |
| 13523 |
OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; |
| 13524 |
*) tlibs="tinfo ncurses termlib termcap curses";; |
| 13525 |
esac |
| 13526 |
for libname in $tlibs; do |
| 13527 |
as_ac_Lib=`printf "%s\n" "ac_cv_lib_${libname}""_tgetent" | sed "$as_sed_sh"` |
| 13528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 |
| 13529 |
printf %s "checking for tgetent in -l${libname}... " >&6; } |
| 13530 |
if eval test \${$as_ac_Lib+y} |
| 13531 |
then : |
| 13532 |
printf %s "(cached) " >&6 |
| 13533 |
else case e in #( |
| 13534 |
e) ac_check_lib_save_LIBS=$LIBS |
| 13535 |
LIBS="-l${libname} $LIBS" |
| 13536 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13537 |
/* end confdefs.h. */ |
| 13538 |
|
| 13539 |
/* Override any GCC internal prototype to avoid an error. |
| 13540 |
Use char because int might match the return type of a GCC |
| 13541 |
builtin and then its argument prototype would still apply. |
| 13542 |
The 'extern "C"' is for builds by C++ compilers; |
| 13543 |
although this is not generally supported in C code supporting it here |
| 13544 |
has little cost and some practical benefit (sr 110532). */ |
| 13545 |
#ifdef __cplusplus |
| 13546 |
extern "C" |
| 13547 |
#endif |
| 13548 |
char tgetent (void); |
| 13549 |
int |
| 13550 |
main (void) |
| 13551 |
{ |
| 13552 |
return tgetent (); |
| 13553 |
; |
| 13554 |
return 0; |
| 13555 |
} |
| 13556 |
_ACEOF |
| 13557 |
if ac_fn_c_try_link "$LINENO" |
| 13558 |
then : |
| 13559 |
eval "$as_ac_Lib=yes" |
| 13560 |
else case e in #( |
| 13561 |
e) eval "$as_ac_Lib=no" ;; |
| 13562 |
esac |
| 13563 |
fi |
| 13564 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13565 |
conftest$ac_exeext conftest.$ac_ext |
| 13566 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 13567 |
esac |
| 13568 |
fi |
| 13569 |
eval ac_res=\$$as_ac_Lib |
| 13570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13571 |
printf "%s\n" "$ac_res" >&6; } |
| 13572 |
if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 13573 |
then : |
| 13574 |
cat >>confdefs.h <<_ACEOF |
| 13575 |
#define `printf "%s\n" "HAVE_LIB${libname}" | sed "$as_sed_cpp"` 1 |
| 13576 |
_ACEOF |
| 13577 |
|
| 13578 |
LIBS="-l${libname} $LIBS" |
| 13579 |
|
| 13580 |
fi |
| 13581 |
|
| 13582 |
if test "x$olibs" != "x$LIBS"; then |
| 13583 |
if test "$cross_compiling" = yes |
| 13584 |
then : |
| 13585 |
res="OK" |
| 13586 |
else case e in #( |
| 13587 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13588 |
/* end confdefs.h. */ |
| 13589 |
|
| 13590 |
#ifdef HAVE_TERMCAP_H |
| 13591 |
# include <termcap.h> |
| 13592 |
#endif |
| 13593 |
#if STDC_HEADERS |
| 13594 |
# include <stdlib.h> |
| 13595 |
# include <stddef.h> |
| 13596 |
#endif |
| 13597 |
int main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
| 13598 |
_ACEOF |
| 13599 |
if ac_fn_c_try_run "$LINENO" |
| 13600 |
then : |
| 13601 |
res="OK" |
| 13602 |
else case e in #( |
| 13603 |
e) res="FAIL" ;; |
| 13604 |
esac |
| 13605 |
fi |
| 13606 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13607 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13608 |
esac |
| 13609 |
fi |
| 13610 |
|
| 13611 |
if test "$res" = "OK"; then |
| 13612 |
break |
| 13613 |
fi |
| 13614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 |
| 13615 |
printf "%s\n" "$libname library is not usable" >&6; } |
| 13616 |
LIBS="$olibs" |
| 13617 |
fi |
| 13618 |
done |
| 13619 |
if test "x$olibs" = "x$LIBS"; then |
| 13620 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 |
| 13621 |
printf "%s\n" "no terminal library found" >&6; } |
| 13622 |
fi |
| 13623 |
fi |
| 13624 |
|
| 13625 |
if test "x$olibs" = "x$LIBS"; then |
| 13626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 |
| 13627 |
printf %s "checking for tgetent()... " >&6; } |
| 13628 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13629 |
/* end confdefs.h. */ |
| 13630 |
int tgetent(char *, const char *); |
| 13631 |
int |
| 13632 |
main (void) |
| 13633 |
{ |
| 13634 |
char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
| 13635 |
; |
| 13636 |
return 0; |
| 13637 |
} |
| 13638 |
_ACEOF |
| 13639 |
if ac_fn_c_try_link "$LINENO" |
| 13640 |
then : |
| 13641 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13642 |
printf "%s\n" "yes" >&6; } |
| 13643 |
else case e in #( |
| 13644 |
e) as_fn_error $? "NOT FOUND! |
| 13645 |
You need to install a terminal library; for example ncurses. |
| 13646 |
On Linux that would be the libncurses-dev package. |
| 13647 |
Or specify the name of the library with --with-tlib." "$LINENO" 5 ;; |
| 13648 |
esac |
| 13649 |
fi |
| 13650 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13651 |
conftest$ac_exeext conftest.$ac_ext |
| 13652 |
fi |
| 13653 |
|
| 13654 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 |
| 13655 |
printf %s "checking whether we talk terminfo... " >&6; } |
| 13656 |
if test ${vim_cv_terminfo+y} |
| 13657 |
then : |
| 13658 |
printf %s "(cached) " >&6 |
| 13659 |
else case e in #( |
| 13660 |
e) |
| 13661 |
if test "$cross_compiling" = yes |
| 13662 |
then : |
| 13663 |
|
| 13664 |
vim_cv_terminfo=yes |
| 13665 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_terminfo'" >&5 |
| 13666 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_terminfo'" >&2;} |
| 13667 |
|
| 13668 |
else case e in #( |
| 13669 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13670 |
/* end confdefs.h. */ |
| 13671 |
|
| 13672 |
#include "confdefs.h" |
| 13673 |
#ifdef HAVE_TERM_H |
| 13674 |
# include <term.h> |
| 13675 |
#elif defined(HAVE_TERMCAP_H) |
| 13676 |
# include <termcap.h> |
| 13677 |
#else |
| 13678 |
/* forward declare tgoto */ |
| 13679 |
extern char *tgoto(const char *, int, int); |
| 13680 |
#endif |
| 13681 |
#ifdef HAVE_STRING_H |
| 13682 |
# include <string.h> |
| 13683 |
#endif |
| 13684 |
#if STDC_HEADERS |
| 13685 |
# include <stdlib.h> |
| 13686 |
# include <stddef.h> |
| 13687 |
#endif |
| 13688 |
int main() |
| 13689 |
{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!!strcmp(s==0 ? "" : s, "1")); } |
| 13690 |
|
| 13691 |
_ACEOF |
| 13692 |
if ac_fn_c_try_run "$LINENO" |
| 13693 |
then : |
| 13694 |
|
| 13695 |
vim_cv_terminfo=yes |
| 13696 |
|
| 13697 |
else case e in #( |
| 13698 |
e) |
| 13699 |
vim_cv_terminfo=no |
| 13700 |
;; |
| 13701 |
esac |
| 13702 |
fi |
| 13703 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13704 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13705 |
esac |
| 13706 |
fi |
| 13707 |
|
| 13708 |
;; |
| 13709 |
esac |
| 13710 |
fi |
| 13711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 |
| 13712 |
printf "%s\n" "$vim_cv_terminfo" >&6; } |
| 13713 |
|
| 13714 |
if test "x$vim_cv_terminfo" = "xyes" ; then |
| 13715 |
printf "%s\n" "#define TERMINFO 1" >>confdefs.h |
| 13716 |
|
| 13717 |
fi |
| 13718 |
|
| 13719 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 |
| 13720 |
printf %s "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 13721 |
if test ${vim_cv_tgetent+y} |
| 13722 |
then : |
| 13723 |
printf %s "(cached) " >&6 |
| 13724 |
else case e in #( |
| 13725 |
e) |
| 13726 |
if test "$cross_compiling" = yes |
| 13727 |
then : |
| 13728 |
|
| 13729 |
vim_cv_tgetent=zero |
| 13730 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_tgetent'" >&5 |
| 13731 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_tgetent'" >&2;} |
| 13732 |
|
| 13733 |
else case e in #( |
| 13734 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13735 |
/* end confdefs.h. */ |
| 13736 |
|
| 13737 |
#include "confdefs.h" |
| 13738 |
#ifdef HAVE_TERMCAP_H |
| 13739 |
# include <termcap.h> |
| 13740 |
#endif |
| 13741 |
#if STDC_HEADERS |
| 13742 |
# include <stdlib.h> |
| 13743 |
# include <stddef.h> |
| 13744 |
#endif |
| 13745 |
int main() |
| 13746 |
{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
| 13747 |
|
| 13748 |
_ACEOF |
| 13749 |
if ac_fn_c_try_run "$LINENO" |
| 13750 |
then : |
| 13751 |
|
| 13752 |
vim_cv_tgetent=zero |
| 13753 |
|
| 13754 |
else case e in #( |
| 13755 |
e) |
| 13756 |
vim_cv_tgetent=non-zero |
| 13757 |
;; |
| 13758 |
esac |
| 13759 |
fi |
| 13760 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13761 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13762 |
esac |
| 13763 |
fi |
| 13764 |
|
| 13765 |
;; |
| 13766 |
esac |
| 13767 |
fi |
| 13768 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 |
| 13769 |
printf "%s\n" "$vim_cv_tgetent" >&6; } |
| 13770 |
|
| 13771 |
if test "x$vim_cv_tgetent" = "xzero" ; then |
| 13772 |
printf "%s\n" "#define TGETENT_ZERO_ERR 0" >>confdefs.h |
| 13773 |
|
| 13774 |
fi |
| 13775 |
|
| 13776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 |
| 13777 |
printf %s "checking whether termcap.h contains ospeed... " >&6; } |
| 13778 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13779 |
/* end confdefs.h. */ |
| 13780 |
|
| 13781 |
#ifdef HAVE_TERMCAP_H |
| 13782 |
# include <termcap.h> |
| 13783 |
#endif |
| 13784 |
|
| 13785 |
int |
| 13786 |
main (void) |
| 13787 |
{ |
| 13788 |
ospeed = 20000 |
| 13789 |
; |
| 13790 |
return 0; |
| 13791 |
} |
| 13792 |
_ACEOF |
| 13793 |
if ac_fn_c_try_link "$LINENO" |
| 13794 |
then : |
| 13795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13796 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h |
| 13797 |
|
| 13798 |
else case e in #( |
| 13799 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13800 |
printf "%s\n" "no" >&6; } |
| 13801 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 |
| 13802 |
printf %s "checking whether ospeed can be extern... " >&6; } |
| 13803 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13804 |
/* end confdefs.h. */ |
| 13805 |
|
| 13806 |
#ifdef HAVE_TERMCAP_H |
| 13807 |
# include <termcap.h> |
| 13808 |
#endif |
| 13809 |
extern short ospeed; |
| 13810 |
|
| 13811 |
int |
| 13812 |
main (void) |
| 13813 |
{ |
| 13814 |
ospeed = 20000 |
| 13815 |
; |
| 13816 |
return 0; |
| 13817 |
} |
| 13818 |
_ACEOF |
| 13819 |
if ac_fn_c_try_link "$LINENO" |
| 13820 |
then : |
| 13821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13822 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define OSPEED_EXTERN 1" >>confdefs.h |
| 13823 |
|
| 13824 |
else case e in #( |
| 13825 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13826 |
printf "%s\n" "no" >&6; } ;; |
| 13827 |
esac |
| 13828 |
fi |
| 13829 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13830 |
conftest$ac_exeext conftest.$ac_ext |
| 13831 |
;; |
| 13832 |
esac |
| 13833 |
fi |
| 13834 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13835 |
conftest$ac_exeext conftest.$ac_ext |
| 13836 |
|
| 13837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 |
| 13838 |
printf %s "checking whether termcap.h contains UP, BC and PC... " >&6; } |
| 13839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13840 |
/* end confdefs.h. */ |
| 13841 |
|
| 13842 |
#ifdef HAVE_TERMCAP_H |
| 13843 |
# include <termcap.h> |
| 13844 |
#endif |
| 13845 |
|
| 13846 |
int |
| 13847 |
main (void) |
| 13848 |
{ |
| 13849 |
if (UP == 0 && BC == 0) PC = 1 |
| 13850 |
; |
| 13851 |
return 0; |
| 13852 |
} |
| 13853 |
_ACEOF |
| 13854 |
if ac_fn_c_try_link "$LINENO" |
| 13855 |
then : |
| 13856 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13857 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_UP_BC_PC 1" >>confdefs.h |
| 13858 |
|
| 13859 |
else case e in #( |
| 13860 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13861 |
printf "%s\n" "no" >&6; } |
| 13862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 |
| 13863 |
printf %s "checking whether UP, BC and PC can be extern... " >&6; } |
| 13864 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13865 |
/* end confdefs.h. */ |
| 13866 |
|
| 13867 |
#ifdef HAVE_TERMCAP_H |
| 13868 |
# include <termcap.h> |
| 13869 |
#endif |
| 13870 |
extern char *UP, *BC, PC; |
| 13871 |
|
| 13872 |
int |
| 13873 |
main (void) |
| 13874 |
{ |
| 13875 |
if (UP == 0 && BC == 0) PC = 1 |
| 13876 |
; |
| 13877 |
return 0; |
| 13878 |
} |
| 13879 |
_ACEOF |
| 13880 |
if ac_fn_c_try_link "$LINENO" |
| 13881 |
then : |
| 13882 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13883 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define UP_BC_PC_EXTERN 1" >>confdefs.h |
| 13884 |
|
| 13885 |
else case e in #( |
| 13886 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13887 |
printf "%s\n" "no" >&6; } ;; |
| 13888 |
esac |
| 13889 |
fi |
| 13890 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13891 |
conftest$ac_exeext conftest.$ac_ext |
| 13892 |
;; |
| 13893 |
esac |
| 13894 |
fi |
| 13895 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13896 |
conftest$ac_exeext conftest.$ac_ext |
| 13897 |
|
| 13898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 |
| 13899 |
printf %s "checking whether tputs() uses outfuntype... " >&6; } |
| 13900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13901 |
/* end confdefs.h. */ |
| 13902 |
|
| 13903 |
#ifdef HAVE_TERMCAP_H |
| 13904 |
# include <termcap.h> |
| 13905 |
#endif |
| 13906 |
|
| 13907 |
int |
| 13908 |
main (void) |
| 13909 |
{ |
| 13910 |
extern int xx(); tputs("test", 1, (outfuntype)xx) |
| 13911 |
; |
| 13912 |
return 0; |
| 13913 |
} |
| 13914 |
_ACEOF |
| 13915 |
if ac_fn_c_try_compile "$LINENO" |
| 13916 |
then : |
| 13917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13918 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_OUTFUNTYPE 1" >>confdefs.h |
| 13919 |
|
| 13920 |
else case e in #( |
| 13921 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13922 |
printf "%s\n" "no" >&6; } ;; |
| 13923 |
esac |
| 13924 |
fi |
| 13925 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13926 |
|
| 13927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether del_curterm() can be used" >&5 |
| 13928 |
printf %s "checking whether del_curterm() can be used... " >&6; } |
| 13929 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13930 |
/* end confdefs.h. */ |
| 13931 |
|
| 13932 |
#ifdef HAVE_TERMCAP_H |
| 13933 |
# include <termcap.h> |
| 13934 |
#endif |
| 13935 |
#include <term.h> |
| 13936 |
|
| 13937 |
int |
| 13938 |
main (void) |
| 13939 |
{ |
| 13940 |
if (cur_term) del_curterm(cur_term); |
| 13941 |
; |
| 13942 |
return 0; |
| 13943 |
} |
| 13944 |
_ACEOF |
| 13945 |
if ac_fn_c_try_link "$LINENO" |
| 13946 |
then : |
| 13947 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13948 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DEL_CURTERM 1" >>confdefs.h |
| 13949 |
|
| 13950 |
else case e in #( |
| 13951 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13952 |
printf "%s\n" "no" >&6; } ;; |
| 13953 |
esac |
| 13954 |
fi |
| 13955 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13956 |
conftest$ac_exeext conftest.$ac_ext |
| 13957 |
|
| 13958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13959 |
printf %s "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 13960 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13961 |
/* end confdefs.h. */ |
| 13962 |
|
| 13963 |
#include <sys/types.h> |
| 13964 |
#include <sys/time.h> |
| 13965 |
#include <sys/select.h> |
| 13966 |
int |
| 13967 |
main (void) |
| 13968 |
{ |
| 13969 |
|
| 13970 |
; |
| 13971 |
return 0; |
| 13972 |
} |
| 13973 |
_ACEOF |
| 13974 |
if ac_fn_c_try_compile "$LINENO" |
| 13975 |
then : |
| 13976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13977 |
printf "%s\n" "yes" >&6; } |
| 13978 |
printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
| 13979 |
|
| 13980 |
else case e in #( |
| 13981 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13982 |
printf "%s\n" "no" >&6; } ;; |
| 13983 |
esac |
| 13984 |
fi |
| 13985 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13986 |
|
| 13987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13988 |
printf %s "checking for /dev/ptc... " >&6; } |
| 13989 |
if test -r /dev/ptc; then |
| 13990 |
printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h |
| 13991 |
|
| 13992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13993 |
printf "%s\n" "yes" >&6; } |
| 13994 |
else |
| 13995 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13996 |
printf "%s\n" "no" >&6; } |
| 13997 |
fi |
| 13998 |
|
| 13999 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 |
| 14000 |
printf %s "checking for SVR4 ptys... " >&6; } |
| 14001 |
if test -c /dev/ptmx ; then |
| 14002 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14003 |
/* end confdefs.h. */ |
| 14004 |
|
| 14005 |
// These should be in stdlib.h, but it depends on _XOPEN_SOURCE. |
| 14006 |
char *ptsname(int); |
| 14007 |
int unlockpt(int); |
| 14008 |
int grantpt(int); |
| 14009 |
|
| 14010 |
int |
| 14011 |
main (void) |
| 14012 |
{ |
| 14013 |
|
| 14014 |
ptsname(0); |
| 14015 |
grantpt(0); |
| 14016 |
unlockpt(0); |
| 14017 |
; |
| 14018 |
return 0; |
| 14019 |
} |
| 14020 |
_ACEOF |
| 14021 |
if ac_fn_c_try_link "$LINENO" |
| 14022 |
then : |
| 14023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14024 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SVR4_PTYS 1" >>confdefs.h |
| 14025 |
|
| 14026 |
else case e in #( |
| 14027 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14028 |
printf "%s\n" "no" >&6; } ;; |
| 14029 |
esac |
| 14030 |
fi |
| 14031 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14032 |
conftest$ac_exeext conftest.$ac_ext |
| 14033 |
else |
| 14034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14035 |
printf "%s\n" "no" >&6; } |
| 14036 |
fi |
| 14037 |
|
| 14038 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 |
| 14039 |
printf %s "checking for ptyranges... " >&6; } |
| 14040 |
if test -d /dev/ptym ; then |
| 14041 |
pdir='/dev/ptym' |
| 14042 |
else |
| 14043 |
pdir='/dev' |
| 14044 |
fi |
| 14045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14046 |
/* end confdefs.h. */ |
| 14047 |
#ifdef M_UNIX |
| 14048 |
yes; |
| 14049 |
#endif |
| 14050 |
|
| 14051 |
_ACEOF |
| 14052 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14053 |
$EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
| 14054 |
then : |
| 14055 |
ptys=`echo /dev/ptyp??` |
| 14056 |
else case e in #( |
| 14057 |
e) ptys=`echo $pdir/pty??` ;; |
| 14058 |
esac |
| 14059 |
fi |
| 14060 |
rm -rf conftest* |
| 14061 |
|
| 14062 |
if test "$ptys" != "$pdir/pty??" ; then |
| 14063 |
p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 14064 |
p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
| 14065 |
printf "%s\n" "#define PTYRANGE0 \"$p0\"" >>confdefs.h |
| 14066 |
|
| 14067 |
printf "%s\n" "#define PTYRANGE1 \"$p1\"" >>confdefs.h |
| 14068 |
|
| 14069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 |
| 14070 |
printf "%s\n" "$p0 / $p1" >&6; } |
| 14071 |
else |
| 14072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 |
| 14073 |
printf "%s\n" "don't know" >&6; } |
| 14074 |
fi |
| 14075 |
|
| 14076 |
|
| 14077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 |
| 14078 |
printf %s "checking for struct sigcontext... " >&6; } |
| 14079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14080 |
/* end confdefs.h. */ |
| 14081 |
|
| 14082 |
#include <signal.h> |
| 14083 |
int test_sig() |
| 14084 |
{ |
| 14085 |
struct sigcontext *scont; |
| 14086 |
scont = (struct sigcontext *)0; |
| 14087 |
return 1; |
| 14088 |
} |
| 14089 |
int |
| 14090 |
main (void) |
| 14091 |
{ |
| 14092 |
|
| 14093 |
; |
| 14094 |
return 0; |
| 14095 |
} |
| 14096 |
_ACEOF |
| 14097 |
if ac_fn_c_try_compile "$LINENO" |
| 14098 |
then : |
| 14099 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14100 |
printf "%s\n" "yes" >&6; } |
| 14101 |
printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h |
| 14102 |
|
| 14103 |
else case e in #( |
| 14104 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14105 |
printf "%s\n" "no" >&6; } ;; |
| 14106 |
esac |
| 14107 |
fi |
| 14108 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14109 |
|
| 14110 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 |
| 14111 |
printf %s "checking getcwd implementation is broken... " >&6; } |
| 14112 |
if test ${vim_cv_getcwd_broken+y} |
| 14113 |
then : |
| 14114 |
printf %s "(cached) " >&6 |
| 14115 |
else case e in #( |
| 14116 |
e) |
| 14117 |
if test "$cross_compiling" = yes |
| 14118 |
then : |
| 14119 |
|
| 14120 |
vim_cv_getcwd_broken=no |
| 14121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_getcwd_broken'" >&5 |
| 14122 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_getcwd_broken'" >&2;} |
| 14123 |
|
| 14124 |
else case e in #( |
| 14125 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14126 |
/* end confdefs.h. */ |
| 14127 |
|
| 14128 |
#include "confdefs.h" |
| 14129 |
#ifdef HAVE_UNISTD_H |
| 14130 |
#include <unistd.h> |
| 14131 |
#endif |
| 14132 |
char *dagger[] = { "IFS=pwd", 0 }; |
| 14133 |
int main() |
| 14134 |
{ |
| 14135 |
char buffer[500]; |
| 14136 |
extern char **environ; |
| 14137 |
environ = dagger; |
| 14138 |
return getcwd(buffer, 500) ? 0 : 1; |
| 14139 |
} |
| 14140 |
|
| 14141 |
_ACEOF |
| 14142 |
if ac_fn_c_try_run "$LINENO" |
| 14143 |
then : |
| 14144 |
|
| 14145 |
vim_cv_getcwd_broken=no |
| 14146 |
|
| 14147 |
else case e in #( |
| 14148 |
e) |
| 14149 |
vim_cv_getcwd_broken=yes |
| 14150 |
;; |
| 14151 |
esac |
| 14152 |
fi |
| 14153 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14154 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14155 |
esac |
| 14156 |
fi |
| 14157 |
|
| 14158 |
;; |
| 14159 |
esac |
| 14160 |
fi |
| 14161 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 |
| 14162 |
printf "%s\n" "$vim_cv_getcwd_broken" >&6; } |
| 14163 |
|
| 14164 |
if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 14165 |
printf "%s\n" "#define BAD_GETCWD 1" >>confdefs.h |
| 14166 |
|
| 14167 |
ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
| 14168 |
if test "x$ac_cv_func_getwd" = xyes |
| 14169 |
then : |
| 14170 |
printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h |
| 14171 |
|
| 14172 |
fi |
| 14173 |
|
| 14174 |
fi |
| 14175 |
|
| 14176 |
ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir" |
| 14177 |
if test "x$ac_cv_func_fchdir" = xyes |
| 14178 |
then : |
| 14179 |
printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h |
| 14180 |
|
| 14181 |
fi |
| 14182 |
ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" |
| 14183 |
if test "x$ac_cv_func_fchown" = xyes |
| 14184 |
then : |
| 14185 |
printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h |
| 14186 |
|
| 14187 |
fi |
| 14188 |
ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" |
| 14189 |
if test "x$ac_cv_func_fchmod" = xyes |
| 14190 |
then : |
| 14191 |
printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h |
| 14192 |
|
| 14193 |
fi |
| 14194 |
ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" |
| 14195 |
if test "x$ac_cv_func_fsync" = xyes |
| 14196 |
then : |
| 14197 |
printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h |
| 14198 |
|
| 14199 |
fi |
| 14200 |
ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 14201 |
if test "x$ac_cv_func_getcwd" = xyes |
| 14202 |
then : |
| 14203 |
printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 14204 |
|
| 14205 |
fi |
| 14206 |
ac_fn_c_check_func "$LINENO" "getpseudotty" "ac_cv_func_getpseudotty" |
| 14207 |
if test "x$ac_cv_func_getpseudotty" = xyes |
| 14208 |
then : |
| 14209 |
printf "%s\n" "#define HAVE_GETPSEUDOTTY 1" >>confdefs.h |
| 14210 |
|
| 14211 |
fi |
| 14212 |
ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" |
| 14213 |
if test "x$ac_cv_func_getpwent" = xyes |
| 14214 |
then : |
| 14215 |
printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h |
| 14216 |
|
| 14217 |
fi |
| 14218 |
ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" |
| 14219 |
if test "x$ac_cv_func_getpwnam" = xyes |
| 14220 |
then : |
| 14221 |
printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h |
| 14222 |
|
| 14223 |
fi |
| 14224 |
ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" |
| 14225 |
if test "x$ac_cv_func_getpwuid" = xyes |
| 14226 |
then : |
| 14227 |
printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h |
| 14228 |
|
| 14229 |
fi |
| 14230 |
ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" |
| 14231 |
if test "x$ac_cv_func_getrlimit" = xyes |
| 14232 |
then : |
| 14233 |
printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h |
| 14234 |
|
| 14235 |
fi |
| 14236 |
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 14237 |
if test "x$ac_cv_func_gettimeofday" = xyes |
| 14238 |
then : |
| 14239 |
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 14240 |
|
| 14241 |
fi |
| 14242 |
ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" |
| 14243 |
if test "x$ac_cv_func_localtime_r" = xyes |
| 14244 |
then : |
| 14245 |
printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
| 14246 |
|
| 14247 |
fi |
| 14248 |
ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" |
| 14249 |
if test "x$ac_cv_func_lstat" = xyes |
| 14250 |
then : |
| 14251 |
printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h |
| 14252 |
|
| 14253 |
fi |
| 14254 |
ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 14255 |
if test "x$ac_cv_func_memset" = xyes |
| 14256 |
then : |
| 14257 |
printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h |
| 14258 |
|
| 14259 |
fi |
| 14260 |
ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" |
| 14261 |
if test "x$ac_cv_func_mkdtemp" = xyes |
| 14262 |
then : |
| 14263 |
printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h |
| 14264 |
|
| 14265 |
fi |
| 14266 |
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
| 14267 |
if test "x$ac_cv_func_nanosleep" = xyes |
| 14268 |
then : |
| 14269 |
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 14270 |
|
| 14271 |
fi |
| 14272 |
ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" |
| 14273 |
if test "x$ac_cv_func_opendir" = xyes |
| 14274 |
then : |
| 14275 |
printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h |
| 14276 |
|
| 14277 |
fi |
| 14278 |
ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 14279 |
if test "x$ac_cv_func_putenv" = xyes |
| 14280 |
then : |
| 14281 |
printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 14282 |
|
| 14283 |
fi |
| 14284 |
ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort" |
| 14285 |
if test "x$ac_cv_func_qsort" = xyes |
| 14286 |
then : |
| 14287 |
printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h |
| 14288 |
|
| 14289 |
fi |
| 14290 |
ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" |
| 14291 |
if test "x$ac_cv_func_readlink" = xyes |
| 14292 |
then : |
| 14293 |
printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h |
| 14294 |
|
| 14295 |
fi |
| 14296 |
ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
| 14297 |
if test "x$ac_cv_func_select" = xyes |
| 14298 |
then : |
| 14299 |
printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
| 14300 |
|
| 14301 |
fi |
| 14302 |
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 14303 |
if test "x$ac_cv_func_setenv" = xyes |
| 14304 |
then : |
| 14305 |
printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 14306 |
|
| 14307 |
fi |
| 14308 |
ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" |
| 14309 |
if test "x$ac_cv_func_getpgid" = xyes |
| 14310 |
then : |
| 14311 |
printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h |
| 14312 |
|
| 14313 |
fi |
| 14314 |
ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
| 14315 |
if test "x$ac_cv_func_setpgid" = xyes |
| 14316 |
then : |
| 14317 |
printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h |
| 14318 |
|
| 14319 |
fi |
| 14320 |
ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" |
| 14321 |
if test "x$ac_cv_func_setsid" = xyes |
| 14322 |
then : |
| 14323 |
printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h |
| 14324 |
|
| 14325 |
fi |
| 14326 |
ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" |
| 14327 |
if test "x$ac_cv_func_sigaltstack" = xyes |
| 14328 |
then : |
| 14329 |
printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h |
| 14330 |
|
| 14331 |
fi |
| 14332 |
ac_fn_c_check_func "$LINENO" "sigstack" "ac_cv_func_sigstack" |
| 14333 |
if test "x$ac_cv_func_sigstack" = xyes |
| 14334 |
then : |
| 14335 |
printf "%s\n" "#define HAVE_SIGSTACK 1" >>confdefs.h |
| 14336 |
|
| 14337 |
fi |
| 14338 |
ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" |
| 14339 |
if test "x$ac_cv_func_sigset" = xyes |
| 14340 |
then : |
| 14341 |
printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h |
| 14342 |
|
| 14343 |
fi |
| 14344 |
ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp" |
| 14345 |
if test "x$ac_cv_func_sigsetjmp" = xyes |
| 14346 |
then : |
| 14347 |
printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h |
| 14348 |
|
| 14349 |
fi |
| 14350 |
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 14351 |
if test "x$ac_cv_func_sigaction" = xyes |
| 14352 |
then : |
| 14353 |
printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 14354 |
|
| 14355 |
fi |
| 14356 |
ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 14357 |
if test "x$ac_cv_func_sigprocmask" = xyes |
| 14358 |
then : |
| 14359 |
printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h |
| 14360 |
|
| 14361 |
fi |
| 14362 |
ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec" |
| 14363 |
if test "x$ac_cv_func_sigvec" = xyes |
| 14364 |
then : |
| 14365 |
printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h |
| 14366 |
|
| 14367 |
fi |
| 14368 |
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 14369 |
if test "x$ac_cv_func_strcasecmp" = xyes |
| 14370 |
then : |
| 14371 |
printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h |
| 14372 |
|
| 14373 |
fi |
| 14374 |
ac_fn_c_check_func "$LINENO" "strcoll" "ac_cv_func_strcoll" |
| 14375 |
if test "x$ac_cv_func_strcoll" = xyes |
| 14376 |
then : |
| 14377 |
printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h |
| 14378 |
|
| 14379 |
fi |
| 14380 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 14381 |
if test "x$ac_cv_func_strerror" = xyes |
| 14382 |
then : |
| 14383 |
printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
| 14384 |
|
| 14385 |
fi |
| 14386 |
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 14387 |
if test "x$ac_cv_func_strftime" = xyes |
| 14388 |
then : |
| 14389 |
printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h |
| 14390 |
|
| 14391 |
fi |
| 14392 |
ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp" |
| 14393 |
if test "x$ac_cv_func_stricmp" = xyes |
| 14394 |
then : |
| 14395 |
printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h |
| 14396 |
|
| 14397 |
fi |
| 14398 |
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
| 14399 |
if test "x$ac_cv_func_strncasecmp" = xyes |
| 14400 |
then : |
| 14401 |
printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h |
| 14402 |
|
| 14403 |
fi |
| 14404 |
ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp" |
| 14405 |
if test "x$ac_cv_func_strnicmp" = xyes |
| 14406 |
then : |
| 14407 |
printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h |
| 14408 |
|
| 14409 |
fi |
| 14410 |
ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" |
| 14411 |
if test "x$ac_cv_func_strpbrk" = xyes |
| 14412 |
then : |
| 14413 |
printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h |
| 14414 |
|
| 14415 |
fi |
| 14416 |
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" |
| 14417 |
if test "x$ac_cv_func_strptime" = xyes |
| 14418 |
then : |
| 14419 |
printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h |
| 14420 |
|
| 14421 |
fi |
| 14422 |
ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
| 14423 |
if test "x$ac_cv_func_strtol" = xyes |
| 14424 |
then : |
| 14425 |
printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h |
| 14426 |
|
| 14427 |
fi |
| 14428 |
ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" |
| 14429 |
if test "x$ac_cv_func_tgetent" = xyes |
| 14430 |
then : |
| 14431 |
printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h |
| 14432 |
|
| 14433 |
fi |
| 14434 |
ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" |
| 14435 |
if test "x$ac_cv_func_towlower" = xyes |
| 14436 |
then : |
| 14437 |
printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h |
| 14438 |
|
| 14439 |
fi |
| 14440 |
ac_fn_c_check_func "$LINENO" "towupper" "ac_cv_func_towupper" |
| 14441 |
if test "x$ac_cv_func_towupper" = xyes |
| 14442 |
then : |
| 14443 |
printf "%s\n" "#define HAVE_TOWUPPER 1" >>confdefs.h |
| 14444 |
|
| 14445 |
fi |
| 14446 |
ac_fn_c_check_func "$LINENO" "iswupper" "ac_cv_func_iswupper" |
| 14447 |
if test "x$ac_cv_func_iswupper" = xyes |
| 14448 |
then : |
| 14449 |
printf "%s\n" "#define HAVE_ISWUPPER 1" >>confdefs.h |
| 14450 |
|
| 14451 |
fi |
| 14452 |
ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
| 14453 |
if test "x$ac_cv_func_tzset" = xyes |
| 14454 |
then : |
| 14455 |
printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h |
| 14456 |
|
| 14457 |
fi |
| 14458 |
ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" |
| 14459 |
if test "x$ac_cv_func_usleep" = xyes |
| 14460 |
then : |
| 14461 |
printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
| 14462 |
|
| 14463 |
fi |
| 14464 |
ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
| 14465 |
if test "x$ac_cv_func_utime" = xyes |
| 14466 |
then : |
| 14467 |
printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h |
| 14468 |
|
| 14469 |
fi |
| 14470 |
ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 14471 |
if test "x$ac_cv_func_utimes" = xyes |
| 14472 |
then : |
| 14473 |
printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
| 14474 |
|
| 14475 |
fi |
| 14476 |
ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" |
| 14477 |
if test "x$ac_cv_func_mblen" = xyes |
| 14478 |
then : |
| 14479 |
printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h |
| 14480 |
|
| 14481 |
fi |
| 14482 |
ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" |
| 14483 |
if test "x$ac_cv_func_ftruncate" = xyes |
| 14484 |
then : |
| 14485 |
printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h |
| 14486 |
|
| 14487 |
fi |
| 14488 |
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
| 14489 |
if test "x$ac_cv_func_unsetenv" = xyes |
| 14490 |
then : |
| 14491 |
printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
| 14492 |
|
| 14493 |
fi |
| 14494 |
ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" |
| 14495 |
if test "x$ac_cv_func_posix_openpt" = xyes |
| 14496 |
then : |
| 14497 |
printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h |
| 14498 |
|
| 14499 |
fi |
| 14500 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 14501 |
if test "x$ac_cv_func_clock_gettime" = xyes |
| 14502 |
then : |
| 14503 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 14504 |
|
| 14505 |
fi |
| 14506 |
ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" |
| 14507 |
if test "x$ac_cv_func_sync" = xyes |
| 14508 |
then : |
| 14509 |
printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h |
| 14510 |
|
| 14511 |
fi |
| 14512 |
|
| 14513 |
|
| 14514 |
|
| 14515 |
|
| 14516 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| 14517 |
printf %s "checking types of arguments for select... " >&6; } |
| 14518 |
if test ${ac_cv_func_select_args+y} |
| 14519 |
then : |
| 14520 |
printf %s "(cached) " >&6 |
| 14521 |
else case e in #( |
| 14522 |
e) ac_cv_func_select_args='int,int *,struct timeval *' |
| 14523 |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 14524 |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 14525 |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| 14526 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14527 |
/* end confdefs.h. */ |
| 14528 |
$ac_includes_default |
| 14529 |
#ifdef HAVE_SYS_SELECT_H |
| 14530 |
# include <sys/select.h> |
| 14531 |
#endif |
| 14532 |
#ifdef HAVE_SYS_SOCKET_H |
| 14533 |
# include <sys/socket.h> |
| 14534 |
#endif |
| 14535 |
|
| 14536 |
int |
| 14537 |
main (void) |
| 14538 |
{ |
| 14539 |
extern int select ($ac_arg1, |
| 14540 |
$ac_arg234, $ac_arg234, $ac_arg234, |
| 14541 |
$ac_arg5); |
| 14542 |
; |
| 14543 |
return 0; |
| 14544 |
} |
| 14545 |
_ACEOF |
| 14546 |
if ac_fn_c_try_compile "$LINENO" |
| 14547 |
then : |
| 14548 |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| 14549 |
fi |
| 14550 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14551 |
done |
| 14552 |
done |
| 14553 |
done |
| 14554 |
;; |
| 14555 |
esac |
| 14556 |
fi |
| 14557 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| 14558 |
printf "%s\n" "$ac_cv_func_select_args" >&6; } |
| 14559 |
ac_save_IFS=$IFS; IFS=',' |
| 14560 |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 14561 |
IFS=$ac_save_IFS |
| 14562 |
shift |
| 14563 |
|
| 14564 |
printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h |
| 14565 |
|
| 14566 |
|
| 14567 |
printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h |
| 14568 |
|
| 14569 |
|
| 14570 |
printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h |
| 14571 |
|
| 14572 |
rm -rf conftest* |
| 14573 |
|
| 14574 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 |
| 14575 |
printf %s "checking for declarations of fseeko and ftello... " >&6; } |
| 14576 |
if test ${ac_cv_func_fseeko_ftello+y} |
| 14577 |
then : |
| 14578 |
printf %s "(cached) " >&6 |
| 14579 |
else case e in #( |
| 14580 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14581 |
/* end confdefs.h. */ |
| 14582 |
|
| 14583 |
#if defined __hpux && !defined _LARGEFILE_SOURCE |
| 14584 |
# include <limits.h> |
| 14585 |
# if LONG_MAX >> 31 == 0 |
| 14586 |
# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 14587 |
# endif |
| 14588 |
#endif |
| 14589 |
#include <sys/types.h> /* for off_t */ |
| 14590 |
#include <stdio.h> |
| 14591 |
|
| 14592 |
int |
| 14593 |
main (void) |
| 14594 |
{ |
| 14595 |
|
| 14596 |
int (*fp1) (FILE *, off_t, int) = fseeko; |
| 14597 |
off_t (*fp2) (FILE *) = ftello; |
| 14598 |
return fseeko (stdin, 0, 0) |
| 14599 |
&& fp1 (stdin, 0, 0) |
| 14600 |
&& ftello (stdin) >= 0 |
| 14601 |
&& fp2 (stdin) >= 0; |
| 14602 |
|
| 14603 |
; |
| 14604 |
return 0; |
| 14605 |
} |
| 14606 |
_ACEOF |
| 14607 |
if ac_fn_c_try_compile "$LINENO" |
| 14608 |
then : |
| 14609 |
ac_cv_func_fseeko_ftello=yes |
| 14610 |
else case e in #( |
| 14611 |
e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 14612 |
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 14613 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14614 |
/* end confdefs.h. */ |
| 14615 |
|
| 14616 |
#if defined __hpux && !defined _LARGEFILE_SOURCE |
| 14617 |
# include <limits.h> |
| 14618 |
# if LONG_MAX >> 31 == 0 |
| 14619 |
# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 14620 |
# endif |
| 14621 |
#endif |
| 14622 |
#include <sys/types.h> /* for off_t */ |
| 14623 |
#include <stdio.h> |
| 14624 |
|
| 14625 |
int |
| 14626 |
main (void) |
| 14627 |
{ |
| 14628 |
|
| 14629 |
int (*fp1) (FILE *, off_t, int) = fseeko; |
| 14630 |
off_t (*fp2) (FILE *) = ftello; |
| 14631 |
return fseeko (stdin, 0, 0) |
| 14632 |
&& fp1 (stdin, 0, 0) |
| 14633 |
&& ftello (stdin) >= 0 |
| 14634 |
&& fp2 (stdin) >= 0; |
| 14635 |
|
| 14636 |
; |
| 14637 |
return 0; |
| 14638 |
} |
| 14639 |
_ACEOF |
| 14640 |
if ac_fn_c_try_compile "$LINENO" |
| 14641 |
then : |
| 14642 |
ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" |
| 14643 |
else case e in #( |
| 14644 |
e) ac_cv_func_fseeko_ftello=no ;; |
| 14645 |
esac |
| 14646 |
fi |
| 14647 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14648 |
esac |
| 14649 |
fi |
| 14650 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14651 |
esac |
| 14652 |
fi |
| 14653 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 |
| 14654 |
printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } |
| 14655 |
if test "$ac_cv_func_fseeko_ftello" != no |
| 14656 |
then : |
| 14657 |
|
| 14658 |
printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 14659 |
|
| 14660 |
fi |
| 14661 |
if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" |
| 14662 |
then : |
| 14663 |
|
| 14664 |
printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 14665 |
|
| 14666 |
fi |
| 14667 |
|
| 14668 |
|
| 14669 |
# Check whether --enable-largefile was given. |
| 14670 |
if test ${enable_largefile+y} |
| 14671 |
then : |
| 14672 |
enableval=$enable_largefile; |
| 14673 |
fi |
| 14674 |
if test "$enable_largefile,$enable_year2038" != no,no |
| 14675 |
then : |
| 14676 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5 |
| 14677 |
printf %s "checking for $CPPFLAGS option for large files... " >&6; } |
| 14678 |
if test ${ac_cv_sys_largefile_opts+y} |
| 14679 |
then : |
| 14680 |
printf %s "(cached) " >&6 |
| 14681 |
else case e in #( |
| 14682 |
e) ac_save_CPPFLAGS=$CPPFLAGS |
| 14683 |
ac_opt_found=no |
| 14684 |
for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do |
| 14685 |
if test x"$ac_opt" != x"none needed" |
| 14686 |
then : |
| 14687 |
CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 14688 |
fi |
| 14689 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14690 |
/* end confdefs.h. */ |
| 14691 |
#include <sys/types.h> |
| 14692 |
#ifndef FTYPE |
| 14693 |
# define FTYPE off_t |
| 14694 |
#endif |
| 14695 |
/* Check that FTYPE can represent 2**63 - 1 correctly. |
| 14696 |
We can't simply define LARGE_FTYPE to be 9223372036854775807, |
| 14697 |
since some C++ compilers masquerading as C compilers |
| 14698 |
incorrectly reject 9223372036854775807. */ |
| 14699 |
#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) |
| 14700 |
int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 |
| 14701 |
&& LARGE_FTYPE % 2147483647 == 1) |
| 14702 |
? 1 : -1]; |
| 14703 |
int |
| 14704 |
main (void) |
| 14705 |
{ |
| 14706 |
|
| 14707 |
; |
| 14708 |
return 0; |
| 14709 |
} |
| 14710 |
_ACEOF |
| 14711 |
if ac_fn_c_try_compile "$LINENO" |
| 14712 |
then : |
| 14713 |
if test x"$ac_opt" = x"none needed" |
| 14714 |
then : |
| 14715 |
# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. |
| 14716 |
CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t" |
| 14717 |
if ac_fn_c_try_compile "$LINENO" |
| 14718 |
then : |
| 14719 |
|
| 14720 |
else case e in #( |
| 14721 |
e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" |
| 14722 |
if ac_fn_c_try_compile "$LINENO" |
| 14723 |
then : |
| 14724 |
ac_opt='-D_FILE_OFFSET_BITS=64' |
| 14725 |
fi |
| 14726 |
rm -f core conftest.err conftest.$ac_objext conftest.beam ;; |
| 14727 |
esac |
| 14728 |
fi |
| 14729 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 14730 |
fi |
| 14731 |
ac_cv_sys_largefile_opts=$ac_opt |
| 14732 |
ac_opt_found=yes |
| 14733 |
fi |
| 14734 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14735 |
test $ac_opt_found = no || break |
| 14736 |
done |
| 14737 |
CPPFLAGS=$ac_save_CPPFLAGS |
| 14738 |
|
| 14739 |
test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; |
| 14740 |
esac |
| 14741 |
fi |
| 14742 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 |
| 14743 |
printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } |
| 14744 |
|
| 14745 |
ac_have_largefile=yes |
| 14746 |
case $ac_cv_sys_largefile_opts in #( |
| 14747 |
"none needed") : |
| 14748 |
;; #( |
| 14749 |
"supported through gnulib") : |
| 14750 |
;; #( |
| 14751 |
"support not detected") : |
| 14752 |
ac_have_largefile=no ;; #( |
| 14753 |
"-D_FILE_OFFSET_BITS=64") : |
| 14754 |
|
| 14755 |
printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 14756 |
;; #( |
| 14757 |
"-D_LARGE_FILES=1") : |
| 14758 |
|
| 14759 |
printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
| 14760 |
;; #( |
| 14761 |
*) : |
| 14762 |
as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; |
| 14763 |
esac |
| 14764 |
|
| 14765 |
if test "$enable_year2038" != no |
| 14766 |
then : |
| 14767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5 |
| 14768 |
printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; } |
| 14769 |
if test ${ac_cv_sys_year2038_opts+y} |
| 14770 |
then : |
| 14771 |
printf %s "(cached) " >&6 |
| 14772 |
else case e in #( |
| 14773 |
e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 14774 |
ac_opt_found=no |
| 14775 |
for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do |
| 14776 |
if test x"$ac_opt" != x"none needed" |
| 14777 |
then : |
| 14778 |
CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 14779 |
fi |
| 14780 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14781 |
/* end confdefs.h. */ |
| 14782 |
|
| 14783 |
#include <time.h> |
| 14784 |
/* Check that time_t can represent 2**32 - 1 correctly. */ |
| 14785 |
#define LARGE_TIME_T \\ |
| 14786 |
((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 14787 |
int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 14788 |
&& LARGE_TIME_T % 65537 == 0) |
| 14789 |
? 1 : -1]; |
| 14790 |
|
| 14791 |
int |
| 14792 |
main (void) |
| 14793 |
{ |
| 14794 |
|
| 14795 |
; |
| 14796 |
return 0; |
| 14797 |
} |
| 14798 |
_ACEOF |
| 14799 |
if ac_fn_c_try_compile "$LINENO" |
| 14800 |
then : |
| 14801 |
ac_cv_sys_year2038_opts="$ac_opt" |
| 14802 |
ac_opt_found=yes |
| 14803 |
fi |
| 14804 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14805 |
test $ac_opt_found = no || break |
| 14806 |
done |
| 14807 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 14808 |
test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; |
| 14809 |
esac |
| 14810 |
fi |
| 14811 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 |
| 14812 |
printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } |
| 14813 |
|
| 14814 |
ac_have_year2038=yes |
| 14815 |
case $ac_cv_sys_year2038_opts in #( |
| 14816 |
"none needed") : |
| 14817 |
;; #( |
| 14818 |
"support not detected") : |
| 14819 |
ac_have_year2038=no ;; #( |
| 14820 |
"-D_TIME_BITS=64") : |
| 14821 |
|
| 14822 |
printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 14823 |
;; #( |
| 14824 |
"-D__MINGW_USE_VC2005_COMPAT") : |
| 14825 |
|
| 14826 |
printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 14827 |
;; #( |
| 14828 |
"-U_USE_32_BIT_TIME_T"*) : |
| 14829 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 14830 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 14831 |
as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It |
| 14832 |
will stop working after mid-January 2038. Remove |
| 14833 |
_USE_32BIT_TIME_T from the compiler flags. |
| 14834 |
See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 14835 |
*) : |
| 14836 |
as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; |
| 14837 |
esac |
| 14838 |
|
| 14839 |
fi |
| 14840 |
|
| 14841 |
fi |
| 14842 |
|
| 14843 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5 |
| 14844 |
printf %s "checking --enable-canberra argument... " >&6; } |
| 14845 |
# Check whether --enable-canberra was given. |
| 14846 |
if test ${enable_canberra+y} |
| 14847 |
then : |
| 14848 |
enableval=$enable_canberra; |
| 14849 |
else case e in #( |
| 14850 |
e) enable_canberra="maybe" ;; |
| 14851 |
esac |
| 14852 |
fi |
| 14853 |
|
| 14854 |
|
| 14855 |
if test "$enable_canberra" = "maybe"; then |
| 14856 |
if test "$features" = "huge"; then |
| 14857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 |
| 14858 |
printf "%s\n" "Defaulting to yes" >&6; } |
| 14859 |
enable_canberra="yes" |
| 14860 |
else |
| 14861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 |
| 14862 |
printf "%s\n" "Defaulting to no" >&6; } |
| 14863 |
enable_canberra="no" |
| 14864 |
fi |
| 14865 |
else |
| 14866 |
if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then |
| 14867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use sound with tiny features" >&5 |
| 14868 |
printf "%s\n" "cannot use sound with tiny features" >&6; } |
| 14869 |
enable_canberra="no" |
| 14870 |
else |
| 14871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 |
| 14872 |
printf "%s\n" "$enable_canberra" >&6; } |
| 14873 |
fi |
| 14874 |
fi |
| 14875 |
if test "$enable_canberra" = "yes"; then |
| 14876 |
if test "x$PKG_CONFIG" != "xno"; then |
| 14877 |
canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null` |
| 14878 |
canberra_cppflags=`$PKG_CONFIG --cflags-only-I libcanberra 2>/dev/null` |
| 14879 |
canberra_cflags=`$PKG_CONFIG --cflags-only-other libcanberra 2>/dev/null` |
| 14880 |
fi |
| 14881 |
if test "x$canberra_lib" = "x"; then |
| 14882 |
canberra_lib=-lcanberra |
| 14883 |
canberra_cppflags=-D_REENTRANT |
| 14884 |
canberra_cflags=-D_REENTRANT |
| 14885 |
fi |
| 14886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5 |
| 14887 |
printf %s "checking for libcanberra... " >&6; } |
| 14888 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 14889 |
ac_save_CFLAGS="$CFLAGS" |
| 14890 |
ac_save_LIBS="$LIBS" |
| 14891 |
if `echo "$CPPFLAGS" | grep -v "$canberra_cppflags" 2>/dev/null`; then |
| 14892 |
CPPFLAGS="$CPPFLAGS $canberra_cflags" |
| 14893 |
fi |
| 14894 |
if `echo "$CFLAGS" | grep -v "$canberra_cflags" 2>/dev/null`; then |
| 14895 |
CFLAGS="$CFLAGS $canberra_cflags" |
| 14896 |
fi |
| 14897 |
LIBS="$LIBS $canberra_lib" |
| 14898 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14899 |
/* end confdefs.h. */ |
| 14900 |
|
| 14901 |
# include <canberra.h> |
| 14902 |
|
| 14903 |
int |
| 14904 |
main (void) |
| 14905 |
{ |
| 14906 |
|
| 14907 |
ca_context *hello; |
| 14908 |
ca_context_create(&hello); |
| 14909 |
; |
| 14910 |
return 0; |
| 14911 |
} |
| 14912 |
_ACEOF |
| 14913 |
if ac_fn_c_try_link "$LINENO" |
| 14914 |
then : |
| 14915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14916 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_CANBERRA 1" >>confdefs.h |
| 14917 |
|
| 14918 |
else case e in #( |
| 14919 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5 |
| 14920 |
printf "%s\n" "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" ;; |
| 14921 |
esac |
| 14922 |
fi |
| 14923 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14924 |
conftest$ac_exeext conftest.$ac_ext |
| 14925 |
fi |
| 14926 |
|
| 14927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-libsodium argument" >&5 |
| 14928 |
printf %s "checking --enable-libsodium argument... " >&6; } |
| 14929 |
# Check whether --enable-libsodium was given. |
| 14930 |
if test ${enable_libsodium+y} |
| 14931 |
then : |
| 14932 |
enableval=$enable_libsodium; |
| 14933 |
else case e in #( |
| 14934 |
e) enable_libsodium="maybe" ;; |
| 14935 |
esac |
| 14936 |
fi |
| 14937 |
|
| 14938 |
|
| 14939 |
if test "$enable_libsodium" = "maybe"; then |
| 14940 |
if test "$features" = "huge"; then |
| 14941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 |
| 14942 |
printf "%s\n" "Defaulting to yes" >&6; } |
| 14943 |
enable_libsodium="yes" |
| 14944 |
else |
| 14945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 |
| 14946 |
printf "%s\n" "Defaulting to no" >&6; } |
| 14947 |
enable_libsodium="no" |
| 14948 |
fi |
| 14949 |
else |
| 14950 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libsodium" >&5 |
| 14951 |
printf "%s\n" "$enable_libsodium" >&6; } |
| 14952 |
fi |
| 14953 |
if test "$enable_libsodium" = "yes"; then |
| 14954 |
if test "x$PKG_CONFIG" != "xno"; then |
| 14955 |
libsodium_lib=`$PKG_CONFIG --libs libsodium 2>/dev/null` |
| 14956 |
libsodium_cppflags=`$PKG_CONFIG --cflags-only-I libsodium 2>/dev/null` |
| 14957 |
libsodium_cflags=`$PKG_CONFIG --cflags-only-other libsodium 2>/dev/null` |
| 14958 |
fi |
| 14959 |
if test "x$libsodium_lib" = "x"; then |
| 14960 |
libsodium_lib=-lsodium |
| 14961 |
libsodium_cppflags= |
| 14962 |
libsodium_cflags= |
| 14963 |
fi |
| 14964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsodium" >&5 |
| 14965 |
printf %s "checking for libsodium... " >&6; } |
| 14966 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 14967 |
ac_save_CFLAGS="$CFLAGS" |
| 14968 |
ac_save_LIBS="$LIBS" |
| 14969 |
CPPFLAGS="$CPPFLAGS $libsodium_cppflags" |
| 14970 |
CFLAGS="$CFLAGS $libsodium_cflags" |
| 14971 |
LIBS="$LIBS $libsodium_lib" |
| 14972 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14973 |
/* end confdefs.h. */ |
| 14974 |
|
| 14975 |
# include <sodium.h> |
| 14976 |
|
| 14977 |
int |
| 14978 |
main (void) |
| 14979 |
{ |
| 14980 |
|
| 14981 |
printf("%d", sodium_init()); |
| 14982 |
; |
| 14983 |
return 0; |
| 14984 |
} |
| 14985 |
_ACEOF |
| 14986 |
if ac_fn_c_try_link "$LINENO" |
| 14987 |
then : |
| 14988 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14989 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SODIUM 1" >>confdefs.h |
| 14990 |
|
| 14991 |
else case e in #( |
| 14992 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; try installing libsodium-dev" >&5 |
| 14993 |
printf "%s\n" "no; try installing libsodium-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"; CPPFLAGS="$ac_save_CPPFLAGS" ;; |
| 14994 |
esac |
| 14995 |
fi |
| 14996 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14997 |
conftest$ac_exeext conftest.$ac_ext |
| 14998 |
fi |
| 14999 |
|
| 15000 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 |
| 15001 |
printf %s "checking for st_blksize... " >&6; } |
| 15002 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15003 |
/* end confdefs.h. */ |
| 15004 |
#include <sys/types.h> |
| 15005 |
#include <sys/stat.h> |
| 15006 |
int |
| 15007 |
main (void) |
| 15008 |
{ |
| 15009 |
struct stat st; |
| 15010 |
int n; |
| 15011 |
|
| 15012 |
stat("/", &st); |
| 15013 |
n = (int)st.st_blksize; |
| 15014 |
; |
| 15015 |
return 0; |
| 15016 |
} |
| 15017 |
_ACEOF |
| 15018 |
if ac_fn_c_try_compile "$LINENO" |
| 15019 |
then : |
| 15020 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15021 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ST_BLKSIZE 1" >>confdefs.h |
| 15022 |
|
| 15023 |
else case e in #( |
| 15024 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15025 |
printf "%s\n" "no" >&6; } ;; |
| 15026 |
esac |
| 15027 |
fi |
| 15028 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15029 |
|
| 15030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create without -lrt" >&5 |
| 15031 |
printf %s "checking for timer_create without -lrt... " >&6; } |
| 15032 |
if test ${vim_cv_timer_create+y} |
| 15033 |
then : |
| 15034 |
printf %s "(cached) " >&6 |
| 15035 |
else case e in #( |
| 15036 |
e) |
| 15037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15038 |
/* end confdefs.h. */ |
| 15039 |
|
| 15040 |
#include <time.h> |
| 15041 |
|
| 15042 |
int |
| 15043 |
main (void) |
| 15044 |
{ |
| 15045 |
|
| 15046 |
timer_create(CLOCK_MONOTONIC, NULL, NULL); |
| 15047 |
|
| 15048 |
; |
| 15049 |
return 0; |
| 15050 |
} |
| 15051 |
_ACEOF |
| 15052 |
if ac_fn_c_try_compile "$LINENO" |
| 15053 |
then : |
| 15054 |
vim_cv_timer_create=yes |
| 15055 |
else case e in #( |
| 15056 |
e) vim_cv_timer_create=no |
| 15057 |
;; |
| 15058 |
esac |
| 15059 |
fi |
| 15060 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15061 |
esac |
| 15062 |
fi |
| 15063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create" >&5 |
| 15064 |
printf "%s\n" "$vim_cv_timer_create" >&6; } |
| 15065 |
|
| 15066 |
if test "x$vim_cv_timer_create" = "xno" ; then |
| 15067 |
save_LIBS="$LIBS" |
| 15068 |
LIBS="$LIBS -lrt" |
| 15069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create with -lrt" >&5 |
| 15070 |
printf %s "checking for timer_create with -lrt... " >&6; } |
| 15071 |
if test ${vim_cv_timer_create_with_lrt+y} |
| 15072 |
then : |
| 15073 |
printf %s "(cached) " >&6 |
| 15074 |
else case e in #( |
| 15075 |
e) |
| 15076 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15077 |
/* end confdefs.h. */ |
| 15078 |
|
| 15079 |
#include <time.h> |
| 15080 |
|
| 15081 |
int |
| 15082 |
main (void) |
| 15083 |
{ |
| 15084 |
|
| 15085 |
timer_create(CLOCK_MONOTONIC, NULL, NULL); |
| 15086 |
|
| 15087 |
; |
| 15088 |
return 0; |
| 15089 |
} |
| 15090 |
_ACEOF |
| 15091 |
if ac_fn_c_try_compile "$LINENO" |
| 15092 |
then : |
| 15093 |
vim_cv_timer_create_with_lrt=yes |
| 15094 |
else case e in #( |
| 15095 |
e) vim_cv_timer_create_with_lrt=no |
| 15096 |
;; |
| 15097 |
esac |
| 15098 |
fi |
| 15099 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15100 |
esac |
| 15101 |
fi |
| 15102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create_with_lrt" >&5 |
| 15103 |
printf "%s\n" "$vim_cv_timer_create_with_lrt" >&6; } |
| 15104 |
LIBS="$save_LIBS" |
| 15105 |
else |
| 15106 |
vim_cv_timer_create_with_lrt=no |
| 15107 |
fi |
| 15108 |
|
| 15109 |
if test "x$vim_cv_timer_create" = "xyes" || |
| 15110 |
test "x$vim_cv_timer_create_with_lrt" = "xyes"; then |
| 15111 |
save_LIBS="$LIBS" |
| 15112 |
if test "x$vim_cv_timer_create_with_lrt" = "xyes" ; then |
| 15113 |
LIBS="$LIBS -lrt" |
| 15114 |
fi |
| 15115 |
|
| 15116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if timer_create works" >&5 |
| 15117 |
printf %s "checking if timer_create works... " >&6; } |
| 15118 |
if test ${vim_cv_timer_create_works+y} |
| 15119 |
then : |
| 15120 |
printf %s "(cached) " >&6 |
| 15121 |
else case e in #( |
| 15122 |
e) |
| 15123 |
if test "$cross_compiling" = yes |
| 15124 |
then : |
| 15125 |
vim_cv_timer_create_works=yes |
| 15126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_timer_create_works'" >&5 |
| 15127 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_timer_create_works'" >&2;} |
| 15128 |
|
| 15129 |
else case e in #( |
| 15130 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15131 |
/* end confdefs.h. */ |
| 15132 |
|
| 15133 |
#if STDC_HEADERS |
| 15134 |
# include <stdlib.h> |
| 15135 |
# include <stddef.h> |
| 15136 |
#endif |
| 15137 |
#include <signal.h> |
| 15138 |
#include <time.h> |
| 15139 |
static void set_flag(union sigval sv) {} |
| 15140 |
|
| 15141 |
int |
| 15142 |
main (void) |
| 15143 |
{ |
| 15144 |
|
| 15145 |
struct timespec ts; |
| 15146 |
struct sigevent action = {0}; |
| 15147 |
timer_t timer_id; |
| 15148 |
|
| 15149 |
action.sigev_notify = SIGEV_THREAD; |
| 15150 |
action.sigev_notify_function = set_flag; |
| 15151 |
if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) |
| 15152 |
exit(1); // cannot create a monotonic timer |
| 15153 |
|
| 15154 |
; |
| 15155 |
return 0; |
| 15156 |
} |
| 15157 |
_ACEOF |
| 15158 |
if ac_fn_c_try_run "$LINENO" |
| 15159 |
then : |
| 15160 |
vim_cv_timer_create_works=yes |
| 15161 |
else case e in #( |
| 15162 |
e) vim_cv_timer_create_works=no ;; |
| 15163 |
esac |
| 15164 |
fi |
| 15165 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15166 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15167 |
esac |
| 15168 |
fi |
| 15169 |
;; |
| 15170 |
esac |
| 15171 |
fi |
| 15172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create_works" >&5 |
| 15173 |
printf "%s\n" "$vim_cv_timer_create_works" >&6; } |
| 15174 |
|
| 15175 |
if test "x$vim_cv_timer_create_works" = "xyes" ; then |
| 15176 |
printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
| 15177 |
|
| 15178 |
else |
| 15179 |
LIBS="$save_LIBS" |
| 15180 |
fi |
| 15181 |
fi |
| 15182 |
|
| 15183 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 |
| 15184 |
printf %s "checking whether stat() ignores a trailing slash... " >&6; } |
| 15185 |
if test ${vim_cv_stat_ignores_slash+y} |
| 15186 |
then : |
| 15187 |
printf %s "(cached) " >&6 |
| 15188 |
else case e in #( |
| 15189 |
e) |
| 15190 |
if test "$cross_compiling" = yes |
| 15191 |
then : |
| 15192 |
|
| 15193 |
vim_cv_stat_ignores_slash=yes |
| 15194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_stat_ignores_slash'" >&5 |
| 15195 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_stat_ignores_slash'" >&2;} |
| 15196 |
|
| 15197 |
else case e in #( |
| 15198 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15199 |
/* end confdefs.h. */ |
| 15200 |
|
| 15201 |
#include "confdefs.h" |
| 15202 |
#if STDC_HEADERS |
| 15203 |
# include <stdlib.h> |
| 15204 |
# include <stddef.h> |
| 15205 |
#endif |
| 15206 |
#include <sys/types.h> |
| 15207 |
#include <sys/stat.h> |
| 15208 |
int main() {struct stat st; exit(stat("configure/", &st) != 0); } |
| 15209 |
|
| 15210 |
_ACEOF |
| 15211 |
if ac_fn_c_try_run "$LINENO" |
| 15212 |
then : |
| 15213 |
|
| 15214 |
vim_cv_stat_ignores_slash=yes |
| 15215 |
|
| 15216 |
else case e in #( |
| 15217 |
e) |
| 15218 |
vim_cv_stat_ignores_slash=no |
| 15219 |
;; |
| 15220 |
esac |
| 15221 |
fi |
| 15222 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15223 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 15224 |
esac |
| 15225 |
fi |
| 15226 |
|
| 15227 |
;; |
| 15228 |
esac |
| 15229 |
fi |
| 15230 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 |
| 15231 |
printf "%s\n" "$vim_cv_stat_ignores_slash" >&6; } |
| 15232 |
|
| 15233 |
if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 15234 |
printf "%s\n" "#define STAT_IGNORES_SLASH 1" >>confdefs.h |
| 15235 |
|
| 15236 |
fi |
| 15237 |
|
| 15238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5 |
| 15239 |
printf %s "checking for nanoseconds field of struct stat... " >&6; } |
| 15240 |
if test ${ac_cv_struct_st_mtim_nsec+y} |
| 15241 |
then : |
| 15242 |
printf %s "(cached) " >&6 |
| 15243 |
else case e in #( |
| 15244 |
e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 15245 |
ac_cv_struct_st_mtim_nsec=no |
| 15246 |
# st_mtim.tv_nsec -- the usual case |
| 15247 |
# st_mtim._tv_nsec -- Solaris 2.6, if |
| 15248 |
# (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 |
| 15249 |
# && !defined __EXTENSIONS__) |
| 15250 |
# st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2 |
| 15251 |
# st_mtime_n -- AIX 5.2 and above |
| 15252 |
# st_mtimespec.tv_nsec -- Darwin (Mac OSX) |
| 15253 |
for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do |
| 15254 |
CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" |
| 15255 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15256 |
/* end confdefs.h. */ |
| 15257 |
#include <sys/types.h> |
| 15258 |
#include <sys/stat.h> |
| 15259 |
int |
| 15260 |
main (void) |
| 15261 |
{ |
| 15262 |
struct stat s; s.ST_MTIM_NSEC; |
| 15263 |
; |
| 15264 |
return 0; |
| 15265 |
} |
| 15266 |
_ACEOF |
| 15267 |
if ac_fn_c_try_compile "$LINENO" |
| 15268 |
then : |
| 15269 |
ac_cv_struct_st_mtim_nsec=$ac_val; break |
| 15270 |
fi |
| 15271 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15272 |
done |
| 15273 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 15274 |
;; |
| 15275 |
esac |
| 15276 |
fi |
| 15277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5 |
| 15278 |
printf "%s\n" "$ac_cv_struct_st_mtim_nsec" >&6; } |
| 15279 |
if test $ac_cv_struct_st_mtim_nsec != no; then |
| 15280 |
|
| 15281 |
printf "%s\n" "#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec" >>confdefs.h |
| 15282 |
|
| 15283 |
fi |
| 15284 |
|
| 15285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 |
| 15286 |
printf %s "checking for iconv_open()... " >&6; } |
| 15287 |
save_LIBS="$LIBS" |
| 15288 |
LIBS="$LIBS -liconv" |
| 15289 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15290 |
/* end confdefs.h. */ |
| 15291 |
|
| 15292 |
#ifdef HAVE_ICONV_H |
| 15293 |
# include <iconv.h> |
| 15294 |
#endif |
| 15295 |
|
| 15296 |
int |
| 15297 |
main (void) |
| 15298 |
{ |
| 15299 |
iconv_open("fr", "to"); |
| 15300 |
; |
| 15301 |
return 0; |
| 15302 |
} |
| 15303 |
_ACEOF |
| 15304 |
if ac_fn_c_try_link "$LINENO" |
| 15305 |
then : |
| 15306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 |
| 15307 |
printf "%s\n" "yes; with -liconv" >&6; }; printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 15308 |
|
| 15309 |
else case e in #( |
| 15310 |
e) LIBS="$save_LIBS" |
| 15311 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15312 |
/* end confdefs.h. */ |
| 15313 |
|
| 15314 |
#ifdef HAVE_ICONV_H |
| 15315 |
# include <iconv.h> |
| 15316 |
#endif |
| 15317 |
|
| 15318 |
int |
| 15319 |
main (void) |
| 15320 |
{ |
| 15321 |
iconv_open("fr", "to"); |
| 15322 |
; |
| 15323 |
return 0; |
| 15324 |
} |
| 15325 |
_ACEOF |
| 15326 |
if ac_fn_c_try_link "$LINENO" |
| 15327 |
then : |
| 15328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15329 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 15330 |
|
| 15331 |
else case e in #( |
| 15332 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15333 |
printf "%s\n" "no" >&6; } ;; |
| 15334 |
esac |
| 15335 |
fi |
| 15336 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15337 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 15338 |
esac |
| 15339 |
fi |
| 15340 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15341 |
conftest$ac_exeext conftest.$ac_ext |
| 15342 |
|
| 15343 |
|
| 15344 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 |
| 15345 |
printf %s "checking for nl_langinfo(CODESET)... " >&6; } |
| 15346 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15347 |
/* end confdefs.h. */ |
| 15348 |
|
| 15349 |
#ifdef HAVE_LANGINFO_H |
| 15350 |
# include <langinfo.h> |
| 15351 |
#endif |
| 15352 |
|
| 15353 |
int |
| 15354 |
main (void) |
| 15355 |
{ |
| 15356 |
char *cs = nl_langinfo(CODESET); |
| 15357 |
; |
| 15358 |
return 0; |
| 15359 |
} |
| 15360 |
_ACEOF |
| 15361 |
if ac_fn_c_try_link "$LINENO" |
| 15362 |
then : |
| 15363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15364 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h |
| 15365 |
|
| 15366 |
else case e in #( |
| 15367 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15368 |
printf "%s\n" "no" >&6; } ;; |
| 15369 |
esac |
| 15370 |
fi |
| 15371 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15372 |
conftest$ac_exeext conftest.$ac_ext |
| 15373 |
|
| 15374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 |
| 15375 |
printf %s "checking for strtod in -lm... " >&6; } |
| 15376 |
if test ${ac_cv_lib_m_strtod+y} |
| 15377 |
then : |
| 15378 |
printf %s "(cached) " >&6 |
| 15379 |
else case e in #( |
| 15380 |
e) ac_check_lib_save_LIBS=$LIBS |
| 15381 |
LIBS="-lm $LIBS" |
| 15382 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15383 |
/* end confdefs.h. */ |
| 15384 |
|
| 15385 |
/* Override any GCC internal prototype to avoid an error. |
| 15386 |
Use char because int might match the return type of a GCC |
| 15387 |
builtin and then its argument prototype would still apply. |
| 15388 |
The 'extern "C"' is for builds by C++ compilers; |
| 15389 |
although this is not generally supported in C code supporting it here |
| 15390 |
has little cost and some practical benefit (sr 110532). */ |
| 15391 |
#ifdef __cplusplus |
| 15392 |
extern "C" |
| 15393 |
#endif |
| 15394 |
char strtod (void); |
| 15395 |
int |
| 15396 |
main (void) |
| 15397 |
{ |
| 15398 |
return strtod (); |
| 15399 |
; |
| 15400 |
return 0; |
| 15401 |
} |
| 15402 |
_ACEOF |
| 15403 |
if ac_fn_c_try_link "$LINENO" |
| 15404 |
then : |
| 15405 |
ac_cv_lib_m_strtod=yes |
| 15406 |
else case e in #( |
| 15407 |
e) ac_cv_lib_m_strtod=no ;; |
| 15408 |
esac |
| 15409 |
fi |
| 15410 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15411 |
conftest$ac_exeext conftest.$ac_ext |
| 15412 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 15413 |
esac |
| 15414 |
fi |
| 15415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 |
| 15416 |
printf "%s\n" "$ac_cv_lib_m_strtod" >&6; } |
| 15417 |
if test "x$ac_cv_lib_m_strtod" = xyes |
| 15418 |
then : |
| 15419 |
printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h |
| 15420 |
|
| 15421 |
LIBS="-lm $LIBS" |
| 15422 |
|
| 15423 |
fi |
| 15424 |
|
| 15425 |
|
| 15426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 |
| 15427 |
printf %s "checking for isinf()... " >&6; } |
| 15428 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15429 |
/* end confdefs.h. */ |
| 15430 |
|
| 15431 |
#ifdef HAVE_MATH_H |
| 15432 |
# include <math.h> |
| 15433 |
#endif |
| 15434 |
#if STDC_HEADERS |
| 15435 |
# include <stdlib.h> |
| 15436 |
# include <stddef.h> |
| 15437 |
#endif |
| 15438 |
|
| 15439 |
int |
| 15440 |
main (void) |
| 15441 |
{ |
| 15442 |
int r = isinf(1.11); |
| 15443 |
; |
| 15444 |
return 0; |
| 15445 |
} |
| 15446 |
_ACEOF |
| 15447 |
if ac_fn_c_try_link "$LINENO" |
| 15448 |
then : |
| 15449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15450 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h |
| 15451 |
|
| 15452 |
else case e in #( |
| 15453 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15454 |
printf "%s\n" "no" >&6; } ;; |
| 15455 |
esac |
| 15456 |
fi |
| 15457 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15458 |
conftest$ac_exeext conftest.$ac_ext |
| 15459 |
|
| 15460 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 |
| 15461 |
printf %s "checking for isnan()... " >&6; } |
| 15462 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15463 |
/* end confdefs.h. */ |
| 15464 |
|
| 15465 |
#ifdef HAVE_MATH_H |
| 15466 |
# include <math.h> |
| 15467 |
#endif |
| 15468 |
#if STDC_HEADERS |
| 15469 |
# include <stdlib.h> |
| 15470 |
# include <stddef.h> |
| 15471 |
#endif |
| 15472 |
|
| 15473 |
int |
| 15474 |
main (void) |
| 15475 |
{ |
| 15476 |
int r = isnan(1.11); |
| 15477 |
; |
| 15478 |
return 0; |
| 15479 |
} |
| 15480 |
_ACEOF |
| 15481 |
if ac_fn_c_try_link "$LINENO" |
| 15482 |
then : |
| 15483 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15484 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h |
| 15485 |
|
| 15486 |
else case e in #( |
| 15487 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15488 |
printf "%s\n" "no" >&6; } ;; |
| 15489 |
esac |
| 15490 |
fi |
| 15491 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15492 |
conftest$ac_exeext conftest.$ac_ext |
| 15493 |
|
| 15494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 |
| 15495 |
printf %s "checking --disable-acl argument... " >&6; } |
| 15496 |
# Check whether --enable-acl was given. |
| 15497 |
if test ${enable_acl+y} |
| 15498 |
then : |
| 15499 |
enableval=$enable_acl; |
| 15500 |
else case e in #( |
| 15501 |
e) enable_acl="yes" ;; |
| 15502 |
esac |
| 15503 |
fi |
| 15504 |
|
| 15505 |
if test "$enable_acl" = "yes"; then |
| 15506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15507 |
printf "%s\n" "no" >&6; } |
| 15508 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 |
| 15509 |
printf %s "checking for acl_get_file in -lposix1e... " >&6; } |
| 15510 |
if test ${ac_cv_lib_posix1e_acl_get_file+y} |
| 15511 |
then : |
| 15512 |
printf %s "(cached) " >&6 |
| 15513 |
else case e in #( |
| 15514 |
e) ac_check_lib_save_LIBS=$LIBS |
| 15515 |
LIBS="-lposix1e $LIBS" |
| 15516 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15517 |
/* end confdefs.h. */ |
| 15518 |
|
| 15519 |
/* Override any GCC internal prototype to avoid an error. |
| 15520 |
Use char because int might match the return type of a GCC |
| 15521 |
builtin and then its argument prototype would still apply. |
| 15522 |
The 'extern "C"' is for builds by C++ compilers; |
| 15523 |
although this is not generally supported in C code supporting it here |
| 15524 |
has little cost and some practical benefit (sr 110532). */ |
| 15525 |
#ifdef __cplusplus |
| 15526 |
extern "C" |
| 15527 |
#endif |
| 15528 |
char acl_get_file (void); |
| 15529 |
int |
| 15530 |
main (void) |
| 15531 |
{ |
| 15532 |
return acl_get_file (); |
| 15533 |
; |
| 15534 |
return 0; |
| 15535 |
} |
| 15536 |
_ACEOF |
| 15537 |
if ac_fn_c_try_link "$LINENO" |
| 15538 |
then : |
| 15539 |
ac_cv_lib_posix1e_acl_get_file=yes |
| 15540 |
else case e in #( |
| 15541 |
e) ac_cv_lib_posix1e_acl_get_file=no ;; |
| 15542 |
esac |
| 15543 |
fi |
| 15544 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15545 |
conftest$ac_exeext conftest.$ac_ext |
| 15546 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 15547 |
esac |
| 15548 |
fi |
| 15549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 15550 |
printf "%s\n" "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
| 15551 |
if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes |
| 15552 |
then : |
| 15553 |
LIBS="$LIBS -lposix1e" |
| 15554 |
else case e in #( |
| 15555 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 |
| 15556 |
printf %s "checking for acl_get_file in -lacl... " >&6; } |
| 15557 |
if test ${ac_cv_lib_acl_acl_get_file+y} |
| 15558 |
then : |
| 15559 |
printf %s "(cached) " >&6 |
| 15560 |
else case e in #( |
| 15561 |
e) ac_check_lib_save_LIBS=$LIBS |
| 15562 |
LIBS="-lacl $LIBS" |
| 15563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15564 |
/* end confdefs.h. */ |
| 15565 |
|
| 15566 |
/* Override any GCC internal prototype to avoid an error. |
| 15567 |
Use char because int might match the return type of a GCC |
| 15568 |
builtin and then its argument prototype would still apply. |
| 15569 |
The 'extern "C"' is for builds by C++ compilers; |
| 15570 |
although this is not generally supported in C code supporting it here |
| 15571 |
has little cost and some practical benefit (sr 110532). */ |
| 15572 |
#ifdef __cplusplus |
| 15573 |
extern "C" |
| 15574 |
#endif |
| 15575 |
char acl_get_file (void); |
| 15576 |
int |
| 15577 |
main (void) |
| 15578 |
{ |
| 15579 |
return acl_get_file (); |
| 15580 |
; |
| 15581 |
return 0; |
| 15582 |
} |
| 15583 |
_ACEOF |
| 15584 |
if ac_fn_c_try_link "$LINENO" |
| 15585 |
then : |
| 15586 |
ac_cv_lib_acl_acl_get_file=yes |
| 15587 |
else case e in #( |
| 15588 |
e) ac_cv_lib_acl_acl_get_file=no ;; |
| 15589 |
esac |
| 15590 |
fi |
| 15591 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15592 |
conftest$ac_exeext conftest.$ac_ext |
| 15593 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 15594 |
esac |
| 15595 |
fi |
| 15596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 15597 |
printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; } |
| 15598 |
if test "x$ac_cv_lib_acl_acl_get_file" = xyes |
| 15599 |
then : |
| 15600 |
LIBS="$LIBS -lacl" |
| 15601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 |
| 15602 |
printf %s "checking for fgetxattr in -lattr... " >&6; } |
| 15603 |
if test ${ac_cv_lib_attr_fgetxattr+y} |
| 15604 |
then : |
| 15605 |
printf %s "(cached) " >&6 |
| 15606 |
else case e in #( |
| 15607 |
e) ac_check_lib_save_LIBS=$LIBS |
| 15608 |
LIBS="-lattr $LIBS" |
| 15609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15610 |
/* end confdefs.h. */ |
| 15611 |
|
| 15612 |
/* Override any GCC internal prototype to avoid an error. |
| 15613 |
Use char because int might match the return type of a GCC |
| 15614 |
builtin and then its argument prototype would still apply. |
| 15615 |
The 'extern "C"' is for builds by C++ compilers; |
| 15616 |
although this is not generally supported in C code supporting it here |
| 15617 |
has little cost and some practical benefit (sr 110532). */ |
| 15618 |
#ifdef __cplusplus |
| 15619 |
extern "C" |
| 15620 |
#endif |
| 15621 |
char fgetxattr (void); |
| 15622 |
int |
| 15623 |
main (void) |
| 15624 |
{ |
| 15625 |
return fgetxattr (); |
| 15626 |
; |
| 15627 |
return 0; |
| 15628 |
} |
| 15629 |
_ACEOF |
| 15630 |
if ac_fn_c_try_link "$LINENO" |
| 15631 |
then : |
| 15632 |
ac_cv_lib_attr_fgetxattr=yes |
| 15633 |
else case e in #( |
| 15634 |
e) ac_cv_lib_attr_fgetxattr=no ;; |
| 15635 |
esac |
| 15636 |
fi |
| 15637 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15638 |
conftest$ac_exeext conftest.$ac_ext |
| 15639 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 15640 |
esac |
| 15641 |
fi |
| 15642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 15643 |
printf "%s\n" "$ac_cv_lib_attr_fgetxattr" >&6; } |
| 15644 |
if test "x$ac_cv_lib_attr_fgetxattr" = xyes |
| 15645 |
then : |
| 15646 |
LIBS="$LIBS -lattr" |
| 15647 |
fi |
| 15648 |
|
| 15649 |
fi |
| 15650 |
;; |
| 15651 |
esac |
| 15652 |
fi |
| 15653 |
|
| 15654 |
|
| 15655 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 |
| 15656 |
printf %s "checking for POSIX ACL support... " >&6; } |
| 15657 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15658 |
/* end confdefs.h. */ |
| 15659 |
|
| 15660 |
#include <sys/types.h> |
| 15661 |
#ifdef HAVE_SYS_ACL_H |
| 15662 |
# include <sys/acl.h> |
| 15663 |
#endif |
| 15664 |
acl_t acl; |
| 15665 |
int |
| 15666 |
main (void) |
| 15667 |
{ |
| 15668 |
acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 15669 |
acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 15670 |
acl_free(acl); |
| 15671 |
; |
| 15672 |
return 0; |
| 15673 |
} |
| 15674 |
_ACEOF |
| 15675 |
if ac_fn_c_try_link "$LINENO" |
| 15676 |
then : |
| 15677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15678 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_POSIX_ACL 1" >>confdefs.h |
| 15679 |
|
| 15680 |
else case e in #( |
| 15681 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15682 |
printf "%s\n" "no" >&6; } ;; |
| 15683 |
esac |
| 15684 |
fi |
| 15685 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15686 |
conftest$ac_exeext conftest.$ac_ext |
| 15687 |
|
| 15688 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 |
| 15689 |
printf %s "checking for acl_get in -lsec... " >&6; } |
| 15690 |
if test ${ac_cv_lib_sec_acl_get+y} |
| 15691 |
then : |
| 15692 |
printf %s "(cached) " >&6 |
| 15693 |
else case e in #( |
| 15694 |
e) ac_check_lib_save_LIBS=$LIBS |
| 15695 |
LIBS="-lsec $LIBS" |
| 15696 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15697 |
/* end confdefs.h. */ |
| 15698 |
|
| 15699 |
/* Override any GCC internal prototype to avoid an error. |
| 15700 |
Use char because int might match the return type of a GCC |
| 15701 |
builtin and then its argument prototype would still apply. |
| 15702 |
The 'extern "C"' is for builds by C++ compilers; |
| 15703 |
although this is not generally supported in C code supporting it here |
| 15704 |
has little cost and some practical benefit (sr 110532). */ |
| 15705 |
#ifdef __cplusplus |
| 15706 |
extern "C" |
| 15707 |
#endif |
| 15708 |
char acl_get (void); |
| 15709 |
int |
| 15710 |
main (void) |
| 15711 |
{ |
| 15712 |
return acl_get (); |
| 15713 |
; |
| 15714 |
return 0; |
| 15715 |
} |
| 15716 |
_ACEOF |
| 15717 |
if ac_fn_c_try_link "$LINENO" |
| 15718 |
then : |
| 15719 |
ac_cv_lib_sec_acl_get=yes |
| 15720 |
else case e in #( |
| 15721 |
e) ac_cv_lib_sec_acl_get=no ;; |
| 15722 |
esac |
| 15723 |
fi |
| 15724 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15725 |
conftest$ac_exeext conftest.$ac_ext |
| 15726 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 15727 |
esac |
| 15728 |
fi |
| 15729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 |
| 15730 |
printf "%s\n" "$ac_cv_lib_sec_acl_get" >&6; } |
| 15731 |
if test "x$ac_cv_lib_sec_acl_get" = xyes |
| 15732 |
then : |
| 15733 |
LIBS="$LIBS -lsec"; printf "%s\n" "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h |
| 15734 |
|
| 15735 |
else case e in #( |
| 15736 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 |
| 15737 |
printf %s "checking for Solaris ACL support... " >&6; } |
| 15738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15739 |
/* end confdefs.h. */ |
| 15740 |
|
| 15741 |
#ifdef HAVE_SYS_ACL_H |
| 15742 |
# include <sys/acl.h> |
| 15743 |
#endif |
| 15744 |
int |
| 15745 |
main (void) |
| 15746 |
{ |
| 15747 |
acl("foo", GETACLCNT, 0, NULL); |
| 15748 |
|
| 15749 |
; |
| 15750 |
return 0; |
| 15751 |
} |
| 15752 |
_ACEOF |
| 15753 |
if ac_fn_c_try_link "$LINENO" |
| 15754 |
then : |
| 15755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15756 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SOLARIS_ACL 1" >>confdefs.h |
| 15757 |
|
| 15758 |
else case e in #( |
| 15759 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15760 |
printf "%s\n" "no" >&6; } ;; |
| 15761 |
esac |
| 15762 |
fi |
| 15763 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15764 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 15765 |
esac |
| 15766 |
fi |
| 15767 |
|
| 15768 |
|
| 15769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 |
| 15770 |
printf %s "checking for AIX ACL support... " >&6; } |
| 15771 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15772 |
/* end confdefs.h. */ |
| 15773 |
|
| 15774 |
#if STDC_HEADERS |
| 15775 |
# include <stdlib.h> |
| 15776 |
# include <stddef.h> |
| 15777 |
#endif |
| 15778 |
#ifdef HAVE_SYS_ACL_H |
| 15779 |
# include <sys/acl.h> |
| 15780 |
#endif |
| 15781 |
#ifdef HAVE_SYS_ACCESS_H |
| 15782 |
# include <sys/access.h> |
| 15783 |
#endif |
| 15784 |
#define _ALL_SOURCE |
| 15785 |
|
| 15786 |
#include <sys/stat.h> |
| 15787 |
|
| 15788 |
int aclsize; |
| 15789 |
struct acl *aclent; |
| 15790 |
int |
| 15791 |
main (void) |
| 15792 |
{ |
| 15793 |
aclsize = sizeof(struct acl); |
| 15794 |
aclent = (void *)malloc(aclsize); |
| 15795 |
statacl("foo", STX_NORMAL, aclent, aclsize); |
| 15796 |
|
| 15797 |
; |
| 15798 |
return 0; |
| 15799 |
} |
| 15800 |
_ACEOF |
| 15801 |
if ac_fn_c_try_link "$LINENO" |
| 15802 |
then : |
| 15803 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15804 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_AIX_ACL 1" >>confdefs.h |
| 15805 |
|
| 15806 |
else case e in #( |
| 15807 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15808 |
printf "%s\n" "no" >&6; } ;; |
| 15809 |
esac |
| 15810 |
fi |
| 15811 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15812 |
conftest$ac_exeext conftest.$ac_ext |
| 15813 |
else |
| 15814 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15815 |
printf "%s\n" "yes" >&6; } |
| 15816 |
fi |
| 15817 |
|
| 15818 |
if test "x$GTK_CPPFLAGS" != "x"; then |
| 15819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 |
| 15820 |
printf %s "checking for pango_shape_full... " >&6; } |
| 15821 |
ac_save_CPPFLAGS="$CPPFLAGS" |
| 15822 |
ac_save_CFLAGS="$CFLAGS" |
| 15823 |
ac_save_LIBS="$LIBS" |
| 15824 |
CPPFLAGS="$CPPFLAGS $GTK_CPPFLAGS" |
| 15825 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 15826 |
LIBS="$LIBS $GTK_LIBS" |
| 15827 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15828 |
/* end confdefs.h. */ |
| 15829 |
#include <gtk/gtk.h> |
| 15830 |
int |
| 15831 |
main (void) |
| 15832 |
{ |
| 15833 |
pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); |
| 15834 |
; |
| 15835 |
return 0; |
| 15836 |
} |
| 15837 |
_ACEOF |
| 15838 |
if ac_fn_c_try_link "$LINENO" |
| 15839 |
then : |
| 15840 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15841 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h |
| 15842 |
|
| 15843 |
else case e in #( |
| 15844 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15845 |
printf "%s\n" "no" >&6; } ;; |
| 15846 |
esac |
| 15847 |
fi |
| 15848 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15849 |
conftest$ac_exeext conftest.$ac_ext |
| 15850 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 15851 |
CFLAGS="$ac_save_CFLAGS" |
| 15852 |
LIBS="$ac_save_LIBS" |
| 15853 |
fi |
| 15854 |
|
| 15855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-gpm argument" >&5 |
| 15856 |
printf %s "checking --enable-gpm argument... " >&6; } |
| 15857 |
# Check whether --enable-gpm was given. |
| 15858 |
if test ${enable_gpm+y} |
| 15859 |
then : |
| 15860 |
enableval=$enable_gpm; |
| 15861 |
else case e in #( |
| 15862 |
e) enable_gpm="yes" ;; |
| 15863 |
esac |
| 15864 |
fi |
| 15865 |
|
| 15866 |
|
| 15867 |
if test "$enable_gpm" = "yes" -o "$enable_gpm" = "dynamic"; then |
| 15868 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gpm" >&5 |
| 15869 |
printf "%s\n" "$enable_gpm" >&6; } |
| 15870 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 |
| 15871 |
printf %s "checking for gpm... " >&6; } |
| 15872 |
if test ${vi_cv_have_gpm+y} |
| 15873 |
then : |
| 15874 |
printf %s "(cached) " >&6 |
| 15875 |
else case e in #( |
| 15876 |
e) olibs="$LIBS" ; LIBS="-lgpm" |
| 15877 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15878 |
/* end confdefs.h. */ |
| 15879 |
#include <gpm.h> |
| 15880 |
#include <linux/keyboard.h> |
| 15881 |
int |
| 15882 |
main (void) |
| 15883 |
{ |
| 15884 |
Gpm_GetLibVersion(NULL); |
| 15885 |
; |
| 15886 |
return 0; |
| 15887 |
} |
| 15888 |
_ACEOF |
| 15889 |
if ac_fn_c_try_link "$LINENO" |
| 15890 |
then : |
| 15891 |
vi_cv_have_gpm=yes |
| 15892 |
else case e in #( |
| 15893 |
e) vi_cv_have_gpm=no ;; |
| 15894 |
esac |
| 15895 |
fi |
| 15896 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15897 |
conftest$ac_exeext conftest.$ac_ext |
| 15898 |
LIBS="$olibs" |
| 15899 |
;; |
| 15900 |
esac |
| 15901 |
fi |
| 15902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 |
| 15903 |
printf "%s\n" "$vi_cv_have_gpm" >&6; } |
| 15904 |
if test $vi_cv_have_gpm = yes; then |
| 15905 |
if test "$enable_gpm" = "yes"; then |
| 15906 |
LIBS="$LIBS -lgpm" |
| 15907 |
else |
| 15908 |
printf "%s\n" "#define DYNAMIC_GPM 1" >>confdefs.h |
| 15909 |
|
| 15910 |
fi |
| 15911 |
printf "%s\n" "#define HAVE_GPM 1" >>confdefs.h |
| 15912 |
|
| 15913 |
fi |
| 15914 |
else |
| 15915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15916 |
printf "%s\n" "no" >&6; } |
| 15917 |
fi |
| 15918 |
|
| 15919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 |
| 15920 |
printf %s "checking --disable-sysmouse argument... " >&6; } |
| 15921 |
# Check whether --enable-sysmouse was given. |
| 15922 |
if test ${enable_sysmouse+y} |
| 15923 |
then : |
| 15924 |
enableval=$enable_sysmouse; |
| 15925 |
else case e in #( |
| 15926 |
e) enable_sysmouse="yes" ;; |
| 15927 |
esac |
| 15928 |
fi |
| 15929 |
|
| 15930 |
|
| 15931 |
if test "$enable_sysmouse" = "yes"; then |
| 15932 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15933 |
printf "%s\n" "no" >&6; } |
| 15934 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 |
| 15935 |
printf %s "checking for sysmouse... " >&6; } |
| 15936 |
if test ${vi_cv_have_sysmouse+y} |
| 15937 |
then : |
| 15938 |
printf %s "(cached) " >&6 |
| 15939 |
else case e in #( |
| 15940 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15941 |
/* end confdefs.h. */ |
| 15942 |
#include <sys/consio.h> |
| 15943 |
#include <signal.h> |
| 15944 |
#include <sys/fbio.h> |
| 15945 |
int |
| 15946 |
main (void) |
| 15947 |
{ |
| 15948 |
struct mouse_info mouse; |
| 15949 |
mouse.operation = MOUSE_MODE; |
| 15950 |
mouse.operation = MOUSE_SHOW; |
| 15951 |
mouse.u.mode.mode = 0; |
| 15952 |
mouse.u.mode.signal = SIGUSR2; |
| 15953 |
; |
| 15954 |
return 0; |
| 15955 |
} |
| 15956 |
_ACEOF |
| 15957 |
if ac_fn_c_try_link "$LINENO" |
| 15958 |
then : |
| 15959 |
vi_cv_have_sysmouse=yes |
| 15960 |
else case e in #( |
| 15961 |
e) vi_cv_have_sysmouse=no ;; |
| 15962 |
esac |
| 15963 |
fi |
| 15964 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15965 |
conftest$ac_exeext conftest.$ac_ext |
| 15966 |
;; |
| 15967 |
esac |
| 15968 |
fi |
| 15969 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 |
| 15970 |
printf "%s\n" "$vi_cv_have_sysmouse" >&6; } |
| 15971 |
if test $vi_cv_have_sysmouse = yes; then |
| 15972 |
printf "%s\n" "#define HAVE_SYSMOUSE 1" >>confdefs.h |
| 15973 |
|
| 15974 |
fi |
| 15975 |
else |
| 15976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15977 |
printf "%s\n" "yes" >&6; } |
| 15978 |
fi |
| 15979 |
|
| 15980 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 |
| 15981 |
printf %s "checking for FD_CLOEXEC... " >&6; } |
| 15982 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15983 |
/* end confdefs.h. */ |
| 15984 |
#if HAVE_FCNTL_H |
| 15985 |
# include <fcntl.h> |
| 15986 |
#endif |
| 15987 |
int |
| 15988 |
main (void) |
| 15989 |
{ |
| 15990 |
int flag = FD_CLOEXEC; |
| 15991 |
; |
| 15992 |
return 0; |
| 15993 |
} |
| 15994 |
_ACEOF |
| 15995 |
if ac_fn_c_try_compile "$LINENO" |
| 15996 |
then : |
| 15997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15998 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FD_CLOEXEC 1" >>confdefs.h |
| 15999 |
|
| 16000 |
else case e in #( |
| 16001 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16002 |
printf "%s\n" "not usable" >&6; } ;; |
| 16003 |
esac |
| 16004 |
fi |
| 16005 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16006 |
|
| 16007 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 |
| 16008 |
printf %s "checking for rename... " >&6; } |
| 16009 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16010 |
/* end confdefs.h. */ |
| 16011 |
#include <stdio.h> |
| 16012 |
int |
| 16013 |
main (void) |
| 16014 |
{ |
| 16015 |
rename("this", "that") |
| 16016 |
; |
| 16017 |
return 0; |
| 16018 |
} |
| 16019 |
_ACEOF |
| 16020 |
if ac_fn_c_try_link "$LINENO" |
| 16021 |
then : |
| 16022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16023 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h |
| 16024 |
|
| 16025 |
else case e in #( |
| 16026 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16027 |
printf "%s\n" "no" >&6; } ;; |
| 16028 |
esac |
| 16029 |
fi |
| 16030 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16031 |
conftest$ac_exeext conftest.$ac_ext |
| 16032 |
|
| 16033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 |
| 16034 |
printf %s "checking for dirfd... " >&6; } |
| 16035 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16036 |
/* end confdefs.h. */ |
| 16037 |
#include <sys/types.h> |
| 16038 |
#include <dirent.h> |
| 16039 |
int |
| 16040 |
main (void) |
| 16041 |
{ |
| 16042 |
DIR * dir=opendir("dirname"); dirfd(dir); |
| 16043 |
; |
| 16044 |
return 0; |
| 16045 |
} |
| 16046 |
_ACEOF |
| 16047 |
if ac_fn_c_try_link "$LINENO" |
| 16048 |
then : |
| 16049 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16050 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
| 16051 |
|
| 16052 |
else case e in #( |
| 16053 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16054 |
printf "%s\n" "not usable" >&6; } ;; |
| 16055 |
esac |
| 16056 |
fi |
| 16057 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16058 |
conftest$ac_exeext conftest.$ac_ext |
| 16059 |
|
| 16060 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 |
| 16061 |
printf %s "checking for flock... " >&6; } |
| 16062 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16063 |
/* end confdefs.h. */ |
| 16064 |
#include <sys/file.h> |
| 16065 |
int |
| 16066 |
main (void) |
| 16067 |
{ |
| 16068 |
flock(10, LOCK_SH); |
| 16069 |
; |
| 16070 |
return 0; |
| 16071 |
} |
| 16072 |
_ACEOF |
| 16073 |
if ac_fn_c_try_link "$LINENO" |
| 16074 |
then : |
| 16075 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16076 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
| 16077 |
|
| 16078 |
else case e in #( |
| 16079 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16080 |
printf "%s\n" "not usable" >&6; } ;; |
| 16081 |
esac |
| 16082 |
fi |
| 16083 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16084 |
conftest$ac_exeext conftest.$ac_ext |
| 16085 |
|
| 16086 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 |
| 16087 |
printf %s "checking for sysctl... " >&6; } |
| 16088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16089 |
/* end confdefs.h. */ |
| 16090 |
#include <sys/types.h> |
| 16091 |
#include <sys/sysctl.h> |
| 16092 |
int |
| 16093 |
main (void) |
| 16094 |
{ |
| 16095 |
int mib[2], r; |
| 16096 |
size_t len; |
| 16097 |
|
| 16098 |
mib[0] = CTL_HW; |
| 16099 |
mib[1] = HW_USERMEM; |
| 16100 |
len = sizeof(r); |
| 16101 |
(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
| 16102 |
|
| 16103 |
; |
| 16104 |
return 0; |
| 16105 |
} |
| 16106 |
_ACEOF |
| 16107 |
if ac_fn_c_try_compile "$LINENO" |
| 16108 |
then : |
| 16109 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16110 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h |
| 16111 |
|
| 16112 |
else case e in #( |
| 16113 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16114 |
printf "%s\n" "not usable" >&6; } ;; |
| 16115 |
esac |
| 16116 |
fi |
| 16117 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16118 |
|
| 16119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 |
| 16120 |
printf %s "checking for sysinfo... " >&6; } |
| 16121 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16122 |
/* end confdefs.h. */ |
| 16123 |
#include <sys/types.h> |
| 16124 |
#include <sys/sysinfo.h> |
| 16125 |
int |
| 16126 |
main (void) |
| 16127 |
{ |
| 16128 |
struct sysinfo sinfo; |
| 16129 |
int t; |
| 16130 |
|
| 16131 |
(void)sysinfo(&sinfo); |
| 16132 |
t = sinfo.totalram; |
| 16133 |
|
| 16134 |
; |
| 16135 |
return 0; |
| 16136 |
} |
| 16137 |
_ACEOF |
| 16138 |
if ac_fn_c_try_link "$LINENO" |
| 16139 |
then : |
| 16140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16141 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO 1" >>confdefs.h |
| 16142 |
|
| 16143 |
else case e in #( |
| 16144 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16145 |
printf "%s\n" "not usable" >&6; } ;; |
| 16146 |
esac |
| 16147 |
fi |
| 16148 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16149 |
conftest$ac_exeext conftest.$ac_ext |
| 16150 |
|
| 16151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 |
| 16152 |
printf %s "checking for sysinfo.mem_unit... " >&6; } |
| 16153 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16154 |
/* end confdefs.h. */ |
| 16155 |
#include <sys/types.h> |
| 16156 |
#include <sys/sysinfo.h> |
| 16157 |
int |
| 16158 |
main (void) |
| 16159 |
{ |
| 16160 |
struct sysinfo sinfo; |
| 16161 |
sinfo.mem_unit = 1; |
| 16162 |
|
| 16163 |
; |
| 16164 |
return 0; |
| 16165 |
} |
| 16166 |
_ACEOF |
| 16167 |
if ac_fn_c_try_compile "$LINENO" |
| 16168 |
then : |
| 16169 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16170 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h |
| 16171 |
|
| 16172 |
else case e in #( |
| 16173 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16174 |
printf "%s\n" "no" >&6; } ;; |
| 16175 |
esac |
| 16176 |
fi |
| 16177 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16178 |
|
| 16179 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo.uptime" >&5 |
| 16180 |
printf %s "checking for sysinfo.uptime... " >&6; } |
| 16181 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16182 |
/* end confdefs.h. */ |
| 16183 |
#include <sys/types.h> |
| 16184 |
#include <sys/sysinfo.h> |
| 16185 |
int |
| 16186 |
main (void) |
| 16187 |
{ |
| 16188 |
struct sysinfo sinfo; |
| 16189 |
long ut; |
| 16190 |
|
| 16191 |
(void)sysinfo(&sinfo); |
| 16192 |
ut = sinfo.uptime; |
| 16193 |
|
| 16194 |
; |
| 16195 |
return 0; |
| 16196 |
} |
| 16197 |
_ACEOF |
| 16198 |
if ac_fn_c_try_compile "$LINENO" |
| 16199 |
then : |
| 16200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16201 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h |
| 16202 |
|
| 16203 |
else case e in #( |
| 16204 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16205 |
printf "%s\n" "no" >&6; } ;; |
| 16206 |
esac |
| 16207 |
fi |
| 16208 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16209 |
|
| 16210 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 |
| 16211 |
printf %s "checking for sysconf... " >&6; } |
| 16212 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16213 |
/* end confdefs.h. */ |
| 16214 |
#include <unistd.h> |
| 16215 |
int |
| 16216 |
main (void) |
| 16217 |
{ |
| 16218 |
(void)sysconf(_SC_PAGESIZE); |
| 16219 |
(void)sysconf(_SC_PHYS_PAGES); |
| 16220 |
|
| 16221 |
; |
| 16222 |
return 0; |
| 16223 |
} |
| 16224 |
_ACEOF |
| 16225 |
if ac_fn_c_try_compile "$LINENO" |
| 16226 |
then : |
| 16227 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16228 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 16229 |
|
| 16230 |
else case e in #( |
| 16231 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16232 |
printf "%s\n" "not usable" >&6; } ;; |
| 16233 |
esac |
| 16234 |
fi |
| 16235 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16236 |
|
| 16237 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _SC_SIGSTKSZ via sysconf()" >&5 |
| 16238 |
printf %s "checking for _SC_SIGSTKSZ via sysconf()... " >&6; } |
| 16239 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16240 |
/* end confdefs.h. */ |
| 16241 |
#include <unistd.h> |
| 16242 |
int |
| 16243 |
main (void) |
| 16244 |
{ |
| 16245 |
(void)sysconf(_SC_SIGSTKSZ); |
| 16246 |
|
| 16247 |
; |
| 16248 |
return 0; |
| 16249 |
} |
| 16250 |
_ACEOF |
| 16251 |
if ac_fn_c_try_compile "$LINENO" |
| 16252 |
then : |
| 16253 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16254 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCONF_SIGSTKSZ 1" >>confdefs.h |
| 16255 |
|
| 16256 |
else case e in #( |
| 16257 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 16258 |
printf "%s\n" "not usable" >&6; } ;; |
| 16259 |
esac |
| 16260 |
fi |
| 16261 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16262 |
|
| 16263 |
# The cast to long int works around a bug in the HP C Compiler |
| 16264 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16265 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16266 |
# This bug is HP SR number 8606223364. |
| 16267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 16268 |
printf %s "checking size of int... " >&6; } |
| 16269 |
if test ${ac_cv_sizeof_int+y} |
| 16270 |
then : |
| 16271 |
printf %s "(cached) " >&6 |
| 16272 |
else case e in #( |
| 16273 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 16274 |
then : |
| 16275 |
|
| 16276 |
else case e in #( |
| 16277 |
e) if test "$ac_cv_type_int" = yes; then |
| 16278 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16279 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16280 |
as_fn_error 77 "cannot compute sizeof (int) |
| 16281 |
See 'config.log' for more details" "$LINENO" 5; } |
| 16282 |
else |
| 16283 |
ac_cv_sizeof_int=0 |
| 16284 |
fi ;; |
| 16285 |
esac |
| 16286 |
fi |
| 16287 |
;; |
| 16288 |
esac |
| 16289 |
fi |
| 16290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 16291 |
printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 16292 |
|
| 16293 |
|
| 16294 |
|
| 16295 |
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 16296 |
|
| 16297 |
|
| 16298 |
# The cast to long int works around a bug in the HP C Compiler |
| 16299 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16300 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16301 |
# This bug is HP SR number 8606223364. |
| 16302 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 16303 |
printf %s "checking size of long... " >&6; } |
| 16304 |
if test ${ac_cv_sizeof_long+y} |
| 16305 |
then : |
| 16306 |
printf %s "(cached) " >&6 |
| 16307 |
else case e in #( |
| 16308 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 16309 |
then : |
| 16310 |
|
| 16311 |
else case e in #( |
| 16312 |
e) if test "$ac_cv_type_long" = yes; then |
| 16313 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16314 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16315 |
as_fn_error 77 "cannot compute sizeof (long) |
| 16316 |
See 'config.log' for more details" "$LINENO" 5; } |
| 16317 |
else |
| 16318 |
ac_cv_sizeof_long=0 |
| 16319 |
fi ;; |
| 16320 |
esac |
| 16321 |
fi |
| 16322 |
;; |
| 16323 |
esac |
| 16324 |
fi |
| 16325 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 16326 |
printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
| 16327 |
|
| 16328 |
|
| 16329 |
|
| 16330 |
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 16331 |
|
| 16332 |
|
| 16333 |
# The cast to long int works around a bug in the HP C Compiler |
| 16334 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16335 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16336 |
# This bug is HP SR number 8606223364. |
| 16337 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 16338 |
printf %s "checking size of time_t... " >&6; } |
| 16339 |
if test ${ac_cv_sizeof_time_t+y} |
| 16340 |
then : |
| 16341 |
printf %s "(cached) " >&6 |
| 16342 |
else case e in #( |
| 16343 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" |
| 16344 |
then : |
| 16345 |
|
| 16346 |
else case e in #( |
| 16347 |
e) if test "$ac_cv_type_time_t" = yes; then |
| 16348 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16349 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16350 |
as_fn_error 77 "cannot compute sizeof (time_t) |
| 16351 |
See 'config.log' for more details" "$LINENO" 5; } |
| 16352 |
else |
| 16353 |
ac_cv_sizeof_time_t=0 |
| 16354 |
fi ;; |
| 16355 |
esac |
| 16356 |
fi |
| 16357 |
;; |
| 16358 |
esac |
| 16359 |
fi |
| 16360 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 16361 |
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } |
| 16362 |
|
| 16363 |
|
| 16364 |
|
| 16365 |
printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
| 16366 |
|
| 16367 |
|
| 16368 |
# The cast to long int works around a bug in the HP C Compiler |
| 16369 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16370 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16371 |
# This bug is HP SR number 8606223364. |
| 16372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 16373 |
printf %s "checking size of off_t... " >&6; } |
| 16374 |
if test ${ac_cv_sizeof_off_t+y} |
| 16375 |
then : |
| 16376 |
printf %s "(cached) " >&6 |
| 16377 |
else case e in #( |
| 16378 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" |
| 16379 |
then : |
| 16380 |
|
| 16381 |
else case e in #( |
| 16382 |
e) if test "$ac_cv_type_off_t" = yes; then |
| 16383 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16384 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 16385 |
as_fn_error 77 "cannot compute sizeof (off_t) |
| 16386 |
See 'config.log' for more details" "$LINENO" 5; } |
| 16387 |
else |
| 16388 |
ac_cv_sizeof_off_t=0 |
| 16389 |
fi ;; |
| 16390 |
esac |
| 16391 |
fi |
| 16392 |
;; |
| 16393 |
esac |
| 16394 |
fi |
| 16395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 16396 |
printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
| 16397 |
|
| 16398 |
|
| 16399 |
|
| 16400 |
printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
| 16401 |
|
| 16402 |
|
| 16403 |
|
| 16404 |
printf "%s\n" "#define VIM_SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 16405 |
|
| 16406 |
printf "%s\n" "#define VIM_SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 16407 |
|
| 16408 |
|
| 16409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 |
| 16410 |
printf %s "checking uint32_t is 32 bits... " >&6; } |
| 16411 |
if test "$cross_compiling" = yes |
| 16412 |
then : |
| 16413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: assuming uint32_t is correct when cross-compiling" >&5 |
| 16414 |
printf "%s\n" "$as_me: WARNING: assuming uint32_t is correct when cross-compiling" >&2;} |
| 16415 |
else case e in #( |
| 16416 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16417 |
/* end confdefs.h. */ |
| 16418 |
|
| 16419 |
#ifdef HAVE_STDINT_H |
| 16420 |
# include <stdint.h> |
| 16421 |
#endif |
| 16422 |
#ifdef HAVE_INTTYPES_H |
| 16423 |
# include <inttypes.h> |
| 16424 |
#endif |
| 16425 |
int main() { |
| 16426 |
uint32_t nr1 = (uint32_t)-1; |
| 16427 |
uint32_t nr2 = (uint32_t)0xffffffffUL; |
| 16428 |
if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1; |
| 16429 |
return 0; |
| 16430 |
} |
| 16431 |
_ACEOF |
| 16432 |
if ac_fn_c_try_run "$LINENO" |
| 16433 |
then : |
| 16434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 16435 |
printf "%s\n" "ok" >&6; } |
| 16436 |
else case e in #( |
| 16437 |
e) as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 ;; |
| 16438 |
esac |
| 16439 |
fi |
| 16440 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16441 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16442 |
esac |
| 16443 |
fi |
| 16444 |
|
| 16445 |
|
| 16446 |
|
| 16447 |
bcopy_test_prog=' |
| 16448 |
#include "confdefs.h" |
| 16449 |
#ifdef HAVE_STRING_H |
| 16450 |
# include <string.h> |
| 16451 |
#endif |
| 16452 |
#if STDC_HEADERS |
| 16453 |
# include <stdlib.h> |
| 16454 |
# include <stddef.h> |
| 16455 |
#endif |
| 16456 |
int main() { |
| 16457 |
char buf[10]; |
| 16458 |
strcpy(buf, "abcdefghi"); |
| 16459 |
mch_memmove(buf, buf + 2, 3); |
| 16460 |
if (strncmp(buf, "ababcf", 6)) |
| 16461 |
exit(1); |
| 16462 |
strcpy(buf, "abcdefghi"); |
| 16463 |
mch_memmove(buf + 2, buf, 3); |
| 16464 |
if (strncmp(buf, "cdedef", 6)) |
| 16465 |
exit(1); |
| 16466 |
exit(0); /* libc version works properly. */ |
| 16467 |
}' |
| 16468 |
|
| 16469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 |
| 16470 |
printf %s "checking whether memmove handles overlaps... " >&6; } |
| 16471 |
if test ${vim_cv_memmove_handles_overlap+y} |
| 16472 |
then : |
| 16473 |
printf %s "(cached) " >&6 |
| 16474 |
else case e in #( |
| 16475 |
e) |
| 16476 |
if test "$cross_compiling" = yes |
| 16477 |
then : |
| 16478 |
|
| 16479 |
vim_cv_memmove_handles_overlap=yes |
| 16480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_memmove_handles_overlap'" >&5 |
| 16481 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_memmove_handles_overlap'" >&2;} |
| 16482 |
|
| 16483 |
else case e in #( |
| 16484 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16485 |
/* end confdefs.h. */ |
| 16486 |
#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
| 16487 |
_ACEOF |
| 16488 |
if ac_fn_c_try_run "$LINENO" |
| 16489 |
then : |
| 16490 |
|
| 16491 |
vim_cv_memmove_handles_overlap=yes |
| 16492 |
|
| 16493 |
else case e in #( |
| 16494 |
e) |
| 16495 |
vim_cv_memmove_handles_overlap=no |
| 16496 |
;; |
| 16497 |
esac |
| 16498 |
fi |
| 16499 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16500 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16501 |
esac |
| 16502 |
fi |
| 16503 |
|
| 16504 |
;; |
| 16505 |
esac |
| 16506 |
fi |
| 16507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 |
| 16508 |
printf "%s\n" "$vim_cv_memmove_handles_overlap" >&6; } |
| 16509 |
|
| 16510 |
if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
| 16511 |
printf "%s\n" "#define USEMEMMOVE 1" >>confdefs.h |
| 16512 |
|
| 16513 |
else |
| 16514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 |
| 16515 |
printf %s "checking whether bcopy handles overlaps... " >&6; } |
| 16516 |
if test ${vim_cv_bcopy_handles_overlap+y} |
| 16517 |
then : |
| 16518 |
printf %s "(cached) " >&6 |
| 16519 |
else case e in #( |
| 16520 |
e) |
| 16521 |
if test "$cross_compiling" = yes |
| 16522 |
then : |
| 16523 |
|
| 16524 |
vim_cv_bcopy_handles_overlap=yes |
| 16525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_bcopy_handles_overlap'" >&5 |
| 16526 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 16527 |
|
| 16528 |
else case e in #( |
| 16529 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16530 |
/* end confdefs.h. */ |
| 16531 |
#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 16532 |
_ACEOF |
| 16533 |
if ac_fn_c_try_run "$LINENO" |
| 16534 |
then : |
| 16535 |
|
| 16536 |
vim_cv_bcopy_handles_overlap=yes |
| 16537 |
|
| 16538 |
else case e in #( |
| 16539 |
e) |
| 16540 |
vim_cv_bcopy_handles_overlap=no |
| 16541 |
;; |
| 16542 |
esac |
| 16543 |
fi |
| 16544 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16545 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16546 |
esac |
| 16547 |
fi |
| 16548 |
|
| 16549 |
;; |
| 16550 |
esac |
| 16551 |
fi |
| 16552 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 16553 |
printf "%s\n" "$vim_cv_bcopy_handles_overlap" >&6; } |
| 16554 |
|
| 16555 |
if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 16556 |
printf "%s\n" "#define USEBCOPY 1" >>confdefs.h |
| 16557 |
|
| 16558 |
else |
| 16559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 |
| 16560 |
printf %s "checking whether memcpy handles overlaps... " >&6; } |
| 16561 |
if test ${vim_cv_memcpy_handles_overlap+y} |
| 16562 |
then : |
| 16563 |
printf %s "(cached) " >&6 |
| 16564 |
else case e in #( |
| 16565 |
e) |
| 16566 |
if test "$cross_compiling" = yes |
| 16567 |
then : |
| 16568 |
|
| 16569 |
vim_cv_memcpy_handles_overlap=yes |
| 16570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_memcpy_handles_overlap'" >&5 |
| 16571 |
printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_memcpy_handles_overlap'" >&2;} |
| 16572 |
|
| 16573 |
else case e in #( |
| 16574 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16575 |
/* end confdefs.h. */ |
| 16576 |
#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
| 16577 |
_ACEOF |
| 16578 |
if ac_fn_c_try_run "$LINENO" |
| 16579 |
then : |
| 16580 |
|
| 16581 |
vim_cv_memcpy_handles_overlap=yes |
| 16582 |
|
| 16583 |
else case e in #( |
| 16584 |
e) |
| 16585 |
vim_cv_memcpy_handles_overlap=no |
| 16586 |
;; |
| 16587 |
esac |
| 16588 |
fi |
| 16589 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16590 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16591 |
esac |
| 16592 |
fi |
| 16593 |
|
| 16594 |
;; |
| 16595 |
esac |
| 16596 |
fi |
| 16597 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 16598 |
printf "%s\n" "$vim_cv_memcpy_handles_overlap" >&6; } |
| 16599 |
|
| 16600 |
if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 16601 |
printf "%s\n" "#define USEMEMCPY 1" >>confdefs.h |
| 16602 |
|
| 16603 |
fi |
| 16604 |
fi |
| 16605 |
fi |
| 16606 |
|
| 16607 |
|
| 16608 |
if test "x$with_x" = "xyes"; then |
| 16609 |
cflags_save=$CFLAGS |
| 16610 |
libs_save=$LIBS |
| 16611 |
LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" |
| 16612 |
CFLAGS="$CFLAGS $X_CFLAGS" |
| 16613 |
|
| 16614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 |
| 16615 |
printf %s "checking whether X_LOCALE needed... " >&6; } |
| 16616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16617 |
/* end confdefs.h. */ |
| 16618 |
#include <X11/Xlocale.h> |
| 16619 |
int |
| 16620 |
main (void) |
| 16621 |
{ |
| 16622 |
|
| 16623 |
; |
| 16624 |
return 0; |
| 16625 |
} |
| 16626 |
_ACEOF |
| 16627 |
if ac_fn_c_try_compile "$LINENO" |
| 16628 |
then : |
| 16629 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16630 |
/* end confdefs.h. */ |
| 16631 |
|
| 16632 |
/* Override any GCC internal prototype to avoid an error. |
| 16633 |
Use char because int might match the return type of a GCC |
| 16634 |
builtin and then its argument prototype would still apply. |
| 16635 |
The 'extern "C"' is for builds by C++ compilers; |
| 16636 |
although this is not generally supported in C code supporting it here |
| 16637 |
has little cost and some practical benefit (sr 110532). */ |
| 16638 |
#ifdef __cplusplus |
| 16639 |
extern "C" |
| 16640 |
#endif |
| 16641 |
char _Xsetlocale (void); |
| 16642 |
int |
| 16643 |
main (void) |
| 16644 |
{ |
| 16645 |
return _Xsetlocale (); |
| 16646 |
; |
| 16647 |
return 0; |
| 16648 |
} |
| 16649 |
_ACEOF |
| 16650 |
if ac_fn_c_try_link "$LINENO" |
| 16651 |
then : |
| 16652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16653 |
printf "%s\n" "yes" >&6; } |
| 16654 |
printf "%s\n" "#define X_LOCALE 1" >>confdefs.h |
| 16655 |
|
| 16656 |
else case e in #( |
| 16657 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16658 |
printf "%s\n" "no" >&6; } ;; |
| 16659 |
esac |
| 16660 |
fi |
| 16661 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16662 |
conftest$ac_exeext conftest.$ac_ext |
| 16663 |
else case e in #( |
| 16664 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16665 |
printf "%s\n" "no" >&6; } ;; |
| 16666 |
esac |
| 16667 |
fi |
| 16668 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16669 |
|
| 16670 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 |
| 16671 |
printf %s "checking whether Xutf8SetWMProperties() can be used... " >&6; } |
| 16672 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16673 |
/* end confdefs.h. */ |
| 16674 |
|
| 16675 |
/* Override any GCC internal prototype to avoid an error. |
| 16676 |
Use char because int might match the return type of a GCC |
| 16677 |
builtin and then its argument prototype would still apply. |
| 16678 |
The 'extern "C"' is for builds by C++ compilers; |
| 16679 |
although this is not generally supported in C code supporting it here |
| 16680 |
has little cost and some practical benefit (sr 110532). */ |
| 16681 |
#ifdef __cplusplus |
| 16682 |
extern "C" |
| 16683 |
#endif |
| 16684 |
char Xutf8SetWMProperties (void); |
| 16685 |
int |
| 16686 |
main (void) |
| 16687 |
{ |
| 16688 |
return Xutf8SetWMProperties (); |
| 16689 |
; |
| 16690 |
return 0; |
| 16691 |
} |
| 16692 |
_ACEOF |
| 16693 |
if ac_fn_c_try_link "$LINENO" |
| 16694 |
then : |
| 16695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16696 |
printf "%s\n" "yes" >&6; } |
| 16697 |
printf "%s\n" "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h |
| 16698 |
|
| 16699 |
else case e in #( |
| 16700 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16701 |
printf "%s\n" "no" >&6; } ;; |
| 16702 |
esac |
| 16703 |
fi |
| 16704 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16705 |
conftest$ac_exeext conftest.$ac_ext |
| 16706 |
|
| 16707 |
CFLAGS=$cflags_save |
| 16708 |
LIBS=$libs_save |
| 16709 |
fi |
| 16710 |
|
| 16711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 16712 |
printf %s "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
| 16713 |
if test ${ac_cv_lib_xpg4__xpg4_setrunelocale+y} |
| 16714 |
then : |
| 16715 |
printf %s "(cached) " >&6 |
| 16716 |
else case e in #( |
| 16717 |
e) ac_check_lib_save_LIBS=$LIBS |
| 16718 |
LIBS="-lxpg4 $LIBS" |
| 16719 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16720 |
/* end confdefs.h. */ |
| 16721 |
|
| 16722 |
/* Override any GCC internal prototype to avoid an error. |
| 16723 |
Use char because int might match the return type of a GCC |
| 16724 |
builtin and then its argument prototype would still apply. |
| 16725 |
The 'extern "C"' is for builds by C++ compilers; |
| 16726 |
although this is not generally supported in C code supporting it here |
| 16727 |
has little cost and some practical benefit (sr 110532). */ |
| 16728 |
#ifdef __cplusplus |
| 16729 |
extern "C" |
| 16730 |
#endif |
| 16731 |
char _xpg4_setrunelocale (void); |
| 16732 |
int |
| 16733 |
main (void) |
| 16734 |
{ |
| 16735 |
return _xpg4_setrunelocale (); |
| 16736 |
; |
| 16737 |
return 0; |
| 16738 |
} |
| 16739 |
_ACEOF |
| 16740 |
if ac_fn_c_try_link "$LINENO" |
| 16741 |
then : |
| 16742 |
ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
| 16743 |
else case e in #( |
| 16744 |
e) ac_cv_lib_xpg4__xpg4_setrunelocale=no ;; |
| 16745 |
esac |
| 16746 |
fi |
| 16747 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16748 |
conftest$ac_exeext conftest.$ac_ext |
| 16749 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 16750 |
esac |
| 16751 |
fi |
| 16752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 16753 |
printf "%s\n" "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
| 16754 |
if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes |
| 16755 |
then : |
| 16756 |
LIBS="$LIBS -lxpg4" |
| 16757 |
fi |
| 16758 |
|
| 16759 |
|
| 16760 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 |
| 16761 |
printf %s "checking how to create tags... " >&6; } |
| 16762 |
test -f tags && mv tags tags.save |
| 16763 |
if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
| 16764 |
TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
| 16765 |
elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
| 16766 |
TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
| 16767 |
elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
| 16768 |
TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
| 16769 |
else |
| 16770 |
TAGPRG="ctags" |
| 16771 |
(eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 16772 |
(eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 16773 |
(eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 16774 |
(eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 16775 |
(eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 16776 |
(eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 16777 |
(eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 16778 |
fi |
| 16779 |
test -f tags.save && mv tags.save tags |
| 16780 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 |
| 16781 |
printf "%s\n" "$TAGPRG" >&6; } |
| 16782 |
|
| 16783 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 |
| 16784 |
printf %s "checking how to run man with a section nr... " >&6; } |
| 16785 |
MANDEF="man" |
| 16786 |
(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
| 16787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 |
| 16788 |
printf "%s\n" "$MANDEF" >&6; } |
| 16789 |
if test "$MANDEF" = "man -s"; then |
| 16790 |
printf "%s\n" "#define USEMAN_S 1" >>confdefs.h |
| 16791 |
|
| 16792 |
fi |
| 16793 |
|
| 16794 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 |
| 16795 |
printf %s "checking --disable-nls argument... " >&6; } |
| 16796 |
# Check whether --enable-nls was given. |
| 16797 |
if test ${enable_nls+y} |
| 16798 |
then : |
| 16799 |
enableval=$enable_nls; |
| 16800 |
else case e in #( |
| 16801 |
e) enable_nls="yes" ;; |
| 16802 |
esac |
| 16803 |
fi |
| 16804 |
|
| 16805 |
|
| 16806 |
if test "$enable_nls" = "yes"; then |
| 16807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16808 |
printf "%s\n" "no" >&6; } |
| 16809 |
|
| 16810 |
INSTALL_LANGS=install-languages |
| 16811 |
|
| 16812 |
INSTALL_TOOL_LANGS=install-tool-languages |
| 16813 |
|
| 16814 |
|
| 16815 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
| 16816 |
set dummy msgfmt; ac_word=$2 |
| 16817 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16818 |
printf %s "checking for $ac_word... " >&6; } |
| 16819 |
if test ${ac_cv_prog_MSGFMT+y} |
| 16820 |
then : |
| 16821 |
printf %s "(cached) " >&6 |
| 16822 |
else case e in #( |
| 16823 |
e) if test -n "$MSGFMT"; then |
| 16824 |
ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 16825 |
else |
| 16826 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16827 |
for as_dir in $PATH |
| 16828 |
do |
| 16829 |
IFS=$as_save_IFS |
| 16830 |
case $as_dir in #((( |
| 16831 |
'') as_dir=./ ;; |
| 16832 |
*/) ;; |
| 16833 |
*) as_dir=$as_dir/ ;; |
| 16834 |
esac |
| 16835 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 16836 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 16837 |
ac_cv_prog_MSGFMT="msgfmt" |
| 16838 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 16839 |
break 2 |
| 16840 |
fi |
| 16841 |
done |
| 16842 |
done |
| 16843 |
IFS=$as_save_IFS |
| 16844 |
|
| 16845 |
fi ;; |
| 16846 |
esac |
| 16847 |
fi |
| 16848 |
MSGFMT=$ac_cv_prog_MSGFMT |
| 16849 |
if test -n "$MSGFMT"; then |
| 16850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 16851 |
printf "%s\n" "$MSGFMT" >&6; } |
| 16852 |
else |
| 16853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16854 |
printf "%s\n" "no" >&6; } |
| 16855 |
fi |
| 16856 |
|
| 16857 |
|
| 16858 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 |
| 16859 |
printf %s "checking for NLS... " >&6; } |
| 16860 |
if test -f po/Makefile; then |
| 16861 |
have_gettext="no" |
| 16862 |
if test -n "$MSGFMT"; then |
| 16863 |
olibs=$LIBS |
| 16864 |
LIBS="" |
| 16865 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16866 |
/* end confdefs.h. */ |
| 16867 |
#include <libintl.h> |
| 16868 |
int |
| 16869 |
main (void) |
| 16870 |
{ |
| 16871 |
gettext("Test"); |
| 16872 |
; |
| 16873 |
return 0; |
| 16874 |
} |
| 16875 |
_ACEOF |
| 16876 |
if ac_fn_c_try_link "$LINENO" |
| 16877 |
then : |
| 16878 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 |
| 16879 |
printf "%s\n" "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs |
| 16880 |
else case e in #( |
| 16881 |
e) LIBS="-lintl" |
| 16882 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16883 |
/* end confdefs.h. */ |
| 16884 |
#include <libintl.h> |
| 16885 |
int |
| 16886 |
main (void) |
| 16887 |
{ |
| 16888 |
gettext("Test"); |
| 16889 |
; |
| 16890 |
return 0; |
| 16891 |
} |
| 16892 |
_ACEOF |
| 16893 |
if ac_fn_c_try_link "$LINENO" |
| 16894 |
then : |
| 16895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 |
| 16896 |
printf "%s\n" "gettext() works with -lintl" >&6; }; have_gettext="yes"; |
| 16897 |
LIBS="$olibs -lintl" |
| 16898 |
else case e in #( |
| 16899 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 |
| 16900 |
printf "%s\n" "gettext() doesn't work" >&6; }; |
| 16901 |
LIBS=$olibs ;; |
| 16902 |
esac |
| 16903 |
fi |
| 16904 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16905 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 16906 |
esac |
| 16907 |
fi |
| 16908 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16909 |
conftest$ac_exeext conftest.$ac_ext |
| 16910 |
else |
| 16911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 |
| 16912 |
printf "%s\n" "msgfmt not found - disabled" >&6; }; |
| 16913 |
fi |
| 16914 |
if test $have_gettext = "yes" -a "x$features" != "xtiny"; then |
| 16915 |
printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
| 16916 |
|
| 16917 |
MAKEMO=yes |
| 16918 |
|
| 16919 |
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
| 16920 |
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes |
| 16921 |
then : |
| 16922 |
printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h |
| 16923 |
|
| 16924 |
fi |
| 16925 |
|
| 16926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext" >&5 |
| 16927 |
printf %s "checking for dgettext... " >&6; } |
| 16928 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16929 |
/* end confdefs.h. */ |
| 16930 |
#include <libintl.h> |
| 16931 |
int |
| 16932 |
main (void) |
| 16933 |
{ |
| 16934 |
dgettext("Test", "Test"); |
| 16935 |
; |
| 16936 |
return 0; |
| 16937 |
} |
| 16938 |
_ACEOF |
| 16939 |
if ac_fn_c_try_link "$LINENO" |
| 16940 |
then : |
| 16941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16942 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DGETTEXT 1" >>confdefs.h |
| 16943 |
|
| 16944 |
else case e in #( |
| 16945 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dngettext" >&5 |
| 16946 |
printf %s "checking for dngettext... " >&6; } |
| 16947 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16948 |
printf "%s\n" "no" >&6; } ;; |
| 16949 |
esac |
| 16950 |
fi |
| 16951 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16952 |
conftest$ac_exeext conftest.$ac_ext |
| 16953 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16954 |
/* end confdefs.h. */ |
| 16955 |
#include <libintl.h> |
| 16956 |
int |
| 16957 |
main (void) |
| 16958 |
{ |
| 16959 |
dngettext("DOMAIN", "Test single", "Test plural", 1); |
| 16960 |
; |
| 16961 |
return 0; |
| 16962 |
} |
| 16963 |
_ACEOF |
| 16964 |
if ac_fn_c_try_link "$LINENO" |
| 16965 |
then : |
| 16966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16967 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DNGETTEXT 1" >>confdefs.h |
| 16968 |
|
| 16969 |
else case e in #( |
| 16970 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16971 |
printf "%s\n" "no" >&6; } ;; |
| 16972 |
esac |
| 16973 |
fi |
| 16974 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16975 |
conftest$ac_exeext conftest.$ac_ext |
| 16976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 |
| 16977 |
printf %s "checking for _nl_msg_cat_cntr... " >&6; } |
| 16978 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16979 |
/* end confdefs.h. */ |
| 16980 |
#include <libintl.h> |
| 16981 |
extern int _nl_msg_cat_cntr; |
| 16982 |
int |
| 16983 |
main (void) |
| 16984 |
{ |
| 16985 |
++_nl_msg_cat_cntr; |
| 16986 |
; |
| 16987 |
return 0; |
| 16988 |
} |
| 16989 |
_ACEOF |
| 16990 |
if ac_fn_c_try_link "$LINENO" |
| 16991 |
then : |
| 16992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16993 |
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h |
| 16994 |
|
| 16995 |
else case e in #( |
| 16996 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16997 |
printf "%s\n" "no" >&6; } ;; |
| 16998 |
esac |
| 16999 |
fi |
| 17000 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17001 |
conftest$ac_exeext conftest.$ac_ext |
| 17002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5 |
| 17003 |
printf %s "checking if msgfmt supports --desktop... " >&6; } |
| 17004 |
MSGFMT_DESKTOP= |
| 17005 |
if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then |
| 17006 |
if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then |
| 17007 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: broken" >&5 |
| 17008 |
printf "%s\n" "broken" >&6; } |
| 17009 |
else |
| 17010 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17011 |
printf "%s\n" "yes" >&6; } |
| 17012 |
MSGFMT_DESKTOP="gvim.desktop vim.desktop" |
| 17013 |
fi |
| 17014 |
else |
| 17015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17016 |
printf "%s\n" "no" >&6; } |
| 17017 |
fi |
| 17018 |
|
| 17019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MSGFMT supports --no-convert" >&5 |
| 17020 |
printf %s "checking if $MSGFMT supports --no-convert... " >&6; } |
| 17021 |
if "$MSGFMT" --help | grep -q -- '--no-convert' >/dev/null; then |
| 17022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17023 |
printf "%s\n" "yes" >&6; } |
| 17024 |
MSGFMTCMD="OLD_PO_FILE_INPUT=yes $MSGFMT --no-convert -v" |
| 17025 |
else |
| 17026 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17027 |
printf "%s\n" "no" >&6; } |
| 17028 |
MSGFMTCMD="OLD_PO_FILE_INPUT=yes $MSGFMT -v" |
| 17029 |
fi |
| 17030 |
|
| 17031 |
fi |
| 17032 |
else |
| 17033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 |
| 17034 |
printf "%s\n" "no \"po/Makefile\" - disabled" >&6; }; |
| 17035 |
fi |
| 17036 |
else |
| 17037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17038 |
printf "%s\n" "yes" >&6; } |
| 17039 |
fi |
| 17040 |
|
| 17041 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 17042 |
if test "x$ac_cv_header_dlfcn_h" = xyes |
| 17043 |
then : |
| 17044 |
DLL=dlfcn.h |
| 17045 |
else case e in #( |
| 17046 |
e) ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" |
| 17047 |
if test "x$ac_cv_header_dl_h" = xyes |
| 17048 |
then : |
| 17049 |
DLL=dl.h |
| 17050 |
fi |
| 17051 |
;; |
| 17052 |
esac |
| 17053 |
fi |
| 17054 |
|
| 17055 |
if test x${DLL} = xdlfcn.h; then |
| 17056 |
|
| 17057 |
printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 17058 |
|
| 17059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 |
| 17060 |
printf %s "checking for dlopen()... " >&6; } |
| 17061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17062 |
/* end confdefs.h. */ |
| 17063 |
|
| 17064 |
int |
| 17065 |
main (void) |
| 17066 |
{ |
| 17067 |
|
| 17068 |
extern void* dlopen(); |
| 17069 |
dlopen(); |
| 17070 |
|
| 17071 |
; |
| 17072 |
return 0; |
| 17073 |
} |
| 17074 |
_ACEOF |
| 17075 |
if ac_fn_c_try_link "$LINENO" |
| 17076 |
then : |
| 17077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17078 |
printf "%s\n" "yes" >&6; }; |
| 17079 |
|
| 17080 |
printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
| 17081 |
|
| 17082 |
else case e in #( |
| 17083 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17084 |
printf "%s\n" "no" >&6; }; |
| 17085 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 |
| 17086 |
printf %s "checking for dlopen() in -ldl... " >&6; } |
| 17087 |
olibs=$LIBS |
| 17088 |
LIBS="$LIBS -ldl" |
| 17089 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17090 |
/* end confdefs.h. */ |
| 17091 |
|
| 17092 |
int |
| 17093 |
main (void) |
| 17094 |
{ |
| 17095 |
|
| 17096 |
extern void* dlopen(); |
| 17097 |
dlopen(); |
| 17098 |
|
| 17099 |
; |
| 17100 |
return 0; |
| 17101 |
} |
| 17102 |
_ACEOF |
| 17103 |
if ac_fn_c_try_link "$LINENO" |
| 17104 |
then : |
| 17105 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17106 |
printf "%s\n" "yes" >&6; }; |
| 17107 |
|
| 17108 |
printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
| 17109 |
|
| 17110 |
else case e in #( |
| 17111 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17112 |
printf "%s\n" "no" >&6; }; |
| 17113 |
LIBS=$olibs ;; |
| 17114 |
esac |
| 17115 |
fi |
| 17116 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17117 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 17118 |
esac |
| 17119 |
fi |
| 17120 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17121 |
conftest$ac_exeext conftest.$ac_ext |
| 17122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 |
| 17123 |
printf %s "checking for dlsym()... " >&6; } |
| 17124 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17125 |
/* end confdefs.h. */ |
| 17126 |
|
| 17127 |
int |
| 17128 |
main (void) |
| 17129 |
{ |
| 17130 |
|
| 17131 |
extern void* dlsym(); |
| 17132 |
dlsym(); |
| 17133 |
|
| 17134 |
; |
| 17135 |
return 0; |
| 17136 |
} |
| 17137 |
_ACEOF |
| 17138 |
if ac_fn_c_try_link "$LINENO" |
| 17139 |
then : |
| 17140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17141 |
printf "%s\n" "yes" >&6; }; |
| 17142 |
|
| 17143 |
printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h |
| 17144 |
|
| 17145 |
else case e in #( |
| 17146 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17147 |
printf "%s\n" "no" >&6; }; |
| 17148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 |
| 17149 |
printf %s "checking for dlsym() in -ldl... " >&6; } |
| 17150 |
olibs=$LIBS |
| 17151 |
LIBS="$LIBS -ldl" |
| 17152 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17153 |
/* end confdefs.h. */ |
| 17154 |
|
| 17155 |
int |
| 17156 |
main (void) |
| 17157 |
{ |
| 17158 |
|
| 17159 |
extern void* dlsym(); |
| 17160 |
dlsym(); |
| 17161 |
|
| 17162 |
; |
| 17163 |
return 0; |
| 17164 |
} |
| 17165 |
_ACEOF |
| 17166 |
if ac_fn_c_try_link "$LINENO" |
| 17167 |
then : |
| 17168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17169 |
printf "%s\n" "yes" >&6; }; |
| 17170 |
|
| 17171 |
printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h |
| 17172 |
|
| 17173 |
else case e in #( |
| 17174 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17175 |
printf "%s\n" "no" >&6; }; |
| 17176 |
LIBS=$olibs ;; |
| 17177 |
esac |
| 17178 |
fi |
| 17179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17180 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 17181 |
esac |
| 17182 |
fi |
| 17183 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17184 |
conftest$ac_exeext conftest.$ac_ext |
| 17185 |
elif test x${DLL} = xdl.h; then |
| 17186 |
|
| 17187 |
printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h |
| 17188 |
|
| 17189 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 |
| 17190 |
printf %s "checking for shl_load()... " >&6; } |
| 17191 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17192 |
/* end confdefs.h. */ |
| 17193 |
|
| 17194 |
int |
| 17195 |
main (void) |
| 17196 |
{ |
| 17197 |
|
| 17198 |
extern void* shl_load(); |
| 17199 |
shl_load(); |
| 17200 |
|
| 17201 |
; |
| 17202 |
return 0; |
| 17203 |
} |
| 17204 |
_ACEOF |
| 17205 |
if ac_fn_c_try_link "$LINENO" |
| 17206 |
then : |
| 17207 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17208 |
printf "%s\n" "yes" >&6; }; |
| 17209 |
|
| 17210 |
printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 17211 |
|
| 17212 |
else case e in #( |
| 17213 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17214 |
printf "%s\n" "no" >&6; }; |
| 17215 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 |
| 17216 |
printf %s "checking for shl_load() in -ldld... " >&6; } |
| 17217 |
olibs=$LIBS |
| 17218 |
LIBS="$LIBS -ldld" |
| 17219 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17220 |
/* end confdefs.h. */ |
| 17221 |
|
| 17222 |
int |
| 17223 |
main (void) |
| 17224 |
{ |
| 17225 |
|
| 17226 |
extern void* shl_load(); |
| 17227 |
shl_load(); |
| 17228 |
|
| 17229 |
; |
| 17230 |
return 0; |
| 17231 |
} |
| 17232 |
_ACEOF |
| 17233 |
if ac_fn_c_try_link "$LINENO" |
| 17234 |
then : |
| 17235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17236 |
printf "%s\n" "yes" >&6; }; |
| 17237 |
|
| 17238 |
printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 17239 |
|
| 17240 |
else case e in #( |
| 17241 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17242 |
printf "%s\n" "no" >&6; }; |
| 17243 |
LIBS=$olibs ;; |
| 17244 |
esac |
| 17245 |
fi |
| 17246 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17247 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 17248 |
esac |
| 17249 |
fi |
| 17250 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17251 |
conftest$ac_exeext conftest.$ac_ext |
| 17252 |
fi |
| 17253 |
ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 17254 |
if test "x$ac_cv_header_setjmp_h" = xyes |
| 17255 |
then : |
| 17256 |
printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h |
| 17257 |
|
| 17258 |
fi |
| 17259 |
|
| 17260 |
|
| 17261 |
if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then |
| 17262 |
if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 17263 |
LIBS=`echo $LIBS | sed s/-ldl//` |
| 17264 |
PERL_LIBS="$PERL_LIBS -ldl" |
| 17265 |
fi |
| 17266 |
fi |
| 17267 |
|
| 17268 |
if test "$MACOS_X" = "yes"; then |
| 17269 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 |
| 17270 |
printf %s "checking whether we need macOS frameworks... " >&6; } |
| 17271 |
if test "$MACOS_X_DARWIN" = "yes"; then |
| 17272 |
if test "$features" = "tiny"; then |
| 17273 |
OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` |
| 17274 |
OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` |
| 17275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 |
| 17276 |
printf "%s\n" "yes, we need CoreServices" >&6; } |
| 17277 |
LIBS="$LIBS -framework CoreServices" |
| 17278 |
else |
| 17279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 |
| 17280 |
printf "%s\n" "yes, we need AppKit" >&6; } |
| 17281 |
LIBS="$LIBS -framework AppKit" |
| 17282 |
fi |
| 17283 |
else |
| 17284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17285 |
printf "%s\n" "no" >&6; } |
| 17286 |
fi |
| 17287 |
fi |
| 17288 |
|
| 17289 |
if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then |
| 17290 |
CFLAGS="$CFLAGS -D_REENTRANT" |
| 17291 |
fi |
| 17292 |
|
| 17293 |
DEPEND_CFLAGS_FILTER= |
| 17294 |
if test "$GCC" = yes; then |
| 17295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 |
| 17296 |
printf %s "checking for GCC 3 or later... " >&6; } |
| 17297 |
gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'` |
| 17298 |
if test "$gccmajor" -gt "2"; then |
| 17299 |
DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 17300 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17301 |
printf "%s\n" "yes" >&6; } |
| 17302 |
else |
| 17303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17304 |
printf "%s\n" "no" >&6; } |
| 17305 |
fi |
| 17306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 |
| 17307 |
printf %s "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } |
| 17308 |
if test "$gccmajor" -gt "3"; then |
| 17309 |
CFLAGS=`echo "$CFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-Wp,-U_FORTIFY_SOURCE/ /g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` |
| 17310 |
CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-Wp,-U_FORTIFY_SOURCE/ /g' -e 's/ *-U_FORTIFY_SOURCE//g'` |
| 17311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17312 |
printf "%s\n" "yes" >&6; } |
| 17313 |
else |
| 17314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17315 |
printf "%s\n" "no" >&6; } |
| 17316 |
fi |
| 17317 |
fi |
| 17318 |
|
| 17319 |
|
| 17320 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 |
| 17321 |
printf %s "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } |
| 17322 |
if echo "$CPPFLAGS $CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CPPFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then |
| 17323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17324 |
printf "%s\n" "yes" >&6; } |
| 17325 |
printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 17326 |
|
| 17327 |
else |
| 17328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17329 |
printf "%s\n" "no" >&6; } |
| 17330 |
fi |
| 17331 |
|
| 17332 |
LDFLAGS=`echo "$LDFLAGS" | sed -e 's/-L /-L/g'` |
| 17333 |
|
| 17334 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
| 17335 |
printf %s "checking linker --as-needed support... " >&6; } |
| 17336 |
LINK_AS_NEEDED= |
| 17337 |
# Check if linker supports --as-needed and --no-as-needed options |
| 17338 |
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then |
| 17339 |
if ! echo "$LDFLAGS" | grep -q -- '-Wl,[^[:space:]]*--as-needed'; then |
| 17340 |
LDFLAGS="$LDFLAGS -Wl,--as-needed" |
| 17341 |
fi |
| 17342 |
LINK_AS_NEEDED=yes |
| 17343 |
fi |
| 17344 |
if test "$LINK_AS_NEEDED" = yes; then |
| 17345 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17346 |
printf "%s\n" "yes" >&6; } |
| 17347 |
else |
| 17348 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17349 |
printf "%s\n" "no" >&6; } |
| 17350 |
fi |
| 17351 |
|
| 17352 |
|
| 17353 |
# IBM z/OS reset CFLAGS for config.mk |
| 17354 |
if test "$zOSUnix" = "yes"; then |
| 17355 |
CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" |
| 17356 |
fi |
| 17357 |
|
| 17358 |
ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 17359 |
|
| 17360 |
cat >confcache <<\_ACEOF |
| 17361 |
# This file is a shell script that caches the results of configure |
| 17362 |
# tests run on this system so they can be shared between configure |
| 17363 |
# scripts and configure runs, see configure's option --config-cache. |
| 17364 |
# It is not useful on other systems. If it contains results you don't |
| 17365 |
# want to keep, you may remove or edit it. |
| 17366 |
# |
| 17367 |
# config.status only pays attention to the cache file if you give it |
| 17368 |
# the --recheck option to rerun configure. |
| 17369 |
# |
| 17370 |
# 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17371 |
# loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 17372 |
# following values. |
| 17373 |
|
| 17374 |
_ACEOF |
| 17375 |
|
| 17376 |
# The following way of writing the cache mishandles newlines in values, |
| 17377 |
# but we know of no workaround that is simple, portable, and efficient. |
| 17378 |
# So, we kill variables containing newlines. |
| 17379 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 17380 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 17381 |
( |
| 17382 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17383 |
eval ac_val=\$$ac_var |
| 17384 |
case $ac_val in #( |
| 17385 |
*${as_nl}*) |
| 17386 |
case $ac_var in #( |
| 17387 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17388 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 17389 |
esac |
| 17390 |
case $ac_var in #( |
| 17391 |
_ | IFS | as_nl) ;; #( |
| 17392 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17393 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 17394 |
esac ;; |
| 17395 |
esac |
| 17396 |
done |
| 17397 |
|
| 17398 |
(set) 2>&1 | |
| 17399 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17400 |
*${as_nl}ac_space=\ *) |
| 17401 |
# 'set' does not quote correctly, so add quotes: double-quote |
| 17402 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 17403 |
sed -n \ |
| 17404 |
"s/'/'\\\\''/g; |
| 17405 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17406 |
;; #( |
| 17407 |
*) |
| 17408 |
# 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 17409 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 17410 |
;; |
| 17411 |
esac | |
| 17412 |
sort |
| 17413 |
) | |
| 17414 |
sed ' |
| 17415 |
/^ac_cv_env_/b end |
| 17416 |
t clear |
| 17417 |
:clear |
| 17418 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 17419 |
t end |
| 17420 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17421 |
:end' >>confcache |
| 17422 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17423 |
if test -w "$cache_file"; then |
| 17424 |
if test "x$cache_file" != "x/dev/null"; then |
| 17425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 17426 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 17427 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 17428 |
cat confcache >"$cache_file" |
| 17429 |
else |
| 17430 |
case $cache_file in #( |
| 17431 |
*/* | ?:*) |
| 17432 |
mv -f confcache "$cache_file"$$ && |
| 17433 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 17434 |
*) |
| 17435 |
mv -f confcache "$cache_file" ;; |
| 17436 |
esac |
| 17437 |
fi |
| 17438 |
fi |
| 17439 |
else |
| 17440 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 17441 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 17442 |
fi |
| 17443 |
fi |
| 17444 |
rm -f confcache |
| 17445 |
|
| 17446 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17447 |
# Let make expand exec_prefix. |
| 17448 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17449 |
|
| 17450 |
DEFS=-DHAVE_CONFIG_H |
| 17451 |
|
| 17452 |
ac_libobjs= |
| 17453 |
ac_ltlibobjs= |
| 17454 |
U= |
| 17455 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17456 |
# 1. Remove the extension, and $U if already installed. |
| 17457 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17458 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 17459 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17460 |
# will be set to the directory where LIBOBJS objects are built. |
| 17461 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17462 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 17463 |
done |
| 17464 |
LIBOBJS=$ac_libobjs |
| 17465 |
|
| 17466 |
LTLIBOBJS=$ac_ltlibobjs |
| 17467 |
|
| 17468 |
|
| 17469 |
|
| 17470 |
# Check whether --enable-year2038 was given. |
| 17471 |
if test ${enable_year2038+y} |
| 17472 |
then : |
| 17473 |
enableval=$enable_year2038; |
| 17474 |
fi |
| 17475 |
|
| 17476 |
|
| 17477 |
: "${CONFIG_STATUS=./config.status}" |
| 17478 |
ac_write_fail=0 |
| 17479 |
ac_clean_files_save=$ac_clean_files |
| 17480 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17481 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 17482 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17483 |
as_write_fail=0 |
| 17484 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 17485 |
#! $SHELL |
| 17486 |
# Generated by $as_me. |
| 17487 |
# Run this file to recreate the current configuration. |
| 17488 |
# Compiler output produced by configure, useful for debugging |
| 17489 |
# configure, is in config.log if it exists. |
| 17490 |
|
| 17491 |
debug=false |
| 17492 |
ac_cs_recheck=false |
| 17493 |
ac_cs_silent=false |
| 17494 |
|
| 17495 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 17496 |
export SHELL |
| 17497 |
_ASEOF |
| 17498 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 17499 |
## -------------------- ## |
| 17500 |
## M4sh Initialization. ## |
| 17501 |
## -------------------- ## |
| 17502 |
|
| 17503 |
# Be more Bourne compatible |
| 17504 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 17505 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 17506 |
then : |
| 17507 |
emulate sh |
| 17508 |
NULLCMD=: |
| 17509 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 17510 |
# is contrary to our usage. Disable this feature. |
| 17511 |
alias -g '${1+"$@"}'='"$@"' |
| 17512 |
setopt NO_GLOB_SUBST |
| 17513 |
else case e in #( |
| 17514 |
e) case `(set -o) 2>/dev/null` in #( |
| 17515 |
*posix*) : |
| 17516 |
set -o posix ;; #( |
| 17517 |
*) : |
| 17518 |
;; |
| 17519 |
esac ;; |
| 17520 |
esac |
| 17521 |
fi |
| 17522 |
|
| 17523 |
|
| 17524 |
|
| 17525 |
# Reset variables that may have inherited troublesome values from |
| 17526 |
# the environment. |
| 17527 |
|
| 17528 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 17529 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 17530 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 17531 |
# Quoting is to prevent editors from complaining about space-tab. |
| 17532 |
as_nl=' |
| 17533 |
' |
| 17534 |
export as_nl |
| 17535 |
IFS=" "" $as_nl" |
| 17536 |
|
| 17537 |
PS1='$ ' |
| 17538 |
PS2='> ' |
| 17539 |
PS4='+ ' |
| 17540 |
|
| 17541 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 17542 |
LC_ALL=C |
| 17543 |
export LC_ALL |
| 17544 |
LANGUAGE=C |
| 17545 |
export LANGUAGE |
| 17546 |
|
| 17547 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 17548 |
# to be unset--not just set to an empty or harmless value--now, to |
| 17549 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 17550 |
# also avoids known problems related to "unset" and subshell syntax |
| 17551 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 17552 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 17553 |
do eval test \${$as_var+y} \ |
| 17554 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 17555 |
done |
| 17556 |
|
| 17557 |
# Ensure that fds 0, 1, and 2 are open. |
| 17558 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 17559 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 17560 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 17561 |
|
| 17562 |
# The user is always right. |
| 17563 |
if ${PATH_SEPARATOR+false} :; then |
| 17564 |
PATH_SEPARATOR=: |
| 17565 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17566 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17567 |
PATH_SEPARATOR=';' |
| 17568 |
} |
| 17569 |
fi |
| 17570 |
|
| 17571 |
|
| 17572 |
# Find who we are. Look in the path if we contain no directory separator. |
| 17573 |
as_myself= |
| 17574 |
case $0 in #(( |
| 17575 |
*[\\/]* ) as_myself=$0 ;; |
| 17576 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17577 |
for as_dir in $PATH |
| 17578 |
do |
| 17579 |
IFS=$as_save_IFS |
| 17580 |
case $as_dir in #((( |
| 17581 |
'') as_dir=./ ;; |
| 17582 |
*/) ;; |
| 17583 |
*) as_dir=$as_dir/ ;; |
| 17584 |
esac |
| 17585 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 17586 |
done |
| 17587 |
IFS=$as_save_IFS |
| 17588 |
|
| 17589 |
;; |
| 17590 |
esac |
| 17591 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 17592 |
# in which case we are not to be found in the path. |
| 17593 |
if test "x$as_myself" = x; then |
| 17594 |
as_myself=$0 |
| 17595 |
fi |
| 17596 |
if test ! -f "$as_myself"; then |
| 17597 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17598 |
exit 1 |
| 17599 |
fi |
| 17600 |
|
| 17601 |
|
| 17602 |
|
| 17603 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 17604 |
# ---------------------------------------- |
| 17605 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 17606 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 17607 |
# script with STATUS, using 1 if that was 0. |
| 17608 |
as_fn_error () |
| 17609 |
{ |
| 17610 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 17611 |
if test "$4"; then |
| 17612 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 17613 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 17614 |
fi |
| 17615 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 17616 |
as_fn_exit $as_status |
| 17617 |
} # as_fn_error |
| 17618 |
|
| 17619 |
|
| 17620 |
# as_fn_set_status STATUS |
| 17621 |
# ----------------------- |
| 17622 |
# Set $? to STATUS, without forking. |
| 17623 |
as_fn_set_status () |
| 17624 |
{ |
| 17625 |
return $1 |
| 17626 |
} # as_fn_set_status |
| 17627 |
|
| 17628 |
# as_fn_exit STATUS |
| 17629 |
# ----------------- |
| 17630 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 17631 |
as_fn_exit () |
| 17632 |
{ |
| 17633 |
set +e |
| 17634 |
as_fn_set_status $1 |
| 17635 |
exit $1 |
| 17636 |
} # as_fn_exit |
| 17637 |
|
| 17638 |
# as_fn_unset VAR |
| 17639 |
# --------------- |
| 17640 |
# Portably unset VAR. |
| 17641 |
as_fn_unset () |
| 17642 |
{ |
| 17643 |
{ eval $1=; unset $1;} |
| 17644 |
} |
| 17645 |
as_unset=as_fn_unset |
| 17646 |
|
| 17647 |
# as_fn_append VAR VALUE |
| 17648 |
# ---------------------- |
| 17649 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 17650 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 17651 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 17652 |
# implementations. |
| 17653 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 17654 |
then : |
| 17655 |
eval 'as_fn_append () |
| 17656 |
{ |
| 17657 |
eval $1+=\$2 |
| 17658 |
}' |
| 17659 |
else case e in #( |
| 17660 |
e) as_fn_append () |
| 17661 |
{ |
| 17662 |
eval $1=\$$1\$2 |
| 17663 |
} ;; |
| 17664 |
esac |
| 17665 |
fi # as_fn_append |
| 17666 |
|
| 17667 |
# as_fn_arith ARG... |
| 17668 |
# ------------------ |
| 17669 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 17670 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 17671 |
# must be portable across $(()) and expr. |
| 17672 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 17673 |
then : |
| 17674 |
eval 'as_fn_arith () |
| 17675 |
{ |
| 17676 |
as_val=$(( $* )) |
| 17677 |
}' |
| 17678 |
else case e in #( |
| 17679 |
e) as_fn_arith () |
| 17680 |
{ |
| 17681 |
as_val=`expr "$@" || test $? -eq 1` |
| 17682 |
} ;; |
| 17683 |
esac |
| 17684 |
fi # as_fn_arith |
| 17685 |
|
| 17686 |
|
| 17687 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17688 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 17689 |
as_expr=expr |
| 17690 |
else |
| 17691 |
as_expr=false |
| 17692 |
fi |
| 17693 |
|
| 17694 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 17695 |
as_basename=basename |
| 17696 |
else |
| 17697 |
as_basename=false |
| 17698 |
fi |
| 17699 |
|
| 17700 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17701 |
as_dirname=dirname |
| 17702 |
else |
| 17703 |
as_dirname=false |
| 17704 |
fi |
| 17705 |
|
| 17706 |
as_me=`$as_basename -- "$0" || |
| 17707 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17708 |
X"$0" : 'X\(//\)$' \| \ |
| 17709 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17710 |
printf "%s\n" X/"$0" | |
| 17711 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17712 |
s//\1/ |
| 17713 |
q |
| 17714 |
} |
| 17715 |
/^X\/\(\/\/\)$/{ |
| 17716 |
s//\1/ |
| 17717 |
q |
| 17718 |
} |
| 17719 |
/^X\/\(\/\).*/{ |
| 17720 |
s//\1/ |
| 17721 |
q |
| 17722 |
} |
| 17723 |
s/.*/./; q'` |
| 17724 |
|
| 17725 |
# Avoid depending upon Character Ranges. |
| 17726 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17727 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17728 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17729 |
as_cr_digits='0123456789' |
| 17730 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17731 |
|
| 17732 |
|
| 17733 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 17734 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 17735 |
# for compatibility with existing Makefiles. |
| 17736 |
ECHO_C= ECHO_N= ECHO_T= |
| 17737 |
case `echo -n x` in #((((( |
| 17738 |
-n*) |
| 17739 |
case `echo 'xy\c'` in |
| 17740 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17741 |
xy) ECHO_C='\c';; |
| 17742 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 17743 |
ECHO_T=' ';; |
| 17744 |
esac;; |
| 17745 |
*) |
| 17746 |
ECHO_N='-n';; |
| 17747 |
esac |
| 17748 |
|
| 17749 |
# For backward compatibility with old third-party macros, we provide |
| 17750 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 17751 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 17752 |
as_echo='printf %s\n' |
| 17753 |
as_echo_n='printf %s' |
| 17754 |
|
| 17755 |
rm -f conf$$ conf$$.exe conf$$.file |
| 17756 |
if test -d conf$$.dir; then |
| 17757 |
rm -f conf$$.dir/conf$$.file |
| 17758 |
else |
| 17759 |
rm -f conf$$.dir |
| 17760 |
mkdir conf$$.dir 2>/dev/null |
| 17761 |
fi |
| 17762 |
if (echo >conf$$.file) 2>/dev/null; then |
| 17763 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17764 |
as_ln_s='ln -s' |
| 17765 |
# ... but there are two gotchas: |
| 17766 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 17767 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 17768 |
# In both cases, we have to default to 'cp -pR'. |
| 17769 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17770 |
as_ln_s='cp -pR' |
| 17771 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17772 |
as_ln_s=ln |
| 17773 |
else |
| 17774 |
as_ln_s='cp -pR' |
| 17775 |
fi |
| 17776 |
else |
| 17777 |
as_ln_s='cp -pR' |
| 17778 |
fi |
| 17779 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17780 |
rmdir conf$$.dir 2>/dev/null |
| 17781 |
|
| 17782 |
|
| 17783 |
# as_fn_mkdir_p |
| 17784 |
# ------------- |
| 17785 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 17786 |
as_fn_mkdir_p () |
| 17787 |
{ |
| 17788 |
|
| 17789 |
case $as_dir in #( |
| 17790 |
-*) as_dir=./$as_dir;; |
| 17791 |
esac |
| 17792 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 17793 |
as_dirs= |
| 17794 |
while :; do |
| 17795 |
case $as_dir in #( |
| 17796 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17797 |
*) as_qdir=$as_dir;; |
| 17798 |
esac |
| 17799 |
as_dirs="'$as_qdir' $as_dirs" |
| 17800 |
as_dir=`$as_dirname -- "$as_dir" || |
| 17801 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17802 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17803 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 17804 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17805 |
printf "%s\n" X"$as_dir" | |
| 17806 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17807 |
s//\1/ |
| 17808 |
q |
| 17809 |
} |
| 17810 |
/^X\(\/\/\)[^/].*/{ |
| 17811 |
s//\1/ |
| 17812 |
q |
| 17813 |
} |
| 17814 |
/^X\(\/\/\)$/{ |
| 17815 |
s//\1/ |
| 17816 |
q |
| 17817 |
} |
| 17818 |
/^X\(\/\).*/{ |
| 17819 |
s//\1/ |
| 17820 |
q |
| 17821 |
} |
| 17822 |
s/.*/./; q'` |
| 17823 |
test -d "$as_dir" && break |
| 17824 |
done |
| 17825 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17826 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 17827 |
|
| 17828 |
|
| 17829 |
} # as_fn_mkdir_p |
| 17830 |
if mkdir -p . 2>/dev/null; then |
| 17831 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 17832 |
else |
| 17833 |
test -d ./-p && rmdir ./-p |
| 17834 |
as_mkdir_p=false |
| 17835 |
fi |
| 17836 |
|
| 17837 |
|
| 17838 |
# as_fn_executable_p FILE |
| 17839 |
# ----------------------- |
| 17840 |
# Test if FILE is an executable regular file. |
| 17841 |
as_fn_executable_p () |
| 17842 |
{ |
| 17843 |
test -f "$1" && test -x "$1" |
| 17844 |
} # as_fn_executable_p |
| 17845 |
as_test_x='test -x' |
| 17846 |
as_executable_p=as_fn_executable_p |
| 17847 |
|
| 17848 |
# Sed expression to map a string onto a valid CPP name. |
| 17849 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17850 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 17851 |
|
| 17852 |
# Sed expression to map a string onto a valid variable name. |
| 17853 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17854 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 17855 |
|
| 17856 |
|
| 17857 |
exec 6>&1 |
| 17858 |
## ----------------------------------- ## |
| 17859 |
## Main body of $CONFIG_STATUS script. ## |
| 17860 |
## ----------------------------------- ## |
| 17861 |
_ASEOF |
| 17862 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 17863 |
|
| 17864 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17865 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 17866 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 17867 |
# values after options handling. |
| 17868 |
ac_log=" |
| 17869 |
This file was extended by $as_me, which was |
| 17870 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 17871 |
|
| 17872 |
CONFIG_FILES = $CONFIG_FILES |
| 17873 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 17874 |
CONFIG_LINKS = $CONFIG_LINKS |
| 17875 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17876 |
$ $0 $@ |
| 17877 |
|
| 17878 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17879 |
" |
| 17880 |
|
| 17881 |
_ACEOF |
| 17882 |
|
| 17883 |
case $ac_config_files in *" |
| 17884 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17885 |
esac |
| 17886 |
|
| 17887 |
case $ac_config_headers in *" |
| 17888 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17889 |
esac |
| 17890 |
|
| 17891 |
|
| 17892 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17893 |
# Files that config.status was made for. |
| 17894 |
config_files="$ac_config_files" |
| 17895 |
config_headers="$ac_config_headers" |
| 17896 |
|
| 17897 |
_ACEOF |
| 17898 |
|
| 17899 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17900 |
ac_cs_usage="\ |
| 17901 |
'$as_me' instantiates files and other configuration actions |
| 17902 |
from templates according to the current configuration. Unless the files |
| 17903 |
and actions are specified as TAGs, all are instantiated by default. |
| 17904 |
|
| 17905 |
Usage: $0 [OPTION]... [TAG]... |
| 17906 |
|
| 17907 |
-h, --help print this help, then exit |
| 17908 |
-V, --version print version number and configuration settings, then exit |
| 17909 |
--config print configuration, then exit |
| 17910 |
-q, --quiet, --silent |
| 17911 |
do not print progress messages |
| 17912 |
-d, --debug don't remove temporary files |
| 17913 |
--recheck update $as_me by reconfiguring in the same conditions |
| 17914 |
--file=FILE[:TEMPLATE] |
| 17915 |
instantiate the configuration file FILE |
| 17916 |
--header=FILE[:TEMPLATE] |
| 17917 |
instantiate the configuration header FILE |
| 17918 |
|
| 17919 |
Configuration files: |
| 17920 |
$config_files |
| 17921 |
|
| 17922 |
Configuration headers: |
| 17923 |
$config_headers |
| 17924 |
|
| 17925 |
Report bugs to the package provider." |
| 17926 |
|
| 17927 |
_ACEOF |
| 17928 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 17929 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 17930 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17931 |
ac_cs_config='$ac_cs_config_escaped' |
| 17932 |
ac_cs_version="\\ |
| 17933 |
config.status |
| 17934 |
configured by $0, generated by GNU Autoconf 2.72, |
| 17935 |
with options \\"\$ac_cs_config\\" |
| 17936 |
|
| 17937 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 17938 |
This config.status script is free software; the Free Software Foundation |
| 17939 |
gives unlimited permission to copy, distribute and modify it." |
| 17940 |
|
| 17941 |
ac_pwd='$ac_pwd' |
| 17942 |
srcdir='$srcdir' |
| 17943 |
AWK='$AWK' |
| 17944 |
test -n "\$AWK" || AWK=awk |
| 17945 |
_ACEOF |
| 17946 |
|
| 17947 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17948 |
# The default lists apply if the user does not specify any file. |
| 17949 |
ac_need_defaults=: |
| 17950 |
while test $# != 0 |
| 17951 |
do |
| 17952 |
case $1 in |
| 17953 |
--*=?*) |
| 17954 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17955 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 17956 |
ac_shift=: |
| 17957 |
;; |
| 17958 |
--*=) |
| 17959 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17960 |
ac_optarg= |
| 17961 |
ac_shift=: |
| 17962 |
;; |
| 17963 |
*) |
| 17964 |
ac_option=$1 |
| 17965 |
ac_optarg=$2 |
| 17966 |
ac_shift=shift |
| 17967 |
;; |
| 17968 |
esac |
| 17969 |
|
| 17970 |
case $ac_option in |
| 17971 |
# Handling of the options. |
| 17972 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17973 |
ac_cs_recheck=: ;; |
| 17974 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17975 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 17976 |
--config | --confi | --conf | --con | --co | --c ) |
| 17977 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 17978 |
--debug | --debu | --deb | --de | --d | -d ) |
| 17979 |
debug=: ;; |
| 17980 |
--file | --fil | --fi | --f ) |
| 17981 |
$ac_shift |
| 17982 |
case $ac_optarg in |
| 17983 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17984 |
'') as_fn_error $? "missing file argument" ;; |
| 17985 |
esac |
| 17986 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 17987 |
ac_need_defaults=false;; |
| 17988 |
--header | --heade | --head | --hea ) |
| 17989 |
$ac_shift |
| 17990 |
case $ac_optarg in |
| 17991 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17992 |
esac |
| 17993 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 17994 |
ac_need_defaults=false;; |
| 17995 |
--he | --h) |
| 17996 |
# Conflict between --help and --header |
| 17997 |
as_fn_error $? "ambiguous option: '$1' |
| 17998 |
Try '$0 --help' for more information.";; |
| 17999 |
--help | --hel | -h ) |
| 18000 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 18001 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18002 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18003 |
ac_cs_silent=: ;; |
| 18004 |
|
| 18005 |
# This is an error. |
| 18006 |
-*) as_fn_error $? "unrecognized option: '$1' |
| 18007 |
Try '$0 --help' for more information." ;; |
| 18008 |
|
| 18009 |
*) as_fn_append ac_config_targets " $1" |
| 18010 |
ac_need_defaults=false ;; |
| 18011 |
|
| 18012 |
esac |
| 18013 |
shift |
| 18014 |
done |
| 18015 |
|
| 18016 |
ac_configure_extra_args= |
| 18017 |
|
| 18018 |
if $ac_cs_silent; then |
| 18019 |
exec 6>/dev/null |
| 18020 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18021 |
fi |
| 18022 |
|
| 18023 |
_ACEOF |
| 18024 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18025 |
if \$ac_cs_recheck; then |
| 18026 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18027 |
shift |
| 18028 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18029 |
CONFIG_SHELL='$SHELL' |
| 18030 |
export CONFIG_SHELL |
| 18031 |
exec "\$@" |
| 18032 |
fi |
| 18033 |
|
| 18034 |
_ACEOF |
| 18035 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18036 |
exec 5>>auto/config.log |
| 18037 |
{ |
| 18038 |
echo |
| 18039 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18040 |
## Running $as_me. ## |
| 18041 |
_ASBOX |
| 18042 |
printf "%s\n" "$ac_log" |
| 18043 |
} >&5 |
| 18044 |
|
| 18045 |
_ACEOF |
| 18046 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18047 |
_ACEOF |
| 18048 |
|
| 18049 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18050 |
|
| 18051 |
# Handling of arguments. |
| 18052 |
for ac_config_target in $ac_config_targets |
| 18053 |
do |
| 18054 |
case $ac_config_target in |
| 18055 |
"auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 18056 |
"auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 18057 |
|
| 18058 |
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 18059 |
esac |
| 18060 |
done |
| 18061 |
|
| 18062 |
|
| 18063 |
# If the user did not use the arguments to specify the items to instantiate, |
| 18064 |
# then the envvar interface is used. Set only those that are not. |
| 18065 |
# We use the long form for the default assignment because of an extremely |
| 18066 |
# bizarre bug on SunOS 4.1.3. |
| 18067 |
if $ac_need_defaults; then |
| 18068 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 18069 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 18070 |
fi |
| 18071 |
|
| 18072 |
# Have a temporary directory for convenience. Make it in the build tree |
| 18073 |
# simply because there is no reason against having it here, and in addition, |
| 18074 |
# creating and moving files from /tmp can sometimes cause problems. |
| 18075 |
# Hook for its removal unless debugging. |
| 18076 |
# Note that there is a small window in which the directory will not be cleaned: |
| 18077 |
# after its creation but before its name has been assigned to '$tmp'. |
| 18078 |
$debug || |
| 18079 |
{ |
| 18080 |
tmp= ac_tmp= |
| 18081 |
trap 'exit_status=$? |
| 18082 |
: "${ac_tmp:=$tmp}" |
| 18083 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 18084 |
' 0 |
| 18085 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 18086 |
} |
| 18087 |
# Create a (secure) tmp directory for tmp files. |
| 18088 |
|
| 18089 |
{ |
| 18090 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 18091 |
test -d "$tmp" |
| 18092 |
} || |
| 18093 |
{ |
| 18094 |
tmp=./conf$$-$RANDOM |
| 18095 |
(umask 077 && mkdir "$tmp") |
| 18096 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 18097 |
ac_tmp=$tmp |
| 18098 |
|
| 18099 |
# Set up the scripts for CONFIG_FILES section. |
| 18100 |
# No need to generate them if there are no CONFIG_FILES. |
| 18101 |
# This happens for instance with './config.status config.h'. |
| 18102 |
if test -n "$CONFIG_FILES"; then |
| 18103 |
|
| 18104 |
|
| 18105 |
ac_cr=`echo X | tr X '\015'` |
| 18106 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 18107 |
# But we know of no other shell where ac_cr would be empty at this |
| 18108 |
# point, so we can use a bashism as a fallback. |
| 18109 |
if test "x$ac_cr" = x; then |
| 18110 |
eval ac_cr=\$\'\\r\' |
| 18111 |
fi |
| 18112 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18113 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 18114 |
ac_cs_awk_cr='\\r' |
| 18115 |
else |
| 18116 |
ac_cs_awk_cr=$ac_cr |
| 18117 |
fi |
| 18118 |
|
| 18119 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 18120 |
_ACEOF |
| 18121 |
|
| 18122 |
|
| 18123 |
{ |
| 18124 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18125 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18126 |
echo "_ACEOF" |
| 18127 |
} >conf$$subs.sh || |
| 18128 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18129 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 18130 |
ac_delim='%!_!# ' |
| 18131 |
for ac_last_try in false false false false false :; do |
| 18132 |
. ./conf$$subs.sh || |
| 18133 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18134 |
|
| 18135 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18136 |
if test $ac_delim_n = $ac_delim_num; then |
| 18137 |
break |
| 18138 |
elif $ac_last_try; then |
| 18139 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18140 |
else |
| 18141 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18142 |
fi |
| 18143 |
done |
| 18144 |
rm -f conf$$subs.sh |
| 18145 |
|
| 18146 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18147 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 18148 |
_ACEOF |
| 18149 |
sed -n ' |
| 18150 |
h |
| 18151 |
s/^/S["/; s/!.*/"]=/ |
| 18152 |
p |
| 18153 |
g |
| 18154 |
s/^[^!]*!// |
| 18155 |
:repl |
| 18156 |
t repl |
| 18157 |
s/'"$ac_delim"'$// |
| 18158 |
t delim |
| 18159 |
:nl |
| 18160 |
h |
| 18161 |
s/\(.\{148\}\)..*/\1/ |
| 18162 |
t more1 |
| 18163 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18164 |
p |
| 18165 |
n |
| 18166 |
b repl |
| 18167 |
:more1 |
| 18168 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18169 |
p |
| 18170 |
g |
| 18171 |
s/.\{148\}// |
| 18172 |
t nl |
| 18173 |
:delim |
| 18174 |
h |
| 18175 |
s/\(.\{148\}\)..*/\1/ |
| 18176 |
t more2 |
| 18177 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18178 |
p |
| 18179 |
b |
| 18180 |
:more2 |
| 18181 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18182 |
p |
| 18183 |
g |
| 18184 |
s/.\{148\}// |
| 18185 |
t delim |
| 18186 |
' <conf$$subs.awk | sed ' |
| 18187 |
/^[^""]/{ |
| 18188 |
N |
| 18189 |
s/\n// |
| 18190 |
} |
| 18191 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18192 |
rm -f conf$$subs.awk |
| 18193 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18194 |
_ACAWK |
| 18195 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 18196 |
for (key in S) S_is_set[key] = 1 |
| 18197 |
FS = "" |
| 18198 |
|
| 18199 |
} |
| 18200 |
{ |
| 18201 |
line = $ 0 |
| 18202 |
nfields = split(line, field, "@") |
| 18203 |
substed = 0 |
| 18204 |
len = length(field[1]) |
| 18205 |
for (i = 2; i < nfields; i++) { |
| 18206 |
key = field[i] |
| 18207 |
keylen = length(key) |
| 18208 |
if (S_is_set[key]) { |
| 18209 |
value = S[key] |
| 18210 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 18211 |
len += length(value) + length(field[++i]) |
| 18212 |
substed = 1 |
| 18213 |
} else |
| 18214 |
len += 1 + keylen |
| 18215 |
} |
| 18216 |
|
| 18217 |
print line |
| 18218 |
} |
| 18219 |
|
| 18220 |
_ACAWK |
| 18221 |
_ACEOF |
| 18222 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18223 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 18224 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 18225 |
else |
| 18226 |
cat |
| 18227 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 18228 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 18229 |
_ACEOF |
| 18230 |
|
| 18231 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 18232 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 18233 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 18234 |
# (actually we leave an empty line to preserve line numbers). |
| 18235 |
if test "x$srcdir" = x.; then |
| 18236 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 18237 |
h |
| 18238 |
s/// |
| 18239 |
s/^/:/ |
| 18240 |
s/[ ]*$/:/ |
| 18241 |
s/:\$(srcdir):/:/g |
| 18242 |
s/:\${srcdir}:/:/g |
| 18243 |
s/:@srcdir@:/:/g |
| 18244 |
s/^:*// |
| 18245 |
s/:*$// |
| 18246 |
x |
| 18247 |
s/\(=[ ]*\).*/\1/ |
| 18248 |
G |
| 18249 |
s/\n// |
| 18250 |
s/^[^=]*=[ ]*$// |
| 18251 |
}' |
| 18252 |
fi |
| 18253 |
|
| 18254 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18255 |
fi # test -n "$CONFIG_FILES" |
| 18256 |
|
| 18257 |
# Set up the scripts for CONFIG_HEADERS section. |
| 18258 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 18259 |
# This happens for instance with './config.status Makefile'. |
| 18260 |
if test -n "$CONFIG_HEADERS"; then |
| 18261 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 18262 |
BEGIN { |
| 18263 |
_ACEOF |
| 18264 |
|
| 18265 |
# Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 18266 |
# here-document in config.status, that substitutes the proper values into |
| 18267 |
# config.h.in to produce config.h. |
| 18268 |
|
| 18269 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 18270 |
# handling of long lines. |
| 18271 |
ac_delim='%!_!# ' |
| 18272 |
for ac_last_try in false false :; do |
| 18273 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 18274 |
if test -z "$ac_tt"; then |
| 18275 |
break |
| 18276 |
elif $ac_last_try; then |
| 18277 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 18278 |
else |
| 18279 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18280 |
fi |
| 18281 |
done |
| 18282 |
|
| 18283 |
# For the awk script, D is an array of macro values keyed by name, |
| 18284 |
# likewise P contains macro parameters if any. Preserve backslash |
| 18285 |
# newline sequences. |
| 18286 |
|
| 18287 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 18288 |
sed -n ' |
| 18289 |
s/.\{148\}/&'"$ac_delim"'/g |
| 18290 |
t rset |
| 18291 |
:rset |
| 18292 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 18293 |
t def |
| 18294 |
d |
| 18295 |
:def |
| 18296 |
s/\\$// |
| 18297 |
t bsnl |
| 18298 |
s/["\\]/\\&/g |
| 18299 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18300 |
D["\1"]=" \3"/p |
| 18301 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 18302 |
d |
| 18303 |
:bsnl |
| 18304 |
s/["\\]/\\&/g |
| 18305 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 18306 |
D["\1"]=" \3\\\\\\n"\\/p |
| 18307 |
t cont |
| 18308 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 18309 |
t cont |
| 18310 |
d |
| 18311 |
:cont |
| 18312 |
n |
| 18313 |
s/.\{148\}/&'"$ac_delim"'/g |
| 18314 |
t clear |
| 18315 |
:clear |
| 18316 |
s/\\$// |
| 18317 |
t bsnlc |
| 18318 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 18319 |
d |
| 18320 |
:bsnlc |
| 18321 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 18322 |
b cont |
| 18323 |
' <confdefs.h | sed ' |
| 18324 |
s/'"$ac_delim"'/"\\\ |
| 18325 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18326 |
|
| 18327 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18328 |
for (key in D) D_is_set[key] = 1 |
| 18329 |
FS = "" |
| 18330 |
} |
| 18331 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 18332 |
line = \$ 0 |
| 18333 |
split(line, arg, " ") |
| 18334 |
if (arg[1] == "#") { |
| 18335 |
defundef = arg[2] |
| 18336 |
mac1 = arg[3] |
| 18337 |
} else { |
| 18338 |
defundef = substr(arg[1], 2) |
| 18339 |
mac1 = arg[2] |
| 18340 |
} |
| 18341 |
split(mac1, mac2, "(") #) |
| 18342 |
macro = mac2[1] |
| 18343 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 18344 |
if (D_is_set[macro]) { |
| 18345 |
# Preserve the white space surrounding the "#". |
| 18346 |
print prefix "define", macro P[macro] D[macro] |
| 18347 |
next |
| 18348 |
} else { |
| 18349 |
# Replace #undef with comments. This is necessary, for example, |
| 18350 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 18351 |
# on some systems where configure will not decide to define it. |
| 18352 |
if (defundef == "undef") { |
| 18353 |
print "/*", prefix defundef, macro, "*/" |
| 18354 |
next |
| 18355 |
} |
| 18356 |
} |
| 18357 |
} |
| 18358 |
{ print } |
| 18359 |
_ACAWK |
| 18360 |
_ACEOF |
| 18361 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18362 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 18363 |
fi # test -n "$CONFIG_HEADERS" |
| 18364 |
|
| 18365 |
|
| 18366 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18367 |
shift |
| 18368 |
for ac_tag |
| 18369 |
do |
| 18370 |
case $ac_tag in |
| 18371 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 18372 |
esac |
| 18373 |
case $ac_mode$ac_tag in |
| 18374 |
:[FHL]*:*);; |
| 18375 |
:L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 18376 |
:[FH]-) ac_tag=-:-;; |
| 18377 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18378 |
esac |
| 18379 |
ac_save_IFS=$IFS |
| 18380 |
IFS=: |
| 18381 |
set x $ac_tag |
| 18382 |
IFS=$ac_save_IFS |
| 18383 |
shift |
| 18384 |
ac_file=$1 |
| 18385 |
shift |
| 18386 |
|
| 18387 |
case $ac_mode in |
| 18388 |
:L) ac_source=$1;; |
| 18389 |
:[FH]) |
| 18390 |
ac_file_inputs= |
| 18391 |
for ac_f |
| 18392 |
do |
| 18393 |
case $ac_f in |
| 18394 |
-) ac_f="$ac_tmp/stdin";; |
| 18395 |
*) # Look for the file first in the build tree, then in the source tree |
| 18396 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18397 |
# because $ac_f cannot contain ':'. |
| 18398 |
test -f "$ac_f" || |
| 18399 |
case $ac_f in |
| 18400 |
[\\/$]*) false;; |
| 18401 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18402 |
esac || |
| 18403 |
as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 18404 |
esac |
| 18405 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 18406 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 18407 |
done |
| 18408 |
|
| 18409 |
# Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 18410 |
# use $as_me), people would be surprised to read: |
| 18411 |
# /* config.h. Generated by config.status. */ |
| 18412 |
configure_input='Generated from '` |
| 18413 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 18414 |
`' by configure.' |
| 18415 |
if test x"$ac_file" != x-; then |
| 18416 |
configure_input="$ac_file. $configure_input" |
| 18417 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 18418 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 18419 |
fi |
| 18420 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 18421 |
case $configure_input in #( |
| 18422 |
*\&* | *\|* | *\\* ) |
| 18423 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 18424 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18425 |
*) ac_sed_conf_input=$configure_input;; |
| 18426 |
esac |
| 18427 |
|
| 18428 |
case $ac_tag in |
| 18429 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 18430 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 18431 |
esac |
| 18432 |
;; |
| 18433 |
esac |
| 18434 |
|
| 18435 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 18436 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18437 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18438 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 18439 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 18440 |
printf "%s\n" X"$ac_file" | |
| 18441 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18442 |
s//\1/ |
| 18443 |
q |
| 18444 |
} |
| 18445 |
/^X\(\/\/\)[^/].*/{ |
| 18446 |
s//\1/ |
| 18447 |
q |
| 18448 |
} |
| 18449 |
/^X\(\/\/\)$/{ |
| 18450 |
s//\1/ |
| 18451 |
q |
| 18452 |
} |
| 18453 |
/^X\(\/\).*/{ |
| 18454 |
s//\1/ |
| 18455 |
q |
| 18456 |
} |
| 18457 |
s/.*/./; q'` |
| 18458 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 18459 |
ac_builddir=. |
| 18460 |
|
| 18461 |
case "$ac_dir" in |
| 18462 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18463 |
*) |
| 18464 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 18465 |
# A ".." for each directory in $ac_dir_suffix. |
| 18466 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 18467 |
case $ac_top_builddir_sub in |
| 18468 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18469 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18470 |
esac ;; |
| 18471 |
esac |
| 18472 |
ac_abs_top_builddir=$ac_pwd |
| 18473 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18474 |
# for backward compatibility: |
| 18475 |
ac_top_builddir=$ac_top_build_prefix |
| 18476 |
|
| 18477 |
case $srcdir in |
| 18478 |
.) # We are building in place. |
| 18479 |
ac_srcdir=. |
| 18480 |
ac_top_srcdir=$ac_top_builddir_sub |
| 18481 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 18482 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 18483 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 18484 |
ac_top_srcdir=$srcdir |
| 18485 |
ac_abs_top_srcdir=$srcdir ;; |
| 18486 |
*) # Relative name. |
| 18487 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18488 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18489 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 18490 |
esac |
| 18491 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 18492 |
|
| 18493 |
|
| 18494 |
case $ac_mode in |
| 18495 |
:F) |
| 18496 |
# |
| 18497 |
# CONFIG_FILE |
| 18498 |
# |
| 18499 |
|
| 18500 |
_ACEOF |
| 18501 |
|
| 18502 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18503 |
# If the template does not know about datarootdir, expand it. |
| 18504 |
# FIXME: This hack should be removed a few years after 2.60. |
| 18505 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 18506 |
ac_sed_dataroot=' |
| 18507 |
/datarootdir/ { |
| 18508 |
p |
| 18509 |
q |
| 18510 |
} |
| 18511 |
/@datadir@/p |
| 18512 |
/@docdir@/p |
| 18513 |
/@infodir@/p |
| 18514 |
/@localedir@/p |
| 18515 |
/@mandir@/p' |
| 18516 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 18517 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 18518 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 18519 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18520 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 18521 |
_ACEOF |
| 18522 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18523 |
ac_datarootdir_hack=' |
| 18524 |
s&@datadir@&$datadir&g |
| 18525 |
s&@docdir@&$docdir&g |
| 18526 |
s&@infodir@&$infodir&g |
| 18527 |
s&@localedir@&$localedir&g |
| 18528 |
s&@mandir@&$mandir&g |
| 18529 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 18530 |
esac |
| 18531 |
_ACEOF |
| 18532 |
|
| 18533 |
# Neutralize VPATH when '$srcdir' = '.'. |
| 18534 |
# Shell code in configure.ac might set extrasub. |
| 18535 |
# FIXME: do we really want to maintain this feature? |
| 18536 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18537 |
ac_sed_extra="$ac_vpsub |
| 18538 |
$extrasub |
| 18539 |
_ACEOF |
| 18540 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18541 |
:t |
| 18542 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18543 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 18544 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18545 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 18546 |
s&@srcdir@&$ac_srcdir&;t t |
| 18547 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18548 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18549 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18550 |
s&@builddir@&$ac_builddir&;t t |
| 18551 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18552 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18553 |
$ac_datarootdir_hack |
| 18554 |
" |
| 18555 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 18556 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 18557 |
|
| 18558 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 18559 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 18560 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 18561 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 18562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 18563 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 18564 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 18565 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 18566 |
|
| 18567 |
rm -f "$ac_tmp/stdin" |
| 18568 |
case $ac_file in |
| 18569 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 18570 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 18571 |
esac \ |
| 18572 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 18573 |
;; |
| 18574 |
:H) |
| 18575 |
# |
| 18576 |
# CONFIG_HEADER |
| 18577 |
# |
| 18578 |
if test x"$ac_file" != x-; then |
| 18579 |
{ |
| 18580 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 18581 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 18582 |
} >"$ac_tmp/config.h" \ |
| 18583 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 18584 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 18585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 18586 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 18587 |
else |
| 18588 |
rm -f "$ac_file" |
| 18589 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 18590 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 18591 |
fi |
| 18592 |
else |
| 18593 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 18594 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 18595 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 18596 |
fi |
| 18597 |
;; |
| 18598 |
|
| 18599 |
|
| 18600 |
esac |
| 18601 |
|
| 18602 |
done # for ac_tag |
| 18603 |
|
| 18604 |
|
| 18605 |
as_fn_exit 0 |
| 18606 |
_ACEOF |
| 18607 |
ac_clean_files=$ac_clean_files_save |
| 18608 |
|
| 18609 |
test $ac_write_fail = 0 || |
| 18610 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 18611 |
|
| 18612 |
|
| 18613 |
# configure is writing to config.log, and then calls config.status. |
| 18614 |
# config.status does its own redirection, appending to config.log. |
| 18615 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 18616 |
# by configure, so config.status won't be able to write to it; its |
| 18617 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 18618 |
# effectively closing config.log, so it can be properly (re)opened and |
| 18619 |
# appended to by config.status. When coming back to configure, we |
| 18620 |
# need to make the FD available again. |
| 18621 |
if test "$no_create" != yes; then |
| 18622 |
ac_cs_success=: |
| 18623 |
ac_config_status_args= |
| 18624 |
test "$silent" = yes && |
| 18625 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 18626 |
exec 5>/dev/null |
| 18627 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 18628 |
exec 5>>auto/config.log |
| 18629 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18630 |
# would make configure fail if this is the last instruction. |
| 18631 |
$ac_cs_success || as_fn_exit 1 |
| 18632 |
fi |
| 18633 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 18634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 18635 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 18636 |
fi |
| 18637 |
|
| 18638 |
|
| 18639 |
|