| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.65 for emacs 24.2.50. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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 |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | case $0 in #(( |
| 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
| 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
| 101 | IFS=$as_save_IFS |
| 102 | |
| 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 112 | exit 1 |
| 113 | fi |
| 114 | |
| 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
| 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
| 132 | |
| 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
| 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
| 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
| 393 | |
| 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 398 | $as_echo X/"$0" | |
| 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
| 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
| 430 | sed ' |
| 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
| 435 | N |
| 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 438 | t loop |
| 439 | s/-\n.*// |
| 440 | ' >$as_me.lineno && |
| 441 | chmod +x "$as_me.lineno" || |
| 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
| 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
| 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
| 452 | ECHO_C= ECHO_N= ECHO_T= |
| 453 | case `echo -n x` in #((((( |
| 454 | -n*) |
| 455 | case `echo 'xy\c'` in |
| 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
| 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
| 463 | esac |
| 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
| 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
| 470 | mkdir conf$$.dir 2>/dev/null |
| 471 | fi |
| 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
| 484 | as_ln_s='cp -p' |
| 485 | fi |
| 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
| 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
| 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
| 493 | as_mkdir_p='mkdir -p "$as_dir"' |
| 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
| 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
| 501 | else |
| 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
| 510 | test -d "$1/."; |
| 511 | else |
| 512 | case $1 in #( |
| 513 | -*)set "./$1";; |
| 514 | esac; |
| 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
| 519 | fi |
| 520 | as_executable_p=$as_test_x |
| 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
| 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
| 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
| 537 | # |
| 538 | # Initializations. |
| 539 | # |
| 540 | ac_default_prefix=/usr/local |
| 541 | ac_clean_files= |
| 542 | ac_config_libobj_dir=. |
| 543 | LIBOBJS= |
| 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
| 548 | |
| 549 | # Identity of this package. |
| 550 | PACKAGE_NAME='emacs' |
| 551 | PACKAGE_TARNAME='emacs' |
| 552 | PACKAGE_VERSION='24.2.50' |
| 553 | PACKAGE_STRING='emacs 24.2.50' |
| 554 | PACKAGE_BUGREPORT='' |
| 555 | PACKAGE_URL='' |
| 556 | |
| 557 | ac_unique_file="src/lisp.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
| 561 | #ifdef HAVE_SYS_TYPES_H |
| 562 | # include <sys/types.h> |
| 563 | #endif |
| 564 | #ifdef HAVE_SYS_STAT_H |
| 565 | # include <sys/stat.h> |
| 566 | #endif |
| 567 | #ifdef STDC_HEADERS |
| 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
| 571 | # ifdef HAVE_STDLIB_H |
| 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
| 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
| 581 | #ifdef HAVE_STRINGS_H |
| 582 | # include <strings.h> |
| 583 | #endif |
| 584 | #ifdef HAVE_INTTYPES_H |
| 585 | # include <inttypes.h> |
| 586 | #endif |
| 587 | #ifdef HAVE_STDINT_H |
| 588 | # include <stdint.h> |
| 589 | #endif |
| 590 | #ifdef HAVE_UNISTD_H |
| 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
| 594 | ac_header_list= |
| 595 | ac_func_list= |
| 596 | gl_getopt_required=POSIX |
| 597 | gl_getopt_required=POSIX |
| 598 | ac_subst_vars='gltests_LTLIBOBJS |
| 599 | gltests_LIBOBJS |
| 600 | gl_LTLIBOBJS |
| 601 | gl_LIBOBJS |
| 602 | am__EXEEXT_FALSE |
| 603 | am__EXEEXT_TRUE |
| 604 | LTLIBOBJS |
| 605 | LIBOBJS |
| 606 | SUBDIR_MAKEFILES_IN |
| 607 | LIB_GCC |
| 608 | LD_FIRSTFLAG |
| 609 | LD_SWITCH_SYSTEM_TEMACS |
| 610 | LIBGNU_LTLIBDEPS |
| 611 | LIBGNU_LIBDEPS |
| 612 | gltests_WITNESS |
| 613 | gl_GNULIB_ENABLED_verify_FALSE |
| 614 | gl_GNULIB_ENABLED_verify_TRUE |
| 615 | gl_GNULIB_ENABLED_strtoull_FALSE |
| 616 | gl_GNULIB_ENABLED_strtoull_TRUE |
| 617 | gl_GNULIB_ENABLED_strtoll_FALSE |
| 618 | gl_GNULIB_ENABLED_strtoll_TRUE |
| 619 | gl_GNULIB_ENABLED_stat_FALSE |
| 620 | gl_GNULIB_ENABLED_stat_TRUE |
| 621 | gl_GNULIB_ENABLED_pathmax_FALSE |
| 622 | gl_GNULIB_ENABLED_pathmax_TRUE |
| 623 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE |
| 624 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE |
| 625 | gl_GNULIB_ENABLED_dosname_FALSE |
| 626 | gl_GNULIB_ENABLED_dosname_TRUE |
| 627 | LTLIBINTL |
| 628 | LIBINTL |
| 629 | WINDOWS_64_BIT_OFF_T |
| 630 | HAVE_UNISTD_H |
| 631 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H |
| 632 | NEXT_UNISTD_H |
| 633 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 634 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 635 | TIME_H_DEFINES_STRUCT_TIMESPEC |
| 636 | NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 637 | NEXT_TIME_H |
| 638 | WINDOWS_64_BIT_ST_SIZE |
| 639 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
| 640 | NEXT_SYS_STAT_H |
| 641 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 642 | NEXT_STDLIB_H |
| 643 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H |
| 644 | NEXT_STDIO_H |
| 645 | REPLACE_VSPRINTF |
| 646 | REPLACE_VSNPRINTF |
| 647 | REPLACE_VPRINTF |
| 648 | REPLACE_VFPRINTF |
| 649 | REPLACE_VDPRINTF |
| 650 | REPLACE_VASPRINTF |
| 651 | REPLACE_TMPFILE |
| 652 | REPLACE_STDIO_WRITE_FUNCS |
| 653 | REPLACE_STDIO_READ_FUNCS |
| 654 | REPLACE_SPRINTF |
| 655 | REPLACE_SNPRINTF |
| 656 | REPLACE_RENAMEAT |
| 657 | REPLACE_RENAME |
| 658 | REPLACE_REMOVE |
| 659 | REPLACE_PRINTF |
| 660 | REPLACE_POPEN |
| 661 | REPLACE_PERROR |
| 662 | REPLACE_OBSTACK_PRINTF |
| 663 | REPLACE_GETLINE |
| 664 | REPLACE_GETDELIM |
| 665 | REPLACE_FTELLO |
| 666 | REPLACE_FTELL |
| 667 | REPLACE_FSEEKO |
| 668 | REPLACE_FSEEK |
| 669 | REPLACE_FREOPEN |
| 670 | REPLACE_FPURGE |
| 671 | REPLACE_FPRINTF |
| 672 | REPLACE_FOPEN |
| 673 | REPLACE_FFLUSH |
| 674 | REPLACE_FDOPEN |
| 675 | REPLACE_FCLOSE |
| 676 | REPLACE_DPRINTF |
| 677 | HAVE_VDPRINTF |
| 678 | HAVE_VASPRINTF |
| 679 | HAVE_RENAMEAT |
| 680 | HAVE_POPEN |
| 681 | HAVE_PCLOSE |
| 682 | HAVE_FTELLO |
| 683 | HAVE_FSEEKO |
| 684 | HAVE_DPRINTF |
| 685 | HAVE_DECL_VSNPRINTF |
| 686 | HAVE_DECL_SNPRINTF |
| 687 | HAVE_DECL_OBSTACK_PRINTF |
| 688 | HAVE_DECL_GETLINE |
| 689 | HAVE_DECL_GETDELIM |
| 690 | HAVE_DECL_FTELLO |
| 691 | HAVE_DECL_FSEEKO |
| 692 | HAVE_DECL_FPURGE |
| 693 | GNULIB_VSPRINTF_POSIX |
| 694 | GNULIB_VSNPRINTF |
| 695 | GNULIB_VPRINTF_POSIX |
| 696 | GNULIB_VPRINTF |
| 697 | GNULIB_VFPRINTF_POSIX |
| 698 | GNULIB_VFPRINTF |
| 699 | GNULIB_VDPRINTF |
| 700 | GNULIB_VSCANF |
| 701 | GNULIB_VFSCANF |
| 702 | GNULIB_VASPRINTF |
| 703 | GNULIB_TMPFILE |
| 704 | GNULIB_STDIO_H_SIGPIPE |
| 705 | GNULIB_STDIO_H_NONBLOCKING |
| 706 | GNULIB_SPRINTF_POSIX |
| 707 | GNULIB_SNPRINTF |
| 708 | GNULIB_SCANF |
| 709 | GNULIB_RENAMEAT |
| 710 | GNULIB_RENAME |
| 711 | GNULIB_REMOVE |
| 712 | GNULIB_PUTS |
| 713 | GNULIB_PUTCHAR |
| 714 | GNULIB_PUTC |
| 715 | GNULIB_PRINTF_POSIX |
| 716 | GNULIB_PRINTF |
| 717 | GNULIB_POPEN |
| 718 | GNULIB_PERROR |
| 719 | GNULIB_PCLOSE |
| 720 | GNULIB_OBSTACK_PRINTF_POSIX |
| 721 | GNULIB_OBSTACK_PRINTF |
| 722 | GNULIB_GETLINE |
| 723 | GNULIB_GETDELIM |
| 724 | GNULIB_GETCHAR |
| 725 | GNULIB_GETC |
| 726 | GNULIB_FWRITE |
| 727 | GNULIB_FTELLO |
| 728 | GNULIB_FTELL |
| 729 | GNULIB_FSEEKO |
| 730 | GNULIB_FSEEK |
| 731 | GNULIB_FSCANF |
| 732 | GNULIB_FREOPEN |
| 733 | GNULIB_FREAD |
| 734 | GNULIB_FPUTS |
| 735 | GNULIB_FPUTC |
| 736 | GNULIB_FPURGE |
| 737 | GNULIB_FPRINTF_POSIX |
| 738 | GNULIB_FPRINTF |
| 739 | GNULIB_FOPEN |
| 740 | GNULIB_FGETS |
| 741 | GNULIB_FGETC |
| 742 | GNULIB_FFLUSH |
| 743 | GNULIB_FDOPEN |
| 744 | GNULIB_FCLOSE |
| 745 | GNULIB_DPRINTF |
| 746 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 747 | NEXT_STDDEF_H |
| 748 | GL_GENERATE_STDDEF_H_FALSE |
| 749 | GL_GENERATE_STDDEF_H_TRUE |
| 750 | STDDEF_H |
| 751 | HAVE_WCHAR_T |
| 752 | REPLACE_NULL |
| 753 | HAVE__BOOL |
| 754 | GL_GENERATE_STDBOOL_H_FALSE |
| 755 | GL_GENERATE_STDBOOL_H_TRUE |
| 756 | STDBOOL_H |
| 757 | GL_GENERATE_STDARG_H_FALSE |
| 758 | GL_GENERATE_STDARG_H_TRUE |
| 759 | STDARG_H |
| 760 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H |
| 761 | NEXT_STDARG_H |
| 762 | GL_GENERATE_STDALIGN_H_FALSE |
| 763 | GL_GENERATE_STDALIGN_H_TRUE |
| 764 | STDALIGN_H |
| 765 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H |
| 766 | NEXT_SIGNAL_H |
| 767 | LIB_PTHREAD_SIGMASK |
| 768 | REPLACE_RAISE |
| 769 | REPLACE_PTHREAD_SIGMASK |
| 770 | HAVE_SIGHANDLER_T |
| 771 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T |
| 772 | HAVE_STRUCT_SIGACTION_SA_SIGACTION |
| 773 | HAVE_SIGACTION |
| 774 | HAVE_SIGINFO_T |
| 775 | HAVE_SIGSET_T |
| 776 | HAVE_RAISE |
| 777 | HAVE_PTHREAD_SIGMASK |
| 778 | HAVE_POSIX_SIGNALBLOCKING |
| 779 | GNULIB_SIGACTION |
| 780 | GNULIB_SIGPROCMASK |
| 781 | GNULIB_SIGNAL_H_SIGPIPE |
| 782 | GNULIB_RAISE |
| 783 | GNULIB_PTHREAD_SIGMASK |
| 784 | HAVE_SYS_SELECT_H |
| 785 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H |
| 786 | NEXT_SYS_SELECT_H |
| 787 | REPLACE_SELECT |
| 788 | REPLACE_PSELECT |
| 789 | HAVE_PSELECT |
| 790 | GNULIB_SELECT |
| 791 | GNULIB_PSELECT |
| 792 | REPLACE_TIMEGM |
| 793 | REPLACE_NANOSLEEP |
| 794 | REPLACE_MKTIME |
| 795 | REPLACE_LOCALTIME_R |
| 796 | HAVE_TIMEGM |
| 797 | HAVE_STRPTIME |
| 798 | HAVE_NANOSLEEP |
| 799 | HAVE_DECL_LOCALTIME_R |
| 800 | GNULIB_TIME_R |
| 801 | GNULIB_TIMEGM |
| 802 | GNULIB_STRPTIME |
| 803 | GNULIB_NANOSLEEP |
| 804 | GNULIB_MKTIME |
| 805 | REPLACE_UTIMENSAT |
| 806 | REPLACE_STAT |
| 807 | REPLACE_MKNOD |
| 808 | REPLACE_MKFIFO |
| 809 | REPLACE_MKDIR |
| 810 | REPLACE_LSTAT |
| 811 | REPLACE_FUTIMENS |
| 812 | REPLACE_FSTATAT |
| 813 | REPLACE_FSTAT |
| 814 | HAVE_UTIMENSAT |
| 815 | HAVE_MKNODAT |
| 816 | HAVE_MKNOD |
| 817 | HAVE_MKFIFOAT |
| 818 | HAVE_MKFIFO |
| 819 | HAVE_MKDIRAT |
| 820 | HAVE_LSTAT |
| 821 | HAVE_LCHMOD |
| 822 | HAVE_FUTIMENS |
| 823 | HAVE_FSTATAT |
| 824 | HAVE_FCHMODAT |
| 825 | GNULIB_UTIMENSAT |
| 826 | GNULIB_STAT |
| 827 | GNULIB_MKNODAT |
| 828 | GNULIB_MKNOD |
| 829 | GNULIB_MKFIFOAT |
| 830 | GNULIB_MKFIFO |
| 831 | GNULIB_MKDIRAT |
| 832 | GNULIB_LSTAT |
| 833 | GNULIB_LCHMOD |
| 834 | GNULIB_FUTIMENS |
| 835 | GNULIB_FSTATAT |
| 836 | GNULIB_FSTAT |
| 837 | GNULIB_FCHMODAT |
| 838 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H |
| 839 | NEXT_INTTYPES_H |
| 840 | UINT64_MAX_EQ_ULONG_MAX |
| 841 | UINT32_MAX_LT_UINTMAX_MAX |
| 842 | PRIPTR_PREFIX |
| 843 | PRI_MACROS_BROKEN |
| 844 | INT64_MAX_EQ_LONG_MAX |
| 845 | INT32_MAX_LT_INTMAX_MAX |
| 846 | REPLACE_STRTOIMAX |
| 847 | HAVE_DECL_STRTOUMAX |
| 848 | HAVE_DECL_STRTOIMAX |
| 849 | HAVE_DECL_IMAXDIV |
| 850 | HAVE_DECL_IMAXABS |
| 851 | GNULIB_STRTOUMAX |
| 852 | GNULIB_STRTOIMAX |
| 853 | GNULIB_IMAXDIV |
| 854 | GNULIB_IMAXABS |
| 855 | GL_GENERATE_STDINT_H_FALSE |
| 856 | GL_GENERATE_STDINT_H_TRUE |
| 857 | STDINT_H |
| 858 | WINT_T_SUFFIX |
| 859 | WCHAR_T_SUFFIX |
| 860 | SIG_ATOMIC_T_SUFFIX |
| 861 | SIZE_T_SUFFIX |
| 862 | PTRDIFF_T_SUFFIX |
| 863 | HAVE_SIGNED_WINT_T |
| 864 | HAVE_SIGNED_WCHAR_T |
| 865 | HAVE_SIGNED_SIG_ATOMIC_T |
| 866 | BITSIZEOF_WINT_T |
| 867 | BITSIZEOF_WCHAR_T |
| 868 | BITSIZEOF_SIG_ATOMIC_T |
| 869 | BITSIZEOF_SIZE_T |
| 870 | BITSIZEOF_PTRDIFF_T |
| 871 | APPLE_UNIVERSAL_BUILD |
| 872 | HAVE_SYS_BITYPES_H |
| 873 | HAVE_SYS_INTTYPES_H |
| 874 | HAVE_STDINT_H |
| 875 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 876 | NEXT_STDINT_H |
| 877 | HAVE_SYS_TYPES_H |
| 878 | HAVE_INTTYPES_H |
| 879 | HAVE_WCHAR_H |
| 880 | HAVE_UNSIGNED_LONG_LONG_INT |
| 881 | HAVE_LONG_LONG_INT |
| 882 | HAVE_WINSOCK2_H |
| 883 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H |
| 884 | NEXT_SYS_TIME_H |
| 885 | REPLACE_STRUCT_TIMEVAL |
| 886 | REPLACE_GETTIMEOFDAY |
| 887 | HAVE_SYS_TIME_H |
| 888 | HAVE_STRUCT_TIMEVAL |
| 889 | HAVE_GETTIMEOFDAY |
| 890 | GNULIB_GETTIMEOFDAY |
| 891 | GNULIB_GL_UNISTD_H_GETOPT |
| 892 | GETOPT_H |
| 893 | HAVE_GETOPT_H |
| 894 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H |
| 895 | NEXT_GETOPT_H |
| 896 | PRAGMA_COLUMNS |
| 897 | PRAGMA_SYSTEM_HEADER |
| 898 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 899 | INCLUDE_NEXT |
| 900 | GETLOADAVG_LIBS |
| 901 | REPLACE_WCTOMB |
| 902 | REPLACE_UNSETENV |
| 903 | REPLACE_STRTOD |
| 904 | REPLACE_SETENV |
| 905 | REPLACE_REALPATH |
| 906 | REPLACE_REALLOC |
| 907 | REPLACE_RANDOM_R |
| 908 | REPLACE_PUTENV |
| 909 | REPLACE_PTSNAME_R |
| 910 | REPLACE_MKSTEMP |
| 911 | REPLACE_MBTOWC |
| 912 | REPLACE_MALLOC |
| 913 | REPLACE_CANONICALIZE_FILE_NAME |
| 914 | REPLACE_CALLOC |
| 915 | HAVE_DECL_UNSETENV |
| 916 | HAVE_UNLOCKPT |
| 917 | HAVE_SYS_LOADAVG_H |
| 918 | HAVE_STRUCT_RANDOM_DATA |
| 919 | HAVE_STRTOULL |
| 920 | HAVE_STRTOLL |
| 921 | HAVE_STRTOD |
| 922 | HAVE_DECL_SETENV |
| 923 | HAVE_SETENV |
| 924 | HAVE_RPMATCH |
| 925 | HAVE_REALPATH |
| 926 | HAVE_RANDOM_R |
| 927 | HAVE_RANDOM_H |
| 928 | HAVE_RANDOM |
| 929 | HAVE_PTSNAME_R |
| 930 | HAVE_PTSNAME |
| 931 | HAVE_POSIX_OPENPT |
| 932 | HAVE_MKSTEMPS |
| 933 | HAVE_MKSTEMP |
| 934 | HAVE_MKOSTEMPS |
| 935 | HAVE_MKOSTEMP |
| 936 | HAVE_MKDTEMP |
| 937 | HAVE_GRANTPT |
| 938 | HAVE_GETSUBOPT |
| 939 | HAVE_DECL_GETLOADAVG |
| 940 | HAVE_CANONICALIZE_FILE_NAME |
| 941 | HAVE_ATOLL |
| 942 | HAVE__EXIT |
| 943 | GNULIB_WCTOMB |
| 944 | GNULIB_UNSETENV |
| 945 | GNULIB_UNLOCKPT |
| 946 | GNULIB_SYSTEM_POSIX |
| 947 | GNULIB_STRTOULL |
| 948 | GNULIB_STRTOLL |
| 949 | GNULIB_STRTOD |
| 950 | GNULIB_SETENV |
| 951 | GNULIB_RPMATCH |
| 952 | GNULIB_REALPATH |
| 953 | GNULIB_REALLOC_POSIX |
| 954 | GNULIB_RANDOM_R |
| 955 | GNULIB_RANDOM |
| 956 | GNULIB_PUTENV |
| 957 | GNULIB_PTSNAME_R |
| 958 | GNULIB_PTSNAME |
| 959 | GNULIB_POSIX_OPENPT |
| 960 | GNULIB_MKSTEMPS |
| 961 | GNULIB_MKSTEMP |
| 962 | GNULIB_MKOSTEMPS |
| 963 | GNULIB_MKOSTEMP |
| 964 | GNULIB_MKDTEMP |
| 965 | GNULIB_MBTOWC |
| 966 | GNULIB_MALLOC_POSIX |
| 967 | GNULIB_GRANTPT |
| 968 | GNULIB_GETSUBOPT |
| 969 | GNULIB_GETLOADAVG |
| 970 | GNULIB_CANONICALIZE_FILE_NAME |
| 971 | GNULIB_CALLOC_POSIX |
| 972 | GNULIB_ATOLL |
| 973 | GNULIB__EXIT |
| 974 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 975 | UNISTD_H_HAVE_WINSOCK2_H |
| 976 | REPLACE_WRITE |
| 977 | REPLACE_USLEEP |
| 978 | REPLACE_UNLINKAT |
| 979 | REPLACE_UNLINK |
| 980 | REPLACE_TTYNAME_R |
| 981 | REPLACE_SYMLINK |
| 982 | REPLACE_SLEEP |
| 983 | REPLACE_RMDIR |
| 984 | REPLACE_READLINK |
| 985 | REPLACE_READ |
| 986 | REPLACE_PWRITE |
| 987 | REPLACE_PREAD |
| 988 | REPLACE_LSEEK |
| 989 | REPLACE_LINKAT |
| 990 | REPLACE_LINK |
| 991 | REPLACE_LCHOWN |
| 992 | REPLACE_ISATTY |
| 993 | REPLACE_GETPAGESIZE |
| 994 | REPLACE_GETGROUPS |
| 995 | REPLACE_GETLOGIN_R |
| 996 | REPLACE_GETDOMAINNAME |
| 997 | REPLACE_GETCWD |
| 998 | REPLACE_FTRUNCATE |
| 999 | REPLACE_FCHOWNAT |
| 1000 | REPLACE_DUP2 |
| 1001 | REPLACE_DUP |
| 1002 | REPLACE_CLOSE |
| 1003 | REPLACE_CHOWN |
| 1004 | HAVE_SYS_PARAM_H |
| 1005 | HAVE_OS_H |
| 1006 | HAVE_DECL_TTYNAME_R |
| 1007 | HAVE_DECL_SETHOSTNAME |
| 1008 | HAVE_DECL_GETUSERSHELL |
| 1009 | HAVE_DECL_GETPAGESIZE |
| 1010 | HAVE_DECL_GETLOGIN_R |
| 1011 | HAVE_DECL_GETDOMAINNAME |
| 1012 | HAVE_DECL_FDATASYNC |
| 1013 | HAVE_DECL_FCHDIR |
| 1014 | HAVE_DECL_ENVIRON |
| 1015 | HAVE_USLEEP |
| 1016 | HAVE_UNLINKAT |
| 1017 | HAVE_SYMLINKAT |
| 1018 | HAVE_SYMLINK |
| 1019 | HAVE_SLEEP |
| 1020 | HAVE_SETHOSTNAME |
| 1021 | HAVE_READLINKAT |
| 1022 | HAVE_READLINK |
| 1023 | HAVE_PWRITE |
| 1024 | HAVE_PREAD |
| 1025 | HAVE_PIPE2 |
| 1026 | HAVE_PIPE |
| 1027 | HAVE_LINKAT |
| 1028 | HAVE_LINK |
| 1029 | HAVE_LCHOWN |
| 1030 | HAVE_GROUP_MEMBER |
| 1031 | HAVE_GETPAGESIZE |
| 1032 | HAVE_GETLOGIN |
| 1033 | HAVE_GETHOSTNAME |
| 1034 | HAVE_GETGROUPS |
| 1035 | HAVE_GETDTABLESIZE |
| 1036 | HAVE_FTRUNCATE |
| 1037 | HAVE_FSYNC |
| 1038 | HAVE_FDATASYNC |
| 1039 | HAVE_FCHOWNAT |
| 1040 | HAVE_FCHDIR |
| 1041 | HAVE_FACCESSAT |
| 1042 | HAVE_EUIDACCESS |
| 1043 | HAVE_DUP3 |
| 1044 | HAVE_DUP2 |
| 1045 | HAVE_CHOWN |
| 1046 | GNULIB_WRITE |
| 1047 | GNULIB_USLEEP |
| 1048 | GNULIB_UNLINKAT |
| 1049 | GNULIB_UNLINK |
| 1050 | GNULIB_UNISTD_H_SIGPIPE |
| 1051 | GNULIB_UNISTD_H_NONBLOCKING |
| 1052 | GNULIB_TTYNAME_R |
| 1053 | GNULIB_SYMLINKAT |
| 1054 | GNULIB_SYMLINK |
| 1055 | GNULIB_SLEEP |
| 1056 | GNULIB_SETHOSTNAME |
| 1057 | GNULIB_RMDIR |
| 1058 | GNULIB_READLINKAT |
| 1059 | GNULIB_READLINK |
| 1060 | GNULIB_READ |
| 1061 | GNULIB_PWRITE |
| 1062 | GNULIB_PREAD |
| 1063 | GNULIB_PIPE2 |
| 1064 | GNULIB_PIPE |
| 1065 | GNULIB_LSEEK |
| 1066 | GNULIB_LINKAT |
| 1067 | GNULIB_LINK |
| 1068 | GNULIB_LCHOWN |
| 1069 | GNULIB_ISATTY |
| 1070 | GNULIB_GROUP_MEMBER |
| 1071 | GNULIB_GETUSERSHELL |
| 1072 | GNULIB_GETPAGESIZE |
| 1073 | GNULIB_GETLOGIN_R |
| 1074 | GNULIB_GETLOGIN |
| 1075 | GNULIB_GETHOSTNAME |
| 1076 | GNULIB_GETGROUPS |
| 1077 | GNULIB_GETDTABLESIZE |
| 1078 | GNULIB_GETDOMAINNAME |
| 1079 | GNULIB_GETCWD |
| 1080 | GNULIB_FTRUNCATE |
| 1081 | GNULIB_FSYNC |
| 1082 | GNULIB_FDATASYNC |
| 1083 | GNULIB_FCHOWNAT |
| 1084 | GNULIB_FCHDIR |
| 1085 | GNULIB_FACCESSAT |
| 1086 | GNULIB_EUIDACCESS |
| 1087 | GNULIB_ENVIRON |
| 1088 | GNULIB_DUP3 |
| 1089 | GNULIB_DUP2 |
| 1090 | GNULIB_DUP |
| 1091 | GNULIB_CLOSE |
| 1092 | GNULIB_CHOWN |
| 1093 | GNULIB_CHDIR |
| 1094 | LIB_CLOCK_GETTIME |
| 1095 | GL_GENERATE_ALLOCA_H_FALSE |
| 1096 | GL_GENERATE_ALLOCA_H_TRUE |
| 1097 | ALLOCA_H |
| 1098 | ALLOCA |
| 1099 | GL_COND_LIBTOOL_FALSE |
| 1100 | GL_COND_LIBTOOL_TRUE |
| 1101 | POST_ALLOC_OBJ |
| 1102 | PRE_ALLOC_OBJ |
| 1103 | CYGWIN_OBJ |
| 1104 | RALLOC_OBJ |
| 1105 | OLDXMENU_DEPS |
| 1106 | LIBX_OTHER |
| 1107 | LIBXMENU |
| 1108 | OLDXMENU |
| 1109 | OLDXMENU_TARGET |
| 1110 | LIBXT_OTHER |
| 1111 | TOOLKIT_LIBW |
| 1112 | WIDGET_OBJ |
| 1113 | XOBJ |
| 1114 | XMENU_OBJ |
| 1115 | FONT_OBJ |
| 1116 | OTHER_FILES |
| 1117 | GNU_OBJC_CFLAGS |
| 1118 | ns_appsrc |
| 1119 | ns_appresdir |
| 1120 | ns_appbindir |
| 1121 | ns_appdir |
| 1122 | X_TOOLKIT_TYPE |
| 1123 | GNUSTEP_CFLAGS |
| 1124 | C_SWITCH_X_SITE |
| 1125 | LD_SWITCH_X_SITE |
| 1126 | gameuser |
| 1127 | gamedir |
| 1128 | bitmapdir |
| 1129 | archlibdir |
| 1130 | etcdir |
| 1131 | x_default_search_path |
| 1132 | lisppath |
| 1133 | locallisppath |
| 1134 | standardlisppath |
| 1135 | leimdir |
| 1136 | lispdir |
| 1137 | srcdir |
| 1138 | canonical |
| 1139 | configuration |
| 1140 | version |
| 1141 | KRB4LIB |
| 1142 | DESLIB |
| 1143 | KRB5LIB |
| 1144 | CRYPTOLIB |
| 1145 | COM_ERRLIB |
| 1146 | LIBRESOLV |
| 1147 | LIBHESIOD |
| 1148 | TERMCAP_OBJ |
| 1149 | LIBS_TERMCAP |
| 1150 | BLESSMAIL_TARGET |
| 1151 | LIBS_MAIL |
| 1152 | liblockfile |
| 1153 | LIBXML2_LIBS |
| 1154 | LIBXML2_CFLAGS |
| 1155 | LIBXSM |
| 1156 | LIBGPM |
| 1157 | LIBGIF |
| 1158 | LIBTIFF |
| 1159 | LIBPNG |
| 1160 | LIBJPEG |
| 1161 | LIBXPM |
| 1162 | M17N_FLT_LIBS |
| 1163 | M17N_FLT_CFLAGS |
| 1164 | LIBOTF_LIBS |
| 1165 | LIBOTF_CFLAGS |
| 1166 | FREETYPE_LIBS |
| 1167 | FREETYPE_CFLAGS |
| 1168 | XFT_LIBS |
| 1169 | XFT_CFLAGS |
| 1170 | FONTCONFIG_LIBS |
| 1171 | FONTCONFIG_CFLAGS |
| 1172 | LIBXMU |
| 1173 | LIBXTR6 |
| 1174 | LIBGNUTLS_LIBS |
| 1175 | LIBGNUTLS_CFLAGS |
| 1176 | LIBSELINUX_LIBS |
| 1177 | SETTINGS_LIBS |
| 1178 | SETTINGS_CFLAGS |
| 1179 | GCONF_LIBS |
| 1180 | GCONF_CFLAGS |
| 1181 | GSETTINGS_LIBS |
| 1182 | GSETTINGS_CFLAGS |
| 1183 | DBUS_OBJ |
| 1184 | DBUS_LIBS |
| 1185 | DBUS_CFLAGS |
| 1186 | GTK_OBJ |
| 1187 | GTK_LIBS |
| 1188 | GTK_CFLAGS |
| 1189 | IMAGEMAGICK_LIBS |
| 1190 | IMAGEMAGICK_CFLAGS |
| 1191 | RSVG_LIBS |
| 1192 | RSVG_CFLAGS |
| 1193 | LIB_PTHREAD |
| 1194 | VMLIMIT_OBJ |
| 1195 | GMALLOC_OBJ |
| 1196 | HAVE_XSERVER |
| 1197 | LIB_STANDARD |
| 1198 | NS_OBJC_OBJ |
| 1199 | NS_OBJ |
| 1200 | ns_self_contained |
| 1201 | INSTALL_ARCH_INDEP_EXTRA |
| 1202 | TEMACS_LDFLAGS2 |
| 1203 | LD_SWITCH_X_SITE_RPATH |
| 1204 | XMKMF |
| 1205 | DEPFLAGS |
| 1206 | MKDEPDIR |
| 1207 | CFLAGS_SOUND |
| 1208 | ALSA_LIBS |
| 1209 | ALSA_CFLAGS |
| 1210 | LIBSOUND |
| 1211 | PKG_CONFIG |
| 1212 | CRT_DIR |
| 1213 | START_FILES |
| 1214 | LIB_MATH |
| 1215 | LIBS_SYSTEM |
| 1216 | C_SWITCH_SYSTEM |
| 1217 | UNEXEC_OBJ |
| 1218 | C_SWITCH_MACHINE |
| 1219 | LD_SWITCH_SYSTEM |
| 1220 | CANNOT_DUMP |
| 1221 | INFO_OPTS |
| 1222 | INFO_EXT |
| 1223 | HAVE_MAKEINFO |
| 1224 | PAXCTL |
| 1225 | GZIP_PROG |
| 1226 | INSTALL_INFO |
| 1227 | GNULIB_WARN_CFLAGS |
| 1228 | WARN_CFLAGS |
| 1229 | WERROR_CFLAGS |
| 1230 | RANLIB |
| 1231 | ARFLAGS |
| 1232 | AR |
| 1233 | EGREP |
| 1234 | GREP |
| 1235 | CPP |
| 1236 | am__fastdepCC_FALSE |
| 1237 | am__fastdepCC_TRUE |
| 1238 | CCDEPMODE |
| 1239 | AMDEPBACKSLASH |
| 1240 | AMDEP_FALSE |
| 1241 | AMDEP_TRUE |
| 1242 | am__quote |
| 1243 | am__include |
| 1244 | DEPDIR |
| 1245 | OBJEXT |
| 1246 | EXEEXT |
| 1247 | ac_ct_CC |
| 1248 | CPPFLAGS |
| 1249 | LDFLAGS |
| 1250 | CFLAGS |
| 1251 | CC |
| 1252 | host_os |
| 1253 | host_vendor |
| 1254 | host_cpu |
| 1255 | host |
| 1256 | build_os |
| 1257 | build_vendor |
| 1258 | build_cpu |
| 1259 | build |
| 1260 | PROFILING_CFLAGS |
| 1261 | GZIP_INFO |
| 1262 | cache_file |
| 1263 | am__untar |
| 1264 | am__tar |
| 1265 | AMTAR |
| 1266 | am__leading_dot |
| 1267 | SET_MAKE |
| 1268 | AWK |
| 1269 | mkdir_p |
| 1270 | MKDIR_P |
| 1271 | INSTALL_STRIP_PROGRAM |
| 1272 | STRIP |
| 1273 | install_sh |
| 1274 | MAKEINFO |
| 1275 | AUTOHEADER |
| 1276 | AUTOMAKE |
| 1277 | AUTOCONF |
| 1278 | ACLOCAL |
| 1279 | VERSION |
| 1280 | PACKAGE |
| 1281 | CYGPATH_W |
| 1282 | am__isrc |
| 1283 | INSTALL_DATA |
| 1284 | INSTALL_SCRIPT |
| 1285 | INSTALL_PROGRAM |
| 1286 | target_alias |
| 1287 | host_alias |
| 1288 | build_alias |
| 1289 | LIBS |
| 1290 | ECHO_T |
| 1291 | ECHO_N |
| 1292 | ECHO_C |
| 1293 | DEFS |
| 1294 | mandir |
| 1295 | localedir |
| 1296 | libdir |
| 1297 | psdir |
| 1298 | pdfdir |
| 1299 | dvidir |
| 1300 | htmldir |
| 1301 | infodir |
| 1302 | docdir |
| 1303 | oldincludedir |
| 1304 | includedir |
| 1305 | localstatedir |
| 1306 | sharedstatedir |
| 1307 | sysconfdir |
| 1308 | datadir |
| 1309 | datarootdir |
| 1310 | libexecdir |
| 1311 | sbindir |
| 1312 | bindir |
| 1313 | program_transform_name |
| 1314 | prefix |
| 1315 | exec_prefix |
| 1316 | PACKAGE_URL |
| 1317 | PACKAGE_BUGREPORT |
| 1318 | PACKAGE_STRING |
| 1319 | PACKAGE_VERSION |
| 1320 | PACKAGE_TARNAME |
| 1321 | PACKAGE_NAME |
| 1322 | PATH_SEPARATOR |
| 1323 | SHELL' |
| 1324 | ac_subst_files='deps_frag |
| 1325 | lisp_frag |
| 1326 | ns_frag' |
| 1327 | ac_user_opts=' |
| 1328 | enable_option_checking |
| 1329 | with_all |
| 1330 | with_pop |
| 1331 | with_kerberos |
| 1332 | with_kerberos5 |
| 1333 | with_hesiod |
| 1334 | with_mmdf |
| 1335 | with_mail_unlink |
| 1336 | with_mailhost |
| 1337 | with_sound |
| 1338 | with_sync_input |
| 1339 | with_x_toolkit |
| 1340 | with_wide_int |
| 1341 | with_xpm |
| 1342 | with_jpeg |
| 1343 | with_tiff |
| 1344 | with_gif |
| 1345 | with_png |
| 1346 | with_rsvg |
| 1347 | with_xml2 |
| 1348 | with_imagemagick |
| 1349 | with_xft |
| 1350 | with_libotf |
| 1351 | with_m17n_flt |
| 1352 | with_toolkit_scroll_bars |
| 1353 | with_xaw3d |
| 1354 | with_xim |
| 1355 | with_ns |
| 1356 | with_gpm |
| 1357 | with_dbus |
| 1358 | with_gconf |
| 1359 | with_gsettings |
| 1360 | with_selinux |
| 1361 | with_gnutls |
| 1362 | with_makeinfo |
| 1363 | with_compress_info |
| 1364 | with_pkg_config_prog |
| 1365 | with_crt_dir |
| 1366 | with_gameuser |
| 1367 | with_gnustep_conf |
| 1368 | enable_ns_self_contained |
| 1369 | enable_locallisppath |
| 1370 | enable_checking |
| 1371 | enable_check_lisp_object_type |
| 1372 | enable_profiling |
| 1373 | enable_autodepend |
| 1374 | enable_dependency_tracking |
| 1375 | enable_largefile |
| 1376 | enable_gcc_warnings |
| 1377 | enable_link_time_optimization |
| 1378 | with_x |
| 1379 | ' |
| 1380 | ac_precious_vars='build_alias |
| 1381 | host_alias |
| 1382 | target_alias |
| 1383 | CC |
| 1384 | CFLAGS |
| 1385 | LDFLAGS |
| 1386 | LIBS |
| 1387 | CPPFLAGS |
| 1388 | CPP |
| 1389 | XMKMF' |
| 1390 | |
| 1391 | |
| 1392 | # Initialize some variables set by options. |
| 1393 | ac_init_help= |
| 1394 | ac_init_version=false |
| 1395 | ac_unrecognized_opts= |
| 1396 | ac_unrecognized_sep= |
| 1397 | # The variables have the same names as the options, with |
| 1398 | # dashes changed to underlines. |
| 1399 | cache_file=/dev/null |
| 1400 | exec_prefix=NONE |
| 1401 | no_create= |
| 1402 | no_recursion= |
| 1403 | prefix=NONE |
| 1404 | program_prefix=NONE |
| 1405 | program_suffix=NONE |
| 1406 | program_transform_name=s,x,x, |
| 1407 | silent= |
| 1408 | site= |
| 1409 | srcdir= |
| 1410 | verbose= |
| 1411 | x_includes=NONE |
| 1412 | x_libraries=NONE |
| 1413 | |
| 1414 | # Installation directory options. |
| 1415 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1416 | # and all the variables that are supposed to be based on exec_prefix |
| 1417 | # by default will actually change. |
| 1418 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1419 | # (The list follows the same order as the GNU Coding Standards.) |
| 1420 | bindir='${exec_prefix}/bin' |
| 1421 | sbindir='${exec_prefix}/sbin' |
| 1422 | libexecdir='${exec_prefix}/libexec' |
| 1423 | datarootdir='${prefix}/share' |
| 1424 | datadir='${datarootdir}' |
| 1425 | sysconfdir='${prefix}/etc' |
| 1426 | sharedstatedir='${prefix}/com' |
| 1427 | localstatedir='${prefix}/var' |
| 1428 | includedir='${prefix}/include' |
| 1429 | oldincludedir='/usr/include' |
| 1430 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1431 | infodir='${datarootdir}/info' |
| 1432 | htmldir='${docdir}' |
| 1433 | dvidir='${docdir}' |
| 1434 | pdfdir='${docdir}' |
| 1435 | psdir='${docdir}' |
| 1436 | libdir='${exec_prefix}/lib' |
| 1437 | localedir='${datarootdir}/locale' |
| 1438 | mandir='${datarootdir}/man' |
| 1439 | |
| 1440 | ac_prev= |
| 1441 | ac_dashdash= |
| 1442 | for ac_option |
| 1443 | do |
| 1444 | # If the previous option needs an argument, assign it. |
| 1445 | if test -n "$ac_prev"; then |
| 1446 | eval $ac_prev=\$ac_option |
| 1447 | ac_prev= |
| 1448 | continue |
| 1449 | fi |
| 1450 | |
| 1451 | case $ac_option in |
| 1452 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1453 | *) ac_optarg=yes ;; |
| 1454 | esac |
| 1455 | |
| 1456 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1457 | |
| 1458 | case $ac_dashdash$ac_option in |
| 1459 | --) |
| 1460 | ac_dashdash=yes ;; |
| 1461 | |
| 1462 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1463 | ac_prev=bindir ;; |
| 1464 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1465 | bindir=$ac_optarg ;; |
| 1466 | |
| 1467 | -build | --build | --buil | --bui | --bu) |
| 1468 | ac_prev=build_alias ;; |
| 1469 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1470 | build_alias=$ac_optarg ;; |
| 1471 | |
| 1472 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1473 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1474 | ac_prev=cache_file ;; |
| 1475 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1476 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1477 | cache_file=$ac_optarg ;; |
| 1478 | |
| 1479 | --config-cache | -C) |
| 1480 | cache_file=config.cache ;; |
| 1481 | |
| 1482 | -datadir | --datadir | --datadi | --datad) |
| 1483 | ac_prev=datadir ;; |
| 1484 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1485 | datadir=$ac_optarg ;; |
| 1486 | |
| 1487 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1488 | | --dataroo | --dataro | --datar) |
| 1489 | ac_prev=datarootdir ;; |
| 1490 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1491 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1492 | datarootdir=$ac_optarg ;; |
| 1493 | |
| 1494 | -disable-* | --disable-*) |
| 1495 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1496 | # Reject names that are not valid shell variable names. |
| 1497 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1498 | as_fn_error "invalid feature name: $ac_useropt" |
| 1499 | ac_useropt_orig=$ac_useropt |
| 1500 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1501 | case $ac_user_opts in |
| 1502 | *" |
| 1503 | "enable_$ac_useropt" |
| 1504 | "*) ;; |
| 1505 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1506 | ac_unrecognized_sep=', ';; |
| 1507 | esac |
| 1508 | eval enable_$ac_useropt=no ;; |
| 1509 | |
| 1510 | -docdir | --docdir | --docdi | --doc | --do) |
| 1511 | ac_prev=docdir ;; |
| 1512 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1513 | docdir=$ac_optarg ;; |
| 1514 | |
| 1515 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1516 | ac_prev=dvidir ;; |
| 1517 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1518 | dvidir=$ac_optarg ;; |
| 1519 | |
| 1520 | -enable-* | --enable-*) |
| 1521 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1522 | # Reject names that are not valid shell variable names. |
| 1523 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1524 | as_fn_error "invalid feature name: $ac_useropt" |
| 1525 | ac_useropt_orig=$ac_useropt |
| 1526 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1527 | case $ac_user_opts in |
| 1528 | *" |
| 1529 | "enable_$ac_useropt" |
| 1530 | "*) ;; |
| 1531 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1532 | ac_unrecognized_sep=', ';; |
| 1533 | esac |
| 1534 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1535 | |
| 1536 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1537 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1538 | | --exec | --exe | --ex) |
| 1539 | ac_prev=exec_prefix ;; |
| 1540 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1541 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1542 | | --exec=* | --exe=* | --ex=*) |
| 1543 | exec_prefix=$ac_optarg ;; |
| 1544 | |
| 1545 | -gas | --gas | --ga | --g) |
| 1546 | # Obsolete; use --with-gas. |
| 1547 | with_gas=yes ;; |
| 1548 | |
| 1549 | -help | --help | --hel | --he | -h) |
| 1550 | ac_init_help=long ;; |
| 1551 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1552 | ac_init_help=recursive ;; |
| 1553 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1554 | ac_init_help=short ;; |
| 1555 | |
| 1556 | -host | --host | --hos | --ho) |
| 1557 | ac_prev=host_alias ;; |
| 1558 | -host=* | --host=* | --hos=* | --ho=*) |
| 1559 | host_alias=$ac_optarg ;; |
| 1560 | |
| 1561 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1562 | ac_prev=htmldir ;; |
| 1563 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1564 | | --ht=*) |
| 1565 | htmldir=$ac_optarg ;; |
| 1566 | |
| 1567 | -includedir | --includedir | --includedi | --included | --include \ |
| 1568 | | --includ | --inclu | --incl | --inc) |
| 1569 | ac_prev=includedir ;; |
| 1570 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1571 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1572 | includedir=$ac_optarg ;; |
| 1573 | |
| 1574 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1575 | ac_prev=infodir ;; |
| 1576 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1577 | infodir=$ac_optarg ;; |
| 1578 | |
| 1579 | -libdir | --libdir | --libdi | --libd) |
| 1580 | ac_prev=libdir ;; |
| 1581 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1582 | libdir=$ac_optarg ;; |
| 1583 | |
| 1584 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1585 | | --libexe | --libex | --libe) |
| 1586 | ac_prev=libexecdir ;; |
| 1587 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1588 | | --libexe=* | --libex=* | --libe=*) |
| 1589 | libexecdir=$ac_optarg ;; |
| 1590 | |
| 1591 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1592 | ac_prev=localedir ;; |
| 1593 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1594 | localedir=$ac_optarg ;; |
| 1595 | |
| 1596 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1597 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1598 | ac_prev=localstatedir ;; |
| 1599 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1600 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1601 | localstatedir=$ac_optarg ;; |
| 1602 | |
| 1603 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1604 | ac_prev=mandir ;; |
| 1605 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1606 | mandir=$ac_optarg ;; |
| 1607 | |
| 1608 | -nfp | --nfp | --nf) |
| 1609 | # Obsolete; use --without-fp. |
| 1610 | with_fp=no ;; |
| 1611 | |
| 1612 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1613 | | --no-cr | --no-c | -n) |
| 1614 | no_create=yes ;; |
| 1615 | |
| 1616 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1617 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1618 | no_recursion=yes ;; |
| 1619 | |
| 1620 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1621 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1622 | | --oldin | --oldi | --old | --ol | --o) |
| 1623 | ac_prev=oldincludedir ;; |
| 1624 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1625 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1626 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1627 | oldincludedir=$ac_optarg ;; |
| 1628 | |
| 1629 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1630 | ac_prev=prefix ;; |
| 1631 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1632 | prefix=$ac_optarg ;; |
| 1633 | |
| 1634 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1635 | | --program-pre | --program-pr | --program-p) |
| 1636 | ac_prev=program_prefix ;; |
| 1637 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1638 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1639 | program_prefix=$ac_optarg ;; |
| 1640 | |
| 1641 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1642 | | --program-suf | --program-su | --program-s) |
| 1643 | ac_prev=program_suffix ;; |
| 1644 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1645 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1646 | program_suffix=$ac_optarg ;; |
| 1647 | |
| 1648 | -program-transform-name | --program-transform-name \ |
| 1649 | | --program-transform-nam | --program-transform-na \ |
| 1650 | | --program-transform-n | --program-transform- \ |
| 1651 | | --program-transform | --program-transfor \ |
| 1652 | | --program-transfo | --program-transf \ |
| 1653 | | --program-trans | --program-tran \ |
| 1654 | | --progr-tra | --program-tr | --program-t) |
| 1655 | ac_prev=program_transform_name ;; |
| 1656 | -program-transform-name=* | --program-transform-name=* \ |
| 1657 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1658 | | --program-transform-n=* | --program-transform-=* \ |
| 1659 | | --program-transform=* | --program-transfor=* \ |
| 1660 | | --program-transfo=* | --program-transf=* \ |
| 1661 | | --program-trans=* | --program-tran=* \ |
| 1662 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1663 | program_transform_name=$ac_optarg ;; |
| 1664 | |
| 1665 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1666 | ac_prev=pdfdir ;; |
| 1667 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1668 | pdfdir=$ac_optarg ;; |
| 1669 | |
| 1670 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1671 | ac_prev=psdir ;; |
| 1672 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1673 | psdir=$ac_optarg ;; |
| 1674 | |
| 1675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1676 | | -silent | --silent | --silen | --sile | --sil) |
| 1677 | silent=yes ;; |
| 1678 | |
| 1679 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1680 | ac_prev=sbindir ;; |
| 1681 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1682 | | --sbi=* | --sb=*) |
| 1683 | sbindir=$ac_optarg ;; |
| 1684 | |
| 1685 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1686 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1687 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1688 | | --sha | --sh) |
| 1689 | ac_prev=sharedstatedir ;; |
| 1690 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1691 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1692 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1693 | | --sha=* | --sh=*) |
| 1694 | sharedstatedir=$ac_optarg ;; |
| 1695 | |
| 1696 | -site | --site | --sit) |
| 1697 | ac_prev=site ;; |
| 1698 | -site=* | --site=* | --sit=*) |
| 1699 | site=$ac_optarg ;; |
| 1700 | |
| 1701 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1702 | ac_prev=srcdir ;; |
| 1703 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1704 | srcdir=$ac_optarg ;; |
| 1705 | |
| 1706 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1707 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1708 | ac_prev=sysconfdir ;; |
| 1709 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1710 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1711 | sysconfdir=$ac_optarg ;; |
| 1712 | |
| 1713 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1714 | ac_prev=target_alias ;; |
| 1715 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1716 | target_alias=$ac_optarg ;; |
| 1717 | |
| 1718 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1719 | verbose=yes ;; |
| 1720 | |
| 1721 | -version | --version | --versio | --versi | --vers | -V) |
| 1722 | ac_init_version=: ;; |
| 1723 | |
| 1724 | -with-* | --with-*) |
| 1725 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1726 | # Reject names that are not valid shell variable names. |
| 1727 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1728 | as_fn_error "invalid package name: $ac_useropt" |
| 1729 | ac_useropt_orig=$ac_useropt |
| 1730 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1731 | case $ac_user_opts in |
| 1732 | *" |
| 1733 | "with_$ac_useropt" |
| 1734 | "*) ;; |
| 1735 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1736 | ac_unrecognized_sep=', ';; |
| 1737 | esac |
| 1738 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1739 | |
| 1740 | -without-* | --without-*) |
| 1741 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1742 | # Reject names that are not valid shell variable names. |
| 1743 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1744 | as_fn_error "invalid package name: $ac_useropt" |
| 1745 | ac_useropt_orig=$ac_useropt |
| 1746 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1747 | case $ac_user_opts in |
| 1748 | *" |
| 1749 | "with_$ac_useropt" |
| 1750 | "*) ;; |
| 1751 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1752 | ac_unrecognized_sep=', ';; |
| 1753 | esac |
| 1754 | eval with_$ac_useropt=no ;; |
| 1755 | |
| 1756 | --x) |
| 1757 | # Obsolete; use --with-x. |
| 1758 | with_x=yes ;; |
| 1759 | |
| 1760 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1761 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1762 | ac_prev=x_includes ;; |
| 1763 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1764 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1765 | x_includes=$ac_optarg ;; |
| 1766 | |
| 1767 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1768 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1769 | ac_prev=x_libraries ;; |
| 1770 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1771 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1772 | x_libraries=$ac_optarg ;; |
| 1773 | |
| 1774 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1775 | Try \`$0 --help' for more information." |
| 1776 | ;; |
| 1777 | |
| 1778 | *=*) |
| 1779 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1780 | # Reject names that are not valid shell variable names. |
| 1781 | case $ac_envvar in #( |
| 1782 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1783 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1784 | esac |
| 1785 | eval $ac_envvar=\$ac_optarg |
| 1786 | export $ac_envvar ;; |
| 1787 | |
| 1788 | *) |
| 1789 | # FIXME: should be removed in autoconf 3.0. |
| 1790 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1791 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1792 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1793 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1794 | ;; |
| 1795 | |
| 1796 | esac |
| 1797 | done |
| 1798 | |
| 1799 | if test -n "$ac_prev"; then |
| 1800 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1801 | as_fn_error "missing argument to $ac_option" |
| 1802 | fi |
| 1803 | |
| 1804 | if test -n "$ac_unrecognized_opts"; then |
| 1805 | case $enable_option_checking in |
| 1806 | no) ;; |
| 1807 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1808 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1809 | esac |
| 1810 | fi |
| 1811 | |
| 1812 | # Check all directory arguments for consistency. |
| 1813 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1814 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1815 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1816 | libdir localedir mandir |
| 1817 | do |
| 1818 | eval ac_val=\$$ac_var |
| 1819 | # Remove trailing slashes. |
| 1820 | case $ac_val in |
| 1821 | */ ) |
| 1822 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1823 | eval $ac_var=\$ac_val;; |
| 1824 | esac |
| 1825 | # Be sure to have absolute directory names. |
| 1826 | case $ac_val in |
| 1827 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1828 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1829 | esac |
| 1830 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1831 | done |
| 1832 | |
| 1833 | # There might be people who depend on the old broken behavior: `$host' |
| 1834 | # used to hold the argument of --host etc. |
| 1835 | # FIXME: To remove some day. |
| 1836 | build=$build_alias |
| 1837 | host=$host_alias |
| 1838 | target=$target_alias |
| 1839 | |
| 1840 | # FIXME: To remove some day. |
| 1841 | if test "x$host_alias" != x; then |
| 1842 | if test "x$build_alias" = x; then |
| 1843 | cross_compiling=maybe |
| 1844 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1845 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1846 | elif test "x$build_alias" != "x$host_alias"; then |
| 1847 | cross_compiling=yes |
| 1848 | fi |
| 1849 | fi |
| 1850 | |
| 1851 | ac_tool_prefix= |
| 1852 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1853 | |
| 1854 | test "$silent" = yes && exec 6>/dev/null |
| 1855 | |
| 1856 | |
| 1857 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1858 | ac_ls_di=`ls -di .` && |
| 1859 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1860 | as_fn_error "working directory cannot be determined" |
| 1861 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1862 | as_fn_error "pwd does not report name of working directory" |
| 1863 | |
| 1864 | |
| 1865 | # Find the source files, if location was not specified. |
| 1866 | if test -z "$srcdir"; then |
| 1867 | ac_srcdir_defaulted=yes |
| 1868 | # Try the directory containing this script, then the parent directory. |
| 1869 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1870 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1871 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1872 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1873 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1874 | $as_echo X"$as_myself" | |
| 1875 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1876 | s//\1/ |
| 1877 | q |
| 1878 | } |
| 1879 | /^X\(\/\/\)[^/].*/{ |
| 1880 | s//\1/ |
| 1881 | q |
| 1882 | } |
| 1883 | /^X\(\/\/\)$/{ |
| 1884 | s//\1/ |
| 1885 | q |
| 1886 | } |
| 1887 | /^X\(\/\).*/{ |
| 1888 | s//\1/ |
| 1889 | q |
| 1890 | } |
| 1891 | s/.*/./; q'` |
| 1892 | srcdir=$ac_confdir |
| 1893 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1894 | srcdir=.. |
| 1895 | fi |
| 1896 | else |
| 1897 | ac_srcdir_defaulted=no |
| 1898 | fi |
| 1899 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1900 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1901 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1902 | fi |
| 1903 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1904 | ac_abs_confdir=`( |
| 1905 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1906 | pwd)` |
| 1907 | # When building in place, set srcdir=. |
| 1908 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1909 | srcdir=. |
| 1910 | fi |
| 1911 | # Remove unnecessary trailing slashes from srcdir. |
| 1912 | # Double slashes in file names in object file debugging info |
| 1913 | # mess up M-x gdb in Emacs. |
| 1914 | case $srcdir in |
| 1915 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1916 | esac |
| 1917 | for ac_var in $ac_precious_vars; do |
| 1918 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1919 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1920 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1921 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1922 | done |
| 1923 | |
| 1924 | # |
| 1925 | # Report the --help message. |
| 1926 | # |
| 1927 | if test "$ac_init_help" = "long"; then |
| 1928 | # Omit some internal or obsolete options to make the list less imposing. |
| 1929 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1930 | cat <<_ACEOF |
| 1931 | \`configure' configures emacs 24.2.50 to adapt to many kinds of systems. |
| 1932 | |
| 1933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1934 | |
| 1935 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1936 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1937 | |
| 1938 | Defaults for the options are specified in brackets. |
| 1939 | |
| 1940 | Configuration: |
| 1941 | -h, --help display this help and exit |
| 1942 | --help=short display options specific to this package |
| 1943 | --help=recursive display the short help of all the included packages |
| 1944 | -V, --version display version information and exit |
| 1945 | -q, --quiet, --silent do not print \`checking...' messages |
| 1946 | --cache-file=FILE cache test results in FILE [disabled] |
| 1947 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1948 | -n, --no-create do not create output files |
| 1949 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1950 | |
| 1951 | Installation directories: |
| 1952 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1953 | [$ac_default_prefix] |
| 1954 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1955 | [PREFIX] |
| 1956 | |
| 1957 | By default, \`make install' will install all the files in |
| 1958 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1959 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1960 | for instance \`--prefix=\$HOME'. |
| 1961 | |
| 1962 | For better control, use the options below. |
| 1963 | |
| 1964 | Fine tuning of the installation directories: |
| 1965 | --bindir=DIR user executables [EPREFIX/bin] |
| 1966 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1967 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1968 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1969 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1970 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1971 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1972 | --includedir=DIR C header files [PREFIX/include] |
| 1973 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1974 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1975 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1976 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1977 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1978 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1979 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] |
| 1980 | --htmldir=DIR html documentation [DOCDIR] |
| 1981 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1982 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1983 | --psdir=DIR ps documentation [DOCDIR] |
| 1984 | _ACEOF |
| 1985 | |
| 1986 | cat <<\_ACEOF |
| 1987 | |
| 1988 | Program names: |
| 1989 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1990 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1991 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1992 | |
| 1993 | X features: |
| 1994 | --x-includes=DIR X include files are in DIR |
| 1995 | --x-libraries=DIR X library files are in DIR |
| 1996 | |
| 1997 | System types: |
| 1998 | --build=BUILD configure for building on BUILD [guessed] |
| 1999 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 2000 | _ACEOF |
| 2001 | fi |
| 2002 | |
| 2003 | if test -n "$ac_init_help"; then |
| 2004 | case $ac_init_help in |
| 2005 | short | recursive ) echo "Configuration of emacs 24.2.50:";; |
| 2006 | esac |
| 2007 | cat <<\_ACEOF |
| 2008 | |
| 2009 | Optional Features: |
| 2010 | --disable-option-checking ignore unrecognized --enable/--with options |
| 2011 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 2012 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 2013 | --disable-ns-self-contained |
| 2014 | disable self contained build under NeXTstep |
| 2015 | --enable-locallisppath=PATH |
| 2016 | directories Emacs should search for lisp files |
| 2017 | specific to this site |
| 2018 | --enable-checking[=LIST] |
| 2019 | enable expensive run-time checks. With LIST, enable |
| 2020 | only specific categories of checks. Categories are: |
| 2021 | all,yes,no. Flags are: stringbytes, stringoverrun, |
| 2022 | stringfreelist, xmallocoverrun, conslist, glyphs |
| 2023 | --enable-check-lisp-object-type |
| 2024 | enable compile time checks for the Lisp_Object data |
| 2025 | type. This is useful for development for catching |
| 2026 | certain types of bugs. |
| 2027 | --enable-profiling build emacs with profiling support. This might not |
| 2028 | work on all platforms |
| 2029 | --enable-autodepend automatically generate dependencies to .h-files. |
| 2030 | Requires GNU Make and Gcc. Enabled if GNU Make and |
| 2031 | Gcc is found |
| 2032 | --disable-dependency-tracking speeds up one-time build |
| 2033 | --enable-dependency-tracking do not reject slow dependency extractors |
| 2034 | --disable-largefile omit support for large files |
| 2035 | --enable-gcc-warnings turn on lots of GCC warnings. This is intended for |
| 2036 | developers, and may generate false alarms when used |
| 2037 | with older or non-GNU development tools. |
| 2038 | --enable-link-time-optimization |
| 2039 | build emacs with link-time optimization. This is |
| 2040 | supported only for GCC since 4.5.0. |
| 2041 | |
| 2042 | Optional Packages: |
| 2043 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 2044 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 2045 | --without-all omit almost all features and build small executable |
| 2046 | with minimal dependencies |
| 2047 | --without-pop don't support POP mail retrieval with movemail |
| 2048 | --with-kerberos support Kerberos-authenticated POP |
| 2049 | --with-kerberos5 support Kerberos version 5 authenticated POP |
| 2050 | --with-hesiod support Hesiod to get the POP server host |
| 2051 | --with-mmdf support MMDF mailboxes |
| 2052 | --with-mail-unlink unlink, rather than empty, mail spool after reading |
| 2053 | --with-mailhost=HOSTNAME |
| 2054 | string giving default POP mail host |
| 2055 | --without-sound don't compile with sound support |
| 2056 | --without-sync-input process async input synchronously |
| 2057 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3, |
| 2058 | lucid or athena, motif, no) |
| 2059 | --with-wide-int prefer wide Emacs integers (typically 62-bit) |
| 2060 | --without-xpm don't compile with XPM image support |
| 2061 | --without-jpeg don't compile with JPEG image support |
| 2062 | --without-tiff don't compile with TIFF image support |
| 2063 | --without-gif don't compile with GIF image support |
| 2064 | --without-png don't compile with PNG image support |
| 2065 | --without-rsvg don't compile with SVG image support |
| 2066 | --without-xml2 don't compile with XML parsing support |
| 2067 | --without-imagemagick don't compile with ImageMagick image support |
| 2068 | --without-xft don't use XFT for anti aliased fonts |
| 2069 | --without-libotf don't use libotf for OpenType font support |
| 2070 | --without-m17n-flt don't use m17n-flt for text shaping |
| 2071 | --without-toolkit-scroll-bars |
| 2072 | don't use Motif or Xaw3d scroll bars |
| 2073 | --without-xaw3d don't use Xaw3d |
| 2074 | --without-xim don't use X11 XIM |
| 2075 | --with-ns use NeXTstep (Cocoa or GNUstep) windowing system |
| 2076 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux |
| 2077 | console |
| 2078 | --without-dbus don't compile with D-Bus support |
| 2079 | --without-gconf don't compile with GConf support |
| 2080 | --without-gsettings don't compile with GSettings support |
| 2081 | --without-selinux don't compile with SELinux support |
| 2082 | --without-gnutls don't use -lgnutls for SSL/TLS support |
| 2083 | --without-makeinfo don't require makeinfo for building manuals |
| 2084 | --without-compress-info don't compress the installed Info pages |
| 2085 | --with-pkg-config-prog=PATH |
| 2086 | path to pkg-config for finding GTK and librsvg |
| 2087 | --with-crt-dir=DIR directory containing crtn.o etc. The default is |
| 2088 | /usr/lib, or /usr/lib64 on some platforms. |
| 2089 | --with-gameuser=USER user for shared game score files |
| 2090 | --with-gnustep-conf=PATH |
| 2091 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, |
| 2092 | or /etc/GNUstep/GNUstep.conf |
| 2093 | --with-x use the X Window System |
| 2094 | |
| 2095 | Some influential environment variables: |
| 2096 | CC C compiler command |
| 2097 | CFLAGS C compiler flags |
| 2098 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2099 | nonstandard directory <lib dir> |
| 2100 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 2101 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 2102 | you have headers in a nonstandard directory <include dir> |
| 2103 | CPP C preprocessor |
| 2104 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 2105 | |
| 2106 | Use these variables to override the choices made by `configure' or to help |
| 2107 | it to find libraries and programs with nonstandard names/locations. |
| 2108 | |
| 2109 | Report bugs to the package provider. |
| 2110 | _ACEOF |
| 2111 | ac_status=$? |
| 2112 | fi |
| 2113 | |
| 2114 | if test "$ac_init_help" = "recursive"; then |
| 2115 | # If there are subdirs, report their specific --help. |
| 2116 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2117 | test -d "$ac_dir" || |
| 2118 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2119 | continue |
| 2120 | ac_builddir=. |
| 2121 | |
| 2122 | case "$ac_dir" in |
| 2123 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2124 | *) |
| 2125 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2126 | # A ".." for each directory in $ac_dir_suffix. |
| 2127 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2128 | case $ac_top_builddir_sub in |
| 2129 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2130 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2131 | esac ;; |
| 2132 | esac |
| 2133 | ac_abs_top_builddir=$ac_pwd |
| 2134 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2135 | # for backward compatibility: |
| 2136 | ac_top_builddir=$ac_top_build_prefix |
| 2137 | |
| 2138 | case $srcdir in |
| 2139 | .) # We are building in place. |
| 2140 | ac_srcdir=. |
| 2141 | ac_top_srcdir=$ac_top_builddir_sub |
| 2142 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2143 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2144 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2145 | ac_top_srcdir=$srcdir |
| 2146 | ac_abs_top_srcdir=$srcdir ;; |
| 2147 | *) # Relative name. |
| 2148 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2149 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2150 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2151 | esac |
| 2152 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2153 | |
| 2154 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2155 | # Check for guested configure. |
| 2156 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2157 | echo && |
| 2158 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2159 | elif test -f "$ac_srcdir/configure"; then |
| 2160 | echo && |
| 2161 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2162 | else |
| 2163 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2164 | fi || ac_status=$? |
| 2165 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2166 | done |
| 2167 | fi |
| 2168 | |
| 2169 | test -n "$ac_init_help" && exit $ac_status |
| 2170 | if $ac_init_version; then |
| 2171 | cat <<\_ACEOF |
| 2172 | emacs configure 24.2.50 |
| 2173 | generated by GNU Autoconf 2.65 |
| 2174 | |
| 2175 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 2176 | This configure script is free software; the Free Software Foundation |
| 2177 | gives unlimited permission to copy, distribute and modify it. |
| 2178 | _ACEOF |
| 2179 | exit |
| 2180 | fi |
| 2181 | |
| 2182 | ## ------------------------ ## |
| 2183 | ## Autoconf initialization. ## |
| 2184 | ## ------------------------ ## |
| 2185 | |
| 2186 | # ac_fn_c_try_compile LINENO |
| 2187 | # -------------------------- |
| 2188 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2189 | ac_fn_c_try_compile () |
| 2190 | { |
| 2191 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2192 | rm -f conftest.$ac_objext |
| 2193 | if { { ac_try="$ac_compile" |
| 2194 | case "(($ac_try" in |
| 2195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2196 | *) ac_try_echo=$ac_try;; |
| 2197 | esac |
| 2198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2199 | $as_echo "$ac_try_echo"; } >&5 |
| 2200 | (eval "$ac_compile") 2>conftest.err |
| 2201 | ac_status=$? |
| 2202 | if test -s conftest.err; then |
| 2203 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2204 | cat conftest.er1 >&5 |
| 2205 | mv -f conftest.er1 conftest.err |
| 2206 | fi |
| 2207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2208 | test $ac_status = 0; } && { |
| 2209 | test -z "$ac_c_werror_flag" || |
| 2210 | test ! -s conftest.err |
| 2211 | } && test -s conftest.$ac_objext; then : |
| 2212 | ac_retval=0 |
| 2213 | else |
| 2214 | $as_echo "$as_me: failed program was:" >&5 |
| 2215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2216 | |
| 2217 | ac_retval=1 |
| 2218 | fi |
| 2219 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2220 | as_fn_set_status $ac_retval |
| 2221 | |
| 2222 | } # ac_fn_c_try_compile |
| 2223 | |
| 2224 | # ac_fn_c_try_cpp LINENO |
| 2225 | # ---------------------- |
| 2226 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2227 | ac_fn_c_try_cpp () |
| 2228 | { |
| 2229 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2230 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2231 | case "(($ac_try" in |
| 2232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2233 | *) ac_try_echo=$ac_try;; |
| 2234 | esac |
| 2235 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2236 | $as_echo "$ac_try_echo"; } >&5 |
| 2237 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2238 | ac_status=$? |
| 2239 | if test -s conftest.err; then |
| 2240 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2241 | cat conftest.er1 >&5 |
| 2242 | mv -f conftest.er1 conftest.err |
| 2243 | fi |
| 2244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2245 | test $ac_status = 0; } >/dev/null && { |
| 2246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2247 | test ! -s conftest.err |
| 2248 | }; then : |
| 2249 | ac_retval=0 |
| 2250 | else |
| 2251 | $as_echo "$as_me: failed program was:" >&5 |
| 2252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2253 | |
| 2254 | ac_retval=1 |
| 2255 | fi |
| 2256 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2257 | as_fn_set_status $ac_retval |
| 2258 | |
| 2259 | } # ac_fn_c_try_cpp |
| 2260 | |
| 2261 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2262 | # ------------------------------------------------------- |
| 2263 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2264 | # the include files in INCLUDES and setting the cache variable VAR |
| 2265 | # accordingly. |
| 2266 | ac_fn_c_check_header_mongrel () |
| 2267 | { |
| 2268 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2269 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2271 | $as_echo_n "checking for $2... " >&6; } |
| 2272 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2273 | $as_echo_n "(cached) " >&6 |
| 2274 | fi |
| 2275 | eval ac_res=\$$3 |
| 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2277 | $as_echo "$ac_res" >&6; } |
| 2278 | else |
| 2279 | # Is the header compilable? |
| 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2281 | $as_echo_n "checking $2 usability... " >&6; } |
| 2282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2283 | /* end confdefs.h. */ |
| 2284 | $4 |
| 2285 | #include <$2> |
| 2286 | _ACEOF |
| 2287 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2288 | ac_header_compiler=yes |
| 2289 | else |
| 2290 | ac_header_compiler=no |
| 2291 | fi |
| 2292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2294 | $as_echo "$ac_header_compiler" >&6; } |
| 2295 | |
| 2296 | # Is the header present? |
| 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2298 | $as_echo_n "checking $2 presence... " >&6; } |
| 2299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2300 | /* end confdefs.h. */ |
| 2301 | #include <$2> |
| 2302 | _ACEOF |
| 2303 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2304 | ac_header_preproc=yes |
| 2305 | else |
| 2306 | ac_header_preproc=no |
| 2307 | fi |
| 2308 | rm -f conftest.err conftest.$ac_ext |
| 2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2310 | $as_echo "$ac_header_preproc" >&6; } |
| 2311 | |
| 2312 | # So? What about this header? |
| 2313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2314 | yes:no: ) |
| 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2316 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2318 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2319 | ;; |
| 2320 | no:yes:* ) |
| 2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2322 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2324 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2326 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2328 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2330 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2331 | ;; |
| 2332 | esac |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2334 | $as_echo_n "checking for $2... " >&6; } |
| 2335 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2336 | $as_echo_n "(cached) " >&6 |
| 2337 | else |
| 2338 | eval "$3=\$ac_header_compiler" |
| 2339 | fi |
| 2340 | eval ac_res=\$$3 |
| 2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2342 | $as_echo "$ac_res" >&6; } |
| 2343 | fi |
| 2344 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2345 | |
| 2346 | } # ac_fn_c_check_header_mongrel |
| 2347 | |
| 2348 | # ac_fn_c_try_run LINENO |
| 2349 | # ---------------------- |
| 2350 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2351 | # that executables *can* be run. |
| 2352 | ac_fn_c_try_run () |
| 2353 | { |
| 2354 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2355 | if { { ac_try="$ac_link" |
| 2356 | case "(($ac_try" in |
| 2357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2358 | *) ac_try_echo=$ac_try;; |
| 2359 | esac |
| 2360 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2361 | $as_echo "$ac_try_echo"; } >&5 |
| 2362 | (eval "$ac_link") 2>&5 |
| 2363 | ac_status=$? |
| 2364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2365 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2366 | { { case "(($ac_try" in |
| 2367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2368 | *) ac_try_echo=$ac_try;; |
| 2369 | esac |
| 2370 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2371 | $as_echo "$ac_try_echo"; } >&5 |
| 2372 | (eval "$ac_try") 2>&5 |
| 2373 | ac_status=$? |
| 2374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2375 | test $ac_status = 0; }; }; then : |
| 2376 | ac_retval=0 |
| 2377 | else |
| 2378 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2379 | $as_echo "$as_me: failed program was:" >&5 |
| 2380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2381 | |
| 2382 | ac_retval=$ac_status |
| 2383 | fi |
| 2384 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2385 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2386 | as_fn_set_status $ac_retval |
| 2387 | |
| 2388 | } # ac_fn_c_try_run |
| 2389 | |
| 2390 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2391 | # ------------------------------------------------------- |
| 2392 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2393 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2394 | ac_fn_c_check_header_compile () |
| 2395 | { |
| 2396 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2398 | $as_echo_n "checking for $2... " >&6; } |
| 2399 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2400 | $as_echo_n "(cached) " >&6 |
| 2401 | else |
| 2402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2403 | /* end confdefs.h. */ |
| 2404 | $4 |
| 2405 | #include <$2> |
| 2406 | _ACEOF |
| 2407 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2408 | eval "$3=yes" |
| 2409 | else |
| 2410 | eval "$3=no" |
| 2411 | fi |
| 2412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2413 | fi |
| 2414 | eval ac_res=\$$3 |
| 2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2416 | $as_echo "$ac_res" >&6; } |
| 2417 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2418 | |
| 2419 | } # ac_fn_c_check_header_compile |
| 2420 | |
| 2421 | # ac_fn_c_try_link LINENO |
| 2422 | # ----------------------- |
| 2423 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2424 | ac_fn_c_try_link () |
| 2425 | { |
| 2426 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2428 | if { { ac_try="$ac_link" |
| 2429 | case "(($ac_try" in |
| 2430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2431 | *) ac_try_echo=$ac_try;; |
| 2432 | esac |
| 2433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2434 | $as_echo "$ac_try_echo"; } >&5 |
| 2435 | (eval "$ac_link") 2>conftest.err |
| 2436 | ac_status=$? |
| 2437 | if test -s conftest.err; then |
| 2438 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2439 | cat conftest.er1 >&5 |
| 2440 | mv -f conftest.er1 conftest.err |
| 2441 | fi |
| 2442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2443 | test $ac_status = 0; } && { |
| 2444 | test -z "$ac_c_werror_flag" || |
| 2445 | test ! -s conftest.err |
| 2446 | } && test -s conftest$ac_exeext && { |
| 2447 | test "$cross_compiling" = yes || |
| 2448 | $as_test_x conftest$ac_exeext |
| 2449 | }; then : |
| 2450 | ac_retval=0 |
| 2451 | else |
| 2452 | $as_echo "$as_me: failed program was:" >&5 |
| 2453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2454 | |
| 2455 | ac_retval=1 |
| 2456 | fi |
| 2457 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2458 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2459 | # interfere with the next link command; also delete a directory that is |
| 2460 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2461 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2462 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2463 | as_fn_set_status $ac_retval |
| 2464 | |
| 2465 | } # ac_fn_c_try_link |
| 2466 | |
| 2467 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2468 | # ------------------------------------ |
| 2469 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2470 | ac_fn_c_check_decl () |
| 2471 | { |
| 2472 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2474 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2475 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2476 | $as_echo_n "(cached) " >&6 |
| 2477 | else |
| 2478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2479 | /* end confdefs.h. */ |
| 2480 | $4 |
| 2481 | int |
| 2482 | main () |
| 2483 | { |
| 2484 | #ifndef $2 |
| 2485 | (void) $2; |
| 2486 | #endif |
| 2487 | |
| 2488 | ; |
| 2489 | return 0; |
| 2490 | } |
| 2491 | _ACEOF |
| 2492 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2493 | eval "$3=yes" |
| 2494 | else |
| 2495 | eval "$3=no" |
| 2496 | fi |
| 2497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2498 | fi |
| 2499 | eval ac_res=\$$3 |
| 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2501 | $as_echo "$ac_res" >&6; } |
| 2502 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2503 | |
| 2504 | } # ac_fn_c_check_decl |
| 2505 | |
| 2506 | # ac_fn_c_check_header_preproc LINENO HEADER VAR |
| 2507 | # ---------------------------------------------- |
| 2508 | # Tests whether HEADER is present, setting the cache variable VAR accordingly. |
| 2509 | ac_fn_c_check_header_preproc () |
| 2510 | { |
| 2511 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2513 | $as_echo_n "checking for $2... " >&6; } |
| 2514 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2515 | $as_echo_n "(cached) " >&6 |
| 2516 | else |
| 2517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2518 | /* end confdefs.h. */ |
| 2519 | #include <$2> |
| 2520 | _ACEOF |
| 2521 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2522 | eval "$3=yes" |
| 2523 | else |
| 2524 | eval "$3=no" |
| 2525 | fi |
| 2526 | rm -f conftest.err conftest.$ac_ext |
| 2527 | fi |
| 2528 | eval ac_res=\$$3 |
| 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2530 | $as_echo "$ac_res" >&6; } |
| 2531 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2532 | |
| 2533 | } # ac_fn_c_check_header_preproc |
| 2534 | |
| 2535 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2536 | # ---------------------------------------------------- |
| 2537 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2538 | # INCLUDES, setting cache variable VAR accordingly. |
| 2539 | ac_fn_c_check_member () |
| 2540 | { |
| 2541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2543 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2544 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2545 | $as_echo_n "(cached) " >&6 |
| 2546 | else |
| 2547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2548 | /* end confdefs.h. */ |
| 2549 | $5 |
| 2550 | int |
| 2551 | main () |
| 2552 | { |
| 2553 | static $2 ac_aggr; |
| 2554 | if (ac_aggr.$3) |
| 2555 | return 0; |
| 2556 | ; |
| 2557 | return 0; |
| 2558 | } |
| 2559 | _ACEOF |
| 2560 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2561 | eval "$4=yes" |
| 2562 | else |
| 2563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2564 | /* end confdefs.h. */ |
| 2565 | $5 |
| 2566 | int |
| 2567 | main () |
| 2568 | { |
| 2569 | static $2 ac_aggr; |
| 2570 | if (sizeof ac_aggr.$3) |
| 2571 | return 0; |
| 2572 | ; |
| 2573 | return 0; |
| 2574 | } |
| 2575 | _ACEOF |
| 2576 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2577 | eval "$4=yes" |
| 2578 | else |
| 2579 | eval "$4=no" |
| 2580 | fi |
| 2581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2582 | fi |
| 2583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2584 | fi |
| 2585 | eval ac_res=\$$4 |
| 2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2587 | $as_echo "$ac_res" >&6; } |
| 2588 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2589 | |
| 2590 | } # ac_fn_c_check_member |
| 2591 | |
| 2592 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2593 | # ---------------------------------- |
| 2594 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2595 | ac_fn_c_check_func () |
| 2596 | { |
| 2597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2599 | $as_echo_n "checking for $2... " >&6; } |
| 2600 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2601 | $as_echo_n "(cached) " >&6 |
| 2602 | else |
| 2603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2604 | /* end confdefs.h. */ |
| 2605 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2607 | #define $2 innocuous_$2 |
| 2608 | |
| 2609 | /* System header to define __stub macros and hopefully few prototypes, |
| 2610 | which can conflict with char $2 (); below. |
| 2611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2612 | <limits.h> exists even on freestanding compilers. */ |
| 2613 | |
| 2614 | #ifdef __STDC__ |
| 2615 | # include <limits.h> |
| 2616 | #else |
| 2617 | # include <assert.h> |
| 2618 | #endif |
| 2619 | |
| 2620 | #undef $2 |
| 2621 | |
| 2622 | /* Override any GCC internal prototype to avoid an error. |
| 2623 | Use char because int might match the return type of a GCC |
| 2624 | builtin and then its argument prototype would still apply. */ |
| 2625 | #ifdef __cplusplus |
| 2626 | extern "C" |
| 2627 | #endif |
| 2628 | char $2 (); |
| 2629 | /* The GNU C library defines this for functions which it implements |
| 2630 | to always fail with ENOSYS. Some functions are actually named |
| 2631 | something starting with __ and the normal name is an alias. */ |
| 2632 | #if defined __stub_$2 || defined __stub___$2 |
| 2633 | choke me |
| 2634 | #endif |
| 2635 | |
| 2636 | int |
| 2637 | main () |
| 2638 | { |
| 2639 | return $2 (); |
| 2640 | ; |
| 2641 | return 0; |
| 2642 | } |
| 2643 | _ACEOF |
| 2644 | if ac_fn_c_try_link "$LINENO"; then : |
| 2645 | eval "$3=yes" |
| 2646 | else |
| 2647 | eval "$3=no" |
| 2648 | fi |
| 2649 | rm -f core conftest.err conftest.$ac_objext \ |
| 2650 | conftest$ac_exeext conftest.$ac_ext |
| 2651 | fi |
| 2652 | eval ac_res=\$$3 |
| 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2654 | $as_echo "$ac_res" >&6; } |
| 2655 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2656 | |
| 2657 | } # ac_fn_c_check_func |
| 2658 | |
| 2659 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2660 | # ------------------------------------------- |
| 2661 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2662 | # variable VAR accordingly. |
| 2663 | ac_fn_c_check_type () |
| 2664 | { |
| 2665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2667 | $as_echo_n "checking for $2... " >&6; } |
| 2668 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2669 | $as_echo_n "(cached) " >&6 |
| 2670 | else |
| 2671 | eval "$3=no" |
| 2672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2673 | /* end confdefs.h. */ |
| 2674 | $4 |
| 2675 | int |
| 2676 | main () |
| 2677 | { |
| 2678 | if (sizeof ($2)) |
| 2679 | return 0; |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
| 2684 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2686 | /* end confdefs.h. */ |
| 2687 | $4 |
| 2688 | int |
| 2689 | main () |
| 2690 | { |
| 2691 | if (sizeof (($2))) |
| 2692 | return 0; |
| 2693 | ; |
| 2694 | return 0; |
| 2695 | } |
| 2696 | _ACEOF |
| 2697 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2698 | |
| 2699 | else |
| 2700 | eval "$3=yes" |
| 2701 | fi |
| 2702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2703 | fi |
| 2704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2705 | fi |
| 2706 | eval ac_res=\$$3 |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2708 | $as_echo "$ac_res" >&6; } |
| 2709 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2710 | |
| 2711 | } # ac_fn_c_check_type |
| 2712 | |
| 2713 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2714 | # -------------------------------------------- |
| 2715 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2716 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2717 | # computed |
| 2718 | ac_fn_c_compute_int () |
| 2719 | { |
| 2720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2721 | if test "$cross_compiling" = yes; then |
| 2722 | # Depending upon the size, compute the lo and hi bounds. |
| 2723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2724 | /* end confdefs.h. */ |
| 2725 | $4 |
| 2726 | int |
| 2727 | main () |
| 2728 | { |
| 2729 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2730 | test_array [0] = 0 |
| 2731 | |
| 2732 | ; |
| 2733 | return 0; |
| 2734 | } |
| 2735 | _ACEOF |
| 2736 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2737 | ac_lo=0 ac_mid=0 |
| 2738 | while :; do |
| 2739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2740 | /* end confdefs.h. */ |
| 2741 | $4 |
| 2742 | int |
| 2743 | main () |
| 2744 | { |
| 2745 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2746 | test_array [0] = 0 |
| 2747 | |
| 2748 | ; |
| 2749 | return 0; |
| 2750 | } |
| 2751 | _ACEOF |
| 2752 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2753 | ac_hi=$ac_mid; break |
| 2754 | else |
| 2755 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2756 | if test $ac_lo -le $ac_mid; then |
| 2757 | ac_lo= ac_hi= |
| 2758 | break |
| 2759 | fi |
| 2760 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2761 | fi |
| 2762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2763 | done |
| 2764 | else |
| 2765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2766 | /* end confdefs.h. */ |
| 2767 | $4 |
| 2768 | int |
| 2769 | main () |
| 2770 | { |
| 2771 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2772 | test_array [0] = 0 |
| 2773 | |
| 2774 | ; |
| 2775 | return 0; |
| 2776 | } |
| 2777 | _ACEOF |
| 2778 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2779 | ac_hi=-1 ac_mid=-1 |
| 2780 | while :; do |
| 2781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2782 | /* end confdefs.h. */ |
| 2783 | $4 |
| 2784 | int |
| 2785 | main () |
| 2786 | { |
| 2787 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2788 | test_array [0] = 0 |
| 2789 | |
| 2790 | ; |
| 2791 | return 0; |
| 2792 | } |
| 2793 | _ACEOF |
| 2794 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2795 | ac_lo=$ac_mid; break |
| 2796 | else |
| 2797 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2798 | if test $ac_mid -le $ac_hi; then |
| 2799 | ac_lo= ac_hi= |
| 2800 | break |
| 2801 | fi |
| 2802 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2803 | fi |
| 2804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2805 | done |
| 2806 | else |
| 2807 | ac_lo= ac_hi= |
| 2808 | fi |
| 2809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2810 | fi |
| 2811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2812 | # Binary search between lo and hi bounds. |
| 2813 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2814 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2816 | /* end confdefs.h. */ |
| 2817 | $4 |
| 2818 | int |
| 2819 | main () |
| 2820 | { |
| 2821 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2822 | test_array [0] = 0 |
| 2823 | |
| 2824 | ; |
| 2825 | return 0; |
| 2826 | } |
| 2827 | _ACEOF |
| 2828 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2829 | ac_hi=$ac_mid |
| 2830 | else |
| 2831 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2832 | fi |
| 2833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2834 | done |
| 2835 | case $ac_lo in #(( |
| 2836 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2837 | '') ac_retval=1 ;; |
| 2838 | esac |
| 2839 | else |
| 2840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2841 | /* end confdefs.h. */ |
| 2842 | $4 |
| 2843 | static long int longval () { return $2; } |
| 2844 | static unsigned long int ulongval () { return $2; } |
| 2845 | #include <stdio.h> |
| 2846 | #include <stdlib.h> |
| 2847 | int |
| 2848 | main () |
| 2849 | { |
| 2850 | |
| 2851 | FILE *f = fopen ("conftest.val", "w"); |
| 2852 | if (! f) |
| 2853 | return 1; |
| 2854 | if (($2) < 0) |
| 2855 | { |
| 2856 | long int i = longval (); |
| 2857 | if (i != ($2)) |
| 2858 | return 1; |
| 2859 | fprintf (f, "%ld", i); |
| 2860 | } |
| 2861 | else |
| 2862 | { |
| 2863 | unsigned long int i = ulongval (); |
| 2864 | if (i != ($2)) |
| 2865 | return 1; |
| 2866 | fprintf (f, "%lu", i); |
| 2867 | } |
| 2868 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2869 | on some platforms. */ |
| 2870 | return ferror (f) || fclose (f) != 0; |
| 2871 | |
| 2872 | ; |
| 2873 | return 0; |
| 2874 | } |
| 2875 | _ACEOF |
| 2876 | if ac_fn_c_try_run "$LINENO"; then : |
| 2877 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2878 | else |
| 2879 | ac_retval=1 |
| 2880 | fi |
| 2881 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2882 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2883 | rm -f conftest.val |
| 2884 | |
| 2885 | fi |
| 2886 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2887 | as_fn_set_status $ac_retval |
| 2888 | |
| 2889 | } # ac_fn_c_compute_int |
| 2890 | cat >config.log <<_ACEOF |
| 2891 | This file contains any messages produced by compilers while |
| 2892 | running configure, to aid debugging if configure makes a mistake. |
| 2893 | |
| 2894 | It was created by emacs $as_me 24.2.50, which was |
| 2895 | generated by GNU Autoconf 2.65. Invocation command line was |
| 2896 | |
| 2897 | $ $0 $@ |
| 2898 | |
| 2899 | _ACEOF |
| 2900 | exec 5>>config.log |
| 2901 | { |
| 2902 | cat <<_ASUNAME |
| 2903 | ## --------- ## |
| 2904 | ## Platform. ## |
| 2905 | ## --------- ## |
| 2906 | |
| 2907 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2908 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2909 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2910 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2911 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2912 | |
| 2913 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2914 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2915 | |
| 2916 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2917 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2918 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2919 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2920 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2921 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2922 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2923 | |
| 2924 | _ASUNAME |
| 2925 | |
| 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2927 | for as_dir in $PATH |
| 2928 | do |
| 2929 | IFS=$as_save_IFS |
| 2930 | test -z "$as_dir" && as_dir=. |
| 2931 | $as_echo "PATH: $as_dir" |
| 2932 | done |
| 2933 | IFS=$as_save_IFS |
| 2934 | |
| 2935 | } >&5 |
| 2936 | |
| 2937 | cat >&5 <<_ACEOF |
| 2938 | |
| 2939 | |
| 2940 | ## ----------- ## |
| 2941 | ## Core tests. ## |
| 2942 | ## ----------- ## |
| 2943 | |
| 2944 | _ACEOF |
| 2945 | |
| 2946 | |
| 2947 | # Keep a trace of the command line. |
| 2948 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2949 | # Strip out --silent because we don't want to record it for future runs. |
| 2950 | # Also quote any args containing shell meta-characters. |
| 2951 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2952 | ac_configure_args= |
| 2953 | ac_configure_args0= |
| 2954 | ac_configure_args1= |
| 2955 | ac_must_keep_next=false |
| 2956 | for ac_pass in 1 2 |
| 2957 | do |
| 2958 | for ac_arg |
| 2959 | do |
| 2960 | case $ac_arg in |
| 2961 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2962 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2963 | | -silent | --silent | --silen | --sile | --sil) |
| 2964 | continue ;; |
| 2965 | *\'*) |
| 2966 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2967 | esac |
| 2968 | case $ac_pass in |
| 2969 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2970 | 2) |
| 2971 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2972 | if test $ac_must_keep_next = true; then |
| 2973 | ac_must_keep_next=false # Got value, back to normal. |
| 2974 | else |
| 2975 | case $ac_arg in |
| 2976 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2977 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2978 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2979 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2980 | case "$ac_configure_args0 " in |
| 2981 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2982 | esac |
| 2983 | ;; |
| 2984 | -* ) ac_must_keep_next=true ;; |
| 2985 | esac |
| 2986 | fi |
| 2987 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2988 | ;; |
| 2989 | esac |
| 2990 | done |
| 2991 | done |
| 2992 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2993 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2994 | |
| 2995 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2996 | # config.log. We remove comments because anyway the quotes in there |
| 2997 | # would cause problems or look ugly. |
| 2998 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2999 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3000 | trap 'exit_status=$? |
| 3001 | # Save into config.log some information that might help in debugging. |
| 3002 | { |
| 3003 | echo |
| 3004 | |
| 3005 | cat <<\_ASBOX |
| 3006 | ## ---------------- ## |
| 3007 | ## Cache variables. ## |
| 3008 | ## ---------------- ## |
| 3009 | _ASBOX |
| 3010 | echo |
| 3011 | # The following way of writing the cache mishandles newlines in values, |
| 3012 | ( |
| 3013 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3014 | eval ac_val=\$$ac_var |
| 3015 | case $ac_val in #( |
| 3016 | *${as_nl}*) |
| 3017 | case $ac_var in #( |
| 3018 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3019 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3020 | esac |
| 3021 | case $ac_var in #( |
| 3022 | _ | IFS | as_nl) ;; #( |
| 3023 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3024 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 3025 | esac ;; |
| 3026 | esac |
| 3027 | done |
| 3028 | (set) 2>&1 | |
| 3029 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3030 | *${as_nl}ac_space=\ *) |
| 3031 | sed -n \ |
| 3032 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3033 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3034 | ;; #( |
| 3035 | *) |
| 3036 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3037 | ;; |
| 3038 | esac | |
| 3039 | sort |
| 3040 | ) |
| 3041 | echo |
| 3042 | |
| 3043 | cat <<\_ASBOX |
| 3044 | ## ----------------- ## |
| 3045 | ## Output variables. ## |
| 3046 | ## ----------------- ## |
| 3047 | _ASBOX |
| 3048 | echo |
| 3049 | for ac_var in $ac_subst_vars |
| 3050 | do |
| 3051 | eval ac_val=\$$ac_var |
| 3052 | case $ac_val in |
| 3053 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3054 | esac |
| 3055 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3056 | done | sort |
| 3057 | echo |
| 3058 | |
| 3059 | if test -n "$ac_subst_files"; then |
| 3060 | cat <<\_ASBOX |
| 3061 | ## ------------------- ## |
| 3062 | ## File substitutions. ## |
| 3063 | ## ------------------- ## |
| 3064 | _ASBOX |
| 3065 | echo |
| 3066 | for ac_var in $ac_subst_files |
| 3067 | do |
| 3068 | eval ac_val=\$$ac_var |
| 3069 | case $ac_val in |
| 3070 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3071 | esac |
| 3072 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3073 | done | sort |
| 3074 | echo |
| 3075 | fi |
| 3076 | |
| 3077 | if test -s confdefs.h; then |
| 3078 | cat <<\_ASBOX |
| 3079 | ## ----------- ## |
| 3080 | ## confdefs.h. ## |
| 3081 | ## ----------- ## |
| 3082 | _ASBOX |
| 3083 | echo |
| 3084 | cat confdefs.h |
| 3085 | echo |
| 3086 | fi |
| 3087 | test "$ac_signal" != 0 && |
| 3088 | $as_echo "$as_me: caught signal $ac_signal" |
| 3089 | $as_echo "$as_me: exit $exit_status" |
| 3090 | } >&5 |
| 3091 | rm -f core *.core core.conftest.* && |
| 3092 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3093 | exit $exit_status |
| 3094 | ' 0 |
| 3095 | for ac_signal in 1 2 13 15; do |
| 3096 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 3097 | done |
| 3098 | ac_signal=0 |
| 3099 | |
| 3100 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3101 | rm -f -r conftest* confdefs.h |
| 3102 | |
| 3103 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3104 | |
| 3105 | # Predefined preprocessor variables. |
| 3106 | |
| 3107 | cat >>confdefs.h <<_ACEOF |
| 3108 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3109 | _ACEOF |
| 3110 | |
| 3111 | cat >>confdefs.h <<_ACEOF |
| 3112 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3113 | _ACEOF |
| 3114 | |
| 3115 | cat >>confdefs.h <<_ACEOF |
| 3116 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3117 | _ACEOF |
| 3118 | |
| 3119 | cat >>confdefs.h <<_ACEOF |
| 3120 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3121 | _ACEOF |
| 3122 | |
| 3123 | cat >>confdefs.h <<_ACEOF |
| 3124 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3125 | _ACEOF |
| 3126 | |
| 3127 | cat >>confdefs.h <<_ACEOF |
| 3128 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3129 | _ACEOF |
| 3130 | |
| 3131 | |
| 3132 | # Let the site file select an alternate cache file if it wants to. |
| 3133 | # Prefer an explicitly selected file to automatically selected ones. |
| 3134 | ac_site_file1=NONE |
| 3135 | ac_site_file2=NONE |
| 3136 | if test -n "$CONFIG_SITE"; then |
| 3137 | ac_site_file1=$CONFIG_SITE |
| 3138 | elif test "x$prefix" != xNONE; then |
| 3139 | ac_site_file1=$prefix/share/config.site |
| 3140 | ac_site_file2=$prefix/etc/config.site |
| 3141 | else |
| 3142 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3143 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3144 | fi |
| 3145 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3146 | do |
| 3147 | test "x$ac_site_file" = xNONE && continue |
| 3148 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 3150 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3151 | sed 's/^/| /' "$ac_site_file" >&5 |
| 3152 | . "$ac_site_file" |
| 3153 | fi |
| 3154 | done |
| 3155 | |
| 3156 | if test -r "$cache_file"; then |
| 3157 | # Some versions of bash will fail to source /dev/null (special files |
| 3158 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3159 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3161 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3162 | case $cache_file in |
| 3163 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3164 | *) . "./$cache_file";; |
| 3165 | esac |
| 3166 | fi |
| 3167 | else |
| 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3169 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3170 | >$cache_file |
| 3171 | fi |
| 3172 | |
| 3173 | as_fn_append ac_header_list " linux/version.h" |
| 3174 | as_fn_append ac_header_list " sys/systeminfo.h" |
| 3175 | as_fn_append ac_header_list " stdio_ext.h" |
| 3176 | as_fn_append ac_header_list " fcntl.h" |
| 3177 | as_fn_append ac_header_list " coff.h" |
| 3178 | as_fn_append ac_header_list " pty.h" |
| 3179 | as_fn_append ac_header_list " sys/vlimit.h" |
| 3180 | as_fn_append ac_header_list " sys/resource.h" |
| 3181 | as_fn_append ac_header_list " sys/utsname.h" |
| 3182 | as_fn_append ac_header_list " pwd.h" |
| 3183 | as_fn_append ac_header_list " utmp.h" |
| 3184 | as_fn_append ac_header_list " dirent.h" |
| 3185 | as_fn_append ac_header_list " util.h" |
| 3186 | as_fn_append ac_header_list " sys/socket.h" |
| 3187 | as_fn_append ac_header_list " stdlib.h" |
| 3188 | as_fn_append ac_header_list " unistd.h" |
| 3189 | as_fn_append ac_header_list " sys/param.h" |
| 3190 | as_fn_append ac_header_list " pthread.h" |
| 3191 | as_fn_append ac_header_list " malloc/malloc.h" |
| 3192 | as_fn_append ac_header_list " maillock.h" |
| 3193 | as_fn_append ac_header_list " sys/un.h" |
| 3194 | as_fn_append ac_func_list " tzset" |
| 3195 | as_fn_append ac_func_list " readlinkat" |
| 3196 | gl_getopt_required=GNU |
| 3197 | as_fn_append ac_header_list " getopt.h" |
| 3198 | as_fn_append ac_func_list " gettimeofday" |
| 3199 | as_fn_append ac_func_list " nanotime" |
| 3200 | as_fn_append ac_header_list " sys/time.h" |
| 3201 | as_fn_append ac_header_list " wchar.h" |
| 3202 | as_fn_append ac_header_list " stdint.h" |
| 3203 | as_fn_append ac_header_list " inttypes.h" |
| 3204 | as_fn_append ac_func_list " lstat" |
| 3205 | as_fn_append ac_func_list " alarm" |
| 3206 | as_fn_append ac_header_list " sys/select.h" |
| 3207 | as_fn_append ac_func_list " pselect" |
| 3208 | as_fn_append ac_func_list " pthread_sigmask" |
| 3209 | as_fn_append ac_func_list " readlink" |
| 3210 | as_fn_append ac_func_list " strtoimax" |
| 3211 | as_fn_append ac_func_list " strtoumax" |
| 3212 | as_fn_append ac_func_list " symlink" |
| 3213 | as_fn_append ac_header_list " sys/stat.h" |
| 3214 | as_fn_append ac_func_list " localtime_r" |
| 3215 | as_fn_append ac_header_list " utime.h" |
| 3216 | as_fn_append ac_func_list " futimes" |
| 3217 | as_fn_append ac_func_list " futimesat" |
| 3218 | as_fn_append ac_func_list " futimens" |
| 3219 | as_fn_append ac_func_list " utimensat" |
| 3220 | as_fn_append ac_func_list " lutimes" |
| 3221 | # Check that the precious variables saved in the cache have kept the same |
| 3222 | # value. |
| 3223 | ac_cache_corrupted=false |
| 3224 | for ac_var in $ac_precious_vars; do |
| 3225 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3226 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3227 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3228 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3229 | case $ac_old_set,$ac_new_set in |
| 3230 | set,) |
| 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3232 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3233 | ac_cache_corrupted=: ;; |
| 3234 | ,set) |
| 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3236 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3237 | ac_cache_corrupted=: ;; |
| 3238 | ,);; |
| 3239 | *) |
| 3240 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3241 | # differences in whitespace do not lead to failure. |
| 3242 | ac_old_val_w=`echo x $ac_old_val` |
| 3243 | ac_new_val_w=`echo x $ac_new_val` |
| 3244 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3246 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3247 | ac_cache_corrupted=: |
| 3248 | else |
| 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3250 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3251 | eval $ac_var=\$ac_old_val |
| 3252 | fi |
| 3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3254 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3256 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3257 | fi;; |
| 3258 | esac |
| 3259 | # Pass precious variables to config.status. |
| 3260 | if test "$ac_new_set" = set; then |
| 3261 | case $ac_new_val in |
| 3262 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3263 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3264 | esac |
| 3265 | case " $ac_configure_args " in |
| 3266 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3267 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3268 | esac |
| 3269 | fi |
| 3270 | done |
| 3271 | if $ac_cache_corrupted; then |
| 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3275 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3276 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 3277 | fi |
| 3278 | ## -------------------- ## |
| 3279 | ## Main body of script. ## |
| 3280 | ## -------------------- ## |
| 3281 | |
| 3282 | ac_ext=c |
| 3283 | ac_cpp='$CPP $CPPFLAGS' |
| 3284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3287 | |
| 3288 | |
| 3289 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
| 3290 | |
| 3291 | |
| 3292 | ac_aux_dir= |
| 3293 | for ac_dir in build-aux "$srcdir"/build-aux; do |
| 3294 | for ac_t in install-sh install.sh shtool; do |
| 3295 | if test -f "$ac_dir/$ac_t"; then |
| 3296 | ac_aux_dir=$ac_dir |
| 3297 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3298 | break 2 |
| 3299 | fi |
| 3300 | done |
| 3301 | done |
| 3302 | if test -z "$ac_aux_dir"; then |
| 3303 | as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
| 3304 | fi |
| 3305 | |
| 3306 | # These three variables are undocumented and unsupported, |
| 3307 | # and are intended to be withdrawn in a future Autoconf release. |
| 3308 | # They can cause serious problems if a builder's source tree is in a directory |
| 3309 | # whose full name contains unusual characters. |
| 3310 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3311 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3312 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3313 | |
| 3314 | |
| 3315 | am__api_version='1.11' |
| 3316 | |
| 3317 | # Find a good install program. We prefer a C program (faster), |
| 3318 | # so one script is as good as another. But avoid the broken or |
| 3319 | # incompatible versions: |
| 3320 | # SysV /etc/install, /usr/sbin/install |
| 3321 | # SunOS /usr/etc/install |
| 3322 | # IRIX /sbin/install |
| 3323 | # AIX /bin/install |
| 3324 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3325 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3326 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3327 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3328 | # OS/2's system install, which has a completely different semantic |
| 3329 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3330 | # Reject install programs that cannot install multiple files. |
| 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3332 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3333 | if test -z "$INSTALL"; then |
| 3334 | if test "${ac_cv_path_install+set}" = set; then : |
| 3335 | $as_echo_n "(cached) " >&6 |
| 3336 | else |
| 3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3338 | for as_dir in $PATH |
| 3339 | do |
| 3340 | IFS=$as_save_IFS |
| 3341 | test -z "$as_dir" && as_dir=. |
| 3342 | # Account for people who put trailing slashes in PATH elements. |
| 3343 | case $as_dir/ in #(( |
| 3344 | ./ | .// | /[cC]/* | \ |
| 3345 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3346 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3347 | /usr/ucb/* ) ;; |
| 3348 | *) |
| 3349 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3350 | # Don't use installbsd from OSF since it installs stuff as root |
| 3351 | # by default. |
| 3352 | for ac_prog in ginstall scoinst install; do |
| 3353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3354 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3355 | if test $ac_prog = install && |
| 3356 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3357 | # AIX install. It has an incompatible calling convention. |
| 3358 | : |
| 3359 | elif test $ac_prog = install && |
| 3360 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3361 | # program-specific install script used by HP pwplus--don't use. |
| 3362 | : |
| 3363 | else |
| 3364 | rm -rf conftest.one conftest.two conftest.dir |
| 3365 | echo one > conftest.one |
| 3366 | echo two > conftest.two |
| 3367 | mkdir conftest.dir |
| 3368 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3369 | test -s conftest.one && test -s conftest.two && |
| 3370 | test -s conftest.dir/conftest.one && |
| 3371 | test -s conftest.dir/conftest.two |
| 3372 | then |
| 3373 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3374 | break 3 |
| 3375 | fi |
| 3376 | fi |
| 3377 | fi |
| 3378 | done |
| 3379 | done |
| 3380 | ;; |
| 3381 | esac |
| 3382 | |
| 3383 | done |
| 3384 | IFS=$as_save_IFS |
| 3385 | |
| 3386 | rm -rf conftest.one conftest.two conftest.dir |
| 3387 | |
| 3388 | fi |
| 3389 | if test "${ac_cv_path_install+set}" = set; then |
| 3390 | INSTALL=$ac_cv_path_install |
| 3391 | else |
| 3392 | # As a last resort, use the slow shell script. Don't cache a |
| 3393 | # value for INSTALL within a source directory, because that will |
| 3394 | # break other packages using the cache if that directory is |
| 3395 | # removed, or if the value is a relative name. |
| 3396 | INSTALL=$ac_install_sh |
| 3397 | fi |
| 3398 | fi |
| 3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3400 | $as_echo "$INSTALL" >&6; } |
| 3401 | |
| 3402 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3403 | # It thinks the first close brace ends the variable substitution. |
| 3404 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3405 | |
| 3406 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3407 | |
| 3408 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3409 | |
| 3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3411 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3412 | # Just in case |
| 3413 | sleep 1 |
| 3414 | echo timestamp > conftest.file |
| 3415 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3416 | # name. Accept space and tab only in the latter. |
| 3417 | am_lf=' |
| 3418 | ' |
| 3419 | case `pwd` in |
| 3420 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3421 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 3422 | esac |
| 3423 | case $srcdir in |
| 3424 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3425 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 3426 | esac |
| 3427 | |
| 3428 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3429 | # arguments. Must try -L first in case configure is actually a |
| 3430 | # symlink; some systems play weird games with the mod time of symlinks |
| 3431 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3432 | # directory). |
| 3433 | if ( |
| 3434 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3435 | if test "$*" = "X"; then |
| 3436 | # -L didn't work. |
| 3437 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3438 | fi |
| 3439 | rm -f conftest.file |
| 3440 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3441 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3442 | |
| 3443 | # If neither matched, then we have a broken ls. This can happen |
| 3444 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3445 | # broken ls alias from the environment. This has actually |
| 3446 | # happened. Such a system could not be considered "sane". |
| 3447 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 3448 | alias in your environment" "$LINENO" 5 |
| 3449 | fi |
| 3450 | |
| 3451 | test "$2" = conftest.file |
| 3452 | ) |
| 3453 | then |
| 3454 | # Ok. |
| 3455 | : |
| 3456 | else |
| 3457 | as_fn_error "newly created file is older than distributed files! |
| 3458 | Check your system clock" "$LINENO" 5 |
| 3459 | fi |
| 3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3461 | $as_echo "yes" >&6; } |
| 3462 | test "$program_prefix" != NONE && |
| 3463 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3464 | # Use a double $ so make ignores it. |
| 3465 | test "$program_suffix" != NONE && |
| 3466 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3467 | # Double any \ or $. |
| 3468 | # By default was `s,x,x', remove it if useless. |
| 3469 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3470 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3471 | |
| 3472 | # expand $ac_aux_dir to an absolute path |
| 3473 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3474 | |
| 3475 | if test x"${MISSING+set}" != xset; then |
| 3476 | case $am_aux_dir in |
| 3477 | *\ * | *\ *) |
| 3478 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3479 | *) |
| 3480 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3481 | esac |
| 3482 | fi |
| 3483 | # Use eval to expand $SHELL |
| 3484 | if eval "$MISSING --run true"; then |
| 3485 | am_missing_run="$MISSING --run " |
| 3486 | else |
| 3487 | am_missing_run= |
| 3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3489 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3490 | fi |
| 3491 | |
| 3492 | if test x"${install_sh}" != xset; then |
| 3493 | case $am_aux_dir in |
| 3494 | *\ * | *\ *) |
| 3495 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3496 | *) |
| 3497 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3498 | esac |
| 3499 | fi |
| 3500 | |
| 3501 | # Installed binaries are usually stripped using `strip' when the user |
| 3502 | # run `make install-strip'. However `strip' might not be the right |
| 3503 | # tool to use in cross-compilation environments, therefore Automake |
| 3504 | # will honor the `STRIP' environment variable to overrule this program. |
| 3505 | if test "$cross_compiling" != no; then |
| 3506 | if test -n "$ac_tool_prefix"; then |
| 3507 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3508 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3510 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3511 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 3512 | $as_echo_n "(cached) " >&6 |
| 3513 | else |
| 3514 | if test -n "$STRIP"; then |
| 3515 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3516 | else |
| 3517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3518 | for as_dir in $PATH |
| 3519 | do |
| 3520 | IFS=$as_save_IFS |
| 3521 | test -z "$as_dir" && as_dir=. |
| 3522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3524 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3526 | break 2 |
| 3527 | fi |
| 3528 | done |
| 3529 | done |
| 3530 | IFS=$as_save_IFS |
| 3531 | |
| 3532 | fi |
| 3533 | fi |
| 3534 | STRIP=$ac_cv_prog_STRIP |
| 3535 | if test -n "$STRIP"; then |
| 3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3537 | $as_echo "$STRIP" >&6; } |
| 3538 | else |
| 3539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3540 | $as_echo "no" >&6; } |
| 3541 | fi |
| 3542 | |
| 3543 | |
| 3544 | fi |
| 3545 | if test -z "$ac_cv_prog_STRIP"; then |
| 3546 | ac_ct_STRIP=$STRIP |
| 3547 | # Extract the first word of "strip", so it can be a program name with args. |
| 3548 | set dummy strip; ac_word=$2 |
| 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3550 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3551 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 3552 | $as_echo_n "(cached) " >&6 |
| 3553 | else |
| 3554 | if test -n "$ac_ct_STRIP"; then |
| 3555 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3556 | else |
| 3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3558 | for as_dir in $PATH |
| 3559 | do |
| 3560 | IFS=$as_save_IFS |
| 3561 | test -z "$as_dir" && as_dir=. |
| 3562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3564 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3566 | break 2 |
| 3567 | fi |
| 3568 | done |
| 3569 | done |
| 3570 | IFS=$as_save_IFS |
| 3571 | |
| 3572 | fi |
| 3573 | fi |
| 3574 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3575 | if test -n "$ac_ct_STRIP"; then |
| 3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3577 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3578 | else |
| 3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3580 | $as_echo "no" >&6; } |
| 3581 | fi |
| 3582 | |
| 3583 | if test "x$ac_ct_STRIP" = x; then |
| 3584 | STRIP=":" |
| 3585 | else |
| 3586 | case $cross_compiling:$ac_tool_warned in |
| 3587 | yes:) |
| 3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3589 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3590 | ac_tool_warned=yes ;; |
| 3591 | esac |
| 3592 | STRIP=$ac_ct_STRIP |
| 3593 | fi |
| 3594 | else |
| 3595 | STRIP="$ac_cv_prog_STRIP" |
| 3596 | fi |
| 3597 | |
| 3598 | fi |
| 3599 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3600 | |
| 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3602 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3603 | if test -z "$MKDIR_P"; then |
| 3604 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 3605 | $as_echo_n "(cached) " >&6 |
| 3606 | else |
| 3607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3608 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3609 | do |
| 3610 | IFS=$as_save_IFS |
| 3611 | test -z "$as_dir" && as_dir=. |
| 3612 | for ac_prog in mkdir gmkdir; do |
| 3613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3614 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3615 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3616 | 'mkdir (GNU coreutils) '* | \ |
| 3617 | 'mkdir (coreutils) '* | \ |
| 3618 | 'mkdir (fileutils) '4.1*) |
| 3619 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3620 | break 3;; |
| 3621 | esac |
| 3622 | done |
| 3623 | done |
| 3624 | done |
| 3625 | IFS=$as_save_IFS |
| 3626 | |
| 3627 | fi |
| 3628 | |
| 3629 | test -d ./--version && rmdir ./--version |
| 3630 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3631 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3632 | else |
| 3633 | # As a last resort, use the slow shell script. Don't cache a |
| 3634 | # value for MKDIR_P within a source directory, because that will |
| 3635 | # break other packages using the cache if that directory is |
| 3636 | # removed, or if the value is a relative name. |
| 3637 | MKDIR_P="$ac_install_sh -d" |
| 3638 | fi |
| 3639 | fi |
| 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3641 | $as_echo "$MKDIR_P" >&6; } |
| 3642 | |
| 3643 | |
| 3644 | mkdir_p="$MKDIR_P" |
| 3645 | case $mkdir_p in |
| 3646 | [\\/$]* | ?:[\\/]*) ;; |
| 3647 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3648 | esac |
| 3649 | |
| 3650 | for ac_prog in gawk mawk nawk awk |
| 3651 | do |
| 3652 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3653 | set dummy $ac_prog; ac_word=$2 |
| 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3655 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3656 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 3657 | $as_echo_n "(cached) " >&6 |
| 3658 | else |
| 3659 | if test -n "$AWK"; then |
| 3660 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3661 | else |
| 3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3663 | for as_dir in $PATH |
| 3664 | do |
| 3665 | IFS=$as_save_IFS |
| 3666 | test -z "$as_dir" && as_dir=. |
| 3667 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3669 | ac_cv_prog_AWK="$ac_prog" |
| 3670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3671 | break 2 |
| 3672 | fi |
| 3673 | done |
| 3674 | done |
| 3675 | IFS=$as_save_IFS |
| 3676 | |
| 3677 | fi |
| 3678 | fi |
| 3679 | AWK=$ac_cv_prog_AWK |
| 3680 | if test -n "$AWK"; then |
| 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3682 | $as_echo "$AWK" >&6; } |
| 3683 | else |
| 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3685 | $as_echo "no" >&6; } |
| 3686 | fi |
| 3687 | |
| 3688 | |
| 3689 | test -n "$AWK" && break |
| 3690 | done |
| 3691 | |
| 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3693 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3694 | set x ${MAKE-make} |
| 3695 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3696 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3697 | $as_echo_n "(cached) " >&6 |
| 3698 | else |
| 3699 | cat >conftest.make <<\_ACEOF |
| 3700 | SHELL = /bin/sh |
| 3701 | all: |
| 3702 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3703 | _ACEOF |
| 3704 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3705 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3706 | *@@@%%%=?*=@@@%%%*) |
| 3707 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3708 | *) |
| 3709 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3710 | esac |
| 3711 | rm -f conftest.make |
| 3712 | fi |
| 3713 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3715 | $as_echo "yes" >&6; } |
| 3716 | SET_MAKE= |
| 3717 | else |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3719 | $as_echo "no" >&6; } |
| 3720 | SET_MAKE="MAKE=${MAKE-make}" |
| 3721 | fi |
| 3722 | |
| 3723 | rm -rf .tst 2>/dev/null |
| 3724 | mkdir .tst 2>/dev/null |
| 3725 | if test -d .tst; then |
| 3726 | am__leading_dot=. |
| 3727 | else |
| 3728 | am__leading_dot=_ |
| 3729 | fi |
| 3730 | rmdir .tst 2>/dev/null |
| 3731 | |
| 3732 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3733 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3734 | # is not polluted with repeated "-I." |
| 3735 | am__isrc=' -I$(srcdir)' |
| 3736 | # test to see if srcdir already configured |
| 3737 | if test -f $srcdir/config.status; then |
| 3738 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3739 | fi |
| 3740 | fi |
| 3741 | |
| 3742 | # test whether we have cygpath |
| 3743 | if test -z "$CYGPATH_W"; then |
| 3744 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3745 | CYGPATH_W='cygpath -w' |
| 3746 | else |
| 3747 | CYGPATH_W=echo |
| 3748 | fi |
| 3749 | fi |
| 3750 | |
| 3751 | |
| 3752 | # Define the identity of the package. |
| 3753 | PACKAGE='emacs' |
| 3754 | VERSION='24.2.50' |
| 3755 | |
| 3756 | |
| 3757 | cat >>confdefs.h <<_ACEOF |
| 3758 | #define PACKAGE "$PACKAGE" |
| 3759 | _ACEOF |
| 3760 | |
| 3761 | |
| 3762 | cat >>confdefs.h <<_ACEOF |
| 3763 | #define VERSION "$VERSION" |
| 3764 | _ACEOF |
| 3765 | |
| 3766 | # Some tools Automake needs. |
| 3767 | |
| 3768 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3769 | |
| 3770 | |
| 3771 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3772 | |
| 3773 | |
| 3774 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3775 | |
| 3776 | |
| 3777 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3778 | |
| 3779 | |
| 3780 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3781 | |
| 3782 | # We need awk for the "check" target. The system "awk" is bad on |
| 3783 | # some platforms. |
| 3784 | # Always define AMTAR for backward compatibility. |
| 3785 | |
| 3786 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3787 | |
| 3788 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3789 | |
| 3790 | |
| 3791 | |
| 3792 | |
| 3793 | |
| 3794 | |
| 3795 | |
| 3796 | |
| 3797 | lispdir='${datadir}/emacs/${version}/lisp' |
| 3798 | leimdir='${datadir}/emacs/${version}/leim' |
| 3799 | standardlisppath='${lispdir}:${leimdir}' |
| 3800 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| 3801 | '${datadir}/emacs/site-lisp' |
| 3802 | lisppath='${locallisppath}:${standardlisppath}' |
| 3803 | etcdir='${datadir}/emacs/${version}/etc' |
| 3804 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' |
| 3805 | docdir='${datadir}/emacs/${version}/etc' |
| 3806 | gamedir='${localstatedir}/games/emacs' |
| 3807 | |
| 3808 | |
| 3809 | # Check whether --with-all was given. |
| 3810 | if test "${with_all+set}" = set; then : |
| 3811 | withval=$with_all; with_features=$withval |
| 3812 | else |
| 3813 | with_features=yes |
| 3814 | fi |
| 3815 | |
| 3816 | |
| 3817 | |
| 3818 | |
| 3819 | |
| 3820 | # Check whether --with-pop was given. |
| 3821 | if test "${with_pop+set}" = set; then : |
| 3822 | withval=$with_pop; |
| 3823 | else |
| 3824 | with_pop=$with_features |
| 3825 | fi |
| 3826 | |
| 3827 | if test "$with_pop" = yes; then |
| 3828 | $as_echo "#define MAIL_USE_POP 1" >>confdefs.h |
| 3829 | |
| 3830 | fi |
| 3831 | |
| 3832 | |
| 3833 | # Check whether --with-kerberos was given. |
| 3834 | if test "${with_kerberos+set}" = set; then : |
| 3835 | withval=$with_kerberos; |
| 3836 | else |
| 3837 | with_kerberos=no |
| 3838 | fi |
| 3839 | |
| 3840 | if test "$with_kerberos" != no; then |
| 3841 | $as_echo "#define KERBEROS 1" >>confdefs.h |
| 3842 | |
| 3843 | fi |
| 3844 | |
| 3845 | |
| 3846 | # Check whether --with-kerberos5 was given. |
| 3847 | if test "${with_kerberos5+set}" = set; then : |
| 3848 | withval=$with_kerberos5; |
| 3849 | else |
| 3850 | with_kerberos5=no |
| 3851 | fi |
| 3852 | |
| 3853 | if test "${with_kerberos5}" != no; then |
| 3854 | if test "${with_kerberos}" = no; then |
| 3855 | with_kerberos=yes |
| 3856 | $as_echo "#define KERBEROS 1" >>confdefs.h |
| 3857 | |
| 3858 | fi |
| 3859 | |
| 3860 | $as_echo "#define KERBEROS5 1" >>confdefs.h |
| 3861 | |
| 3862 | fi |
| 3863 | |
| 3864 | |
| 3865 | # Check whether --with-hesiod was given. |
| 3866 | if test "${with_hesiod+set}" = set; then : |
| 3867 | withval=$with_hesiod; |
| 3868 | else |
| 3869 | with_hesiod=no |
| 3870 | fi |
| 3871 | |
| 3872 | if test "$with_hesiod" != no; then |
| 3873 | |
| 3874 | $as_echo "#define HESIOD 1" >>confdefs.h |
| 3875 | |
| 3876 | fi |
| 3877 | |
| 3878 | |
| 3879 | # Check whether --with-mmdf was given. |
| 3880 | if test "${with_mmdf+set}" = set; then : |
| 3881 | withval=$with_mmdf; |
| 3882 | else |
| 3883 | with_mmdf=no |
| 3884 | fi |
| 3885 | |
| 3886 | if test "$with_mmdf" != no; then |
| 3887 | |
| 3888 | $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h |
| 3889 | |
| 3890 | fi |
| 3891 | |
| 3892 | |
| 3893 | # Check whether --with-mail-unlink was given. |
| 3894 | if test "${with_mail_unlink+set}" = set; then : |
| 3895 | withval=$with_mail_unlink; |
| 3896 | else |
| 3897 | with_mail_unlink=no |
| 3898 | fi |
| 3899 | |
| 3900 | if test "$with_mail_unlink" != no; then |
| 3901 | |
| 3902 | $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h |
| 3903 | |
| 3904 | fi |
| 3905 | |
| 3906 | |
| 3907 | # Check whether --with-mailhost was given. |
| 3908 | if test "${with_mailhost+set}" = set; then : |
| 3909 | withval=$with_mailhost; |
| 3910 | cat >>confdefs.h <<_ACEOF |
| 3911 | #define MAILHOST "$withval" |
| 3912 | _ACEOF |
| 3913 | |
| 3914 | fi |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | # Check whether --with-sound was given. |
| 3919 | if test "${with_sound+set}" = set; then : |
| 3920 | withval=$with_sound; |
| 3921 | else |
| 3922 | with_sound=$with_features |
| 3923 | fi |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | # Check whether --with-sync-input was given. |
| 3928 | if test "${with_sync_input+set}" = set; then : |
| 3929 | withval=$with_sync_input; |
| 3930 | else |
| 3931 | with_sync_input=$with_features |
| 3932 | fi |
| 3933 | |
| 3934 | if test "$with_sync_input" = yes; then |
| 3935 | |
| 3936 | $as_echo "#define SYNC_INPUT 1" >>confdefs.h |
| 3937 | |
| 3938 | fi |
| 3939 | |
| 3940 | |
| 3941 | # Check whether --with-x-toolkit was given. |
| 3942 | if test "${with_x_toolkit+set}" = set; then : |
| 3943 | withval=$with_x_toolkit; case "${withval}" in |
| 3944 | y | ye | yes ) val=gtk ;; |
| 3945 | n | no ) val=no ;; |
| 3946 | l | lu | luc | luci | lucid ) val=lucid ;; |
| 3947 | a | at | ath | athe | athen | athena ) val=athena ;; |
| 3948 | m | mo | mot | moti | motif ) val=motif ;; |
| 3949 | g | gt | gtk ) val=gtk ;; |
| 3950 | gtk3 ) val=gtk3 ;; |
| 3951 | * ) |
| 3952 | as_fn_error "\`--with-x-toolkit=$withval' is invalid; |
| 3953 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or |
| 3954 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
| 3955 | ;; |
| 3956 | esac |
| 3957 | with_x_toolkit=$val |
| 3958 | |
| 3959 | fi |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | # Check whether --with-wide-int was given. |
| 3964 | if test "${with_wide_int+set}" = set; then : |
| 3965 | withval=$with_wide_int; |
| 3966 | else |
| 3967 | with_wide_int=no |
| 3968 | fi |
| 3969 | |
| 3970 | if test "$with_wide_int" = yes; then |
| 3971 | |
| 3972 | $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h |
| 3973 | |
| 3974 | fi |
| 3975 | |
| 3976 | |
| 3977 | # Check whether --with-xpm was given. |
| 3978 | if test "${with_xpm+set}" = set; then : |
| 3979 | withval=$with_xpm; |
| 3980 | else |
| 3981 | with_xpm=$with_features |
| 3982 | fi |
| 3983 | |
| 3984 | |
| 3985 | # Check whether --with-jpeg was given. |
| 3986 | if test "${with_jpeg+set}" = set; then : |
| 3987 | withval=$with_jpeg; |
| 3988 | else |
| 3989 | with_jpeg=$with_features |
| 3990 | fi |
| 3991 | |
| 3992 | |
| 3993 | # Check whether --with-tiff was given. |
| 3994 | if test "${with_tiff+set}" = set; then : |
| 3995 | withval=$with_tiff; |
| 3996 | else |
| 3997 | with_tiff=$with_features |
| 3998 | fi |
| 3999 | |
| 4000 | |
| 4001 | # Check whether --with-gif was given. |
| 4002 | if test "${with_gif+set}" = set; then : |
| 4003 | withval=$with_gif; |
| 4004 | else |
| 4005 | with_gif=$with_features |
| 4006 | fi |
| 4007 | |
| 4008 | |
| 4009 | # Check whether --with-png was given. |
| 4010 | if test "${with_png+set}" = set; then : |
| 4011 | withval=$with_png; |
| 4012 | else |
| 4013 | with_png=$with_features |
| 4014 | fi |
| 4015 | |
| 4016 | |
| 4017 | # Check whether --with-rsvg was given. |
| 4018 | if test "${with_rsvg+set}" = set; then : |
| 4019 | withval=$with_rsvg; |
| 4020 | else |
| 4021 | with_rsvg=$with_features |
| 4022 | fi |
| 4023 | |
| 4024 | |
| 4025 | # Check whether --with-xml2 was given. |
| 4026 | if test "${with_xml2+set}" = set; then : |
| 4027 | withval=$with_xml2; |
| 4028 | else |
| 4029 | with_xml2=$with_features |
| 4030 | fi |
| 4031 | |
| 4032 | |
| 4033 | # Check whether --with-imagemagick was given. |
| 4034 | if test "${with_imagemagick+set}" = set; then : |
| 4035 | withval=$with_imagemagick; |
| 4036 | else |
| 4037 | with_imagemagick=$with_features |
| 4038 | fi |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | # Check whether --with-xft was given. |
| 4043 | if test "${with_xft+set}" = set; then : |
| 4044 | withval=$with_xft; |
| 4045 | else |
| 4046 | with_xft=$with_features |
| 4047 | fi |
| 4048 | |
| 4049 | |
| 4050 | # Check whether --with-libotf was given. |
| 4051 | if test "${with_libotf+set}" = set; then : |
| 4052 | withval=$with_libotf; |
| 4053 | else |
| 4054 | with_libotf=$with_features |
| 4055 | fi |
| 4056 | |
| 4057 | |
| 4058 | # Check whether --with-m17n-flt was given. |
| 4059 | if test "${with_m17n_flt+set}" = set; then : |
| 4060 | withval=$with_m17n_flt; |
| 4061 | else |
| 4062 | with_m17n_flt=$with_features |
| 4063 | fi |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | # Check whether --with-toolkit-scroll-bars was given. |
| 4068 | if test "${with_toolkit_scroll_bars+set}" = set; then : |
| 4069 | withval=$with_toolkit_scroll_bars; |
| 4070 | else |
| 4071 | with_toolkit_scroll_bars=$with_features |
| 4072 | fi |
| 4073 | |
| 4074 | |
| 4075 | # Check whether --with-xaw3d was given. |
| 4076 | if test "${with_xaw3d+set}" = set; then : |
| 4077 | withval=$with_xaw3d; |
| 4078 | else |
| 4079 | with_xaw3d=$with_features |
| 4080 | fi |
| 4081 | |
| 4082 | |
| 4083 | # Check whether --with-xim was given. |
| 4084 | if test "${with_xim+set}" = set; then : |
| 4085 | withval=$with_xim; |
| 4086 | else |
| 4087 | with_xim=$with_features |
| 4088 | fi |
| 4089 | |
| 4090 | |
| 4091 | # Check whether --with-ns was given. |
| 4092 | if test "${with_ns+set}" = set; then : |
| 4093 | withval=$with_ns; |
| 4094 | else |
| 4095 | with_ns=no |
| 4096 | fi |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | # Check whether --with-gpm was given. |
| 4101 | if test "${with_gpm+set}" = set; then : |
| 4102 | withval=$with_gpm; |
| 4103 | else |
| 4104 | with_gpm=$with_features |
| 4105 | fi |
| 4106 | |
| 4107 | |
| 4108 | # Check whether --with-dbus was given. |
| 4109 | if test "${with_dbus+set}" = set; then : |
| 4110 | withval=$with_dbus; |
| 4111 | else |
| 4112 | with_dbus=$with_features |
| 4113 | fi |
| 4114 | |
| 4115 | |
| 4116 | # Check whether --with-gconf was given. |
| 4117 | if test "${with_gconf+set}" = set; then : |
| 4118 | withval=$with_gconf; |
| 4119 | else |
| 4120 | with_gconf=$with_features |
| 4121 | fi |
| 4122 | |
| 4123 | |
| 4124 | # Check whether --with-gsettings was given. |
| 4125 | if test "${with_gsettings+set}" = set; then : |
| 4126 | withval=$with_gsettings; |
| 4127 | else |
| 4128 | with_gsettings=$with_features |
| 4129 | fi |
| 4130 | |
| 4131 | |
| 4132 | # Check whether --with-selinux was given. |
| 4133 | if test "${with_selinux+set}" = set; then : |
| 4134 | withval=$with_selinux; |
| 4135 | else |
| 4136 | with_selinux=$with_features |
| 4137 | fi |
| 4138 | |
| 4139 | |
| 4140 | # Check whether --with-gnutls was given. |
| 4141 | if test "${with_gnutls+set}" = set; then : |
| 4142 | withval=$with_gnutls; |
| 4143 | else |
| 4144 | with_gnutls=$with_features |
| 4145 | fi |
| 4146 | |
| 4147 | |
| 4148 | ## For the times when you want to build Emacs but don't have |
| 4149 | ## a suitable makeinfo, and can live without the manuals. |
| 4150 | |
| 4151 | # Check whether --with-makeinfo was given. |
| 4152 | if test "${with_makeinfo+set}" = set; then : |
| 4153 | withval=$with_makeinfo; |
| 4154 | else |
| 4155 | with_makeinfo=$with_features |
| 4156 | fi |
| 4157 | |
| 4158 | |
| 4159 | ## Makefile.in needs the cache file name. |
| 4160 | |
| 4161 | |
| 4162 | ## This is an option because I do not know if all info/man support |
| 4163 | ## compressed files, nor how to test if they do so. |
| 4164 | |
| 4165 | # Check whether --with-compress-info was given. |
| 4166 | if test "${with_compress_info+set}" = set; then : |
| 4167 | withval=$with_compress_info; |
| 4168 | else |
| 4169 | with_compress_info=$with_features |
| 4170 | fi |
| 4171 | |
| 4172 | if test $with_compress_info = yes; then |
| 4173 | GZIP_INFO=yes |
| 4174 | else |
| 4175 | GZIP_INFO= |
| 4176 | fi |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | # Check whether --with-pkg-config-prog was given. |
| 4181 | if test "${with_pkg_config_prog+set}" = set; then : |
| 4182 | withval=$with_pkg_config_prog; |
| 4183 | fi |
| 4184 | |
| 4185 | if test "X${with_pkg_config_prog}" != X; then |
| 4186 | if test "${with_pkg_config_prog}" != yes; then |
| 4187 | PKG_CONFIG="${with_pkg_config_prog}" |
| 4188 | fi |
| 4189 | fi |
| 4190 | |
| 4191 | CRT_DIR= |
| 4192 | |
| 4193 | # Check whether --with-crt-dir was given. |
| 4194 | if test "${with_crt_dir+set}" = set; then : |
| 4195 | withval=$with_crt_dir; |
| 4196 | fi |
| 4197 | |
| 4198 | CRT_DIR="${with_crt_dir}" |
| 4199 | |
| 4200 | |
| 4201 | # Check whether --with-gameuser was given. |
| 4202 | if test "${with_gameuser+set}" = set; then : |
| 4203 | withval=$with_gameuser; |
| 4204 | fi |
| 4205 | |
| 4206 | test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \ |
| 4207 | && gameuser="${with_gameuser}" |
| 4208 | test "X$gameuser" = X && gameuser=games |
| 4209 | |
| 4210 | |
| 4211 | # Check whether --with-gnustep-conf was given. |
| 4212 | if test "${with_gnustep_conf+set}" = set; then : |
| 4213 | withval=$with_gnustep_conf; |
| 4214 | fi |
| 4215 | |
| 4216 | test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ |
| 4217 | GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" |
| 4218 | test "X$GNUSTEP_CONFIG_FILE" = "X" && \ |
| 4219 | GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf |
| 4220 | |
| 4221 | # Check whether --enable-ns-self-contained was given. |
| 4222 | if test "${enable_ns_self_contained+set}" = set; then : |
| 4223 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval |
| 4224 | else |
| 4225 | EN_NS_SELF_CONTAINED=yes |
| 4226 | fi |
| 4227 | |
| 4228 | |
| 4229 | # Check whether --enable-locallisppath was given. |
| 4230 | if test "${enable_locallisppath+set}" = set; then : |
| 4231 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
| 4232 | locallisppath= |
| 4233 | elif test "${enableval}" != "yes"; then |
| 4234 | locallisppath=${enableval} |
| 4235 | fi |
| 4236 | fi |
| 4237 | |
| 4238 | |
| 4239 | # Check whether --enable-checking was given. |
| 4240 | if test "${enable_checking+set}" = set; then : |
| 4241 | enableval=$enable_checking; ac_checking_flags="${enableval}" |
| 4242 | fi |
| 4243 | |
| 4244 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
| 4245 | for check in $ac_checking_flags |
| 4246 | do |
| 4247 | case $check in |
| 4248 | # these set all the flags to specific states |
| 4249 | yes) ac_enable_checking=1 ;; |
| 4250 | no) ac_enable_checking= ; |
| 4251 | ac_gc_check_stringbytes= ; |
| 4252 | ac_gc_check_string_overrun= ; |
| 4253 | ac_gc_check_string_free_list= ; |
| 4254 | ac_xmalloc_overrun= ; |
| 4255 | ac_gc_check_cons_list= ; |
| 4256 | ac_glyphs_debug= ;; |
| 4257 | all) ac_enable_checking=1 ; |
| 4258 | ac_gc_check_stringbytes=1 ; |
| 4259 | ac_gc_check_string_overrun=1 ; |
| 4260 | ac_gc_check_string_free_list=1 ; |
| 4261 | ac_xmalloc_overrun=1 ; |
| 4262 | ac_gc_check_cons_list=1 ; |
| 4263 | ac_glyphs_debug=1 ;; |
| 4264 | # these enable particular checks |
| 4265 | stringbytes) ac_gc_check_stringbytes=1 ;; |
| 4266 | stringoverrun) ac_gc_check_string_overrun=1 ;; |
| 4267 | stringfreelist) ac_gc_check_string_free_list=1 ;; |
| 4268 | xmallocoverrun) ac_xmalloc_overrun=1 ;; |
| 4269 | conslist) ac_gc_check_cons_list=1 ;; |
| 4270 | glyphs) ac_glyphs_debug=1 ;; |
| 4271 | *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; |
| 4272 | esac |
| 4273 | done |
| 4274 | IFS="$ac_save_IFS" |
| 4275 | |
| 4276 | if test x$ac_enable_checking != x ; then |
| 4277 | |
| 4278 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
| 4279 | |
| 4280 | fi |
| 4281 | if test x$ac_gc_check_stringbytes != x ; then |
| 4282 | |
| 4283 | $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h |
| 4284 | |
| 4285 | fi |
| 4286 | if test x$ac_gc_check_string_overrun != x ; then |
| 4287 | |
| 4288 | $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h |
| 4289 | |
| 4290 | fi |
| 4291 | if test x$ac_gc_check_string_free_list != x ; then |
| 4292 | |
| 4293 | $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h |
| 4294 | |
| 4295 | fi |
| 4296 | if test x$ac_xmalloc_overrun != x ; then |
| 4297 | |
| 4298 | $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h |
| 4299 | |
| 4300 | fi |
| 4301 | if test x$ac_gc_check_cons_list != x ; then |
| 4302 | |
| 4303 | $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h |
| 4304 | |
| 4305 | fi |
| 4306 | if test x$ac_glyphs_debug != x ; then |
| 4307 | |
| 4308 | $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h |
| 4309 | |
| 4310 | fi |
| 4311 | |
| 4312 | # Check whether --enable-check-lisp-object-type was given. |
| 4313 | if test "${enable_check_lisp_object_type+set}" = set; then : |
| 4314 | enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then |
| 4315 | |
| 4316 | $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h |
| 4317 | |
| 4318 | fi |
| 4319 | fi |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | # Check whether --enable-profiling was given. |
| 4324 | if test "${enable_profiling+set}" = set; then : |
| 4325 | enableval=$enable_profiling; ac_enable_profiling="${enableval}" |
| 4326 | fi |
| 4327 | |
| 4328 | if test x$ac_enable_profiling != x ; then |
| 4329 | PROFILING_CFLAGS="-DPROFILING=1 -pg" |
| 4330 | else |
| 4331 | PROFILING_CFLAGS= |
| 4332 | fi |
| 4333 | |
| 4334 | |
| 4335 | # Check whether --enable-autodepend was given. |
| 4336 | if test "${enable_autodepend+set}" = set; then : |
| 4337 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" |
| 4338 | else |
| 4339 | ac_enable_autodepend=yes |
| 4340 | fi |
| 4341 | |
| 4342 | |
| 4343 | #### Make srcdir absolute, if it isn't already. It's important to |
| 4344 | #### avoid running the path through pwd unnecessarily, since pwd can |
| 4345 | #### give you automounter prefixes, which can go away. We do all this |
| 4346 | #### so Emacs can find its files when run uninstalled. |
| 4347 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
| 4348 | unset CDPATH |
| 4349 | case "${srcdir}" in |
| 4350 | /* ) ;; |
| 4351 | . ) |
| 4352 | ## We may be able to use the $PWD environment variable to make this |
| 4353 | ## absolute. But sometimes PWD is inaccurate. |
| 4354 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
| 4355 | ## but that tested only for a well-formed and valid PWD, |
| 4356 | ## it did not object when PWD was well-formed and valid but just wrong. |
| 4357 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; |
| 4358 | then |
| 4359 | srcdir="$PWD" |
| 4360 | else |
| 4361 | srcdir="`(cd ${srcdir}; pwd)`" |
| 4362 | fi |
| 4363 | ;; |
| 4364 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; |
| 4365 | esac |
| 4366 | |
| 4367 | ### Canonicalize the configuration name. |
| 4368 | |
| 4369 | # Make sure we can run config.sub. |
| 4370 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4371 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4372 | |
| 4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4374 | $as_echo_n "checking build system type... " >&6; } |
| 4375 | if test "${ac_cv_build+set}" = set; then : |
| 4376 | $as_echo_n "(cached) " >&6 |
| 4377 | else |
| 4378 | ac_build_alias=$build_alias |
| 4379 | test "x$ac_build_alias" = x && |
| 4380 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4381 | test "x$ac_build_alias" = x && |
| 4382 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4383 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4384 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4385 | |
| 4386 | fi |
| 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4388 | $as_echo "$ac_cv_build" >&6; } |
| 4389 | case $ac_cv_build in |
| 4390 | *-*-*) ;; |
| 4391 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 4392 | esac |
| 4393 | build=$ac_cv_build |
| 4394 | ac_save_IFS=$IFS; IFS='-' |
| 4395 | set x $ac_cv_build |
| 4396 | shift |
| 4397 | build_cpu=$1 |
| 4398 | build_vendor=$2 |
| 4399 | shift; shift |
| 4400 | # Remember, the first character of IFS is used to create $*, |
| 4401 | # except with old shells: |
| 4402 | build_os=$* |
| 4403 | IFS=$ac_save_IFS |
| 4404 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4405 | |
| 4406 | |
| 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4408 | $as_echo_n "checking host system type... " >&6; } |
| 4409 | if test "${ac_cv_host+set}" = set; then : |
| 4410 | $as_echo_n "(cached) " >&6 |
| 4411 | else |
| 4412 | if test "x$host_alias" = x; then |
| 4413 | ac_cv_host=$ac_cv_build |
| 4414 | else |
| 4415 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4416 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4417 | fi |
| 4418 | |
| 4419 | fi |
| 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4421 | $as_echo "$ac_cv_host" >&6; } |
| 4422 | case $ac_cv_host in |
| 4423 | *-*-*) ;; |
| 4424 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 4425 | esac |
| 4426 | host=$ac_cv_host |
| 4427 | ac_save_IFS=$IFS; IFS='-' |
| 4428 | set x $ac_cv_host |
| 4429 | shift |
| 4430 | host_cpu=$1 |
| 4431 | host_vendor=$2 |
| 4432 | shift; shift |
| 4433 | # Remember, the first character of IFS is used to create $*, |
| 4434 | # except with old shells: |
| 4435 | host_os=$* |
| 4436 | IFS=$ac_save_IFS |
| 4437 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4438 | |
| 4439 | |
| 4440 | canonical=$host |
| 4441 | configuration=${host_alias-${build_alias-$host}} |
| 4442 | |
| 4443 | |
| 4444 | |
| 4445 | ### If you add support for a new configuration, add code to this |
| 4446 | ### switch statement to recognize your configuration name and select |
| 4447 | ### the appropriate operating system file. |
| 4448 | |
| 4449 | ### You would hope that you could choose an s/*.h |
| 4450 | ### file based on the operating system portion. However, it turns out |
| 4451 | ### that each s/*.h file is pretty manufacturer-specific. |
| 4452 | ### So we basically have to have a special case for each |
| 4453 | ### configuration name. |
| 4454 | ### |
| 4455 | ### As far as handling version numbers on operating systems is |
| 4456 | ### concerned, make sure things will fail in a fixable way. If |
| 4457 | ### /etc/MACHINES doesn't say anything about version numbers, be |
| 4458 | ### prepared to handle anything reasonably. If version numbers |
| 4459 | ### matter, be sure /etc/MACHINES says something about it. |
| 4460 | |
| 4461 | opsys='' unported=no |
| 4462 | case "${canonical}" in |
| 4463 | |
| 4464 | ## GNU/Linux and similar ports |
| 4465 | *-*-linux* ) |
| 4466 | opsys=gnu-linux |
| 4467 | ;; |
| 4468 | |
| 4469 | ## FreeBSD ports |
| 4470 | *-*-freebsd* ) |
| 4471 | opsys=freebsd |
| 4472 | ;; |
| 4473 | |
| 4474 | ## FreeBSD kernel + glibc based userland |
| 4475 | *-*-kfreebsd*gnu* ) |
| 4476 | opsys=gnu-kfreebsd |
| 4477 | ;; |
| 4478 | |
| 4479 | ## NetBSD ports |
| 4480 | *-*-netbsd* ) |
| 4481 | opsys=netbsd |
| 4482 | ;; |
| 4483 | |
| 4484 | ## OpenBSD ports |
| 4485 | *-*-openbsd* ) |
| 4486 | opsys=openbsd |
| 4487 | ;; |
| 4488 | |
| 4489 | ## Apple Darwin / Mac OS X |
| 4490 | *-apple-darwin* ) |
| 4491 | case "${canonical}" in |
| 4492 | i[3456]86-* ) ;; |
| 4493 | powerpc-* ) ;; |
| 4494 | x86_64-* ) ;; |
| 4495 | * ) unported=yes ;; |
| 4496 | esac |
| 4497 | opsys=darwin |
| 4498 | ## Use fink packages if available. |
| 4499 | ## FIXME find a better way to do this: http://debbugs.gnu.org/11507 |
| 4500 | ## if test -d /sw/include && test -d /sw/lib; then |
| 4501 | ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" |
| 4502 | ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} |
| 4503 | ## fi |
| 4504 | ;; |
| 4505 | |
| 4506 | ## HP 9000 series 700 and 800, running HP/UX |
| 4507 | hppa*-hp-hpux10.2* ) |
| 4508 | opsys=hpux10-20 |
| 4509 | ;; |
| 4510 | hppa*-hp-hpux1[1-9]* ) |
| 4511 | opsys=hpux11 |
| 4512 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" |
| 4513 | ;; |
| 4514 | |
| 4515 | ## IBM machines |
| 4516 | rs6000-ibm-aix4.[23]* ) |
| 4517 | opsys=aix4-2 |
| 4518 | ;; |
| 4519 | powerpc-ibm-aix4.[23]* ) |
| 4520 | opsys=aix4-2 |
| 4521 | ;; |
| 4522 | rs6000-ibm-aix[56]* ) |
| 4523 | opsys=aix4-2 |
| 4524 | ;; |
| 4525 | powerpc-ibm-aix[56]* ) |
| 4526 | opsys=aix4-2 |
| 4527 | ;; |
| 4528 | |
| 4529 | ## Silicon Graphics machines |
| 4530 | ## Iris 4D |
| 4531 | mips-sgi-irix6.5 ) |
| 4532 | opsys=irix6-5 |
| 4533 | # Without defining _LANGUAGE_C, things get masked out in the headers |
| 4534 | # so that, for instance, grepping for `free' in stdlib.h fails and |
| 4535 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). |
| 4536 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
| 4537 | ;; |
| 4538 | |
| 4539 | ## Suns |
| 4540 | *-sun-solaris* \ |
| 4541 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ |
| 4542 | | x86_64-*-solaris2* | x86_64-*-sunos5*) |
| 4543 | case "${canonical}" in |
| 4544 | i[3456]86-*-* ) ;; |
| 4545 | amd64-*-*|x86_64-*-*) ;; |
| 4546 | sparc* ) ;; |
| 4547 | * ) unported=yes ;; |
| 4548 | esac |
| 4549 | case "${canonical}" in |
| 4550 | *-sunos5.6* | *-solaris2.6* ) |
| 4551 | opsys=sol2-6 |
| 4552 | RANLIB="ar -ts" |
| 4553 | ;; |
| 4554 | *-sunos5.[7-9]* | *-solaris2.[7-9]* ) |
| 4555 | opsys=sol2-6 |
| 4556 | emacs_check_sunpro_c=yes |
| 4557 | ;; |
| 4558 | *-sunos5* | *-solaris* ) |
| 4559 | opsys=sol2-10 |
| 4560 | emacs_check_sunpro_c=yes |
| 4561 | ;; |
| 4562 | esac |
| 4563 | ## Watch out for a compiler that we know will not work. |
| 4564 | case "${canonical}" in |
| 4565 | *-solaris* | *-sunos5* ) |
| 4566 | if [ "x$CC" = x/usr/ucb/cc ]; then |
| 4567 | ## /usr/ucb/cc doesn't work; |
| 4568 | ## we should find some other compiler that does work. |
| 4569 | unset CC |
| 4570 | fi |
| 4571 | ;; |
| 4572 | *) ;; |
| 4573 | esac |
| 4574 | ;; |
| 4575 | |
| 4576 | ## Intel 386 machines where we don't care about the manufacturer. |
| 4577 | i[3456]86-*-* ) |
| 4578 | case "${canonical}" in |
| 4579 | *-cygwin ) opsys=cygwin ;; |
| 4580 | *-darwin* ) opsys=darwin ;; |
| 4581 | *-sysv4.2uw* ) opsys=unixware ;; |
| 4582 | *-sysv5uw* ) opsys=unixware ;; |
| 4583 | *-sysv5OpenUNIX* ) opsys=unixware ;; |
| 4584 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
| 4585 | esac |
| 4586 | ;; |
| 4587 | |
| 4588 | * ) |
| 4589 | unported=yes |
| 4590 | ;; |
| 4591 | esac |
| 4592 | |
| 4593 | ### If the code above didn't choose an operating system, just choose |
| 4594 | ### an operating system based on the configuration name. You really |
| 4595 | ### only want to use this when you have no idea what the right |
| 4596 | ### operating system is; if you know what operating systems a machine |
| 4597 | ### runs, it's cleaner to make it explicit in the case statement |
| 4598 | ### above. |
| 4599 | if test x"${opsys}" = x; then |
| 4600 | case "${canonical}" in |
| 4601 | *-gnu* ) opsys=gnu ;; |
| 4602 | * ) |
| 4603 | unported=yes |
| 4604 | ;; |
| 4605 | esac |
| 4606 | fi |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | if test $unported = yes; then |
| 4611 | as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. |
| 4612 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
| 4613 | fi |
| 4614 | |
| 4615 | |
| 4616 | #### Choose a compiler. |
| 4617 | |
| 4618 | ac_ext=c |
| 4619 | ac_cpp='$CPP $CPPFLAGS' |
| 4620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4623 | if test -n "$ac_tool_prefix"; then |
| 4624 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4625 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4627 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4628 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4629 | $as_echo_n "(cached) " >&6 |
| 4630 | else |
| 4631 | if test -n "$CC"; then |
| 4632 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4633 | else |
| 4634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4635 | for as_dir in $PATH |
| 4636 | do |
| 4637 | IFS=$as_save_IFS |
| 4638 | test -z "$as_dir" && as_dir=. |
| 4639 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4641 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4643 | break 2 |
| 4644 | fi |
| 4645 | done |
| 4646 | done |
| 4647 | IFS=$as_save_IFS |
| 4648 | |
| 4649 | fi |
| 4650 | fi |
| 4651 | CC=$ac_cv_prog_CC |
| 4652 | if test -n "$CC"; then |
| 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4654 | $as_echo "$CC" >&6; } |
| 4655 | else |
| 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4657 | $as_echo "no" >&6; } |
| 4658 | fi |
| 4659 | |
| 4660 | |
| 4661 | fi |
| 4662 | if test -z "$ac_cv_prog_CC"; then |
| 4663 | ac_ct_CC=$CC |
| 4664 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4665 | set dummy gcc; ac_word=$2 |
| 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4667 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4668 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4669 | $as_echo_n "(cached) " >&6 |
| 4670 | else |
| 4671 | if test -n "$ac_ct_CC"; then |
| 4672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4673 | else |
| 4674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4675 | for as_dir in $PATH |
| 4676 | do |
| 4677 | IFS=$as_save_IFS |
| 4678 | test -z "$as_dir" && as_dir=. |
| 4679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4681 | ac_cv_prog_ac_ct_CC="gcc" |
| 4682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4683 | break 2 |
| 4684 | fi |
| 4685 | done |
| 4686 | done |
| 4687 | IFS=$as_save_IFS |
| 4688 | |
| 4689 | fi |
| 4690 | fi |
| 4691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4692 | if test -n "$ac_ct_CC"; then |
| 4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4694 | $as_echo "$ac_ct_CC" >&6; } |
| 4695 | else |
| 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4697 | $as_echo "no" >&6; } |
| 4698 | fi |
| 4699 | |
| 4700 | if test "x$ac_ct_CC" = x; then |
| 4701 | CC="" |
| 4702 | else |
| 4703 | case $cross_compiling:$ac_tool_warned in |
| 4704 | yes:) |
| 4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4706 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4707 | ac_tool_warned=yes ;; |
| 4708 | esac |
| 4709 | CC=$ac_ct_CC |
| 4710 | fi |
| 4711 | else |
| 4712 | CC="$ac_cv_prog_CC" |
| 4713 | fi |
| 4714 | |
| 4715 | if test -z "$CC"; then |
| 4716 | if test -n "$ac_tool_prefix"; then |
| 4717 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4718 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4720 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4721 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4722 | $as_echo_n "(cached) " >&6 |
| 4723 | else |
| 4724 | if test -n "$CC"; then |
| 4725 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4726 | else |
| 4727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4728 | for as_dir in $PATH |
| 4729 | do |
| 4730 | IFS=$as_save_IFS |
| 4731 | test -z "$as_dir" && as_dir=. |
| 4732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4734 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4736 | break 2 |
| 4737 | fi |
| 4738 | done |
| 4739 | done |
| 4740 | IFS=$as_save_IFS |
| 4741 | |
| 4742 | fi |
| 4743 | fi |
| 4744 | CC=$ac_cv_prog_CC |
| 4745 | if test -n "$CC"; then |
| 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4747 | $as_echo "$CC" >&6; } |
| 4748 | else |
| 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4750 | $as_echo "no" >&6; } |
| 4751 | fi |
| 4752 | |
| 4753 | |
| 4754 | fi |
| 4755 | fi |
| 4756 | if test -z "$CC"; then |
| 4757 | # Extract the first word of "cc", so it can be a program name with args. |
| 4758 | set dummy cc; ac_word=$2 |
| 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4760 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4761 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4762 | $as_echo_n "(cached) " >&6 |
| 4763 | else |
| 4764 | if test -n "$CC"; then |
| 4765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4766 | else |
| 4767 | ac_prog_rejected=no |
| 4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4769 | for as_dir in $PATH |
| 4770 | do |
| 4771 | IFS=$as_save_IFS |
| 4772 | test -z "$as_dir" && as_dir=. |
| 4773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4775 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4776 | ac_prog_rejected=yes |
| 4777 | continue |
| 4778 | fi |
| 4779 | ac_cv_prog_CC="cc" |
| 4780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4781 | break 2 |
| 4782 | fi |
| 4783 | done |
| 4784 | done |
| 4785 | IFS=$as_save_IFS |
| 4786 | |
| 4787 | if test $ac_prog_rejected = yes; then |
| 4788 | # We found a bogon in the path, so make sure we never use it. |
| 4789 | set dummy $ac_cv_prog_CC |
| 4790 | shift |
| 4791 | if test $# != 0; then |
| 4792 | # We chose a different compiler from the bogus one. |
| 4793 | # However, it has the same basename, so the bogon will be chosen |
| 4794 | # first if we set CC to just the basename; use the full file name. |
| 4795 | shift |
| 4796 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4797 | fi |
| 4798 | fi |
| 4799 | fi |
| 4800 | fi |
| 4801 | CC=$ac_cv_prog_CC |
| 4802 | if test -n "$CC"; then |
| 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4804 | $as_echo "$CC" >&6; } |
| 4805 | else |
| 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4807 | $as_echo "no" >&6; } |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | fi |
| 4812 | if test -z "$CC"; then |
| 4813 | if test -n "$ac_tool_prefix"; then |
| 4814 | for ac_prog in cl.exe |
| 4815 | do |
| 4816 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4817 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4819 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4820 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4821 | $as_echo_n "(cached) " >&6 |
| 4822 | else |
| 4823 | if test -n "$CC"; then |
| 4824 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4825 | else |
| 4826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4827 | for as_dir in $PATH |
| 4828 | do |
| 4829 | IFS=$as_save_IFS |
| 4830 | test -z "$as_dir" && as_dir=. |
| 4831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4833 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4835 | break 2 |
| 4836 | fi |
| 4837 | done |
| 4838 | done |
| 4839 | IFS=$as_save_IFS |
| 4840 | |
| 4841 | fi |
| 4842 | fi |
| 4843 | CC=$ac_cv_prog_CC |
| 4844 | if test -n "$CC"; then |
| 4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4846 | $as_echo "$CC" >&6; } |
| 4847 | else |
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4849 | $as_echo "no" >&6; } |
| 4850 | fi |
| 4851 | |
| 4852 | |
| 4853 | test -n "$CC" && break |
| 4854 | done |
| 4855 | fi |
| 4856 | if test -z "$CC"; then |
| 4857 | ac_ct_CC=$CC |
| 4858 | for ac_prog in cl.exe |
| 4859 | do |
| 4860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4861 | set dummy $ac_prog; ac_word=$2 |
| 4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4863 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4865 | $as_echo_n "(cached) " >&6 |
| 4866 | else |
| 4867 | if test -n "$ac_ct_CC"; then |
| 4868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4869 | else |
| 4870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4871 | for as_dir in $PATH |
| 4872 | do |
| 4873 | IFS=$as_save_IFS |
| 4874 | test -z "$as_dir" && as_dir=. |
| 4875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4877 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4879 | break 2 |
| 4880 | fi |
| 4881 | done |
| 4882 | done |
| 4883 | IFS=$as_save_IFS |
| 4884 | |
| 4885 | fi |
| 4886 | fi |
| 4887 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4888 | if test -n "$ac_ct_CC"; then |
| 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4890 | $as_echo "$ac_ct_CC" >&6; } |
| 4891 | else |
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4893 | $as_echo "no" >&6; } |
| 4894 | fi |
| 4895 | |
| 4896 | |
| 4897 | test -n "$ac_ct_CC" && break |
| 4898 | done |
| 4899 | |
| 4900 | if test "x$ac_ct_CC" = x; then |
| 4901 | CC="" |
| 4902 | else |
| 4903 | case $cross_compiling:$ac_tool_warned in |
| 4904 | yes:) |
| 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4907 | ac_tool_warned=yes ;; |
| 4908 | esac |
| 4909 | CC=$ac_ct_CC |
| 4910 | fi |
| 4911 | fi |
| 4912 | |
| 4913 | fi |
| 4914 | |
| 4915 | |
| 4916 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4918 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4919 | See \`config.log' for more details." "$LINENO" 5; } |
| 4920 | |
| 4921 | # Provide some information about the compiler. |
| 4922 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4923 | set X $ac_compile |
| 4924 | ac_compiler=$2 |
| 4925 | for ac_option in --version -v -V -qversion; do |
| 4926 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4927 | case "(($ac_try" in |
| 4928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4929 | *) ac_try_echo=$ac_try;; |
| 4930 | esac |
| 4931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4932 | $as_echo "$ac_try_echo"; } >&5 |
| 4933 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4934 | ac_status=$? |
| 4935 | if test -s conftest.err; then |
| 4936 | sed '10a\ |
| 4937 | ... rest of stderr output deleted ... |
| 4938 | 10q' conftest.err >conftest.er1 |
| 4939 | cat conftest.er1 >&5 |
| 4940 | fi |
| 4941 | rm -f conftest.er1 conftest.err |
| 4942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4943 | test $ac_status = 0; } |
| 4944 | done |
| 4945 | |
| 4946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4947 | /* end confdefs.h. */ |
| 4948 | |
| 4949 | int |
| 4950 | main () |
| 4951 | { |
| 4952 | |
| 4953 | ; |
| 4954 | return 0; |
| 4955 | } |
| 4956 | _ACEOF |
| 4957 | ac_clean_files_save=$ac_clean_files |
| 4958 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4959 | # Try to create an executable without -o first, disregard a.out. |
| 4960 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4961 | # of exeext. |
| 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4963 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 4964 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4965 | |
| 4966 | # The possible output files: |
| 4967 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4968 | |
| 4969 | ac_rmfiles= |
| 4970 | for ac_file in $ac_files |
| 4971 | do |
| 4972 | case $ac_file in |
| 4973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4974 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4975 | esac |
| 4976 | done |
| 4977 | rm -f $ac_rmfiles |
| 4978 | |
| 4979 | if { { ac_try="$ac_link_default" |
| 4980 | case "(($ac_try" in |
| 4981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4982 | *) ac_try_echo=$ac_try;; |
| 4983 | esac |
| 4984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4985 | $as_echo "$ac_try_echo"; } >&5 |
| 4986 | (eval "$ac_link_default") 2>&5 |
| 4987 | ac_status=$? |
| 4988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4989 | test $ac_status = 0; }; then : |
| 4990 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4991 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4992 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4993 | # so that the user can short-circuit this test for compilers unknown to |
| 4994 | # Autoconf. |
| 4995 | for ac_file in $ac_files '' |
| 4996 | do |
| 4997 | test -f "$ac_file" || continue |
| 4998 | case $ac_file in |
| 4999 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 5000 | ;; |
| 5001 | [ab].out ) |
| 5002 | # We found the default executable, but exeext='' is most |
| 5003 | # certainly right. |
| 5004 | break;; |
| 5005 | *.* ) |
| 5006 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 5007 | then :; else |
| 5008 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5009 | fi |
| 5010 | # We set ac_cv_exeext here because the later test for it is not |
| 5011 | # safe: cross compilers may not add the suffix if given an `-o' |
| 5012 | # argument, so we may need to know it at that point already. |
| 5013 | # Even if this section looks crufty: it has the advantage of |
| 5014 | # actually working. |
| 5015 | break;; |
| 5016 | * ) |
| 5017 | break;; |
| 5018 | esac |
| 5019 | done |
| 5020 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 5021 | |
| 5022 | else |
| 5023 | ac_file='' |
| 5024 | fi |
| 5025 | if test -z "$ac_file"; then : |
| 5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5027 | $as_echo "no" >&6; } |
| 5028 | $as_echo "$as_me: failed program was:" >&5 |
| 5029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5030 | |
| 5031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5033 | { as_fn_set_status 77 |
| 5034 | as_fn_error "C compiler cannot create executables |
| 5035 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 5036 | else |
| 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5038 | $as_echo "yes" >&6; } |
| 5039 | fi |
| 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 5041 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 5043 | $as_echo "$ac_file" >&6; } |
| 5044 | ac_exeext=$ac_cv_exeext |
| 5045 | |
| 5046 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 5047 | ac_clean_files=$ac_clean_files_save |
| 5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 5049 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 5050 | if { { ac_try="$ac_link" |
| 5051 | case "(($ac_try" in |
| 5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5053 | *) ac_try_echo=$ac_try;; |
| 5054 | esac |
| 5055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5056 | $as_echo "$ac_try_echo"; } >&5 |
| 5057 | (eval "$ac_link") 2>&5 |
| 5058 | ac_status=$? |
| 5059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5060 | test $ac_status = 0; }; then : |
| 5061 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 5062 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 5063 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 5064 | # `rm'. |
| 5065 | for ac_file in conftest.exe conftest conftest.*; do |
| 5066 | test -f "$ac_file" || continue |
| 5067 | case $ac_file in |
| 5068 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 5069 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5070 | break;; |
| 5071 | * ) break;; |
| 5072 | esac |
| 5073 | done |
| 5074 | else |
| 5075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5077 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 5078 | See \`config.log' for more details." "$LINENO" 5; } |
| 5079 | fi |
| 5080 | rm -f conftest conftest$ac_cv_exeext |
| 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 5082 | $as_echo "$ac_cv_exeext" >&6; } |
| 5083 | |
| 5084 | rm -f conftest.$ac_ext |
| 5085 | EXEEXT=$ac_cv_exeext |
| 5086 | ac_exeext=$EXEEXT |
| 5087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5088 | /* end confdefs.h. */ |
| 5089 | #include <stdio.h> |
| 5090 | int |
| 5091 | main () |
| 5092 | { |
| 5093 | FILE *f = fopen ("conftest.out", "w"); |
| 5094 | return ferror (f) || fclose (f) != 0; |
| 5095 | |
| 5096 | ; |
| 5097 | return 0; |
| 5098 | } |
| 5099 | _ACEOF |
| 5100 | ac_clean_files="$ac_clean_files conftest.out" |
| 5101 | # Check that the compiler produces executables we can run. If not, either |
| 5102 | # the compiler is broken, or we cross compile. |
| 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 5104 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 5105 | if test "$cross_compiling" != yes; then |
| 5106 | { { ac_try="$ac_link" |
| 5107 | case "(($ac_try" in |
| 5108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5109 | *) ac_try_echo=$ac_try;; |
| 5110 | esac |
| 5111 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5112 | $as_echo "$ac_try_echo"; } >&5 |
| 5113 | (eval "$ac_link") 2>&5 |
| 5114 | ac_status=$? |
| 5115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5116 | test $ac_status = 0; } |
| 5117 | if { ac_try='./conftest$ac_cv_exeext' |
| 5118 | { { case "(($ac_try" in |
| 5119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5120 | *) ac_try_echo=$ac_try;; |
| 5121 | esac |
| 5122 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5123 | $as_echo "$ac_try_echo"; } >&5 |
| 5124 | (eval "$ac_try") 2>&5 |
| 5125 | ac_status=$? |
| 5126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5127 | test $ac_status = 0; }; }; then |
| 5128 | cross_compiling=no |
| 5129 | else |
| 5130 | if test "$cross_compiling" = maybe; then |
| 5131 | cross_compiling=yes |
| 5132 | else |
| 5133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5135 | as_fn_error "cannot run C compiled programs. |
| 5136 | If you meant to cross compile, use \`--host'. |
| 5137 | See \`config.log' for more details." "$LINENO" 5; } |
| 5138 | fi |
| 5139 | fi |
| 5140 | fi |
| 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 5142 | $as_echo "$cross_compiling" >&6; } |
| 5143 | |
| 5144 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 5145 | ac_clean_files=$ac_clean_files_save |
| 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 5147 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 5148 | if test "${ac_cv_objext+set}" = set; then : |
| 5149 | $as_echo_n "(cached) " >&6 |
| 5150 | else |
| 5151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5152 | /* end confdefs.h. */ |
| 5153 | |
| 5154 | int |
| 5155 | main () |
| 5156 | { |
| 5157 | |
| 5158 | ; |
| 5159 | return 0; |
| 5160 | } |
| 5161 | _ACEOF |
| 5162 | rm -f conftest.o conftest.obj |
| 5163 | if { { ac_try="$ac_compile" |
| 5164 | case "(($ac_try" in |
| 5165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5166 | *) ac_try_echo=$ac_try;; |
| 5167 | esac |
| 5168 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5169 | $as_echo "$ac_try_echo"; } >&5 |
| 5170 | (eval "$ac_compile") 2>&5 |
| 5171 | ac_status=$? |
| 5172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5173 | test $ac_status = 0; }; then : |
| 5174 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 5175 | test -f "$ac_file" || continue; |
| 5176 | case $ac_file in |
| 5177 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 5178 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 5179 | break;; |
| 5180 | esac |
| 5181 | done |
| 5182 | else |
| 5183 | $as_echo "$as_me: failed program was:" >&5 |
| 5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5185 | |
| 5186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5188 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 5189 | See \`config.log' for more details." "$LINENO" 5; } |
| 5190 | fi |
| 5191 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 5192 | fi |
| 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 5194 | $as_echo "$ac_cv_objext" >&6; } |
| 5195 | OBJEXT=$ac_cv_objext |
| 5196 | ac_objext=$OBJEXT |
| 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5198 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5199 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 5200 | $as_echo_n "(cached) " >&6 |
| 5201 | else |
| 5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5203 | /* end confdefs.h. */ |
| 5204 | |
| 5205 | int |
| 5206 | main () |
| 5207 | { |
| 5208 | #ifndef __GNUC__ |
| 5209 | choke me |
| 5210 | #endif |
| 5211 | |
| 5212 | ; |
| 5213 | return 0; |
| 5214 | } |
| 5215 | _ACEOF |
| 5216 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5217 | ac_compiler_gnu=yes |
| 5218 | else |
| 5219 | ac_compiler_gnu=no |
| 5220 | fi |
| 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5222 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5223 | |
| 5224 | fi |
| 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5226 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5227 | if test $ac_compiler_gnu = yes; then |
| 5228 | GCC=yes |
| 5229 | else |
| 5230 | GCC= |
| 5231 | fi |
| 5232 | ac_test_CFLAGS=${CFLAGS+set} |
| 5233 | ac_save_CFLAGS=$CFLAGS |
| 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5235 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5236 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 5237 | $as_echo_n "(cached) " >&6 |
| 5238 | else |
| 5239 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5240 | ac_c_werror_flag=yes |
| 5241 | ac_cv_prog_cc_g=no |
| 5242 | CFLAGS="-g" |
| 5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5244 | /* end confdefs.h. */ |
| 5245 | |
| 5246 | int |
| 5247 | main () |
| 5248 | { |
| 5249 | |
| 5250 | ; |
| 5251 | return 0; |
| 5252 | } |
| 5253 | _ACEOF |
| 5254 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5255 | ac_cv_prog_cc_g=yes |
| 5256 | else |
| 5257 | CFLAGS="" |
| 5258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5259 | /* end confdefs.h. */ |
| 5260 | |
| 5261 | int |
| 5262 | main () |
| 5263 | { |
| 5264 | |
| 5265 | ; |
| 5266 | return 0; |
| 5267 | } |
| 5268 | _ACEOF |
| 5269 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5270 | |
| 5271 | else |
| 5272 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5273 | CFLAGS="-g" |
| 5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5275 | /* end confdefs.h. */ |
| 5276 | |
| 5277 | int |
| 5278 | main () |
| 5279 | { |
| 5280 | |
| 5281 | ; |
| 5282 | return 0; |
| 5283 | } |
| 5284 | _ACEOF |
| 5285 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5286 | ac_cv_prog_cc_g=yes |
| 5287 | fi |
| 5288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5289 | fi |
| 5290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5291 | fi |
| 5292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5293 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5294 | fi |
| 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5296 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5297 | if test "$ac_test_CFLAGS" = set; then |
| 5298 | CFLAGS=$ac_save_CFLAGS |
| 5299 | elif test $ac_cv_prog_cc_g = yes; then |
| 5300 | if test "$GCC" = yes; then |
| 5301 | CFLAGS="-g -O2" |
| 5302 | else |
| 5303 | CFLAGS="-g" |
| 5304 | fi |
| 5305 | else |
| 5306 | if test "$GCC" = yes; then |
| 5307 | CFLAGS="-O2" |
| 5308 | else |
| 5309 | CFLAGS= |
| 5310 | fi |
| 5311 | fi |
| 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5313 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5314 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 5315 | $as_echo_n "(cached) " >&6 |
| 5316 | else |
| 5317 | ac_cv_prog_cc_c89=no |
| 5318 | ac_save_CC=$CC |
| 5319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5320 | /* end confdefs.h. */ |
| 5321 | #include <stdarg.h> |
| 5322 | #include <stdio.h> |
| 5323 | #include <sys/types.h> |
| 5324 | #include <sys/stat.h> |
| 5325 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5326 | struct buf { int x; }; |
| 5327 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5328 | static char *e (p, i) |
| 5329 | char **p; |
| 5330 | int i; |
| 5331 | { |
| 5332 | return p[i]; |
| 5333 | } |
| 5334 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5335 | { |
| 5336 | char *s; |
| 5337 | va_list v; |
| 5338 | va_start (v,p); |
| 5339 | s = g (p, va_arg (v,int)); |
| 5340 | va_end (v); |
| 5341 | return s; |
| 5342 | } |
| 5343 | |
| 5344 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5345 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5346 | These don't provoke an error unfortunately, instead are silently treated |
| 5347 | as 'x'. The following induces an error, until -std is added to get |
| 5348 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5349 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5350 | that's true only with -std. */ |
| 5351 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5352 | |
| 5353 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5354 | inside strings and character constants. */ |
| 5355 | #define FOO(x) 'x' |
| 5356 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5357 | |
| 5358 | int test (int i, double x); |
| 5359 | struct s1 {int (*f) (int a);}; |
| 5360 | struct s2 {int (*f) (double a);}; |
| 5361 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5362 | int argc; |
| 5363 | char **argv; |
| 5364 | int |
| 5365 | main () |
| 5366 | { |
| 5367 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5368 | ; |
| 5369 | return 0; |
| 5370 | } |
| 5371 | _ACEOF |
| 5372 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5373 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5374 | do |
| 5375 | CC="$ac_save_CC $ac_arg" |
| 5376 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5377 | ac_cv_prog_cc_c89=$ac_arg |
| 5378 | fi |
| 5379 | rm -f core conftest.err conftest.$ac_objext |
| 5380 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5381 | done |
| 5382 | rm -f conftest.$ac_ext |
| 5383 | CC=$ac_save_CC |
| 5384 | |
| 5385 | fi |
| 5386 | # AC_CACHE_VAL |
| 5387 | case "x$ac_cv_prog_cc_c89" in |
| 5388 | x) |
| 5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5390 | $as_echo "none needed" >&6; } ;; |
| 5391 | xno) |
| 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5393 | $as_echo "unsupported" >&6; } ;; |
| 5394 | *) |
| 5395 | CC="$CC $ac_cv_prog_cc_c89" |
| 5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5397 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5398 | esac |
| 5399 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5400 | |
| 5401 | fi |
| 5402 | |
| 5403 | ac_ext=c |
| 5404 | ac_cpp='$CPP $CPPFLAGS' |
| 5405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5408 | DEPDIR="${am__leading_dot}deps" |
| 5409 | |
| 5410 | ac_config_commands="$ac_config_commands depfiles" |
| 5411 | |
| 5412 | |
| 5413 | am_make=${MAKE-make} |
| 5414 | cat > confinc << 'END' |
| 5415 | am__doit: |
| 5416 | @echo this is the am__doit target |
| 5417 | .PHONY: am__doit |
| 5418 | END |
| 5419 | # If we don't find an include directive, just comment out the code. |
| 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 5421 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 5422 | am__include="#" |
| 5423 | am__quote= |
| 5424 | _am_result=none |
| 5425 | # First try GNU make style include. |
| 5426 | echo "include confinc" > confmf |
| 5427 | # Ignore all kinds of additional output from `make'. |
| 5428 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5429 | *the\ am__doit\ target*) |
| 5430 | am__include=include |
| 5431 | am__quote= |
| 5432 | _am_result=GNU |
| 5433 | ;; |
| 5434 | esac |
| 5435 | # Now try BSD make style include. |
| 5436 | if test "$am__include" = "#"; then |
| 5437 | echo '.include "confinc"' > confmf |
| 5438 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5439 | *the\ am__doit\ target*) |
| 5440 | am__include=.include |
| 5441 | am__quote="\"" |
| 5442 | _am_result=BSD |
| 5443 | ;; |
| 5444 | esac |
| 5445 | fi |
| 5446 | |
| 5447 | |
| 5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 5449 | $as_echo "$_am_result" >&6; } |
| 5450 | rm -f confinc confmf |
| 5451 | |
| 5452 | # Check whether --enable-dependency-tracking was given. |
| 5453 | if test "${enable_dependency_tracking+set}" = set; then : |
| 5454 | enableval=$enable_dependency_tracking; |
| 5455 | fi |
| 5456 | |
| 5457 | if test "x$enable_dependency_tracking" != xno; then |
| 5458 | am_depcomp="$ac_aux_dir/depcomp" |
| 5459 | AMDEPBACKSLASH='\' |
| 5460 | fi |
| 5461 | if test "x$enable_dependency_tracking" != xno; then |
| 5462 | AMDEP_TRUE= |
| 5463 | AMDEP_FALSE='#' |
| 5464 | else |
| 5465 | AMDEP_TRUE='#' |
| 5466 | AMDEP_FALSE= |
| 5467 | fi |
| 5468 | |
| 5469 | |
| 5470 | |
| 5471 | depcc="$CC" am_compiler_list= |
| 5472 | |
| 5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5474 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 5475 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 5476 | $as_echo_n "(cached) " >&6 |
| 5477 | else |
| 5478 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5479 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5480 | # making bogus files that we don't know about and never remove. For |
| 5481 | # instance it was reported that on HP-UX the gcc test will end up |
| 5482 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5483 | # in D'. |
| 5484 | mkdir conftest.dir |
| 5485 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5486 | # using a relative directory. |
| 5487 | cp "$am_depcomp" conftest.dir |
| 5488 | cd conftest.dir |
| 5489 | # We will build objects and dependencies in a subdirectory because |
| 5490 | # it helps to detect inapplicable dependency modes. For instance |
| 5491 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5492 | # side effect of compilation, but ICC will put the dependencies in |
| 5493 | # the current directory while Tru64 will put them in the object |
| 5494 | # directory. |
| 5495 | mkdir sub |
| 5496 | |
| 5497 | am_cv_CC_dependencies_compiler_type=none |
| 5498 | if test "$am_compiler_list" = ""; then |
| 5499 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5500 | fi |
| 5501 | am__universal=false |
| 5502 | case " $depcc " in #( |
| 5503 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5504 | esac |
| 5505 | |
| 5506 | for depmode in $am_compiler_list; do |
| 5507 | # Setup a source with many dependencies, because some compilers |
| 5508 | # like to wrap large dependency lists on column 80 (with \), and |
| 5509 | # we should not choose a depcomp mode which is confused by this. |
| 5510 | # |
| 5511 | # We need to recreate these files for each test, as the compiler may |
| 5512 | # overwrite some of them when testing with obscure command lines. |
| 5513 | # This happens at least with the AIX C compiler. |
| 5514 | : > sub/conftest.c |
| 5515 | for i in 1 2 3 4 5 6; do |
| 5516 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5517 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5518 | # Solaris 8's {/usr,}/bin/sh. |
| 5519 | touch sub/conftst$i.h |
| 5520 | done |
| 5521 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5522 | |
| 5523 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5524 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5525 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5526 | # versions had trouble with output in subdirs |
| 5527 | am__obj=sub/conftest.${OBJEXT-o} |
| 5528 | am__minus_obj="-o $am__obj" |
| 5529 | case $depmode in |
| 5530 | gcc) |
| 5531 | # This depmode causes a compiler race in universal mode. |
| 5532 | test "$am__universal" = false || continue |
| 5533 | ;; |
| 5534 | nosideeffect) |
| 5535 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5536 | # only be used when explicitly requested |
| 5537 | if test "x$enable_dependency_tracking" = xyes; then |
| 5538 | continue |
| 5539 | else |
| 5540 | break |
| 5541 | fi |
| 5542 | ;; |
| 5543 | msvisualcpp | msvcmsys) |
| 5544 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5545 | # not run yet. These depmodes are late enough in the game, and |
| 5546 | # so weak that their functioning should not be impacted. |
| 5547 | am__obj=conftest.${OBJEXT-o} |
| 5548 | am__minus_obj= |
| 5549 | ;; |
| 5550 | none) break ;; |
| 5551 | esac |
| 5552 | if depmode=$depmode \ |
| 5553 | source=sub/conftest.c object=$am__obj \ |
| 5554 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5555 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5556 | >/dev/null 2>conftest.err && |
| 5557 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5558 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5559 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5560 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5561 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5562 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5563 | # that says an option was ignored or not supported. |
| 5564 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5565 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5566 | # The diagnosis changed in icc 8.0: |
| 5567 | # icc: Command line remark: option '-MP' not supported |
| 5568 | if (grep 'ignoring option' conftest.err || |
| 5569 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5570 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5571 | break |
| 5572 | fi |
| 5573 | fi |
| 5574 | done |
| 5575 | |
| 5576 | cd .. |
| 5577 | rm -rf conftest.dir |
| 5578 | else |
| 5579 | am_cv_CC_dependencies_compiler_type=none |
| 5580 | fi |
| 5581 | |
| 5582 | fi |
| 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5584 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5585 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5586 | |
| 5587 | if |
| 5588 | test "x$enable_dependency_tracking" != xno \ |
| 5589 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5590 | am__fastdepCC_TRUE= |
| 5591 | am__fastdepCC_FALSE='#' |
| 5592 | else |
| 5593 | am__fastdepCC_TRUE='#' |
| 5594 | am__fastdepCC_FALSE= |
| 5595 | fi |
| 5596 | |
| 5597 | |
| 5598 | if test "x$CC" != xcc; then |
| 5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 5600 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 5601 | else |
| 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 5603 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 5604 | fi |
| 5605 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 5606 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5607 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 5608 | $as_echo_n "(cached) " >&6 |
| 5609 | else |
| 5610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5611 | /* end confdefs.h. */ |
| 5612 | |
| 5613 | int |
| 5614 | main () |
| 5615 | { |
| 5616 | |
| 5617 | ; |
| 5618 | return 0; |
| 5619 | } |
| 5620 | _ACEOF |
| 5621 | # Make sure it works both with $CC and with simple cc. |
| 5622 | # We do the test twice because some compilers refuse to overwrite an |
| 5623 | # existing .o file with -o, though they will create one. |
| 5624 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5625 | rm -f conftest2.* |
| 5626 | if { { case "(($ac_try" in |
| 5627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5628 | *) ac_try_echo=$ac_try;; |
| 5629 | esac |
| 5630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5631 | $as_echo "$ac_try_echo"; } >&5 |
| 5632 | (eval "$ac_try") 2>&5 |
| 5633 | ac_status=$? |
| 5634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5635 | test $ac_status = 0; } && |
| 5636 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 5637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5638 | *) ac_try_echo=$ac_try;; |
| 5639 | esac |
| 5640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5641 | $as_echo "$ac_try_echo"; } >&5 |
| 5642 | (eval "$ac_try") 2>&5 |
| 5643 | ac_status=$? |
| 5644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5645 | test $ac_status = 0; }; |
| 5646 | then |
| 5647 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 5648 | if test "x$CC" != xcc; then |
| 5649 | # Test first that cc exists at all. |
| 5650 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 5651 | { { case "(($ac_try" in |
| 5652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5653 | *) ac_try_echo=$ac_try;; |
| 5654 | esac |
| 5655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5656 | $as_echo "$ac_try_echo"; } >&5 |
| 5657 | (eval "$ac_try") 2>&5 |
| 5658 | ac_status=$? |
| 5659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5660 | test $ac_status = 0; }; }; then |
| 5661 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5662 | rm -f conftest2.* |
| 5663 | if { { case "(($ac_try" in |
| 5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5665 | *) ac_try_echo=$ac_try;; |
| 5666 | esac |
| 5667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5668 | $as_echo "$ac_try_echo"; } >&5 |
| 5669 | (eval "$ac_try") 2>&5 |
| 5670 | ac_status=$? |
| 5671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5672 | test $ac_status = 0; } && |
| 5673 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 5674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5675 | *) ac_try_echo=$ac_try;; |
| 5676 | esac |
| 5677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5678 | $as_echo "$ac_try_echo"; } >&5 |
| 5679 | (eval "$ac_try") 2>&5 |
| 5680 | ac_status=$? |
| 5681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5682 | test $ac_status = 0; }; |
| 5683 | then |
| 5684 | # cc works too. |
| 5685 | : |
| 5686 | else |
| 5687 | # cc exists but doesn't like -o. |
| 5688 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5689 | fi |
| 5690 | fi |
| 5691 | fi |
| 5692 | else |
| 5693 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5694 | fi |
| 5695 | rm -f core conftest* |
| 5696 | |
| 5697 | fi |
| 5698 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5700 | $as_echo "yes" >&6; } |
| 5701 | else |
| 5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5703 | $as_echo "no" >&6; } |
| 5704 | |
| 5705 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 5706 | |
| 5707 | fi |
| 5708 | |
| 5709 | # FIXME: we rely on the cache variable name because |
| 5710 | # there is no other way. |
| 5711 | set dummy $CC |
| 5712 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5713 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 5714 | if test "$am_t" != yes; then |
| 5715 | # Losing compiler, so override with the script. |
| 5716 | # FIXME: It is wrong to rewrite CC. |
| 5717 | # But if we don't then we get into trouble of one sort or another. |
| 5718 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5719 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5720 | CC="$am_aux_dir/compile $CC" |
| 5721 | fi |
| 5722 | |
| 5723 | |
| 5724 | |
| 5725 | if test x$GCC = xyes; then |
| 5726 | test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" |
| 5727 | else |
| 5728 | test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" |
| 5729 | fi |
| 5730 | |
| 5731 | # Initialize gnulib right after choosing the compiler. |
| 5732 | |
| 5733 | ac_ext=c |
| 5734 | ac_cpp='$CPP $CPPFLAGS' |
| 5735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5739 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5740 | # On Suns, sometimes $CPP names a directory. |
| 5741 | if test -n "$CPP" && test -d "$CPP"; then |
| 5742 | CPP= |
| 5743 | fi |
| 5744 | if test -z "$CPP"; then |
| 5745 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 5746 | $as_echo_n "(cached) " >&6 |
| 5747 | else |
| 5748 | # Double quotes because CPP needs to be expanded |
| 5749 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5750 | do |
| 5751 | ac_preproc_ok=false |
| 5752 | for ac_c_preproc_warn_flag in '' yes |
| 5753 | do |
| 5754 | # Use a header file that comes with gcc, so configuring glibc |
| 5755 | # with a fresh cross-compiler works. |
| 5756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5757 | # <limits.h> exists even on freestanding compilers. |
| 5758 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5759 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5761 | /* end confdefs.h. */ |
| 5762 | #ifdef __STDC__ |
| 5763 | # include <limits.h> |
| 5764 | #else |
| 5765 | # include <assert.h> |
| 5766 | #endif |
| 5767 | Syntax error |
| 5768 | _ACEOF |
| 5769 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5770 | |
| 5771 | else |
| 5772 | # Broken: fails on valid input. |
| 5773 | continue |
| 5774 | fi |
| 5775 | rm -f conftest.err conftest.$ac_ext |
| 5776 | |
| 5777 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5778 | # can be detected and how. |
| 5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5780 | /* end confdefs.h. */ |
| 5781 | #include <ac_nonexistent.h> |
| 5782 | _ACEOF |
| 5783 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5784 | # Broken: success on invalid input. |
| 5785 | continue |
| 5786 | else |
| 5787 | # Passes both tests. |
| 5788 | ac_preproc_ok=: |
| 5789 | break |
| 5790 | fi |
| 5791 | rm -f conftest.err conftest.$ac_ext |
| 5792 | |
| 5793 | done |
| 5794 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5795 | rm -f conftest.err conftest.$ac_ext |
| 5796 | if $ac_preproc_ok; then : |
| 5797 | break |
| 5798 | fi |
| 5799 | |
| 5800 | done |
| 5801 | ac_cv_prog_CPP=$CPP |
| 5802 | |
| 5803 | fi |
| 5804 | CPP=$ac_cv_prog_CPP |
| 5805 | else |
| 5806 | ac_cv_prog_CPP=$CPP |
| 5807 | fi |
| 5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5809 | $as_echo "$CPP" >&6; } |
| 5810 | ac_preproc_ok=false |
| 5811 | for ac_c_preproc_warn_flag in '' yes |
| 5812 | do |
| 5813 | # Use a header file that comes with gcc, so configuring glibc |
| 5814 | # with a fresh cross-compiler works. |
| 5815 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5816 | # <limits.h> exists even on freestanding compilers. |
| 5817 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5818 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5820 | /* end confdefs.h. */ |
| 5821 | #ifdef __STDC__ |
| 5822 | # include <limits.h> |
| 5823 | #else |
| 5824 | # include <assert.h> |
| 5825 | #endif |
| 5826 | Syntax error |
| 5827 | _ACEOF |
| 5828 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5829 | |
| 5830 | else |
| 5831 | # Broken: fails on valid input. |
| 5832 | continue |
| 5833 | fi |
| 5834 | rm -f conftest.err conftest.$ac_ext |
| 5835 | |
| 5836 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5837 | # can be detected and how. |
| 5838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5839 | /* end confdefs.h. */ |
| 5840 | #include <ac_nonexistent.h> |
| 5841 | _ACEOF |
| 5842 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5843 | # Broken: success on invalid input. |
| 5844 | continue |
| 5845 | else |
| 5846 | # Passes both tests. |
| 5847 | ac_preproc_ok=: |
| 5848 | break |
| 5849 | fi |
| 5850 | rm -f conftest.err conftest.$ac_ext |
| 5851 | |
| 5852 | done |
| 5853 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5854 | rm -f conftest.err conftest.$ac_ext |
| 5855 | if $ac_preproc_ok; then : |
| 5856 | |
| 5857 | else |
| 5858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5860 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5861 | See \`config.log' for more details." "$LINENO" 5; } |
| 5862 | fi |
| 5863 | |
| 5864 | ac_ext=c |
| 5865 | ac_cpp='$CPP $CPPFLAGS' |
| 5866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5869 | |
| 5870 | |
| 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5872 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 5873 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 5874 | $as_echo_n "(cached) " >&6 |
| 5875 | else |
| 5876 | if test -z "$GREP"; then |
| 5877 | ac_path_GREP_found=false |
| 5878 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5880 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5881 | do |
| 5882 | IFS=$as_save_IFS |
| 5883 | test -z "$as_dir" && as_dir=. |
| 5884 | for ac_prog in grep ggrep; do |
| 5885 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5886 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5887 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5888 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5889 | # Check for GNU $ac_path_GREP |
| 5890 | case `"$ac_path_GREP" --version 2>&1` in |
| 5891 | *GNU*) |
| 5892 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5893 | *) |
| 5894 | ac_count=0 |
| 5895 | $as_echo_n 0123456789 >"conftest.in" |
| 5896 | while : |
| 5897 | do |
| 5898 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5899 | mv "conftest.tmp" "conftest.in" |
| 5900 | cp "conftest.in" "conftest.nl" |
| 5901 | $as_echo 'GREP' >> "conftest.nl" |
| 5902 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5903 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5904 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5905 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5906 | # Best one so far, save it but keep looking for a better one |
| 5907 | ac_cv_path_GREP="$ac_path_GREP" |
| 5908 | ac_path_GREP_max=$ac_count |
| 5909 | fi |
| 5910 | # 10*(2^10) chars as input seems more than enough |
| 5911 | test $ac_count -gt 10 && break |
| 5912 | done |
| 5913 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5914 | esac |
| 5915 | |
| 5916 | $ac_path_GREP_found && break 3 |
| 5917 | done |
| 5918 | done |
| 5919 | done |
| 5920 | IFS=$as_save_IFS |
| 5921 | if test -z "$ac_cv_path_GREP"; then |
| 5922 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5923 | fi |
| 5924 | else |
| 5925 | ac_cv_path_GREP=$GREP |
| 5926 | fi |
| 5927 | |
| 5928 | fi |
| 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5930 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5931 | GREP="$ac_cv_path_GREP" |
| 5932 | |
| 5933 | |
| 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5935 | $as_echo_n "checking for egrep... " >&6; } |
| 5936 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 5937 | $as_echo_n "(cached) " >&6 |
| 5938 | else |
| 5939 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5940 | then ac_cv_path_EGREP="$GREP -E" |
| 5941 | else |
| 5942 | if test -z "$EGREP"; then |
| 5943 | ac_path_EGREP_found=false |
| 5944 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5946 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5947 | do |
| 5948 | IFS=$as_save_IFS |
| 5949 | test -z "$as_dir" && as_dir=. |
| 5950 | for ac_prog in egrep; do |
| 5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5952 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5953 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5954 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5955 | # Check for GNU $ac_path_EGREP |
| 5956 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5957 | *GNU*) |
| 5958 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5959 | *) |
| 5960 | ac_count=0 |
| 5961 | $as_echo_n 0123456789 >"conftest.in" |
| 5962 | while : |
| 5963 | do |
| 5964 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5965 | mv "conftest.tmp" "conftest.in" |
| 5966 | cp "conftest.in" "conftest.nl" |
| 5967 | $as_echo 'EGREP' >> "conftest.nl" |
| 5968 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5969 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5970 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5971 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5972 | # Best one so far, save it but keep looking for a better one |
| 5973 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5974 | ac_path_EGREP_max=$ac_count |
| 5975 | fi |
| 5976 | # 10*(2^10) chars as input seems more than enough |
| 5977 | test $ac_count -gt 10 && break |
| 5978 | done |
| 5979 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5980 | esac |
| 5981 | |
| 5982 | $ac_path_EGREP_found && break 3 |
| 5983 | done |
| 5984 | done |
| 5985 | done |
| 5986 | IFS=$as_save_IFS |
| 5987 | if test -z "$ac_cv_path_EGREP"; then |
| 5988 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5989 | fi |
| 5990 | else |
| 5991 | ac_cv_path_EGREP=$EGREP |
| 5992 | fi |
| 5993 | |
| 5994 | fi |
| 5995 | fi |
| 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5997 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5998 | EGREP="$ac_cv_path_EGREP" |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | |
| 6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 |
| 6004 | $as_echo_n "checking for Minix Amsterdam compiler... " >&6; } |
| 6005 | if test "${gl_cv_c_amsterdam_compiler+set}" = set; then : |
| 6006 | $as_echo_n "(cached) " >&6 |
| 6007 | else |
| 6008 | |
| 6009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6010 | /* end confdefs.h. */ |
| 6011 | |
| 6012 | #ifdef __ACK__ |
| 6013 | Amsterdam |
| 6014 | #endif |
| 6015 | |
| 6016 | _ACEOF |
| 6017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6018 | $EGREP "Amsterdam" >/dev/null 2>&1; then : |
| 6019 | gl_cv_c_amsterdam_compiler=yes |
| 6020 | else |
| 6021 | gl_cv_c_amsterdam_compiler=no |
| 6022 | fi |
| 6023 | rm -f conftest* |
| 6024 | |
| 6025 | |
| 6026 | fi |
| 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 |
| 6028 | $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } |
| 6029 | if test -z "$AR"; then |
| 6030 | if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6031 | AR='cc -c.a' |
| 6032 | if test -z "$ARFLAGS"; then |
| 6033 | ARFLAGS='-o' |
| 6034 | fi |
| 6035 | else |
| 6036 | if test -n "$ac_tool_prefix"; then |
| 6037 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6038 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6040 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6041 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 6042 | $as_echo_n "(cached) " >&6 |
| 6043 | else |
| 6044 | if test -n "$AR"; then |
| 6045 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6046 | else |
| 6047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6048 | for as_dir in $PATH |
| 6049 | do |
| 6050 | IFS=$as_save_IFS |
| 6051 | test -z "$as_dir" && as_dir=. |
| 6052 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6054 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6056 | break 2 |
| 6057 | fi |
| 6058 | done |
| 6059 | done |
| 6060 | IFS=$as_save_IFS |
| 6061 | |
| 6062 | fi |
| 6063 | fi |
| 6064 | AR=$ac_cv_prog_AR |
| 6065 | if test -n "$AR"; then |
| 6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6067 | $as_echo "$AR" >&6; } |
| 6068 | else |
| 6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6070 | $as_echo "no" >&6; } |
| 6071 | fi |
| 6072 | |
| 6073 | |
| 6074 | fi |
| 6075 | if test -z "$ac_cv_prog_AR"; then |
| 6076 | ac_ct_AR=$AR |
| 6077 | # Extract the first word of "ar", so it can be a program name with args. |
| 6078 | set dummy ar; ac_word=$2 |
| 6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6080 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6081 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 6082 | $as_echo_n "(cached) " >&6 |
| 6083 | else |
| 6084 | if test -n "$ac_ct_AR"; then |
| 6085 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6086 | else |
| 6087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6088 | for as_dir in $PATH |
| 6089 | do |
| 6090 | IFS=$as_save_IFS |
| 6091 | test -z "$as_dir" && as_dir=. |
| 6092 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6094 | ac_cv_prog_ac_ct_AR="ar" |
| 6095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6096 | break 2 |
| 6097 | fi |
| 6098 | done |
| 6099 | done |
| 6100 | IFS=$as_save_IFS |
| 6101 | |
| 6102 | fi |
| 6103 | fi |
| 6104 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6105 | if test -n "$ac_ct_AR"; then |
| 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6107 | $as_echo "$ac_ct_AR" >&6; } |
| 6108 | else |
| 6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6110 | $as_echo "no" >&6; } |
| 6111 | fi |
| 6112 | |
| 6113 | if test "x$ac_ct_AR" = x; then |
| 6114 | AR="ar" |
| 6115 | else |
| 6116 | case $cross_compiling:$ac_tool_warned in |
| 6117 | yes:) |
| 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6119 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6120 | ac_tool_warned=yes ;; |
| 6121 | esac |
| 6122 | AR=$ac_ct_AR |
| 6123 | fi |
| 6124 | else |
| 6125 | AR="$ac_cv_prog_AR" |
| 6126 | fi |
| 6127 | |
| 6128 | if test -z "$ARFLAGS"; then |
| 6129 | ARFLAGS='cru' |
| 6130 | fi |
| 6131 | fi |
| 6132 | else |
| 6133 | if test -z "$ARFLAGS"; then |
| 6134 | ARFLAGS='cru' |
| 6135 | fi |
| 6136 | fi |
| 6137 | |
| 6138 | |
| 6139 | if test -z "$RANLIB"; then |
| 6140 | if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6141 | RANLIB=':' |
| 6142 | else |
| 6143 | if test -n "$ac_tool_prefix"; then |
| 6144 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6145 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6147 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6148 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 6149 | $as_echo_n "(cached) " >&6 |
| 6150 | else |
| 6151 | if test -n "$RANLIB"; then |
| 6152 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6153 | else |
| 6154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6155 | for as_dir in $PATH |
| 6156 | do |
| 6157 | IFS=$as_save_IFS |
| 6158 | test -z "$as_dir" && as_dir=. |
| 6159 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6161 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6163 | break 2 |
| 6164 | fi |
| 6165 | done |
| 6166 | done |
| 6167 | IFS=$as_save_IFS |
| 6168 | |
| 6169 | fi |
| 6170 | fi |
| 6171 | RANLIB=$ac_cv_prog_RANLIB |
| 6172 | if test -n "$RANLIB"; then |
| 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6174 | $as_echo "$RANLIB" >&6; } |
| 6175 | else |
| 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6177 | $as_echo "no" >&6; } |
| 6178 | fi |
| 6179 | |
| 6180 | |
| 6181 | fi |
| 6182 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6183 | ac_ct_RANLIB=$RANLIB |
| 6184 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6185 | set dummy ranlib; ac_word=$2 |
| 6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6187 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6188 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6189 | $as_echo_n "(cached) " >&6 |
| 6190 | else |
| 6191 | if test -n "$ac_ct_RANLIB"; then |
| 6192 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6193 | else |
| 6194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6195 | for as_dir in $PATH |
| 6196 | do |
| 6197 | IFS=$as_save_IFS |
| 6198 | test -z "$as_dir" && as_dir=. |
| 6199 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6201 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6203 | break 2 |
| 6204 | fi |
| 6205 | done |
| 6206 | done |
| 6207 | IFS=$as_save_IFS |
| 6208 | |
| 6209 | fi |
| 6210 | fi |
| 6211 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6212 | if test -n "$ac_ct_RANLIB"; then |
| 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6214 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6215 | else |
| 6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6217 | $as_echo "no" >&6; } |
| 6218 | fi |
| 6219 | |
| 6220 | if test "x$ac_ct_RANLIB" = x; then |
| 6221 | RANLIB=":" |
| 6222 | else |
| 6223 | case $cross_compiling:$ac_tool_warned in |
| 6224 | yes:) |
| 6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6226 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6227 | ac_tool_warned=yes ;; |
| 6228 | esac |
| 6229 | RANLIB=$ac_ct_RANLIB |
| 6230 | fi |
| 6231 | else |
| 6232 | RANLIB="$ac_cv_prog_RANLIB" |
| 6233 | fi |
| 6234 | |
| 6235 | fi |
| 6236 | fi |
| 6237 | |
| 6238 | |
| 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6240 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6241 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 6242 | $as_echo_n "(cached) " >&6 |
| 6243 | else |
| 6244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6245 | /* end confdefs.h. */ |
| 6246 | #include <stdlib.h> |
| 6247 | #include <stdarg.h> |
| 6248 | #include <string.h> |
| 6249 | #include <float.h> |
| 6250 | |
| 6251 | int |
| 6252 | main () |
| 6253 | { |
| 6254 | |
| 6255 | ; |
| 6256 | return 0; |
| 6257 | } |
| 6258 | _ACEOF |
| 6259 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6260 | ac_cv_header_stdc=yes |
| 6261 | else |
| 6262 | ac_cv_header_stdc=no |
| 6263 | fi |
| 6264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6265 | |
| 6266 | if test $ac_cv_header_stdc = yes; then |
| 6267 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6269 | /* end confdefs.h. */ |
| 6270 | #include <string.h> |
| 6271 | |
| 6272 | _ACEOF |
| 6273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6274 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6275 | |
| 6276 | else |
| 6277 | ac_cv_header_stdc=no |
| 6278 | fi |
| 6279 | rm -f conftest* |
| 6280 | |
| 6281 | fi |
| 6282 | |
| 6283 | if test $ac_cv_header_stdc = yes; then |
| 6284 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6286 | /* end confdefs.h. */ |
| 6287 | #include <stdlib.h> |
| 6288 | |
| 6289 | _ACEOF |
| 6290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6291 | $EGREP "free" >/dev/null 2>&1; then : |
| 6292 | |
| 6293 | else |
| 6294 | ac_cv_header_stdc=no |
| 6295 | fi |
| 6296 | rm -f conftest* |
| 6297 | |
| 6298 | fi |
| 6299 | |
| 6300 | if test $ac_cv_header_stdc = yes; then |
| 6301 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6302 | if test "$cross_compiling" = yes; then : |
| 6303 | : |
| 6304 | else |
| 6305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6306 | /* end confdefs.h. */ |
| 6307 | #include <ctype.h> |
| 6308 | #include <stdlib.h> |
| 6309 | #if ((' ' & 0x0FF) == 0x020) |
| 6310 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6311 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6312 | #else |
| 6313 | # define ISLOWER(c) \ |
| 6314 | (('a' <= (c) && (c) <= 'i') \ |
| 6315 | || ('j' <= (c) && (c) <= 'r') \ |
| 6316 | || ('s' <= (c) && (c) <= 'z')) |
| 6317 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6318 | #endif |
| 6319 | |
| 6320 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6321 | int |
| 6322 | main () |
| 6323 | { |
| 6324 | int i; |
| 6325 | for (i = 0; i < 256; i++) |
| 6326 | if (XOR (islower (i), ISLOWER (i)) |
| 6327 | || toupper (i) != TOUPPER (i)) |
| 6328 | return 2; |
| 6329 | return 0; |
| 6330 | } |
| 6331 | _ACEOF |
| 6332 | if ac_fn_c_try_run "$LINENO"; then : |
| 6333 | |
| 6334 | else |
| 6335 | ac_cv_header_stdc=no |
| 6336 | fi |
| 6337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6338 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6339 | fi |
| 6340 | |
| 6341 | fi |
| 6342 | fi |
| 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6344 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6345 | if test $ac_cv_header_stdc = yes; then |
| 6346 | |
| 6347 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6348 | |
| 6349 | fi |
| 6350 | |
| 6351 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6352 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6353 | inttypes.h stdint.h unistd.h |
| 6354 | do : |
| 6355 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6356 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6357 | " |
| 6358 | eval as_val=\$$as_ac_Header |
| 6359 | if test "x$as_val" = x""yes; then : |
| 6360 | cat >>confdefs.h <<_ACEOF |
| 6361 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6362 | _ACEOF |
| 6363 | |
| 6364 | fi |
| 6365 | |
| 6366 | done |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 6373 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 6374 | MINIX=yes |
| 6375 | else |
| 6376 | MINIX= |
| 6377 | fi |
| 6378 | |
| 6379 | |
| 6380 | if test "$MINIX" = yes; then |
| 6381 | |
| 6382 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 6383 | |
| 6384 | |
| 6385 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 6386 | |
| 6387 | |
| 6388 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 6389 | |
| 6390 | fi |
| 6391 | |
| 6392 | case "$host_os" in |
| 6393 | hpux*) |
| 6394 | |
| 6395 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 6396 | |
| 6397 | ;; |
| 6398 | esac |
| 6399 | |
| 6400 | |
| 6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 6402 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 6403 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 6404 | $as_echo_n "(cached) " >&6 |
| 6405 | else |
| 6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6407 | /* end confdefs.h. */ |
| 6408 | |
| 6409 | # define __EXTENSIONS__ 1 |
| 6410 | $ac_includes_default |
| 6411 | int |
| 6412 | main () |
| 6413 | { |
| 6414 | |
| 6415 | ; |
| 6416 | return 0; |
| 6417 | } |
| 6418 | _ACEOF |
| 6419 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6420 | ac_cv_safe_to_define___extensions__=yes |
| 6421 | else |
| 6422 | ac_cv_safe_to_define___extensions__=no |
| 6423 | fi |
| 6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6425 | fi |
| 6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 6427 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 6428 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 6429 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 6430 | |
| 6431 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 6432 | |
| 6433 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 6434 | |
| 6435 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 6436 | |
| 6437 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 6438 | |
| 6439 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 6440 | |
| 6441 | |
| 6442 | |
| 6443 | |
| 6444 | |
| 6445 | |
| 6446 | |
| 6447 | |
| 6448 | # Check whether --enable-largefile was given. |
| 6449 | if test "${enable_largefile+set}" = set; then : |
| 6450 | enableval=$enable_largefile; |
| 6451 | fi |
| 6452 | |
| 6453 | if test "$enable_largefile" != no; then |
| 6454 | |
| 6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 6456 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 6457 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 6458 | $as_echo_n "(cached) " >&6 |
| 6459 | else |
| 6460 | ac_cv_sys_largefile_CC=no |
| 6461 | if test "$GCC" != yes; then |
| 6462 | ac_save_CC=$CC |
| 6463 | while :; do |
| 6464 | # IRIX 6.2 and later do not support large files by default, |
| 6465 | # so use the C compiler's -n32 option if that helps. |
| 6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6467 | /* end confdefs.h. */ |
| 6468 | #include <sys/types.h> |
| 6469 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6470 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6471 | since some C++ compilers masquerading as C compilers |
| 6472 | incorrectly reject 9223372036854775807. */ |
| 6473 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6474 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6475 | && LARGE_OFF_T % 2147483647 == 1) |
| 6476 | ? 1 : -1]; |
| 6477 | int |
| 6478 | main () |
| 6479 | { |
| 6480 | |
| 6481 | ; |
| 6482 | return 0; |
| 6483 | } |
| 6484 | _ACEOF |
| 6485 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6486 | break |
| 6487 | fi |
| 6488 | rm -f core conftest.err conftest.$ac_objext |
| 6489 | CC="$CC -n32" |
| 6490 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6491 | ac_cv_sys_largefile_CC=' -n32'; break |
| 6492 | fi |
| 6493 | rm -f core conftest.err conftest.$ac_objext |
| 6494 | break |
| 6495 | done |
| 6496 | CC=$ac_save_CC |
| 6497 | rm -f conftest.$ac_ext |
| 6498 | fi |
| 6499 | fi |
| 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 6501 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 6502 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 6503 | CC=$CC$ac_cv_sys_largefile_CC |
| 6504 | fi |
| 6505 | |
| 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 6507 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 6508 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 6509 | $as_echo_n "(cached) " >&6 |
| 6510 | else |
| 6511 | while :; do |
| 6512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6513 | /* end confdefs.h. */ |
| 6514 | #include <sys/types.h> |
| 6515 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6516 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6517 | since some C++ compilers masquerading as C compilers |
| 6518 | incorrectly reject 9223372036854775807. */ |
| 6519 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6520 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6521 | && LARGE_OFF_T % 2147483647 == 1) |
| 6522 | ? 1 : -1]; |
| 6523 | int |
| 6524 | main () |
| 6525 | { |
| 6526 | |
| 6527 | ; |
| 6528 | return 0; |
| 6529 | } |
| 6530 | _ACEOF |
| 6531 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6532 | ac_cv_sys_file_offset_bits=no; break |
| 6533 | fi |
| 6534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6536 | /* end confdefs.h. */ |
| 6537 | #define _FILE_OFFSET_BITS 64 |
| 6538 | #include <sys/types.h> |
| 6539 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6540 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6541 | since some C++ compilers masquerading as C compilers |
| 6542 | incorrectly reject 9223372036854775807. */ |
| 6543 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6544 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6545 | && LARGE_OFF_T % 2147483647 == 1) |
| 6546 | ? 1 : -1]; |
| 6547 | int |
| 6548 | main () |
| 6549 | { |
| 6550 | |
| 6551 | ; |
| 6552 | return 0; |
| 6553 | } |
| 6554 | _ACEOF |
| 6555 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6556 | ac_cv_sys_file_offset_bits=64; break |
| 6557 | fi |
| 6558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6559 | ac_cv_sys_file_offset_bits=unknown |
| 6560 | break |
| 6561 | done |
| 6562 | fi |
| 6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 6564 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 6565 | case $ac_cv_sys_file_offset_bits in #( |
| 6566 | no | unknown) ;; |
| 6567 | *) |
| 6568 | cat >>confdefs.h <<_ACEOF |
| 6569 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6570 | _ACEOF |
| 6571 | ;; |
| 6572 | esac |
| 6573 | rm -rf conftest* |
| 6574 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 6576 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 6577 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| 6578 | $as_echo_n "(cached) " >&6 |
| 6579 | else |
| 6580 | while :; do |
| 6581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6582 | /* end confdefs.h. */ |
| 6583 | #include <sys/types.h> |
| 6584 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6585 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6586 | since some C++ compilers masquerading as C compilers |
| 6587 | incorrectly reject 9223372036854775807. */ |
| 6588 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6589 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6590 | && LARGE_OFF_T % 2147483647 == 1) |
| 6591 | ? 1 : -1]; |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
| 6600 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6601 | ac_cv_sys_large_files=no; break |
| 6602 | fi |
| 6603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6605 | /* end confdefs.h. */ |
| 6606 | #define _LARGE_FILES 1 |
| 6607 | #include <sys/types.h> |
| 6608 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6609 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6610 | since some C++ compilers masquerading as C compilers |
| 6611 | incorrectly reject 9223372036854775807. */ |
| 6612 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6613 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6614 | && LARGE_OFF_T % 2147483647 == 1) |
| 6615 | ? 1 : -1]; |
| 6616 | int |
| 6617 | main () |
| 6618 | { |
| 6619 | |
| 6620 | ; |
| 6621 | return 0; |
| 6622 | } |
| 6623 | _ACEOF |
| 6624 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6625 | ac_cv_sys_large_files=1; break |
| 6626 | fi |
| 6627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6628 | ac_cv_sys_large_files=unknown |
| 6629 | break |
| 6630 | done |
| 6631 | fi |
| 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 6633 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 6634 | case $ac_cv_sys_large_files in #( |
| 6635 | no | unknown) ;; |
| 6636 | *) |
| 6637 | cat >>confdefs.h <<_ACEOF |
| 6638 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 6639 | _ACEOF |
| 6640 | ;; |
| 6641 | esac |
| 6642 | rm -rf conftest* |
| 6643 | fi |
| 6644 | |
| 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | case $ac_cv_prog_cc_stdc in #( |
| 6649 | no) : |
| 6650 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 6651 | *) : |
| 6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 6653 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 6654 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| 6655 | $as_echo_n "(cached) " >&6 |
| 6656 | else |
| 6657 | ac_cv_prog_cc_c99=no |
| 6658 | ac_save_CC=$CC |
| 6659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6660 | /* end confdefs.h. */ |
| 6661 | #include <stdarg.h> |
| 6662 | #include <stdbool.h> |
| 6663 | #include <stdlib.h> |
| 6664 | #include <wchar.h> |
| 6665 | #include <stdio.h> |
| 6666 | |
| 6667 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 6668 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 6669 | #define showlist(...) puts (#__VA_ARGS__) |
| 6670 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 6671 | static void |
| 6672 | test_varargs_macros (void) |
| 6673 | { |
| 6674 | int x = 1234; |
| 6675 | int y = 5678; |
| 6676 | debug ("Flag"); |
| 6677 | debug ("X = %d\n", x); |
| 6678 | showlist (The first, second, and third items.); |
| 6679 | report (x>y, "x is %d but y is %d", x, y); |
| 6680 | } |
| 6681 | |
| 6682 | // Check long long types. |
| 6683 | #define BIG64 18446744073709551615ull |
| 6684 | #define BIG32 4294967295ul |
| 6685 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 6686 | #if !BIG_OK |
| 6687 | your preprocessor is broken; |
| 6688 | #endif |
| 6689 | #if BIG_OK |
| 6690 | #else |
| 6691 | your preprocessor is broken; |
| 6692 | #endif |
| 6693 | static long long int bignum = -9223372036854775807LL; |
| 6694 | static unsigned long long int ubignum = BIG64; |
| 6695 | |
| 6696 | struct incomplete_array |
| 6697 | { |
| 6698 | int datasize; |
| 6699 | double data[]; |
| 6700 | }; |
| 6701 | |
| 6702 | struct named_init { |
| 6703 | int number; |
| 6704 | const wchar_t *name; |
| 6705 | double average; |
| 6706 | }; |
| 6707 | |
| 6708 | typedef const char *ccp; |
| 6709 | |
| 6710 | static inline int |
| 6711 | test_restrict (ccp restrict text) |
| 6712 | { |
| 6713 | // See if C++-style comments work. |
| 6714 | // Iterate through items via the restricted pointer. |
| 6715 | // Also check for declarations in for loops. |
| 6716 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 6717 | continue; |
| 6718 | return 0; |
| 6719 | } |
| 6720 | |
| 6721 | // Check varargs and va_copy. |
| 6722 | static void |
| 6723 | test_varargs (const char *format, ...) |
| 6724 | { |
| 6725 | va_list args; |
| 6726 | va_start (args, format); |
| 6727 | va_list args_copy; |
| 6728 | va_copy (args_copy, args); |
| 6729 | |
| 6730 | const char *str; |
| 6731 | int number; |
| 6732 | float fnumber; |
| 6733 | |
| 6734 | while (*format) |
| 6735 | { |
| 6736 | switch (*format++) |
| 6737 | { |
| 6738 | case 's': // string |
| 6739 | str = va_arg (args_copy, const char *); |
| 6740 | break; |
| 6741 | case 'd': // int |
| 6742 | number = va_arg (args_copy, int); |
| 6743 | break; |
| 6744 | case 'f': // float |
| 6745 | fnumber = va_arg (args_copy, double); |
| 6746 | break; |
| 6747 | default: |
| 6748 | break; |
| 6749 | } |
| 6750 | } |
| 6751 | va_end (args_copy); |
| 6752 | va_end (args); |
| 6753 | } |
| 6754 | |
| 6755 | int |
| 6756 | main () |
| 6757 | { |
| 6758 | |
| 6759 | // Check bool. |
| 6760 | _Bool success = false; |
| 6761 | |
| 6762 | // Check restrict. |
| 6763 | if (test_restrict ("String literal") == 0) |
| 6764 | success = true; |
| 6765 | char *restrict newvar = "Another string"; |
| 6766 | |
| 6767 | // Check varargs. |
| 6768 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 6769 | test_varargs_macros (); |
| 6770 | |
| 6771 | // Check flexible array members. |
| 6772 | struct incomplete_array *ia = |
| 6773 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 6774 | ia->datasize = 10; |
| 6775 | for (int i = 0; i < ia->datasize; ++i) |
| 6776 | ia->data[i] = i * 1.234; |
| 6777 | |
| 6778 | // Check named initializers. |
| 6779 | struct named_init ni = { |
| 6780 | .number = 34, |
| 6781 | .name = L"Test wide string", |
| 6782 | .average = 543.34343, |
| 6783 | }; |
| 6784 | |
| 6785 | ni.number = 58; |
| 6786 | |
| 6787 | int dynamic_array[ni.number]; |
| 6788 | dynamic_array[ni.number - 1] = 543; |
| 6789 | |
| 6790 | // work around unused variable warnings |
| 6791 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 6792 | || dynamic_array[ni.number - 1] != 543); |
| 6793 | |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 6799 | do |
| 6800 | CC="$ac_save_CC $ac_arg" |
| 6801 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6802 | ac_cv_prog_cc_c99=$ac_arg |
| 6803 | fi |
| 6804 | rm -f core conftest.err conftest.$ac_objext |
| 6805 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6806 | done |
| 6807 | rm -f conftest.$ac_ext |
| 6808 | CC=$ac_save_CC |
| 6809 | |
| 6810 | fi |
| 6811 | # AC_CACHE_VAL |
| 6812 | case "x$ac_cv_prog_cc_c99" in |
| 6813 | x) |
| 6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6815 | $as_echo "none needed" >&6; } ;; |
| 6816 | xno) |
| 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6818 | $as_echo "unsupported" >&6; } ;; |
| 6819 | *) |
| 6820 | CC="$CC $ac_cv_prog_cc_c99" |
| 6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 6822 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 6823 | esac |
| 6824 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 6825 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6826 | else |
| 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6828 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 6829 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 6830 | $as_echo_n "(cached) " >&6 |
| 6831 | else |
| 6832 | ac_cv_prog_cc_c89=no |
| 6833 | ac_save_CC=$CC |
| 6834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6835 | /* end confdefs.h. */ |
| 6836 | #include <stdarg.h> |
| 6837 | #include <stdio.h> |
| 6838 | #include <sys/types.h> |
| 6839 | #include <sys/stat.h> |
| 6840 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6841 | struct buf { int x; }; |
| 6842 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6843 | static char *e (p, i) |
| 6844 | char **p; |
| 6845 | int i; |
| 6846 | { |
| 6847 | return p[i]; |
| 6848 | } |
| 6849 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6850 | { |
| 6851 | char *s; |
| 6852 | va_list v; |
| 6853 | va_start (v,p); |
| 6854 | s = g (p, va_arg (v,int)); |
| 6855 | va_end (v); |
| 6856 | return s; |
| 6857 | } |
| 6858 | |
| 6859 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6860 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6861 | These don't provoke an error unfortunately, instead are silently treated |
| 6862 | as 'x'. The following induces an error, until -std is added to get |
| 6863 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6864 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6865 | that's true only with -std. */ |
| 6866 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6867 | |
| 6868 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6869 | inside strings and character constants. */ |
| 6870 | #define FOO(x) 'x' |
| 6871 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6872 | |
| 6873 | int test (int i, double x); |
| 6874 | struct s1 {int (*f) (int a);}; |
| 6875 | struct s2 {int (*f) (double a);}; |
| 6876 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6877 | int argc; |
| 6878 | char **argv; |
| 6879 | int |
| 6880 | main () |
| 6881 | { |
| 6882 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6883 | ; |
| 6884 | return 0; |
| 6885 | } |
| 6886 | _ACEOF |
| 6887 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6888 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6889 | do |
| 6890 | CC="$ac_save_CC $ac_arg" |
| 6891 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6892 | ac_cv_prog_cc_c89=$ac_arg |
| 6893 | fi |
| 6894 | rm -f core conftest.err conftest.$ac_objext |
| 6895 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6896 | done |
| 6897 | rm -f conftest.$ac_ext |
| 6898 | CC=$ac_save_CC |
| 6899 | |
| 6900 | fi |
| 6901 | # AC_CACHE_VAL |
| 6902 | case "x$ac_cv_prog_cc_c89" in |
| 6903 | x) |
| 6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6905 | $as_echo "none needed" >&6; } ;; |
| 6906 | xno) |
| 6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6908 | $as_echo "unsupported" >&6; } ;; |
| 6909 | *) |
| 6910 | CC="$CC $ac_cv_prog_cc_c89" |
| 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6912 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6913 | esac |
| 6914 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6915 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6916 | else |
| 6917 | ac_cv_prog_cc_stdc=no |
| 6918 | fi |
| 6919 | |
| 6920 | fi |
| 6921 | ;; |
| 6922 | esac |
| 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 |
| 6924 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| 6925 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : |
| 6926 | $as_echo_n "(cached) " >&6 |
| 6927 | fi |
| 6928 | |
| 6929 | case $ac_cv_prog_cc_stdc in #( |
| 6930 | no) : |
| 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6932 | $as_echo "unsupported" >&6; } ;; #( |
| 6933 | '') : |
| 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6935 | $as_echo "none needed" >&6; } ;; #( |
| 6936 | *) : |
| 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 |
| 6938 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 6939 | esac |
| 6940 | |
| 6941 | |
| 6942 | |
| 6943 | # Code from module alloca-opt: |
| 6944 | # Code from module allocator: |
| 6945 | # Code from module c-ctype: |
| 6946 | # Code from module c-strcase: |
| 6947 | # Code from module careadlinkat: |
| 6948 | # Code from module clock-time: |
| 6949 | # Code from module crypto/md5: |
| 6950 | # Code from module crypto/sha1: |
| 6951 | # Code from module crypto/sha256: |
| 6952 | # Code from module crypto/sha512: |
| 6953 | # Code from module dosname: |
| 6954 | # Code from module dtoastr: |
| 6955 | # Code from module dtotimespec: |
| 6956 | # Code from module dup2: |
| 6957 | # Code from module environ: |
| 6958 | # Code from module extensions: |
| 6959 | |
| 6960 | # Code from module extern-inline: |
| 6961 | # Code from module filemode: |
| 6962 | # Code from module getloadavg: |
| 6963 | # Code from module getopt-gnu: |
| 6964 | # Code from module getopt-posix: |
| 6965 | # Code from module gettext-h: |
| 6966 | # Code from module gettime: |
| 6967 | # Code from module gettimeofday: |
| 6968 | # Code from module ignore-value: |
| 6969 | # Code from module include_next: |
| 6970 | # Code from module intprops: |
| 6971 | # Code from module inttypes-incomplete: |
| 6972 | # Code from module largefile: |
| 6973 | |
| 6974 | # Code from module lstat: |
| 6975 | # Code from module manywarnings: |
| 6976 | # Code from module mktime: |
| 6977 | # Code from module multiarch: |
| 6978 | # Code from module nocrash: |
| 6979 | # Code from module pathmax: |
| 6980 | # Code from module pselect: |
| 6981 | # Code from module pthread_sigmask: |
| 6982 | # Code from module readlink: |
| 6983 | # Code from module signal-h: |
| 6984 | # Code from module snippet/_Noreturn: |
| 6985 | # Code from module snippet/arg-nonnull: |
| 6986 | # Code from module snippet/c++defs: |
| 6987 | # Code from module snippet/warn-on-use: |
| 6988 | # Code from module socklen: |
| 6989 | # Code from module ssize_t: |
| 6990 | # Code from module stat: |
| 6991 | # Code from module stat-time: |
| 6992 | # Code from module stdalign: |
| 6993 | # Code from module stdarg: |
| 6994 | |
| 6995 | |
| 6996 | |
| 6997 | # Code from module stdbool: |
| 6998 | # Code from module stddef: |
| 6999 | # Code from module stdint: |
| 7000 | # Code from module stdio: |
| 7001 | # Code from module stdlib: |
| 7002 | # Code from module strftime: |
| 7003 | # Code from module strtoimax: |
| 7004 | # Code from module strtoll: |
| 7005 | # Code from module strtoull: |
| 7006 | # Code from module strtoumax: |
| 7007 | # Code from module symlink: |
| 7008 | # Code from module sys_select: |
| 7009 | # Code from module sys_stat: |
| 7010 | # Code from module sys_time: |
| 7011 | # Code from module time: |
| 7012 | # Code from module time_r: |
| 7013 | # Code from module timespec: |
| 7014 | # Code from module timespec-add: |
| 7015 | # Code from module timespec-sub: |
| 7016 | # Code from module u64: |
| 7017 | # Code from module unistd: |
| 7018 | # Code from module utimens: |
| 7019 | # Code from module verify: |
| 7020 | # Code from module warnings: |
| 7021 | |
| 7022 | |
| 7023 | # Check whether --enable-gcc-warnings was given. |
| 7024 | if test "${enable_gcc_warnings+set}" = set; then : |
| 7025 | enableval=$enable_gcc_warnings; case $enableval in |
| 7026 | yes|no) ;; |
| 7027 | *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; |
| 7028 | esac |
| 7029 | gl_gcc_warnings=$enableval |
| 7030 | else |
| 7031 | gl_gcc_warnings=no |
| 7032 | |
| 7033 | fi |
| 7034 | |
| 7035 | |
| 7036 | # Check whether --enable-link-time-optimization was given. |
| 7037 | if test "${enable_link_time_optimization+set}" = set; then : |
| 7038 | enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then |
| 7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5 |
| 7040 | $as_echo_n "checking whether link-time optimization is supported... " >&6; } |
| 7041 | ac_lto_supported=no |
| 7042 | if test x$GCC = xyes; then |
| 7043 | CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null` |
| 7044 | if test x$CPUS != x; then |
| 7045 | LTO="-flto=$CPUS" |
| 7046 | else |
| 7047 | LTO="-flto" |
| 7048 | fi |
| 7049 | old_CFLAGS=$CFLAGS |
| 7050 | CFLAGS="$CFLAGS $LTO" |
| 7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7052 | /* end confdefs.h. */ |
| 7053 | |
| 7054 | int |
| 7055 | main () |
| 7056 | { |
| 7057 | |
| 7058 | ; |
| 7059 | return 0; |
| 7060 | } |
| 7061 | _ACEOF |
| 7062 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7063 | ac_lto_supported=yes |
| 7064 | else |
| 7065 | ac_lto_supported=no |
| 7066 | fi |
| 7067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7068 | CFLAGS="$old_CFLAGS" |
| 7069 | fi |
| 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5 |
| 7071 | $as_echo "$ac_lto_supported" >&6; } |
| 7072 | if test "$ac_lto_supported" = "yes"; then |
| 7073 | CFLAGS="$CFLAGS $LTO" |
| 7074 | fi |
| 7075 | fi |
| 7076 | fi |
| 7077 | |
| 7078 | |
| 7079 | # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) |
| 7080 | # ------------------------------------------------ |
| 7081 | # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND. |
| 7082 | # Otherwise, run RUN-IF-NOT-FOUND. |
| 7083 | |
| 7084 | |
| 7085 | # When compiling with GCC, prefer -isystem to -I when including system |
| 7086 | # include files, to avoid generating useless diagnostics for the files. |
| 7087 | if test "$gl_gcc_warnings" != yes; then |
| 7088 | isystem='-I' |
| 7089 | else |
| 7090 | isystem='-isystem ' |
| 7091 | |
| 7092 | # This, $nw, is the list of warnings we disable. |
| 7093 | nw= |
| 7094 | |
| 7095 | case $with_x_toolkit in |
| 7096 | lucid | athena | motif) |
| 7097 | # Old toolkits mishandle 'const'. |
| 7098 | nw="$nw -Wwrite-strings" |
| 7099 | ;; |
| 7100 | *) |
| 7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 |
| 7102 | $as_echo_n "checking whether C compiler handles -Werror... " >&6; } |
| 7103 | if test "${gl_cv_warn_c__Werror+set}" = set; then : |
| 7104 | $as_echo_n "(cached) " >&6 |
| 7105 | else |
| 7106 | |
| 7107 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7108 | as_fn_append CFLAGS " -Werror" |
| 7109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7110 | /* end confdefs.h. */ |
| 7111 | |
| 7112 | int |
| 7113 | main () |
| 7114 | { |
| 7115 | |
| 7116 | ; |
| 7117 | return 0; |
| 7118 | } |
| 7119 | _ACEOF |
| 7120 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7121 | gl_cv_warn_c__Werror=yes |
| 7122 | else |
| 7123 | gl_cv_warn_c__Werror=no |
| 7124 | fi |
| 7125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7126 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7127 | |
| 7128 | fi |
| 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 |
| 7130 | $as_echo "$gl_cv_warn_c__Werror" >&6; } |
| 7131 | if test "x$gl_cv_warn_c__Werror" = x""yes; then : |
| 7132 | as_fn_append WERROR_CFLAGS " -Werror" |
| 7133 | fi |
| 7134 | |
| 7135 | |
| 7136 | ;; |
| 7137 | esac |
| 7138 | |
| 7139 | |
| 7140 | nw="$nw -Waggregate-return" # anachronistic |
| 7141 | nw="$nw -Wlong-long" # C90 is anachronistic |
| 7142 | nw="$nw -Wc++-compat" # We don't care about C++ compilers |
| 7143 | nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib |
| 7144 | nw="$nw -Wtraditional" # Warns on #elif which we use often |
| 7145 | nw="$nw -Wcast-qual" # Too many warnings for now |
| 7146 | nw="$nw -Wconversion" # Too many warnings for now |
| 7147 | nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings |
| 7148 | nw="$nw -Wsign-conversion" # Too many warnings for now |
| 7149 | nw="$nw -Woverlength-strings" # Not a problem these days |
| 7150 | nw="$nw -Wtraditional-conversion" # Too many warnings for now |
| 7151 | nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored |
| 7152 | nw="$nw -Wpadded" # Our structs are not padded |
| 7153 | nw="$nw -Wredundant-decls" # we regularly (re)declare functions |
| 7154 | nw="$nw -Wlogical-op" # any use of fwrite provokes this |
| 7155 | nw="$nw -Wformat-nonliteral" # we do this a lot |
| 7156 | nw="$nw -Wvla" # warnings in gettext.h |
| 7157 | nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__ |
| 7158 | nw="$nw -Wswitch-enum" # Too many warnings for now |
| 7159 | nw="$nw -Wswitch-default" # Too many warnings for now |
| 7160 | nw="$nw -Wfloat-equal" # warns about high-quality code |
| 7161 | nw="$nw -Winline" # OK to ignore 'inline' |
| 7162 | nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning |
| 7163 | nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations |
| 7164 | |
| 7165 | # Emacs doesn't care about shadowing; see |
| 7166 | # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>. |
| 7167 | nw="$nw -Wshadow" |
| 7168 | |
| 7169 | # The following lines should be removable at some point. |
| 7170 | nw="$nw -Wstack-protector" |
| 7171 | nw="$nw -Wstrict-overflow" |
| 7172 | nw="$nw -Wsuggest-attribute=pure" |
| 7173 | |
| 7174 | |
| 7175 | |
| 7176 | if test -n "$GCC"; then |
| 7177 | |
| 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 |
| 7179 | $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } |
| 7180 | if test "${gl_cv_cc_nomfi_supported+set}" = set; then : |
| 7181 | $as_echo_n "(cached) " >&6 |
| 7182 | else |
| 7183 | |
| 7184 | gl_save_CFLAGS="$CFLAGS" |
| 7185 | CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" |
| 7186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7187 | /* end confdefs.h. */ |
| 7188 | |
| 7189 | int |
| 7190 | main () |
| 7191 | { |
| 7192 | |
| 7193 | ; |
| 7194 | return 0; |
| 7195 | } |
| 7196 | _ACEOF |
| 7197 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7198 | gl_cv_cc_nomfi_supported=yes |
| 7199 | else |
| 7200 | gl_cv_cc_nomfi_supported=no |
| 7201 | fi |
| 7202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7203 | CFLAGS="$gl_save_CFLAGS" |
| 7204 | fi |
| 7205 | |
| 7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 |
| 7207 | $as_echo "$gl_cv_cc_nomfi_supported" >&6; } |
| 7208 | |
| 7209 | if test "$gl_cv_cc_nomfi_supported" = yes; then |
| 7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 |
| 7211 | $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } |
| 7212 | if test "${gl_cv_cc_nomfi_needed+set}" = set; then : |
| 7213 | $as_echo_n "(cached) " >&6 |
| 7214 | else |
| 7215 | |
| 7216 | gl_save_CFLAGS="$CFLAGS" |
| 7217 | CFLAGS="$CFLAGS -W -Werror" |
| 7218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7219 | /* end confdefs.h. */ |
| 7220 | void f (void) |
| 7221 | { |
| 7222 | typedef struct { int a; int b; } s_t; |
| 7223 | s_t s1 = { 0, }; |
| 7224 | } |
| 7225 | |
| 7226 | int |
| 7227 | main () |
| 7228 | { |
| 7229 | |
| 7230 | ; |
| 7231 | return 0; |
| 7232 | } |
| 7233 | _ACEOF |
| 7234 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7235 | gl_cv_cc_nomfi_needed=no |
| 7236 | else |
| 7237 | gl_cv_cc_nomfi_needed=yes |
| 7238 | fi |
| 7239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7240 | CFLAGS="$gl_save_CFLAGS" |
| 7241 | |
| 7242 | fi |
| 7243 | |
| 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 |
| 7245 | $as_echo "$gl_cv_cc_nomfi_needed" >&6; } |
| 7246 | fi |
| 7247 | fi |
| 7248 | |
| 7249 | gl_manywarn_set= |
| 7250 | for gl_manywarn_item in \ |
| 7251 | -Wall \ |
| 7252 | -W \ |
| 7253 | -Wformat-y2k \ |
| 7254 | -Wformat-nonliteral \ |
| 7255 | -Wformat-security \ |
| 7256 | -Winit-self \ |
| 7257 | -Wmissing-include-dirs \ |
| 7258 | -Wswitch-default \ |
| 7259 | -Wswitch-enum \ |
| 7260 | -Wunused \ |
| 7261 | -Wunknown-pragmas \ |
| 7262 | -Wstrict-aliasing \ |
| 7263 | -Wstrict-overflow \ |
| 7264 | -Wsystem-headers \ |
| 7265 | -Wfloat-equal \ |
| 7266 | -Wtraditional \ |
| 7267 | -Wtraditional-conversion \ |
| 7268 | -Wdeclaration-after-statement \ |
| 7269 | -Wundef \ |
| 7270 | -Wshadow \ |
| 7271 | -Wunsafe-loop-optimizations \ |
| 7272 | -Wpointer-arith \ |
| 7273 | -Wbad-function-cast \ |
| 7274 | -Wc++-compat \ |
| 7275 | -Wcast-qual \ |
| 7276 | -Wcast-align \ |
| 7277 | -Wwrite-strings \ |
| 7278 | -Wconversion \ |
| 7279 | -Wsign-conversion \ |
| 7280 | -Wlogical-op \ |
| 7281 | -Waggregate-return \ |
| 7282 | -Wstrict-prototypes \ |
| 7283 | -Wold-style-definition \ |
| 7284 | -Wmissing-prototypes \ |
| 7285 | -Wmissing-declarations \ |
| 7286 | -Wmissing-noreturn \ |
| 7287 | -Wmissing-format-attribute \ |
| 7288 | -Wpacked \ |
| 7289 | -Wpadded \ |
| 7290 | -Wredundant-decls \ |
| 7291 | -Wnested-externs \ |
| 7292 | -Wunreachable-code \ |
| 7293 | -Winline \ |
| 7294 | -Winvalid-pch \ |
| 7295 | -Wlong-long \ |
| 7296 | -Wvla \ |
| 7297 | -Wvolatile-register-var \ |
| 7298 | -Wdisabled-optimization \ |
| 7299 | -Wstack-protector \ |
| 7300 | -Woverlength-strings \ |
| 7301 | -Wbuiltin-macro-redefined \ |
| 7302 | -Wmudflap \ |
| 7303 | -Wpacked-bitfield-compat \ |
| 7304 | -Wsync-nand \ |
| 7305 | ; do |
| 7306 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" |
| 7307 | done |
| 7308 | # The following are not documented in the manual but are included in |
| 7309 | # output from gcc --help=warnings. |
| 7310 | for gl_manywarn_item in \ |
| 7311 | -Wattributes \ |
| 7312 | -Wcoverage-mismatch \ |
| 7313 | -Wunused-macros \ |
| 7314 | ; do |
| 7315 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" |
| 7316 | done |
| 7317 | # More warnings from gcc 4.6.2 --help=warnings. |
| 7318 | for gl_manywarn_item in \ |
| 7319 | -Wabi \ |
| 7320 | -Wcpp \ |
| 7321 | -Wdeprecated \ |
| 7322 | -Wdeprecated-declarations \ |
| 7323 | -Wdiv-by-zero \ |
| 7324 | -Wdouble-promotion \ |
| 7325 | -Wendif-labels \ |
| 7326 | -Wextra \ |
| 7327 | -Wformat-contains-nul \ |
| 7328 | -Wformat-extra-args \ |
| 7329 | -Wformat-zero-length \ |
| 7330 | -Wformat=2 \ |
| 7331 | -Wmultichar \ |
| 7332 | -Wnormalized=nfc \ |
| 7333 | -Woverflow \ |
| 7334 | -Wpointer-to-int-cast \ |
| 7335 | -Wpragmas \ |
| 7336 | -Wsuggest-attribute=const \ |
| 7337 | -Wsuggest-attribute=noreturn \ |
| 7338 | -Wsuggest-attribute=pure \ |
| 7339 | -Wtrampolines \ |
| 7340 | ; do |
| 7341 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" |
| 7342 | done |
| 7343 | |
| 7344 | # Disable the missing-field-initializers warning if needed |
| 7345 | if test "$gl_cv_cc_nomfi_needed" = yes; then |
| 7346 | gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" |
| 7347 | fi |
| 7348 | |
| 7349 | ws=$gl_manywarn_set |
| 7350 | |
| 7351 | |
| 7352 | gl_warn_set= |
| 7353 | set x $ws; shift |
| 7354 | for gl_warn_item |
| 7355 | do |
| 7356 | case " $nw " in |
| 7357 | *" $gl_warn_item "*) |
| 7358 | ;; |
| 7359 | *) |
| 7360 | gl_warn_set="$gl_warn_set $gl_warn_item" |
| 7361 | ;; |
| 7362 | esac |
| 7363 | done |
| 7364 | ws=$gl_warn_set |
| 7365 | |
| 7366 | for w in $ws; do |
| 7367 | as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` |
| 7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 |
| 7369 | $as_echo_n "checking whether C compiler handles $w... " >&6; } |
| 7370 | if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7371 | $as_echo_n "(cached) " >&6 |
| 7372 | else |
| 7373 | |
| 7374 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7375 | as_fn_append CFLAGS " $w" |
| 7376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7377 | /* end confdefs.h. */ |
| 7378 | |
| 7379 | int |
| 7380 | main () |
| 7381 | { |
| 7382 | |
| 7383 | ; |
| 7384 | return 0; |
| 7385 | } |
| 7386 | _ACEOF |
| 7387 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7388 | eval "$as_gl_Warn=yes" |
| 7389 | else |
| 7390 | eval "$as_gl_Warn=no" |
| 7391 | fi |
| 7392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7393 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7394 | |
| 7395 | fi |
| 7396 | eval ac_res=\$$as_gl_Warn |
| 7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7398 | $as_echo "$ac_res" >&6; } |
| 7399 | eval as_val=\$$as_gl_Warn |
| 7400 | if test "x$as_val" = x""yes; then : |
| 7401 | as_fn_append WARN_CFLAGS " $w" |
| 7402 | fi |
| 7403 | |
| 7404 | |
| 7405 | done |
| 7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5 |
| 7407 | $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; } |
| 7408 | if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then : |
| 7409 | $as_echo_n "(cached) " >&6 |
| 7410 | else |
| 7411 | |
| 7412 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7413 | as_fn_append CFLAGS " -Wno-missing-field-initializers" |
| 7414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7415 | /* end confdefs.h. */ |
| 7416 | |
| 7417 | int |
| 7418 | main () |
| 7419 | { |
| 7420 | |
| 7421 | ; |
| 7422 | return 0; |
| 7423 | } |
| 7424 | _ACEOF |
| 7425 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7426 | gl_cv_warn_c__Wno_missing_field_initializers=yes |
| 7427 | else |
| 7428 | gl_cv_warn_c__Wno_missing_field_initializers=no |
| 7429 | fi |
| 7430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7431 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7432 | |
| 7433 | fi |
| 7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5 |
| 7435 | $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; } |
| 7436 | if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then : |
| 7437 | as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers" |
| 7438 | fi |
| 7439 | |
| 7440 | # We need this one |
| 7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5 |
| 7442 | $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; } |
| 7443 | if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then : |
| 7444 | $as_echo_n "(cached) " >&6 |
| 7445 | else |
| 7446 | |
| 7447 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7448 | as_fn_append CFLAGS " -Wno-sign-compare" |
| 7449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7450 | /* end confdefs.h. */ |
| 7451 | |
| 7452 | int |
| 7453 | main () |
| 7454 | { |
| 7455 | |
| 7456 | ; |
| 7457 | return 0; |
| 7458 | } |
| 7459 | _ACEOF |
| 7460 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7461 | gl_cv_warn_c__Wno_sign_compare=yes |
| 7462 | else |
| 7463 | gl_cv_warn_c__Wno_sign_compare=no |
| 7464 | fi |
| 7465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7466 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7467 | |
| 7468 | fi |
| 7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5 |
| 7470 | $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; } |
| 7471 | if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then : |
| 7472 | as_fn_append WARN_CFLAGS " -Wno-sign-compare" |
| 7473 | fi |
| 7474 | |
| 7475 | # Too many warnings for now |
| 7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5 |
| 7477 | $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; } |
| 7478 | if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then : |
| 7479 | $as_echo_n "(cached) " >&6 |
| 7480 | else |
| 7481 | |
| 7482 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7483 | as_fn_append CFLAGS " -Wno-type-limits" |
| 7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7485 | /* end confdefs.h. */ |
| 7486 | |
| 7487 | int |
| 7488 | main () |
| 7489 | { |
| 7490 | |
| 7491 | ; |
| 7492 | return 0; |
| 7493 | } |
| 7494 | _ACEOF |
| 7495 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7496 | gl_cv_warn_c__Wno_type_limits=yes |
| 7497 | else |
| 7498 | gl_cv_warn_c__Wno_type_limits=no |
| 7499 | fi |
| 7500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7501 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7502 | |
| 7503 | fi |
| 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5 |
| 7505 | $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; } |
| 7506 | if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then : |
| 7507 | as_fn_append WARN_CFLAGS " -Wno-type-limits" |
| 7508 | fi |
| 7509 | |
| 7510 | # Too many warnings for now |
| 7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5 |
| 7512 | $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; } |
| 7513 | if test "${gl_cv_warn_c__Wno_switch+set}" = set; then : |
| 7514 | $as_echo_n "(cached) " >&6 |
| 7515 | else |
| 7516 | |
| 7517 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7518 | as_fn_append CFLAGS " -Wno-switch" |
| 7519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7520 | /* end confdefs.h. */ |
| 7521 | |
| 7522 | int |
| 7523 | main () |
| 7524 | { |
| 7525 | |
| 7526 | ; |
| 7527 | return 0; |
| 7528 | } |
| 7529 | _ACEOF |
| 7530 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7531 | gl_cv_warn_c__Wno_switch=yes |
| 7532 | else |
| 7533 | gl_cv_warn_c__Wno_switch=no |
| 7534 | fi |
| 7535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7536 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7537 | |
| 7538 | fi |
| 7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5 |
| 7540 | $as_echo "$gl_cv_warn_c__Wno_switch" >&6; } |
| 7541 | if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then : |
| 7542 | as_fn_append WARN_CFLAGS " -Wno-switch" |
| 7543 | fi |
| 7544 | |
| 7545 | # Too many warnings for now |
| 7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5 |
| 7547 | $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; } |
| 7548 | if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then : |
| 7549 | $as_echo_n "(cached) " >&6 |
| 7550 | else |
| 7551 | |
| 7552 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7553 | as_fn_append CFLAGS " -Wno-unused-parameter" |
| 7554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7555 | /* end confdefs.h. */ |
| 7556 | |
| 7557 | int |
| 7558 | main () |
| 7559 | { |
| 7560 | |
| 7561 | ; |
| 7562 | return 0; |
| 7563 | } |
| 7564 | _ACEOF |
| 7565 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7566 | gl_cv_warn_c__Wno_unused_parameter=yes |
| 7567 | else |
| 7568 | gl_cv_warn_c__Wno_unused_parameter=no |
| 7569 | fi |
| 7570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7571 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7572 | |
| 7573 | fi |
| 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5 |
| 7575 | $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; } |
| 7576 | if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then : |
| 7577 | as_fn_append WARN_CFLAGS " -Wno-unused-parameter" |
| 7578 | fi |
| 7579 | |
| 7580 | # Too many warnings for now |
| 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5 |
| 7582 | $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; } |
| 7583 | if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then : |
| 7584 | $as_echo_n "(cached) " >&6 |
| 7585 | else |
| 7586 | |
| 7587 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7588 | as_fn_append CFLAGS " -Wno-format-nonliteral" |
| 7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7590 | /* end confdefs.h. */ |
| 7591 | |
| 7592 | int |
| 7593 | main () |
| 7594 | { |
| 7595 | |
| 7596 | ; |
| 7597 | return 0; |
| 7598 | } |
| 7599 | _ACEOF |
| 7600 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7601 | gl_cv_warn_c__Wno_format_nonliteral=yes |
| 7602 | else |
| 7603 | gl_cv_warn_c__Wno_format_nonliteral=no |
| 7604 | fi |
| 7605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7606 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7607 | |
| 7608 | fi |
| 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5 |
| 7610 | $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; } |
| 7611 | if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then : |
| 7612 | as_fn_append WARN_CFLAGS " -Wno-format-nonliteral" |
| 7613 | fi |
| 7614 | |
| 7615 | |
| 7616 | |
| 7617 | # In spite of excluding -Wlogical-op above, it is enabled, as of |
| 7618 | # gcc 4.5.0 20090517. |
| 7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5 |
| 7620 | $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; } |
| 7621 | if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then : |
| 7622 | $as_echo_n "(cached) " >&6 |
| 7623 | else |
| 7624 | |
| 7625 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7626 | as_fn_append CFLAGS " -Wno-logical-op" |
| 7627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7628 | /* end confdefs.h. */ |
| 7629 | |
| 7630 | int |
| 7631 | main () |
| 7632 | { |
| 7633 | |
| 7634 | ; |
| 7635 | return 0; |
| 7636 | } |
| 7637 | _ACEOF |
| 7638 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7639 | gl_cv_warn_c__Wno_logical_op=yes |
| 7640 | else |
| 7641 | gl_cv_warn_c__Wno_logical_op=no |
| 7642 | fi |
| 7643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7644 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7645 | |
| 7646 | fi |
| 7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5 |
| 7648 | $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; } |
| 7649 | if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then : |
| 7650 | as_fn_append WARN_CFLAGS " -Wno-logical-op" |
| 7651 | fi |
| 7652 | |
| 7653 | |
| 7654 | |
| 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 |
| 7656 | $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } |
| 7657 | if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then : |
| 7658 | $as_echo_n "(cached) " >&6 |
| 7659 | else |
| 7660 | |
| 7661 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7662 | as_fn_append CFLAGS " -fdiagnostics-show-option" |
| 7663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7664 | /* end confdefs.h. */ |
| 7665 | |
| 7666 | int |
| 7667 | main () |
| 7668 | { |
| 7669 | |
| 7670 | ; |
| 7671 | return 0; |
| 7672 | } |
| 7673 | _ACEOF |
| 7674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7675 | gl_cv_warn_c__fdiagnostics_show_option=yes |
| 7676 | else |
| 7677 | gl_cv_warn_c__fdiagnostics_show_option=no |
| 7678 | fi |
| 7679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7680 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7681 | |
| 7682 | fi |
| 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 |
| 7684 | $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } |
| 7685 | if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then : |
| 7686 | as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" |
| 7687 | fi |
| 7688 | |
| 7689 | |
| 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5 |
| 7691 | $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; } |
| 7692 | if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then : |
| 7693 | $as_echo_n "(cached) " >&6 |
| 7694 | else |
| 7695 | |
| 7696 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7697 | as_fn_append CFLAGS " -funit-at-a-time" |
| 7698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7699 | /* end confdefs.h. */ |
| 7700 | |
| 7701 | int |
| 7702 | main () |
| 7703 | { |
| 7704 | |
| 7705 | ; |
| 7706 | return 0; |
| 7707 | } |
| 7708 | _ACEOF |
| 7709 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7710 | gl_cv_warn_c__funit_at_a_time=yes |
| 7711 | else |
| 7712 | gl_cv_warn_c__funit_at_a_time=no |
| 7713 | fi |
| 7714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7715 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7716 | |
| 7717 | fi |
| 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5 |
| 7719 | $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; } |
| 7720 | if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then : |
| 7721 | as_fn_append WARN_CFLAGS " -funit-at-a-time" |
| 7722 | fi |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | |
| 7727 | $as_echo "#define lint 1" >>confdefs.h |
| 7728 | |
| 7729 | |
| 7730 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| 7731 | |
| 7732 | |
| 7733 | $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h |
| 7734 | |
| 7735 | |
| 7736 | # We use a slightly smaller set of warning options for lib/. |
| 7737 | # Remove the following and save the result in GNULIB_WARN_CFLAGS. |
| 7738 | nw= |
| 7739 | nw="$nw -Wunused-macros" |
| 7740 | |
| 7741 | |
| 7742 | gl_warn_set= |
| 7743 | set x $WARN_CFLAGS; shift |
| 7744 | for gl_warn_item |
| 7745 | do |
| 7746 | case " $nw " in |
| 7747 | *" $gl_warn_item "*) |
| 7748 | ;; |
| 7749 | *) |
| 7750 | gl_warn_set="$gl_warn_set $gl_warn_item" |
| 7751 | ;; |
| 7752 | esac |
| 7753 | done |
| 7754 | GNULIB_WARN_CFLAGS=$gl_warn_set |
| 7755 | |
| 7756 | |
| 7757 | fi |
| 7758 | |
| 7759 | |
| 7760 | |
| 7761 | |
| 7762 | # Extract the first word of "install-info", so it can be a program name with args. |
| 7763 | set dummy install-info; ac_word=$2 |
| 7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7765 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7766 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
| 7767 | $as_echo_n "(cached) " >&6 |
| 7768 | else |
| 7769 | case $INSTALL_INFO in |
| 7770 | [\\/]* | ?:[\\/]*) |
| 7771 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 7772 | ;; |
| 7773 | *) |
| 7774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7775 | for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin |
| 7776 | do |
| 7777 | IFS=$as_save_IFS |
| 7778 | test -z "$as_dir" && as_dir=. |
| 7779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7781 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 7782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7783 | break 2 |
| 7784 | fi |
| 7785 | done |
| 7786 | done |
| 7787 | IFS=$as_save_IFS |
| 7788 | |
| 7789 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" |
| 7790 | ;; |
| 7791 | esac |
| 7792 | fi |
| 7793 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 7794 | if test -n "$INSTALL_INFO"; then |
| 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
| 7796 | $as_echo "$INSTALL_INFO" >&6; } |
| 7797 | else |
| 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7799 | $as_echo "no" >&6; } |
| 7800 | fi |
| 7801 | |
| 7802 | |
| 7803 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7804 | set dummy gzip; ac_word=$2 |
| 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7806 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7807 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then : |
| 7808 | $as_echo_n "(cached) " >&6 |
| 7809 | else |
| 7810 | case $GZIP_PROG in |
| 7811 | [\\/]* | ?:[\\/]*) |
| 7812 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
| 7813 | ;; |
| 7814 | *) |
| 7815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7816 | for as_dir in $PATH |
| 7817 | do |
| 7818 | IFS=$as_save_IFS |
| 7819 | test -z "$as_dir" && as_dir=. |
| 7820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7822 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 7823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7824 | break 2 |
| 7825 | fi |
| 7826 | done |
| 7827 | done |
| 7828 | IFS=$as_save_IFS |
| 7829 | |
| 7830 | ;; |
| 7831 | esac |
| 7832 | fi |
| 7833 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
| 7834 | if test -n "$GZIP_PROG"; then |
| 7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 |
| 7836 | $as_echo "$GZIP_PROG" >&6; } |
| 7837 | else |
| 7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7839 | $as_echo "no" >&6; } |
| 7840 | fi |
| 7841 | |
| 7842 | |
| 7843 | |
| 7844 | if test $opsys = gnu-linux; then |
| 7845 | # Extract the first word of "paxctl", so it can be a program name with args. |
| 7846 | set dummy paxctl; ac_word=$2 |
| 7847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7848 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7849 | if test "${ac_cv_path_PAXCTL+set}" = set; then : |
| 7850 | $as_echo_n "(cached) " >&6 |
| 7851 | else |
| 7852 | case $PAXCTL in |
| 7853 | [\\/]* | ?:[\\/]*) |
| 7854 | ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path. |
| 7855 | ;; |
| 7856 | *) |
| 7857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7858 | for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin |
| 7859 | do |
| 7860 | IFS=$as_save_IFS |
| 7861 | test -z "$as_dir" && as_dir=. |
| 7862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7863 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7864 | ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext" |
| 7865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7866 | break 2 |
| 7867 | fi |
| 7868 | done |
| 7869 | done |
| 7870 | IFS=$as_save_IFS |
| 7871 | |
| 7872 | ;; |
| 7873 | esac |
| 7874 | fi |
| 7875 | PAXCTL=$ac_cv_path_PAXCTL |
| 7876 | if test -n "$PAXCTL"; then |
| 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5 |
| 7878 | $as_echo "$PAXCTL" >&6; } |
| 7879 | else |
| 7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7881 | $as_echo "no" >&6; } |
| 7882 | fi |
| 7883 | |
| 7884 | |
| 7885 | if test "X$PAXCTL" != X; then |
| 7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5 |
| 7887 | $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; } |
| 7888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7889 | /* end confdefs.h. */ |
| 7890 | |
| 7891 | int |
| 7892 | main () |
| 7893 | { |
| 7894 | |
| 7895 | ; |
| 7896 | return 0; |
| 7897 | } |
| 7898 | _ACEOF |
| 7899 | if ac_fn_c_try_link "$LINENO"; then : |
| 7900 | if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7901 | $as_echo "yes" >&6; } |
| 7902 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7903 | $as_echo "no" >&6; }; PAXCTL=""; fi |
| 7904 | fi |
| 7905 | rm -f core conftest.err conftest.$ac_objext \ |
| 7906 | conftest$ac_exeext conftest.$ac_ext |
| 7907 | fi |
| 7908 | fi |
| 7909 | |
| 7910 | ## Need makeinfo >= 4.7 (?) to build the manuals. |
| 7911 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 7912 | set dummy makeinfo; ac_word=$2 |
| 7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7914 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7915 | if test "${ac_cv_path_MAKEINFO+set}" = set; then : |
| 7916 | $as_echo_n "(cached) " >&6 |
| 7917 | else |
| 7918 | case $MAKEINFO in |
| 7919 | [\\/]* | ?:[\\/]*) |
| 7920 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. |
| 7921 | ;; |
| 7922 | *) |
| 7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7924 | for as_dir in $PATH |
| 7925 | do |
| 7926 | IFS=$as_save_IFS |
| 7927 | test -z "$as_dir" && as_dir=. |
| 7928 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7930 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" |
| 7931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7932 | break 2 |
| 7933 | fi |
| 7934 | done |
| 7935 | done |
| 7936 | IFS=$as_save_IFS |
| 7937 | |
| 7938 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" |
| 7939 | ;; |
| 7940 | esac |
| 7941 | fi |
| 7942 | MAKEINFO=$ac_cv_path_MAKEINFO |
| 7943 | if test -n "$MAKEINFO"; then |
| 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
| 7945 | $as_echo "$MAKEINFO" >&6; } |
| 7946 | else |
| 7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7948 | $as_echo "no" >&6; } |
| 7949 | fi |
| 7950 | |
| 7951 | |
| 7952 | if test "$MAKEINFO" != "no" && \ |
| 7953 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then |
| 7954 | MAKEINFO=no |
| 7955 | fi |
| 7956 | |
| 7957 | ## Makeinfo is unusual. For a released Emacs, the manuals are |
| 7958 | ## pre-built, and not deleted by the normal clean rules. makeinfo is |
| 7959 | ## therefore in the category of "special tools" not normally required, which |
| 7960 | ## configure does not have to check for (eg autoconf itself). |
| 7961 | ## In a Bazaar checkout on the other hand, the manuals are not included. |
| 7962 | ## So makeinfo is a requirement to build from Bazaar, and configure |
| 7963 | ## should test for it as it does for any other build requirement. |
| 7964 | ## We use the presence of $srcdir/info/emacs to distinguish a release, |
| 7965 | ## with pre-built manuals, from a Bazaar checkout. |
| 7966 | HAVE_MAKEINFO=yes |
| 7967 | |
| 7968 | if test "$MAKEINFO" = "no"; then |
| 7969 | MAKEINFO=makeinfo |
| 7970 | if test "x${with_makeinfo}" = "xno"; then |
| 7971 | HAVE_MAKEINFO=no |
| 7972 | elif test ! -e $srcdir/info/emacs; then |
| 7973 | as_fn_error "You do not seem to have makeinfo >= 4.7, and your |
| 7974 | source tree does not seem to have pre-built manuals in the \`info' directory. |
| 7975 | Either install a suitable version of makeinfo, or re-run configure |
| 7976 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
| 7977 | fi |
| 7978 | fi |
| 7979 | |
| 7980 | |
| 7981 | INFO_EXT=.info |
| 7982 | INFO_OPTS=--no-split |
| 7983 | |
| 7984 | |
| 7985 | |
| 7986 | |
| 7987 | if test x$GCC = xyes; then |
| 7988 | test "x$GCC_LINK_TEST_OPTIONS" != x && \ |
| 7989 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" |
| 7990 | else |
| 7991 | test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \ |
| 7992 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" |
| 7993 | fi |
| 7994 | |
| 7995 | |
| 7996 | late_LDFLAGS=$LDFLAGS |
| 7997 | if test x$GCC = xyes; then |
| 7998 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
| 7999 | else |
| 8000 | LDFLAGS="$LDFLAGS -znocombreloc" |
| 8001 | fi |
| 8002 | |
| 8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 |
| 8004 | $as_echo_n "checking for -znocombreloc... " >&6; } |
| 8005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8006 | /* end confdefs.h. */ |
| 8007 | |
| 8008 | int |
| 8009 | main () |
| 8010 | { |
| 8011 | |
| 8012 | ; |
| 8013 | return 0; |
| 8014 | } |
| 8015 | _ACEOF |
| 8016 | if ac_fn_c_try_link "$LINENO"; then : |
| 8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8018 | $as_echo "yes" >&6; } |
| 8019 | else |
| 8020 | LDFLAGS=$late_LDFLAGS |
| 8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8022 | $as_echo "no" >&6; } |
| 8023 | fi |
| 8024 | rm -f core conftest.err conftest.$ac_objext \ |
| 8025 | conftest$ac_exeext conftest.$ac_ext |
| 8026 | |
| 8027 | |
| 8028 | test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no |
| 8029 | case "$opsys" in |
| 8030 | your-opsys-here) CANNOT_DUMP=yes ;; |
| 8031 | esac |
| 8032 | |
| 8033 | test "$CANNOT_DUMP" = "yes" && \ |
| 8034 | |
| 8035 | $as_echo "#define CANNOT_DUMP 1" >>confdefs.h |
| 8036 | |
| 8037 | |
| 8038 | |
| 8039 | |
| 8040 | |
| 8041 | UNEXEC_OBJ=unexelf.o |
| 8042 | case "$opsys" in |
| 8043 | # MSDOS uses unexcoff.o |
| 8044 | # MSWindows uses unexw32.o |
| 8045 | aix4-2) |
| 8046 | UNEXEC_OBJ=unexaix.o |
| 8047 | ;; |
| 8048 | cygwin) |
| 8049 | UNEXEC_OBJ=unexcw.o |
| 8050 | ;; |
| 8051 | darwin) |
| 8052 | UNEXEC_OBJ=unexmacosx.o |
| 8053 | ;; |
| 8054 | hpux10-20 | hpux11) |
| 8055 | UNEXEC_OBJ=unexhp9k800.o |
| 8056 | ;; |
| 8057 | sol2-10) |
| 8058 | # Use the Solaris dldump() function, called from unexsol.c, to dump |
| 8059 | # emacs, instead of the generic ELF dump code found in unexelf.c. |
| 8060 | # The resulting binary has a complete symbol table, and is better |
| 8061 | # for debugging and other observability tools (debuggers, pstack, etc). |
| 8062 | # |
| 8063 | # If you encounter a problem using dldump(), please consider sending |
| 8064 | # a message to the OpenSolaris tools-linking mailing list: |
| 8065 | # http://mail.opensolaris.org/mailman/listinfo/tools-linking |
| 8066 | # |
| 8067 | # It is likely that dldump() works with older Solaris too, but this has |
| 8068 | # not been tested, so for now this change is for Solaris 10 or newer. |
| 8069 | UNEXEC_OBJ=unexsol.o |
| 8070 | ;; |
| 8071 | esac |
| 8072 | |
| 8073 | LD_SWITCH_SYSTEM= |
| 8074 | case "$opsys" in |
| 8075 | freebsd) |
| 8076 | ## Let `ld' find image libs and similar things in /usr/local/lib. |
| 8077 | ## The system compiler, GCC, has apparently been modified to not |
| 8078 | ## look there, contrary to what a stock GCC would do. |
| 8079 | ### It's not our place to do this. See bug#10313#17. |
| 8080 | ### LD_SWITCH_SYSTEM=-L/usr/local/lib |
| 8081 | : |
| 8082 | ;; |
| 8083 | |
| 8084 | gnu-linux) |
| 8085 | ## cpp test was "ifdef __mips__", but presumably this is equivalent... |
| 8086 | case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac |
| 8087 | ;; |
| 8088 | |
| 8089 | netbsd) |
| 8090 | ### It's not our place to do this. See bug#10313#17. |
| 8091 | ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib" |
| 8092 | : |
| 8093 | ;; |
| 8094 | |
| 8095 | openbsd) |
| 8096 | ## Han Boetes <han@mijncomputer.nl> says this is necessary, |
| 8097 | ## otherwise Emacs dumps core on elf systems. |
| 8098 | LD_SWITCH_SYSTEM="-Z" |
| 8099 | ;; |
| 8100 | esac |
| 8101 | |
| 8102 | |
| 8103 | ac_link="$ac_link $LD_SWITCH_SYSTEM" |
| 8104 | |
| 8105 | ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH, |
| 8106 | ## which has not been defined yet. When this was handled with cpp, |
| 8107 | ## it was expanded to null when configure sourced the s/*.h file. |
| 8108 | ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles. |
| 8109 | ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS |
| 8110 | ## (or somesuch), but because it is supposed to go at the _front_ |
| 8111 | ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way. |
| 8112 | ## Compare with the gnu-linux case below, which added to the end |
| 8113 | ## of LD_SWITCH_SYSTEM, and so can instead go at the front of |
| 8114 | ## LD_SWITCH_SYSTEM_TEMACS. |
| 8115 | case "$opsys" in |
| 8116 | netbsd|openbsd) |
| 8117 | LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;; |
| 8118 | esac |
| 8119 | |
| 8120 | |
| 8121 | C_SWITCH_MACHINE= |
| 8122 | case $canonical in |
| 8123 | alpha*) |
| 8124 | ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" |
| 8125 | if test "x$ac_cv_have_decl___ELF__" = x""yes; then : |
| 8126 | |
| 8127 | fi |
| 8128 | |
| 8129 | if test "$ac_cv_have_decl___ELF__" = "yes"; then |
| 8130 | ## With ELF, make sure that all common symbols get allocated to in the |
| 8131 | ## data section. Otherwise, the dump of temacs may miss variables in |
| 8132 | ## the shared library that have been initialized. For example, with |
| 8133 | ## GNU libc, __malloc_initialized would normally be resolved to the |
| 8134 | ## shared library's .bss section, which is fatal. |
| 8135 | if test "x$GCC" = "xyes"; then |
| 8136 | C_SWITCH_MACHINE="-fno-common" |
| 8137 | else |
| 8138 | as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
| 8139 | fi |
| 8140 | else |
| 8141 | UNEXEC_OBJ=unexalpha.o |
| 8142 | fi |
| 8143 | ;; |
| 8144 | esac |
| 8145 | |
| 8146 | |
| 8147 | |
| 8148 | |
| 8149 | C_SWITCH_SYSTEM= |
| 8150 | ## Some programs in src produce warnings saying certain subprograms |
| 8151 | ## are too complex and need a MAXMEM value greater than 2000 for |
| 8152 | ## additional optimization. --nils@exp-math.uni-essen.de |
| 8153 | test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \ |
| 8154 | C_SWITCH_SYSTEM="-ma -qmaxmem=4000" |
| 8155 | ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems. |
| 8156 | ## It is redundant in glibc2, since we define _GNU_SOURCE. |
| 8157 | |
| 8158 | |
| 8159 | |
| 8160 | LIBS_SYSTEM= |
| 8161 | case "$opsys" in |
| 8162 | ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2. |
| 8163 | aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;; |
| 8164 | |
| 8165 | freebsd) LIBS_SYSTEM="-lutil" ;; |
| 8166 | |
| 8167 | hpux*) LIBS_SYSTEM="-l:libdld.sl" ;; |
| 8168 | |
| 8169 | sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;; |
| 8170 | |
| 8171 | ## Motif needs -lgen. |
| 8172 | unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;; |
| 8173 | esac |
| 8174 | |
| 8175 | |
| 8176 | |
| 8177 | ### Make sure subsequent tests use flags consistent with the build flags. |
| 8178 | |
| 8179 | if test x"${OVERRIDE_CPPFLAGS}" != x; then |
| 8180 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" |
| 8181 | else |
| 8182 | CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS" |
| 8183 | fi |
| 8184 | |
| 8185 | # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better. |
| 8186 | |
| 8187 | # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them. |
| 8188 | |
| 8189 | |
| 8190 | |
| 8191 | LIB_MATH=-lm |
| 8192 | LIB_STANDARD= |
| 8193 | START_FILES= |
| 8194 | SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'` |
| 8195 | |
| 8196 | case $opsys in |
| 8197 | cygwin ) |
| 8198 | LIB_MATH= |
| 8199 | START_FILES='pre-crt0.o' |
| 8200 | ;; |
| 8201 | darwin ) |
| 8202 | ## Adding -lm confuses the dynamic linker, so omit it. |
| 8203 | LIB_MATH= |
| 8204 | START_FILES='pre-crt0.o' |
| 8205 | ;; |
| 8206 | freebsd ) |
| 8207 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' |
| 8208 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' |
| 8209 | SYSTEM_TYPE=berkeley-unix |
| 8210 | ;; |
| 8211 | gnu-linux | gnu-kfreebsd ) |
| 8212 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' |
| 8213 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' |
| 8214 | ;; |
| 8215 | hpux10-20 | hpux11 ) |
| 8216 | LIB_STANDARD=-lc |
| 8217 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' |
| 8218 | ;; |
| 8219 | netbsd | openbsd ) |
| 8220 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' |
| 8221 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' |
| 8222 | SYSTEM_TYPE=berkeley-unix |
| 8223 | ;; |
| 8224 | |
| 8225 | sol2* | unixware ) |
| 8226 | SYSTEM_TYPE=usg-unix-v |
| 8227 | ;; |
| 8228 | |
| 8229 | esac |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | cat >>confdefs.h <<_ACEOF |
| 8235 | #define SYSTEM_TYPE "$SYSTEM_TYPE" |
| 8236 | _ACEOF |
| 8237 | |
| 8238 | |
| 8239 | crt_files= |
| 8240 | |
| 8241 | for file in x $LIB_STANDARD $START_FILES; do |
| 8242 | case "$file" in |
| 8243 | *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;; |
| 8244 | esac |
| 8245 | done |
| 8246 | |
| 8247 | if test "x$crt_files" != x; then |
| 8248 | |
| 8249 | ## If user specified a crt-dir, use that unconditionally. |
| 8250 | crt_gcc=no |
| 8251 | |
| 8252 | if test "X$CRT_DIR" = "X"; then |
| 8253 | |
| 8254 | CRT_DIR=/usr/lib # default |
| 8255 | |
| 8256 | case "$canonical" in |
| 8257 | x86_64-*-linux-gnu* | s390x-*-linux-gnu*) |
| 8258 | ## On x86-64 and s390x GNU/Linux distributions, the standard library |
| 8259 | ## can be in a variety of places. We only try /usr/lib64 and /usr/lib. |
| 8260 | ## For anything else (eg /usr/lib32), it is up the user to specify |
| 8261 | ## the location (bug#5655). |
| 8262 | ## Test for crtn.o, not just the directory, because sometimes the |
| 8263 | ## directory exists but does not have the relevant files (bug#1287). |
| 8264 | ## FIXME better to test for binary compatibility somehow. |
| 8265 | test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 |
| 8266 | ;; |
| 8267 | |
| 8268 | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; |
| 8269 | esac |
| 8270 | |
| 8271 | case "$opsys" in |
| 8272 | hpux10-20) CRT_DIR=/lib ;; |
| 8273 | esac |
| 8274 | |
| 8275 | test "x${GCC}" = xyes && crt_gcc=yes |
| 8276 | |
| 8277 | fi # CRT_DIR = "" |
| 8278 | |
| 8279 | crt_missing= |
| 8280 | |
| 8281 | for file in $crt_files; do |
| 8282 | |
| 8283 | ## If we're using gcc, try to determine it automatically by asking |
| 8284 | ## gcc. [If this doesn't work, CRT_DIR will remain at the |
| 8285 | ## system-dependent default from above.] |
| 8286 | if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then |
| 8287 | |
| 8288 | crt_file=`$CC --print-file-name=$file 2>/dev/null` |
| 8289 | case "$crt_file" in |
| 8290 | */*) |
| 8291 | CRT_DIR=`$as_dirname -- "$crt_file" || |
| 8292 | $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8293 | X"$crt_file" : 'X\(//\)[^/]' \| \ |
| 8294 | X"$crt_file" : 'X\(//\)$' \| \ |
| 8295 | X"$crt_file" : 'X\(/\)' \| . 2>/dev/null || |
| 8296 | $as_echo X"$crt_file" | |
| 8297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8298 | s//\1/ |
| 8299 | q |
| 8300 | } |
| 8301 | /^X\(\/\/\)[^/].*/{ |
| 8302 | s//\1/ |
| 8303 | q |
| 8304 | } |
| 8305 | /^X\(\/\/\)$/{ |
| 8306 | s//\1/ |
| 8307 | q |
| 8308 | } |
| 8309 | /^X\(\/\).*/{ |
| 8310 | s//\1/ |
| 8311 | q |
| 8312 | } |
| 8313 | s/.*/./; q'` |
| 8314 | ;; |
| 8315 | esac |
| 8316 | fi |
| 8317 | |
| 8318 | crt_gcc=no |
| 8319 | |
| 8320 | test -e $CRT_DIR/$file || crt_missing="$crt_missing $file" |
| 8321 | done # $crt_files |
| 8322 | |
| 8323 | test "x$crt_missing" = x || \ |
| 8324 | as_fn_error "Required file(s) not found:$crt_missing |
| 8325 | Try using the --with-crt-dir option." "$LINENO" 5 |
| 8326 | |
| 8327 | fi # crt_files != "" |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | case $opsys in |
| 8332 | netbsd | openbsd ) |
| 8333 | if test -f $CRT_DIR/crti.o; then |
| 8334 | |
| 8335 | test -f $CRT_DIR/crtn.o || \ |
| 8336 | as_fn_error "Required file not found: crtn.o" "$LINENO" 5 |
| 8337 | |
| 8338 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' |
| 8339 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' |
| 8340 | fi |
| 8341 | ;; |
| 8342 | esac |
| 8343 | |
| 8344 | |
| 8345 | pre_PKG_CONFIG_CFLAGS=$CFLAGS |
| 8346 | pre_PKG_CONFIG_LIBS=$LIBS |
| 8347 | |
| 8348 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8349 | set dummy pkg-config; ac_word=$2 |
| 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8351 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8352 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 8353 | $as_echo_n "(cached) " >&6 |
| 8354 | else |
| 8355 | case $PKG_CONFIG in |
| 8356 | [\\/]* | ?:[\\/]*) |
| 8357 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8358 | ;; |
| 8359 | *) |
| 8360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8361 | for as_dir in $PATH |
| 8362 | do |
| 8363 | IFS=$as_save_IFS |
| 8364 | test -z "$as_dir" && as_dir=. |
| 8365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8367 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8369 | break 2 |
| 8370 | fi |
| 8371 | done |
| 8372 | done |
| 8373 | IFS=$as_save_IFS |
| 8374 | |
| 8375 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8376 | ;; |
| 8377 | esac |
| 8378 | fi |
| 8379 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8380 | if test -n "$PKG_CONFIG"; then |
| 8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8382 | $as_echo "$PKG_CONFIG" >&6; } |
| 8383 | else |
| 8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8385 | $as_echo "no" >&6; } |
| 8386 | fi |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | if test "${with_sound}" != "no"; then |
| 8394 | # Sound support for GNU/Linux and the free BSDs. |
| 8395 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
| 8396 | do : |
| 8397 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8398 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8399 | eval as_val=\$$as_ac_Header |
| 8400 | if test "x$as_val" = x""yes; then : |
| 8401 | cat >>confdefs.h <<_ACEOF |
| 8402 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8403 | _ACEOF |
| 8404 | have_sound_header=yes |
| 8405 | fi |
| 8406 | |
| 8407 | done |
| 8408 | |
| 8409 | # Emulation library used on NetBSD. |
| 8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
| 8411 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
| 8412 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
| 8413 | $as_echo_n "(cached) " >&6 |
| 8414 | else |
| 8415 | ac_check_lib_save_LIBS=$LIBS |
| 8416 | LIBS="-lossaudio $LIBS" |
| 8417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8418 | /* end confdefs.h. */ |
| 8419 | |
| 8420 | /* Override any GCC internal prototype to avoid an error. |
| 8421 | Use char because int might match the return type of a GCC |
| 8422 | builtin and then its argument prototype would still apply. */ |
| 8423 | #ifdef __cplusplus |
| 8424 | extern "C" |
| 8425 | #endif |
| 8426 | char _oss_ioctl (); |
| 8427 | int |
| 8428 | main () |
| 8429 | { |
| 8430 | return _oss_ioctl (); |
| 8431 | ; |
| 8432 | return 0; |
| 8433 | } |
| 8434 | _ACEOF |
| 8435 | if ac_fn_c_try_link "$LINENO"; then : |
| 8436 | ac_cv_lib_ossaudio__oss_ioctl=yes |
| 8437 | else |
| 8438 | ac_cv_lib_ossaudio__oss_ioctl=no |
| 8439 | fi |
| 8440 | rm -f core conftest.err conftest.$ac_objext \ |
| 8441 | conftest$ac_exeext conftest.$ac_ext |
| 8442 | LIBS=$ac_check_lib_save_LIBS |
| 8443 | fi |
| 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 8445 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
| 8446 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
| 8447 | LIBSOUND=-lossaudio |
| 8448 | else |
| 8449 | LIBSOUND= |
| 8450 | fi |
| 8451 | |
| 8452 | |
| 8453 | |
| 8454 | ALSA_REQUIRED=1.0.0 |
| 8455 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" |
| 8456 | |
| 8457 | succeeded=no |
| 8458 | |
| 8459 | if test "$PKG_CONFIG" = "no" ; then |
| 8460 | HAVE_ALSA=no |
| 8461 | else |
| 8462 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 8463 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 |
| 8465 | $as_echo_n "checking for $ALSA_MODULES... " >&6; } |
| 8466 | |
| 8467 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 && |
| 8468 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` && |
| 8469 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then |
| 8470 | edit_cflags=" |
| 8471 | s,///*,/,g |
| 8472 | s/^/ / |
| 8473 | s/ -I/ $isystem/g |
| 8474 | s/^ // |
| 8475 | " |
| 8476 | ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"` |
| 8477 | ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'` |
| 8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5 |
| 8479 | $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; } |
| 8480 | succeeded=yes |
| 8481 | else |
| 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8483 | $as_echo "no" >&6; } |
| 8484 | ALSA_CFLAGS="" |
| 8485 | ALSA_LIBS="" |
| 8486 | ## If we have a custom action on failure, don't print errors, but |
| 8487 | ## do set a variable so people can do so. |
| 8488 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` |
| 8489 | |
| 8490 | fi |
| 8491 | |
| 8492 | |
| 8493 | |
| 8494 | else |
| 8495 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 8496 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 8497 | fi |
| 8498 | fi |
| 8499 | |
| 8500 | if test $succeeded = yes; then |
| 8501 | HAVE_ALSA=yes |
| 8502 | else |
| 8503 | HAVE_ALSA=no |
| 8504 | fi |
| 8505 | |
| 8506 | if test $HAVE_ALSA = yes; then |
| 8507 | SAVE_CFLAGS="$CFLAGS" |
| 8508 | SAVE_LIBS="$LIBS" |
| 8509 | CFLAGS="$ALSA_CFLAGS $CFLAGS" |
| 8510 | LIBS="$ALSA_LIBS $LIBS" |
| 8511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8512 | /* end confdefs.h. */ |
| 8513 | #include <asoundlib.h> |
| 8514 | int |
| 8515 | main () |
| 8516 | { |
| 8517 | snd_lib_error_set_handler (0); |
| 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
| 8522 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8523 | emacs_alsa_normal=yes |
| 8524 | else |
| 8525 | emacs_alsa_normal=no |
| 8526 | fi |
| 8527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8528 | if test "$emacs_alsa_normal" != yes; then |
| 8529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8530 | /* end confdefs.h. */ |
| 8531 | #include <alsa/asoundlib.h> |
| 8532 | int |
| 8533 | main () |
| 8534 | { |
| 8535 | snd_lib_error_set_handler (0); |
| 8536 | ; |
| 8537 | return 0; |
| 8538 | } |
| 8539 | _ACEOF |
| 8540 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8541 | emacs_alsa_subdir=yes |
| 8542 | else |
| 8543 | emacs_alsa_subdir=no |
| 8544 | fi |
| 8545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8546 | if test "$emacs_alsa_subdir" != yes; then |
| 8547 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
| 8548 | fi |
| 8549 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
| 8550 | fi |
| 8551 | |
| 8552 | CFLAGS="$SAVE_CFLAGS" |
| 8553 | LIBS="$SAVE_LIBS" |
| 8554 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
| 8555 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
| 8556 | |
| 8557 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
| 8558 | |
| 8559 | fi |
| 8560 | |
| 8561 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then |
| 8562 | case "$opsys" in |
| 8563 | gnu-linux|freebsd|netbsd) |
| 8564 | |
| 8565 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h |
| 8566 | |
| 8567 | ;; |
| 8568 | esac |
| 8569 | fi |
| 8570 | |
| 8571 | |
| 8572 | fi |
| 8573 | |
| 8574 | |
| 8575 | |
| 8576 | |
| 8577 | for ac_header in $ac_header_list |
| 8578 | do : |
| 8579 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8580 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8581 | " |
| 8582 | eval as_val=\$$as_ac_Header |
| 8583 | if test "x$as_val" = x""yes; then : |
| 8584 | cat >>confdefs.h <<_ACEOF |
| 8585 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8586 | _ACEOF |
| 8587 | |
| 8588 | fi |
| 8589 | |
| 8590 | done |
| 8591 | |
| 8592 | |
| 8593 | |
| 8594 | |
| 8595 | |
| 8596 | |
| 8597 | |
| 8598 | |
| 8599 | |
| 8600 | |
| 8601 | |
| 8602 | |
| 8603 | |
| 8604 | |
| 8605 | |
| 8606 | |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | |
| 8615 | |
| 8616 | |
| 8617 | |
| 8618 | |
| 8619 | |
| 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 |
| 8621 | $as_echo_n "checking if personality LINUX32 can be set... " >&6; } |
| 8622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8623 | /* end confdefs.h. */ |
| 8624 | #include <sys/personality.h> |
| 8625 | int |
| 8626 | main () |
| 8627 | { |
| 8628 | personality (PER_LINUX32) |
| 8629 | ; |
| 8630 | return 0; |
| 8631 | } |
| 8632 | _ACEOF |
| 8633 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8634 | emacs_cv_personality_linux32=yes |
| 8635 | else |
| 8636 | emacs_cv_personality_linux32=no |
| 8637 | fi |
| 8638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 |
| 8640 | $as_echo "$emacs_cv_personality_linux32" >&6; } |
| 8641 | |
| 8642 | if test $emacs_cv_personality_linux32 = yes; then |
| 8643 | |
| 8644 | $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h |
| 8645 | |
| 8646 | fi |
| 8647 | |
| 8648 | for ac_header in term.h |
| 8649 | do : |
| 8650 | ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" |
| 8651 | if test "x$ac_cv_header_term_h" = x""yes; then : |
| 8652 | cat >>confdefs.h <<_ACEOF |
| 8653 | #define HAVE_TERM_H 1 |
| 8654 | _ACEOF |
| 8655 | |
| 8656 | fi |
| 8657 | |
| 8658 | done |
| 8659 | |
| 8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 8661 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 8662 | if test "${ac_cv_header_time+set}" = set; then : |
| 8663 | $as_echo_n "(cached) " >&6 |
| 8664 | else |
| 8665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8666 | /* end confdefs.h. */ |
| 8667 | #include <sys/types.h> |
| 8668 | #include <sys/time.h> |
| 8669 | #include <time.h> |
| 8670 | |
| 8671 | int |
| 8672 | main () |
| 8673 | { |
| 8674 | if ((struct tm *) 0) |
| 8675 | return 0; |
| 8676 | ; |
| 8677 | return 0; |
| 8678 | } |
| 8679 | _ACEOF |
| 8680 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8681 | ac_cv_header_time=yes |
| 8682 | else |
| 8683 | ac_cv_header_time=no |
| 8684 | fi |
| 8685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8686 | fi |
| 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 8688 | $as_echo "$ac_cv_header_time" >&6; } |
| 8689 | if test $ac_cv_header_time = yes; then |
| 8690 | |
| 8691 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 8692 | |
| 8693 | fi |
| 8694 | |
| 8695 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" |
| 8696 | if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : |
| 8697 | ac_have_decl=1 |
| 8698 | else |
| 8699 | ac_have_decl=0 |
| 8700 | fi |
| 8701 | |
| 8702 | cat >>confdefs.h <<_ACEOF |
| 8703 | #define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
| 8704 | _ACEOF |
| 8705 | |
| 8706 | if test $ac_cv_have_decl_sys_siglist != yes; then |
| 8707 | # For Tru64, at least: |
| 8708 | ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" |
| 8709 | if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : |
| 8710 | ac_have_decl=1 |
| 8711 | else |
| 8712 | ac_have_decl=0 |
| 8713 | fi |
| 8714 | |
| 8715 | cat >>confdefs.h <<_ACEOF |
| 8716 | #define HAVE_DECL___SYS_SIGLIST $ac_have_decl |
| 8717 | _ACEOF |
| 8718 | |
| 8719 | if test $ac_cv_have_decl___sys_siglist = yes; then |
| 8720 | |
| 8721 | $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h |
| 8722 | |
| 8723 | fi |
| 8724 | fi |
| 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 8726 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 8727 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : |
| 8728 | $as_echo_n "(cached) " >&6 |
| 8729 | else |
| 8730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8731 | /* end confdefs.h. */ |
| 8732 | #include <sys/types.h> |
| 8733 | #include <sys/wait.h> |
| 8734 | #ifndef WEXITSTATUS |
| 8735 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 8736 | #endif |
| 8737 | #ifndef WIFEXITED |
| 8738 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 8739 | #endif |
| 8740 | |
| 8741 | int |
| 8742 | main () |
| 8743 | { |
| 8744 | int s; |
| 8745 | wait (&s); |
| 8746 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 8747 | ; |
| 8748 | return 0; |
| 8749 | } |
| 8750 | _ACEOF |
| 8751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8752 | ac_cv_header_sys_wait_h=yes |
| 8753 | else |
| 8754 | ac_cv_header_sys_wait_h=no |
| 8755 | fi |
| 8756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8757 | fi |
| 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 8759 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 8760 | if test $ac_cv_header_sys_wait_h = yes; then |
| 8761 | |
| 8762 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 8763 | |
| 8764 | fi |
| 8765 | |
| 8766 | |
| 8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 |
| 8768 | $as_echo_n "checking for speed_t... " >&6; } |
| 8769 | if test "${emacs_cv_speed_t+set}" = set; then : |
| 8770 | $as_echo_n "(cached) " >&6 |
| 8771 | else |
| 8772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8773 | /* end confdefs.h. */ |
| 8774 | #include <termios.h> |
| 8775 | int |
| 8776 | main () |
| 8777 | { |
| 8778 | speed_t x = 1; |
| 8779 | ; |
| 8780 | return 0; |
| 8781 | } |
| 8782 | _ACEOF |
| 8783 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8784 | emacs_cv_speed_t=yes |
| 8785 | else |
| 8786 | emacs_cv_speed_t=no |
| 8787 | fi |
| 8788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8789 | fi |
| 8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 |
| 8791 | $as_echo "$emacs_cv_speed_t" >&6; } |
| 8792 | if test $emacs_cv_speed_t = yes; then |
| 8793 | |
| 8794 | $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h |
| 8795 | |
| 8796 | fi |
| 8797 | |
| 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 |
| 8799 | $as_echo_n "checking for struct exception... " >&6; } |
| 8800 | if test "${emacs_cv_struct_exception+set}" = set; then : |
| 8801 | $as_echo_n "(cached) " >&6 |
| 8802 | else |
| 8803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8804 | /* end confdefs.h. */ |
| 8805 | #include <math.h> |
| 8806 | int |
| 8807 | main () |
| 8808 | { |
| 8809 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
| 8810 | ; |
| 8811 | return 0; |
| 8812 | } |
| 8813 | _ACEOF |
| 8814 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8815 | emacs_cv_struct_exception=yes |
| 8816 | else |
| 8817 | emacs_cv_struct_exception=no |
| 8818 | fi |
| 8819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8820 | fi |
| 8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 |
| 8822 | $as_echo "$emacs_cv_struct_exception" >&6; } |
| 8823 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
| 8824 | if test $emacs_cv_struct_exception != yes || test $opsys = darwin; then |
| 8825 | |
| 8826 | $as_echo "#define NO_MATHERR 1" >>confdefs.h |
| 8827 | |
| 8828 | fi |
| 8829 | |
| 8830 | |
| 8831 | |
| 8832 | |
| 8833 | for ac_header in net/if.h |
| 8834 | do : |
| 8835 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default |
| 8836 | #if HAVE_SYS_SOCKET_H |
| 8837 | #include <sys/socket.h> |
| 8838 | #endif |
| 8839 | " |
| 8840 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 8841 | cat >>confdefs.h <<_ACEOF |
| 8842 | #define HAVE_NET_IF_H 1 |
| 8843 | _ACEOF |
| 8844 | |
| 8845 | fi |
| 8846 | |
| 8847 | done |
| 8848 | |
| 8849 | for ac_header in ifaddrs.h |
| 8850 | do : |
| 8851 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default |
| 8852 | #if HAVE_SYS_SOCKET_H |
| 8853 | #include <sys/socket.h> |
| 8854 | #endif |
| 8855 | " |
| 8856 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 8857 | cat >>confdefs.h <<_ACEOF |
| 8858 | #define HAVE_IFADDRS_H 1 |
| 8859 | _ACEOF |
| 8860 | |
| 8861 | fi |
| 8862 | |
| 8863 | done |
| 8864 | |
| 8865 | for ac_header in net/if_dl.h |
| 8866 | do : |
| 8867 | ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default |
| 8868 | #if HAVE_SYS_SOCKET_H |
| 8869 | #include <sys/socket.h> |
| 8870 | #endif |
| 8871 | " |
| 8872 | if test "x$ac_cv_header_net_if_dl_h" = x""yes; then : |
| 8873 | cat >>confdefs.h <<_ACEOF |
| 8874 | #define HAVE_NET_IF_DL_H 1 |
| 8875 | _ACEOF |
| 8876 | |
| 8877 | fi |
| 8878 | |
| 8879 | done |
| 8880 | |
| 8881 | |
| 8882 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default |
| 8883 | #if HAVE_SYS_SOCKET_H |
| 8884 | #include <sys/socket.h> |
| 8885 | #endif |
| 8886 | #if HAVE_NET_IF_H |
| 8887 | #include <net/if.h> |
| 8888 | #endif |
| 8889 | " |
| 8890 | if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : |
| 8891 | |
| 8892 | cat >>confdefs.h <<_ACEOF |
| 8893 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 |
| 8894 | _ACEOF |
| 8895 | |
| 8896 | |
| 8897 | fi |
| 8898 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default |
| 8899 | #if HAVE_SYS_SOCKET_H |
| 8900 | #include <sys/socket.h> |
| 8901 | #endif |
| 8902 | #if HAVE_NET_IF_H |
| 8903 | #include <net/if.h> |
| 8904 | #endif |
| 8905 | " |
| 8906 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
| 8907 | |
| 8908 | cat >>confdefs.h <<_ACEOF |
| 8909 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 8910 | _ACEOF |
| 8911 | |
| 8912 | |
| 8913 | fi |
| 8914 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default |
| 8915 | #if HAVE_SYS_SOCKET_H |
| 8916 | #include <sys/socket.h> |
| 8917 | #endif |
| 8918 | #if HAVE_NET_IF_H |
| 8919 | #include <net/if.h> |
| 8920 | #endif |
| 8921 | " |
| 8922 | if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : |
| 8923 | |
| 8924 | cat >>confdefs.h <<_ACEOF |
| 8925 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 |
| 8926 | _ACEOF |
| 8927 | |
| 8928 | |
| 8929 | fi |
| 8930 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default |
| 8931 | #if HAVE_SYS_SOCKET_H |
| 8932 | #include <sys/socket.h> |
| 8933 | #endif |
| 8934 | #if HAVE_NET_IF_H |
| 8935 | #include <net/if.h> |
| 8936 | #endif |
| 8937 | " |
| 8938 | if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : |
| 8939 | |
| 8940 | cat >>confdefs.h <<_ACEOF |
| 8941 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 |
| 8942 | _ACEOF |
| 8943 | |
| 8944 | |
| 8945 | fi |
| 8946 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default |
| 8947 | #if HAVE_SYS_SOCKET_H |
| 8948 | #include <sys/socket.h> |
| 8949 | #endif |
| 8950 | #if HAVE_NET_IF_H |
| 8951 | #include <net/if.h> |
| 8952 | #endif |
| 8953 | " |
| 8954 | if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : |
| 8955 | |
| 8956 | cat >>confdefs.h <<_ACEOF |
| 8957 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 |
| 8958 | _ACEOF |
| 8959 | |
| 8960 | |
| 8961 | fi |
| 8962 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default |
| 8963 | #if HAVE_SYS_SOCKET_H |
| 8964 | #include <sys/socket.h> |
| 8965 | #endif |
| 8966 | #if HAVE_NET_IF_H |
| 8967 | #include <net/if.h> |
| 8968 | #endif |
| 8969 | " |
| 8970 | if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then : |
| 8971 | |
| 8972 | cat >>confdefs.h <<_ACEOF |
| 8973 | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1 |
| 8974 | _ACEOF |
| 8975 | |
| 8976 | |
| 8977 | fi |
| 8978 | |
| 8979 | |
| 8980 | |
| 8981 | |
| 8982 | DEPFLAGS= |
| 8983 | MKDEPDIR=":" |
| 8984 | deps_frag=deps.mk |
| 8985 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then |
| 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 |
| 8987 | $as_echo_n "checking whether we are using GNU Make... " >&6; } |
| 8988 | HAVE_GNU_MAKE=no |
| 8989 | testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'` |
| 8990 | if test "x$testval" != x; then |
| 8991 | HAVE_GNU_MAKE=yes |
| 8992 | else |
| 8993 | ac_enable_autodepend=no |
| 8994 | fi |
| 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 |
| 8996 | $as_echo "$HAVE_GNU_MAKE" >&6; } |
| 8997 | if test $HAVE_GNU_MAKE = yes; then |
| 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 |
| 8999 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } |
| 9000 | SAVE_CFLAGS="$CFLAGS" |
| 9001 | CFLAGS="$CFLAGS -MMD -MF deps.d -MP" |
| 9002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9003 | /* end confdefs.h. */ |
| 9004 | |
| 9005 | int |
| 9006 | main () |
| 9007 | { |
| 9008 | |
| 9009 | ; |
| 9010 | return 0; |
| 9011 | } |
| 9012 | _ACEOF |
| 9013 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9014 | |
| 9015 | else |
| 9016 | ac_enable_autodepend=no |
| 9017 | fi |
| 9018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9019 | CFLAGS="$SAVE_CFLAGS" |
| 9020 | test -f deps.d || ac_enable_autodepend=no |
| 9021 | rm -rf deps.d |
| 9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 |
| 9023 | $as_echo "$ac_enable_autodepend" >&6; } |
| 9024 | fi |
| 9025 | if test $ac_enable_autodepend = yes; then |
| 9026 | DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP' |
| 9027 | ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe. |
| 9028 | MKDEPDIR='${MKDIR_P} ${DEPDIR}' |
| 9029 | deps_frag=autodeps.mk |
| 9030 | fi |
| 9031 | fi |
| 9032 | deps_frag=$srcdir/src/$deps_frag |
| 9033 | |
| 9034 | |
| 9035 | |
| 9036 | |
| 9037 | |
| 9038 | lisp_frag=$srcdir/src/lisp.mk |
| 9039 | |
| 9040 | |
| 9041 | |
| 9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 |
| 9043 | $as_echo_n "checking for long file names... " >&6; } |
| 9044 | if test "${ac_cv_sys_long_file_names+set}" = set; then : |
| 9045 | $as_echo_n "(cached) " >&6 |
| 9046 | else |
| 9047 | ac_cv_sys_long_file_names=yes |
| 9048 | # Test for long file names in all the places we know might matter: |
| 9049 | # . the current directory, where building will happen |
| 9050 | # $prefix/lib where we will be installing things |
| 9051 | # $exec_prefix/lib likewise |
| 9052 | # $TMPDIR if set, where it might want to write temporary files |
| 9053 | # /tmp where it might want to write temporary files |
| 9054 | # /var/tmp likewise |
| 9055 | # /usr/tmp likewise |
| 9056 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
| 9057 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib |
| 9058 | # in the usual case where exec_prefix is '${prefix}'. |
| 9059 | case $ac_dir in #( |
| 9060 | . | /* | ?:[\\/]*) ;; #( |
| 9061 | *) continue;; |
| 9062 | esac |
| 9063 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. |
| 9064 | ac_xdir=$ac_dir/cf$$ |
| 9065 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
| 9066 | ac_tf1=$ac_xdir/conftest9012345 |
| 9067 | ac_tf2=$ac_xdir/conftest9012346 |
| 9068 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
| 9069 | ac_cv_sys_long_file_names=no |
| 9070 | rm -f -r "$ac_xdir" 2>/dev/null |
| 9071 | test $ac_cv_sys_long_file_names = no && break |
| 9072 | done |
| 9073 | fi |
| 9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 |
| 9075 | $as_echo "$ac_cv_sys_long_file_names" >&6; } |
| 9076 | if test $ac_cv_sys_long_file_names = yes; then |
| 9077 | |
| 9078 | $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h |
| 9079 | |
| 9080 | fi |
| 9081 | |
| 9082 | |
| 9083 | #### Choose a window system. |
| 9084 | |
| 9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 9086 | $as_echo_n "checking for X... " >&6; } |
| 9087 | |
| 9088 | |
| 9089 | # Check whether --with-x was given. |
| 9090 | if test "${with_x+set}" = set; then : |
| 9091 | withval=$with_x; |
| 9092 | fi |
| 9093 | |
| 9094 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 9095 | if test "x$with_x" = xno; then |
| 9096 | # The user explicitly disabled X. |
| 9097 | have_x=disabled |
| 9098 | else |
| 9099 | case $x_includes,$x_libraries in #( |
| 9100 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 9101 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| 9102 | $as_echo_n "(cached) " >&6 |
| 9103 | else |
| 9104 | # One or both of the vars are not set, and there is no cached value. |
| 9105 | ac_x_includes=no ac_x_libraries=no |
| 9106 | rm -f -r conftest.dir |
| 9107 | if mkdir conftest.dir; then |
| 9108 | cd conftest.dir |
| 9109 | cat >Imakefile <<'_ACEOF' |
| 9110 | incroot: |
| 9111 | @echo incroot='${INCROOT}' |
| 9112 | usrlibdir: |
| 9113 | @echo usrlibdir='${USRLIBDIR}' |
| 9114 | libdir: |
| 9115 | @echo libdir='${LIBDIR}' |
| 9116 | _ACEOF |
| 9117 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9118 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 9119 | for ac_var in incroot usrlibdir libdir; do |
| 9120 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 9121 | done |
| 9122 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 9123 | for ac_extension in a so sl dylib la dll; do |
| 9124 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 9125 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 9126 | ac_im_usrlibdir=$ac_im_libdir; break |
| 9127 | fi |
| 9128 | done |
| 9129 | # Screen out bogus values from the imake configuration. They are |
| 9130 | # bogus both because they are the default anyway, and because |
| 9131 | # using them would break gcc on systems where it needs fixed includes. |
| 9132 | case $ac_im_incroot in |
| 9133 | /usr/include) ac_x_includes= ;; |
| 9134 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 9135 | esac |
| 9136 | case $ac_im_usrlibdir in |
| 9137 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 9138 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 9139 | esac |
| 9140 | fi |
| 9141 | cd .. |
| 9142 | rm -f -r conftest.dir |
| 9143 | fi |
| 9144 | |
| 9145 | # Standard set of common directories for X headers. |
| 9146 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 9147 | ac_x_header_dirs=' |
| 9148 | /usr/X11/include |
| 9149 | /usr/X11R7/include |
| 9150 | /usr/X11R6/include |
| 9151 | /usr/X11R5/include |
| 9152 | /usr/X11R4/include |
| 9153 | |
| 9154 | /usr/include/X11 |
| 9155 | /usr/include/X11R7 |
| 9156 | /usr/include/X11R6 |
| 9157 | /usr/include/X11R5 |
| 9158 | /usr/include/X11R4 |
| 9159 | |
| 9160 | /usr/local/X11/include |
| 9161 | /usr/local/X11R7/include |
| 9162 | /usr/local/X11R6/include |
| 9163 | /usr/local/X11R5/include |
| 9164 | /usr/local/X11R4/include |
| 9165 | |
| 9166 | /usr/local/include/X11 |
| 9167 | /usr/local/include/X11R7 |
| 9168 | /usr/local/include/X11R6 |
| 9169 | /usr/local/include/X11R5 |
| 9170 | /usr/local/include/X11R4 |
| 9171 | |
| 9172 | /usr/X386/include |
| 9173 | /usr/x386/include |
| 9174 | /usr/XFree86/include/X11 |
| 9175 | |
| 9176 | /usr/include |
| 9177 | /usr/local/include |
| 9178 | /usr/unsupported/include |
| 9179 | /usr/athena/include |
| 9180 | /usr/local/x11r5/include |
| 9181 | /usr/lpp/Xamples/include |
| 9182 | |
| 9183 | /usr/openwin/include |
| 9184 | /usr/openwin/share/include' |
| 9185 | |
| 9186 | if test "$ac_x_includes" = no; then |
| 9187 | # Guess where to find include files, by looking for Xlib.h. |
| 9188 | # First, try using that file with no special directory specified. |
| 9189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9190 | /* end confdefs.h. */ |
| 9191 | #include <X11/Xlib.h> |
| 9192 | _ACEOF |
| 9193 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 9194 | # We can compile using X headers with no special include directory. |
| 9195 | ac_x_includes= |
| 9196 | else |
| 9197 | for ac_dir in $ac_x_header_dirs; do |
| 9198 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 9199 | ac_x_includes=$ac_dir |
| 9200 | break |
| 9201 | fi |
| 9202 | done |
| 9203 | fi |
| 9204 | rm -f conftest.err conftest.$ac_ext |
| 9205 | fi # $ac_x_includes = no |
| 9206 | |
| 9207 | if test "$ac_x_libraries" = no; then |
| 9208 | # Check for the libraries. |
| 9209 | # See if we find them without any special options. |
| 9210 | # Don't add to $LIBS permanently. |
| 9211 | ac_save_LIBS=$LIBS |
| 9212 | LIBS="-lX11 $LIBS" |
| 9213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9214 | /* end confdefs.h. */ |
| 9215 | #include <X11/Xlib.h> |
| 9216 | int |
| 9217 | main () |
| 9218 | { |
| 9219 | XrmInitialize () |
| 9220 | ; |
| 9221 | return 0; |
| 9222 | } |
| 9223 | _ACEOF |
| 9224 | if ac_fn_c_try_link "$LINENO"; then : |
| 9225 | LIBS=$ac_save_LIBS |
| 9226 | # We can link X programs with no special library path. |
| 9227 | ac_x_libraries= |
| 9228 | else |
| 9229 | LIBS=$ac_save_LIBS |
| 9230 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 9231 | do |
| 9232 | # Don't even attempt the hair of trying to link an X program! |
| 9233 | for ac_extension in a so sl dylib la dll; do |
| 9234 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 9235 | ac_x_libraries=$ac_dir |
| 9236 | break 2 |
| 9237 | fi |
| 9238 | done |
| 9239 | done |
| 9240 | fi |
| 9241 | rm -f core conftest.err conftest.$ac_objext \ |
| 9242 | conftest$ac_exeext conftest.$ac_ext |
| 9243 | fi # $ac_x_libraries = no |
| 9244 | |
| 9245 | case $ac_x_includes,$ac_x_libraries in #( |
| 9246 | no,* | *,no | *\'*) |
| 9247 | # Didn't find X, or a directory has "'" in its name. |
| 9248 | ac_cv_have_x="have_x=no";; #( |
| 9249 | *) |
| 9250 | # Record where we found X for the cache. |
| 9251 | ac_cv_have_x="have_x=yes\ |
| 9252 | ac_x_includes='$ac_x_includes'\ |
| 9253 | ac_x_libraries='$ac_x_libraries'" |
| 9254 | esac |
| 9255 | fi |
| 9256 | ;; #( |
| 9257 | *) have_x=yes;; |
| 9258 | esac |
| 9259 | eval "$ac_cv_have_x" |
| 9260 | fi # $with_x != no |
| 9261 | |
| 9262 | if test "$have_x" != yes; then |
| 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 9264 | $as_echo "$have_x" >&6; } |
| 9265 | no_x=yes |
| 9266 | else |
| 9267 | # If each of the values was on the command line, it overrides each guess. |
| 9268 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 9269 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 9270 | # Update the cache value to reflect the command line values. |
| 9271 | ac_cv_have_x="have_x=yes\ |
| 9272 | ac_x_includes='$x_includes'\ |
| 9273 | ac_x_libraries='$x_libraries'" |
| 9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 9275 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 9276 | fi |
| 9277 | |
| 9278 | if test "$no_x" = yes; then |
| 9279 | window_system=none |
| 9280 | else |
| 9281 | window_system=x11 |
| 9282 | fi |
| 9283 | |
| 9284 | LD_SWITCH_X_SITE_RPATH= |
| 9285 | if test "${x_libraries}" != NONE; then |
| 9286 | if test -n "${x_libraries}"; then |
| 9287 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
| 9288 | LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"` |
| 9289 | fi |
| 9290 | x_default_search_path="" |
| 9291 | x_search_path=${x_libraries} |
| 9292 | if test -z "${x_search_path}"; then |
| 9293 | x_search_path=/usr/lib |
| 9294 | fi |
| 9295 | for x_library in `echo ${x_search_path}: | \ |
| 9296 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do |
| 9297 | x_search_path="\ |
| 9298 | ${x_library}/X11/%L/%T/%N%C%S:\ |
| 9299 | ${x_library}/X11/%l/%T/%N%C%S:\ |
| 9300 | ${x_library}/X11/%T/%N%C%S:\ |
| 9301 | ${x_library}/X11/%L/%T/%N%S:\ |
| 9302 | ${x_library}/X11/%l/%T/%N%S:\ |
| 9303 | ${x_library}/X11/%T/%N%S" |
| 9304 | if test x"${x_default_search_path}" = x; then |
| 9305 | x_default_search_path=${x_search_path} |
| 9306 | else |
| 9307 | x_default_search_path="${x_search_path}:${x_default_search_path}" |
| 9308 | fi |
| 9309 | done |
| 9310 | fi |
| 9311 | |
| 9312 | |
| 9313 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
| 9314 | C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"` |
| 9315 | fi |
| 9316 | |
| 9317 | if test x"${x_includes}" = x; then |
| 9318 | bitmapdir=/usr/include/X11/bitmaps |
| 9319 | else |
| 9320 | # accumulate include directories that have X11 bitmap subdirectories |
| 9321 | bmd_acc="dummyval" |
| 9322 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do |
| 9323 | if test -d "${bmd}/X11/bitmaps"; then |
| 9324 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" |
| 9325 | fi |
| 9326 | if test -d "${bmd}/bitmaps"; then |
| 9327 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
| 9328 | fi |
| 9329 | done |
| 9330 | if test ${bmd_acc} != "dummyval"; then |
| 9331 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` |
| 9332 | fi |
| 9333 | fi |
| 9334 | |
| 9335 | HAVE_NS=no |
| 9336 | NS_IMPL_COCOA=no |
| 9337 | NS_IMPL_GNUSTEP=no |
| 9338 | tmp_CPPFLAGS="$CPPFLAGS" |
| 9339 | tmp_CFLAGS="$CFLAGS" |
| 9340 | CPPFLAGS="$CPPFLAGS -x objective-c" |
| 9341 | CFLAGS="$CFLAGS -x objective-c" |
| 9342 | TEMACS_LDFLAGS2="\${LDFLAGS}" |
| 9343 | GNU_OBJC_CFLAGS= |
| 9344 | if test "${with_ns}" != no; then |
| 9345 | if test "${opsys}" = darwin; then |
| 9346 | NS_IMPL_COCOA=yes |
| 9347 | ns_appdir=`pwd`/nextstep/Emacs.app |
| 9348 | ns_appbindir=${ns_appdir}/Contents/MacOS |
| 9349 | ns_appresdir=${ns_appdir}/Contents/Resources |
| 9350 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base |
| 9351 | elif test -f $GNUSTEP_CONFIG_FILE; then |
| 9352 | NS_IMPL_GNUSTEP=yes |
| 9353 | ns_appdir=`pwd`/nextstep/Emacs.app |
| 9354 | ns_appbindir=${ns_appdir} |
| 9355 | ns_appresdir=${ns_appdir}/Resources |
| 9356 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base |
| 9357 | GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)" |
| 9358 | GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" |
| 9359 | GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" |
| 9360 | GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)" |
| 9361 | test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \ |
| 9362 | GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}" |
| 9363 | test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \ |
| 9364 | GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}" |
| 9365 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9366 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9367 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" |
| 9368 | LIB_STANDARD= |
| 9369 | START_FILES= |
| 9370 | TEMACS_LDFLAGS2= |
| 9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 |
| 9372 | $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } |
| 9373 | if test "${emacs_cv_objc_exceptions+set}" = set; then : |
| 9374 | $as_echo_n "(cached) " >&6 |
| 9375 | else |
| 9376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9377 | /* end confdefs.h. */ |
| 9378 | #include <GNUstepBase/GSConfig.h> |
| 9379 | int |
| 9380 | main () |
| 9381 | { |
| 9382 | #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0 |
| 9383 | 1; |
| 9384 | #else |
| 9385 | fail; |
| 9386 | #endif |
| 9387 | ; |
| 9388 | return 0; |
| 9389 | } |
| 9390 | _ACEOF |
| 9391 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9392 | emacs_cv_objc_exceptions=yes |
| 9393 | else |
| 9394 | emacs_cv_objc_exceptions=no |
| 9395 | fi |
| 9396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9397 | fi |
| 9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5 |
| 9399 | $as_echo "$emacs_cv_objc_exceptions" >&6; } |
| 9400 | if test $emacs_cv_objc_exceptions = yes; then |
| 9401 | |
| 9402 | $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h |
| 9403 | |
| 9404 | GNU_OBJC_CFLAGS="-fobjc-exceptions" |
| 9405 | fi |
| 9406 | fi |
| 9407 | |
| 9408 | CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS" |
| 9409 | |
| 9410 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" |
| 9411 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
| 9412 | HAVE_NS=yes |
| 9413 | else |
| 9414 | as_fn_error "\`--with-ns' was specified, but the include |
| 9415 | files are missing or cannot be compiled." "$LINENO" 5 |
| 9416 | fi |
| 9417 | |
| 9418 | |
| 9419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9420 | /* end confdefs.h. */ |
| 9421 | #include <Foundation/NSObjCRuntime.h> |
| 9422 | int |
| 9423 | main () |
| 9424 | { |
| 9425 | NSInteger i; |
| 9426 | ; |
| 9427 | return 0; |
| 9428 | } |
| 9429 | _ACEOF |
| 9430 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9431 | ns_have_nsinteger=yes |
| 9432 | else |
| 9433 | ns_have_nsinteger=no |
| 9434 | fi |
| 9435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9436 | if test $ns_have_nsinteger = yes; then |
| 9437 | |
| 9438 | $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h |
| 9439 | |
| 9440 | fi |
| 9441 | fi |
| 9442 | |
| 9443 | |
| 9444 | INSTALL_ARCH_INDEP_EXTRA=install-etc |
| 9445 | ns_self_contained=no |
| 9446 | ns_frag=/dev/null |
| 9447 | NS_OBJ= |
| 9448 | NS_OBJC_OBJ= |
| 9449 | if test "${HAVE_NS}" = yes; then |
| 9450 | if test "$with_toolkit_scroll_bars" = "no"; then |
| 9451 | as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5 |
| 9452 | fi |
| 9453 | |
| 9454 | window_system=nextstep |
| 9455 | with_xft=no |
| 9456 | # set up packaging dirs |
| 9457 | if test "${EN_NS_SELF_CONTAINED}" = yes; then |
| 9458 | ns_self_contained=yes |
| 9459 | prefix=${ns_appresdir} |
| 9460 | exec_prefix=${ns_appbindir} |
| 9461 | libexecdir="\${ns_appbindir}/libexec" |
| 9462 | archlibdir="\${ns_appbindir}/libexec" |
| 9463 | docdir="\${ns_appresdir}/etc" |
| 9464 | etcdir="\${ns_appresdir}/etc" |
| 9465 | infodir="\${ns_appresdir}/info" |
| 9466 | mandir="\${ns_appresdir}/man" |
| 9467 | lispdir="\${ns_appresdir}/lisp" |
| 9468 | leimdir="\${ns_appresdir}/leim" |
| 9469 | INSTALL_ARCH_INDEP_EXTRA= |
| 9470 | fi |
| 9471 | ns_frag=$srcdir/src/ns.mk |
| 9472 | NS_OBJ="fontset.o fringe.o image.o" |
| 9473 | NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" |
| 9474 | fi |
| 9475 | CFLAGS="$tmp_CFLAGS" |
| 9476 | CPPFLAGS="$tmp_CPPFLAGS" |
| 9477 | |
| 9478 | |
| 9479 | |
| 9480 | |
| 9481 | |
| 9482 | |
| 9483 | |
| 9484 | case "${window_system}" in |
| 9485 | x11 ) |
| 9486 | HAVE_X_WINDOWS=yes |
| 9487 | HAVE_X11=yes |
| 9488 | case "${with_x_toolkit}" in |
| 9489 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; |
| 9490 | motif ) USE_X_TOOLKIT=MOTIF ;; |
| 9491 | gtk ) with_gtk=yes |
| 9492 | USE_X_TOOLKIT=none ;; |
| 9493 | gtk3 ) with_gtk3=yes |
| 9494 | USE_X_TOOLKIT=none ;; |
| 9495 | no ) USE_X_TOOLKIT=none ;; |
| 9496 | * ) USE_X_TOOLKIT=maybe ;; |
| 9497 | esac |
| 9498 | ;; |
| 9499 | nextstep | none ) |
| 9500 | HAVE_X_WINDOWS=no |
| 9501 | HAVE_X11=no |
| 9502 | USE_X_TOOLKIT=none |
| 9503 | ;; |
| 9504 | esac |
| 9505 | |
| 9506 | if test "$window_system" = none && test "X$with_x" != "Xno"; then |
| 9507 | # Extract the first word of "X", so it can be a program name with args. |
| 9508 | set dummy X; ac_word=$2 |
| 9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9510 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9511 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : |
| 9512 | $as_echo_n "(cached) " >&6 |
| 9513 | else |
| 9514 | if test -n "$HAVE_XSERVER"; then |
| 9515 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. |
| 9516 | else |
| 9517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9518 | for as_dir in $PATH |
| 9519 | do |
| 9520 | IFS=$as_save_IFS |
| 9521 | test -z "$as_dir" && as_dir=. |
| 9522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9524 | ac_cv_prog_HAVE_XSERVER="true" |
| 9525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9526 | break 2 |
| 9527 | fi |
| 9528 | done |
| 9529 | done |
| 9530 | IFS=$as_save_IFS |
| 9531 | |
| 9532 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" |
| 9533 | fi |
| 9534 | fi |
| 9535 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER |
| 9536 | if test -n "$HAVE_XSERVER"; then |
| 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 |
| 9538 | $as_echo "$HAVE_XSERVER" >&6; } |
| 9539 | else |
| 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9541 | $as_echo "no" >&6; } |
| 9542 | fi |
| 9543 | |
| 9544 | |
| 9545 | if test "$HAVE_XSERVER" = true || |
| 9546 | test -n "$DISPLAY" || |
| 9547 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
| 9548 | as_fn_error "You seem to be running X, but no X development libraries |
| 9549 | were found. You should install the relevant development files for X |
| 9550 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
| 9551 | sure you have development files for image handling, i.e. |
| 9552 | tiff, gif, jpeg, png and xpm. |
| 9553 | If you are sure you want Emacs compiled without X window support, pass |
| 9554 | --without-x |
| 9555 | to configure." "$LINENO" 5 |
| 9556 | fi |
| 9557 | fi |
| 9558 | |
| 9559 | ### If we're using X11, we should use the X menu package. |
| 9560 | HAVE_MENUS=no |
| 9561 | case ${HAVE_X11} in |
| 9562 | yes ) HAVE_MENUS=yes ;; |
| 9563 | esac |
| 9564 | |
| 9565 | # Does the opsystem file prohibit the use of the GNU malloc? |
| 9566 | # Assume not, until told otherwise. |
| 9567 | GNU_MALLOC=yes |
| 9568 | |
| 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5 |
| 9570 | $as_echo_n "checking whether malloc is Doug Lea style... " >&6; } |
| 9571 | if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then : |
| 9572 | $as_echo_n "(cached) " >&6 |
| 9573 | else |
| 9574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9575 | /* end confdefs.h. */ |
| 9576 | #include <malloc.h> |
| 9577 | static void hook (void) {} |
| 9578 | int |
| 9579 | main () |
| 9580 | { |
| 9581 | malloc_set_state (malloc_get_state ()); |
| 9582 | __after_morecore_hook = hook; |
| 9583 | __malloc_initialize_hook = hook; |
| 9584 | ; |
| 9585 | return 0; |
| 9586 | } |
| 9587 | _ACEOF |
| 9588 | if ac_fn_c_try_link "$LINENO"; then : |
| 9589 | emacs_cv_var_doug_lea_malloc=yes |
| 9590 | else |
| 9591 | emacs_cv_var_doug_lea_malloc=no |
| 9592 | fi |
| 9593 | rm -f core conftest.err conftest.$ac_objext \ |
| 9594 | conftest$ac_exeext conftest.$ac_ext |
| 9595 | fi |
| 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5 |
| 9597 | $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; } |
| 9598 | doug_lea_malloc=$emacs_cv_var_doug_lea_malloc |
| 9599 | |
| 9600 | |
| 9601 | system_malloc=no |
| 9602 | case "$opsys" in |
| 9603 | ## darwin ld insists on the use of malloc routines in the System framework. |
| 9604 | darwin|sol2-10) system_malloc=yes ;; |
| 9605 | esac |
| 9606 | |
| 9607 | if test "${system_malloc}" = "yes"; then |
| 9608 | |
| 9609 | $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h |
| 9610 | |
| 9611 | GNU_MALLOC=no |
| 9612 | GNU_MALLOC_reason=" |
| 9613 | (The GNU allocators don't work with this system configuration.)" |
| 9614 | GMALLOC_OBJ= |
| 9615 | VMLIMIT_OBJ= |
| 9616 | else |
| 9617 | test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o |
| 9618 | VMLIMIT_OBJ=vm-limit.o |
| 9619 | fi |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | if test "$doug_lea_malloc" = "yes" ; then |
| 9624 | if test "$GNU_MALLOC" = yes ; then |
| 9625 | GNU_MALLOC_reason=" |
| 9626 | (Using Doug Lea's new malloc from the GNU C Library.)" |
| 9627 | fi |
| 9628 | |
| 9629 | $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h |
| 9630 | |
| 9631 | |
| 9632 | ## Use mmap directly for allocating larger buffers. |
| 9633 | ## FIXME this comes from src/s/{gnu,gnu-linux}.h: |
| 9634 | ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif |
| 9635 | ## Does the AC_FUNC_MMAP test below make this check unnecessary? |
| 9636 | case "$opsys" in |
| 9637 | gnu*) REL_ALLOC=no ;; |
| 9638 | esac |
| 9639 | fi |
| 9640 | |
| 9641 | if test x"${REL_ALLOC}" = x; then |
| 9642 | REL_ALLOC=${GNU_MALLOC} |
| 9643 | fi |
| 9644 | |
| 9645 | use_mmap_for_buffers=no |
| 9646 | case "$opsys" in |
| 9647 | cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;; |
| 9648 | esac |
| 9649 | |
| 9650 | |
| 9651 | |
| 9652 | |
| 9653 | |
| 9654 | |
| 9655 | |
| 9656 | |
| 9657 | for ac_func in getpagesize |
| 9658 | do : |
| 9659 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 9660 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| 9661 | cat >>confdefs.h <<_ACEOF |
| 9662 | #define HAVE_GETPAGESIZE 1 |
| 9663 | _ACEOF |
| 9664 | |
| 9665 | fi |
| 9666 | done |
| 9667 | |
| 9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| 9669 | $as_echo_n "checking for working mmap... " >&6; } |
| 9670 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
| 9671 | $as_echo_n "(cached) " >&6 |
| 9672 | else |
| 9673 | if test "$cross_compiling" = yes; then : |
| 9674 | ac_cv_func_mmap_fixed_mapped=no |
| 9675 | else |
| 9676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9677 | /* end confdefs.h. */ |
| 9678 | $ac_includes_default |
| 9679 | /* malloc might have been renamed as rpl_malloc. */ |
| 9680 | #undef malloc |
| 9681 | |
| 9682 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 9683 | Here is a matrix of mmap possibilities: |
| 9684 | mmap private not fixed |
| 9685 | mmap private fixed at somewhere currently unmapped |
| 9686 | mmap private fixed at somewhere already mapped |
| 9687 | mmap shared not fixed |
| 9688 | mmap shared fixed at somewhere currently unmapped |
| 9689 | mmap shared fixed at somewhere already mapped |
| 9690 | For private mappings, we should verify that changes cannot be read() |
| 9691 | back from the file, nor mmap's back from the file at a different |
| 9692 | address. (There have been systems where private was not correctly |
| 9693 | implemented like the infamous i386 svr4.0, and systems where the |
| 9694 | VM page cache was not coherent with the file system buffer cache |
| 9695 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 9696 | For shared mappings, we should conversely verify that changes get |
| 9697 | propagated back to all the places they're supposed to be. |
| 9698 | |
| 9699 | Grep wants private fixed already mapped. |
| 9700 | The main things grep needs to know about mmap are: |
| 9701 | * does it exist and is it safe to write into the mmap'd area |
| 9702 | * how to use it (BSD variants) */ |
| 9703 | |
| 9704 | #include <fcntl.h> |
| 9705 | #include <sys/mman.h> |
| 9706 | |
| 9707 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 9708 | char *malloc (); |
| 9709 | #endif |
| 9710 | |
| 9711 | /* This mess was copied from the GNU getpagesize.h. */ |
| 9712 | #ifndef HAVE_GETPAGESIZE |
| 9713 | # ifdef _SC_PAGESIZE |
| 9714 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 9715 | # else /* no _SC_PAGESIZE */ |
| 9716 | # ifdef HAVE_SYS_PARAM_H |
| 9717 | # include <sys/param.h> |
| 9718 | # ifdef EXEC_PAGESIZE |
| 9719 | # define getpagesize() EXEC_PAGESIZE |
| 9720 | # else /* no EXEC_PAGESIZE */ |
| 9721 | # ifdef NBPG |
| 9722 | # define getpagesize() NBPG * CLSIZE |
| 9723 | # ifndef CLSIZE |
| 9724 | # define CLSIZE 1 |
| 9725 | # endif /* no CLSIZE */ |
| 9726 | # else /* no NBPG */ |
| 9727 | # ifdef NBPC |
| 9728 | # define getpagesize() NBPC |
| 9729 | # else /* no NBPC */ |
| 9730 | # ifdef PAGESIZE |
| 9731 | # define getpagesize() PAGESIZE |
| 9732 | # endif /* PAGESIZE */ |
| 9733 | # endif /* no NBPC */ |
| 9734 | # endif /* no NBPG */ |
| 9735 | # endif /* no EXEC_PAGESIZE */ |
| 9736 | # else /* no HAVE_SYS_PARAM_H */ |
| 9737 | # define getpagesize() 8192 /* punt totally */ |
| 9738 | # endif /* no HAVE_SYS_PARAM_H */ |
| 9739 | # endif /* no _SC_PAGESIZE */ |
| 9740 | |
| 9741 | #endif /* no HAVE_GETPAGESIZE */ |
| 9742 | |
| 9743 | int |
| 9744 | main () |
| 9745 | { |
| 9746 | char *data, *data2, *data3; |
| 9747 | const char *cdata2; |
| 9748 | int i, pagesize; |
| 9749 | int fd, fd2; |
| 9750 | |
| 9751 | pagesize = getpagesize (); |
| 9752 | |
| 9753 | /* First, make a file with some known garbage in it. */ |
| 9754 | data = (char *) malloc (pagesize); |
| 9755 | if (!data) |
| 9756 | return 1; |
| 9757 | for (i = 0; i < pagesize; ++i) |
| 9758 | *(data + i) = rand (); |
| 9759 | umask (0); |
| 9760 | fd = creat ("conftest.mmap", 0600); |
| 9761 | if (fd < 0) |
| 9762 | return 2; |
| 9763 | if (write (fd, data, pagesize) != pagesize) |
| 9764 | return 3; |
| 9765 | close (fd); |
| 9766 | |
| 9767 | /* Next, check that the tail of a page is zero-filled. File must have |
| 9768 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 9769 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 9770 | if (fd2 < 0) |
| 9771 | return 4; |
| 9772 | cdata2 = ""; |
| 9773 | if (write (fd2, cdata2, 1) != 1) |
| 9774 | return 5; |
| 9775 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 9776 | if (data2 == MAP_FAILED) |
| 9777 | return 6; |
| 9778 | for (i = 0; i < pagesize; ++i) |
| 9779 | if (*(data2 + i)) |
| 9780 | return 7; |
| 9781 | close (fd2); |
| 9782 | if (munmap (data2, pagesize)) |
| 9783 | return 8; |
| 9784 | |
| 9785 | /* Next, try to mmap the file at a fixed address which already has |
| 9786 | something else allocated at it. If we can, also make sure that |
| 9787 | we see the same garbage. */ |
| 9788 | fd = open ("conftest.mmap", O_RDWR); |
| 9789 | if (fd < 0) |
| 9790 | return 9; |
| 9791 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 9792 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 9793 | return 10; |
| 9794 | for (i = 0; i < pagesize; ++i) |
| 9795 | if (*(data + i) != *(data2 + i)) |
| 9796 | return 11; |
| 9797 | |
| 9798 | /* Finally, make sure that changes to the mapped area do not |
| 9799 | percolate back to the file as seen by read(). (This is a bug on |
| 9800 | some variants of i386 svr4.0.) */ |
| 9801 | for (i = 0; i < pagesize; ++i) |
| 9802 | *(data2 + i) = *(data2 + i) + 1; |
| 9803 | data3 = (char *) malloc (pagesize); |
| 9804 | if (!data3) |
| 9805 | return 12; |
| 9806 | if (read (fd, data3, pagesize) != pagesize) |
| 9807 | return 13; |
| 9808 | for (i = 0; i < pagesize; ++i) |
| 9809 | if (*(data + i) != *(data3 + i)) |
| 9810 | return 14; |
| 9811 | close (fd); |
| 9812 | return 0; |
| 9813 | } |
| 9814 | _ACEOF |
| 9815 | if ac_fn_c_try_run "$LINENO"; then : |
| 9816 | ac_cv_func_mmap_fixed_mapped=yes |
| 9817 | else |
| 9818 | ac_cv_func_mmap_fixed_mapped=no |
| 9819 | fi |
| 9820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9821 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9822 | fi |
| 9823 | |
| 9824 | fi |
| 9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 9826 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 9827 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 9828 | |
| 9829 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| 9830 | |
| 9831 | fi |
| 9832 | rm -f conftest.mmap conftest.txt |
| 9833 | |
| 9834 | if test $use_mmap_for_buffers = yes; then |
| 9835 | |
| 9836 | $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h |
| 9837 | |
| 9838 | REL_ALLOC=no |
| 9839 | fi |
| 9840 | |
| 9841 | LIBS="$LIBS_SYSTEM $LIBS" |
| 9842 | |
| 9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 9844 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| 9845 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
| 9846 | $as_echo_n "(cached) " >&6 |
| 9847 | else |
| 9848 | ac_check_lib_save_LIBS=$LIBS |
| 9849 | LIBS="-ldnet $LIBS" |
| 9850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9851 | /* end confdefs.h. */ |
| 9852 | |
| 9853 | /* Override any GCC internal prototype to avoid an error. |
| 9854 | Use char because int might match the return type of a GCC |
| 9855 | builtin and then its argument prototype would still apply. */ |
| 9856 | #ifdef __cplusplus |
| 9857 | extern "C" |
| 9858 | #endif |
| 9859 | char dnet_ntoa (); |
| 9860 | int |
| 9861 | main () |
| 9862 | { |
| 9863 | return dnet_ntoa (); |
| 9864 | ; |
| 9865 | return 0; |
| 9866 | } |
| 9867 | _ACEOF |
| 9868 | if ac_fn_c_try_link "$LINENO"; then : |
| 9869 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 9870 | else |
| 9871 | ac_cv_lib_dnet_dnet_ntoa=no |
| 9872 | fi |
| 9873 | rm -f core conftest.err conftest.$ac_objext \ |
| 9874 | conftest$ac_exeext conftest.$ac_ext |
| 9875 | LIBS=$ac_check_lib_save_LIBS |
| 9876 | fi |
| 9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 9878 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 9879 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
| 9880 | cat >>confdefs.h <<_ACEOF |
| 9881 | #define HAVE_LIBDNET 1 |
| 9882 | _ACEOF |
| 9883 | |
| 9884 | LIBS="-ldnet $LIBS" |
| 9885 | |
| 9886 | fi |
| 9887 | |
| 9888 | |
| 9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 |
| 9890 | $as_echo_n "checking for main in -lXbsd... " >&6; } |
| 9891 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then : |
| 9892 | $as_echo_n "(cached) " >&6 |
| 9893 | else |
| 9894 | ac_check_lib_save_LIBS=$LIBS |
| 9895 | LIBS="-lXbsd $LIBS" |
| 9896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9897 | /* end confdefs.h. */ |
| 9898 | |
| 9899 | |
| 9900 | int |
| 9901 | main () |
| 9902 | { |
| 9903 | return main (); |
| 9904 | ; |
| 9905 | return 0; |
| 9906 | } |
| 9907 | _ACEOF |
| 9908 | if ac_fn_c_try_link "$LINENO"; then : |
| 9909 | ac_cv_lib_Xbsd_main=yes |
| 9910 | else |
| 9911 | ac_cv_lib_Xbsd_main=no |
| 9912 | fi |
| 9913 | rm -f core conftest.err conftest.$ac_objext \ |
| 9914 | conftest$ac_exeext conftest.$ac_ext |
| 9915 | LIBS=$ac_check_lib_save_LIBS |
| 9916 | fi |
| 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 |
| 9918 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } |
| 9919 | if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : |
| 9920 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
| 9921 | fi |
| 9922 | |
| 9923 | |
| 9924 | LIB_PTHREAD= |
| 9925 | |
| 9926 | |
| 9927 | |
| 9928 | if test "$ac_cv_header_pthread_h"; then |
| 9929 | if test "$GMALLOC_OBJ" = gmalloc.o; then |
| 9930 | emacs_pthread_function=pthread_atfork |
| 9931 | else |
| 9932 | emacs_pthread_function=pthread_self |
| 9933 | fi |
| 9934 | as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh` |
| 9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5 |
| 9936 | $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; } |
| 9937 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 9938 | $as_echo_n "(cached) " >&6 |
| 9939 | else |
| 9940 | ac_check_lib_save_LIBS=$LIBS |
| 9941 | LIBS="-lpthread $LIBS" |
| 9942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9943 | /* end confdefs.h. */ |
| 9944 | |
| 9945 | /* Override any GCC internal prototype to avoid an error. |
| 9946 | Use char because int might match the return type of a GCC |
| 9947 | builtin and then its argument prototype would still apply. */ |
| 9948 | #ifdef __cplusplus |
| 9949 | extern "C" |
| 9950 | #endif |
| 9951 | char $emacs_pthread_function (); |
| 9952 | int |
| 9953 | main () |
| 9954 | { |
| 9955 | return $emacs_pthread_function (); |
| 9956 | ; |
| 9957 | return 0; |
| 9958 | } |
| 9959 | _ACEOF |
| 9960 | if ac_fn_c_try_link "$LINENO"; then : |
| 9961 | eval "$as_ac_Lib=yes" |
| 9962 | else |
| 9963 | eval "$as_ac_Lib=no" |
| 9964 | fi |
| 9965 | rm -f core conftest.err conftest.$ac_objext \ |
| 9966 | conftest$ac_exeext conftest.$ac_ext |
| 9967 | LIBS=$ac_check_lib_save_LIBS |
| 9968 | fi |
| 9969 | eval ac_res=\$$as_ac_Lib |
| 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 9971 | $as_echo "$ac_res" >&6; } |
| 9972 | eval as_val=\$$as_ac_Lib |
| 9973 | if test "x$as_val" = x""yes; then : |
| 9974 | HAVE_PTHREAD=yes |
| 9975 | fi |
| 9976 | |
| 9977 | fi |
| 9978 | if test "$HAVE_PTHREAD" = yes; then |
| 9979 | case "${canonical}" in |
| 9980 | *-hpux*) ;; |
| 9981 | *) LIB_PTHREAD="-lpthread" |
| 9982 | LIBS="$LIB_PTHREAD $LIBS" ;; |
| 9983 | esac |
| 9984 | |
| 9985 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 9986 | |
| 9987 | fi |
| 9988 | |
| 9989 | |
| 9990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 |
| 9991 | $as_echo_n "checking for cma_open in -lpthreads... " >&6; } |
| 9992 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : |
| 9993 | $as_echo_n "(cached) " >&6 |
| 9994 | else |
| 9995 | ac_check_lib_save_LIBS=$LIBS |
| 9996 | LIBS="-lpthreads $LIBS" |
| 9997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9998 | /* end confdefs.h. */ |
| 9999 | |
| 10000 | /* Override any GCC internal prototype to avoid an error. |
| 10001 | Use char because int might match the return type of a GCC |
| 10002 | builtin and then its argument prototype would still apply. */ |
| 10003 | #ifdef __cplusplus |
| 10004 | extern "C" |
| 10005 | #endif |
| 10006 | char cma_open (); |
| 10007 | int |
| 10008 | main () |
| 10009 | { |
| 10010 | return cma_open (); |
| 10011 | ; |
| 10012 | return 0; |
| 10013 | } |
| 10014 | _ACEOF |
| 10015 | if ac_fn_c_try_link "$LINENO"; then : |
| 10016 | ac_cv_lib_pthreads_cma_open=yes |
| 10017 | else |
| 10018 | ac_cv_lib_pthreads_cma_open=no |
| 10019 | fi |
| 10020 | rm -f core conftest.err conftest.$ac_objext \ |
| 10021 | conftest$ac_exeext conftest.$ac_ext |
| 10022 | LIBS=$ac_check_lib_save_LIBS |
| 10023 | fi |
| 10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 |
| 10025 | $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } |
| 10026 | if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : |
| 10027 | cat >>confdefs.h <<_ACEOF |
| 10028 | #define HAVE_LIBPTHREADS 1 |
| 10029 | _ACEOF |
| 10030 | |
| 10031 | LIBS="-lpthreads $LIBS" |
| 10032 | |
| 10033 | fi |
| 10034 | |
| 10035 | |
| 10036 | ## Note: when using cpp in s/aix4.2.h, this definition depended on |
| 10037 | ## HAVE_LIBPTHREADS. That was not defined earlier in configure when |
| 10038 | ## the system file was sourced. Hence the value of LIBS_SYSTEM |
| 10039 | ## added to LIBS in configure would never contain the pthreads part, |
| 10040 | ## but the value used in Makefiles might. FIXME? |
| 10041 | ## |
| 10042 | ## -lpthreads seems to be necessary for Xlib in X11R6, and should |
| 10043 | ## be harmless on older versions of X where it happens to exist. |
| 10044 | test "$opsys" = "aix4-2" && \ |
| 10045 | test $ac_cv_lib_pthreads_cma_open = yes && \ |
| 10046 | LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" |
| 10047 | |
| 10048 | |
| 10049 | case ${host_os} in |
| 10050 | aix*) |
| 10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 |
| 10052 | $as_echo_n "checking for -bbigtoc option... " >&6; } |
| 10053 | if test "${gdb_cv_bigtoc+set}" = set; then : |
| 10054 | $as_echo_n "(cached) " >&6 |
| 10055 | else |
| 10056 | |
| 10057 | case $GCC in |
| 10058 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 10059 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 10060 | esac |
| 10061 | |
| 10062 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 10063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10064 | /* end confdefs.h. */ |
| 10065 | |
| 10066 | int |
| 10067 | main () |
| 10068 | { |
| 10069 | int i; |
| 10070 | ; |
| 10071 | return 0; |
| 10072 | } |
| 10073 | _ACEOF |
| 10074 | if ac_fn_c_try_link "$LINENO"; then : |
| 10075 | |
| 10076 | else |
| 10077 | gdb_cv_bigtoc= |
| 10078 | fi |
| 10079 | rm -f core conftest.err conftest.$ac_objext \ |
| 10080 | conftest$ac_exeext conftest.$ac_ext |
| 10081 | |
| 10082 | fi |
| 10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 |
| 10084 | $as_echo "$gdb_cv_bigtoc" >&6; } |
| 10085 | ;; |
| 10086 | esac |
| 10087 | |
| 10088 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
| 10089 | # used for the tests that follow. We set them back to REAL_CFLAGS and |
| 10090 | # REAL_CPPFLAGS later on. |
| 10091 | |
| 10092 | REAL_CFLAGS="$CFLAGS" |
| 10093 | REAL_CPPFLAGS="$CPPFLAGS" |
| 10094 | |
| 10095 | if test "${HAVE_X11}" = "yes"; then |
| 10096 | DEFS="$C_SWITCH_X_SITE $DEFS" |
| 10097 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" |
| 10098 | LIBS="-lX11 $LIBS" |
| 10099 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" |
| 10100 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
| 10101 | |
| 10102 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. |
| 10103 | # This is handled by LD_SWITCH_X_SITE_RPATH during the real build, |
| 10104 | # but it's more convenient here to set LD_RUN_PATH since this |
| 10105 | # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH. |
| 10106 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
| 10107 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
| 10108 | export LD_RUN_PATH |
| 10109 | fi |
| 10110 | |
| 10111 | if test "${opsys}" = "gnu-linux"; then |
| 10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 |
| 10113 | $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } |
| 10114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10115 | /* end confdefs.h. */ |
| 10116 | |
| 10117 | int |
| 10118 | main () |
| 10119 | { |
| 10120 | XOpenDisplay ("foo"); |
| 10121 | ; |
| 10122 | return 0; |
| 10123 | } |
| 10124 | _ACEOF |
| 10125 | if ac_fn_c_try_link "$LINENO"; then : |
| 10126 | xgnu_linux_first_failure=no |
| 10127 | else |
| 10128 | xgnu_linux_first_failure=yes |
| 10129 | fi |
| 10130 | rm -f core conftest.err conftest.$ac_objext \ |
| 10131 | conftest$ac_exeext conftest.$ac_ext |
| 10132 | if test "${xgnu_linux_first_failure}" = "yes"; then |
| 10133 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
| 10134 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
| 10135 | OLD_CPPFLAGS="$CPPFLAGS" |
| 10136 | OLD_LIBS="$LIBS" |
| 10137 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
| 10138 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
| 10139 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
| 10140 | LIBS="$LIBS -b i486-linuxaout" |
| 10141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10142 | /* end confdefs.h. */ |
| 10143 | |
| 10144 | int |
| 10145 | main () |
| 10146 | { |
| 10147 | XOpenDisplay ("foo"); |
| 10148 | ; |
| 10149 | return 0; |
| 10150 | } |
| 10151 | _ACEOF |
| 10152 | if ac_fn_c_try_link "$LINENO"; then : |
| 10153 | xgnu_linux_second_failure=no |
| 10154 | else |
| 10155 | xgnu_linux_second_failure=yes |
| 10156 | fi |
| 10157 | rm -f core conftest.err conftest.$ac_objext \ |
| 10158 | conftest$ac_exeext conftest.$ac_ext |
| 10159 | if test "${xgnu_linux_second_failure}" = "yes"; then |
| 10160 | # If we get the same failure with -b, there is no use adding -b. |
| 10161 | # So take it out. This plays safe. |
| 10162 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
| 10163 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
| 10164 | CPPFLAGS="$OLD_CPPFLAGS" |
| 10165 | LIBS="$OLD_LIBS" |
| 10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10167 | $as_echo "no" >&6; } |
| 10168 | else |
| 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10170 | $as_echo "yes" >&6; } |
| 10171 | fi |
| 10172 | else |
| 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10174 | $as_echo "no" >&6; } |
| 10175 | fi |
| 10176 | fi |
| 10177 | |
| 10178 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
| 10179 | # header files included from there. |
| 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 |
| 10181 | $as_echo_n "checking for Xkb... " >&6; } |
| 10182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10183 | /* end confdefs.h. */ |
| 10184 | #include <X11/Xlib.h> |
| 10185 | #include <X11/XKBlib.h> |
| 10186 | int |
| 10187 | main () |
| 10188 | { |
| 10189 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
| 10190 | ; |
| 10191 | return 0; |
| 10192 | } |
| 10193 | _ACEOF |
| 10194 | if ac_fn_c_try_link "$LINENO"; then : |
| 10195 | emacs_xkb=yes |
| 10196 | else |
| 10197 | emacs_xkb=no |
| 10198 | fi |
| 10199 | rm -f core conftest.err conftest.$ac_objext \ |
| 10200 | conftest$ac_exeext conftest.$ac_ext |
| 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 |
| 10202 | $as_echo "$emacs_xkb" >&6; } |
| 10203 | if test $emacs_xkb = yes; then |
| 10204 | |
| 10205 | $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h |
| 10206 | |
| 10207 | fi |
| 10208 | |
| 10209 | for ac_func in XrmSetDatabase XScreenResourceString \ |
| 10210 | XScreenNumberOfScreen |
| 10211 | do : |
| 10212 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10213 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10214 | eval as_val=\$$as_ac_var |
| 10215 | if test "x$as_val" = x""yes; then : |
| 10216 | cat >>confdefs.h <<_ACEOF |
| 10217 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10218 | _ACEOF |
| 10219 | |
| 10220 | fi |
| 10221 | done |
| 10222 | |
| 10223 | fi |
| 10224 | |
| 10225 | if test "${window_system}" = "x11"; then |
| 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 |
| 10227 | $as_echo_n "checking X11 version 6... " >&6; } |
| 10228 | if test "${emacs_cv_x11_version_6+set}" = set; then : |
| 10229 | $as_echo_n "(cached) " >&6 |
| 10230 | else |
| 10231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10232 | /* end confdefs.h. */ |
| 10233 | #include <X11/Xlib.h> |
| 10234 | int |
| 10235 | main () |
| 10236 | { |
| 10237 | #if XlibSpecificationRelease < 6 |
| 10238 | fail; |
| 10239 | #endif |
| 10240 | |
| 10241 | ; |
| 10242 | return 0; |
| 10243 | } |
| 10244 | _ACEOF |
| 10245 | if ac_fn_c_try_link "$LINENO"; then : |
| 10246 | emacs_cv_x11_version_6=yes |
| 10247 | else |
| 10248 | emacs_cv_x11_version_6=no |
| 10249 | fi |
| 10250 | rm -f core conftest.err conftest.$ac_objext \ |
| 10251 | conftest$ac_exeext conftest.$ac_ext |
| 10252 | fi |
| 10253 | |
| 10254 | if test $emacs_cv_x11_version_6 = yes; then |
| 10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
| 10256 | $as_echo "6 or newer" >&6; } |
| 10257 | |
| 10258 | $as_echo "#define HAVE_X11R6 1" >>confdefs.h |
| 10259 | |
| 10260 | |
| 10261 | $as_echo "#define HAVE_X_I18N 1" >>confdefs.h |
| 10262 | |
| 10263 | ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style |
| 10264 | ## XIM support. |
| 10265 | case "$opsys" in |
| 10266 | sol2-*) : ;; |
| 10267 | *) |
| 10268 | $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h |
| 10269 | |
| 10270 | ;; |
| 10271 | esac |
| 10272 | else |
| 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
| 10274 | $as_echo "before 6" >&6; } |
| 10275 | fi |
| 10276 | fi |
| 10277 | |
| 10278 | |
| 10279 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. |
| 10280 | HAVE_RSVG=no |
| 10281 | if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then |
| 10282 | if test "${with_rsvg}" != "no"; then |
| 10283 | RSVG_REQUIRED=2.11.0 |
| 10284 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" |
| 10285 | |
| 10286 | |
| 10287 | succeeded=no |
| 10288 | |
| 10289 | if test "$PKG_CONFIG" = "no" ; then |
| 10290 | : |
| 10291 | else |
| 10292 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10293 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 |
| 10295 | $as_echo_n "checking for $RSVG_MODULE... " >&6; } |
| 10296 | |
| 10297 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 && |
| 10298 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` && |
| 10299 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then |
| 10300 | edit_cflags=" |
| 10301 | s,///*,/,g |
| 10302 | s/^/ / |
| 10303 | s/ -I/ $isystem/g |
| 10304 | s/^ // |
| 10305 | " |
| 10306 | RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"` |
| 10307 | RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'` |
| 10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5 |
| 10309 | $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; } |
| 10310 | succeeded=yes |
| 10311 | else |
| 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10313 | $as_echo "no" >&6; } |
| 10314 | RSVG_CFLAGS="" |
| 10315 | RSVG_LIBS="" |
| 10316 | ## If we have a custom action on failure, don't print errors, but |
| 10317 | ## do set a variable so people can do so. |
| 10318 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` |
| 10319 | |
| 10320 | fi |
| 10321 | |
| 10322 | |
| 10323 | |
| 10324 | else |
| 10325 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10326 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10327 | fi |
| 10328 | fi |
| 10329 | |
| 10330 | if test $succeeded = yes; then |
| 10331 | HAVE_RSVG=yes |
| 10332 | else |
| 10333 | : |
| 10334 | fi |
| 10335 | |
| 10336 | |
| 10337 | |
| 10338 | |
| 10339 | if test $HAVE_RSVG = yes; then |
| 10340 | |
| 10341 | $as_echo "#define HAVE_RSVG 1" >>confdefs.h |
| 10342 | |
| 10343 | CFLAGS="$CFLAGS $RSVG_CFLAGS" |
| 10344 | LIBS="$RSVG_LIBS $LIBS" |
| 10345 | fi |
| 10346 | fi |
| 10347 | fi |
| 10348 | |
| 10349 | HAVE_IMAGEMAGICK=no |
| 10350 | if test "${HAVE_X11}" = "yes"; then |
| 10351 | if test "${with_imagemagick}" != "no"; then |
| 10352 | ## 6.2.8 is the earliest version known to work, but earlier versions |
| 10353 | ## might work - let us know if you find one. |
| 10354 | ## 6.0.7 does not work. See bug#7955. |
| 10355 | IMAGEMAGICK_MODULE="Wand >= 6.2.8" |
| 10356 | |
| 10357 | succeeded=no |
| 10358 | |
| 10359 | if test "$PKG_CONFIG" = "no" ; then |
| 10360 | : |
| 10361 | else |
| 10362 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10363 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5 |
| 10365 | $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; } |
| 10366 | |
| 10367 | if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 && |
| 10368 | IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` && |
| 10369 | IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then |
| 10370 | edit_cflags=" |
| 10371 | s,///*,/,g |
| 10372 | s/^/ / |
| 10373 | s/ -I/ $isystem/g |
| 10374 | s/^ // |
| 10375 | " |
| 10376 | IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"` |
| 10377 | IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'` |
| 10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5 |
| 10379 | $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; } |
| 10380 | succeeded=yes |
| 10381 | else |
| 10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10383 | $as_echo "no" >&6; } |
| 10384 | IMAGEMAGICK_CFLAGS="" |
| 10385 | IMAGEMAGICK_LIBS="" |
| 10386 | ## If we have a custom action on failure, don't print errors, but |
| 10387 | ## do set a variable so people can do so. |
| 10388 | IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"` |
| 10389 | |
| 10390 | fi |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | else |
| 10395 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10396 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10397 | fi |
| 10398 | fi |
| 10399 | |
| 10400 | if test $succeeded = yes; then |
| 10401 | HAVE_IMAGEMAGICK=yes |
| 10402 | else |
| 10403 | : |
| 10404 | fi |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | |
| 10409 | if test $HAVE_IMAGEMAGICK = yes; then |
| 10410 | |
| 10411 | $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h |
| 10412 | |
| 10413 | CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" |
| 10414 | LIBS="$IMAGEMAGICK_LIBS $LIBS" |
| 10415 | for ac_func in MagickExportImagePixels MagickMergeImageLayers |
| 10416 | do : |
| 10417 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10418 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10419 | eval as_val=\$$as_ac_var |
| 10420 | if test "x$as_val" = x""yes; then : |
| 10421 | cat >>confdefs.h <<_ACEOF |
| 10422 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10423 | _ACEOF |
| 10424 | |
| 10425 | fi |
| 10426 | done |
| 10427 | |
| 10428 | fi |
| 10429 | fi |
| 10430 | fi |
| 10431 | |
| 10432 | |
| 10433 | HAVE_GTK=no |
| 10434 | GTK_OBJ= |
| 10435 | if test "${with_gtk3}" = "yes"; then |
| 10436 | GLIB_REQUIRED=2.28 |
| 10437 | GTK_REQUIRED=3.0 |
| 10438 | GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 10439 | |
| 10440 | |
| 10441 | succeeded=no |
| 10442 | |
| 10443 | if test "$PKG_CONFIG" = "no" ; then |
| 10444 | pkg_check_gtk=no |
| 10445 | else |
| 10446 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10447 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
| 10449 | $as_echo_n "checking for $GTK_MODULES... " >&6; } |
| 10450 | |
| 10451 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 && |
| 10452 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` && |
| 10453 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then |
| 10454 | edit_cflags=" |
| 10455 | s,///*,/,g |
| 10456 | s/^/ / |
| 10457 | s/ -I/ $isystem/g |
| 10458 | s/^ // |
| 10459 | " |
| 10460 | GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"` |
| 10461 | GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'` |
| 10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5 |
| 10463 | $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; } |
| 10464 | succeeded=yes |
| 10465 | else |
| 10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10467 | $as_echo "no" >&6; } |
| 10468 | GTK_CFLAGS="" |
| 10469 | GTK_LIBS="" |
| 10470 | ## If we have a custom action on failure, don't print errors, but |
| 10471 | ## do set a variable so people can do so. |
| 10472 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` |
| 10473 | |
| 10474 | fi |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | else |
| 10479 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10480 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10481 | fi |
| 10482 | fi |
| 10483 | |
| 10484 | if test $succeeded = yes; then |
| 10485 | pkg_check_gtk=yes |
| 10486 | else |
| 10487 | pkg_check_gtk=no |
| 10488 | fi |
| 10489 | |
| 10490 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 10491 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 10492 | fi |
| 10493 | |
| 10494 | $as_echo "#define HAVE_GTK3 1" >>confdefs.h |
| 10495 | |
| 10496 | GTK_OBJ=emacsgtkfixed.o |
| 10497 | fi |
| 10498 | |
| 10499 | if test "$pkg_check_gtk" != "yes"; then |
| 10500 | HAVE_GTK=no |
| 10501 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then |
| 10502 | GLIB_REQUIRED=2.10 |
| 10503 | GTK_REQUIRED=2.10 |
| 10504 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 10505 | |
| 10506 | |
| 10507 | succeeded=no |
| 10508 | |
| 10509 | if test "$PKG_CONFIG" = "no" ; then |
| 10510 | pkg_check_gtk=no |
| 10511 | else |
| 10512 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10513 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
| 10515 | $as_echo_n "checking for $GTK_MODULES... " >&6; } |
| 10516 | |
| 10517 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 && |
| 10518 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` && |
| 10519 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then |
| 10520 | edit_cflags=" |
| 10521 | s,///*,/,g |
| 10522 | s/^/ / |
| 10523 | s/ -I/ $isystem/g |
| 10524 | s/^ // |
| 10525 | " |
| 10526 | GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"` |
| 10527 | GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'` |
| 10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5 |
| 10529 | $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; } |
| 10530 | succeeded=yes |
| 10531 | else |
| 10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10533 | $as_echo "no" >&6; } |
| 10534 | GTK_CFLAGS="" |
| 10535 | GTK_LIBS="" |
| 10536 | ## If we have a custom action on failure, don't print errors, but |
| 10537 | ## do set a variable so people can do so. |
| 10538 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` |
| 10539 | |
| 10540 | fi |
| 10541 | |
| 10542 | |
| 10543 | |
| 10544 | else |
| 10545 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10546 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10547 | fi |
| 10548 | fi |
| 10549 | |
| 10550 | if test $succeeded = yes; then |
| 10551 | pkg_check_gtk=yes |
| 10552 | else |
| 10553 | pkg_check_gtk=no |
| 10554 | fi |
| 10555 | |
| 10556 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 10557 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 10558 | fi |
| 10559 | fi |
| 10560 | fi |
| 10561 | |
| 10562 | if test x"$pkg_check_gtk" = xyes; then |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
| 10567 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10568 | LIBS="$GTK_LIBS $LIBS" |
| 10569 | GTK_COMPILES=no |
| 10570 | for ac_func in gtk_main |
| 10571 | do : |
| 10572 | ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" |
| 10573 | if test "x$ac_cv_func_gtk_main" = x""yes; then : |
| 10574 | cat >>confdefs.h <<_ACEOF |
| 10575 | #define HAVE_GTK_MAIN 1 |
| 10576 | _ACEOF |
| 10577 | GTK_COMPILES=yes |
| 10578 | fi |
| 10579 | done |
| 10580 | |
| 10581 | if test "${GTK_COMPILES}" != "yes"; then |
| 10582 | if test "$USE_X_TOOLKIT" != "maybe"; then |
| 10583 | as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
| 10584 | fi |
| 10585 | else |
| 10586 | HAVE_GTK=yes |
| 10587 | |
| 10588 | $as_echo "#define USE_GTK 1" >>confdefs.h |
| 10589 | |
| 10590 | GTK_OBJ="gtkutil.o $GTK_OBJ" |
| 10591 | USE_X_TOOLKIT=none |
| 10592 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then |
| 10593 | : |
| 10594 | else |
| 10595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with |
| 10596 | closing open displays. This is no problem if you just use |
| 10597 | one display, but if you use more than one and close one of them |
| 10598 | Emacs may crash." >&5 |
| 10599 | $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with |
| 10600 | closing open displays. This is no problem if you just use |
| 10601 | one display, but if you use more than one and close one of them |
| 10602 | Emacs may crash." >&2;} |
| 10603 | sleep 3 |
| 10604 | fi |
| 10605 | fi |
| 10606 | |
| 10607 | fi |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | if test "${HAVE_GTK}" = "yes"; then |
| 10612 | |
| 10613 | if test "$with_toolkit_scroll_bars" != no; then |
| 10614 | with_toolkit_scroll_bars=yes |
| 10615 | fi |
| 10616 | |
| 10617 | HAVE_GTK_FILE_SELECTION=no |
| 10618 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default |
| 10619 | #include <gtk/gtk.h> |
| 10620 | " |
| 10621 | if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : |
| 10622 | HAVE_GTK_FILE_SELECTION=yes |
| 10623 | else |
| 10624 | HAVE_GTK_FILE_SELECTION=no |
| 10625 | fi |
| 10626 | |
| 10627 | if test "$HAVE_GTK_FILE_SELECTION" = yes; then |
| 10628 | for ac_func in gtk_file_selection_new |
| 10629 | do : |
| 10630 | ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" |
| 10631 | if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : |
| 10632 | cat >>confdefs.h <<_ACEOF |
| 10633 | #define HAVE_GTK_FILE_SELECTION_NEW 1 |
| 10634 | _ACEOF |
| 10635 | |
| 10636 | fi |
| 10637 | done |
| 10638 | |
| 10639 | fi |
| 10640 | |
| 10641 | |
| 10642 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ |
| 10643 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ |
| 10644 | gtk_widget_get_mapped gtk_adjustment_get_page_size \ |
| 10645 | gtk_orientable_set_orientation \ |
| 10646 | gtk_window_set_has_resize_grip |
| 10647 | do : |
| 10648 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10649 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10650 | eval as_val=\$$as_ac_var |
| 10651 | if test "x$as_val" = x""yes; then : |
| 10652 | cat >>confdefs.h <<_ACEOF |
| 10653 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10654 | _ACEOF |
| 10655 | |
| 10656 | fi |
| 10657 | done |
| 10658 | |
| 10659 | fi |
| 10660 | |
| 10661 | HAVE_DBUS=no |
| 10662 | DBUS_OBJ= |
| 10663 | if test "${with_dbus}" = "yes"; then |
| 10664 | |
| 10665 | succeeded=no |
| 10666 | |
| 10667 | if test "$PKG_CONFIG" = "no" ; then |
| 10668 | HAVE_DBUS=no |
| 10669 | else |
| 10670 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10671 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 |
| 10673 | $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } |
| 10674 | |
| 10675 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 && |
| 10676 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` && |
| 10677 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then |
| 10678 | edit_cflags=" |
| 10679 | s,///*,/,g |
| 10680 | s/^/ / |
| 10681 | s/ -I/ $isystem/g |
| 10682 | s/^ // |
| 10683 | " |
| 10684 | DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"` |
| 10685 | DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'` |
| 10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5 |
| 10687 | $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; } |
| 10688 | succeeded=yes |
| 10689 | else |
| 10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10691 | $as_echo "no" >&6; } |
| 10692 | DBUS_CFLAGS="" |
| 10693 | DBUS_LIBS="" |
| 10694 | ## If we have a custom action on failure, don't print errors, but |
| 10695 | ## do set a variable so people can do so. |
| 10696 | DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"` |
| 10697 | |
| 10698 | fi |
| 10699 | |
| 10700 | |
| 10701 | |
| 10702 | else |
| 10703 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10704 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10705 | fi |
| 10706 | fi |
| 10707 | |
| 10708 | if test $succeeded = yes; then |
| 10709 | HAVE_DBUS=yes |
| 10710 | else |
| 10711 | HAVE_DBUS=no |
| 10712 | fi |
| 10713 | |
| 10714 | if test "$HAVE_DBUS" = yes; then |
| 10715 | LIBS="$LIBS $DBUS_LIBS" |
| 10716 | |
| 10717 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h |
| 10718 | |
| 10719 | for ac_func in dbus_watch_get_unix_fd \ |
| 10720 | dbus_type_is_valid \ |
| 10721 | dbus_validate_bus_name \ |
| 10722 | dbus_validate_path \ |
| 10723 | dbus_validate_interface \ |
| 10724 | dbus_validate_member |
| 10725 | do : |
| 10726 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10727 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10728 | eval as_val=\$$as_ac_var |
| 10729 | if test "x$as_val" = x""yes; then : |
| 10730 | cat >>confdefs.h <<_ACEOF |
| 10731 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10732 | _ACEOF |
| 10733 | |
| 10734 | fi |
| 10735 | done |
| 10736 | |
| 10737 | DBUS_OBJ=dbusbind.o |
| 10738 | fi |
| 10739 | fi |
| 10740 | |
| 10741 | |
| 10742 | HAVE_GSETTINGS=no |
| 10743 | if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then |
| 10744 | |
| 10745 | succeeded=no |
| 10746 | |
| 10747 | if test "$PKG_CONFIG" = "no" ; then |
| 10748 | HAVE_GSETTINGS=no |
| 10749 | else |
| 10750 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10751 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5 |
| 10753 | $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; } |
| 10754 | |
| 10755 | if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 && |
| 10756 | GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` && |
| 10757 | GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then |
| 10758 | edit_cflags=" |
| 10759 | s,///*,/,g |
| 10760 | s/^/ / |
| 10761 | s/ -I/ $isystem/g |
| 10762 | s/^ // |
| 10763 | " |
| 10764 | GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"` |
| 10765 | GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'` |
| 10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5 |
| 10767 | $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; } |
| 10768 | succeeded=yes |
| 10769 | else |
| 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10771 | $as_echo "no" >&6; } |
| 10772 | GSETTINGS_CFLAGS="" |
| 10773 | GSETTINGS_LIBS="" |
| 10774 | ## If we have a custom action on failure, don't print errors, but |
| 10775 | ## do set a variable so people can do so. |
| 10776 | GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"` |
| 10777 | |
| 10778 | fi |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | else |
| 10783 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10784 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10785 | fi |
| 10786 | fi |
| 10787 | |
| 10788 | if test $succeeded = yes; then |
| 10789 | HAVE_GSETTINGS=yes |
| 10790 | else |
| 10791 | HAVE_GSETTINGS=no |
| 10792 | fi |
| 10793 | |
| 10794 | if test "$HAVE_GSETTINGS" = "yes"; then |
| 10795 | |
| 10796 | $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h |
| 10797 | |
| 10798 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" |
| 10799 | SETTINGS_LIBS="$GSETTINGS_LIBS" |
| 10800 | fi |
| 10801 | fi |
| 10802 | |
| 10803 | HAVE_GCONF=no |
| 10804 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then |
| 10805 | |
| 10806 | succeeded=no |
| 10807 | |
| 10808 | if test "$PKG_CONFIG" = "no" ; then |
| 10809 | HAVE_GCONF=no |
| 10810 | else |
| 10811 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10812 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 |
| 10814 | $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } |
| 10815 | |
| 10816 | if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 && |
| 10817 | GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` && |
| 10818 | GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then |
| 10819 | edit_cflags=" |
| 10820 | s,///*,/,g |
| 10821 | s/^/ / |
| 10822 | s/ -I/ $isystem/g |
| 10823 | s/^ // |
| 10824 | " |
| 10825 | GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"` |
| 10826 | GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'` |
| 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5 |
| 10828 | $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; } |
| 10829 | succeeded=yes |
| 10830 | else |
| 10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10832 | $as_echo "no" >&6; } |
| 10833 | GCONF_CFLAGS="" |
| 10834 | GCONF_LIBS="" |
| 10835 | ## If we have a custom action on failure, don't print errors, but |
| 10836 | ## do set a variable so people can do so. |
| 10837 | GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"` |
| 10838 | |
| 10839 | fi |
| 10840 | |
| 10841 | |
| 10842 | |
| 10843 | else |
| 10844 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10845 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10846 | fi |
| 10847 | fi |
| 10848 | |
| 10849 | if test $succeeded = yes; then |
| 10850 | HAVE_GCONF=yes |
| 10851 | else |
| 10852 | HAVE_GCONF=no |
| 10853 | fi |
| 10854 | |
| 10855 | if test "$HAVE_GCONF" = yes; then |
| 10856 | |
| 10857 | $as_echo "#define HAVE_GCONF 1" >>confdefs.h |
| 10858 | |
| 10859 | SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS" |
| 10860 | SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS" |
| 10861 | fi |
| 10862 | fi |
| 10863 | |
| 10864 | if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then |
| 10865 | SAVE_CFLAGS="$CFLAGS" |
| 10866 | SAVE_LIBS="$LIBS" |
| 10867 | CFLAGS="$SETTINGS_CFLAGS $CFLAGS" |
| 10868 | LIBS="$SETTINGS_LIBS $LIBS" |
| 10869 | for ac_func in g_type_init |
| 10870 | do : |
| 10871 | ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init" |
| 10872 | if test "x$ac_cv_func_g_type_init" = x""yes; then : |
| 10873 | cat >>confdefs.h <<_ACEOF |
| 10874 | #define HAVE_G_TYPE_INIT 1 |
| 10875 | _ACEOF |
| 10876 | |
| 10877 | fi |
| 10878 | done |
| 10879 | |
| 10880 | CFLAGS="$SAVE_CFLAGS" |
| 10881 | LIBS="$SAVE_LIBS" |
| 10882 | fi |
| 10883 | |
| 10884 | |
| 10885 | |
| 10886 | |
| 10887 | HAVE_LIBSELINUX=no |
| 10888 | LIBSELINUX_LIBS= |
| 10889 | if test "${with_selinux}" = "yes"; then |
| 10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 |
| 10891 | $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } |
| 10892 | if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : |
| 10893 | $as_echo_n "(cached) " >&6 |
| 10894 | else |
| 10895 | ac_check_lib_save_LIBS=$LIBS |
| 10896 | LIBS="-lselinux $LIBS" |
| 10897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10898 | /* end confdefs.h. */ |
| 10899 | |
| 10900 | /* Override any GCC internal prototype to avoid an error. |
| 10901 | Use char because int might match the return type of a GCC |
| 10902 | builtin and then its argument prototype would still apply. */ |
| 10903 | #ifdef __cplusplus |
| 10904 | extern "C" |
| 10905 | #endif |
| 10906 | char lgetfilecon (); |
| 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | return lgetfilecon (); |
| 10911 | ; |
| 10912 | return 0; |
| 10913 | } |
| 10914 | _ACEOF |
| 10915 | if ac_fn_c_try_link "$LINENO"; then : |
| 10916 | ac_cv_lib_selinux_lgetfilecon=yes |
| 10917 | else |
| 10918 | ac_cv_lib_selinux_lgetfilecon=no |
| 10919 | fi |
| 10920 | rm -f core conftest.err conftest.$ac_objext \ |
| 10921 | conftest$ac_exeext conftest.$ac_ext |
| 10922 | LIBS=$ac_check_lib_save_LIBS |
| 10923 | fi |
| 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 |
| 10925 | $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } |
| 10926 | if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : |
| 10927 | HAVE_LIBSELINUX=yes |
| 10928 | else |
| 10929 | HAVE_LIBSELINUX=no |
| 10930 | fi |
| 10931 | |
| 10932 | if test "$HAVE_LIBSELINUX" = yes; then |
| 10933 | |
| 10934 | $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h |
| 10935 | |
| 10936 | LIBSELINUX_LIBS=-lselinux |
| 10937 | fi |
| 10938 | fi |
| 10939 | |
| 10940 | |
| 10941 | HAVE_GNUTLS=no |
| 10942 | HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no |
| 10943 | if test "${with_gnutls}" = "yes" ; then |
| 10944 | |
| 10945 | succeeded=no |
| 10946 | |
| 10947 | if test "$PKG_CONFIG" = "no" ; then |
| 10948 | HAVE_GNUTLS=no |
| 10949 | else |
| 10950 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10951 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5 |
| 10953 | $as_echo_n "checking for gnutls >= 2.6.6... " >&6; } |
| 10954 | |
| 10955 | if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 && |
| 10956 | LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` && |
| 10957 | LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then |
| 10958 | edit_cflags=" |
| 10959 | s,///*,/,g |
| 10960 | s/^/ / |
| 10961 | s/ -I/ $isystem/g |
| 10962 | s/^ // |
| 10963 | " |
| 10964 | LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"` |
| 10965 | LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'` |
| 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5 |
| 10967 | $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; } |
| 10968 | succeeded=yes |
| 10969 | else |
| 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10971 | $as_echo "no" >&6; } |
| 10972 | LIBGNUTLS_CFLAGS="" |
| 10973 | LIBGNUTLS_LIBS="" |
| 10974 | ## If we have a custom action on failure, don't print errors, but |
| 10975 | ## do set a variable so people can do so. |
| 10976 | LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"` |
| 10977 | |
| 10978 | fi |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | else |
| 10983 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10984 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10985 | fi |
| 10986 | fi |
| 10987 | |
| 10988 | if test $succeeded = yes; then |
| 10989 | HAVE_GNUTLS=yes |
| 10990 | else |
| 10991 | HAVE_GNUTLS=no |
| 10992 | fi |
| 10993 | |
| 10994 | if test "${HAVE_GNUTLS}" = "yes"; then |
| 10995 | |
| 10996 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h |
| 10997 | |
| 10998 | fi |
| 10999 | |
| 11000 | CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" |
| 11001 | LIBS="$LIBGNUTLS_LIBS $LIBS" |
| 11002 | for ac_func in gnutls_certificate_set_verify_function |
| 11003 | do : |
| 11004 | ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function" |
| 11005 | if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then : |
| 11006 | cat >>confdefs.h <<_ACEOF |
| 11007 | #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1 |
| 11008 | _ACEOF |
| 11009 | HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes |
| 11010 | fi |
| 11011 | done |
| 11012 | |
| 11013 | |
| 11014 | if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then |
| 11015 | |
| 11016 | $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h |
| 11017 | |
| 11018 | fi |
| 11019 | fi |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | HAVE_XAW3D=no |
| 11025 | LUCID_LIBW= |
| 11026 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 11027 | if test "$with_xaw3d" != no; then |
| 11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 |
| 11029 | $as_echo_n "checking for xaw3d... " >&6; } |
| 11030 | if test "${emacs_cv_xaw3d+set}" = set; then : |
| 11031 | $as_echo_n "(cached) " >&6 |
| 11032 | else |
| 11033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11034 | /* end confdefs.h. */ |
| 11035 | |
| 11036 | #include <X11/Intrinsic.h> |
| 11037 | #include <X11/Xaw3d/Simple.h> |
| 11038 | int |
| 11039 | main () |
| 11040 | { |
| 11041 | |
| 11042 | ; |
| 11043 | return 0; |
| 11044 | } |
| 11045 | _ACEOF |
| 11046 | if ac_fn_c_try_link "$LINENO"; then : |
| 11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
| 11048 | $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; } |
| 11049 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then : |
| 11050 | $as_echo_n "(cached) " >&6 |
| 11051 | else |
| 11052 | ac_check_lib_save_LIBS=$LIBS |
| 11053 | LIBS="-lXaw3d $LIBS" |
| 11054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11055 | /* end confdefs.h. */ |
| 11056 | |
| 11057 | /* Override any GCC internal prototype to avoid an error. |
| 11058 | Use char because int might match the return type of a GCC |
| 11059 | builtin and then its argument prototype would still apply. */ |
| 11060 | #ifdef __cplusplus |
| 11061 | extern "C" |
| 11062 | #endif |
| 11063 | char XawScrollbarSetThumb (); |
| 11064 | int |
| 11065 | main () |
| 11066 | { |
| 11067 | return XawScrollbarSetThumb (); |
| 11068 | ; |
| 11069 | return 0; |
| 11070 | } |
| 11071 | _ACEOF |
| 11072 | if ac_fn_c_try_link "$LINENO"; then : |
| 11073 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
| 11074 | else |
| 11075 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
| 11076 | fi |
| 11077 | rm -f core conftest.err conftest.$ac_objext \ |
| 11078 | conftest$ac_exeext conftest.$ac_ext |
| 11079 | LIBS=$ac_check_lib_save_LIBS |
| 11080 | fi |
| 11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
| 11082 | $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } |
| 11083 | if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then : |
| 11084 | emacs_cv_xaw3d=yes |
| 11085 | else |
| 11086 | emacs_cv_xaw3d=no |
| 11087 | fi |
| 11088 | |
| 11089 | else |
| 11090 | emacs_cv_xaw3d=no |
| 11091 | fi |
| 11092 | rm -f core conftest.err conftest.$ac_objext \ |
| 11093 | conftest$ac_exeext conftest.$ac_ext |
| 11094 | fi |
| 11095 | |
| 11096 | else |
| 11097 | emacs_cv_xaw3d=no |
| 11098 | fi |
| 11099 | if test $emacs_cv_xaw3d = yes; then |
| 11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
| 11101 | $as_echo "yes; using Lucid toolkit" >&6; } |
| 11102 | USE_X_TOOLKIT=LUCID |
| 11103 | HAVE_XAW3D=yes |
| 11104 | LUCID_LIBW=-lXaw3d |
| 11105 | |
| 11106 | $as_echo "#define HAVE_XAW3D 1" >>confdefs.h |
| 11107 | |
| 11108 | else |
| 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11110 | $as_echo "no" >&6; } |
| 11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 |
| 11112 | $as_echo_n "checking for libXaw... " >&6; } |
| 11113 | if test "${emacs_cv_xaw+set}" = set; then : |
| 11114 | $as_echo_n "(cached) " >&6 |
| 11115 | else |
| 11116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11117 | /* end confdefs.h. */ |
| 11118 | |
| 11119 | #include <X11/Intrinsic.h> |
| 11120 | #include <X11/Xaw/Simple.h> |
| 11121 | int |
| 11122 | main () |
| 11123 | { |
| 11124 | |
| 11125 | ; |
| 11126 | return 0; |
| 11127 | } |
| 11128 | _ACEOF |
| 11129 | if ac_fn_c_try_link "$LINENO"; then : |
| 11130 | emacs_cv_xaw=yes |
| 11131 | else |
| 11132 | emacs_cv_xaw=no |
| 11133 | fi |
| 11134 | rm -f core conftest.err conftest.$ac_objext \ |
| 11135 | conftest$ac_exeext conftest.$ac_ext |
| 11136 | fi |
| 11137 | |
| 11138 | if test $emacs_cv_xaw = yes; then |
| 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
| 11140 | $as_echo "yes; using Lucid toolkit" >&6; } |
| 11141 | USE_X_TOOLKIT=LUCID |
| 11142 | LUCID_LIBW=-lXaw |
| 11143 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 11144 | as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
| 11145 | else |
| 11146 | as_fn_error "No X toolkit could be found. |
| 11147 | If you are sure you want Emacs compiled without an X toolkit, pass |
| 11148 | --with-x-toolkit=no |
| 11149 | to configure. Otherwise, install the development libraries for the toolkit |
| 11150 | that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5 |
| 11151 | fi |
| 11152 | fi |
| 11153 | fi |
| 11154 | |
| 11155 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
| 11156 | |
| 11157 | LIBXTR6= |
| 11158 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 |
| 11160 | $as_echo_n "checking X11 toolkit version... " >&6; } |
| 11161 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : |
| 11162 | $as_echo_n "(cached) " >&6 |
| 11163 | else |
| 11164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11165 | /* end confdefs.h. */ |
| 11166 | #include <X11/Intrinsic.h> |
| 11167 | int |
| 11168 | main () |
| 11169 | { |
| 11170 | #if XtSpecificationRelease < 6 |
| 11171 | fail; |
| 11172 | #endif |
| 11173 | |
| 11174 | ; |
| 11175 | return 0; |
| 11176 | } |
| 11177 | _ACEOF |
| 11178 | if ac_fn_c_try_link "$LINENO"; then : |
| 11179 | emacs_cv_x11_toolkit_version_6=yes |
| 11180 | else |
| 11181 | emacs_cv_x11_toolkit_version_6=no |
| 11182 | fi |
| 11183 | rm -f core conftest.err conftest.$ac_objext \ |
| 11184 | conftest$ac_exeext conftest.$ac_ext |
| 11185 | fi |
| 11186 | |
| 11187 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
| 11188 | if test $emacs_cv_x11_toolkit_version_6 = yes; then |
| 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
| 11190 | $as_echo "6 or newer" >&6; } |
| 11191 | |
| 11192 | $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h |
| 11193 | |
| 11194 | LIBXTR6="-lSM -lICE" |
| 11195 | case "$opsys" in |
| 11196 | ## Use libw.a along with X11R6 Xt. |
| 11197 | unixware) LIBXTR6="$LIBXTR6 -lw" ;; |
| 11198 | esac |
| 11199 | else |
| 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
| 11201 | $as_echo "before 6" >&6; } |
| 11202 | fi |
| 11203 | |
| 11204 | OLDLIBS="$LIBS" |
| 11205 | if test x$HAVE_X11XTR6 = xyes; then |
| 11206 | LIBS="-lXt -lSM -lICE $LIBS" |
| 11207 | else |
| 11208 | LIBS="-lXt $LIBS" |
| 11209 | fi |
| 11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 11211 | $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } |
| 11212 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : |
| 11213 | $as_echo_n "(cached) " >&6 |
| 11214 | else |
| 11215 | ac_check_lib_save_LIBS=$LIBS |
| 11216 | LIBS="-lXmu $LIBS" |
| 11217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11218 | /* end confdefs.h. */ |
| 11219 | |
| 11220 | /* Override any GCC internal prototype to avoid an error. |
| 11221 | Use char because int might match the return type of a GCC |
| 11222 | builtin and then its argument prototype would still apply. */ |
| 11223 | #ifdef __cplusplus |
| 11224 | extern "C" |
| 11225 | #endif |
| 11226 | char XmuConvertStandardSelection (); |
| 11227 | int |
| 11228 | main () |
| 11229 | { |
| 11230 | return XmuConvertStandardSelection (); |
| 11231 | ; |
| 11232 | return 0; |
| 11233 | } |
| 11234 | _ACEOF |
| 11235 | if ac_fn_c_try_link "$LINENO"; then : |
| 11236 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
| 11237 | else |
| 11238 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
| 11239 | fi |
| 11240 | rm -f core conftest.err conftest.$ac_objext \ |
| 11241 | conftest$ac_exeext conftest.$ac_ext |
| 11242 | LIBS=$ac_check_lib_save_LIBS |
| 11243 | fi |
| 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
| 11245 | $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } |
| 11246 | if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : |
| 11247 | cat >>confdefs.h <<_ACEOF |
| 11248 | #define HAVE_LIBXMU 1 |
| 11249 | _ACEOF |
| 11250 | |
| 11251 | LIBS="-lXmu $LIBS" |
| 11252 | |
| 11253 | fi |
| 11254 | |
| 11255 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
| 11256 | fi |
| 11257 | |
| 11258 | |
| 11259 | LIBXMU=-lXmu |
| 11260 | case $opsys in |
| 11261 | ## These systems don't supply Xmu. |
| 11262 | hpux* | aix4-2 ) |
| 11263 | test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU= |
| 11264 | ;; |
| 11265 | esac |
| 11266 | |
| 11267 | |
| 11268 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
| 11269 | if test "${HAVE_X11}" = "yes"; then |
| 11270 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
| 11272 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
| 11273 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
| 11274 | $as_echo_n "(cached) " >&6 |
| 11275 | else |
| 11276 | ac_check_lib_save_LIBS=$LIBS |
| 11277 | LIBS="-lXext $LIBS" |
| 11278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11279 | /* end confdefs.h. */ |
| 11280 | |
| 11281 | /* Override any GCC internal prototype to avoid an error. |
| 11282 | Use char because int might match the return type of a GCC |
| 11283 | builtin and then its argument prototype would still apply. */ |
| 11284 | #ifdef __cplusplus |
| 11285 | extern "C" |
| 11286 | #endif |
| 11287 | char XShapeQueryExtension (); |
| 11288 | int |
| 11289 | main () |
| 11290 | { |
| 11291 | return XShapeQueryExtension (); |
| 11292 | ; |
| 11293 | return 0; |
| 11294 | } |
| 11295 | _ACEOF |
| 11296 | if ac_fn_c_try_link "$LINENO"; then : |
| 11297 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
| 11298 | else |
| 11299 | ac_cv_lib_Xext_XShapeQueryExtension=no |
| 11300 | fi |
| 11301 | rm -f core conftest.err conftest.$ac_objext \ |
| 11302 | conftest$ac_exeext conftest.$ac_ext |
| 11303 | LIBS=$ac_check_lib_save_LIBS |
| 11304 | fi |
| 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 11306 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
| 11307 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
| 11308 | cat >>confdefs.h <<_ACEOF |
| 11309 | #define HAVE_LIBXEXT 1 |
| 11310 | _ACEOF |
| 11311 | |
| 11312 | LIBS="-lXext $LIBS" |
| 11313 | |
| 11314 | fi |
| 11315 | |
| 11316 | fi |
| 11317 | fi |
| 11318 | |
| 11319 | LIBXP= |
| 11320 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11321 | # OpenMotif may be installed in such a way on some GNU/Linux systems. |
| 11322 | if test -d /usr/include/openmotif; then |
| 11323 | CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS" |
| 11324 | emacs_cv_openmotif=yes |
| 11325 | case "$canonical" in |
| 11326 | x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) |
| 11327 | test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS" |
| 11328 | ;; |
| 11329 | *) |
| 11330 | test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS" |
| 11331 | esac |
| 11332 | else |
| 11333 | emacs_cv_openmotif=no |
| 11334 | fi |
| 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5 |
| 11336 | $as_echo_n "checking for (Open)Motif version 2.1... " >&6; } |
| 11337 | if test "${emacs_cv_motif_version_2_1+set}" = set; then : |
| 11338 | $as_echo_n "(cached) " >&6 |
| 11339 | else |
| 11340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11341 | /* end confdefs.h. */ |
| 11342 | #include <Xm/Xm.h> |
| 11343 | int |
| 11344 | main () |
| 11345 | { |
| 11346 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| 11347 | int x = 5; |
| 11348 | #else |
| 11349 | Motif version prior to 2.1. |
| 11350 | #endif |
| 11351 | ; |
| 11352 | return 0; |
| 11353 | } |
| 11354 | _ACEOF |
| 11355 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11356 | emacs_cv_motif_version_2_1=yes |
| 11357 | else |
| 11358 | emacs_cv_motif_version_2_1=no |
| 11359 | fi |
| 11360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11361 | fi |
| 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 |
| 11363 | $as_echo "$emacs_cv_motif_version_2_1" >&6; } |
| 11364 | if test $emacs_cv_motif_version_2_1 = yes; then |
| 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 |
| 11366 | $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } |
| 11367 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : |
| 11368 | $as_echo_n "(cached) " >&6 |
| 11369 | else |
| 11370 | ac_check_lib_save_LIBS=$LIBS |
| 11371 | LIBS="-lXp $LIBS" |
| 11372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11373 | /* end confdefs.h. */ |
| 11374 | |
| 11375 | /* Override any GCC internal prototype to avoid an error. |
| 11376 | Use char because int might match the return type of a GCC |
| 11377 | builtin and then its argument prototype would still apply. */ |
| 11378 | #ifdef __cplusplus |
| 11379 | extern "C" |
| 11380 | #endif |
| 11381 | char XpCreateContext (); |
| 11382 | int |
| 11383 | main () |
| 11384 | { |
| 11385 | return XpCreateContext (); |
| 11386 | ; |
| 11387 | return 0; |
| 11388 | } |
| 11389 | _ACEOF |
| 11390 | if ac_fn_c_try_link "$LINENO"; then : |
| 11391 | ac_cv_lib_Xp_XpCreateContext=yes |
| 11392 | else |
| 11393 | ac_cv_lib_Xp_XpCreateContext=no |
| 11394 | fi |
| 11395 | rm -f core conftest.err conftest.$ac_objext \ |
| 11396 | conftest$ac_exeext conftest.$ac_ext |
| 11397 | LIBS=$ac_check_lib_save_LIBS |
| 11398 | fi |
| 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
| 11400 | $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } |
| 11401 | if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : |
| 11402 | LIBXP=-lXp |
| 11403 | fi |
| 11404 | |
| 11405 | if test x$emacs_cv_openmotif = xyes; then |
| 11406 | REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS" |
| 11407 | fi |
| 11408 | else |
| 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 |
| 11410 | $as_echo_n "checking for LessTif where some systems put it... " >&6; } |
| 11411 | if test "${emacs_cv_lesstif+set}" = set; then : |
| 11412 | $as_echo_n "(cached) " >&6 |
| 11413 | else |
| 11414 | # We put this in CFLAGS temporarily to precede other -I options |
| 11415 | # that might be in CFLAGS temporarily. |
| 11416 | # We put this in CPPFLAGS where it precedes the other -I options. |
| 11417 | OLD_CPPFLAGS=$CPPFLAGS |
| 11418 | OLD_CFLAGS=$CFLAGS |
| 11419 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
| 11420 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
| 11421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11422 | /* end confdefs.h. */ |
| 11423 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
| 11424 | int |
| 11425 | main () |
| 11426 | { |
| 11427 | int x = 5; |
| 11428 | ; |
| 11429 | return 0; |
| 11430 | } |
| 11431 | _ACEOF |
| 11432 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11433 | emacs_cv_lesstif=yes |
| 11434 | else |
| 11435 | emacs_cv_lesstif=no |
| 11436 | fi |
| 11437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11438 | fi |
| 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 |
| 11440 | $as_echo "$emacs_cv_lesstif" >&6; } |
| 11441 | if test $emacs_cv_lesstif = yes; then |
| 11442 | # Make sure this -I option remains in CPPFLAGS after it is set |
| 11443 | # back to REAL_CPPFLAGS. |
| 11444 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
| 11445 | # have those other -I options anyway. Ultimately, having this |
| 11446 | # directory ultimately in CPPFLAGS will be enough. |
| 11447 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" |
| 11448 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
| 11449 | else |
| 11450 | CFLAGS=$OLD_CFLAGS |
| 11451 | CPPFLAGS=$OLD_CPPFLAGS |
| 11452 | fi |
| 11453 | fi |
| 11454 | ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default" |
| 11455 | if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then : |
| 11456 | |
| 11457 | else |
| 11458 | as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5 |
| 11459 | fi |
| 11460 | |
| 11461 | |
| 11462 | fi |
| 11463 | |
| 11464 | |
| 11465 | USE_TOOLKIT_SCROLL_BARS=no |
| 11466 | if test "${with_toolkit_scroll_bars}" != "no"; then |
| 11467 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11468 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11469 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11470 | |
| 11471 | HAVE_XAW3D=no |
| 11472 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11473 | elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then |
| 11474 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11475 | |
| 11476 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11477 | fi |
| 11478 | elif test "${HAVE_GTK}" = "yes"; then |
| 11479 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11480 | |
| 11481 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11482 | elif test "${HAVE_NS}" = "yes"; then |
| 11483 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11484 | |
| 11485 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11486 | fi |
| 11487 | fi |
| 11488 | |
| 11489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11490 | /* end confdefs.h. */ |
| 11491 | |
| 11492 | #include <X11/Xlib.h> |
| 11493 | #include <X11/Xresource.h> |
| 11494 | int |
| 11495 | main () |
| 11496 | { |
| 11497 | XIMProc callback; |
| 11498 | ; |
| 11499 | return 0; |
| 11500 | } |
| 11501 | _ACEOF |
| 11502 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11503 | HAVE_XIM=yes |
| 11504 | |
| 11505 | $as_echo "#define HAVE_XIM 1" >>confdefs.h |
| 11506 | |
| 11507 | else |
| 11508 | HAVE_XIM=no |
| 11509 | fi |
| 11510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11511 | |
| 11512 | |
| 11513 | if test "${with_xim}" != "no"; then |
| 11514 | |
| 11515 | $as_echo "#define USE_XIM 1" >>confdefs.h |
| 11516 | |
| 11517 | fi |
| 11518 | |
| 11519 | |
| 11520 | if test "${HAVE_XIM}" != "no"; then |
| 11521 | late_CFLAGS=$CFLAGS |
| 11522 | if test "$GCC" = yes; then |
| 11523 | CFLAGS="$CFLAGS --pedantic-errors" |
| 11524 | fi |
| 11525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11526 | /* end confdefs.h. */ |
| 11527 | |
| 11528 | #include <X11/Xlib.h> |
| 11529 | #include <X11/Xresource.h> |
| 11530 | int |
| 11531 | main () |
| 11532 | { |
| 11533 | Display *display; |
| 11534 | XrmDatabase db; |
| 11535 | char *res_name; |
| 11536 | char *res_class; |
| 11537 | XIMProc callback; |
| 11538 | XPointer *client_data; |
| 11539 | #ifndef __GNUC__ |
| 11540 | /* If we're not using GCC, it's probably not XFree86, and this is |
| 11541 | probably right, but we can't use something like --pedantic-errors. */ |
| 11542 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, |
| 11543 | char*, XIMProc, XPointer*); |
| 11544 | #endif |
| 11545 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
| 11546 | client_data); |
| 11547 | ; |
| 11548 | return 0; |
| 11549 | } |
| 11550 | _ACEOF |
| 11551 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11552 | emacs_cv_arg6_star=yes |
| 11553 | fi |
| 11554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11555 | if test "$emacs_cv_arg6_star" = yes; then |
| 11556 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h |
| 11557 | |
| 11558 | else |
| 11559 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h |
| 11560 | |
| 11561 | fi |
| 11562 | CFLAGS=$late_CFLAGS |
| 11563 | fi |
| 11564 | |
| 11565 | ### Start of font-backend (under any platform) section. |
| 11566 | # (nothing here yet -- this is a placeholder) |
| 11567 | ### End of font-backend (under any platform) section. |
| 11568 | |
| 11569 | ### Start of font-backend (under X11) section. |
| 11570 | if test "${HAVE_X11}" = "yes"; then |
| 11571 | |
| 11572 | succeeded=no |
| 11573 | |
| 11574 | if test "$PKG_CONFIG" = "no" ; then |
| 11575 | HAVE_FC=no |
| 11576 | else |
| 11577 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11578 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 |
| 11580 | $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } |
| 11581 | |
| 11582 | if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 && |
| 11583 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` && |
| 11584 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then |
| 11585 | edit_cflags=" |
| 11586 | s,///*,/,g |
| 11587 | s/^/ / |
| 11588 | s/ -I/ $isystem/g |
| 11589 | s/^ // |
| 11590 | " |
| 11591 | FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"` |
| 11592 | FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'` |
| 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5 |
| 11594 | $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; } |
| 11595 | succeeded=yes |
| 11596 | else |
| 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11598 | $as_echo "no" >&6; } |
| 11599 | FONTCONFIG_CFLAGS="" |
| 11600 | FONTCONFIG_LIBS="" |
| 11601 | ## If we have a custom action on failure, don't print errors, but |
| 11602 | ## do set a variable so people can do so. |
| 11603 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"` |
| 11604 | |
| 11605 | fi |
| 11606 | |
| 11607 | |
| 11608 | |
| 11609 | else |
| 11610 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11611 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11612 | fi |
| 11613 | fi |
| 11614 | |
| 11615 | if test $succeeded = yes; then |
| 11616 | HAVE_FC=yes |
| 11617 | else |
| 11618 | HAVE_FC=no |
| 11619 | fi |
| 11620 | |
| 11621 | |
| 11622 | ## Use -lXft if available, unless `--with-xft=no'. |
| 11623 | HAVE_XFT=maybe |
| 11624 | if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then |
| 11625 | with_xft="no"; |
| 11626 | fi |
| 11627 | if test "x${with_xft}" != "xno"; then |
| 11628 | |
| 11629 | |
| 11630 | succeeded=no |
| 11631 | |
| 11632 | if test "$PKG_CONFIG" = "no" ; then |
| 11633 | HAVE_XFT=no |
| 11634 | else |
| 11635 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11636 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 |
| 11638 | $as_echo_n "checking for xft >= 0.13.0... " >&6; } |
| 11639 | |
| 11640 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 && |
| 11641 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` && |
| 11642 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then |
| 11643 | edit_cflags=" |
| 11644 | s,///*,/,g |
| 11645 | s/^/ / |
| 11646 | s/ -I/ $isystem/g |
| 11647 | s/^ // |
| 11648 | " |
| 11649 | XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"` |
| 11650 | XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'` |
| 11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5 |
| 11652 | $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; } |
| 11653 | succeeded=yes |
| 11654 | else |
| 11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11656 | $as_echo "no" >&6; } |
| 11657 | XFT_CFLAGS="" |
| 11658 | XFT_LIBS="" |
| 11659 | ## If we have a custom action on failure, don't print errors, but |
| 11660 | ## do set a variable so people can do so. |
| 11661 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` |
| 11662 | |
| 11663 | fi |
| 11664 | |
| 11665 | |
| 11666 | |
| 11667 | else |
| 11668 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11669 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11670 | fi |
| 11671 | fi |
| 11672 | |
| 11673 | if test $succeeded = yes; then |
| 11674 | : |
| 11675 | else |
| 11676 | HAVE_XFT=no |
| 11677 | fi |
| 11678 | |
| 11679 | ## Because xftfont.c uses XRenderQueryExtension, we also |
| 11680 | ## need to link to -lXrender. |
| 11681 | HAVE_XRENDER=no |
| 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 |
| 11683 | $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } |
| 11684 | if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : |
| 11685 | $as_echo_n "(cached) " >&6 |
| 11686 | else |
| 11687 | ac_check_lib_save_LIBS=$LIBS |
| 11688 | LIBS="-lXrender $LIBS" |
| 11689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11690 | /* end confdefs.h. */ |
| 11691 | |
| 11692 | /* Override any GCC internal prototype to avoid an error. |
| 11693 | Use char because int might match the return type of a GCC |
| 11694 | builtin and then its argument prototype would still apply. */ |
| 11695 | #ifdef __cplusplus |
| 11696 | extern "C" |
| 11697 | #endif |
| 11698 | char XRenderQueryExtension (); |
| 11699 | int |
| 11700 | main () |
| 11701 | { |
| 11702 | return XRenderQueryExtension (); |
| 11703 | ; |
| 11704 | return 0; |
| 11705 | } |
| 11706 | _ACEOF |
| 11707 | if ac_fn_c_try_link "$LINENO"; then : |
| 11708 | ac_cv_lib_Xrender_XRenderQueryExtension=yes |
| 11709 | else |
| 11710 | ac_cv_lib_Xrender_XRenderQueryExtension=no |
| 11711 | fi |
| 11712 | rm -f core conftest.err conftest.$ac_objext \ |
| 11713 | conftest$ac_exeext conftest.$ac_ext |
| 11714 | LIBS=$ac_check_lib_save_LIBS |
| 11715 | fi |
| 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 |
| 11717 | $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } |
| 11718 | if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : |
| 11719 | HAVE_XRENDER=yes |
| 11720 | fi |
| 11721 | |
| 11722 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then |
| 11723 | OLD_CPPFLAGS="$CPPFLAGS" |
| 11724 | OLD_CFLAGS="$CFLAGS" |
| 11725 | OLD_LIBS="$LIBS" |
| 11726 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
| 11727 | CFLAGS="$CFLAGS $XFT_CFLAGS" |
| 11728 | XFT_LIBS="-lXrender $XFT_LIBS" |
| 11729 | LIBS="$XFT_LIBS $LIBS" |
| 11730 | ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
| 11731 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
| 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 |
| 11733 | $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } |
| 11734 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : |
| 11735 | $as_echo_n "(cached) " >&6 |
| 11736 | else |
| 11737 | ac_check_lib_save_LIBS=$LIBS |
| 11738 | LIBS="-lXft $XFT_LIBS $LIBS" |
| 11739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11740 | /* end confdefs.h. */ |
| 11741 | |
| 11742 | /* Override any GCC internal prototype to avoid an error. |
| 11743 | Use char because int might match the return type of a GCC |
| 11744 | builtin and then its argument prototype would still apply. */ |
| 11745 | #ifdef __cplusplus |
| 11746 | extern "C" |
| 11747 | #endif |
| 11748 | char XftFontOpen (); |
| 11749 | int |
| 11750 | main () |
| 11751 | { |
| 11752 | return XftFontOpen (); |
| 11753 | ; |
| 11754 | return 0; |
| 11755 | } |
| 11756 | _ACEOF |
| 11757 | if ac_fn_c_try_link "$LINENO"; then : |
| 11758 | ac_cv_lib_Xft_XftFontOpen=yes |
| 11759 | else |
| 11760 | ac_cv_lib_Xft_XftFontOpen=no |
| 11761 | fi |
| 11762 | rm -f core conftest.err conftest.$ac_objext \ |
| 11763 | conftest$ac_exeext conftest.$ac_ext |
| 11764 | LIBS=$ac_check_lib_save_LIBS |
| 11765 | fi |
| 11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
| 11767 | $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } |
| 11768 | if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : |
| 11769 | HAVE_XFT=yes |
| 11770 | fi |
| 11771 | |
| 11772 | fi |
| 11773 | |
| 11774 | |
| 11775 | |
| 11776 | if test "${HAVE_XFT}" = "yes"; then |
| 11777 | |
| 11778 | $as_echo "#define HAVE_XFT 1" >>confdefs.h |
| 11779 | |
| 11780 | |
| 11781 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" |
| 11782 | else |
| 11783 | CPPFLAGS="$OLD_CPPFLAGS" |
| 11784 | CFLAGS="$OLD_CFLAGS" |
| 11785 | LIBS="$OLD_LIBS" |
| 11786 | fi # "${HAVE_XFT}" = "yes" |
| 11787 | fi # "$HAVE_XFT" != no |
| 11788 | fi # "x${with_xft}" != "xno" |
| 11789 | |
| 11790 | ## We used to allow building with FreeType and without Xft. |
| 11791 | ## However, the ftx font backend driver is not in good shape. |
| 11792 | if test "$HAVE_XFT" != "yes"; then |
| 11793 | HAVE_XFT=no |
| 11794 | HAVE_FREETYPE=no |
| 11795 | else |
| 11796 | |
| 11797 | succeeded=no |
| 11798 | |
| 11799 | if test "$PKG_CONFIG" = "no" ; then |
| 11800 | HAVE_FREETYPE=no |
| 11801 | else |
| 11802 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11803 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 |
| 11805 | $as_echo_n "checking for freetype2... " >&6; } |
| 11806 | |
| 11807 | if $PKG_CONFIG --exists "freetype2" 2>&5 && |
| 11808 | FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` && |
| 11809 | FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then |
| 11810 | edit_cflags=" |
| 11811 | s,///*,/,g |
| 11812 | s/^/ / |
| 11813 | s/ -I/ $isystem/g |
| 11814 | s/^ // |
| 11815 | " |
| 11816 | FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"` |
| 11817 | FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'` |
| 11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5 |
| 11819 | $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; } |
| 11820 | succeeded=yes |
| 11821 | else |
| 11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11823 | $as_echo "no" >&6; } |
| 11824 | FREETYPE_CFLAGS="" |
| 11825 | FREETYPE_LIBS="" |
| 11826 | ## If we have a custom action on failure, don't print errors, but |
| 11827 | ## do set a variable so people can do so. |
| 11828 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"` |
| 11829 | |
| 11830 | fi |
| 11831 | |
| 11832 | |
| 11833 | |
| 11834 | else |
| 11835 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11836 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11837 | fi |
| 11838 | fi |
| 11839 | |
| 11840 | if test $succeeded = yes; then |
| 11841 | HAVE_FREETYPE=yes |
| 11842 | else |
| 11843 | HAVE_FREETYPE=no |
| 11844 | fi |
| 11845 | |
| 11846 | |
| 11847 | test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5 |
| 11848 | fi |
| 11849 | |
| 11850 | HAVE_LIBOTF=no |
| 11851 | if test "${HAVE_FREETYPE}" = "yes"; then |
| 11852 | |
| 11853 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
| 11854 | |
| 11855 | if test "${with_libotf}" != "no"; then |
| 11856 | |
| 11857 | succeeded=no |
| 11858 | |
| 11859 | if test "$PKG_CONFIG" = "no" ; then |
| 11860 | HAVE_LIBOTF=no |
| 11861 | else |
| 11862 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11863 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 |
| 11865 | $as_echo_n "checking for libotf... " >&6; } |
| 11866 | |
| 11867 | if $PKG_CONFIG --exists "libotf" 2>&5 && |
| 11868 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` && |
| 11869 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then |
| 11870 | edit_cflags=" |
| 11871 | s,///*,/,g |
| 11872 | s/^/ / |
| 11873 | s/ -I/ $isystem/g |
| 11874 | s/^ // |
| 11875 | " |
| 11876 | LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"` |
| 11877 | LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'` |
| 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5 |
| 11879 | $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; } |
| 11880 | succeeded=yes |
| 11881 | else |
| 11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11883 | $as_echo "no" >&6; } |
| 11884 | LIBOTF_CFLAGS="" |
| 11885 | LIBOTF_LIBS="" |
| 11886 | ## If we have a custom action on failure, don't print errors, but |
| 11887 | ## do set a variable so people can do so. |
| 11888 | LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"` |
| 11889 | |
| 11890 | fi |
| 11891 | |
| 11892 | |
| 11893 | |
| 11894 | else |
| 11895 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11896 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11897 | fi |
| 11898 | fi |
| 11899 | |
| 11900 | if test $succeeded = yes; then |
| 11901 | HAVE_LIBOTF=yes |
| 11902 | else |
| 11903 | HAVE_LIBOTF=no |
| 11904 | fi |
| 11905 | |
| 11906 | if test "$HAVE_LIBOTF" = "yes"; then |
| 11907 | |
| 11908 | $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h |
| 11909 | |
| 11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 |
| 11911 | $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } |
| 11912 | if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : |
| 11913 | $as_echo_n "(cached) " >&6 |
| 11914 | else |
| 11915 | ac_check_lib_save_LIBS=$LIBS |
| 11916 | LIBS="-lotf $LIBS" |
| 11917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11918 | /* end confdefs.h. */ |
| 11919 | |
| 11920 | /* Override any GCC internal prototype to avoid an error. |
| 11921 | Use char because int might match the return type of a GCC |
| 11922 | builtin and then its argument prototype would still apply. */ |
| 11923 | #ifdef __cplusplus |
| 11924 | extern "C" |
| 11925 | #endif |
| 11926 | char OTF_get_variation_glyphs (); |
| 11927 | int |
| 11928 | main () |
| 11929 | { |
| 11930 | return OTF_get_variation_glyphs (); |
| 11931 | ; |
| 11932 | return 0; |
| 11933 | } |
| 11934 | _ACEOF |
| 11935 | if ac_fn_c_try_link "$LINENO"; then : |
| 11936 | ac_cv_lib_otf_OTF_get_variation_glyphs=yes |
| 11937 | else |
| 11938 | ac_cv_lib_otf_OTF_get_variation_glyphs=no |
| 11939 | fi |
| 11940 | rm -f core conftest.err conftest.$ac_objext \ |
| 11941 | conftest$ac_exeext conftest.$ac_ext |
| 11942 | LIBS=$ac_check_lib_save_LIBS |
| 11943 | fi |
| 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 |
| 11945 | $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } |
| 11946 | if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : |
| 11947 | HAVE_OTF_GET_VARIATION_GLYPHS=yes |
| 11948 | else |
| 11949 | HAVE_OTF_GET_VARIATION_GLYPHS=no |
| 11950 | fi |
| 11951 | |
| 11952 | if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then |
| 11953 | |
| 11954 | $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h |
| 11955 | |
| 11956 | fi |
| 11957 | fi |
| 11958 | fi |
| 11959 | fi |
| 11960 | |
| 11961 | HAVE_M17N_FLT=no |
| 11962 | if test "${HAVE_LIBOTF}" = yes; then |
| 11963 | if test "${with_m17n_flt}" != "no"; then |
| 11964 | |
| 11965 | succeeded=no |
| 11966 | |
| 11967 | if test "$PKG_CONFIG" = "no" ; then |
| 11968 | HAVE_M17N_FLT=no |
| 11969 | else |
| 11970 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11971 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 |
| 11973 | $as_echo_n "checking for m17n-flt... " >&6; } |
| 11974 | |
| 11975 | if $PKG_CONFIG --exists "m17n-flt" 2>&5 && |
| 11976 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` && |
| 11977 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then |
| 11978 | edit_cflags=" |
| 11979 | s,///*,/,g |
| 11980 | s/^/ / |
| 11981 | s/ -I/ $isystem/g |
| 11982 | s/^ // |
| 11983 | " |
| 11984 | M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"` |
| 11985 | M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'` |
| 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5 |
| 11987 | $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; } |
| 11988 | succeeded=yes |
| 11989 | else |
| 11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11991 | $as_echo "no" >&6; } |
| 11992 | M17N_FLT_CFLAGS="" |
| 11993 | M17N_FLT_LIBS="" |
| 11994 | ## If we have a custom action on failure, don't print errors, but |
| 11995 | ## do set a variable so people can do so. |
| 11996 | M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"` |
| 11997 | |
| 11998 | fi |
| 11999 | |
| 12000 | |
| 12001 | |
| 12002 | else |
| 12003 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 12004 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12005 | fi |
| 12006 | fi |
| 12007 | |
| 12008 | if test $succeeded = yes; then |
| 12009 | HAVE_M17N_FLT=yes |
| 12010 | else |
| 12011 | HAVE_M17N_FLT=no |
| 12012 | fi |
| 12013 | |
| 12014 | if test "$HAVE_M17N_FLT" = "yes"; then |
| 12015 | |
| 12016 | $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h |
| 12017 | |
| 12018 | fi |
| 12019 | fi |
| 12020 | fi |
| 12021 | else |
| 12022 | HAVE_XFT=no |
| 12023 | HAVE_FREETYPE=no |
| 12024 | HAVE_LIBOTF=no |
| 12025 | HAVE_M17N_FLT=no |
| 12026 | fi |
| 12027 | |
| 12028 | ### End of font-backend (under X11) section. |
| 12029 | |
| 12030 | |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | ### Use -lXpm if available, unless `--with-xpm=no'. |
| 12040 | HAVE_XPM=no |
| 12041 | LIBXPM= |
| 12042 | if test "${HAVE_X11}" = "yes"; then |
| 12043 | if test "${with_xpm}" != "no"; then |
| 12044 | ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
| 12045 | if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : |
| 12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 |
| 12047 | $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } |
| 12048 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : |
| 12049 | $as_echo_n "(cached) " >&6 |
| 12050 | else |
| 12051 | ac_check_lib_save_LIBS=$LIBS |
| 12052 | LIBS="-lXpm -lX11 $LIBS" |
| 12053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12054 | /* end confdefs.h. */ |
| 12055 | |
| 12056 | /* Override any GCC internal prototype to avoid an error. |
| 12057 | Use char because int might match the return type of a GCC |
| 12058 | builtin and then its argument prototype would still apply. */ |
| 12059 | #ifdef __cplusplus |
| 12060 | extern "C" |
| 12061 | #endif |
| 12062 | char XpmReadFileToPixmap (); |
| 12063 | int |
| 12064 | main () |
| 12065 | { |
| 12066 | return XpmReadFileToPixmap (); |
| 12067 | ; |
| 12068 | return 0; |
| 12069 | } |
| 12070 | _ACEOF |
| 12071 | if ac_fn_c_try_link "$LINENO"; then : |
| 12072 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
| 12073 | else |
| 12074 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
| 12075 | fi |
| 12076 | rm -f core conftest.err conftest.$ac_objext \ |
| 12077 | conftest$ac_exeext conftest.$ac_ext |
| 12078 | LIBS=$ac_check_lib_save_LIBS |
| 12079 | fi |
| 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
| 12081 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } |
| 12082 | if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : |
| 12083 | HAVE_XPM=yes |
| 12084 | fi |
| 12085 | |
| 12086 | fi |
| 12087 | |
| 12088 | |
| 12089 | if test "${HAVE_XPM}" = "yes"; then |
| 12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 12091 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } |
| 12092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12093 | /* end confdefs.h. */ |
| 12094 | #include "X11/xpm.h" |
| 12095 | #ifndef XpmReturnAllocPixels |
| 12096 | no_return_alloc_pixels |
| 12097 | #endif |
| 12098 | |
| 12099 | _ACEOF |
| 12100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12101 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : |
| 12102 | HAVE_XPM=no |
| 12103 | else |
| 12104 | HAVE_XPM=yes |
| 12105 | fi |
| 12106 | rm -f conftest* |
| 12107 | |
| 12108 | |
| 12109 | if test "${HAVE_XPM}" = "yes"; then |
| 12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12111 | $as_echo "yes" >&6; } |
| 12112 | else |
| 12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12114 | $as_echo "no" >&6; } |
| 12115 | fi |
| 12116 | fi |
| 12117 | fi |
| 12118 | |
| 12119 | if test "${HAVE_XPM}" = "yes"; then |
| 12120 | |
| 12121 | $as_echo "#define HAVE_XPM 1" >>confdefs.h |
| 12122 | |
| 12123 | LIBXPM=-lXpm |
| 12124 | fi |
| 12125 | fi |
| 12126 | |
| 12127 | |
| 12128 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 12129 | HAVE_JPEG=no |
| 12130 | LIBJPEG= |
| 12131 | if test "${HAVE_X11}" = "yes"; then |
| 12132 | if test "${with_jpeg}" != "no"; then |
| 12133 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| 12134 | if test "x$ac_cv_header_jerror_h" = x""yes; then : |
| 12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 |
| 12136 | $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } |
| 12137 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : |
| 12138 | $as_echo_n "(cached) " >&6 |
| 12139 | else |
| 12140 | ac_check_lib_save_LIBS=$LIBS |
| 12141 | LIBS="-ljpeg $LIBS" |
| 12142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12143 | /* end confdefs.h. */ |
| 12144 | |
| 12145 | /* Override any GCC internal prototype to avoid an error. |
| 12146 | Use char because int might match the return type of a GCC |
| 12147 | builtin and then its argument prototype would still apply. */ |
| 12148 | #ifdef __cplusplus |
| 12149 | extern "C" |
| 12150 | #endif |
| 12151 | char jpeg_destroy_compress (); |
| 12152 | int |
| 12153 | main () |
| 12154 | { |
| 12155 | return jpeg_destroy_compress (); |
| 12156 | ; |
| 12157 | return 0; |
| 12158 | } |
| 12159 | _ACEOF |
| 12160 | if ac_fn_c_try_link "$LINENO"; then : |
| 12161 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
| 12162 | else |
| 12163 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
| 12164 | fi |
| 12165 | rm -f core conftest.err conftest.$ac_objext \ |
| 12166 | conftest$ac_exeext conftest.$ac_ext |
| 12167 | LIBS=$ac_check_lib_save_LIBS |
| 12168 | fi |
| 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
| 12170 | $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } |
| 12171 | if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : |
| 12172 | HAVE_JPEG=yes |
| 12173 | fi |
| 12174 | |
| 12175 | fi |
| 12176 | |
| 12177 | |
| 12178 | fi |
| 12179 | |
| 12180 | if test "${HAVE_JPEG}" = "yes"; then |
| 12181 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
| 12182 | |
| 12183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12184 | /* end confdefs.h. */ |
| 12185 | #include <jpeglib.h> |
| 12186 | version=JPEG_LIB_VERSION |
| 12187 | |
| 12188 | _ACEOF |
| 12189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12190 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : |
| 12191 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
| 12192 | |
| 12193 | else |
| 12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 |
| 12195 | $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
| 12196 | HAVE_JPEG=no |
| 12197 | fi |
| 12198 | rm -f conftest* |
| 12199 | |
| 12200 | fi |
| 12201 | if test "${HAVE_JPEG}" = "yes"; then |
| 12202 | LIBJPEG=-ljpeg |
| 12203 | fi |
| 12204 | fi |
| 12205 | |
| 12206 | |
| 12207 | ### Use -lpng if available, unless `--with-png=no'. |
| 12208 | HAVE_PNG=no |
| 12209 | LIBPNG= |
| 12210 | if test "${HAVE_X11}" = "yes"; then |
| 12211 | if test "${with_png}" != "no"; then |
| 12212 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
| 12213 | # in /usr/include/libpng. |
| 12214 | for ac_header in png.h libpng/png.h |
| 12215 | do : |
| 12216 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12217 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 12218 | eval as_val=\$$as_ac_Header |
| 12219 | if test "x$as_val" = x""yes; then : |
| 12220 | cat >>confdefs.h <<_ACEOF |
| 12221 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12222 | _ACEOF |
| 12223 | break |
| 12224 | fi |
| 12225 | |
| 12226 | done |
| 12227 | |
| 12228 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
| 12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 |
| 12230 | $as_echo_n "checking for png_get_channels in -lpng... " >&6; } |
| 12231 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : |
| 12232 | $as_echo_n "(cached) " >&6 |
| 12233 | else |
| 12234 | ac_check_lib_save_LIBS=$LIBS |
| 12235 | LIBS="-lpng -lz -lm $LIBS" |
| 12236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12237 | /* end confdefs.h. */ |
| 12238 | |
| 12239 | /* Override any GCC internal prototype to avoid an error. |
| 12240 | Use char because int might match the return type of a GCC |
| 12241 | builtin and then its argument prototype would still apply. */ |
| 12242 | #ifdef __cplusplus |
| 12243 | extern "C" |
| 12244 | #endif |
| 12245 | char png_get_channels (); |
| 12246 | int |
| 12247 | main () |
| 12248 | { |
| 12249 | return png_get_channels (); |
| 12250 | ; |
| 12251 | return 0; |
| 12252 | } |
| 12253 | _ACEOF |
| 12254 | if ac_fn_c_try_link "$LINENO"; then : |
| 12255 | ac_cv_lib_png_png_get_channels=yes |
| 12256 | else |
| 12257 | ac_cv_lib_png_png_get_channels=no |
| 12258 | fi |
| 12259 | rm -f core conftest.err conftest.$ac_objext \ |
| 12260 | conftest$ac_exeext conftest.$ac_ext |
| 12261 | LIBS=$ac_check_lib_save_LIBS |
| 12262 | fi |
| 12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 |
| 12264 | $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } |
| 12265 | if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : |
| 12266 | HAVE_PNG=yes |
| 12267 | fi |
| 12268 | |
| 12269 | fi |
| 12270 | fi |
| 12271 | |
| 12272 | if test "${HAVE_PNG}" = "yes"; then |
| 12273 | |
| 12274 | $as_echo "#define HAVE_PNG 1" >>confdefs.h |
| 12275 | |
| 12276 | LIBPNG="-lpng -lz -lm" |
| 12277 | |
| 12278 | ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H |
| 12279 | # include <libpng/png.h> |
| 12280 | #else |
| 12281 | # include <png.h> |
| 12282 | #endif |
| 12283 | |
| 12284 | " |
| 12285 | if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then : |
| 12286 | |
| 12287 | else |
| 12288 | |
| 12289 | $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h |
| 12290 | |
| 12291 | fi |
| 12292 | |
| 12293 | fi |
| 12294 | fi |
| 12295 | |
| 12296 | |
| 12297 | ### Use -ltiff if available, unless `--with-tiff=no'. |
| 12298 | HAVE_TIFF=no |
| 12299 | LIBTIFF= |
| 12300 | if test "${HAVE_X11}" = "yes"; then |
| 12301 | if test "${with_tiff}" != "no"; then |
| 12302 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| 12303 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
| 12304 | tifflibs="-lz -lm" |
| 12305 | # At least one tiff package requires the jpeg library. |
| 12306 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 |
| 12308 | $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } |
| 12309 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : |
| 12310 | $as_echo_n "(cached) " >&6 |
| 12311 | else |
| 12312 | ac_check_lib_save_LIBS=$LIBS |
| 12313 | LIBS="-ltiff $tifflibs $LIBS" |
| 12314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12315 | /* end confdefs.h. */ |
| 12316 | |
| 12317 | /* Override any GCC internal prototype to avoid an error. |
| 12318 | Use char because int might match the return type of a GCC |
| 12319 | builtin and then its argument prototype would still apply. */ |
| 12320 | #ifdef __cplusplus |
| 12321 | extern "C" |
| 12322 | #endif |
| 12323 | char TIFFGetVersion (); |
| 12324 | int |
| 12325 | main () |
| 12326 | { |
| 12327 | return TIFFGetVersion (); |
| 12328 | ; |
| 12329 | return 0; |
| 12330 | } |
| 12331 | _ACEOF |
| 12332 | if ac_fn_c_try_link "$LINENO"; then : |
| 12333 | ac_cv_lib_tiff_TIFFGetVersion=yes |
| 12334 | else |
| 12335 | ac_cv_lib_tiff_TIFFGetVersion=no |
| 12336 | fi |
| 12337 | rm -f core conftest.err conftest.$ac_objext \ |
| 12338 | conftest$ac_exeext conftest.$ac_ext |
| 12339 | LIBS=$ac_check_lib_save_LIBS |
| 12340 | fi |
| 12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
| 12342 | $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } |
| 12343 | if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : |
| 12344 | HAVE_TIFF=yes |
| 12345 | fi |
| 12346 | |
| 12347 | fi |
| 12348 | |
| 12349 | |
| 12350 | fi |
| 12351 | |
| 12352 | if test "${HAVE_TIFF}" = "yes"; then |
| 12353 | |
| 12354 | $as_echo "#define HAVE_TIFF 1" >>confdefs.h |
| 12355 | |
| 12356 | LIBTIFF=-ltiff |
| 12357 | fi |
| 12358 | fi |
| 12359 | |
| 12360 | |
| 12361 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
| 12362 | HAVE_GIF=no |
| 12363 | LIBGIF= |
| 12364 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
| 12365 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" |
| 12366 | if test "x$ac_cv_header_gif_lib_h" = x""yes; then : |
| 12367 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
| 12368 | # Earlier versions can crash Emacs. |
| 12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 |
| 12370 | $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } |
| 12371 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : |
| 12372 | $as_echo_n "(cached) " >&6 |
| 12373 | else |
| 12374 | ac_check_lib_save_LIBS=$LIBS |
| 12375 | LIBS="-lgif $LIBS" |
| 12376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12377 | /* end confdefs.h. */ |
| 12378 | |
| 12379 | /* Override any GCC internal prototype to avoid an error. |
| 12380 | Use char because int might match the return type of a GCC |
| 12381 | builtin and then its argument prototype would still apply. */ |
| 12382 | #ifdef __cplusplus |
| 12383 | extern "C" |
| 12384 | #endif |
| 12385 | char EGifPutExtensionLast (); |
| 12386 | int |
| 12387 | main () |
| 12388 | { |
| 12389 | return EGifPutExtensionLast (); |
| 12390 | ; |
| 12391 | return 0; |
| 12392 | } |
| 12393 | _ACEOF |
| 12394 | if ac_fn_c_try_link "$LINENO"; then : |
| 12395 | ac_cv_lib_gif_EGifPutExtensionLast=yes |
| 12396 | else |
| 12397 | ac_cv_lib_gif_EGifPutExtensionLast=no |
| 12398 | fi |
| 12399 | rm -f core conftest.err conftest.$ac_objext \ |
| 12400 | conftest$ac_exeext conftest.$ac_ext |
| 12401 | LIBS=$ac_check_lib_save_LIBS |
| 12402 | fi |
| 12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
| 12404 | $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } |
| 12405 | if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : |
| 12406 | HAVE_GIF=yes |
| 12407 | else |
| 12408 | HAVE_GIF=maybe |
| 12409 | fi |
| 12410 | |
| 12411 | fi |
| 12412 | |
| 12413 | |
| 12414 | |
| 12415 | if test "$HAVE_GIF" = yes; then |
| 12416 | LIBGIF=-lgif |
| 12417 | elif test "$HAVE_GIF" = maybe; then |
| 12418 | # If gif_lib.h but no libgif, try libungif. |
| 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 |
| 12420 | $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } |
| 12421 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : |
| 12422 | $as_echo_n "(cached) " >&6 |
| 12423 | else |
| 12424 | ac_check_lib_save_LIBS=$LIBS |
| 12425 | LIBS="-lungif $LIBS" |
| 12426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12427 | /* end confdefs.h. */ |
| 12428 | |
| 12429 | /* Override any GCC internal prototype to avoid an error. |
| 12430 | Use char because int might match the return type of a GCC |
| 12431 | builtin and then its argument prototype would still apply. */ |
| 12432 | #ifdef __cplusplus |
| 12433 | extern "C" |
| 12434 | #endif |
| 12435 | char EGifPutExtensionLast (); |
| 12436 | int |
| 12437 | main () |
| 12438 | { |
| 12439 | return EGifPutExtensionLast (); |
| 12440 | ; |
| 12441 | return 0; |
| 12442 | } |
| 12443 | _ACEOF |
| 12444 | if ac_fn_c_try_link "$LINENO"; then : |
| 12445 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
| 12446 | else |
| 12447 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
| 12448 | fi |
| 12449 | rm -f core conftest.err conftest.$ac_objext \ |
| 12450 | conftest$ac_exeext conftest.$ac_ext |
| 12451 | LIBS=$ac_check_lib_save_LIBS |
| 12452 | fi |
| 12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
| 12454 | $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } |
| 12455 | if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : |
| 12456 | HAVE_GIF=yes |
| 12457 | else |
| 12458 | HAVE_GIF=no |
| 12459 | fi |
| 12460 | |
| 12461 | test "$HAVE_GIF" = yes && LIBGIF=-lungif |
| 12462 | fi |
| 12463 | |
| 12464 | if test "${HAVE_GIF}" = "yes"; then |
| 12465 | |
| 12466 | $as_echo "#define HAVE_GIF 1" >>confdefs.h |
| 12467 | |
| 12468 | fi |
| 12469 | fi |
| 12470 | |
| 12471 | |
| 12472 | if test "${HAVE_X11}" = "yes"; then |
| 12473 | MISSING="" |
| 12474 | WITH_NO="" |
| 12475 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && |
| 12476 | MISSING="libXpm" && WITH_NO="--with-xpm=no" |
| 12477 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && |
| 12478 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" |
| 12479 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && |
| 12480 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" |
| 12481 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && |
| 12482 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" |
| 12483 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && |
| 12484 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
| 12485 | |
| 12486 | if test "X${MISSING}" != X; then |
| 12487 | as_fn_error "The following required libraries were not found: |
| 12488 | $MISSING |
| 12489 | Maybe some development libraries/packages are missing? |
| 12490 | If you don't want to link with them give |
| 12491 | $WITH_NO |
| 12492 | as options to configure" "$LINENO" 5 |
| 12493 | fi |
| 12494 | fi |
| 12495 | |
| 12496 | ### Use -lgpm if available, unless `--with-gpm=no'. |
| 12497 | HAVE_GPM=no |
| 12498 | LIBGPM= |
| 12499 | if test "${with_gpm}" != "no"; then |
| 12500 | ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" |
| 12501 | if test "x$ac_cv_header_gpm_h" = x""yes; then : |
| 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
| 12503 | $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } |
| 12504 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : |
| 12505 | $as_echo_n "(cached) " >&6 |
| 12506 | else |
| 12507 | ac_check_lib_save_LIBS=$LIBS |
| 12508 | LIBS="-lgpm $LIBS" |
| 12509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12510 | /* end confdefs.h. */ |
| 12511 | |
| 12512 | /* Override any GCC internal prototype to avoid an error. |
| 12513 | Use char because int might match the return type of a GCC |
| 12514 | builtin and then its argument prototype would still apply. */ |
| 12515 | #ifdef __cplusplus |
| 12516 | extern "C" |
| 12517 | #endif |
| 12518 | char Gpm_Open (); |
| 12519 | int |
| 12520 | main () |
| 12521 | { |
| 12522 | return Gpm_Open (); |
| 12523 | ; |
| 12524 | return 0; |
| 12525 | } |
| 12526 | _ACEOF |
| 12527 | if ac_fn_c_try_link "$LINENO"; then : |
| 12528 | ac_cv_lib_gpm_Gpm_Open=yes |
| 12529 | else |
| 12530 | ac_cv_lib_gpm_Gpm_Open=no |
| 12531 | fi |
| 12532 | rm -f core conftest.err conftest.$ac_objext \ |
| 12533 | conftest$ac_exeext conftest.$ac_ext |
| 12534 | LIBS=$ac_check_lib_save_LIBS |
| 12535 | fi |
| 12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 |
| 12537 | $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } |
| 12538 | if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : |
| 12539 | HAVE_GPM=yes |
| 12540 | fi |
| 12541 | |
| 12542 | fi |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | if test "${HAVE_GPM}" = "yes"; then |
| 12547 | |
| 12548 | $as_echo "#define HAVE_GPM 1" >>confdefs.h |
| 12549 | |
| 12550 | LIBGPM=-lgpm |
| 12551 | fi |
| 12552 | fi |
| 12553 | |
| 12554 | |
| 12555 | |
| 12556 | |
| 12557 | |
| 12558 | |
| 12559 | GNUSTEP_CFLAGS= |
| 12560 | ### Use NeXTstep API to implement GUI. |
| 12561 | if test "${HAVE_NS}" = "yes"; then |
| 12562 | |
| 12563 | $as_echo "#define HAVE_NS 1" >>confdefs.h |
| 12564 | |
| 12565 | if test "${NS_IMPL_COCOA}" = "yes"; then |
| 12566 | |
| 12567 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h |
| 12568 | |
| 12569 | fi |
| 12570 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then |
| 12571 | |
| 12572 | $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h |
| 12573 | |
| 12574 | # See also .m.o rule in Makefile.in */ |
| 12575 | # FIXME: are all these flags really needed? Document here why. */ |
| 12576 | GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 12577 | ## Extra CFLAGS applied to src/*.m files. |
| 12578 | GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" |
| 12579 | fi |
| 12580 | # We also have mouse menus. |
| 12581 | HAVE_MENUS=yes |
| 12582 | OTHER_FILES=ns-app |
| 12583 | fi |
| 12584 | |
| 12585 | |
| 12586 | ### Use session management (-lSM -lICE) if available |
| 12587 | HAVE_X_SM=no |
| 12588 | LIBXSM= |
| 12589 | if test "${HAVE_X11}" = "yes"; then |
| 12590 | ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
| 12591 | if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : |
| 12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
| 12593 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } |
| 12594 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : |
| 12595 | $as_echo_n "(cached) " >&6 |
| 12596 | else |
| 12597 | ac_check_lib_save_LIBS=$LIBS |
| 12598 | LIBS="-lSM -lICE $LIBS" |
| 12599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12600 | /* end confdefs.h. */ |
| 12601 | |
| 12602 | /* Override any GCC internal prototype to avoid an error. |
| 12603 | Use char because int might match the return type of a GCC |
| 12604 | builtin and then its argument prototype would still apply. */ |
| 12605 | #ifdef __cplusplus |
| 12606 | extern "C" |
| 12607 | #endif |
| 12608 | char SmcOpenConnection (); |
| 12609 | int |
| 12610 | main () |
| 12611 | { |
| 12612 | return SmcOpenConnection (); |
| 12613 | ; |
| 12614 | return 0; |
| 12615 | } |
| 12616 | _ACEOF |
| 12617 | if ac_fn_c_try_link "$LINENO"; then : |
| 12618 | ac_cv_lib_SM_SmcOpenConnection=yes |
| 12619 | else |
| 12620 | ac_cv_lib_SM_SmcOpenConnection=no |
| 12621 | fi |
| 12622 | rm -f core conftest.err conftest.$ac_objext \ |
| 12623 | conftest$ac_exeext conftest.$ac_ext |
| 12624 | LIBS=$ac_check_lib_save_LIBS |
| 12625 | fi |
| 12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
| 12627 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } |
| 12628 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : |
| 12629 | HAVE_X_SM=yes |
| 12630 | fi |
| 12631 | |
| 12632 | fi |
| 12633 | |
| 12634 | |
| 12635 | |
| 12636 | if test "${HAVE_X_SM}" = "yes"; then |
| 12637 | |
| 12638 | $as_echo "#define HAVE_X_SM 1" >>confdefs.h |
| 12639 | |
| 12640 | LIBXSM="-lSM -lICE" |
| 12641 | case "$LIBS" in |
| 12642 | *-lSM*) ;; |
| 12643 | *) LIBS="$LIBXSM $LIBS" ;; |
| 12644 | esac |
| 12645 | fi |
| 12646 | fi |
| 12647 | |
| 12648 | |
| 12649 | ### Use libxml (-lxml2) if available |
| 12650 | HAVE_LIBXML2=no |
| 12651 | if test "${with_xml2}" != "no"; then |
| 12652 | ### I'm not sure what the version number should be, so I just guessed. |
| 12653 | |
| 12654 | succeeded=no |
| 12655 | |
| 12656 | if test "$PKG_CONFIG" = "no" ; then |
| 12657 | HAVE_LIBXML2=no |
| 12658 | else |
| 12659 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 12660 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5 |
| 12662 | $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; } |
| 12663 | |
| 12664 | if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 && |
| 12665 | LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` && |
| 12666 | LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then |
| 12667 | edit_cflags=" |
| 12668 | s,///*,/,g |
| 12669 | s/^/ / |
| 12670 | s/ -I/ $isystem/g |
| 12671 | s/^ // |
| 12672 | " |
| 12673 | LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"` |
| 12674 | LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'` |
| 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5 |
| 12676 | $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; } |
| 12677 | succeeded=yes |
| 12678 | else |
| 12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12680 | $as_echo "no" >&6; } |
| 12681 | LIBXML2_CFLAGS="" |
| 12682 | LIBXML2_LIBS="" |
| 12683 | ## If we have a custom action on failure, don't print errors, but |
| 12684 | ## do set a variable so people can do so. |
| 12685 | LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"` |
| 12686 | |
| 12687 | fi |
| 12688 | |
| 12689 | |
| 12690 | |
| 12691 | else |
| 12692 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 12693 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12694 | fi |
| 12695 | fi |
| 12696 | |
| 12697 | if test $succeeded = yes; then |
| 12698 | HAVE_LIBXML2=yes |
| 12699 | else |
| 12700 | HAVE_LIBXML2=no |
| 12701 | fi |
| 12702 | |
| 12703 | if test "${HAVE_LIBXML2}" = "yes"; then |
| 12704 | LIBS="$LIBXML2_LIBS $LIBS" |
| 12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5 |
| 12706 | $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; } |
| 12707 | if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then : |
| 12708 | $as_echo_n "(cached) " >&6 |
| 12709 | else |
| 12710 | ac_check_lib_save_LIBS=$LIBS |
| 12711 | LIBS="-lxml2 $LIBS" |
| 12712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12713 | /* end confdefs.h. */ |
| 12714 | |
| 12715 | /* Override any GCC internal prototype to avoid an error. |
| 12716 | Use char because int might match the return type of a GCC |
| 12717 | builtin and then its argument prototype would still apply. */ |
| 12718 | #ifdef __cplusplus |
| 12719 | extern "C" |
| 12720 | #endif |
| 12721 | char htmlReadMemory (); |
| 12722 | int |
| 12723 | main () |
| 12724 | { |
| 12725 | return htmlReadMemory (); |
| 12726 | ; |
| 12727 | return 0; |
| 12728 | } |
| 12729 | _ACEOF |
| 12730 | if ac_fn_c_try_link "$LINENO"; then : |
| 12731 | ac_cv_lib_xml2_htmlReadMemory=yes |
| 12732 | else |
| 12733 | ac_cv_lib_xml2_htmlReadMemory=no |
| 12734 | fi |
| 12735 | rm -f core conftest.err conftest.$ac_objext \ |
| 12736 | conftest$ac_exeext conftest.$ac_ext |
| 12737 | LIBS=$ac_check_lib_save_LIBS |
| 12738 | fi |
| 12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5 |
| 12740 | $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; } |
| 12741 | if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then : |
| 12742 | HAVE_LIBXML2=yes |
| 12743 | else |
| 12744 | HAVE_LIBXML2=no |
| 12745 | fi |
| 12746 | |
| 12747 | if test "${HAVE_LIBXML2}" = "yes"; then |
| 12748 | |
| 12749 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
| 12750 | |
| 12751 | else |
| 12752 | LIBXML2_LIBS="" |
| 12753 | LIBXML2_CFLAGS="" |
| 12754 | fi |
| 12755 | fi |
| 12756 | fi |
| 12757 | |
| 12758 | |
| 12759 | |
| 12760 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
| 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 |
| 12762 | $as_echo_n "checking whether netdb declares h_errno... " >&6; } |
| 12763 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : |
| 12764 | $as_echo_n "(cached) " >&6 |
| 12765 | else |
| 12766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12767 | /* end confdefs.h. */ |
| 12768 | #include <netdb.h> |
| 12769 | int |
| 12770 | main () |
| 12771 | { |
| 12772 | return h_errno; |
| 12773 | ; |
| 12774 | return 0; |
| 12775 | } |
| 12776 | _ACEOF |
| 12777 | if ac_fn_c_try_link "$LINENO"; then : |
| 12778 | emacs_cv_netdb_declares_h_errno=yes |
| 12779 | else |
| 12780 | emacs_cv_netdb_declares_h_errno=no |
| 12781 | fi |
| 12782 | rm -f core conftest.err conftest.$ac_objext \ |
| 12783 | conftest$ac_exeext conftest.$ac_ext |
| 12784 | fi |
| 12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 |
| 12786 | $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } |
| 12787 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
| 12788 | |
| 12789 | $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h |
| 12790 | |
| 12791 | fi |
| 12792 | |
| 12793 | # fmod, logb, and frexp are found in -lm on most systems. |
| 12794 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
| 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 12796 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| 12797 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| 12798 | $as_echo_n "(cached) " >&6 |
| 12799 | else |
| 12800 | ac_check_lib_save_LIBS=$LIBS |
| 12801 | LIBS="-lm $LIBS" |
| 12802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12803 | /* end confdefs.h. */ |
| 12804 | |
| 12805 | /* Override any GCC internal prototype to avoid an error. |
| 12806 | Use char because int might match the return type of a GCC |
| 12807 | builtin and then its argument prototype would still apply. */ |
| 12808 | #ifdef __cplusplus |
| 12809 | extern "C" |
| 12810 | #endif |
| 12811 | char sqrt (); |
| 12812 | int |
| 12813 | main () |
| 12814 | { |
| 12815 | return sqrt (); |
| 12816 | ; |
| 12817 | return 0; |
| 12818 | } |
| 12819 | _ACEOF |
| 12820 | if ac_fn_c_try_link "$LINENO"; then : |
| 12821 | ac_cv_lib_m_sqrt=yes |
| 12822 | else |
| 12823 | ac_cv_lib_m_sqrt=no |
| 12824 | fi |
| 12825 | rm -f core conftest.err conftest.$ac_objext \ |
| 12826 | conftest$ac_exeext conftest.$ac_ext |
| 12827 | LIBS=$ac_check_lib_save_LIBS |
| 12828 | fi |
| 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 12830 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| 12831 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| 12832 | cat >>confdefs.h <<_ACEOF |
| 12833 | #define HAVE_LIBM 1 |
| 12834 | _ACEOF |
| 12835 | |
| 12836 | LIBS="-lm $LIBS" |
| 12837 | |
| 12838 | fi |
| 12839 | |
| 12840 | |
| 12841 | # Check for mail-locking functions in a "mail" library. Probably this should |
| 12842 | # have the same check as for liblockfile below. |
| 12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 |
| 12844 | $as_echo_n "checking for maillock in -lmail... " >&6; } |
| 12845 | if test "${ac_cv_lib_mail_maillock+set}" = set; then : |
| 12846 | $as_echo_n "(cached) " >&6 |
| 12847 | else |
| 12848 | ac_check_lib_save_LIBS=$LIBS |
| 12849 | LIBS="-lmail $LIBS" |
| 12850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12851 | /* end confdefs.h. */ |
| 12852 | |
| 12853 | /* Override any GCC internal prototype to avoid an error. |
| 12854 | Use char because int might match the return type of a GCC |
| 12855 | builtin and then its argument prototype would still apply. */ |
| 12856 | #ifdef __cplusplus |
| 12857 | extern "C" |
| 12858 | #endif |
| 12859 | char maillock (); |
| 12860 | int |
| 12861 | main () |
| 12862 | { |
| 12863 | return maillock (); |
| 12864 | ; |
| 12865 | return 0; |
| 12866 | } |
| 12867 | _ACEOF |
| 12868 | if ac_fn_c_try_link "$LINENO"; then : |
| 12869 | ac_cv_lib_mail_maillock=yes |
| 12870 | else |
| 12871 | ac_cv_lib_mail_maillock=no |
| 12872 | fi |
| 12873 | rm -f core conftest.err conftest.$ac_objext \ |
| 12874 | conftest$ac_exeext conftest.$ac_ext |
| 12875 | LIBS=$ac_check_lib_save_LIBS |
| 12876 | fi |
| 12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 |
| 12878 | $as_echo "$ac_cv_lib_mail_maillock" >&6; } |
| 12879 | if test "x$ac_cv_lib_mail_maillock" = x""yes; then : |
| 12880 | have_mail=yes |
| 12881 | else |
| 12882 | have_mail=no |
| 12883 | fi |
| 12884 | |
| 12885 | if test $have_mail = yes; then |
| 12886 | LIBS_MAIL=-lmail |
| 12887 | LIBS="$LIBS_MAIL $LIBS" |
| 12888 | |
| 12889 | $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h |
| 12890 | |
| 12891 | else |
| 12892 | LIBS_MAIL= |
| 12893 | fi |
| 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 |
| 12895 | $as_echo_n "checking for maillock in -llockfile... " >&6; } |
| 12896 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : |
| 12897 | $as_echo_n "(cached) " >&6 |
| 12898 | else |
| 12899 | ac_check_lib_save_LIBS=$LIBS |
| 12900 | LIBS="-llockfile $LIBS" |
| 12901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12902 | /* end confdefs.h. */ |
| 12903 | |
| 12904 | /* Override any GCC internal prototype to avoid an error. |
| 12905 | Use char because int might match the return type of a GCC |
| 12906 | builtin and then its argument prototype would still apply. */ |
| 12907 | #ifdef __cplusplus |
| 12908 | extern "C" |
| 12909 | #endif |
| 12910 | char maillock (); |
| 12911 | int |
| 12912 | main () |
| 12913 | { |
| 12914 | return maillock (); |
| 12915 | ; |
| 12916 | return 0; |
| 12917 | } |
| 12918 | _ACEOF |
| 12919 | if ac_fn_c_try_link "$LINENO"; then : |
| 12920 | ac_cv_lib_lockfile_maillock=yes |
| 12921 | else |
| 12922 | ac_cv_lib_lockfile_maillock=no |
| 12923 | fi |
| 12924 | rm -f core conftest.err conftest.$ac_objext \ |
| 12925 | conftest$ac_exeext conftest.$ac_ext |
| 12926 | LIBS=$ac_check_lib_save_LIBS |
| 12927 | fi |
| 12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 |
| 12929 | $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } |
| 12930 | if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : |
| 12931 | have_lockfile=yes |
| 12932 | else |
| 12933 | have_lockfile=no |
| 12934 | fi |
| 12935 | |
| 12936 | if test $have_lockfile = yes; then |
| 12937 | LIBS_MAIL=-llockfile |
| 12938 | LIBS="$LIBS_MAIL $LIBS" |
| 12939 | |
| 12940 | $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h |
| 12941 | |
| 12942 | else |
| 12943 | # If we have the shared liblockfile, assume we must use it for mail |
| 12944 | # locking (e.g. Debian). If we couldn't link against liblockfile |
| 12945 | # (no liblockfile.a installed), ensure that we don't need to. |
| 12946 | # Extract the first word of "liblockfile.so", so it can be a program name with args. |
| 12947 | set dummy liblockfile.so; ac_word=$2 |
| 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12949 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12950 | if test "${ac_cv_prog_liblockfile+set}" = set; then : |
| 12951 | $as_echo_n "(cached) " >&6 |
| 12952 | else |
| 12953 | if test -n "$liblockfile"; then |
| 12954 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
| 12955 | else |
| 12956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12957 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
| 12958 | for as_dir in $as_dummy |
| 12959 | do |
| 12960 | IFS=$as_save_IFS |
| 12961 | test -z "$as_dir" && as_dir=. |
| 12962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12964 | ac_cv_prog_liblockfile="yes" |
| 12965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12966 | break 2 |
| 12967 | fi |
| 12968 | done |
| 12969 | done |
| 12970 | IFS=$as_save_IFS |
| 12971 | |
| 12972 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
| 12973 | fi |
| 12974 | fi |
| 12975 | liblockfile=$ac_cv_prog_liblockfile |
| 12976 | if test -n "$liblockfile"; then |
| 12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 |
| 12978 | $as_echo "$liblockfile" >&6; } |
| 12979 | else |
| 12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12981 | $as_echo "no" >&6; } |
| 12982 | fi |
| 12983 | |
| 12984 | |
| 12985 | if test $ac_cv_prog_liblockfile = yes; then |
| 12986 | as_fn_error "Shared liblockfile found but can't link against it. |
| 12987 | This probably means that movemail could lose mail. |
| 12988 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
| 12989 | fi |
| 12990 | fi |
| 12991 | |
| 12992 | |
| 12993 | |
| 12994 | |
| 12995 | |
| 12996 | ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to |
| 12997 | ## interlock access to the mail spool. The alternative is a lock file named |
| 12998 | ## /usr/spool/mail/$USER.lock. |
| 12999 | mail_lock=no |
| 13000 | case "$opsys" in |
| 13001 | aix4-2) mail_lock="lockf" ;; |
| 13002 | |
| 13003 | gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; |
| 13004 | |
| 13005 | ## On GNU/Linux systems, both methods are used by various mail programs. |
| 13006 | ## I assume most people are using newer mailers that have heard of flock. |
| 13007 | ## Change this if you need to. |
| 13008 | ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, |
| 13009 | ## configure gets the right answers, and that means *NOT* using flock. |
| 13010 | ## Using flock is guaranteed to be the wrong thing. See Debian Policy |
| 13011 | ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the |
| 13012 | ## Debian maintainer hasn't provided a clean fix for Emacs. |
| 13013 | ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and |
| 13014 | ## HAVE_MAILLOCK_H are defined, so the following appears to be the |
| 13015 | ## correct logic. -- fx |
| 13016 | ## We must check for HAVE_LIBLOCKFILE too, as movemail does. |
| 13017 | ## liblockfile is a Free Software replacement for libmail, used on |
| 13018 | ## Debian systems and elsewhere. -rfr. |
| 13019 | gnu-*) |
| 13020 | mail_lock="flock" |
| 13021 | if test $have_mail = yes || test $have_lockfile = yes; then |
| 13022 | test $ac_cv_header_maillock_h = yes && mail_lock=no |
| 13023 | fi |
| 13024 | ;; |
| 13025 | esac |
| 13026 | |
| 13027 | BLESSMAIL_TARGET= |
| 13028 | case "$mail_lock" in |
| 13029 | flock) |
| 13030 | $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h |
| 13031 | ;; |
| 13032 | |
| 13033 | lockf) |
| 13034 | $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h |
| 13035 | ;; |
| 13036 | |
| 13037 | *) BLESSMAIL_TARGET="need-blessmail" ;; |
| 13038 | esac |
| 13039 | |
| 13040 | |
| 13041 | |
| 13042 | for ac_func in gethostname \ |
| 13043 | closedir getrusage get_current_dir_name \ |
| 13044 | lrand48 logb frexp fmod cbrt setsid \ |
| 13045 | fpathconf select euidaccess getpagesize setlocale \ |
| 13046 | utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \ |
| 13047 | __fpending strsignal setitimer \ |
| 13048 | sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \ |
| 13049 | gai_strerror mkstemp getline getdelim fsync sync \ |
| 13050 | difftime posix_memalign \ |
| 13051 | getpwent endpwent getgrent endgrent \ |
| 13052 | touchlock \ |
| 13053 | cfmakeraw cfsetspeed copysign __executable_start |
| 13054 | do : |
| 13055 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13056 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13057 | eval as_val=\$$as_ac_var |
| 13058 | if test "x$as_val" = x""yes; then : |
| 13059 | cat >>confdefs.h <<_ACEOF |
| 13060 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13061 | _ACEOF |
| 13062 | |
| 13063 | fi |
| 13064 | done |
| 13065 | |
| 13066 | |
| 13067 | if test $opsys = unixware; then |
| 13068 | |
| 13069 | $as_echo "#define BROKEN_GETWD 1" >>confdefs.h |
| 13070 | |
| 13071 | else |
| 13072 | for ac_func in getwd |
| 13073 | do : |
| 13074 | ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
| 13075 | if test "x$ac_cv_func_getwd" = x""yes; then : |
| 13076 | cat >>confdefs.h <<_ACEOF |
| 13077 | #define HAVE_GETWD 1 |
| 13078 | _ACEOF |
| 13079 | |
| 13080 | fi |
| 13081 | done |
| 13082 | |
| 13083 | fi |
| 13084 | |
| 13085 | ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines |
| 13086 | ## has a broken `rint' in some library versions including math library |
| 13087 | ## version number A.09.05. |
| 13088 | ## You can fix the math library by installing patch number PHSS_4630. |
| 13089 | ## But we can fix it more reliably for Emacs by just not using rint. |
| 13090 | ## We also skip HAVE_RANDOM - see comments in src/conf_post.h. |
| 13091 | case $opsys in |
| 13092 | hpux*) : ;; |
| 13093 | *) for ac_func in random rint |
| 13094 | do : |
| 13095 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13096 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13097 | eval as_val=\$$as_ac_var |
| 13098 | if test "x$as_val" = x""yes; then : |
| 13099 | cat >>confdefs.h <<_ACEOF |
| 13100 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13101 | _ACEOF |
| 13102 | |
| 13103 | fi |
| 13104 | done |
| 13105 | ;; |
| 13106 | esac |
| 13107 | |
| 13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5 |
| 13109 | $as_echo_n "checking for __builtin_unwind_init... " >&6; } |
| 13110 | if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then : |
| 13111 | $as_echo_n "(cached) " >&6 |
| 13112 | else |
| 13113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13114 | /* end confdefs.h. */ |
| 13115 | |
| 13116 | int |
| 13117 | main () |
| 13118 | { |
| 13119 | __builtin_unwind_init (); |
| 13120 | ; |
| 13121 | return 0; |
| 13122 | } |
| 13123 | _ACEOF |
| 13124 | if ac_fn_c_try_link "$LINENO"; then : |
| 13125 | emacs_cv_func___builtin_unwind_init=yes |
| 13126 | else |
| 13127 | emacs_cv_func___builtin_unwind_init=no |
| 13128 | fi |
| 13129 | rm -f core conftest.err conftest.$ac_objext \ |
| 13130 | conftest$ac_exeext conftest.$ac_ext |
| 13131 | fi |
| 13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5 |
| 13133 | $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; } |
| 13134 | if test $emacs_cv_func___builtin_unwind_init = yes; then |
| 13135 | |
| 13136 | $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h |
| 13137 | |
| 13138 | fi |
| 13139 | |
| 13140 | |
| 13141 | |
| 13142 | |
| 13143 | |
| 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 13145 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 13146 | if test "${ac_cv_sys_largefile_source+set}" = set; then : |
| 13147 | $as_echo_n "(cached) " >&6 |
| 13148 | else |
| 13149 | while :; do |
| 13150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13151 | /* end confdefs.h. */ |
| 13152 | #include <sys/types.h> /* for off_t */ |
| 13153 | #include <stdio.h> |
| 13154 | int |
| 13155 | main () |
| 13156 | { |
| 13157 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 13158 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 13159 | ; |
| 13160 | return 0; |
| 13161 | } |
| 13162 | _ACEOF |
| 13163 | if ac_fn_c_try_link "$LINENO"; then : |
| 13164 | ac_cv_sys_largefile_source=no; break |
| 13165 | fi |
| 13166 | rm -f core conftest.err conftest.$ac_objext \ |
| 13167 | conftest$ac_exeext conftest.$ac_ext |
| 13168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13169 | /* end confdefs.h. */ |
| 13170 | #define _LARGEFILE_SOURCE 1 |
| 13171 | #include <sys/types.h> /* for off_t */ |
| 13172 | #include <stdio.h> |
| 13173 | int |
| 13174 | main () |
| 13175 | { |
| 13176 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 13177 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 13178 | ; |
| 13179 | return 0; |
| 13180 | } |
| 13181 | _ACEOF |
| 13182 | if ac_fn_c_try_link "$LINENO"; then : |
| 13183 | ac_cv_sys_largefile_source=1; break |
| 13184 | fi |
| 13185 | rm -f core conftest.err conftest.$ac_objext \ |
| 13186 | conftest$ac_exeext conftest.$ac_ext |
| 13187 | ac_cv_sys_largefile_source=unknown |
| 13188 | break |
| 13189 | done |
| 13190 | fi |
| 13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| 13192 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 13193 | case $ac_cv_sys_largefile_source in #( |
| 13194 | no | unknown) ;; |
| 13195 | *) |
| 13196 | cat >>confdefs.h <<_ACEOF |
| 13197 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 13198 | _ACEOF |
| 13199 | ;; |
| 13200 | esac |
| 13201 | rm -rf conftest* |
| 13202 | |
| 13203 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 13204 | # in glibc 2.1.3, but that breaks too many other things. |
| 13205 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 13206 | if test $ac_cv_sys_largefile_source != unknown; then |
| 13207 | |
| 13208 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| 13209 | |
| 13210 | fi |
| 13211 | |
| 13212 | |
| 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
| 13214 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
| 13215 | if test "${ac_cv_func_getpgrp_void+set}" = set; then : |
| 13216 | $as_echo_n "(cached) " >&6 |
| 13217 | else |
| 13218 | # Use it with a single arg. |
| 13219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13220 | /* end confdefs.h. */ |
| 13221 | $ac_includes_default |
| 13222 | int |
| 13223 | main () |
| 13224 | { |
| 13225 | getpgrp (0); |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
| 13229 | _ACEOF |
| 13230 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13231 | ac_cv_func_getpgrp_void=no |
| 13232 | else |
| 13233 | ac_cv_func_getpgrp_void=yes |
| 13234 | fi |
| 13235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13236 | |
| 13237 | fi |
| 13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
| 13239 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
| 13240 | if test $ac_cv_func_getpgrp_void = yes; then |
| 13241 | |
| 13242 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
| 13243 | |
| 13244 | fi |
| 13245 | |
| 13246 | |
| 13247 | # UNIX98 PTYs. |
| 13248 | for ac_func in grantpt |
| 13249 | do : |
| 13250 | ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" |
| 13251 | if test "x$ac_cv_func_grantpt" = x""yes; then : |
| 13252 | cat >>confdefs.h <<_ACEOF |
| 13253 | #define HAVE_GRANTPT 1 |
| 13254 | _ACEOF |
| 13255 | |
| 13256 | fi |
| 13257 | done |
| 13258 | |
| 13259 | |
| 13260 | # PTY-related GNU extensions. |
| 13261 | for ac_func in getpt |
| 13262 | do : |
| 13263 | ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
| 13264 | if test "x$ac_cv_func_getpt" = x""yes; then : |
| 13265 | cat >>confdefs.h <<_ACEOF |
| 13266 | #define HAVE_GETPT 1 |
| 13267 | _ACEOF |
| 13268 | |
| 13269 | fi |
| 13270 | done |
| 13271 | |
| 13272 | |
| 13273 | # Check this now, so that we will NOT find the above functions in ncurses. |
| 13274 | # That is because we have not set up to link ncurses in lib-src. |
| 13275 | # It's better to believe a function is not available |
| 13276 | # than to expect to find it in ncurses. |
| 13277 | # Also we need tputs and friends to be able to build at all. |
| 13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 |
| 13279 | $as_echo_n "checking for library containing tputs... " >&6; } |
| 13280 | # Run a test program that contains a call to tputs, a call that is |
| 13281 | # never executed. This tests whether a pre-'main' dynamic linker |
| 13282 | # works with the library. It's too much trouble to actually call |
| 13283 | # tputs in the test program, due to portability hassles. When |
| 13284 | # cross-compiling, assume the test program will run if it links. |
| 13285 | |
| 13286 | # Maybe curses should be tried earlier? |
| 13287 | # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35 |
| 13288 | for tputs_library in '' tinfo ncurses terminfo termcap curses; do |
| 13289 | OLIBS=$LIBS |
| 13290 | if test -z "$tputs_library"; then |
| 13291 | LIBS_TERMCAP= |
| 13292 | msg='none required' |
| 13293 | else |
| 13294 | LIBS_TERMCAP=-l$tputs_library |
| 13295 | msg=$LIBS_TERMCAP |
| 13296 | LIBS="$LIBS_TERMCAP $LIBS" |
| 13297 | fi |
| 13298 | if test "$cross_compiling" = yes; then : |
| 13299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13300 | /* end confdefs.h. */ |
| 13301 | |
| 13302 | extern void tputs (const char *, int, int (*)(int)); |
| 13303 | int main (int argc, char **argv) |
| 13304 | { |
| 13305 | if (argc == 10000) |
| 13306 | tputs (argv[0], 0, 0); |
| 13307 | return 0; |
| 13308 | } |
| 13309 | |
| 13310 | _ACEOF |
| 13311 | if ac_fn_c_try_link "$LINENO"; then : |
| 13312 | |
| 13313 | else |
| 13314 | msg=no |
| 13315 | fi |
| 13316 | rm -f core conftest.err conftest.$ac_objext \ |
| 13317 | conftest$ac_exeext conftest.$ac_ext |
| 13318 | else |
| 13319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13320 | /* end confdefs.h. */ |
| 13321 | |
| 13322 | extern void tputs (const char *, int, int (*)(int)); |
| 13323 | int main (int argc, char **argv) |
| 13324 | { |
| 13325 | if (argc == 10000) |
| 13326 | tputs (argv[0], 0, 0); |
| 13327 | return 0; |
| 13328 | } |
| 13329 | |
| 13330 | _ACEOF |
| 13331 | if ac_fn_c_try_run "$LINENO"; then : |
| 13332 | |
| 13333 | else |
| 13334 | msg=no |
| 13335 | fi |
| 13336 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13337 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13338 | fi |
| 13339 | |
| 13340 | LIBS=$OLIBS |
| 13341 | if test "X$msg" != Xno; then |
| 13342 | break |
| 13343 | fi |
| 13344 | done |
| 13345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
| 13346 | $as_echo "$msg" >&6; } |
| 13347 | if test "X$msg" = Xno; then |
| 13348 | as_fn_error "The required function \`tputs' was not found in any library. |
| 13349 | The following libraries were tried (in order): |
| 13350 | libtinfo, libncurses, libterminfo, libtermcap, libcurses |
| 13351 | Please try installing whichever of these libraries is most appropriate |
| 13352 | for your system, together with its header files. |
| 13353 | For example, a libncurses-dev(el) or similar package." "$LINENO" 5 |
| 13354 | fi |
| 13355 | |
| 13356 | ## Use termcap instead of terminfo? |
| 13357 | ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500. |
| 13358 | TERMINFO=yes |
| 13359 | ## FIXME? In the cases below where we unconditionally set |
| 13360 | ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo, |
| 13361 | ## if that was found above to have tputs. |
| 13362 | ## Should we use the gnu* logic everywhere? |
| 13363 | case "$opsys" in |
| 13364 | ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2. |
| 13365 | ## The ncurses library has been moved out of the System framework in |
| 13366 | ## Mac OS X 10.2. So if configure detects it, set the command-line |
| 13367 | ## option to use it. |
| 13368 | darwin) LIBS_TERMCAP="-lncurses" ;; |
| 13369 | |
| 13370 | gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;; |
| 13371 | |
| 13372 | freebsd) |
| 13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 |
| 13374 | $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } |
| 13375 | if test "${emacs_cv_freebsd_terminfo+set}" = set; then : |
| 13376 | $as_echo_n "(cached) " >&6 |
| 13377 | else |
| 13378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13379 | /* end confdefs.h. */ |
| 13380 | #include <osreldate.h> |
| 13381 | int |
| 13382 | main () |
| 13383 | { |
| 13384 | #if __FreeBSD_version < 400000 |
| 13385 | fail; |
| 13386 | #endif |
| 13387 | |
| 13388 | ; |
| 13389 | return 0; |
| 13390 | } |
| 13391 | _ACEOF |
| 13392 | if ac_fn_c_try_link "$LINENO"; then : |
| 13393 | emacs_cv_freebsd_terminfo=yes |
| 13394 | else |
| 13395 | emacs_cv_freebsd_terminfo=no |
| 13396 | fi |
| 13397 | rm -f core conftest.err conftest.$ac_objext \ |
| 13398 | conftest$ac_exeext conftest.$ac_ext |
| 13399 | fi |
| 13400 | |
| 13401 | |
| 13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 |
| 13403 | $as_echo "$emacs_cv_freebsd_terminfo" >&6; } |
| 13404 | |
| 13405 | if test $emacs_cv_freebsd_terminfo = yes; then |
| 13406 | LIBS_TERMCAP="-lncurses" |
| 13407 | else |
| 13408 | TERMINFO=no |
| 13409 | LIBS_TERMCAP="-ltermcap" |
| 13410 | fi |
| 13411 | ;; |
| 13412 | |
| 13413 | netbsd) |
| 13414 | if test "x$LIBS_TERMCAP" != "x-lterminfo"; then |
| 13415 | TERMINFO=no |
| 13416 | LIBS_TERMCAP="-ltermcap" |
| 13417 | fi |
| 13418 | ;; |
| 13419 | |
| 13420 | openbsd) LIBS_TERMCAP="-lncurses" ;; |
| 13421 | |
| 13422 | ## hpux: Make sure we get select from libc rather than from libcurses |
| 13423 | ## because libcurses on HPUX 10.10 has a broken version of select. |
| 13424 | ## We used to use -lc -lcurses, but this may be cleaner. |
| 13425 | ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly |
| 13426 | # set that way, now it uses the default). Isn't this a contradiction? |
| 13427 | hpux*) LIBS_TERMCAP="-ltermcap" ;; |
| 13428 | |
| 13429 | esac |
| 13430 | |
| 13431 | TERMCAP_OBJ=tparam.o |
| 13432 | if test $TERMINFO = yes; then |
| 13433 | |
| 13434 | $as_echo "#define TERMINFO 1" >>confdefs.h |
| 13435 | |
| 13436 | TERMCAP_OBJ=terminfo.o |
| 13437 | fi |
| 13438 | |
| 13439 | |
| 13440 | |
| 13441 | |
| 13442 | # Do we have res_init, for detecting changes in /etc/resolv.conf? |
| 13443 | # On Darwin, res_init appears not to be useful: see bug#562 and |
| 13444 | # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html |
| 13445 | resolv=no |
| 13446 | |
| 13447 | if test $opsys != darwin; then |
| 13448 | |
| 13449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13450 | /* end confdefs.h. */ |
| 13451 | #include <netinet/in.h> |
| 13452 | #include <arpa/nameser.h> |
| 13453 | #include <resolv.h> |
| 13454 | int |
| 13455 | main () |
| 13456 | { |
| 13457 | return res_init(); |
| 13458 | ; |
| 13459 | return 0; |
| 13460 | } |
| 13461 | _ACEOF |
| 13462 | if ac_fn_c_try_link "$LINENO"; then : |
| 13463 | have_res_init=yes |
| 13464 | else |
| 13465 | have_res_init=no |
| 13466 | fi |
| 13467 | rm -f core conftest.err conftest.$ac_objext \ |
| 13468 | conftest$ac_exeext conftest.$ac_ext |
| 13469 | if test "$have_res_init" = no; then |
| 13470 | OLIBS="$LIBS" |
| 13471 | LIBS="$LIBS -lresolv" |
| 13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 |
| 13473 | $as_echo_n "checking for res_init with -lresolv... " >&6; } |
| 13474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13475 | /* end confdefs.h. */ |
| 13476 | #include <netinet/in.h> |
| 13477 | #include <arpa/nameser.h> |
| 13478 | #include <resolv.h> |
| 13479 | int |
| 13480 | main () |
| 13481 | { |
| 13482 | return res_init(); |
| 13483 | ; |
| 13484 | return 0; |
| 13485 | } |
| 13486 | _ACEOF |
| 13487 | if ac_fn_c_try_link "$LINENO"; then : |
| 13488 | have_res_init=yes |
| 13489 | else |
| 13490 | have_res_init=no |
| 13491 | fi |
| 13492 | rm -f core conftest.err conftest.$ac_objext \ |
| 13493 | conftest$ac_exeext conftest.$ac_ext |
| 13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 |
| 13495 | $as_echo "$have_res_init" >&6; } |
| 13496 | if test "$have_res_init" = yes ; then |
| 13497 | resolv=yes |
| 13498 | fi |
| 13499 | LIBS="$OLIBS" |
| 13500 | fi |
| 13501 | |
| 13502 | if test "$have_res_init" = yes; then |
| 13503 | |
| 13504 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h |
| 13505 | |
| 13506 | fi |
| 13507 | fi |
| 13508 | # Do we need the Hesiod library to provide the support routines? |
| 13509 | LIBHESIOD= |
| 13510 | if test "$with_hesiod" != no ; then |
| 13511 | # Don't set $LIBS here -- see comments above. FIXME which comments? |
| 13512 | ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" |
| 13513 | if test "x$ac_cv_func_res_send" = x""yes; then : |
| 13514 | |
| 13515 | else |
| 13516 | ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" |
| 13517 | if test "x$ac_cv_func___res_send" = x""yes; then : |
| 13518 | |
| 13519 | else |
| 13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 |
| 13521 | $as_echo_n "checking for res_send in -lresolv... " >&6; } |
| 13522 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then : |
| 13523 | $as_echo_n "(cached) " >&6 |
| 13524 | else |
| 13525 | ac_check_lib_save_LIBS=$LIBS |
| 13526 | LIBS="-lresolv $LIBS" |
| 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13528 | /* end confdefs.h. */ |
| 13529 | |
| 13530 | /* Override any GCC internal prototype to avoid an error. |
| 13531 | Use char because int might match the return type of a GCC |
| 13532 | builtin and then its argument prototype would still apply. */ |
| 13533 | #ifdef __cplusplus |
| 13534 | extern "C" |
| 13535 | #endif |
| 13536 | char res_send (); |
| 13537 | int |
| 13538 | main () |
| 13539 | { |
| 13540 | return res_send (); |
| 13541 | ; |
| 13542 | return 0; |
| 13543 | } |
| 13544 | _ACEOF |
| 13545 | if ac_fn_c_try_link "$LINENO"; then : |
| 13546 | ac_cv_lib_resolv_res_send=yes |
| 13547 | else |
| 13548 | ac_cv_lib_resolv_res_send=no |
| 13549 | fi |
| 13550 | rm -f core conftest.err conftest.$ac_objext \ |
| 13551 | conftest$ac_exeext conftest.$ac_ext |
| 13552 | LIBS=$ac_check_lib_save_LIBS |
| 13553 | fi |
| 13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 |
| 13555 | $as_echo "$ac_cv_lib_resolv_res_send" >&6; } |
| 13556 | if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : |
| 13557 | resolv=yes |
| 13558 | else |
| 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 |
| 13560 | $as_echo_n "checking for __res_send in -lresolv... " >&6; } |
| 13561 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then : |
| 13562 | $as_echo_n "(cached) " >&6 |
| 13563 | else |
| 13564 | ac_check_lib_save_LIBS=$LIBS |
| 13565 | LIBS="-lresolv $LIBS" |
| 13566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13567 | /* end confdefs.h. */ |
| 13568 | |
| 13569 | /* Override any GCC internal prototype to avoid an error. |
| 13570 | Use char because int might match the return type of a GCC |
| 13571 | builtin and then its argument prototype would still apply. */ |
| 13572 | #ifdef __cplusplus |
| 13573 | extern "C" |
| 13574 | #endif |
| 13575 | char __res_send (); |
| 13576 | int |
| 13577 | main () |
| 13578 | { |
| 13579 | return __res_send (); |
| 13580 | ; |
| 13581 | return 0; |
| 13582 | } |
| 13583 | _ACEOF |
| 13584 | if ac_fn_c_try_link "$LINENO"; then : |
| 13585 | ac_cv_lib_resolv___res_send=yes |
| 13586 | else |
| 13587 | ac_cv_lib_resolv___res_send=no |
| 13588 | fi |
| 13589 | rm -f core conftest.err conftest.$ac_objext \ |
| 13590 | conftest$ac_exeext conftest.$ac_ext |
| 13591 | LIBS=$ac_check_lib_save_LIBS |
| 13592 | fi |
| 13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 |
| 13594 | $as_echo "$ac_cv_lib_resolv___res_send" >&6; } |
| 13595 | if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : |
| 13596 | resolv=yes |
| 13597 | fi |
| 13598 | |
| 13599 | fi |
| 13600 | |
| 13601 | fi |
| 13602 | |
| 13603 | fi |
| 13604 | |
| 13605 | if test "$resolv" = yes ; then |
| 13606 | RESOLVLIB=-lresolv |
| 13607 | else |
| 13608 | RESOLVLIB= |
| 13609 | fi |
| 13610 | ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" |
| 13611 | if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : |
| 13612 | |
| 13613 | else |
| 13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 |
| 13615 | $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } |
| 13616 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : |
| 13617 | $as_echo_n "(cached) " >&6 |
| 13618 | else |
| 13619 | ac_check_lib_save_LIBS=$LIBS |
| 13620 | LIBS="-lhesiod $RESOLVLIB $LIBS" |
| 13621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13622 | /* end confdefs.h. */ |
| 13623 | |
| 13624 | /* Override any GCC internal prototype to avoid an error. |
| 13625 | Use char because int might match the return type of a GCC |
| 13626 | builtin and then its argument prototype would still apply. */ |
| 13627 | #ifdef __cplusplus |
| 13628 | extern "C" |
| 13629 | #endif |
| 13630 | char hes_getmailhost (); |
| 13631 | int |
| 13632 | main () |
| 13633 | { |
| 13634 | return hes_getmailhost (); |
| 13635 | ; |
| 13636 | return 0; |
| 13637 | } |
| 13638 | _ACEOF |
| 13639 | if ac_fn_c_try_link "$LINENO"; then : |
| 13640 | ac_cv_lib_hesiod_hes_getmailhost=yes |
| 13641 | else |
| 13642 | ac_cv_lib_hesiod_hes_getmailhost=no |
| 13643 | fi |
| 13644 | rm -f core conftest.err conftest.$ac_objext \ |
| 13645 | conftest$ac_exeext conftest.$ac_ext |
| 13646 | LIBS=$ac_check_lib_save_LIBS |
| 13647 | fi |
| 13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
| 13649 | $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } |
| 13650 | if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : |
| 13651 | hesiod=yes |
| 13652 | else |
| 13653 | : |
| 13654 | fi |
| 13655 | |
| 13656 | fi |
| 13657 | |
| 13658 | |
| 13659 | if test x"$hesiod" = xyes; then |
| 13660 | |
| 13661 | $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h |
| 13662 | |
| 13663 | LIBHESIOD=-lhesiod |
| 13664 | fi |
| 13665 | fi |
| 13666 | |
| 13667 | |
| 13668 | # Do we need libresolv (due to res_init or Hesiod)? |
| 13669 | if test "$resolv" = yes && test $opsys != darwin; then |
| 13670 | |
| 13671 | $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h |
| 13672 | |
| 13673 | LIBRESOLV=-lresolv |
| 13674 | else |
| 13675 | LIBRESOLV= |
| 13676 | fi |
| 13677 | |
| 13678 | |
| 13679 | # These tell us which Kerberos-related libraries to use. |
| 13680 | COM_ERRLIB= |
| 13681 | CRYPTOLIB= |
| 13682 | KRB5LIB= |
| 13683 | DESLIB= |
| 13684 | KRB4LIB= |
| 13685 | |
| 13686 | if test "${with_kerberos}" != no; then |
| 13687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 |
| 13688 | $as_echo_n "checking for com_err in -lcom_err... " >&6; } |
| 13689 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then : |
| 13690 | $as_echo_n "(cached) " >&6 |
| 13691 | else |
| 13692 | ac_check_lib_save_LIBS=$LIBS |
| 13693 | LIBS="-lcom_err $LIBS" |
| 13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13695 | /* end confdefs.h. */ |
| 13696 | |
| 13697 | /* Override any GCC internal prototype to avoid an error. |
| 13698 | Use char because int might match the return type of a GCC |
| 13699 | builtin and then its argument prototype would still apply. */ |
| 13700 | #ifdef __cplusplus |
| 13701 | extern "C" |
| 13702 | #endif |
| 13703 | char com_err (); |
| 13704 | int |
| 13705 | main () |
| 13706 | { |
| 13707 | return com_err (); |
| 13708 | ; |
| 13709 | return 0; |
| 13710 | } |
| 13711 | _ACEOF |
| 13712 | if ac_fn_c_try_link "$LINENO"; then : |
| 13713 | ac_cv_lib_com_err_com_err=yes |
| 13714 | else |
| 13715 | ac_cv_lib_com_err_com_err=no |
| 13716 | fi |
| 13717 | rm -f core conftest.err conftest.$ac_objext \ |
| 13718 | conftest$ac_exeext conftest.$ac_ext |
| 13719 | LIBS=$ac_check_lib_save_LIBS |
| 13720 | fi |
| 13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 |
| 13722 | $as_echo "$ac_cv_lib_com_err_com_err" >&6; } |
| 13723 | if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : |
| 13724 | have_com_err=yes |
| 13725 | else |
| 13726 | have_com_err=no |
| 13727 | fi |
| 13728 | |
| 13729 | if test $have_com_err = yes; then |
| 13730 | COM_ERRLIB=-lcom_err |
| 13731 | LIBS="$COM_ERRLIB $LIBS" |
| 13732 | |
| 13733 | $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h |
| 13734 | |
| 13735 | fi |
| 13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
| 13737 | $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } |
| 13738 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : |
| 13739 | $as_echo_n "(cached) " >&6 |
| 13740 | else |
| 13741 | ac_check_lib_save_LIBS=$LIBS |
| 13742 | LIBS="-lcrypto $LIBS" |
| 13743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13744 | /* end confdefs.h. */ |
| 13745 | |
| 13746 | /* Override any GCC internal prototype to avoid an error. |
| 13747 | Use char because int might match the return type of a GCC |
| 13748 | builtin and then its argument prototype would still apply. */ |
| 13749 | #ifdef __cplusplus |
| 13750 | extern "C" |
| 13751 | #endif |
| 13752 | char mit_des_cbc_encrypt (); |
| 13753 | int |
| 13754 | main () |
| 13755 | { |
| 13756 | return mit_des_cbc_encrypt (); |
| 13757 | ; |
| 13758 | return 0; |
| 13759 | } |
| 13760 | _ACEOF |
| 13761 | if ac_fn_c_try_link "$LINENO"; then : |
| 13762 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
| 13763 | else |
| 13764 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
| 13765 | fi |
| 13766 | rm -f core conftest.err conftest.$ac_objext \ |
| 13767 | conftest$ac_exeext conftest.$ac_ext |
| 13768 | LIBS=$ac_check_lib_save_LIBS |
| 13769 | fi |
| 13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
| 13771 | $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } |
| 13772 | if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : |
| 13773 | have_crypto=yes |
| 13774 | else |
| 13775 | have_crypto=no |
| 13776 | fi |
| 13777 | |
| 13778 | if test $have_crypto = yes; then |
| 13779 | CRYPTOLIB=-lcrypto |
| 13780 | LIBS="$CRYPTOLIB $LIBS" |
| 13781 | |
| 13782 | $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
| 13783 | |
| 13784 | fi |
| 13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
| 13786 | $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } |
| 13787 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : |
| 13788 | $as_echo_n "(cached) " >&6 |
| 13789 | else |
| 13790 | ac_check_lib_save_LIBS=$LIBS |
| 13791 | LIBS="-lk5crypto $LIBS" |
| 13792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13793 | /* end confdefs.h. */ |
| 13794 | |
| 13795 | /* Override any GCC internal prototype to avoid an error. |
| 13796 | Use char because int might match the return type of a GCC |
| 13797 | builtin and then its argument prototype would still apply. */ |
| 13798 | #ifdef __cplusplus |
| 13799 | extern "C" |
| 13800 | #endif |
| 13801 | char mit_des_cbc_encrypt (); |
| 13802 | int |
| 13803 | main () |
| 13804 | { |
| 13805 | return mit_des_cbc_encrypt (); |
| 13806 | ; |
| 13807 | return 0; |
| 13808 | } |
| 13809 | _ACEOF |
| 13810 | if ac_fn_c_try_link "$LINENO"; then : |
| 13811 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
| 13812 | else |
| 13813 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
| 13814 | fi |
| 13815 | rm -f core conftest.err conftest.$ac_objext \ |
| 13816 | conftest$ac_exeext conftest.$ac_ext |
| 13817 | LIBS=$ac_check_lib_save_LIBS |
| 13818 | fi |
| 13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
| 13820 | $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } |
| 13821 | if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : |
| 13822 | have_k5crypto=yes |
| 13823 | else |
| 13824 | have_k5crypto=no |
| 13825 | fi |
| 13826 | |
| 13827 | if test $have_k5crypto = yes; then |
| 13828 | CRYPTOLIB=-lk5crypto |
| 13829 | LIBS="$CRYPTOLIB $LIBS" |
| 13830 | |
| 13831 | $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h |
| 13832 | |
| 13833 | fi |
| 13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 |
| 13835 | $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } |
| 13836 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : |
| 13837 | $as_echo_n "(cached) " >&6 |
| 13838 | else |
| 13839 | ac_check_lib_save_LIBS=$LIBS |
| 13840 | LIBS="-lkrb5 $LIBS" |
| 13841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13842 | /* end confdefs.h. */ |
| 13843 | |
| 13844 | /* Override any GCC internal prototype to avoid an error. |
| 13845 | Use char because int might match the return type of a GCC |
| 13846 | builtin and then its argument prototype would still apply. */ |
| 13847 | #ifdef __cplusplus |
| 13848 | extern "C" |
| 13849 | #endif |
| 13850 | char krb5_init_context (); |
| 13851 | int |
| 13852 | main () |
| 13853 | { |
| 13854 | return krb5_init_context (); |
| 13855 | ; |
| 13856 | return 0; |
| 13857 | } |
| 13858 | _ACEOF |
| 13859 | if ac_fn_c_try_link "$LINENO"; then : |
| 13860 | ac_cv_lib_krb5_krb5_init_context=yes |
| 13861 | else |
| 13862 | ac_cv_lib_krb5_krb5_init_context=no |
| 13863 | fi |
| 13864 | rm -f core conftest.err conftest.$ac_objext \ |
| 13865 | conftest$ac_exeext conftest.$ac_ext |
| 13866 | LIBS=$ac_check_lib_save_LIBS |
| 13867 | fi |
| 13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
| 13869 | $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } |
| 13870 | if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : |
| 13871 | have_krb5=yes |
| 13872 | else |
| 13873 | have_krb5=no |
| 13874 | fi |
| 13875 | |
| 13876 | if test $have_krb5=yes; then |
| 13877 | KRB5LIB=-lkrb5 |
| 13878 | LIBS="$KRB5LIB $LIBS" |
| 13879 | |
| 13880 | $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h |
| 13881 | |
| 13882 | fi |
| 13883 | if test "${with_kerberos5}" = no; then |
| 13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 |
| 13885 | $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } |
| 13886 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : |
| 13887 | $as_echo_n "(cached) " >&6 |
| 13888 | else |
| 13889 | ac_check_lib_save_LIBS=$LIBS |
| 13890 | LIBS="-ldes425 $LIBS" |
| 13891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13892 | /* end confdefs.h. */ |
| 13893 | |
| 13894 | /* Override any GCC internal prototype to avoid an error. |
| 13895 | Use char because int might match the return type of a GCC |
| 13896 | builtin and then its argument prototype would still apply. */ |
| 13897 | #ifdef __cplusplus |
| 13898 | extern "C" |
| 13899 | #endif |
| 13900 | char des_cbc_encrypt (); |
| 13901 | int |
| 13902 | main () |
| 13903 | { |
| 13904 | return des_cbc_encrypt (); |
| 13905 | ; |
| 13906 | return 0; |
| 13907 | } |
| 13908 | _ACEOF |
| 13909 | if ac_fn_c_try_link "$LINENO"; then : |
| 13910 | ac_cv_lib_des425_des_cbc_encrypt=yes |
| 13911 | else |
| 13912 | ac_cv_lib_des425_des_cbc_encrypt=no |
| 13913 | fi |
| 13914 | rm -f core conftest.err conftest.$ac_objext \ |
| 13915 | conftest$ac_exeext conftest.$ac_ext |
| 13916 | LIBS=$ac_check_lib_save_LIBS |
| 13917 | fi |
| 13918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
| 13919 | $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } |
| 13920 | if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : |
| 13921 | have_des425=yes |
| 13922 | else |
| 13923 | have_des425=no |
| 13924 | fi |
| 13925 | |
| 13926 | if test $have_des425 = yes; then |
| 13927 | DESLIB=-ldes425 |
| 13928 | LIBS="$DESLIB $LIBS" |
| 13929 | |
| 13930 | $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h |
| 13931 | |
| 13932 | else |
| 13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
| 13934 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
| 13935 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : |
| 13936 | $as_echo_n "(cached) " >&6 |
| 13937 | else |
| 13938 | ac_check_lib_save_LIBS=$LIBS |
| 13939 | LIBS="-ldes $LIBS" |
| 13940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13941 | /* end confdefs.h. */ |
| 13942 | |
| 13943 | /* Override any GCC internal prototype to avoid an error. |
| 13944 | Use char because int might match the return type of a GCC |
| 13945 | builtin and then its argument prototype would still apply. */ |
| 13946 | #ifdef __cplusplus |
| 13947 | extern "C" |
| 13948 | #endif |
| 13949 | char des_cbc_encrypt (); |
| 13950 | int |
| 13951 | main () |
| 13952 | { |
| 13953 | return des_cbc_encrypt (); |
| 13954 | ; |
| 13955 | return 0; |
| 13956 | } |
| 13957 | _ACEOF |
| 13958 | if ac_fn_c_try_link "$LINENO"; then : |
| 13959 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 13960 | else |
| 13961 | ac_cv_lib_des_des_cbc_encrypt=no |
| 13962 | fi |
| 13963 | rm -f core conftest.err conftest.$ac_objext \ |
| 13964 | conftest$ac_exeext conftest.$ac_ext |
| 13965 | LIBS=$ac_check_lib_save_LIBS |
| 13966 | fi |
| 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 13968 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
| 13969 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : |
| 13970 | have_des=yes |
| 13971 | else |
| 13972 | have_des=no |
| 13973 | fi |
| 13974 | |
| 13975 | if test $have_des = yes; then |
| 13976 | DESLIB=-ldes |
| 13977 | LIBS="$DESLIB $LIBS" |
| 13978 | |
| 13979 | $as_echo "#define HAVE_LIBDES 1" >>confdefs.h |
| 13980 | |
| 13981 | fi |
| 13982 | fi |
| 13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 |
| 13984 | $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } |
| 13985 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : |
| 13986 | $as_echo_n "(cached) " >&6 |
| 13987 | else |
| 13988 | ac_check_lib_save_LIBS=$LIBS |
| 13989 | LIBS="-lkrb4 $LIBS" |
| 13990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13991 | /* end confdefs.h. */ |
| 13992 | |
| 13993 | /* Override any GCC internal prototype to avoid an error. |
| 13994 | Use char because int might match the return type of a GCC |
| 13995 | builtin and then its argument prototype would still apply. */ |
| 13996 | #ifdef __cplusplus |
| 13997 | extern "C" |
| 13998 | #endif |
| 13999 | char krb_get_cred (); |
| 14000 | int |
| 14001 | main () |
| 14002 | { |
| 14003 | return krb_get_cred (); |
| 14004 | ; |
| 14005 | return 0; |
| 14006 | } |
| 14007 | _ACEOF |
| 14008 | if ac_fn_c_try_link "$LINENO"; then : |
| 14009 | ac_cv_lib_krb4_krb_get_cred=yes |
| 14010 | else |
| 14011 | ac_cv_lib_krb4_krb_get_cred=no |
| 14012 | fi |
| 14013 | rm -f core conftest.err conftest.$ac_objext \ |
| 14014 | conftest$ac_exeext conftest.$ac_ext |
| 14015 | LIBS=$ac_check_lib_save_LIBS |
| 14016 | fi |
| 14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
| 14018 | $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } |
| 14019 | if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : |
| 14020 | have_krb4=yes |
| 14021 | else |
| 14022 | have_krb4=no |
| 14023 | fi |
| 14024 | |
| 14025 | if test $have_krb4 = yes; then |
| 14026 | KRB4LIB=-lkrb4 |
| 14027 | LIBS="$KRB4LIB $LIBS" |
| 14028 | |
| 14029 | $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h |
| 14030 | |
| 14031 | else |
| 14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 |
| 14033 | $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } |
| 14034 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : |
| 14035 | $as_echo_n "(cached) " >&6 |
| 14036 | else |
| 14037 | ac_check_lib_save_LIBS=$LIBS |
| 14038 | LIBS="-lkrb $LIBS" |
| 14039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14040 | /* end confdefs.h. */ |
| 14041 | |
| 14042 | /* Override any GCC internal prototype to avoid an error. |
| 14043 | Use char because int might match the return type of a GCC |
| 14044 | builtin and then its argument prototype would still apply. */ |
| 14045 | #ifdef __cplusplus |
| 14046 | extern "C" |
| 14047 | #endif |
| 14048 | char krb_get_cred (); |
| 14049 | int |
| 14050 | main () |
| 14051 | { |
| 14052 | return krb_get_cred (); |
| 14053 | ; |
| 14054 | return 0; |
| 14055 | } |
| 14056 | _ACEOF |
| 14057 | if ac_fn_c_try_link "$LINENO"; then : |
| 14058 | ac_cv_lib_krb_krb_get_cred=yes |
| 14059 | else |
| 14060 | ac_cv_lib_krb_krb_get_cred=no |
| 14061 | fi |
| 14062 | rm -f core conftest.err conftest.$ac_objext \ |
| 14063 | conftest$ac_exeext conftest.$ac_ext |
| 14064 | LIBS=$ac_check_lib_save_LIBS |
| 14065 | fi |
| 14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
| 14067 | $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } |
| 14068 | if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : |
| 14069 | have_krb=yes |
| 14070 | else |
| 14071 | have_krb=no |
| 14072 | fi |
| 14073 | |
| 14074 | if test $have_krb = yes; then |
| 14075 | KRB4LIB=-lkrb |
| 14076 | LIBS="$KRB4LIB $LIBS" |
| 14077 | |
| 14078 | $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h |
| 14079 | |
| 14080 | fi |
| 14081 | fi |
| 14082 | fi |
| 14083 | |
| 14084 | if test "${with_kerberos5}" != no; then |
| 14085 | for ac_header in krb5.h |
| 14086 | do : |
| 14087 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" |
| 14088 | if test "x$ac_cv_header_krb5_h" = x""yes; then : |
| 14089 | cat >>confdefs.h <<_ACEOF |
| 14090 | #define HAVE_KRB5_H 1 |
| 14091 | _ACEOF |
| 14092 | ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> |
| 14093 | " |
| 14094 | if test "x$ac_cv_member_krb5_error_text" = x""yes; then : |
| 14095 | |
| 14096 | cat >>confdefs.h <<_ACEOF |
| 14097 | #define HAVE_KRB5_ERROR_TEXT 1 |
| 14098 | _ACEOF |
| 14099 | |
| 14100 | |
| 14101 | fi |
| 14102 | ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> |
| 14103 | " |
| 14104 | if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : |
| 14105 | |
| 14106 | cat >>confdefs.h <<_ACEOF |
| 14107 | #define HAVE_KRB5_ERROR_E_TEXT 1 |
| 14108 | _ACEOF |
| 14109 | |
| 14110 | |
| 14111 | fi |
| 14112 | |
| 14113 | fi |
| 14114 | |
| 14115 | done |
| 14116 | |
| 14117 | else |
| 14118 | for ac_header in des.h |
| 14119 | do : |
| 14120 | ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" |
| 14121 | if test "x$ac_cv_header_des_h" = x""yes; then : |
| 14122 | cat >>confdefs.h <<_ACEOF |
| 14123 | #define HAVE_DES_H 1 |
| 14124 | _ACEOF |
| 14125 | |
| 14126 | else |
| 14127 | for ac_header in kerberosIV/des.h |
| 14128 | do : |
| 14129 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" |
| 14130 | if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : |
| 14131 | cat >>confdefs.h <<_ACEOF |
| 14132 | #define HAVE_KERBEROSIV_DES_H 1 |
| 14133 | _ACEOF |
| 14134 | |
| 14135 | else |
| 14136 | for ac_header in kerberos/des.h |
| 14137 | do : |
| 14138 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" |
| 14139 | if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : |
| 14140 | cat >>confdefs.h <<_ACEOF |
| 14141 | #define HAVE_KERBEROS_DES_H 1 |
| 14142 | _ACEOF |
| 14143 | |
| 14144 | fi |
| 14145 | |
| 14146 | done |
| 14147 | |
| 14148 | fi |
| 14149 | |
| 14150 | done |
| 14151 | |
| 14152 | fi |
| 14153 | |
| 14154 | done |
| 14155 | |
| 14156 | for ac_header in krb.h |
| 14157 | do : |
| 14158 | ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" |
| 14159 | if test "x$ac_cv_header_krb_h" = x""yes; then : |
| 14160 | cat >>confdefs.h <<_ACEOF |
| 14161 | #define HAVE_KRB_H 1 |
| 14162 | _ACEOF |
| 14163 | |
| 14164 | else |
| 14165 | for ac_header in kerberosIV/krb.h |
| 14166 | do : |
| 14167 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" |
| 14168 | if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : |
| 14169 | cat >>confdefs.h <<_ACEOF |
| 14170 | #define HAVE_KERBEROSIV_KRB_H 1 |
| 14171 | _ACEOF |
| 14172 | |
| 14173 | else |
| 14174 | for ac_header in kerberos/krb.h |
| 14175 | do : |
| 14176 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" |
| 14177 | if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : |
| 14178 | cat >>confdefs.h <<_ACEOF |
| 14179 | #define HAVE_KERBEROS_KRB_H 1 |
| 14180 | _ACEOF |
| 14181 | |
| 14182 | fi |
| 14183 | |
| 14184 | done |
| 14185 | |
| 14186 | fi |
| 14187 | |
| 14188 | done |
| 14189 | |
| 14190 | fi |
| 14191 | |
| 14192 | done |
| 14193 | |
| 14194 | fi |
| 14195 | for ac_header in com_err.h |
| 14196 | do : |
| 14197 | ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" |
| 14198 | if test "x$ac_cv_header_com_err_h" = x""yes; then : |
| 14199 | cat >>confdefs.h <<_ACEOF |
| 14200 | #define HAVE_COM_ERR_H 1 |
| 14201 | _ACEOF |
| 14202 | |
| 14203 | fi |
| 14204 | |
| 14205 | done |
| 14206 | |
| 14207 | fi |
| 14208 | |
| 14209 | |
| 14210 | |
| 14211 | |
| 14212 | |
| 14213 | |
| 14214 | |
| 14215 | |
| 14216 | |
| 14217 | |
| 14218 | for ac_func in $ac_func_list |
| 14219 | do : |
| 14220 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14221 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14222 | eval as_val=\$$as_ac_var |
| 14223 | if test "x$as_val" = x""yes; then : |
| 14224 | cat >>confdefs.h <<_ACEOF |
| 14225 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14226 | _ACEOF |
| 14227 | |
| 14228 | fi |
| 14229 | done |
| 14230 | |
| 14231 | |
| 14232 | |
| 14233 | |
| 14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 |
| 14235 | $as_echo_n "checking whether localtime caches TZ... " >&6; } |
| 14236 | if test "${emacs_cv_localtime_cache+set}" = set; then : |
| 14237 | $as_echo_n "(cached) " >&6 |
| 14238 | else |
| 14239 | if test x$ac_cv_func_tzset = xyes; then |
| 14240 | if test "$cross_compiling" = yes; then : |
| 14241 | # If we have tzset, assume the worst when cross-compiling. |
| 14242 | emacs_cv_localtime_cache=yes |
| 14243 | else |
| 14244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14245 | /* end confdefs.h. */ |
| 14246 | #include <time.h> |
| 14247 | char TZ_GMT0[] = "TZ=GMT0"; |
| 14248 | char TZ_PST8[] = "TZ=PST8"; |
| 14249 | main() |
| 14250 | { |
| 14251 | time_t now = time ((time_t *) 0); |
| 14252 | int hour_GMT0, hour_unset; |
| 14253 | if (putenv (TZ_GMT0) != 0) |
| 14254 | exit (1); |
| 14255 | hour_GMT0 = localtime (&now)->tm_hour; |
| 14256 | unsetenv("TZ"); |
| 14257 | hour_unset = localtime (&now)->tm_hour; |
| 14258 | if (putenv (TZ_PST8) != 0) |
| 14259 | exit (1); |
| 14260 | if (localtime (&now)->tm_hour == hour_GMT0) |
| 14261 | exit (1); |
| 14262 | unsetenv("TZ"); |
| 14263 | if (localtime (&now)->tm_hour != hour_unset) |
| 14264 | exit (1); |
| 14265 | exit (0); |
| 14266 | } |
| 14267 | _ACEOF |
| 14268 | if ac_fn_c_try_run "$LINENO"; then : |
| 14269 | emacs_cv_localtime_cache=no |
| 14270 | else |
| 14271 | emacs_cv_localtime_cache=yes |
| 14272 | fi |
| 14273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14274 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14275 | fi |
| 14276 | |
| 14277 | else |
| 14278 | # If we lack tzset, report that localtime does not cache TZ, |
| 14279 | # since we can't invalidate the cache if we don't have tzset. |
| 14280 | emacs_cv_localtime_cache=no |
| 14281 | fi |
| 14282 | fi |
| 14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 |
| 14284 | $as_echo "$emacs_cv_localtime_cache" >&6; } |
| 14285 | if test $emacs_cv_localtime_cache = yes; then |
| 14286 | |
| 14287 | $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h |
| 14288 | |
| 14289 | fi |
| 14290 | |
| 14291 | ok_so_far=yes |
| 14292 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
| 14293 | if test "x$ac_cv_func_socket" = x""yes; then : |
| 14294 | |
| 14295 | else |
| 14296 | ok_so_far=no |
| 14297 | fi |
| 14298 | |
| 14299 | if test $ok_so_far = yes; then |
| 14300 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 14301 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 14302 | |
| 14303 | else |
| 14304 | ok_so_far=no |
| 14305 | fi |
| 14306 | |
| 14307 | |
| 14308 | fi |
| 14309 | if test $ok_so_far = yes; then |
| 14310 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 14311 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 14312 | |
| 14313 | else |
| 14314 | ok_so_far=no |
| 14315 | fi |
| 14316 | |
| 14317 | |
| 14318 | fi |
| 14319 | if test $ok_so_far = yes; then |
| 14320 | |
| 14321 | $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h |
| 14322 | |
| 14323 | fi |
| 14324 | |
| 14325 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 14326 | |
| 14327 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h |
| 14328 | |
| 14329 | fi |
| 14330 | |
| 14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 |
| 14332 | $as_echo_n "checking whether system supports dynamic ptys... " >&6; } |
| 14333 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
| 14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14335 | $as_echo "yes" >&6; } |
| 14336 | |
| 14337 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
| 14338 | |
| 14339 | else |
| 14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14341 | $as_echo "no" >&6; } |
| 14342 | fi |
| 14343 | |
| 14344 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 14345 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
| 14346 | |
| 14347 | else |
| 14348 | |
| 14349 | cat >>confdefs.h <<_ACEOF |
| 14350 | #define pid_t int |
| 14351 | _ACEOF |
| 14352 | |
| 14353 | fi |
| 14354 | |
| 14355 | for ac_header in vfork.h |
| 14356 | do : |
| 14357 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| 14358 | if test "x$ac_cv_header_vfork_h" = x""yes; then : |
| 14359 | cat >>confdefs.h <<_ACEOF |
| 14360 | #define HAVE_VFORK_H 1 |
| 14361 | _ACEOF |
| 14362 | |
| 14363 | fi |
| 14364 | |
| 14365 | done |
| 14366 | |
| 14367 | for ac_func in fork vfork |
| 14368 | do : |
| 14369 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14370 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14371 | eval as_val=\$$as_ac_var |
| 14372 | if test "x$as_val" = x""yes; then : |
| 14373 | cat >>confdefs.h <<_ACEOF |
| 14374 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14375 | _ACEOF |
| 14376 | |
| 14377 | fi |
| 14378 | done |
| 14379 | |
| 14380 | if test "x$ac_cv_func_fork" = xyes; then |
| 14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 14382 | $as_echo_n "checking for working fork... " >&6; } |
| 14383 | if test "${ac_cv_func_fork_works+set}" = set; then : |
| 14384 | $as_echo_n "(cached) " >&6 |
| 14385 | else |
| 14386 | if test "$cross_compiling" = yes; then : |
| 14387 | ac_cv_func_fork_works=cross |
| 14388 | else |
| 14389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14390 | /* end confdefs.h. */ |
| 14391 | $ac_includes_default |
| 14392 | int |
| 14393 | main () |
| 14394 | { |
| 14395 | |
| 14396 | /* By Ruediger Kuhlmann. */ |
| 14397 | return fork () < 0; |
| 14398 | |
| 14399 | ; |
| 14400 | return 0; |
| 14401 | } |
| 14402 | _ACEOF |
| 14403 | if ac_fn_c_try_run "$LINENO"; then : |
| 14404 | ac_cv_func_fork_works=yes |
| 14405 | else |
| 14406 | ac_cv_func_fork_works=no |
| 14407 | fi |
| 14408 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14409 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14410 | fi |
| 14411 | |
| 14412 | fi |
| 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 14414 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 14415 | |
| 14416 | else |
| 14417 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 14418 | fi |
| 14419 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 14420 | case $host in |
| 14421 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 14422 | # Override, as these systems have only a dummy fork() stub |
| 14423 | ac_cv_func_fork_works=no |
| 14424 | ;; |
| 14425 | *) |
| 14426 | ac_cv_func_fork_works=yes |
| 14427 | ;; |
| 14428 | esac |
| 14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 14430 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 14431 | fi |
| 14432 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14433 | if test "x$ac_cv_func_vfork" = xyes; then |
| 14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 14435 | $as_echo_n "checking for working vfork... " >&6; } |
| 14436 | if test "${ac_cv_func_vfork_works+set}" = set; then : |
| 14437 | $as_echo_n "(cached) " >&6 |
| 14438 | else |
| 14439 | if test "$cross_compiling" = yes; then : |
| 14440 | ac_cv_func_vfork_works=cross |
| 14441 | else |
| 14442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14443 | /* end confdefs.h. */ |
| 14444 | /* Thanks to Paul Eggert for this test. */ |
| 14445 | $ac_includes_default |
| 14446 | #include <sys/wait.h> |
| 14447 | #ifdef HAVE_VFORK_H |
| 14448 | # include <vfork.h> |
| 14449 | #endif |
| 14450 | /* On some sparc systems, changes by the child to local and incoming |
| 14451 | argument registers are propagated back to the parent. The compiler |
| 14452 | is told about this with #include <vfork.h>, but some compilers |
| 14453 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 14454 | static variable whose address is put into a register that is |
| 14455 | clobbered by the vfork. */ |
| 14456 | static void |
| 14457 | #ifdef __cplusplus |
| 14458 | sparc_address_test (int arg) |
| 14459 | # else |
| 14460 | sparc_address_test (arg) int arg; |
| 14461 | #endif |
| 14462 | { |
| 14463 | static pid_t child; |
| 14464 | if (!child) { |
| 14465 | child = vfork (); |
| 14466 | if (child < 0) { |
| 14467 | perror ("vfork"); |
| 14468 | _exit(2); |
| 14469 | } |
| 14470 | if (!child) { |
| 14471 | arg = getpid(); |
| 14472 | write(-1, "", 0); |
| 14473 | _exit (arg); |
| 14474 | } |
| 14475 | } |
| 14476 | } |
| 14477 | |
| 14478 | int |
| 14479 | main () |
| 14480 | { |
| 14481 | pid_t parent = getpid (); |
| 14482 | pid_t child; |
| 14483 | |
| 14484 | sparc_address_test (0); |
| 14485 | |
| 14486 | child = vfork (); |
| 14487 | |
| 14488 | if (child == 0) { |
| 14489 | /* Here is another test for sparc vfork register problems. This |
| 14490 | test uses lots of local variables, at least as many local |
| 14491 | variables as main has allocated so far including compiler |
| 14492 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 14493 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 14494 | reuse the register of parent for one of the local variables, |
| 14495 | since it will think that parent can't possibly be used any more |
| 14496 | in this routine. Assigning to the local variable will thus |
| 14497 | munge parent in the parent process. */ |
| 14498 | pid_t |
| 14499 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 14500 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 14501 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 14502 | use the same hardware register for all 8 local variables. */ |
| 14503 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 14504 | || p != p5 || p != p6 || p != p7) |
| 14505 | _exit(1); |
| 14506 | |
| 14507 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 14508 | from child file descriptors. If the child closes a descriptor |
| 14509 | before it execs or exits, this munges the parent's descriptor |
| 14510 | as well. Test for this by closing stdout in the child. */ |
| 14511 | _exit(close(fileno(stdout)) != 0); |
| 14512 | } else { |
| 14513 | int status; |
| 14514 | struct stat st; |
| 14515 | |
| 14516 | while (wait(&status) != child) |
| 14517 | ; |
| 14518 | return ( |
| 14519 | /* Was there some problem with vforking? */ |
| 14520 | child < 0 |
| 14521 | |
| 14522 | /* Did the child fail? (This shouldn't happen.) */ |
| 14523 | || status |
| 14524 | |
| 14525 | /* Did the vfork/compiler bug occur? */ |
| 14526 | || parent != getpid() |
| 14527 | |
| 14528 | /* Did the file descriptor bug occur? */ |
| 14529 | || fstat(fileno(stdout), &st) != 0 |
| 14530 | ); |
| 14531 | } |
| 14532 | } |
| 14533 | _ACEOF |
| 14534 | if ac_fn_c_try_run "$LINENO"; then : |
| 14535 | ac_cv_func_vfork_works=yes |
| 14536 | else |
| 14537 | ac_cv_func_vfork_works=no |
| 14538 | fi |
| 14539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14540 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14541 | fi |
| 14542 | |
| 14543 | fi |
| 14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 14545 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 14546 | |
| 14547 | fi; |
| 14548 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 14549 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 14551 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 14552 | fi |
| 14553 | |
| 14554 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 14555 | |
| 14556 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 14557 | |
| 14558 | else |
| 14559 | |
| 14560 | $as_echo "#define vfork fork" >>confdefs.h |
| 14561 | |
| 14562 | fi |
| 14563 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 14564 | |
| 14565 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 14566 | |
| 14567 | fi |
| 14568 | |
| 14569 | |
| 14570 | for ac_func in snprintf |
| 14571 | do : |
| 14572 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 14573 | if test "x$ac_cv_func_snprintf" = x""yes; then : |
| 14574 | cat >>confdefs.h <<_ACEOF |
| 14575 | #define HAVE_SNPRINTF 1 |
| 14576 | _ACEOF |
| 14577 | |
| 14578 | fi |
| 14579 | done |
| 14580 | |
| 14581 | |
| 14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 14583 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 14584 | if test "${emacs_cv_langinfo_codeset+set}" = set; then : |
| 14585 | $as_echo_n "(cached) " >&6 |
| 14586 | else |
| 14587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14588 | /* end confdefs.h. */ |
| 14589 | #include <langinfo.h> |
| 14590 | int |
| 14591 | main () |
| 14592 | { |
| 14593 | char* cs = nl_langinfo(CODESET); |
| 14594 | ; |
| 14595 | return 0; |
| 14596 | } |
| 14597 | _ACEOF |
| 14598 | if ac_fn_c_try_link "$LINENO"; then : |
| 14599 | emacs_cv_langinfo_codeset=yes |
| 14600 | else |
| 14601 | emacs_cv_langinfo_codeset=no |
| 14602 | fi |
| 14603 | rm -f core conftest.err conftest.$ac_objext \ |
| 14604 | conftest$ac_exeext conftest.$ac_ext |
| 14605 | |
| 14606 | fi |
| 14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 |
| 14608 | $as_echo "$emacs_cv_langinfo_codeset" >&6; } |
| 14609 | if test $emacs_cv_langinfo_codeset = yes; then |
| 14610 | |
| 14611 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 14612 | |
| 14613 | fi |
| 14614 | |
| 14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 14616 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 14617 | if test "${ac_cv_type_mbstate_t+set}" = set; then : |
| 14618 | $as_echo_n "(cached) " >&6 |
| 14619 | else |
| 14620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14621 | /* end confdefs.h. */ |
| 14622 | $ac_includes_default |
| 14623 | # include <wchar.h> |
| 14624 | int |
| 14625 | main () |
| 14626 | { |
| 14627 | mbstate_t x; return sizeof x; |
| 14628 | ; |
| 14629 | return 0; |
| 14630 | } |
| 14631 | _ACEOF |
| 14632 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14633 | ac_cv_type_mbstate_t=yes |
| 14634 | else |
| 14635 | ac_cv_type_mbstate_t=no |
| 14636 | fi |
| 14637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14638 | fi |
| 14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 14640 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 14641 | if test $ac_cv_type_mbstate_t = yes; then |
| 14642 | |
| 14643 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 14644 | |
| 14645 | else |
| 14646 | |
| 14647 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 14648 | |
| 14649 | fi |
| 14650 | |
| 14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 |
| 14652 | $as_echo_n "checking for C restricted array declarations... " >&6; } |
| 14653 | if test "${emacs_cv_c_restrict_arr+set}" = set; then : |
| 14654 | $as_echo_n "(cached) " >&6 |
| 14655 | else |
| 14656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14657 | /* end confdefs.h. */ |
| 14658 | void fred (int x[__restrict]); |
| 14659 | int |
| 14660 | main () |
| 14661 | { |
| 14662 | |
| 14663 | ; |
| 14664 | return 0; |
| 14665 | } |
| 14666 | _ACEOF |
| 14667 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14668 | emacs_cv_c_restrict_arr=yes |
| 14669 | else |
| 14670 | emacs_cv_c_restrict_arr=no |
| 14671 | fi |
| 14672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14673 | fi |
| 14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 |
| 14675 | $as_echo "$emacs_cv_c_restrict_arr" >&6; } |
| 14676 | if test "$emacs_cv_c_restrict_arr" = yes; then |
| 14677 | |
| 14678 | $as_echo "#define __restrict_arr __restrict" >>confdefs.h |
| 14679 | |
| 14680 | fi |
| 14681 | |
| 14682 | |
| 14683 | |
| 14684 | $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h |
| 14685 | |
| 14686 | |
| 14687 | |
| 14688 | $as_echo "#define CLASH_DETECTION 1" >>confdefs.h |
| 14689 | |
| 14690 | |
| 14691 | |
| 14692 | |
| 14693 | |
| 14694 | |
| 14695 | ## Note: PTYs are broken on darwin <6. Use at your own risk. |
| 14696 | |
| 14697 | $as_echo "#define HAVE_PTYS 1" >>confdefs.h |
| 14698 | |
| 14699 | |
| 14700 | |
| 14701 | $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h |
| 14702 | |
| 14703 | |
| 14704 | |
| 14705 | |
| 14706 | |
| 14707 | $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h |
| 14708 | |
| 14709 | |
| 14710 | |
| 14711 | $as_echo "#define SEPCHAR ':'" >>confdefs.h |
| 14712 | |
| 14713 | |
| 14714 | |
| 14715 | $as_echo "#define subprocesses 1" >>confdefs.h |
| 14716 | |
| 14717 | |
| 14718 | |
| 14719 | $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h |
| 14720 | |
| 14721 | |
| 14722 | |
| 14723 | |
| 14724 | $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h |
| 14725 | |
| 14726 | |
| 14727 | |
| 14728 | |
| 14729 | |
| 14730 | $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h |
| 14731 | |
| 14732 | |
| 14733 | |
| 14734 | $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h |
| 14735 | |
| 14736 | |
| 14737 | |
| 14738 | $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h |
| 14739 | |
| 14740 | |
| 14741 | |
| 14742 | |
| 14743 | |
| 14744 | case $opsys in |
| 14745 | aix4-2) |
| 14746 | if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then |
| 14747 | $as_echo "#define NO_EDITRES 1" >>confdefs.h |
| 14748 | |
| 14749 | fi |
| 14750 | ;; |
| 14751 | |
| 14752 | hpux*) |
| 14753 | $as_echo "#define NO_EDITRES 1" >>confdefs.h |
| 14754 | |
| 14755 | ;; |
| 14756 | esac |
| 14757 | |
| 14758 | |
| 14759 | case $opsys in |
| 14760 | darwin | gnu | hpux* | *bsd ) |
| 14761 | |
| 14762 | $as_echo "#define NO_TERMIO 1" >>confdefs.h |
| 14763 | |
| 14764 | ;; |
| 14765 | |
| 14766 | irix6-5 | sol2* | unixware ) |
| 14767 | |
| 14768 | $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h |
| 14769 | |
| 14770 | ;; |
| 14771 | esac |
| 14772 | |
| 14773 | |
| 14774 | case $opsys in |
| 14775 | hpux* | irix6-5 | openbsd | sol2* | unixware ) |
| 14776 | |
| 14777 | $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h |
| 14778 | |
| 14779 | ;; |
| 14780 | |
| 14781 | aix4-2) |
| 14782 | |
| 14783 | $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h |
| 14784 | |
| 14785 | |
| 14786 | $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h |
| 14787 | |
| 14788 | |
| 14789 | $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h |
| 14790 | |
| 14791 | |
| 14792 | $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h |
| 14793 | |
| 14794 | |
| 14795 | |
| 14796 | $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h |
| 14797 | |
| 14798 | ;; |
| 14799 | |
| 14800 | freebsd) |
| 14801 | |
| 14802 | $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h |
| 14803 | |
| 14804 | ;; |
| 14805 | |
| 14806 | darwin) |
| 14807 | |
| 14808 | $as_echo "#define NO_ABORT 1" >>confdefs.h |
| 14809 | |
| 14810 | ;; |
| 14811 | esac |
| 14812 | |
| 14813 | case $opsys in |
| 14814 | gnu-* | sol2-10 ) |
| 14815 | |
| 14816 | $as_echo "#define HAVE_PROCFS 1" >>confdefs.h |
| 14817 | |
| 14818 | ;; |
| 14819 | esac |
| 14820 | |
| 14821 | case $opsys in |
| 14822 | darwin | freebsd | netbsd | openbsd ) |
| 14823 | |
| 14824 | $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h |
| 14825 | |
| 14826 | ;; |
| 14827 | esac |
| 14828 | |
| 14829 | case $opsys in |
| 14830 | netbsd | openbsd) sound_device="/dev/audio" ;; |
| 14831 | *) sound_device="/dev/dsp" ;; |
| 14832 | esac |
| 14833 | |
| 14834 | |
| 14835 | cat >>confdefs.h <<_ACEOF |
| 14836 | #define DEFAULT_SOUND_DEVICE "$sound_device" |
| 14837 | _ACEOF |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | case $opsys in |
| 14842 | darwin | gnu-linux | gnu-kfreebsd ) |
| 14843 | |
| 14844 | $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h |
| 14845 | |
| 14846 | ;; |
| 14847 | esac |
| 14848 | |
| 14849 | |
| 14850 | case $opsys in |
| 14851 | cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd) |
| 14852 | |
| 14853 | $as_echo "#define NARROWPROTO 1" >>confdefs.h |
| 14854 | |
| 14855 | ;; |
| 14856 | esac |
| 14857 | |
| 14858 | |
| 14859 | |
| 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
| 14864 | |
| 14865 | case $opsys in |
| 14866 | aix4-2 ) |
| 14867 | $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h |
| 14868 | |
| 14869 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h |
| 14870 | |
| 14871 | $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h |
| 14872 | |
| 14873 | ;; |
| 14874 | |
| 14875 | cygwin ) |
| 14876 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 14877 | |
| 14878 | $as_echo "#define PTY_OPEN do { int dummy; SIGMASKTYPE mask; mask = sigblock (sigmask (SIGCHLD)); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; sigsetmask (mask); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h |
| 14879 | |
| 14880 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14881 | |
| 14882 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14883 | |
| 14884 | ;; |
| 14885 | |
| 14886 | darwin ) |
| 14887 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 14888 | |
| 14889 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 14890 | |
| 14891 | $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h |
| 14892 | |
| 14893 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14894 | |
| 14895 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14896 | |
| 14897 | ;; |
| 14898 | |
| 14899 | gnu | freebsd | netbsd | openbsd ) |
| 14900 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 14901 | |
| 14902 | ;; |
| 14903 | |
| 14904 | gnu-linux | gnu-kfreebsd ) |
| 14905 | if test "x$ac_cv_func_grantpt" = xyes; then |
| 14906 | |
| 14907 | $as_echo "#define UNIX98_PTYS 1" >>confdefs.h |
| 14908 | |
| 14909 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 14910 | |
| 14911 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname; sigblock (sigmask (SIGCHLD)); if (grantpt (fd) == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname(fd))) { sigunblock (sigmask (SIGCHLD)); close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); sigunblock (sigmask (SIGCHLD)); }" >>confdefs.h |
| 14912 | |
| 14913 | if test "x$ac_cv_func_getpt" = xyes; then |
| 14914 | $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h |
| 14915 | |
| 14916 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14917 | |
| 14918 | else |
| 14919 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h |
| 14920 | |
| 14921 | fi |
| 14922 | else |
| 14923 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 14924 | |
| 14925 | fi |
| 14926 | ;; |
| 14927 | |
| 14928 | hpux*) |
| 14929 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 14930 | |
| 14931 | $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h |
| 14932 | |
| 14933 | $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h |
| 14934 | |
| 14935 | ;; |
| 14936 | |
| 14937 | irix6-5 ) |
| 14938 | $as_echo "#define PTY_ITERATION /**/" >>confdefs.h |
| 14939 | |
| 14940 | $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h |
| 14941 | |
| 14942 | $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h |
| 14943 | |
| 14944 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14945 | |
| 14946 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 14947 | |
| 14948 | ;; |
| 14949 | |
| 14950 | sol2* ) |
| 14951 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock (sigmask (SIGCLD)); if (grantpt (fd) == -1) { emacs_close (fd); return -1; } sigunblock (sigmask (SIGCLD)); if (unlockpt (fd) == -1) { emacs_close (fd); return -1; } if (!(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h |
| 14952 | |
| 14953 | ;; |
| 14954 | |
| 14955 | unixware ) |
| 14956 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock(sigmask(SIGCLD)); if (grantpt(fd) == -1) fatal(\"could not grant slave pty\"); sigunblock(sigmask(SIGCLD)); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h |
| 14957 | |
| 14958 | ;; |
| 14959 | esac |
| 14960 | |
| 14961 | |
| 14962 | case $opsys in |
| 14963 | sol2* | unixware ) |
| 14964 | $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h |
| 14965 | |
| 14966 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h |
| 14967 | |
| 14968 | |
| 14969 | $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h |
| 14970 | |
| 14971 | ;; |
| 14972 | esac |
| 14973 | |
| 14974 | |
| 14975 | |
| 14976 | |
| 14977 | case $opsys in |
| 14978 | aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd ) |
| 14979 | $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h |
| 14980 | |
| 14981 | ;; |
| 14982 | |
| 14983 | gnu-linux | gnu-kfreebsd ) |
| 14984 | |
| 14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5 |
| 14986 | $as_echo_n "checking for signals via characters... " >&6; } |
| 14987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14988 | /* end confdefs.h. */ |
| 14989 | |
| 14990 | #include <linux/version.h> |
| 14991 | #if LINUX_VERSION_CODE < 0x20400 |
| 14992 | # error "Linux version too old" |
| 14993 | #endif |
| 14994 | |
| 14995 | int |
| 14996 | main () |
| 14997 | { |
| 14998 | |
| 14999 | ; |
| 15000 | return 0; |
| 15001 | } |
| 15002 | _ACEOF |
| 15003 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15004 | emacs_signals_via_chars=yes |
| 15005 | else |
| 15006 | emacs_signals_via_chars=no |
| 15007 | fi |
| 15008 | rm -f conftest.err conftest.$ac_ext |
| 15009 | |
| 15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5 |
| 15011 | $as_echo "$emacs_signals_via_chars" >&6; } |
| 15012 | test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h |
| 15013 | |
| 15014 | ;; |
| 15015 | esac |
| 15016 | |
| 15017 | |
| 15018 | |
| 15019 | |
| 15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5 |
| 15021 | $as_echo_n "checking whether we are using the GNU C library... " >&6; } |
| 15022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15023 | /* end confdefs.h. */ |
| 15024 | |
| 15025 | #include <features.h> |
| 15026 | #ifndef __GNU_LIBRARY__ |
| 15027 | # error "this is not the GNU C library" |
| 15028 | #endif |
| 15029 | |
| 15030 | int |
| 15031 | main () |
| 15032 | { |
| 15033 | |
| 15034 | ; |
| 15035 | return 0; |
| 15036 | } |
| 15037 | _ACEOF |
| 15038 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15039 | emacs_glibc=yes |
| 15040 | else |
| 15041 | emacs_glibc=no |
| 15042 | fi |
| 15043 | rm -f conftest.err conftest.$ac_ext |
| 15044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5 |
| 15045 | $as_echo "$emacs_glibc" >&6; } |
| 15046 | |
| 15047 | if test $emacs_glibc = yes; then |
| 15048 | |
| 15049 | emacs_pending_output=unknown |
| 15050 | |
| 15051 | case $opsys in |
| 15052 | gnu | gnu-linux | gnu-kfreebsd ) |
| 15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5 |
| 15054 | $as_echo_n "checking for style of pending output formalism... " >&6; } |
| 15055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15056 | /* end confdefs.h. */ |
| 15057 | |
| 15058 | #include <stdio.h> |
| 15059 | #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM) |
| 15060 | # error "stdio definitions not found" |
| 15061 | #endif |
| 15062 | |
| 15063 | int |
| 15064 | main () |
| 15065 | { |
| 15066 | |
| 15067 | ; |
| 15068 | return 0; |
| 15069 | } |
| 15070 | _ACEOF |
| 15071 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15072 | emacs_pending_output=new |
| 15073 | fi |
| 15074 | rm -f conftest.err conftest.$ac_ext |
| 15075 | |
| 15076 | if test $emacs_pending_output = unknown; then |
| 15077 | case $opsys in |
| 15078 | gnu-linux | gnu-kfreebsd) |
| 15079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15080 | /* end confdefs.h. */ |
| 15081 | |
| 15082 | #include <stdio.h> |
| 15083 | #ifndef __UCLIBC__ |
| 15084 | # error "not using uclibc" |
| 15085 | #endif |
| 15086 | |
| 15087 | int |
| 15088 | main () |
| 15089 | { |
| 15090 | |
| 15091 | ; |
| 15092 | return 0; |
| 15093 | } |
| 15094 | _ACEOF |
| 15095 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15096 | emacs_pending_output=uclibc |
| 15097 | else |
| 15098 | emacs_pending_output=old |
| 15099 | fi |
| 15100 | rm -f conftest.err conftest.$ac_ext |
| 15101 | ;; |
| 15102 | esac |
| 15103 | fi |
| 15104 | |
| 15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5 |
| 15106 | $as_echo "$emacs_pending_output" >&6; } |
| 15107 | |
| 15108 | case $emacs_pending_output in |
| 15109 | new) |
| 15110 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h |
| 15111 | |
| 15112 | ;; |
| 15113 | uclibc) |
| 15114 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h |
| 15115 | |
| 15116 | ;; |
| 15117 | old) |
| 15118 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h |
| 15119 | |
| 15120 | ;; |
| 15121 | esac |
| 15122 | ;; |
| 15123 | esac |
| 15124 | if test $emacs_pending_output = unknown; then |
| 15125 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h |
| 15126 | |
| 15127 | fi |
| 15128 | |
| 15129 | else |
| 15130 | case $opsys in |
| 15131 | cygwin | darwin | freebsd | netbsd | openbsd ) |
| 15132 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h |
| 15133 | |
| 15134 | ;; |
| 15135 | |
| 15136 | unixware) |
| 15137 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h |
| 15138 | |
| 15139 | ;; |
| 15140 | |
| 15141 | *) |
| 15142 | if test x$ac_cv_header_stdio_ext_h = xyes && \ |
| 15143 | test x$ac_cv_func___fpending = xyes; then |
| 15144 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h |
| 15145 | |
| 15146 | |
| 15147 | $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h |
| 15148 | |
| 15149 | else |
| 15150 | $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h |
| 15151 | |
| 15152 | fi |
| 15153 | ;; |
| 15154 | esac |
| 15155 | fi |
| 15156 | |
| 15157 | |
| 15158 | |
| 15159 | |
| 15160 | case $opsys in |
| 15161 | gnu) |
| 15162 | $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h |
| 15163 | |
| 15164 | ;; |
| 15165 | |
| 15166 | hpux*) |
| 15167 | $as_echo "#define DATA_START 0x40000000" >>confdefs.h |
| 15168 | |
| 15169 | $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h |
| 15170 | |
| 15171 | ;; |
| 15172 | irix6-5) |
| 15173 | $as_echo "#define DATA_START 0x10000000" >>confdefs.h |
| 15174 | |
| 15175 | $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h |
| 15176 | |
| 15177 | ;; |
| 15178 | esac |
| 15179 | |
| 15180 | |
| 15181 | |
| 15182 | |
| 15183 | |
| 15184 | case $opsys in |
| 15185 | darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h |
| 15186 | ;; |
| 15187 | |
| 15188 | gnu | freebsd | netbsd | openbsd ) |
| 15189 | |
| 15190 | $as_echo "#define TABDLY OXTABS" >>confdefs.h |
| 15191 | |
| 15192 | $as_echo "#define TAB3 OXTABS" >>confdefs.h |
| 15193 | |
| 15194 | ;; |
| 15195 | |
| 15196 | gnu-linux | gnu-kfreebsd ) |
| 15197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15198 | /* end confdefs.h. */ |
| 15199 | |
| 15200 | #ifndef __i386__ |
| 15201 | # error "not i386" |
| 15202 | #endif |
| 15203 | |
| 15204 | int |
| 15205 | main () |
| 15206 | { |
| 15207 | |
| 15208 | ; |
| 15209 | return 0; |
| 15210 | } |
| 15211 | _ACEOF |
| 15212 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15213 | $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h |
| 15214 | |
| 15215 | fi |
| 15216 | rm -f conftest.err conftest.$ac_ext |
| 15217 | |
| 15218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15219 | /* end confdefs.h. */ |
| 15220 | |
| 15221 | #ifndef __ia64__ |
| 15222 | # error "not ia64" |
| 15223 | #endif |
| 15224 | |
| 15225 | int |
| 15226 | main () |
| 15227 | { |
| 15228 | |
| 15229 | ; |
| 15230 | return 0; |
| 15231 | } |
| 15232 | _ACEOF |
| 15233 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15234 | |
| 15235 | $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h |
| 15236 | |
| 15237 | fi |
| 15238 | rm -f conftest.err conftest.$ac_ext |
| 15239 | ;; |
| 15240 | |
| 15241 | hpux*) |
| 15242 | |
| 15243 | $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h |
| 15244 | |
| 15245 | ;; |
| 15246 | |
| 15247 | irix6-5) |
| 15248 | $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h |
| 15249 | |
| 15250 | ;; |
| 15251 | esac |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | case $opsys in |
| 15260 | aix4-2 | hpux* | unixware) |
| 15261 | $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h |
| 15262 | |
| 15263 | ;; |
| 15264 | |
| 15265 | gnu-linux | gnu-kfreebsd ) |
| 15266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15267 | /* end confdefs.h. */ |
| 15268 | |
| 15269 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ |
| 15270 | || defined __alpha__ || defined __mips__ || defined __s390__ \ |
| 15271 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ |
| 15272 | || defined __ia64__ || defined __sh__ |
| 15273 | /* ok */ |
| 15274 | #else |
| 15275 | # error "setjmp not known to work on this arch" |
| 15276 | #endif |
| 15277 | |
| 15278 | int |
| 15279 | main () |
| 15280 | { |
| 15281 | |
| 15282 | ; |
| 15283 | return 0; |
| 15284 | } |
| 15285 | _ACEOF |
| 15286 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15287 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15288 | |
| 15289 | else |
| 15290 | $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h |
| 15291 | |
| 15292 | fi |
| 15293 | rm -f conftest.err conftest.$ac_ext |
| 15294 | ;; |
| 15295 | esac |
| 15296 | |
| 15297 | |
| 15298 | if test x$GCC = xyes; then |
| 15299 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15300 | |
| 15301 | else |
| 15302 | case $opsys in |
| 15303 | freebsd | netbsd | openbsd | irix6-5 | sol2* ) |
| 15304 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15305 | |
| 15306 | ;; |
| 15307 | esac |
| 15308 | fi |
| 15309 | |
| 15310 | case $opsys in |
| 15311 | sol2* | unixware ) |
| 15312 | |
| 15313 | $as_echo "#define _setjmp setjmp" >>confdefs.h |
| 15314 | |
| 15315 | |
| 15316 | $as_echo "#define _longjmp longjmp" >>confdefs.h |
| 15317 | |
| 15318 | |
| 15319 | $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h |
| 15320 | |
| 15321 | ;; |
| 15322 | esac |
| 15323 | |
| 15324 | |
| 15325 | case $opsys in |
| 15326 | hpux* | sol2* ) |
| 15327 | |
| 15328 | $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h |
| 15329 | |
| 15330 | ;; |
| 15331 | |
| 15332 | netbsd | openbsd ) |
| 15333 | |
| 15334 | $as_echo "#define SIGNAL_H_AHB 1" >>confdefs.h |
| 15335 | |
| 15336 | ;; |
| 15337 | esac |
| 15338 | |
| 15339 | |
| 15340 | |
| 15341 | |
| 15342 | |
| 15343 | |
| 15344 | |
| 15345 | |
| 15346 | |
| 15347 | |
| 15348 | case $opsys in |
| 15349 | aix4-2) |
| 15350 | $as_echo "#define USG /**/" >>confdefs.h |
| 15351 | |
| 15352 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15353 | |
| 15354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15355 | /* end confdefs.h. */ |
| 15356 | |
| 15357 | #ifndef _AIX |
| 15358 | # error "_AIX not defined" |
| 15359 | #endif |
| 15360 | |
| 15361 | int |
| 15362 | main () |
| 15363 | { |
| 15364 | |
| 15365 | ; |
| 15366 | return 0; |
| 15367 | } |
| 15368 | _ACEOF |
| 15369 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15370 | |
| 15371 | else |
| 15372 | |
| 15373 | $as_echo "#define _AIX /**/" >>confdefs.h |
| 15374 | |
| 15375 | fi |
| 15376 | rm -f conftest.err conftest.$ac_ext |
| 15377 | ;; |
| 15378 | |
| 15379 | cygwin) |
| 15380 | |
| 15381 | $as_echo "#define CYGWIN 1" >>confdefs.h |
| 15382 | |
| 15383 | ;; |
| 15384 | |
| 15385 | darwin) |
| 15386 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15387 | |
| 15388 | $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h |
| 15389 | |
| 15390 | |
| 15391 | $as_echo "#define DARWIN_OS /**/" >>confdefs.h |
| 15392 | |
| 15393 | ;; |
| 15394 | |
| 15395 | freebsd) |
| 15396 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15397 | |
| 15398 | |
| 15399 | $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h |
| 15400 | |
| 15401 | ;; |
| 15402 | |
| 15403 | gnu | netbsd | openbsd ) |
| 15404 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15405 | |
| 15406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15407 | /* end confdefs.h. */ |
| 15408 | |
| 15409 | #ifndef BSD_SYSTEM |
| 15410 | # error "BSD_SYSTEM not defined" |
| 15411 | #endif |
| 15412 | |
| 15413 | int |
| 15414 | main () |
| 15415 | { |
| 15416 | |
| 15417 | ; |
| 15418 | return 0; |
| 15419 | } |
| 15420 | _ACEOF |
| 15421 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15422 | |
| 15423 | else |
| 15424 | $as_echo "#define BSD_SYSTEM 43" >>confdefs.h |
| 15425 | |
| 15426 | fi |
| 15427 | rm -f conftest.err conftest.$ac_ext |
| 15428 | ;; |
| 15429 | |
| 15430 | gnu-linux | gnu-kfreebsd ) |
| 15431 | $as_echo "#define USG /**/" >>confdefs.h |
| 15432 | |
| 15433 | |
| 15434 | $as_echo "#define GNU_LINUX /**/" >>confdefs.h |
| 15435 | |
| 15436 | ;; |
| 15437 | |
| 15438 | hpux*) |
| 15439 | $as_echo "#define USG /**/" >>confdefs.h |
| 15440 | |
| 15441 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15442 | |
| 15443 | |
| 15444 | $as_echo "#define HPUX /**/" >>confdefs.h |
| 15445 | |
| 15446 | ;; |
| 15447 | |
| 15448 | irix6-5) |
| 15449 | $as_echo "#define USG /**/" >>confdefs.h |
| 15450 | |
| 15451 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15452 | |
| 15453 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15454 | |
| 15455 | |
| 15456 | $as_echo "#define IRIX6_5 /**/" >>confdefs.h |
| 15457 | |
| 15458 | ;; |
| 15459 | |
| 15460 | sol2*) |
| 15461 | $as_echo "#define USG /**/" >>confdefs.h |
| 15462 | |
| 15463 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15464 | |
| 15465 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15466 | |
| 15467 | |
| 15468 | $as_echo "#define SOLARIS2 /**/" >>confdefs.h |
| 15469 | |
| 15470 | ;; |
| 15471 | |
| 15472 | unixware) |
| 15473 | $as_echo "#define USG /**/" >>confdefs.h |
| 15474 | |
| 15475 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15476 | |
| 15477 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15478 | |
| 15479 | ;; |
| 15480 | esac |
| 15481 | |
| 15482 | |
| 15483 | case $opsys in |
| 15484 | cygwin) |
| 15485 | |
| 15486 | $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h |
| 15487 | |
| 15488 | ;; |
| 15489 | |
| 15490 | hpux11) |
| 15491 | |
| 15492 | $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h |
| 15493 | |
| 15494 | |
| 15495 | $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h |
| 15496 | |
| 15497 | ;; |
| 15498 | |
| 15499 | irix6-5) |
| 15500 | |
| 15501 | $as_echo "#define PREFER_VSUSP 1" >>confdefs.h |
| 15502 | |
| 15503 | |
| 15504 | $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h |
| 15505 | |
| 15506 | ;; |
| 15507 | |
| 15508 | sol2-10) |
| 15509 | |
| 15510 | $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h |
| 15511 | |
| 15512 | ;; |
| 15513 | esac |
| 15514 | |
| 15515 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 15516 | CFLAGS="$REAL_CFLAGS" |
| 15517 | CPPFLAGS="$REAL_CPPFLAGS" |
| 15518 | |
| 15519 | ## Hack to detect a buggy GCC version. |
| 15520 | if test "x$GCC" = xyes \ |
| 15521 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ |
| 15522 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ |
| 15523 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then |
| 15524 | as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
| 15525 | fi |
| 15526 | |
| 15527 | version=$PACKAGE_VERSION |
| 15528 | |
| 15529 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| 15530 | ### Use configuration here uncanonicalized to avoid exceeding size limits. |
| 15531 | |
| 15532 | |
| 15533 | ## Unused? |
| 15534 | |
| 15535 | |
| 15536 | |
| 15537 | |
| 15538 | |
| 15539 | |
| 15540 | |
| 15541 | |
| 15542 | |
| 15543 | |
| 15544 | |
| 15545 | |
| 15546 | |
| 15547 | |
| 15548 | |
| 15549 | |
| 15550 | |
| 15551 | |
| 15552 | |
| 15553 | |
| 15554 | |
| 15555 | |
| 15556 | ## FIXME? Nothing uses @LD_SWITCH_X_SITE@. |
| 15557 | ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the |
| 15558 | ## end of LIBX_BASE, but nothing ever set it. |
| 15559 | |
| 15560 | |
| 15561 | |
| 15562 | |
| 15563 | ## Used in lwlib/Makefile.in. |
| 15564 | |
| 15565 | |
| 15566 | |
| 15567 | |
| 15568 | |
| 15569 | |
| 15570 | |
| 15571 | |
| 15572 | |
| 15573 | cat >>confdefs.h <<_ACEOF |
| 15574 | #define EMACS_CONFIGURATION "${canonical}" |
| 15575 | _ACEOF |
| 15576 | |
| 15577 | |
| 15578 | cat >>confdefs.h <<_ACEOF |
| 15579 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
| 15580 | _ACEOF |
| 15581 | |
| 15582 | |
| 15583 | |
| 15584 | XMENU_OBJ= |
| 15585 | XOBJ= |
| 15586 | FONT_OBJ= |
| 15587 | if test "${HAVE_X_WINDOWS}" = "yes" ; then |
| 15588 | |
| 15589 | $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h |
| 15590 | |
| 15591 | XMENU_OBJ=xmenu.o |
| 15592 | XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" |
| 15593 | FONT_OBJ=xfont.o |
| 15594 | if test "$HAVE_XFT" = "yes"; then |
| 15595 | FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o" |
| 15596 | elif test "$HAVE_FREETYPE" = "yes"; then |
| 15597 | FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o" |
| 15598 | fi |
| 15599 | |
| 15600 | fi |
| 15601 | |
| 15602 | |
| 15603 | |
| 15604 | |
| 15605 | WIDGET_OBJ= |
| 15606 | MOTIF_LIBW= |
| 15607 | if test "${USE_X_TOOLKIT}" != "none" ; then |
| 15608 | WIDGET_OBJ=widget.o |
| 15609 | |
| 15610 | $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h |
| 15611 | |
| 15612 | if test "${USE_X_TOOLKIT}" = "LUCID"; then |
| 15613 | |
| 15614 | $as_echo "#define USE_LUCID 1" >>confdefs.h |
| 15615 | |
| 15616 | elif test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 15617 | |
| 15618 | $as_echo "#define USE_MOTIF 1" >>confdefs.h |
| 15619 | |
| 15620 | MOTIF_LIBW=-lXm |
| 15621 | case "$opsys" in |
| 15622 | gnu-linux) |
| 15623 | ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. |
| 15624 | MOTIF_LIBW="$MOTIF_LIBW -lXpm" |
| 15625 | ;; |
| 15626 | |
| 15627 | unixware) |
| 15628 | ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov> |
| 15629 | ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2. |
| 15630 | MOTIF_LIBW="MOTIF_LIBW -lXimp" |
| 15631 | ;; |
| 15632 | |
| 15633 | aix4-2) |
| 15634 | ## olson@mcs.anl.gov says -li18n is needed by -lXm. |
| 15635 | MOTIF_LIBW="$MOTIF_LIBW -li18n" |
| 15636 | ;; |
| 15637 | esac |
| 15638 | MOTIF_LIBW="$MOTIF_LIBW $LIBXP" |
| 15639 | fi |
| 15640 | fi |
| 15641 | |
| 15642 | |
| 15643 | TOOLKIT_LIBW= |
| 15644 | case "$USE_X_TOOLKIT" in |
| 15645 | MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;; |
| 15646 | LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;; |
| 15647 | none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;; |
| 15648 | esac |
| 15649 | |
| 15650 | |
| 15651 | if test "$USE_X_TOOLKIT" = "none"; then |
| 15652 | LIBXT_OTHER="\$(LIBXSM)" |
| 15653 | OLDXMENU_TARGET="really-oldXMenu" |
| 15654 | else |
| 15655 | LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext" |
| 15656 | OLDXMENU_TARGET="really-lwlib" |
| 15657 | fi |
| 15658 | |
| 15659 | |
| 15660 | ## The X Menu stuff is present in the X10 distribution, but missing |
| 15661 | ## from X11. If we have X10, just use the installed library; |
| 15662 | ## otherwise, use our own copy. |
| 15663 | if test "${HAVE_X11}" = "yes" ; then |
| 15664 | |
| 15665 | $as_echo "#define HAVE_X11 1" >>confdefs.h |
| 15666 | |
| 15667 | |
| 15668 | if test "$USE_X_TOOLKIT" = "none"; then |
| 15669 | OLDXMENU="\${oldXMenudir}/libXMenu11.a" |
| 15670 | else |
| 15671 | OLDXMENU="\${lwlibdir}/liblw.a" |
| 15672 | fi |
| 15673 | LIBXMENU="\$(OLDXMENU)" |
| 15674 | LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)" |
| 15675 | OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}" |
| 15676 | else |
| 15677 | ## For a syntactically valid Makefile; not actually used for anything. |
| 15678 | ## See comments in src/Makefile.in. |
| 15679 | OLDXMENU=nothing |
| 15680 | ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?). |
| 15681 | if test "${HAVE_X_WINDOWS}" = "yes"; then |
| 15682 | LIBXMENU="-lXMenu" |
| 15683 | else |
| 15684 | LIBXMENU= |
| 15685 | fi |
| 15686 | LIBX_OTHER= |
| 15687 | OLDXMENU_DEPS= |
| 15688 | fi |
| 15689 | |
| 15690 | if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then |
| 15691 | OLDXMENU_TARGET= |
| 15692 | OLDXMENU=nothing |
| 15693 | LIBXMENU= |
| 15694 | OLDXMENU_DEPS= |
| 15695 | fi |
| 15696 | |
| 15697 | |
| 15698 | |
| 15699 | |
| 15700 | |
| 15701 | |
| 15702 | |
| 15703 | if test "${HAVE_MENUS}" = "yes" ; then |
| 15704 | |
| 15705 | $as_echo "#define HAVE_MENUS 1" >>confdefs.h |
| 15706 | |
| 15707 | fi |
| 15708 | |
| 15709 | if test "${GNU_MALLOC}" = "yes" ; then |
| 15710 | |
| 15711 | $as_echo "#define GNU_MALLOC 1" >>confdefs.h |
| 15712 | |
| 15713 | fi |
| 15714 | |
| 15715 | RALLOC_OBJ= |
| 15716 | if test "${REL_ALLOC}" = "yes" ; then |
| 15717 | |
| 15718 | $as_echo "#define REL_ALLOC 1" >>confdefs.h |
| 15719 | |
| 15720 | |
| 15721 | test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o |
| 15722 | fi |
| 15723 | |
| 15724 | |
| 15725 | if test "$opsys" = "cygwin"; then |
| 15726 | CYGWIN_OBJ="sheap.o" |
| 15727 | ## Cygwin differs because of its unexec(). |
| 15728 | PRE_ALLOC_OBJ= |
| 15729 | POST_ALLOC_OBJ=lastfile.o |
| 15730 | else |
| 15731 | CYGWIN_OBJ= |
| 15732 | PRE_ALLOC_OBJ=lastfile.o |
| 15733 | POST_ALLOC_OBJ= |
| 15734 | fi |
| 15735 | |
| 15736 | |
| 15737 | |
| 15738 | |
| 15739 | # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently. |
| 15740 | # it temporarily reverts them to their pre-pkg-config values, |
| 15741 | # because gnulib needs to work with both src (which uses the |
| 15742 | # pkg-config stuff) and lib-src (which does not). For example, gnulib |
| 15743 | # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt, |
| 15744 | # and it therefore needs to run in an environment where LIBS does not |
| 15745 | # already contain -lrt merely because 'pkg-config --libs' printed '-lrt' |
| 15746 | # for some package unrelated to lib-src. |
| 15747 | SAVE_CFLAGS=$CFLAGS |
| 15748 | SAVE_LIBS=$LIBS |
| 15749 | CFLAGS=$pre_PKG_CONFIG_CFLAGS |
| 15750 | LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS" |
| 15751 | |
| 15752 | |
| 15753 | |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
| 15758 | |
| 15759 | |
| 15760 | |
| 15761 | |
| 15762 | LIBC_FATAL_STDERR_=1 |
| 15763 | export LIBC_FATAL_STDERR_ |
| 15764 | |
| 15765 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 15766 | # for constant arguments. Useless! |
| 15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 15768 | $as_echo_n "checking for working alloca.h... " >&6; } |
| 15769 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 15770 | $as_echo_n "(cached) " >&6 |
| 15771 | else |
| 15772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15773 | /* end confdefs.h. */ |
| 15774 | #include <alloca.h> |
| 15775 | int |
| 15776 | main () |
| 15777 | { |
| 15778 | char *p = (char *) alloca (2 * sizeof (int)); |
| 15779 | if (p) return 0; |
| 15780 | ; |
| 15781 | return 0; |
| 15782 | } |
| 15783 | _ACEOF |
| 15784 | if ac_fn_c_try_link "$LINENO"; then : |
| 15785 | ac_cv_working_alloca_h=yes |
| 15786 | else |
| 15787 | ac_cv_working_alloca_h=no |
| 15788 | fi |
| 15789 | rm -f core conftest.err conftest.$ac_objext \ |
| 15790 | conftest$ac_exeext conftest.$ac_ext |
| 15791 | fi |
| 15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 15793 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 15794 | if test $ac_cv_working_alloca_h = yes; then |
| 15795 | |
| 15796 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 15797 | |
| 15798 | fi |
| 15799 | |
| 15800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 15801 | $as_echo_n "checking for alloca... " >&6; } |
| 15802 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 15803 | $as_echo_n "(cached) " >&6 |
| 15804 | else |
| 15805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15806 | /* end confdefs.h. */ |
| 15807 | #ifdef __GNUC__ |
| 15808 | # define alloca __builtin_alloca |
| 15809 | #else |
| 15810 | # ifdef _MSC_VER |
| 15811 | # include <malloc.h> |
| 15812 | # define alloca _alloca |
| 15813 | # else |
| 15814 | # ifdef HAVE_ALLOCA_H |
| 15815 | # include <alloca.h> |
| 15816 | # else |
| 15817 | # ifdef _AIX |
| 15818 | #pragma alloca |
| 15819 | # else |
| 15820 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 15821 | char *alloca (); |
| 15822 | # endif |
| 15823 | # endif |
| 15824 | # endif |
| 15825 | # endif |
| 15826 | #endif |
| 15827 | |
| 15828 | int |
| 15829 | main () |
| 15830 | { |
| 15831 | char *p = (char *) alloca (1); |
| 15832 | if (p) return 0; |
| 15833 | ; |
| 15834 | return 0; |
| 15835 | } |
| 15836 | _ACEOF |
| 15837 | if ac_fn_c_try_link "$LINENO"; then : |
| 15838 | ac_cv_func_alloca_works=yes |
| 15839 | else |
| 15840 | ac_cv_func_alloca_works=no |
| 15841 | fi |
| 15842 | rm -f core conftest.err conftest.$ac_objext \ |
| 15843 | conftest$ac_exeext conftest.$ac_ext |
| 15844 | fi |
| 15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 15846 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 15847 | |
| 15848 | if test $ac_cv_func_alloca_works = yes; then |
| 15849 | |
| 15850 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 15851 | |
| 15852 | else |
| 15853 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 15854 | # that cause trouble. Some versions do not even contain alloca or |
| 15855 | # contain a buggy version. If you still want to use their alloca, |
| 15856 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 15857 | |
| 15858 | |
| 15859 | |
| 15860 | |
| 15861 | |
| 15862 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 15863 | |
| 15864 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 15865 | |
| 15866 | |
| 15867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5 |
| 15868 | $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; } |
| 15869 | if test "${ac_cv_os_cray+set}" = set; then : |
| 15870 | $as_echo_n "(cached) " >&6 |
| 15871 | else |
| 15872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15873 | /* end confdefs.h. */ |
| 15874 | #if defined CRAY && ! defined CRAY2 |
| 15875 | webecray |
| 15876 | #else |
| 15877 | wenotbecray |
| 15878 | #endif |
| 15879 | |
| 15880 | _ACEOF |
| 15881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15882 | $EGREP "webecray" >/dev/null 2>&1; then : |
| 15883 | ac_cv_os_cray=yes |
| 15884 | else |
| 15885 | ac_cv_os_cray=no |
| 15886 | fi |
| 15887 | rm -f conftest* |
| 15888 | |
| 15889 | fi |
| 15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 15891 | $as_echo "$ac_cv_os_cray" >&6; } |
| 15892 | if test $ac_cv_os_cray = yes; then |
| 15893 | for ac_func in _getb67 GETB67 getb67; do |
| 15894 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15895 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 15896 | eval as_val=\$$as_ac_var |
| 15897 | if test "x$as_val" = x""yes; then : |
| 15898 | |
| 15899 | cat >>confdefs.h <<_ACEOF |
| 15900 | #define CRAY_STACKSEG_END $ac_func |
| 15901 | _ACEOF |
| 15902 | |
| 15903 | break |
| 15904 | fi |
| 15905 | |
| 15906 | done |
| 15907 | fi |
| 15908 | |
| 15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 15910 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 15911 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 15912 | $as_echo_n "(cached) " >&6 |
| 15913 | else |
| 15914 | if test "$cross_compiling" = yes; then : |
| 15915 | ac_cv_c_stack_direction=0 |
| 15916 | else |
| 15917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15918 | /* end confdefs.h. */ |
| 15919 | $ac_includes_default |
| 15920 | int |
| 15921 | find_stack_direction (int *addr, int depth) |
| 15922 | { |
| 15923 | int dir, dummy = 0; |
| 15924 | if (! addr) |
| 15925 | addr = &dummy; |
| 15926 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 15927 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 15928 | return dir + dummy; |
| 15929 | } |
| 15930 | |
| 15931 | int |
| 15932 | main (int argc, char **argv) |
| 15933 | { |
| 15934 | return find_stack_direction (0, argc + !argv + 20) < 0; |
| 15935 | } |
| 15936 | _ACEOF |
| 15937 | if ac_fn_c_try_run "$LINENO"; then : |
| 15938 | ac_cv_c_stack_direction=1 |
| 15939 | else |
| 15940 | ac_cv_c_stack_direction=-1 |
| 15941 | fi |
| 15942 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15943 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15944 | fi |
| 15945 | |
| 15946 | fi |
| 15947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 15948 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 15949 | cat >>confdefs.h <<_ACEOF |
| 15950 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 15951 | _ACEOF |
| 15952 | |
| 15953 | |
| 15954 | fi |
| 15955 | |
| 15956 | |
| 15957 | |
| 15958 | |
| 15959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 15960 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 15961 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 15962 | $as_echo_n "(cached) " >&6 |
| 15963 | else |
| 15964 | ac_cv_c_bigendian=unknown |
| 15965 | # See if we're dealing with a universal compiler. |
| 15966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15967 | /* end confdefs.h. */ |
| 15968 | #ifndef __APPLE_CC__ |
| 15969 | not a universal capable compiler |
| 15970 | #endif |
| 15971 | typedef int dummy; |
| 15972 | |
| 15973 | _ACEOF |
| 15974 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15975 | |
| 15976 | # Check for potential -arch flags. It is not universal unless |
| 15977 | # there are at least two -arch flags with different values. |
| 15978 | ac_arch= |
| 15979 | ac_prev= |
| 15980 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 15981 | if test -n "$ac_prev"; then |
| 15982 | case $ac_word in |
| 15983 | i?86 | x86_64 | ppc | ppc64) |
| 15984 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 15985 | ac_arch=$ac_word |
| 15986 | else |
| 15987 | ac_cv_c_bigendian=universal |
| 15988 | break |
| 15989 | fi |
| 15990 | ;; |
| 15991 | esac |
| 15992 | ac_prev= |
| 15993 | elif test "x$ac_word" = "x-arch"; then |
| 15994 | ac_prev=arch |
| 15995 | fi |
| 15996 | done |
| 15997 | fi |
| 15998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15999 | if test $ac_cv_c_bigendian = unknown; then |
| 16000 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16002 | /* end confdefs.h. */ |
| 16003 | #include <sys/types.h> |
| 16004 | #include <sys/param.h> |
| 16005 | |
| 16006 | int |
| 16007 | main () |
| 16008 | { |
| 16009 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 16010 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 16011 | && LITTLE_ENDIAN) |
| 16012 | bogus endian macros |
| 16013 | #endif |
| 16014 | |
| 16015 | ; |
| 16016 | return 0; |
| 16017 | } |
| 16018 | _ACEOF |
| 16019 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16020 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 16021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16022 | /* end confdefs.h. */ |
| 16023 | #include <sys/types.h> |
| 16024 | #include <sys/param.h> |
| 16025 | |
| 16026 | int |
| 16027 | main () |
| 16028 | { |
| 16029 | #if BYTE_ORDER != BIG_ENDIAN |
| 16030 | not big endian |
| 16031 | #endif |
| 16032 | |
| 16033 | ; |
| 16034 | return 0; |
| 16035 | } |
| 16036 | _ACEOF |
| 16037 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16038 | ac_cv_c_bigendian=yes |
| 16039 | else |
| 16040 | ac_cv_c_bigendian=no |
| 16041 | fi |
| 16042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16043 | fi |
| 16044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16045 | fi |
| 16046 | if test $ac_cv_c_bigendian = unknown; then |
| 16047 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 16048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16049 | /* end confdefs.h. */ |
| 16050 | #include <limits.h> |
| 16051 | |
| 16052 | int |
| 16053 | main () |
| 16054 | { |
| 16055 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 16056 | bogus endian macros |
| 16057 | #endif |
| 16058 | |
| 16059 | ; |
| 16060 | return 0; |
| 16061 | } |
| 16062 | _ACEOF |
| 16063 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16064 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 16065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16066 | /* end confdefs.h. */ |
| 16067 | #include <limits.h> |
| 16068 | |
| 16069 | int |
| 16070 | main () |
| 16071 | { |
| 16072 | #ifndef _BIG_ENDIAN |
| 16073 | not big endian |
| 16074 | #endif |
| 16075 | |
| 16076 | ; |
| 16077 | return 0; |
| 16078 | } |
| 16079 | _ACEOF |
| 16080 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16081 | ac_cv_c_bigendian=yes |
| 16082 | else |
| 16083 | ac_cv_c_bigendian=no |
| 16084 | fi |
| 16085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16086 | fi |
| 16087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16088 | fi |
| 16089 | if test $ac_cv_c_bigendian = unknown; then |
| 16090 | # Compile a test program. |
| 16091 | if test "$cross_compiling" = yes; then : |
| 16092 | # Try to guess by grepping values from an object file. |
| 16093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16094 | /* end confdefs.h. */ |
| 16095 | short int ascii_mm[] = |
| 16096 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16097 | short int ascii_ii[] = |
| 16098 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16099 | int use_ascii (int i) { |
| 16100 | return ascii_mm[i] + ascii_ii[i]; |
| 16101 | } |
| 16102 | short int ebcdic_ii[] = |
| 16103 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16104 | short int ebcdic_mm[] = |
| 16105 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16106 | int use_ebcdic (int i) { |
| 16107 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 16108 | } |
| 16109 | extern int foo; |
| 16110 | |
| 16111 | int |
| 16112 | main () |
| 16113 | { |
| 16114 | return use_ascii (foo) == use_ebcdic (foo); |
| 16115 | ; |
| 16116 | return 0; |
| 16117 | } |
| 16118 | _ACEOF |
| 16119 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16120 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 16121 | ac_cv_c_bigendian=yes |
| 16122 | fi |
| 16123 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 16124 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16125 | ac_cv_c_bigendian=no |
| 16126 | else |
| 16127 | # finding both strings is unlikely to happen, but who knows? |
| 16128 | ac_cv_c_bigendian=unknown |
| 16129 | fi |
| 16130 | fi |
| 16131 | fi |
| 16132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16133 | else |
| 16134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16135 | /* end confdefs.h. */ |
| 16136 | $ac_includes_default |
| 16137 | int |
| 16138 | main () |
| 16139 | { |
| 16140 | |
| 16141 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16142 | union |
| 16143 | { |
| 16144 | long int l; |
| 16145 | char c[sizeof (long int)]; |
| 16146 | } u; |
| 16147 | u.l = 1; |
| 16148 | return u.c[sizeof (long int) - 1] == 1; |
| 16149 | |
| 16150 | ; |
| 16151 | return 0; |
| 16152 | } |
| 16153 | _ACEOF |
| 16154 | if ac_fn_c_try_run "$LINENO"; then : |
| 16155 | ac_cv_c_bigendian=no |
| 16156 | else |
| 16157 | ac_cv_c_bigendian=yes |
| 16158 | fi |
| 16159 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16160 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16161 | fi |
| 16162 | |
| 16163 | fi |
| 16164 | fi |
| 16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 16166 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 16167 | case $ac_cv_c_bigendian in #( |
| 16168 | yes) |
| 16169 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 16170 | ;; #( |
| 16171 | no) |
| 16172 | ;; #( |
| 16173 | universal) |
| 16174 | |
| 16175 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 16176 | |
| 16177 | ;; #( |
| 16178 | *) |
| 16179 | as_fn_error "unknown endianness |
| 16180 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 16181 | esac |
| 16182 | |
| 16183 | |
| 16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 16185 | $as_echo_n "checking for inline... " >&6; } |
| 16186 | if test "${ac_cv_c_inline+set}" = set; then : |
| 16187 | $as_echo_n "(cached) " >&6 |
| 16188 | else |
| 16189 | ac_cv_c_inline=no |
| 16190 | for ac_kw in inline __inline__ __inline; do |
| 16191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16192 | /* end confdefs.h. */ |
| 16193 | #ifndef __cplusplus |
| 16194 | typedef int foo_t; |
| 16195 | static $ac_kw foo_t static_foo () {return 0; } |
| 16196 | $ac_kw foo_t foo () {return 0; } |
| 16197 | #endif |
| 16198 | |
| 16199 | _ACEOF |
| 16200 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16201 | ac_cv_c_inline=$ac_kw |
| 16202 | fi |
| 16203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16204 | test "$ac_cv_c_inline" != no && break |
| 16205 | done |
| 16206 | |
| 16207 | fi |
| 16208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 16209 | $as_echo "$ac_cv_c_inline" >&6; } |
| 16210 | |
| 16211 | case $ac_cv_c_inline in |
| 16212 | inline | yes) ;; |
| 16213 | *) |
| 16214 | case $ac_cv_c_inline in |
| 16215 | no) ac_val=;; |
| 16216 | *) ac_val=$ac_cv_c_inline;; |
| 16217 | esac |
| 16218 | cat >>confdefs.h <<_ACEOF |
| 16219 | #ifndef __cplusplus |
| 16220 | #define inline $ac_val |
| 16221 | #endif |
| 16222 | _ACEOF |
| 16223 | ;; |
| 16224 | esac |
| 16225 | |
| 16226 | |
| 16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 |
| 16228 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } |
| 16229 | if test "${gl_cv_func_c99_strtold+set}" = set; then : |
| 16230 | $as_echo_n "(cached) " >&6 |
| 16231 | else |
| 16232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16233 | /* end confdefs.h. */ |
| 16234 | /* On HP-UX before 11.23, strtold returns a struct instead of |
| 16235 | long double. Reject implementations like that, by requiring |
| 16236 | compatibility with the C99 prototype. */ |
| 16237 | #include <stdlib.h> |
| 16238 | static long double (*p) (char const *, char **) = strtold; |
| 16239 | static long double |
| 16240 | test (char const *nptr, char **endptr) |
| 16241 | { |
| 16242 | long double r; |
| 16243 | r = strtold (nptr, endptr); |
| 16244 | return r; |
| 16245 | } |
| 16246 | int |
| 16247 | main () |
| 16248 | { |
| 16249 | return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1; |
| 16250 | ; |
| 16251 | return 0; |
| 16252 | } |
| 16253 | _ACEOF |
| 16254 | if ac_fn_c_try_link "$LINENO"; then : |
| 16255 | gl_cv_func_c99_strtold=yes |
| 16256 | else |
| 16257 | gl_cv_func_c99_strtold=no |
| 16258 | fi |
| 16259 | rm -f core conftest.err conftest.$ac_objext \ |
| 16260 | conftest$ac_exeext conftest.$ac_ext |
| 16261 | fi |
| 16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5 |
| 16263 | $as_echo "$gl_cv_func_c99_strtold" >&6; } |
| 16264 | if test $gl_cv_func_c99_strtold = yes; then |
| 16265 | |
| 16266 | $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h |
| 16267 | |
| 16268 | fi |
| 16269 | |
| 16270 | |
| 16271 | GNULIB_CHDIR=0; |
| 16272 | GNULIB_CHOWN=0; |
| 16273 | GNULIB_CLOSE=0; |
| 16274 | GNULIB_DUP=0; |
| 16275 | GNULIB_DUP2=0; |
| 16276 | GNULIB_DUP3=0; |
| 16277 | GNULIB_ENVIRON=0; |
| 16278 | GNULIB_EUIDACCESS=0; |
| 16279 | GNULIB_FACCESSAT=0; |
| 16280 | GNULIB_FCHDIR=0; |
| 16281 | GNULIB_FCHOWNAT=0; |
| 16282 | GNULIB_FDATASYNC=0; |
| 16283 | GNULIB_FSYNC=0; |
| 16284 | GNULIB_FTRUNCATE=0; |
| 16285 | GNULIB_GETCWD=0; |
| 16286 | GNULIB_GETDOMAINNAME=0; |
| 16287 | GNULIB_GETDTABLESIZE=0; |
| 16288 | GNULIB_GETGROUPS=0; |
| 16289 | GNULIB_GETHOSTNAME=0; |
| 16290 | GNULIB_GETLOGIN=0; |
| 16291 | GNULIB_GETLOGIN_R=0; |
| 16292 | GNULIB_GETPAGESIZE=0; |
| 16293 | GNULIB_GETUSERSHELL=0; |
| 16294 | GNULIB_GROUP_MEMBER=0; |
| 16295 | GNULIB_ISATTY=0; |
| 16296 | GNULIB_LCHOWN=0; |
| 16297 | GNULIB_LINK=0; |
| 16298 | GNULIB_LINKAT=0; |
| 16299 | GNULIB_LSEEK=0; |
| 16300 | GNULIB_PIPE=0; |
| 16301 | GNULIB_PIPE2=0; |
| 16302 | GNULIB_PREAD=0; |
| 16303 | GNULIB_PWRITE=0; |
| 16304 | GNULIB_READ=0; |
| 16305 | GNULIB_READLINK=0; |
| 16306 | GNULIB_READLINKAT=0; |
| 16307 | GNULIB_RMDIR=0; |
| 16308 | GNULIB_SETHOSTNAME=0; |
| 16309 | GNULIB_SLEEP=0; |
| 16310 | GNULIB_SYMLINK=0; |
| 16311 | GNULIB_SYMLINKAT=0; |
| 16312 | GNULIB_TTYNAME_R=0; |
| 16313 | GNULIB_UNISTD_H_NONBLOCKING=0; |
| 16314 | GNULIB_UNISTD_H_SIGPIPE=0; |
| 16315 | GNULIB_UNLINK=0; |
| 16316 | GNULIB_UNLINKAT=0; |
| 16317 | GNULIB_USLEEP=0; |
| 16318 | GNULIB_WRITE=0; |
| 16319 | HAVE_CHOWN=1; |
| 16320 | HAVE_DUP2=1; |
| 16321 | HAVE_DUP3=1; |
| 16322 | HAVE_EUIDACCESS=1; |
| 16323 | HAVE_FACCESSAT=1; |
| 16324 | HAVE_FCHDIR=1; |
| 16325 | HAVE_FCHOWNAT=1; |
| 16326 | HAVE_FDATASYNC=1; |
| 16327 | HAVE_FSYNC=1; |
| 16328 | HAVE_FTRUNCATE=1; |
| 16329 | HAVE_GETDTABLESIZE=1; |
| 16330 | HAVE_GETGROUPS=1; |
| 16331 | HAVE_GETHOSTNAME=1; |
| 16332 | HAVE_GETLOGIN=1; |
| 16333 | HAVE_GETPAGESIZE=1; |
| 16334 | HAVE_GROUP_MEMBER=1; |
| 16335 | HAVE_LCHOWN=1; |
| 16336 | HAVE_LINK=1; |
| 16337 | HAVE_LINKAT=1; |
| 16338 | HAVE_PIPE=1; |
| 16339 | HAVE_PIPE2=1; |
| 16340 | HAVE_PREAD=1; |
| 16341 | HAVE_PWRITE=1; |
| 16342 | HAVE_READLINK=1; |
| 16343 | HAVE_READLINKAT=1; |
| 16344 | HAVE_SETHOSTNAME=1; |
| 16345 | HAVE_SLEEP=1; |
| 16346 | HAVE_SYMLINK=1; |
| 16347 | HAVE_SYMLINKAT=1; |
| 16348 | HAVE_UNLINKAT=1; |
| 16349 | HAVE_USLEEP=1; |
| 16350 | HAVE_DECL_ENVIRON=1; |
| 16351 | HAVE_DECL_FCHDIR=1; |
| 16352 | HAVE_DECL_FDATASYNC=1; |
| 16353 | HAVE_DECL_GETDOMAINNAME=1; |
| 16354 | HAVE_DECL_GETLOGIN_R=1; |
| 16355 | HAVE_DECL_GETPAGESIZE=1; |
| 16356 | HAVE_DECL_GETUSERSHELL=1; |
| 16357 | HAVE_DECL_SETHOSTNAME=1; |
| 16358 | HAVE_DECL_TTYNAME_R=1; |
| 16359 | HAVE_OS_H=0; |
| 16360 | HAVE_SYS_PARAM_H=0; |
| 16361 | REPLACE_CHOWN=0; |
| 16362 | REPLACE_CLOSE=0; |
| 16363 | REPLACE_DUP=0; |
| 16364 | REPLACE_DUP2=0; |
| 16365 | REPLACE_FCHOWNAT=0; |
| 16366 | REPLACE_FTRUNCATE=0; |
| 16367 | REPLACE_GETCWD=0; |
| 16368 | REPLACE_GETDOMAINNAME=0; |
| 16369 | REPLACE_GETLOGIN_R=0; |
| 16370 | REPLACE_GETGROUPS=0; |
| 16371 | REPLACE_GETPAGESIZE=0; |
| 16372 | REPLACE_ISATTY=0; |
| 16373 | REPLACE_LCHOWN=0; |
| 16374 | REPLACE_LINK=0; |
| 16375 | REPLACE_LINKAT=0; |
| 16376 | REPLACE_LSEEK=0; |
| 16377 | REPLACE_PREAD=0; |
| 16378 | REPLACE_PWRITE=0; |
| 16379 | REPLACE_READ=0; |
| 16380 | REPLACE_READLINK=0; |
| 16381 | REPLACE_RMDIR=0; |
| 16382 | REPLACE_SLEEP=0; |
| 16383 | REPLACE_SYMLINK=0; |
| 16384 | REPLACE_TTYNAME_R=0; |
| 16385 | REPLACE_UNLINK=0; |
| 16386 | REPLACE_UNLINKAT=0; |
| 16387 | REPLACE_USLEEP=0; |
| 16388 | REPLACE_WRITE=0; |
| 16389 | UNISTD_H_HAVE_WINSOCK2_H=0; |
| 16390 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
| 16391 | |
| 16392 | |
| 16393 | |
| 16394 | |
| 16395 | |
| 16396 | |
| 16397 | |
| 16398 | |
| 16399 | |
| 16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 |
| 16401 | $as_echo_n "checking if environ is properly declared... " >&6; } |
| 16402 | if test "${gt_cv_var_environ_declaration+set}" = set; then : |
| 16403 | $as_echo_n "(cached) " >&6 |
| 16404 | else |
| 16405 | |
| 16406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16407 | /* end confdefs.h. */ |
| 16408 | #if HAVE_UNISTD_H |
| 16409 | #include <unistd.h> |
| 16410 | #endif |
| 16411 | /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ |
| 16412 | #include <stdlib.h> |
| 16413 | |
| 16414 | extern struct { int foo; } environ; |
| 16415 | int |
| 16416 | main () |
| 16417 | { |
| 16418 | environ.foo = 1; |
| 16419 | ; |
| 16420 | return 0; |
| 16421 | } |
| 16422 | _ACEOF |
| 16423 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16424 | gt_cv_var_environ_declaration=no |
| 16425 | else |
| 16426 | gt_cv_var_environ_declaration=yes |
| 16427 | fi |
| 16428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16429 | fi |
| 16430 | |
| 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 |
| 16432 | $as_echo "$gt_cv_var_environ_declaration" >&6; } |
| 16433 | if test $gt_cv_var_environ_declaration = yes; then |
| 16434 | |
| 16435 | $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h |
| 16436 | |
| 16437 | fi |
| 16438 | |
| 16439 | |
| 16440 | if test $gt_cv_var_environ_declaration != yes; then |
| 16441 | HAVE_DECL_ENVIRON=0 |
| 16442 | fi |
| 16443 | |
| 16444 | |
| 16445 | |
| 16446 | |
| 16447 | |
| 16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 |
| 16449 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } |
| 16450 | if test "${ac_cv_struct_st_dm_mode+set}" = set; then : |
| 16451 | $as_echo_n "(cached) " >&6 |
| 16452 | else |
| 16453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16454 | /* end confdefs.h. */ |
| 16455 | |
| 16456 | #include <sys/types.h> |
| 16457 | #include <sys/stat.h> |
| 16458 | int |
| 16459 | main () |
| 16460 | { |
| 16461 | struct stat s; s.st_dm_mode; |
| 16462 | ; |
| 16463 | return 0; |
| 16464 | } |
| 16465 | _ACEOF |
| 16466 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16467 | ac_cv_struct_st_dm_mode=yes |
| 16468 | else |
| 16469 | ac_cv_struct_st_dm_mode=no |
| 16470 | fi |
| 16471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16472 | fi |
| 16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 |
| 16474 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } |
| 16475 | |
| 16476 | if test $ac_cv_struct_st_dm_mode = yes; then |
| 16477 | |
| 16478 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h |
| 16479 | |
| 16480 | fi |
| 16481 | |
| 16482 | |
| 16483 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" |
| 16484 | if test "x$ac_cv_have_decl_strmode" = x""yes; then : |
| 16485 | ac_have_decl=1 |
| 16486 | else |
| 16487 | ac_have_decl=0 |
| 16488 | fi |
| 16489 | |
| 16490 | cat >>confdefs.h <<_ACEOF |
| 16491 | #define HAVE_DECL_STRMODE $ac_have_decl |
| 16492 | _ACEOF |
| 16493 | |
| 16494 | |
| 16495 | GNULIB__EXIT=0; |
| 16496 | GNULIB_ATOLL=0; |
| 16497 | GNULIB_CALLOC_POSIX=0; |
| 16498 | GNULIB_CANONICALIZE_FILE_NAME=0; |
| 16499 | GNULIB_GETLOADAVG=0; |
| 16500 | GNULIB_GETSUBOPT=0; |
| 16501 | GNULIB_GRANTPT=0; |
| 16502 | GNULIB_MALLOC_POSIX=0; |
| 16503 | GNULIB_MBTOWC=0; |
| 16504 | GNULIB_MKDTEMP=0; |
| 16505 | GNULIB_MKOSTEMP=0; |
| 16506 | GNULIB_MKOSTEMPS=0; |
| 16507 | GNULIB_MKSTEMP=0; |
| 16508 | GNULIB_MKSTEMPS=0; |
| 16509 | GNULIB_POSIX_OPENPT=0; |
| 16510 | GNULIB_PTSNAME=0; |
| 16511 | GNULIB_PTSNAME_R=0; |
| 16512 | GNULIB_PUTENV=0; |
| 16513 | GNULIB_RANDOM=0; |
| 16514 | GNULIB_RANDOM_R=0; |
| 16515 | GNULIB_REALLOC_POSIX=0; |
| 16516 | GNULIB_REALPATH=0; |
| 16517 | GNULIB_RPMATCH=0; |
| 16518 | GNULIB_SETENV=0; |
| 16519 | GNULIB_STRTOD=0; |
| 16520 | GNULIB_STRTOLL=0; |
| 16521 | GNULIB_STRTOULL=0; |
| 16522 | GNULIB_SYSTEM_POSIX=0; |
| 16523 | GNULIB_UNLOCKPT=0; |
| 16524 | GNULIB_UNSETENV=0; |
| 16525 | GNULIB_WCTOMB=0; |
| 16526 | HAVE__EXIT=1; |
| 16527 | HAVE_ATOLL=1; |
| 16528 | HAVE_CANONICALIZE_FILE_NAME=1; |
| 16529 | HAVE_DECL_GETLOADAVG=1; |
| 16530 | HAVE_GETSUBOPT=1; |
| 16531 | HAVE_GRANTPT=1; |
| 16532 | HAVE_MKDTEMP=1; |
| 16533 | HAVE_MKOSTEMP=1; |
| 16534 | HAVE_MKOSTEMPS=1; |
| 16535 | HAVE_MKSTEMP=1; |
| 16536 | HAVE_MKSTEMPS=1; |
| 16537 | HAVE_POSIX_OPENPT=1; |
| 16538 | HAVE_PTSNAME=1; |
| 16539 | HAVE_PTSNAME_R=1; |
| 16540 | HAVE_RANDOM=1; |
| 16541 | HAVE_RANDOM_H=1; |
| 16542 | HAVE_RANDOM_R=1; |
| 16543 | HAVE_REALPATH=1; |
| 16544 | HAVE_RPMATCH=1; |
| 16545 | HAVE_SETENV=1; |
| 16546 | HAVE_DECL_SETENV=1; |
| 16547 | HAVE_STRTOD=1; |
| 16548 | HAVE_STRTOLL=1; |
| 16549 | HAVE_STRTOULL=1; |
| 16550 | HAVE_STRUCT_RANDOM_DATA=1; |
| 16551 | HAVE_SYS_LOADAVG_H=0; |
| 16552 | HAVE_UNLOCKPT=1; |
| 16553 | HAVE_DECL_UNSETENV=1; |
| 16554 | REPLACE_CALLOC=0; |
| 16555 | REPLACE_CANONICALIZE_FILE_NAME=0; |
| 16556 | REPLACE_MALLOC=0; |
| 16557 | REPLACE_MBTOWC=0; |
| 16558 | REPLACE_MKSTEMP=0; |
| 16559 | REPLACE_PTSNAME_R=0; |
| 16560 | REPLACE_PUTENV=0; |
| 16561 | REPLACE_RANDOM_R=0; |
| 16562 | REPLACE_REALLOC=0; |
| 16563 | REPLACE_REALPATH=0; |
| 16564 | REPLACE_SETENV=0; |
| 16565 | REPLACE_STRTOD=0; |
| 16566 | REPLACE_UNSETENV=0; |
| 16567 | REPLACE_WCTOMB=0; |
| 16568 | |
| 16569 | |
| 16570 | |
| 16571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 16572 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
| 16573 | if test "${gl_cv_have_include_next+set}" = set; then : |
| 16574 | $as_echo_n "(cached) " >&6 |
| 16575 | else |
| 16576 | rm -rf conftestd1a conftestd1b conftestd2 |
| 16577 | mkdir conftestd1a conftestd1b conftestd2 |
| 16578 | cat <<EOF > conftestd1a/conftest.h |
| 16579 | #define DEFINED_IN_CONFTESTD1 |
| 16580 | #include_next <conftest.h> |
| 16581 | #ifdef DEFINED_IN_CONFTESTD2 |
| 16582 | int foo; |
| 16583 | #else |
| 16584 | #error "include_next doesn't work" |
| 16585 | #endif |
| 16586 | EOF |
| 16587 | cat <<EOF > conftestd1b/conftest.h |
| 16588 | #define DEFINED_IN_CONFTESTD1 |
| 16589 | #include <stdio.h> |
| 16590 | #include_next <conftest.h> |
| 16591 | #ifdef DEFINED_IN_CONFTESTD2 |
| 16592 | int foo; |
| 16593 | #else |
| 16594 | #error "include_next doesn't work" |
| 16595 | #endif |
| 16596 | EOF |
| 16597 | cat <<EOF > conftestd2/conftest.h |
| 16598 | #ifndef DEFINED_IN_CONFTESTD1 |
| 16599 | #error "include_next test doesn't work" |
| 16600 | #endif |
| 16601 | #define DEFINED_IN_CONFTESTD2 |
| 16602 | EOF |
| 16603 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 16604 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" |
| 16605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16606 | /* end confdefs.h. */ |
| 16607 | #include <conftest.h> |
| 16608 | _ACEOF |
| 16609 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16610 | gl_cv_have_include_next=yes |
| 16611 | else |
| 16612 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
| 16613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16614 | /* end confdefs.h. */ |
| 16615 | #include <conftest.h> |
| 16616 | _ACEOF |
| 16617 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16618 | gl_cv_have_include_next=buggy |
| 16619 | else |
| 16620 | gl_cv_have_include_next=no |
| 16621 | fi |
| 16622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16623 | |
| 16624 | fi |
| 16625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16626 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 16627 | rm -rf conftestd1a conftestd1b conftestd2 |
| 16628 | |
| 16629 | fi |
| 16630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 |
| 16631 | $as_echo "$gl_cv_have_include_next" >&6; } |
| 16632 | PRAGMA_SYSTEM_HEADER= |
| 16633 | if test $gl_cv_have_include_next = yes; then |
| 16634 | INCLUDE_NEXT=include_next |
| 16635 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16636 | if test -n "$GCC"; then |
| 16637 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' |
| 16638 | fi |
| 16639 | else |
| 16640 | if test $gl_cv_have_include_next = buggy; then |
| 16641 | INCLUDE_NEXT=include |
| 16642 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16643 | else |
| 16644 | INCLUDE_NEXT=include |
| 16645 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
| 16646 | fi |
| 16647 | fi |
| 16648 | |
| 16649 | |
| 16650 | |
| 16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 |
| 16652 | $as_echo_n "checking whether system header files limit the line length... " >&6; } |
| 16653 | if test "${gl_cv_pragma_columns+set}" = set; then : |
| 16654 | $as_echo_n "(cached) " >&6 |
| 16655 | else |
| 16656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16657 | /* end confdefs.h. */ |
| 16658 | |
| 16659 | #ifdef __TANDEM |
| 16660 | choke me |
| 16661 | #endif |
| 16662 | |
| 16663 | _ACEOF |
| 16664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16665 | $EGREP "choke me" >/dev/null 2>&1; then : |
| 16666 | gl_cv_pragma_columns=yes |
| 16667 | else |
| 16668 | gl_cv_pragma_columns=no |
| 16669 | fi |
| 16670 | rm -f conftest* |
| 16671 | |
| 16672 | |
| 16673 | fi |
| 16674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
| 16675 | $as_echo "$gl_cv_pragma_columns" >&6; } |
| 16676 | if test $gl_cv_pragma_columns = yes; then |
| 16677 | PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
| 16678 | else |
| 16679 | PRAGMA_COLUMNS= |
| 16680 | fi |
| 16681 | |
| 16682 | |
| 16683 | |
| 16684 | |
| 16685 | |
| 16686 | |
| 16687 | |
| 16688 | |
| 16689 | |
| 16690 | |
| 16691 | |
| 16692 | |
| 16693 | |
| 16694 | |
| 16695 | |
| 16696 | |
| 16697 | |
| 16698 | if test $gl_cv_have_include_next = yes; then |
| 16699 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 16700 | else |
| 16701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 |
| 16702 | $as_echo_n "checking absolute name of <getopt.h>... " >&6; } |
| 16703 | if test "${gl_cv_next_getopt_h+set}" = set; then : |
| 16704 | $as_echo_n "(cached) " >&6 |
| 16705 | else |
| 16706 | |
| 16707 | if test $ac_cv_header_getopt_h = yes; then |
| 16708 | |
| 16709 | |
| 16710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16711 | /* end confdefs.h. */ |
| 16712 | #include <getopt.h> |
| 16713 | |
| 16714 | _ACEOF |
| 16715 | case "$host_os" in |
| 16716 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 16717 | *) gl_absname_cpp="$ac_cpp" ;; |
| 16718 | esac |
| 16719 | |
| 16720 | case "$host_os" in |
| 16721 | mingw*) |
| 16722 | gl_dirsep_regex='[/\\]' |
| 16723 | ;; |
| 16724 | *) |
| 16725 | gl_dirsep_regex='\/' |
| 16726 | ;; |
| 16727 | esac |
| 16728 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 16729 | |
| 16730 | gl_header_literal_regex=`echo 'getopt.h' \ |
| 16731 | | sed -e "$gl_make_literal_regex_sed"` |
| 16732 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 16733 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 16734 | s|^/[^/]|//&| |
| 16735 | p |
| 16736 | q |
| 16737 | }' |
| 16738 | gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 16739 | sed -n "$gl_absolute_header_sed"`'"' |
| 16740 | else |
| 16741 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 16742 | fi |
| 16743 | |
| 16744 | |
| 16745 | fi |
| 16746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
| 16747 | $as_echo "$gl_cv_next_getopt_h" >&6; } |
| 16748 | fi |
| 16749 | NEXT_GETOPT_H=$gl_cv_next_getopt_h |
| 16750 | |
| 16751 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 16752 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 16753 | gl_next_as_first_directive='<'getopt.h'>' |
| 16754 | else |
| 16755 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 16756 | gl_next_as_first_directive=$gl_cv_next_getopt_h |
| 16757 | fi |
| 16758 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive |
| 16759 | |
| 16760 | |
| 16761 | |
| 16762 | |
| 16763 | if test $ac_cv_header_getopt_h = yes; then |
| 16764 | HAVE_GETOPT_H=1 |
| 16765 | else |
| 16766 | HAVE_GETOPT_H=0 |
| 16767 | fi |
| 16768 | |
| 16769 | |
| 16770 | gl_replace_getopt= |
| 16771 | |
| 16772 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 16773 | for ac_header in getopt.h |
| 16774 | do : |
| 16775 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 16776 | if test "x$ac_cv_header_getopt_h" = x""yes; then : |
| 16777 | cat >>confdefs.h <<_ACEOF |
| 16778 | #define HAVE_GETOPT_H 1 |
| 16779 | _ACEOF |
| 16780 | |
| 16781 | else |
| 16782 | gl_replace_getopt=yes |
| 16783 | fi |
| 16784 | |
| 16785 | done |
| 16786 | |
| 16787 | fi |
| 16788 | |
| 16789 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 16790 | for ac_func in getopt_long_only |
| 16791 | do : |
| 16792 | ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" |
| 16793 | if test "x$ac_cv_func_getopt_long_only" = x""yes; then : |
| 16794 | cat >>confdefs.h <<_ACEOF |
| 16795 | #define HAVE_GETOPT_LONG_ONLY 1 |
| 16796 | _ACEOF |
| 16797 | |
| 16798 | else |
| 16799 | gl_replace_getopt=yes |
| 16800 | fi |
| 16801 | done |
| 16802 | |
| 16803 | fi |
| 16804 | |
| 16805 | if test -z "$gl_replace_getopt"; then |
| 16806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 |
| 16807 | $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } |
| 16808 | if test "${gl_cv_func_getopt_posix+set}" = set; then : |
| 16809 | $as_echo_n "(cached) " >&6 |
| 16810 | else |
| 16811 | |
| 16812 | if test $cross_compiling = no; then |
| 16813 | if test "$cross_compiling" = yes; then : |
| 16814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16816 | as_fn_error "cannot run test program while cross compiling |
| 16817 | See \`config.log' for more details." "$LINENO" 5; } |
| 16818 | else |
| 16819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16820 | /* end confdefs.h. */ |
| 16821 | |
| 16822 | #include <unistd.h> |
| 16823 | #include <stdlib.h> |
| 16824 | #include <string.h> |
| 16825 | |
| 16826 | int |
| 16827 | main () |
| 16828 | { |
| 16829 | static char program[] = "program"; |
| 16830 | static char a[] = "-a"; |
| 16831 | static char foo[] = "foo"; |
| 16832 | static char bar[] = "bar"; |
| 16833 | char *argv[] = { program, a, foo, bar, NULL }; |
| 16834 | int c; |
| 16835 | |
| 16836 | c = getopt (4, argv, "ab"); |
| 16837 | if (!(c == 'a')) |
| 16838 | return 1; |
| 16839 | c = getopt (4, argv, "ab"); |
| 16840 | if (!(c == -1)) |
| 16841 | return 2; |
| 16842 | if (!(optind == 2)) |
| 16843 | return 3; |
| 16844 | return 0; |
| 16845 | } |
| 16846 | |
| 16847 | _ACEOF |
| 16848 | if ac_fn_c_try_run "$LINENO"; then : |
| 16849 | gl_cv_func_getopt_posix=maybe |
| 16850 | else |
| 16851 | gl_cv_func_getopt_posix=no |
| 16852 | fi |
| 16853 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16854 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16855 | fi |
| 16856 | |
| 16857 | if test $gl_cv_func_getopt_posix = maybe; then |
| 16858 | if test "$cross_compiling" = yes; then : |
| 16859 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16861 | as_fn_error "cannot run test program while cross compiling |
| 16862 | See \`config.log' for more details." "$LINENO" 5; } |
| 16863 | else |
| 16864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16865 | /* end confdefs.h. */ |
| 16866 | |
| 16867 | #include <unistd.h> |
| 16868 | #include <stdlib.h> |
| 16869 | #include <string.h> |
| 16870 | |
| 16871 | int |
| 16872 | main () |
| 16873 | { |
| 16874 | static char program[] = "program"; |
| 16875 | static char donald[] = "donald"; |
| 16876 | static char p[] = "-p"; |
| 16877 | static char billy[] = "billy"; |
| 16878 | static char duck[] = "duck"; |
| 16879 | static char a[] = "-a"; |
| 16880 | static char bar[] = "bar"; |
| 16881 | char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; |
| 16882 | int c; |
| 16883 | |
| 16884 | c = getopt (7, argv, "+abp:q:"); |
| 16885 | if (!(c == -1)) |
| 16886 | return 4; |
| 16887 | if (!(strcmp (argv[0], "program") == 0)) |
| 16888 | return 5; |
| 16889 | if (!(strcmp (argv[1], "donald") == 0)) |
| 16890 | return 6; |
| 16891 | if (!(strcmp (argv[2], "-p") == 0)) |
| 16892 | return 7; |
| 16893 | if (!(strcmp (argv[3], "billy") == 0)) |
| 16894 | return 8; |
| 16895 | if (!(strcmp (argv[4], "duck") == 0)) |
| 16896 | return 9; |
| 16897 | if (!(strcmp (argv[5], "-a") == 0)) |
| 16898 | return 10; |
| 16899 | if (!(strcmp (argv[6], "bar") == 0)) |
| 16900 | return 11; |
| 16901 | if (!(optind == 1)) |
| 16902 | return 12; |
| 16903 | return 0; |
| 16904 | } |
| 16905 | |
| 16906 | _ACEOF |
| 16907 | if ac_fn_c_try_run "$LINENO"; then : |
| 16908 | gl_cv_func_getopt_posix=maybe |
| 16909 | else |
| 16910 | gl_cv_func_getopt_posix=no |
| 16911 | fi |
| 16912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16913 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16914 | fi |
| 16915 | |
| 16916 | fi |
| 16917 | if test $gl_cv_func_getopt_posix = maybe; then |
| 16918 | if test "$cross_compiling" = yes; then : |
| 16919 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16920 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16921 | as_fn_error "cannot run test program while cross compiling |
| 16922 | See \`config.log' for more details." "$LINENO" 5; } |
| 16923 | else |
| 16924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16925 | /* end confdefs.h. */ |
| 16926 | |
| 16927 | #include <unistd.h> |
| 16928 | #include <stdlib.h> |
| 16929 | #include <string.h> |
| 16930 | |
| 16931 | int |
| 16932 | main () |
| 16933 | { |
| 16934 | static char program[] = "program"; |
| 16935 | static char ab[] = "-ab"; |
| 16936 | char *argv[3] = { program, ab, NULL }; |
| 16937 | if (getopt (2, argv, "ab:") != 'a') |
| 16938 | return 13; |
| 16939 | if (getopt (2, argv, "ab:") != '?') |
| 16940 | return 14; |
| 16941 | if (optopt != 'b') |
| 16942 | return 15; |
| 16943 | if (optind != 2) |
| 16944 | return 16; |
| 16945 | return 0; |
| 16946 | } |
| 16947 | |
| 16948 | _ACEOF |
| 16949 | if ac_fn_c_try_run "$LINENO"; then : |
| 16950 | gl_cv_func_getopt_posix=yes |
| 16951 | else |
| 16952 | gl_cv_func_getopt_posix=no |
| 16953 | fi |
| 16954 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16955 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16956 | fi |
| 16957 | |
| 16958 | fi |
| 16959 | else |
| 16960 | case "$host_os" in |
| 16961 | darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; |
| 16962 | *) gl_cv_func_getopt_posix="guessing yes";; |
| 16963 | esac |
| 16964 | fi |
| 16965 | |
| 16966 | fi |
| 16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 |
| 16968 | $as_echo "$gl_cv_func_getopt_posix" >&6; } |
| 16969 | case "$gl_cv_func_getopt_posix" in |
| 16970 | *no) gl_replace_getopt=yes ;; |
| 16971 | esac |
| 16972 | fi |
| 16973 | |
| 16974 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 |
| 16976 | $as_echo_n "checking for working GNU getopt function... " >&6; } |
| 16977 | if test "${gl_cv_func_getopt_gnu+set}" = set; then : |
| 16978 | $as_echo_n "(cached) " >&6 |
| 16979 | else |
| 16980 | # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the |
| 16981 | # optstring is necessary for programs like m4 that have POSIX-mandated |
| 16982 | # semantics for supporting options interspersed with files. |
| 16983 | # Also, since getopt_long is a GNU extension, we require optind=0. |
| 16984 | # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; |
| 16985 | # so take care to revert to the correct (non-)export state. |
| 16986 | gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' |
| 16987 | case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in |
| 16988 | xx) gl_had_POSIXLY_CORRECT=exported ;; |
| 16989 | x) gl_had_POSIXLY_CORRECT=yes ;; |
| 16990 | *) gl_had_POSIXLY_CORRECT= ;; |
| 16991 | esac |
| 16992 | POSIXLY_CORRECT=1 |
| 16993 | export POSIXLY_CORRECT |
| 16994 | if test "$cross_compiling" = yes; then : |
| 16995 | gl_cv_func_getopt_gnu="guessing no" |
| 16996 | |
| 16997 | else |
| 16998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16999 | /* end confdefs.h. */ |
| 17000 | #include <getopt.h> |
| 17001 | #include <stddef.h> |
| 17002 | #include <string.h> |
| 17003 | |
| 17004 | #include <stdlib.h> |
| 17005 | #if defined __MACH__ && defined __APPLE__ |
| 17006 | /* Avoid a crash on Mac OS X. */ |
| 17007 | #include <mach/mach.h> |
| 17008 | #include <mach/mach_error.h> |
| 17009 | #include <mach/thread_status.h> |
| 17010 | #include <mach/exception.h> |
| 17011 | #include <mach/task.h> |
| 17012 | #include <pthread.h> |
| 17013 | /* The exception port on which our thread listens. */ |
| 17014 | static mach_port_t our_exception_port; |
| 17015 | /* The main function of the thread listening for exceptions of type |
| 17016 | EXC_BAD_ACCESS. */ |
| 17017 | static void * |
| 17018 | mach_exception_thread (void *arg) |
| 17019 | { |
| 17020 | /* Buffer for a message to be received. */ |
| 17021 | struct { |
| 17022 | mach_msg_header_t head; |
| 17023 | mach_msg_body_t msgh_body; |
| 17024 | char data[1024]; |
| 17025 | } msg; |
| 17026 | mach_msg_return_t retval; |
| 17027 | /* Wait for a message on the exception port. */ |
| 17028 | retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 17029 | our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 17030 | if (retval != MACH_MSG_SUCCESS) |
| 17031 | abort (); |
| 17032 | exit (1); |
| 17033 | } |
| 17034 | static void |
| 17035 | nocrash_init (void) |
| 17036 | { |
| 17037 | mach_port_t self = mach_task_self (); |
| 17038 | /* Allocate a port on which the thread shall listen for exceptions. */ |
| 17039 | if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 17040 | == KERN_SUCCESS) { |
| 17041 | /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 17042 | if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 17043 | MACH_MSG_TYPE_MAKE_SEND) |
| 17044 | == KERN_SUCCESS) { |
| 17045 | /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 17046 | for us. */ |
| 17047 | exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 17048 | /* Create the thread listening on the exception port. */ |
| 17049 | pthread_attr_t attr; |
| 17050 | pthread_t thread; |
| 17051 | if (pthread_attr_init (&attr) == 0 |
| 17052 | && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 17053 | && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 17054 | pthread_attr_destroy (&attr); |
| 17055 | /* Replace the exception port info for these exceptions with our own. |
| 17056 | Note that we replace the exception port for the entire task, not only |
| 17057 | for a particular thread. This has the effect that when our exception |
| 17058 | port gets the message, the thread specific exception port has already |
| 17059 | been asked, and we don't need to bother about it. |
| 17060 | See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 17061 | task_set_exception_ports (self, mask, our_exception_port, |
| 17062 | EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 17063 | } |
| 17064 | } |
| 17065 | } |
| 17066 | } |
| 17067 | #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 17068 | /* Avoid a crash on native Windows. */ |
| 17069 | #define WIN32_LEAN_AND_MEAN |
| 17070 | #include <windows.h> |
| 17071 | #include <winerror.h> |
| 17072 | static LONG WINAPI |
| 17073 | exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 17074 | { |
| 17075 | switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 17076 | { |
| 17077 | case EXCEPTION_ACCESS_VIOLATION: |
| 17078 | case EXCEPTION_IN_PAGE_ERROR: |
| 17079 | case EXCEPTION_STACK_OVERFLOW: |
| 17080 | case EXCEPTION_GUARD_PAGE: |
| 17081 | case EXCEPTION_PRIV_INSTRUCTION: |
| 17082 | case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 17083 | case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 17084 | case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 17085 | case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 17086 | exit (1); |
| 17087 | } |
| 17088 | return EXCEPTION_CONTINUE_SEARCH; |
| 17089 | } |
| 17090 | static void |
| 17091 | nocrash_init (void) |
| 17092 | { |
| 17093 | SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 17094 | } |
| 17095 | #else |
| 17096 | /* Avoid a crash on POSIX systems. */ |
| 17097 | #include <signal.h> |
| 17098 | /* A POSIX signal handler. */ |
| 17099 | static void |
| 17100 | exception_handler (int sig) |
| 17101 | { |
| 17102 | exit (1); |
| 17103 | } |
| 17104 | static void |
| 17105 | nocrash_init (void) |
| 17106 | { |
| 17107 | #ifdef SIGSEGV |
| 17108 | signal (SIGSEGV, exception_handler); |
| 17109 | #endif |
| 17110 | #ifdef SIGBUS |
| 17111 | signal (SIGBUS, exception_handler); |
| 17112 | #endif |
| 17113 | } |
| 17114 | #endif |
| 17115 | |
| 17116 | |
| 17117 | int |
| 17118 | main () |
| 17119 | { |
| 17120 | |
| 17121 | int result = 0; |
| 17122 | |
| 17123 | nocrash_init(); |
| 17124 | |
| 17125 | /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, |
| 17126 | and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, |
| 17127 | OSF/1 5.1, Solaris 10. */ |
| 17128 | { |
| 17129 | static char conftest[] = "conftest"; |
| 17130 | static char plus[] = "-+"; |
| 17131 | char *argv[3] = { conftest, plus, NULL }; |
| 17132 | opterr = 0; |
| 17133 | if (getopt (2, argv, "+a") != '?') |
| 17134 | result |= 1; |
| 17135 | } |
| 17136 | /* This code succeeds on glibc 2.8, mingw, |
| 17137 | and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
| 17138 | IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ |
| 17139 | { |
| 17140 | static char program[] = "program"; |
| 17141 | static char p[] = "-p"; |
| 17142 | static char foo[] = "foo"; |
| 17143 | static char bar[] = "bar"; |
| 17144 | char *argv[] = { program, p, foo, bar, NULL }; |
| 17145 | |
| 17146 | optind = 1; |
| 17147 | if (getopt (4, argv, "p::") != 'p') |
| 17148 | result |= 2; |
| 17149 | else if (optarg != NULL) |
| 17150 | result |= 4; |
| 17151 | else if (getopt (4, argv, "p::") != -1) |
| 17152 | result |= 6; |
| 17153 | else if (optind != 2) |
| 17154 | result |= 8; |
| 17155 | } |
| 17156 | /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ |
| 17157 | { |
| 17158 | static char program[] = "program"; |
| 17159 | static char foo[] = "foo"; |
| 17160 | static char p[] = "-p"; |
| 17161 | char *argv[] = { program, foo, p, NULL }; |
| 17162 | optind = 0; |
| 17163 | if (getopt (3, argv, "-p") != 1) |
| 17164 | result |= 16; |
| 17165 | else if (getopt (3, argv, "-p") != 'p') |
| 17166 | result |= 16; |
| 17167 | } |
| 17168 | /* This code fails on glibc 2.11. */ |
| 17169 | { |
| 17170 | static char program[] = "program"; |
| 17171 | static char b[] = "-b"; |
| 17172 | static char a[] = "-a"; |
| 17173 | char *argv[] = { program, b, a, NULL }; |
| 17174 | optind = opterr = 0; |
| 17175 | if (getopt (3, argv, "+:a:b") != 'b') |
| 17176 | result |= 32; |
| 17177 | else if (getopt (3, argv, "+:a:b") != ':') |
| 17178 | result |= 32; |
| 17179 | } |
| 17180 | /* This code dumps core on glibc 2.14. */ |
| 17181 | { |
| 17182 | static char program[] = "program"; |
| 17183 | static char w[] = "-W"; |
| 17184 | static char dummy[] = "dummy"; |
| 17185 | char *argv[] = { program, w, dummy, NULL }; |
| 17186 | optind = opterr = 1; |
| 17187 | if (getopt (3, argv, "W;") != 'W') |
| 17188 | result |= 64; |
| 17189 | } |
| 17190 | return result; |
| 17191 | |
| 17192 | ; |
| 17193 | return 0; |
| 17194 | } |
| 17195 | _ACEOF |
| 17196 | if ac_fn_c_try_run "$LINENO"; then : |
| 17197 | gl_cv_func_getopt_gnu=yes |
| 17198 | else |
| 17199 | gl_cv_func_getopt_gnu=no |
| 17200 | fi |
| 17201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17202 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17203 | fi |
| 17204 | |
| 17205 | case $gl_had_POSIXLY_CORRECT in |
| 17206 | exported) ;; |
| 17207 | yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; |
| 17208 | *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; |
| 17209 | esac |
| 17210 | |
| 17211 | fi |
| 17212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 |
| 17213 | $as_echo "$gl_cv_func_getopt_gnu" >&6; } |
| 17214 | if test "$gl_cv_func_getopt_gnu" != yes; then |
| 17215 | gl_replace_getopt=yes |
| 17216 | else |
| 17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 |
| 17218 | $as_echo_n "checking for working GNU getopt_long function... " >&6; } |
| 17219 | if test "${gl_cv_func_getopt_long_gnu+set}" = set; then : |
| 17220 | $as_echo_n "(cached) " >&6 |
| 17221 | else |
| 17222 | if test "$cross_compiling" = yes; then : |
| 17223 | case "$host_os" in |
| 17224 | openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; |
| 17225 | *) gl_cv_func_getopt_long_gnu="guessing yes";; |
| 17226 | esac |
| 17227 | |
| 17228 | else |
| 17229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17230 | /* end confdefs.h. */ |
| 17231 | #include <getopt.h> |
| 17232 | #include <stddef.h> |
| 17233 | #include <string.h> |
| 17234 | |
| 17235 | int |
| 17236 | main () |
| 17237 | { |
| 17238 | static const struct option long_options[] = |
| 17239 | { |
| 17240 | { "xtremely-",no_argument, NULL, 1003 }, |
| 17241 | { "xtra", no_argument, NULL, 1001 }, |
| 17242 | { "xtreme", no_argument, NULL, 1002 }, |
| 17243 | { "xtremely", no_argument, NULL, 1003 }, |
| 17244 | { NULL, 0, NULL, 0 } |
| 17245 | }; |
| 17246 | /* This code fails on OpenBSD 5.0. */ |
| 17247 | { |
| 17248 | static char program[] = "program"; |
| 17249 | static char xtremel[] = "--xtremel"; |
| 17250 | char *argv[] = { program, xtremel, NULL }; |
| 17251 | int option_index; |
| 17252 | optind = 1; opterr = 0; |
| 17253 | if (getopt_long (2, argv, "", long_options, &option_index) != 1003) |
| 17254 | return 1; |
| 17255 | } |
| 17256 | return 0; |
| 17257 | |
| 17258 | ; |
| 17259 | return 0; |
| 17260 | } |
| 17261 | _ACEOF |
| 17262 | if ac_fn_c_try_run "$LINENO"; then : |
| 17263 | gl_cv_func_getopt_long_gnu=yes |
| 17264 | else |
| 17265 | gl_cv_func_getopt_long_gnu=no |
| 17266 | fi |
| 17267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17268 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17269 | fi |
| 17270 | |
| 17271 | |
| 17272 | fi |
| 17273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 |
| 17274 | $as_echo "$gl_cv_func_getopt_long_gnu" >&6; } |
| 17275 | case "$gl_cv_func_getopt_long_gnu" in |
| 17276 | *yes) ;; |
| 17277 | *) gl_replace_getopt=yes ;; |
| 17278 | esac |
| 17279 | fi |
| 17280 | fi |
| 17281 | |
| 17282 | |
| 17283 | |
| 17284 | |
| 17285 | |
| 17286 | |
| 17287 | REPLACE_GETOPT=0 |
| 17288 | if test -n "$gl_replace_getopt"; then |
| 17289 | REPLACE_GETOPT=1 |
| 17290 | fi |
| 17291 | |
| 17292 | if test $REPLACE_GETOPT = 1; then |
| 17293 | |
| 17294 | GETOPT_H=getopt.h |
| 17295 | |
| 17296 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 17297 | |
| 17298 | |
| 17299 | |
| 17300 | fi |
| 17301 | |
| 17302 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
| 17303 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : |
| 17304 | ac_have_decl=1 |
| 17305 | else |
| 17306 | ac_have_decl=0 |
| 17307 | fi |
| 17308 | |
| 17309 | cat >>confdefs.h <<_ACEOF |
| 17310 | #define HAVE_DECL_GETENV $ac_have_decl |
| 17311 | _ACEOF |
| 17312 | |
| 17313 | |
| 17314 | |
| 17315 | |
| 17316 | |
| 17317 | |
| 17318 | |
| 17319 | |
| 17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 17321 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 17322 | if test "${ac_cv_c_restrict+set}" = set; then : |
| 17323 | $as_echo_n "(cached) " >&6 |
| 17324 | else |
| 17325 | ac_cv_c_restrict=no |
| 17326 | # The order here caters to the fact that C++ does not require restrict. |
| 17327 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 17328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17329 | /* end confdefs.h. */ |
| 17330 | typedef int * int_ptr; |
| 17331 | int foo (int_ptr $ac_kw ip) { |
| 17332 | return ip[0]; |
| 17333 | } |
| 17334 | int |
| 17335 | main () |
| 17336 | { |
| 17337 | int s[1]; |
| 17338 | int * $ac_kw t = s; |
| 17339 | t[0] = 0; |
| 17340 | return foo(t) |
| 17341 | ; |
| 17342 | return 0; |
| 17343 | } |
| 17344 | _ACEOF |
| 17345 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17346 | ac_cv_c_restrict=$ac_kw |
| 17347 | fi |
| 17348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17349 | test "$ac_cv_c_restrict" != no && break |
| 17350 | done |
| 17351 | |
| 17352 | fi |
| 17353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 17354 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 17355 | |
| 17356 | case $ac_cv_c_restrict in |
| 17357 | restrict) ;; |
| 17358 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| 17359 | ;; |
| 17360 | *) cat >>confdefs.h <<_ACEOF |
| 17361 | #define restrict $ac_cv_c_restrict |
| 17362 | _ACEOF |
| 17363 | ;; |
| 17364 | esac |
| 17365 | |
| 17366 | |
| 17367 | GNULIB_GETTIMEOFDAY=0; |
| 17368 | HAVE_GETTIMEOFDAY=1; |
| 17369 | HAVE_STRUCT_TIMEVAL=1; |
| 17370 | HAVE_SYS_TIME_H=1; |
| 17371 | REPLACE_GETTIMEOFDAY=0; |
| 17372 | REPLACE_STRUCT_TIMEVAL=0; |
| 17373 | |
| 17374 | |
| 17375 | |
| 17376 | |
| 17377 | |
| 17378 | |
| 17379 | |
| 17380 | |
| 17381 | |
| 17382 | |
| 17383 | |
| 17384 | |
| 17385 | |
| 17386 | |
| 17387 | |
| 17388 | |
| 17389 | if test $gl_cv_have_include_next = yes; then |
| 17390 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 17391 | else |
| 17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 |
| 17393 | $as_echo_n "checking absolute name of <sys/time.h>... " >&6; } |
| 17394 | if test "${gl_cv_next_sys_time_h+set}" = set; then : |
| 17395 | $as_echo_n "(cached) " >&6 |
| 17396 | else |
| 17397 | |
| 17398 | if test $ac_cv_header_sys_time_h = yes; then |
| 17399 | |
| 17400 | |
| 17401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17402 | /* end confdefs.h. */ |
| 17403 | #include <sys/time.h> |
| 17404 | |
| 17405 | _ACEOF |
| 17406 | case "$host_os" in |
| 17407 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17408 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17409 | esac |
| 17410 | |
| 17411 | case "$host_os" in |
| 17412 | mingw*) |
| 17413 | gl_dirsep_regex='[/\\]' |
| 17414 | ;; |
| 17415 | *) |
| 17416 | gl_dirsep_regex='\/' |
| 17417 | ;; |
| 17418 | esac |
| 17419 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17420 | |
| 17421 | gl_header_literal_regex=`echo 'sys/time.h' \ |
| 17422 | | sed -e "$gl_make_literal_regex_sed"` |
| 17423 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17424 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17425 | s|^/[^/]|//&| |
| 17426 | p |
| 17427 | q |
| 17428 | }' |
| 17429 | gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17430 | sed -n "$gl_absolute_header_sed"`'"' |
| 17431 | else |
| 17432 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 17433 | fi |
| 17434 | |
| 17435 | |
| 17436 | fi |
| 17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 |
| 17438 | $as_echo "$gl_cv_next_sys_time_h" >&6; } |
| 17439 | fi |
| 17440 | NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h |
| 17441 | |
| 17442 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17443 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17444 | gl_next_as_first_directive='<'sys/time.h'>' |
| 17445 | else |
| 17446 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17447 | gl_next_as_first_directive=$gl_cv_next_sys_time_h |
| 17448 | fi |
| 17449 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive |
| 17450 | |
| 17451 | |
| 17452 | |
| 17453 | |
| 17454 | |
| 17455 | if test $ac_cv_header_sys_time_h != yes; then |
| 17456 | HAVE_SYS_TIME_H=0 |
| 17457 | fi |
| 17458 | |
| 17459 | |
| 17460 | |
| 17461 | |
| 17462 | |
| 17463 | if test $ac_cv_header_sys_socket_h != yes; then |
| 17464 | for ac_header in winsock2.h |
| 17465 | do : |
| 17466 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 17467 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 17468 | cat >>confdefs.h <<_ACEOF |
| 17469 | #define HAVE_WINSOCK2_H 1 |
| 17470 | _ACEOF |
| 17471 | |
| 17472 | fi |
| 17473 | |
| 17474 | done |
| 17475 | |
| 17476 | fi |
| 17477 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 17478 | HAVE_WINSOCK2_H=1 |
| 17479 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 17480 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 17481 | else |
| 17482 | HAVE_WINSOCK2_H=0 |
| 17483 | fi |
| 17484 | |
| 17485 | |
| 17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 17487 | $as_echo_n "checking for struct timeval... " >&6; } |
| 17488 | if test "${gl_cv_sys_struct_timeval+set}" = set; then : |
| 17489 | $as_echo_n "(cached) " >&6 |
| 17490 | else |
| 17491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17492 | /* end confdefs.h. */ |
| 17493 | #if HAVE_SYS_TIME_H |
| 17494 | #include <sys/time.h> |
| 17495 | #endif |
| 17496 | #include <time.h> |
| 17497 | #if HAVE_WINSOCK2_H |
| 17498 | # include <winsock2.h> |
| 17499 | #endif |
| 17500 | |
| 17501 | int |
| 17502 | main () |
| 17503 | { |
| 17504 | static struct timeval x; x.tv_sec = x.tv_usec; |
| 17505 | ; |
| 17506 | return 0; |
| 17507 | } |
| 17508 | _ACEOF |
| 17509 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17510 | gl_cv_sys_struct_timeval=yes |
| 17511 | else |
| 17512 | gl_cv_sys_struct_timeval=no |
| 17513 | fi |
| 17514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17515 | |
| 17516 | fi |
| 17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 |
| 17518 | $as_echo "$gl_cv_sys_struct_timeval" >&6; } |
| 17519 | if test $gl_cv_sys_struct_timeval != yes; then |
| 17520 | HAVE_STRUCT_TIMEVAL=0 |
| 17521 | else |
| 17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 |
| 17523 | $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; } |
| 17524 | if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then : |
| 17525 | $as_echo_n "(cached) " >&6 |
| 17526 | else |
| 17527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17528 | /* end confdefs.h. */ |
| 17529 | #if HAVE_SYS_TIME_H |
| 17530 | #include <sys/time.h> |
| 17531 | #endif |
| 17532 | #include <time.h> |
| 17533 | #if HAVE_WINSOCK2_H |
| 17534 | # include <winsock2.h> |
| 17535 | #endif |
| 17536 | |
| 17537 | int |
| 17538 | main () |
| 17539 | { |
| 17540 | static struct timeval x; |
| 17541 | typedef int verify_tv_sec_type[ |
| 17542 | sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 |
| 17543 | ]; |
| 17544 | |
| 17545 | ; |
| 17546 | return 0; |
| 17547 | } |
| 17548 | _ACEOF |
| 17549 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17550 | gl_cv_sys_struct_timeval_tv_sec=yes |
| 17551 | else |
| 17552 | gl_cv_sys_struct_timeval_tv_sec=no |
| 17553 | fi |
| 17554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17555 | |
| 17556 | fi |
| 17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 |
| 17558 | $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } |
| 17559 | if test $gl_cv_sys_struct_timeval_tv_sec != yes; then |
| 17560 | REPLACE_STRUCT_TIMEVAL=1 |
| 17561 | fi |
| 17562 | fi |
| 17563 | |
| 17564 | |
| 17565 | |
| 17566 | |
| 17567 | |
| 17568 | |
| 17569 | |
| 17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 17571 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 17572 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : |
| 17573 | $as_echo_n "(cached) " >&6 |
| 17574 | else |
| 17575 | ac_cv_type_unsigned_long_long_int=yes |
| 17576 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 17577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17578 | /* end confdefs.h. */ |
| 17579 | |
| 17580 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 17581 | implementations with broken preprocessors. Perhaps this can |
| 17582 | be revisited in 2012. In the meantime, code should not expect |
| 17583 | #if to work with literals wider than 32 bits. */ |
| 17584 | /* Test literals. */ |
| 17585 | long long int ll = 9223372036854775807ll; |
| 17586 | long long int nll = -9223372036854775807LL; |
| 17587 | unsigned long long int ull = 18446744073709551615ULL; |
| 17588 | /* Test constant expressions. */ |
| 17589 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 17590 | ? 1 : -1)]; |
| 17591 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 17592 | ? 1 : -1)]; |
| 17593 | int i = 63; |
| 17594 | int |
| 17595 | main () |
| 17596 | { |
| 17597 | /* Test availability of runtime routines for shift and division. */ |
| 17598 | long long int llmax = 9223372036854775807ll; |
| 17599 | unsigned long long int ullmax = 18446744073709551615ull; |
| 17600 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 17601 | | (llmax / ll) | (llmax % ll) |
| 17602 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 17603 | | (ullmax / ull) | (ullmax % ull)); |
| 17604 | ; |
| 17605 | return 0; |
| 17606 | } |
| 17607 | |
| 17608 | _ACEOF |
| 17609 | if ac_fn_c_try_link "$LINENO"; then : |
| 17610 | |
| 17611 | else |
| 17612 | ac_cv_type_unsigned_long_long_int=no |
| 17613 | fi |
| 17614 | rm -f core conftest.err conftest.$ac_objext \ |
| 17615 | conftest$ac_exeext conftest.$ac_ext |
| 17616 | fi |
| 17617 | fi |
| 17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 17619 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 17620 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 17621 | |
| 17622 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 17623 | |
| 17624 | fi |
| 17625 | |
| 17626 | |
| 17627 | |
| 17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 17629 | $as_echo_n "checking for long long int... " >&6; } |
| 17630 | if test "${ac_cv_type_long_long_int+set}" = set; then : |
| 17631 | $as_echo_n "(cached) " >&6 |
| 17632 | else |
| 17633 | ac_cv_type_long_long_int=yes |
| 17634 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 17635 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 17636 | if test $ac_cv_type_long_long_int = yes; then |
| 17637 | if test "$cross_compiling" = yes; then : |
| 17638 | : |
| 17639 | else |
| 17640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17641 | /* end confdefs.h. */ |
| 17642 | #include <limits.h> |
| 17643 | #ifndef LLONG_MAX |
| 17644 | # define HALF \ |
| 17645 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 17646 | # define LLONG_MAX (HALF - 1 + HALF) |
| 17647 | #endif |
| 17648 | int |
| 17649 | main () |
| 17650 | { |
| 17651 | long long int n = 1; |
| 17652 | int i; |
| 17653 | for (i = 0; ; i++) |
| 17654 | { |
| 17655 | long long int m = n << i; |
| 17656 | if (m >> i != n) |
| 17657 | return 1; |
| 17658 | if (LLONG_MAX / 2 < m) |
| 17659 | break; |
| 17660 | } |
| 17661 | return 0; |
| 17662 | ; |
| 17663 | return 0; |
| 17664 | } |
| 17665 | _ACEOF |
| 17666 | if ac_fn_c_try_run "$LINENO"; then : |
| 17667 | |
| 17668 | else |
| 17669 | ac_cv_type_long_long_int=no |
| 17670 | fi |
| 17671 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17672 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17673 | fi |
| 17674 | |
| 17675 | fi |
| 17676 | fi |
| 17677 | fi |
| 17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 17679 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 17680 | if test $ac_cv_type_long_long_int = yes; then |
| 17681 | |
| 17682 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 17683 | |
| 17684 | fi |
| 17685 | |
| 17686 | |
| 17687 | |
| 17688 | |
| 17689 | |
| 17690 | |
| 17691 | gl_cv_c_multiarch=no |
| 17692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17693 | /* end confdefs.h. */ |
| 17694 | #ifndef __APPLE_CC__ |
| 17695 | not a universal capable compiler |
| 17696 | #endif |
| 17697 | typedef int dummy; |
| 17698 | |
| 17699 | _ACEOF |
| 17700 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17701 | |
| 17702 | arch= |
| 17703 | prev= |
| 17704 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 17705 | if test -n "$prev"; then |
| 17706 | case $word in |
| 17707 | i?86 | x86_64 | ppc | ppc64) |
| 17708 | if test -z "$arch" || test "$arch" = "$word"; then |
| 17709 | arch="$word" |
| 17710 | else |
| 17711 | gl_cv_c_multiarch=yes |
| 17712 | fi |
| 17713 | ;; |
| 17714 | esac |
| 17715 | prev= |
| 17716 | else |
| 17717 | if test "x$word" = "x-arch"; then |
| 17718 | prev=arch |
| 17719 | fi |
| 17720 | fi |
| 17721 | done |
| 17722 | |
| 17723 | fi |
| 17724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17725 | if test $gl_cv_c_multiarch = yes; then |
| 17726 | APPLE_UNIVERSAL_BUILD=1 |
| 17727 | else |
| 17728 | APPLE_UNIVERSAL_BUILD=0 |
| 17729 | fi |
| 17730 | |
| 17731 | |
| 17732 | |
| 17733 | |
| 17734 | |
| 17735 | if test $ac_cv_type_long_long_int = yes; then |
| 17736 | HAVE_LONG_LONG_INT=1 |
| 17737 | else |
| 17738 | HAVE_LONG_LONG_INT=0 |
| 17739 | fi |
| 17740 | |
| 17741 | |
| 17742 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 17743 | HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 17744 | else |
| 17745 | HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 17746 | fi |
| 17747 | |
| 17748 | |
| 17749 | |
| 17750 | if test $ac_cv_header_wchar_h = yes; then |
| 17751 | HAVE_WCHAR_H=1 |
| 17752 | else |
| 17753 | HAVE_WCHAR_H=0 |
| 17754 | fi |
| 17755 | |
| 17756 | |
| 17757 | if test $ac_cv_header_inttypes_h = yes; then |
| 17758 | HAVE_INTTYPES_H=1 |
| 17759 | else |
| 17760 | HAVE_INTTYPES_H=0 |
| 17761 | fi |
| 17762 | |
| 17763 | |
| 17764 | if test $ac_cv_header_sys_types_h = yes; then |
| 17765 | HAVE_SYS_TYPES_H=1 |
| 17766 | else |
| 17767 | HAVE_SYS_TYPES_H=0 |
| 17768 | fi |
| 17769 | |
| 17770 | |
| 17771 | |
| 17772 | |
| 17773 | |
| 17774 | |
| 17775 | |
| 17776 | |
| 17777 | |
| 17778 | |
| 17779 | |
| 17780 | if test $gl_cv_have_include_next = yes; then |
| 17781 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 17782 | else |
| 17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 17784 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
| 17785 | if test "${gl_cv_next_stdint_h+set}" = set; then : |
| 17786 | $as_echo_n "(cached) " >&6 |
| 17787 | else |
| 17788 | |
| 17789 | if test $ac_cv_header_stdint_h = yes; then |
| 17790 | |
| 17791 | |
| 17792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17793 | /* end confdefs.h. */ |
| 17794 | #include <stdint.h> |
| 17795 | |
| 17796 | _ACEOF |
| 17797 | case "$host_os" in |
| 17798 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17799 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17800 | esac |
| 17801 | |
| 17802 | case "$host_os" in |
| 17803 | mingw*) |
| 17804 | gl_dirsep_regex='[/\\]' |
| 17805 | ;; |
| 17806 | *) |
| 17807 | gl_dirsep_regex='\/' |
| 17808 | ;; |
| 17809 | esac |
| 17810 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17811 | |
| 17812 | gl_header_literal_regex=`echo 'stdint.h' \ |
| 17813 | | sed -e "$gl_make_literal_regex_sed"` |
| 17814 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17815 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17816 | s|^/[^/]|//&| |
| 17817 | p |
| 17818 | q |
| 17819 | }' |
| 17820 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17821 | sed -n "$gl_absolute_header_sed"`'"' |
| 17822 | else |
| 17823 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 17824 | fi |
| 17825 | |
| 17826 | |
| 17827 | fi |
| 17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 17829 | $as_echo "$gl_cv_next_stdint_h" >&6; } |
| 17830 | fi |
| 17831 | NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 17832 | |
| 17833 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17834 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17835 | gl_next_as_first_directive='<'stdint.h'>' |
| 17836 | else |
| 17837 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17838 | gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 17839 | fi |
| 17840 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | |
| 17845 | if test $ac_cv_header_stdint_h = yes; then |
| 17846 | HAVE_STDINT_H=1 |
| 17847 | else |
| 17848 | HAVE_STDINT_H=0 |
| 17849 | fi |
| 17850 | |
| 17851 | |
| 17852 | if test $ac_cv_header_stdint_h = yes; then |
| 17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 17854 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
| 17855 | if test "${gl_cv_header_working_stdint_h+set}" = set; then : |
| 17856 | $as_echo_n "(cached) " >&6 |
| 17857 | else |
| 17858 | gl_cv_header_working_stdint_h=no |
| 17859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17860 | /* end confdefs.h. */ |
| 17861 | |
| 17862 | |
| 17863 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 17864 | #include <stdint.h> |
| 17865 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 17866 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 17867 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 17868 | #endif |
| 17869 | |
| 17870 | |
| 17871 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 17872 | included before <wchar.h>. */ |
| 17873 | #include <stddef.h> |
| 17874 | #include <signal.h> |
| 17875 | #if HAVE_WCHAR_H |
| 17876 | # include <stdio.h> |
| 17877 | # include <time.h> |
| 17878 | # include <wchar.h> |
| 17879 | #endif |
| 17880 | |
| 17881 | |
| 17882 | #ifdef INT8_MAX |
| 17883 | int8_t a1 = INT8_MAX; |
| 17884 | int8_t a1min = INT8_MIN; |
| 17885 | #endif |
| 17886 | #ifdef INT16_MAX |
| 17887 | int16_t a2 = INT16_MAX; |
| 17888 | int16_t a2min = INT16_MIN; |
| 17889 | #endif |
| 17890 | #ifdef INT32_MAX |
| 17891 | int32_t a3 = INT32_MAX; |
| 17892 | int32_t a3min = INT32_MIN; |
| 17893 | #endif |
| 17894 | #ifdef INT64_MAX |
| 17895 | int64_t a4 = INT64_MAX; |
| 17896 | int64_t a4min = INT64_MIN; |
| 17897 | #endif |
| 17898 | #ifdef UINT8_MAX |
| 17899 | uint8_t b1 = UINT8_MAX; |
| 17900 | #else |
| 17901 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 17902 | #endif |
| 17903 | #ifdef UINT16_MAX |
| 17904 | uint16_t b2 = UINT16_MAX; |
| 17905 | #endif |
| 17906 | #ifdef UINT32_MAX |
| 17907 | uint32_t b3 = UINT32_MAX; |
| 17908 | #endif |
| 17909 | #ifdef UINT64_MAX |
| 17910 | uint64_t b4 = UINT64_MAX; |
| 17911 | #endif |
| 17912 | int_least8_t c1 = INT8_C (0x7f); |
| 17913 | int_least8_t c1max = INT_LEAST8_MAX; |
| 17914 | int_least8_t c1min = INT_LEAST8_MIN; |
| 17915 | int_least16_t c2 = INT16_C (0x7fff); |
| 17916 | int_least16_t c2max = INT_LEAST16_MAX; |
| 17917 | int_least16_t c2min = INT_LEAST16_MIN; |
| 17918 | int_least32_t c3 = INT32_C (0x7fffffff); |
| 17919 | int_least32_t c3max = INT_LEAST32_MAX; |
| 17920 | int_least32_t c3min = INT_LEAST32_MIN; |
| 17921 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 17922 | int_least64_t c4max = INT_LEAST64_MAX; |
| 17923 | int_least64_t c4min = INT_LEAST64_MIN; |
| 17924 | uint_least8_t d1 = UINT8_C (0xff); |
| 17925 | uint_least8_t d1max = UINT_LEAST8_MAX; |
| 17926 | uint_least16_t d2 = UINT16_C (0xffff); |
| 17927 | uint_least16_t d2max = UINT_LEAST16_MAX; |
| 17928 | uint_least32_t d3 = UINT32_C (0xffffffff); |
| 17929 | uint_least32_t d3max = UINT_LEAST32_MAX; |
| 17930 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 17931 | uint_least64_t d4max = UINT_LEAST64_MAX; |
| 17932 | int_fast8_t e1 = INT_FAST8_MAX; |
| 17933 | int_fast8_t e1min = INT_FAST8_MIN; |
| 17934 | int_fast16_t e2 = INT_FAST16_MAX; |
| 17935 | int_fast16_t e2min = INT_FAST16_MIN; |
| 17936 | int_fast32_t e3 = INT_FAST32_MAX; |
| 17937 | int_fast32_t e3min = INT_FAST32_MIN; |
| 17938 | int_fast64_t e4 = INT_FAST64_MAX; |
| 17939 | int_fast64_t e4min = INT_FAST64_MIN; |
| 17940 | uint_fast8_t f1 = UINT_FAST8_MAX; |
| 17941 | uint_fast16_t f2 = UINT_FAST16_MAX; |
| 17942 | uint_fast32_t f3 = UINT_FAST32_MAX; |
| 17943 | uint_fast64_t f4 = UINT_FAST64_MAX; |
| 17944 | #ifdef INTPTR_MAX |
| 17945 | intptr_t g = INTPTR_MAX; |
| 17946 | intptr_t gmin = INTPTR_MIN; |
| 17947 | #endif |
| 17948 | #ifdef UINTPTR_MAX |
| 17949 | uintptr_t h = UINTPTR_MAX; |
| 17950 | #endif |
| 17951 | intmax_t i = INTMAX_MAX; |
| 17952 | uintmax_t j = UINTMAX_MAX; |
| 17953 | |
| 17954 | #include <limits.h> /* for CHAR_BIT */ |
| 17955 | #define TYPE_MINIMUM(t) \ |
| 17956 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 17957 | #define TYPE_MAXIMUM(t) \ |
| 17958 | ((t) ((t) 0 < (t) -1 \ |
| 17959 | ? (t) -1 \ |
| 17960 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 17961 | struct s { |
| 17962 | int check_PTRDIFF: |
| 17963 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 17964 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 17965 | ? 1 : -1; |
| 17966 | /* Detect bug in FreeBSD 6.0 / ia64. */ |
| 17967 | int check_SIG_ATOMIC: |
| 17968 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 17969 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 17970 | ? 1 : -1; |
| 17971 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 17972 | int check_WCHAR: |
| 17973 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 17974 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 17975 | ? 1 : -1; |
| 17976 | /* Detect bug in mingw. */ |
| 17977 | int check_WINT: |
| 17978 | WINT_MIN == TYPE_MINIMUM (wint_t) |
| 17979 | && WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 17980 | ? 1 : -1; |
| 17981 | |
| 17982 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 17983 | int check_UINT8_C: |
| 17984 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 17985 | int check_UINT16_C: |
| 17986 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 17987 | |
| 17988 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 17989 | #ifdef UINT8_MAX |
| 17990 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 17991 | #endif |
| 17992 | #ifdef UINT16_MAX |
| 17993 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 17994 | #endif |
| 17995 | #ifdef UINT32_MAX |
| 17996 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 17997 | #endif |
| 17998 | #ifdef UINT64_MAX |
| 17999 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 18000 | #endif |
| 18001 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 18002 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 18003 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 18004 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 18005 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 18006 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 18007 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 18008 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 18009 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 18010 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 18011 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 18012 | }; |
| 18013 | |
| 18014 | int |
| 18015 | main () |
| 18016 | { |
| 18017 | |
| 18018 | ; |
| 18019 | return 0; |
| 18020 | } |
| 18021 | _ACEOF |
| 18022 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18023 | if test "$cross_compiling" = yes; then : |
| 18024 | gl_cv_header_working_stdint_h=yes |
| 18025 | |
| 18026 | else |
| 18027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18028 | /* end confdefs.h. */ |
| 18029 | |
| 18030 | |
| 18031 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 18032 | #include <stdint.h> |
| 18033 | |
| 18034 | |
| 18035 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18036 | included before <wchar.h>. */ |
| 18037 | #include <stddef.h> |
| 18038 | #include <signal.h> |
| 18039 | #if HAVE_WCHAR_H |
| 18040 | # include <stdio.h> |
| 18041 | # include <time.h> |
| 18042 | # include <wchar.h> |
| 18043 | #endif |
| 18044 | |
| 18045 | |
| 18046 | #include <stdio.h> |
| 18047 | #include <string.h> |
| 18048 | #define MVAL(macro) MVAL1(macro) |
| 18049 | #define MVAL1(expression) #expression |
| 18050 | static const char *macro_values[] = |
| 18051 | { |
| 18052 | #ifdef INT8_MAX |
| 18053 | MVAL (INT8_MAX), |
| 18054 | #endif |
| 18055 | #ifdef INT16_MAX |
| 18056 | MVAL (INT16_MAX), |
| 18057 | #endif |
| 18058 | #ifdef INT32_MAX |
| 18059 | MVAL (INT32_MAX), |
| 18060 | #endif |
| 18061 | #ifdef INT64_MAX |
| 18062 | MVAL (INT64_MAX), |
| 18063 | #endif |
| 18064 | #ifdef UINT8_MAX |
| 18065 | MVAL (UINT8_MAX), |
| 18066 | #endif |
| 18067 | #ifdef UINT16_MAX |
| 18068 | MVAL (UINT16_MAX), |
| 18069 | #endif |
| 18070 | #ifdef UINT32_MAX |
| 18071 | MVAL (UINT32_MAX), |
| 18072 | #endif |
| 18073 | #ifdef UINT64_MAX |
| 18074 | MVAL (UINT64_MAX), |
| 18075 | #endif |
| 18076 | NULL |
| 18077 | }; |
| 18078 | |
| 18079 | int |
| 18080 | main () |
| 18081 | { |
| 18082 | |
| 18083 | const char **mv; |
| 18084 | for (mv = macro_values; *mv != NULL; mv++) |
| 18085 | { |
| 18086 | const char *value = *mv; |
| 18087 | /* Test whether it looks like a cast expression. */ |
| 18088 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 18089 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 18090 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 18091 | || strncmp (value, "((int)"/*)*/, 6) == 0 |
| 18092 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 18093 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 18094 | return mv - macro_values + 1; |
| 18095 | } |
| 18096 | return 0; |
| 18097 | |
| 18098 | ; |
| 18099 | return 0; |
| 18100 | } |
| 18101 | _ACEOF |
| 18102 | if ac_fn_c_try_run "$LINENO"; then : |
| 18103 | gl_cv_header_working_stdint_h=yes |
| 18104 | fi |
| 18105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18106 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18107 | fi |
| 18108 | |
| 18109 | |
| 18110 | fi |
| 18111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18112 | |
| 18113 | fi |
| 18114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 18115 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } |
| 18116 | fi |
| 18117 | if test "$gl_cv_header_working_stdint_h" = yes; then |
| 18118 | STDINT_H= |
| 18119 | else |
| 18120 | for ac_header in sys/inttypes.h sys/bitypes.h |
| 18121 | do : |
| 18122 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18123 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 18124 | eval as_val=\$$as_ac_Header |
| 18125 | if test "x$as_val" = x""yes; then : |
| 18126 | cat >>confdefs.h <<_ACEOF |
| 18127 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18128 | _ACEOF |
| 18129 | |
| 18130 | fi |
| 18131 | |
| 18132 | done |
| 18133 | |
| 18134 | if test $ac_cv_header_sys_inttypes_h = yes; then |
| 18135 | HAVE_SYS_INTTYPES_H=1 |
| 18136 | else |
| 18137 | HAVE_SYS_INTTYPES_H=0 |
| 18138 | fi |
| 18139 | |
| 18140 | if test $ac_cv_header_sys_bitypes_h = yes; then |
| 18141 | HAVE_SYS_BITYPES_H=1 |
| 18142 | else |
| 18143 | HAVE_SYS_BITYPES_H=0 |
| 18144 | fi |
| 18145 | |
| 18146 | |
| 18147 | |
| 18148 | |
| 18149 | if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 18150 | |
| 18151 | |
| 18152 | for gltype in ptrdiff_t size_t ; do |
| 18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 18154 | $as_echo_n "checking for bit size of $gltype... " >&6; } |
| 18155 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18156 | $as_echo_n "(cached) " >&6 |
| 18157 | else |
| 18158 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 18159 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18160 | included before <wchar.h>. */ |
| 18161 | #include <stddef.h> |
| 18162 | #include <signal.h> |
| 18163 | #if HAVE_WCHAR_H |
| 18164 | # include <stdio.h> |
| 18165 | # include <time.h> |
| 18166 | # include <wchar.h> |
| 18167 | #endif |
| 18168 | |
| 18169 | #include <limits.h>"; then : |
| 18170 | |
| 18171 | else |
| 18172 | result=unknown |
| 18173 | fi |
| 18174 | |
| 18175 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 18176 | |
| 18177 | fi |
| 18178 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 18179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18180 | $as_echo "$ac_res" >&6; } |
| 18181 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 18182 | if test $result = unknown; then |
| 18183 | result=0 |
| 18184 | fi |
| 18185 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18186 | cat >>confdefs.h <<_ACEOF |
| 18187 | #define BITSIZEOF_${GLTYPE} $result |
| 18188 | _ACEOF |
| 18189 | |
| 18190 | eval BITSIZEOF_${GLTYPE}=\$result |
| 18191 | done |
| 18192 | |
| 18193 | |
| 18194 | fi |
| 18195 | |
| 18196 | |
| 18197 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 18199 | $as_echo_n "checking for bit size of $gltype... " >&6; } |
| 18200 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18201 | $as_echo_n "(cached) " >&6 |
| 18202 | else |
| 18203 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 18204 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18205 | included before <wchar.h>. */ |
| 18206 | #include <stddef.h> |
| 18207 | #include <signal.h> |
| 18208 | #if HAVE_WCHAR_H |
| 18209 | # include <stdio.h> |
| 18210 | # include <time.h> |
| 18211 | # include <wchar.h> |
| 18212 | #endif |
| 18213 | |
| 18214 | #include <limits.h>"; then : |
| 18215 | |
| 18216 | else |
| 18217 | result=unknown |
| 18218 | fi |
| 18219 | |
| 18220 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 18221 | |
| 18222 | fi |
| 18223 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 18224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18225 | $as_echo "$ac_res" >&6; } |
| 18226 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 18227 | if test $result = unknown; then |
| 18228 | result=0 |
| 18229 | fi |
| 18230 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18231 | cat >>confdefs.h <<_ACEOF |
| 18232 | #define BITSIZEOF_${GLTYPE} $result |
| 18233 | _ACEOF |
| 18234 | |
| 18235 | eval BITSIZEOF_${GLTYPE}=\$result |
| 18236 | done |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
| 18241 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 18243 | $as_echo_n "checking whether $gltype is signed... " >&6; } |
| 18244 | if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18245 | $as_echo_n "(cached) " >&6 |
| 18246 | else |
| 18247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18248 | /* end confdefs.h. */ |
| 18249 | |
| 18250 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18251 | included before <wchar.h>. */ |
| 18252 | #include <stddef.h> |
| 18253 | #include <signal.h> |
| 18254 | #if HAVE_WCHAR_H |
| 18255 | # include <stdio.h> |
| 18256 | # include <time.h> |
| 18257 | # include <wchar.h> |
| 18258 | #endif |
| 18259 | |
| 18260 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 18261 | int |
| 18262 | main () |
| 18263 | { |
| 18264 | |
| 18265 | ; |
| 18266 | return 0; |
| 18267 | } |
| 18268 | _ACEOF |
| 18269 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18270 | result=yes |
| 18271 | else |
| 18272 | result=no |
| 18273 | fi |
| 18274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18275 | eval gl_cv_type_${gltype}_signed=\$result |
| 18276 | |
| 18277 | fi |
| 18278 | eval ac_res=\$gl_cv_type_${gltype}_signed |
| 18279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18280 | $as_echo "$ac_res" >&6; } |
| 18281 | eval result=\$gl_cv_type_${gltype}_signed |
| 18282 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18283 | if test "$result" = yes; then |
| 18284 | cat >>confdefs.h <<_ACEOF |
| 18285 | #define HAVE_SIGNED_${GLTYPE} 1 |
| 18286 | _ACEOF |
| 18287 | |
| 18288 | eval HAVE_SIGNED_${GLTYPE}=1 |
| 18289 | else |
| 18290 | eval HAVE_SIGNED_${GLTYPE}=0 |
| 18291 | fi |
| 18292 | done |
| 18293 | |
| 18294 | |
| 18295 | gl_cv_type_ptrdiff_t_signed=yes |
| 18296 | gl_cv_type_size_t_signed=no |
| 18297 | if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 18298 | |
| 18299 | |
| 18300 | for gltype in ptrdiff_t size_t ; do |
| 18301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 18302 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 18303 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18304 | $as_echo_n "(cached) " >&6 |
| 18305 | else |
| 18306 | eval gl_cv_type_${gltype}_suffix=no |
| 18307 | eval result=\$gl_cv_type_${gltype}_signed |
| 18308 | if test "$result" = yes; then |
| 18309 | glsufu= |
| 18310 | else |
| 18311 | glsufu=u |
| 18312 | fi |
| 18313 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 18314 | case $glsuf in |
| 18315 | '') gltype1='int';; |
| 18316 | l) gltype1='long int';; |
| 18317 | ll) gltype1='long long int';; |
| 18318 | i64) gltype1='__int64';; |
| 18319 | u) gltype1='unsigned int';; |
| 18320 | ul) gltype1='unsigned long int';; |
| 18321 | ull) gltype1='unsigned long long int';; |
| 18322 | ui64)gltype1='unsigned __int64';; |
| 18323 | esac |
| 18324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18325 | /* end confdefs.h. */ |
| 18326 | |
| 18327 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18328 | included before <wchar.h>. */ |
| 18329 | #include <stddef.h> |
| 18330 | #include <signal.h> |
| 18331 | #if HAVE_WCHAR_H |
| 18332 | # include <stdio.h> |
| 18333 | # include <time.h> |
| 18334 | # include <wchar.h> |
| 18335 | #endif |
| 18336 | |
| 18337 | extern $gltype foo; |
| 18338 | extern $gltype1 foo; |
| 18339 | int |
| 18340 | main () |
| 18341 | { |
| 18342 | |
| 18343 | ; |
| 18344 | return 0; |
| 18345 | } |
| 18346 | _ACEOF |
| 18347 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18348 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 18349 | fi |
| 18350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18351 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18352 | test "$result" != no && break |
| 18353 | done |
| 18354 | fi |
| 18355 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 18356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18357 | $as_echo "$ac_res" >&6; } |
| 18358 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18359 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18360 | test "$result" = no && result= |
| 18361 | eval ${GLTYPE}_SUFFIX=\$result |
| 18362 | cat >>confdefs.h <<_ACEOF |
| 18363 | #define ${GLTYPE}_SUFFIX $result |
| 18364 | _ACEOF |
| 18365 | |
| 18366 | done |
| 18367 | |
| 18368 | |
| 18369 | fi |
| 18370 | |
| 18371 | |
| 18372 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 18374 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 18375 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18376 | $as_echo_n "(cached) " >&6 |
| 18377 | else |
| 18378 | eval gl_cv_type_${gltype}_suffix=no |
| 18379 | eval result=\$gl_cv_type_${gltype}_signed |
| 18380 | if test "$result" = yes; then |
| 18381 | glsufu= |
| 18382 | else |
| 18383 | glsufu=u |
| 18384 | fi |
| 18385 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 18386 | case $glsuf in |
| 18387 | '') gltype1='int';; |
| 18388 | l) gltype1='long int';; |
| 18389 | ll) gltype1='long long int';; |
| 18390 | i64) gltype1='__int64';; |
| 18391 | u) gltype1='unsigned int';; |
| 18392 | ul) gltype1='unsigned long int';; |
| 18393 | ull) gltype1='unsigned long long int';; |
| 18394 | ui64)gltype1='unsigned __int64';; |
| 18395 | esac |
| 18396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18397 | /* end confdefs.h. */ |
| 18398 | |
| 18399 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18400 | included before <wchar.h>. */ |
| 18401 | #include <stddef.h> |
| 18402 | #include <signal.h> |
| 18403 | #if HAVE_WCHAR_H |
| 18404 | # include <stdio.h> |
| 18405 | # include <time.h> |
| 18406 | # include <wchar.h> |
| 18407 | #endif |
| 18408 | |
| 18409 | extern $gltype foo; |
| 18410 | extern $gltype1 foo; |
| 18411 | int |
| 18412 | main () |
| 18413 | { |
| 18414 | |
| 18415 | ; |
| 18416 | return 0; |
| 18417 | } |
| 18418 | _ACEOF |
| 18419 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18420 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 18421 | fi |
| 18422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18423 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18424 | test "$result" != no && break |
| 18425 | done |
| 18426 | fi |
| 18427 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 18428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18429 | $as_echo "$ac_res" >&6; } |
| 18430 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18431 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18432 | test "$result" = no && result= |
| 18433 | eval ${GLTYPE}_SUFFIX=\$result |
| 18434 | cat >>confdefs.h <<_ACEOF |
| 18435 | #define ${GLTYPE}_SUFFIX $result |
| 18436 | _ACEOF |
| 18437 | |
| 18438 | done |
| 18439 | |
| 18440 | |
| 18441 | |
| 18442 | if test $BITSIZEOF_WINT_T -lt 32; then |
| 18443 | BITSIZEOF_WINT_T=32 |
| 18444 | fi |
| 18445 | |
| 18446 | STDINT_H=stdint.h |
| 18447 | fi |
| 18448 | |
| 18449 | if test -n "$STDINT_H"; then |
| 18450 | GL_GENERATE_STDINT_H_TRUE= |
| 18451 | GL_GENERATE_STDINT_H_FALSE='#' |
| 18452 | else |
| 18453 | GL_GENERATE_STDINT_H_TRUE='#' |
| 18454 | GL_GENERATE_STDINT_H_FALSE= |
| 18455 | fi |
| 18456 | |
| 18457 | |
| 18458 | |
| 18459 | |
| 18460 | |
| 18461 | GNULIB_IMAXABS=0; |
| 18462 | GNULIB_IMAXDIV=0; |
| 18463 | GNULIB_STRTOIMAX=0; |
| 18464 | GNULIB_STRTOUMAX=0; |
| 18465 | HAVE_DECL_IMAXABS=1; |
| 18466 | HAVE_DECL_IMAXDIV=1; |
| 18467 | HAVE_DECL_STRTOIMAX=1; |
| 18468 | HAVE_DECL_STRTOUMAX=1; |
| 18469 | REPLACE_STRTOIMAX=0; |
| 18470 | INT32_MAX_LT_INTMAX_MAX=1; |
| 18471 | INT64_MAX_EQ_LONG_MAX='defined _LP64'; |
| 18472 | PRI_MACROS_BROKEN=0; |
| 18473 | PRIPTR_PREFIX=__PRIPTR_PREFIX; |
| 18474 | UINT32_MAX_LT_UINTMAX_MAX=1; |
| 18475 | UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; |
| 18476 | |
| 18477 | |
| 18478 | |
| 18479 | |
| 18480 | |
| 18481 | |
| 18482 | |
| 18483 | |
| 18484 | |
| 18485 | |
| 18486 | |
| 18487 | |
| 18488 | |
| 18489 | |
| 18490 | |
| 18491 | if test $gl_cv_have_include_next = yes; then |
| 18492 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 18493 | else |
| 18494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 |
| 18495 | $as_echo_n "checking absolute name of <inttypes.h>... " >&6; } |
| 18496 | if test "${gl_cv_next_inttypes_h+set}" = set; then : |
| 18497 | $as_echo_n "(cached) " >&6 |
| 18498 | else |
| 18499 | |
| 18500 | if test $ac_cv_header_inttypes_h = yes; then |
| 18501 | |
| 18502 | |
| 18503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18504 | /* end confdefs.h. */ |
| 18505 | #include <inttypes.h> |
| 18506 | |
| 18507 | _ACEOF |
| 18508 | case "$host_os" in |
| 18509 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18510 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18511 | esac |
| 18512 | |
| 18513 | case "$host_os" in |
| 18514 | mingw*) |
| 18515 | gl_dirsep_regex='[/\\]' |
| 18516 | ;; |
| 18517 | *) |
| 18518 | gl_dirsep_regex='\/' |
| 18519 | ;; |
| 18520 | esac |
| 18521 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18522 | |
| 18523 | gl_header_literal_regex=`echo 'inttypes.h' \ |
| 18524 | | sed -e "$gl_make_literal_regex_sed"` |
| 18525 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18526 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18527 | s|^/[^/]|//&| |
| 18528 | p |
| 18529 | q |
| 18530 | }' |
| 18531 | gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18532 | sed -n "$gl_absolute_header_sed"`'"' |
| 18533 | else |
| 18534 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 18535 | fi |
| 18536 | |
| 18537 | |
| 18538 | fi |
| 18539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
| 18540 | $as_echo "$gl_cv_next_inttypes_h" >&6; } |
| 18541 | fi |
| 18542 | NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
| 18543 | |
| 18544 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 18545 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18546 | gl_next_as_first_directive='<'inttypes.h'>' |
| 18547 | else |
| 18548 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18549 | gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 18550 | fi |
| 18551 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 18552 | |
| 18553 | |
| 18554 | |
| 18555 | |
| 18556 | |
| 18557 | |
| 18558 | |
| 18559 | |
| 18560 | |
| 18561 | |
| 18562 | |
| 18563 | case "$host_os" in |
| 18564 | mingw*) |
| 18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 |
| 18566 | $as_echo_n "checking for 64-bit off_t... " >&6; } |
| 18567 | if test "${gl_cv_type_off_t_64+set}" = set; then : |
| 18568 | $as_echo_n "(cached) " >&6 |
| 18569 | else |
| 18570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18571 | /* end confdefs.h. */ |
| 18572 | #include <sys/types.h> |
| 18573 | int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; |
| 18574 | |
| 18575 | int |
| 18576 | main () |
| 18577 | { |
| 18578 | |
| 18579 | ; |
| 18580 | return 0; |
| 18581 | } |
| 18582 | _ACEOF |
| 18583 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18584 | gl_cv_type_off_t_64=yes |
| 18585 | else |
| 18586 | gl_cv_type_off_t_64=no |
| 18587 | fi |
| 18588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18589 | |
| 18590 | fi |
| 18591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 |
| 18592 | $as_echo "$gl_cv_type_off_t_64" >&6; } |
| 18593 | if test $gl_cv_type_off_t_64 = no; then |
| 18594 | WINDOWS_64_BIT_OFF_T=1 |
| 18595 | else |
| 18596 | WINDOWS_64_BIT_OFF_T=0 |
| 18597 | fi |
| 18598 | WINDOWS_64_BIT_ST_SIZE=1 |
| 18599 | ;; |
| 18600 | *) |
| 18601 | WINDOWS_64_BIT_OFF_T=0 |
| 18602 | WINDOWS_64_BIT_ST_SIZE=0 |
| 18603 | ;; |
| 18604 | esac |
| 18605 | |
| 18606 | |
| 18607 | GNULIB_FCHMODAT=0; |
| 18608 | GNULIB_FSTAT=0; |
| 18609 | GNULIB_FSTATAT=0; |
| 18610 | GNULIB_FUTIMENS=0; |
| 18611 | GNULIB_LCHMOD=0; |
| 18612 | GNULIB_LSTAT=0; |
| 18613 | GNULIB_MKDIRAT=0; |
| 18614 | GNULIB_MKFIFO=0; |
| 18615 | GNULIB_MKFIFOAT=0; |
| 18616 | GNULIB_MKNOD=0; |
| 18617 | GNULIB_MKNODAT=0; |
| 18618 | GNULIB_STAT=0; |
| 18619 | GNULIB_UTIMENSAT=0; |
| 18620 | HAVE_FCHMODAT=1; |
| 18621 | HAVE_FSTATAT=1; |
| 18622 | HAVE_FUTIMENS=1; |
| 18623 | HAVE_LCHMOD=1; |
| 18624 | HAVE_LSTAT=1; |
| 18625 | HAVE_MKDIRAT=1; |
| 18626 | HAVE_MKFIFO=1; |
| 18627 | HAVE_MKFIFOAT=1; |
| 18628 | HAVE_MKNOD=1; |
| 18629 | HAVE_MKNODAT=1; |
| 18630 | HAVE_UTIMENSAT=1; |
| 18631 | REPLACE_FSTAT=0; |
| 18632 | REPLACE_FSTATAT=0; |
| 18633 | REPLACE_FUTIMENS=0; |
| 18634 | REPLACE_LSTAT=0; |
| 18635 | REPLACE_MKDIR=0; |
| 18636 | REPLACE_MKFIFO=0; |
| 18637 | REPLACE_MKNOD=0; |
| 18638 | REPLACE_STAT=0; |
| 18639 | REPLACE_UTIMENSAT=0; |
| 18640 | |
| 18641 | |
| 18642 | |
| 18643 | |
| 18644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
| 18645 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
| 18646 | if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : |
| 18647 | $as_echo_n "(cached) " >&6 |
| 18648 | else |
| 18649 | rm -f conftest.sym conftest.file |
| 18650 | echo >conftest.file |
| 18651 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
| 18652 | if test "$cross_compiling" = yes; then : |
| 18653 | case "$host_os" in |
| 18654 | # Guess yes on glibc systems. |
| 18655 | *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; |
| 18656 | # If we don't know, assume the worst. |
| 18657 | *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; |
| 18658 | esac |
| 18659 | |
| 18660 | else |
| 18661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18662 | /* end confdefs.h. */ |
| 18663 | $ac_includes_default |
| 18664 | int |
| 18665 | main () |
| 18666 | { |
| 18667 | struct stat sbuf; |
| 18668 | /* Linux will dereference the symlink and fail, as required by |
| 18669 | POSIX. That is better in the sense that it means we will not |
| 18670 | have to compile and use the lstat wrapper. */ |
| 18671 | return lstat ("conftest.sym/", &sbuf) == 0; |
| 18672 | |
| 18673 | ; |
| 18674 | return 0; |
| 18675 | } |
| 18676 | _ACEOF |
| 18677 | if ac_fn_c_try_run "$LINENO"; then : |
| 18678 | gl_cv_func_lstat_dereferences_slashed_symlink=yes |
| 18679 | else |
| 18680 | gl_cv_func_lstat_dereferences_slashed_symlink=no |
| 18681 | fi |
| 18682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18683 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18684 | fi |
| 18685 | |
| 18686 | else |
| 18687 | # If the 'ln -s' command failed, then we probably don't even |
| 18688 | # have an lstat function. |
| 18689 | gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" |
| 18690 | fi |
| 18691 | rm -f conftest.sym conftest.file |
| 18692 | |
| 18693 | fi |
| 18694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 |
| 18695 | $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
| 18696 | case "$gl_cv_func_lstat_dereferences_slashed_symlink" in |
| 18697 | *yes) |
| 18698 | |
| 18699 | cat >>confdefs.h <<_ACEOF |
| 18700 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
| 18701 | _ACEOF |
| 18702 | |
| 18703 | ;; |
| 18704 | esac |
| 18705 | |
| 18706 | |
| 18707 | GNULIB_MKTIME=0; |
| 18708 | GNULIB_NANOSLEEP=0; |
| 18709 | GNULIB_STRPTIME=0; |
| 18710 | GNULIB_TIMEGM=0; |
| 18711 | GNULIB_TIME_R=0; |
| 18712 | HAVE_DECL_LOCALTIME_R=1; |
| 18713 | HAVE_NANOSLEEP=1; |
| 18714 | HAVE_STRPTIME=1; |
| 18715 | HAVE_TIMEGM=1; |
| 18716 | REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; |
| 18717 | REPLACE_MKTIME=GNULIB_PORTCHECK; |
| 18718 | REPLACE_NANOSLEEP=GNULIB_PORTCHECK; |
| 18719 | REPLACE_TIMEGM=GNULIB_PORTCHECK; |
| 18720 | |
| 18721 | |
| 18722 | |
| 18723 | |
| 18724 | GNULIB_PSELECT=0; |
| 18725 | GNULIB_SELECT=0; |
| 18726 | HAVE_PSELECT=1; |
| 18727 | REPLACE_PSELECT=0; |
| 18728 | REPLACE_SELECT=0; |
| 18729 | |
| 18730 | |
| 18731 | |
| 18732 | |
| 18733 | |
| 18734 | |
| 18735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 |
| 18736 | $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; } |
| 18737 | if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then : |
| 18738 | $as_echo_n "(cached) " >&6 |
| 18739 | else |
| 18740 | |
| 18741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18742 | /* end confdefs.h. */ |
| 18743 | #include <sys/select.h> |
| 18744 | int |
| 18745 | main () |
| 18746 | { |
| 18747 | struct timeval b; |
| 18748 | ; |
| 18749 | return 0; |
| 18750 | } |
| 18751 | _ACEOF |
| 18752 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18753 | gl_cv_header_sys_select_h_selfcontained=yes |
| 18754 | else |
| 18755 | gl_cv_header_sys_select_h_selfcontained=no |
| 18756 | fi |
| 18757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18758 | if test $gl_cv_header_sys_select_h_selfcontained = yes; then |
| 18759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18760 | /* end confdefs.h. */ |
| 18761 | #include <sys/select.h> |
| 18762 | int |
| 18763 | main () |
| 18764 | { |
| 18765 | int memset; int bzero; |
| 18766 | ; |
| 18767 | return 0; |
| 18768 | } |
| 18769 | |
| 18770 | _ACEOF |
| 18771 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18773 | /* end confdefs.h. */ |
| 18774 | #include <sys/select.h> |
| 18775 | int |
| 18776 | main () |
| 18777 | { |
| 18778 | |
| 18779 | #undef memset |
| 18780 | #define memset nonexistent_memset |
| 18781 | extern |
| 18782 | #ifdef __cplusplus |
| 18783 | "C" |
| 18784 | #endif |
| 18785 | void *memset (void *, int, unsigned long); |
| 18786 | #undef bzero |
| 18787 | #define bzero nonexistent_bzero |
| 18788 | extern |
| 18789 | #ifdef __cplusplus |
| 18790 | "C" |
| 18791 | #endif |
| 18792 | void bzero (void *, unsigned long); |
| 18793 | fd_set fds; |
| 18794 | FD_ZERO (&fds); |
| 18795 | |
| 18796 | ; |
| 18797 | return 0; |
| 18798 | } |
| 18799 | |
| 18800 | _ACEOF |
| 18801 | if ac_fn_c_try_link "$LINENO"; then : |
| 18802 | |
| 18803 | else |
| 18804 | gl_cv_header_sys_select_h_selfcontained=no |
| 18805 | fi |
| 18806 | rm -f core conftest.err conftest.$ac_objext \ |
| 18807 | conftest$ac_exeext conftest.$ac_ext |
| 18808 | |
| 18809 | fi |
| 18810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18811 | fi |
| 18812 | |
| 18813 | fi |
| 18814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 |
| 18815 | $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } |
| 18816 | |
| 18817 | |
| 18818 | |
| 18819 | |
| 18820 | |
| 18821 | |
| 18822 | |
| 18823 | |
| 18824 | |
| 18825 | if test $gl_cv_have_include_next = yes; then |
| 18826 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 18827 | else |
| 18828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 |
| 18829 | $as_echo_n "checking absolute name of <sys/select.h>... " >&6; } |
| 18830 | if test "${gl_cv_next_sys_select_h+set}" = set; then : |
| 18831 | $as_echo_n "(cached) " >&6 |
| 18832 | else |
| 18833 | |
| 18834 | if test $ac_cv_header_sys_select_h = yes; then |
| 18835 | |
| 18836 | |
| 18837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18838 | /* end confdefs.h. */ |
| 18839 | #include <sys/select.h> |
| 18840 | |
| 18841 | _ACEOF |
| 18842 | case "$host_os" in |
| 18843 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18844 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18845 | esac |
| 18846 | |
| 18847 | case "$host_os" in |
| 18848 | mingw*) |
| 18849 | gl_dirsep_regex='[/\\]' |
| 18850 | ;; |
| 18851 | *) |
| 18852 | gl_dirsep_regex='\/' |
| 18853 | ;; |
| 18854 | esac |
| 18855 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18856 | |
| 18857 | gl_header_literal_regex=`echo 'sys/select.h' \ |
| 18858 | | sed -e "$gl_make_literal_regex_sed"` |
| 18859 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18860 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18861 | s|^/[^/]|//&| |
| 18862 | p |
| 18863 | q |
| 18864 | }' |
| 18865 | gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18866 | sed -n "$gl_absolute_header_sed"`'"' |
| 18867 | else |
| 18868 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 18869 | fi |
| 18870 | |
| 18871 | |
| 18872 | fi |
| 18873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 |
| 18874 | $as_echo "$gl_cv_next_sys_select_h" >&6; } |
| 18875 | fi |
| 18876 | NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h |
| 18877 | |
| 18878 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 18879 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18880 | gl_next_as_first_directive='<'sys/select.h'>' |
| 18881 | else |
| 18882 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18883 | gl_next_as_first_directive=$gl_cv_next_sys_select_h |
| 18884 | fi |
| 18885 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive |
| 18886 | |
| 18887 | |
| 18888 | |
| 18889 | |
| 18890 | if test $ac_cv_header_sys_select_h = yes; then |
| 18891 | HAVE_SYS_SELECT_H=1 |
| 18892 | else |
| 18893 | HAVE_SYS_SELECT_H=0 |
| 18894 | fi |
| 18895 | |
| 18896 | |
| 18897 | |
| 18898 | |
| 18899 | |
| 18900 | if test $ac_cv_header_sys_socket_h != yes; then |
| 18901 | for ac_header in winsock2.h |
| 18902 | do : |
| 18903 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 18904 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 18905 | cat >>confdefs.h <<_ACEOF |
| 18906 | #define HAVE_WINSOCK2_H 1 |
| 18907 | _ACEOF |
| 18908 | |
| 18909 | fi |
| 18910 | |
| 18911 | done |
| 18912 | |
| 18913 | fi |
| 18914 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 18915 | HAVE_WINSOCK2_H=1 |
| 18916 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 18917 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 18918 | else |
| 18919 | HAVE_WINSOCK2_H=0 |
| 18920 | fi |
| 18921 | |
| 18922 | |
| 18923 | |
| 18924 | |
| 18925 | |
| 18926 | |
| 18927 | |
| 18928 | |
| 18929 | GNULIB_PTHREAD_SIGMASK=0; |
| 18930 | GNULIB_RAISE=0; |
| 18931 | GNULIB_SIGNAL_H_SIGPIPE=0; |
| 18932 | GNULIB_SIGPROCMASK=0; |
| 18933 | GNULIB_SIGACTION=0; |
| 18934 | HAVE_POSIX_SIGNALBLOCKING=1; |
| 18935 | HAVE_PTHREAD_SIGMASK=1; |
| 18936 | HAVE_RAISE=1; |
| 18937 | HAVE_SIGSET_T=1; |
| 18938 | HAVE_SIGINFO_T=1; |
| 18939 | HAVE_SIGACTION=1; |
| 18940 | HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; |
| 18941 | |
| 18942 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; |
| 18943 | |
| 18944 | HAVE_SIGHANDLER_T=1; |
| 18945 | REPLACE_PTHREAD_SIGMASK=0; |
| 18946 | REPLACE_RAISE=0; |
| 18947 | |
| 18948 | |
| 18949 | |
| 18950 | |
| 18951 | |
| 18952 | |
| 18953 | ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " |
| 18954 | #include <signal.h> |
| 18955 | /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ |
| 18956 | #include <sys/types.h> |
| 18957 | |
| 18958 | " |
| 18959 | if test "x$ac_cv_type_sigset_t" = x""yes; then : |
| 18960 | |
| 18961 | cat >>confdefs.h <<_ACEOF |
| 18962 | #define HAVE_SIGSET_T 1 |
| 18963 | _ACEOF |
| 18964 | |
| 18965 | gl_cv_type_sigset_t=yes |
| 18966 | else |
| 18967 | gl_cv_type_sigset_t=no |
| 18968 | fi |
| 18969 | |
| 18970 | if test $gl_cv_type_sigset_t != yes; then |
| 18971 | HAVE_SIGSET_T=0 |
| 18972 | fi |
| 18973 | |
| 18974 | |
| 18975 | |
| 18976 | if test $ac_cv_header_sys_socket_h = no; then |
| 18977 | for ac_header in ws2tcpip.h |
| 18978 | do : |
| 18979 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 18980 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 18981 | cat >>confdefs.h <<_ACEOF |
| 18982 | #define HAVE_WS2TCPIP_H 1 |
| 18983 | _ACEOF |
| 18984 | |
| 18985 | fi |
| 18986 | |
| 18987 | done |
| 18988 | |
| 18989 | fi |
| 18990 | |
| 18991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 18992 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 18993 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| 18994 | $as_echo_n "(cached) " >&6 |
| 18995 | else |
| 18996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18997 | /* end confdefs.h. */ |
| 18998 | |
| 18999 | #include <stdbool.h> |
| 19000 | #ifndef bool |
| 19001 | "error: bool is not defined" |
| 19002 | #endif |
| 19003 | #ifndef false |
| 19004 | "error: false is not defined" |
| 19005 | #endif |
| 19006 | #if false |
| 19007 | "error: false is not 0" |
| 19008 | #endif |
| 19009 | #ifndef true |
| 19010 | "error: true is not defined" |
| 19011 | #endif |
| 19012 | #if true != 1 |
| 19013 | "error: true is not 1" |
| 19014 | #endif |
| 19015 | #ifndef __bool_true_false_are_defined |
| 19016 | "error: __bool_true_false_are_defined is not defined" |
| 19017 | #endif |
| 19018 | |
| 19019 | struct s { _Bool s: 1; _Bool t; } s; |
| 19020 | |
| 19021 | char a[true == 1 ? 1 : -1]; |
| 19022 | char b[false == 0 ? 1 : -1]; |
| 19023 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 19024 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 19025 | /* See body of main program for 'e'. */ |
| 19026 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 19027 | char g[true]; |
| 19028 | char h[sizeof (_Bool)]; |
| 19029 | char i[sizeof s.t]; |
| 19030 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 19031 | /* The following fails for |
| 19032 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 19033 | _Bool n[m]; |
| 19034 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 19035 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 19036 | /* Catch a bug in an HP-UX C compiler. See |
| 19037 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 19038 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 19039 | */ |
| 19040 | _Bool q = true; |
| 19041 | _Bool *pq = &q; |
| 19042 | |
| 19043 | int |
| 19044 | main () |
| 19045 | { |
| 19046 | |
| 19047 | bool e = &s; |
| 19048 | *pq |= q; |
| 19049 | *pq |= ! q; |
| 19050 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 19051 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 19052 | + !m + !n + !o + !p + !q + !pq); |
| 19053 | |
| 19054 | ; |
| 19055 | return 0; |
| 19056 | } |
| 19057 | _ACEOF |
| 19058 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19059 | ac_cv_header_stdbool_h=yes |
| 19060 | else |
| 19061 | ac_cv_header_stdbool_h=no |
| 19062 | fi |
| 19063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19064 | fi |
| 19065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 19066 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 19067 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 19068 | if test "x$ac_cv_type__Bool" = x""yes; then : |
| 19069 | |
| 19070 | cat >>confdefs.h <<_ACEOF |
| 19071 | #define HAVE__BOOL 1 |
| 19072 | _ACEOF |
| 19073 | |
| 19074 | |
| 19075 | fi |
| 19076 | |
| 19077 | |
| 19078 | |
| 19079 | REPLACE_NULL=0; |
| 19080 | HAVE_WCHAR_T=1; |
| 19081 | |
| 19082 | |
| 19083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 19084 | $as_echo_n "checking for wchar_t... " >&6; } |
| 19085 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
| 19086 | $as_echo_n "(cached) " >&6 |
| 19087 | else |
| 19088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19089 | /* end confdefs.h. */ |
| 19090 | #include <stddef.h> |
| 19091 | wchar_t foo = (wchar_t)'\0'; |
| 19092 | int |
| 19093 | main () |
| 19094 | { |
| 19095 | |
| 19096 | ; |
| 19097 | return 0; |
| 19098 | } |
| 19099 | _ACEOF |
| 19100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19101 | gt_cv_c_wchar_t=yes |
| 19102 | else |
| 19103 | gt_cv_c_wchar_t=no |
| 19104 | fi |
| 19105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19106 | fi |
| 19107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 19108 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 19109 | if test $gt_cv_c_wchar_t = yes; then |
| 19110 | |
| 19111 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 19112 | |
| 19113 | fi |
| 19114 | |
| 19115 | |
| 19116 | GNULIB_DPRINTF=0; |
| 19117 | GNULIB_FCLOSE=0; |
| 19118 | GNULIB_FDOPEN=0; |
| 19119 | GNULIB_FFLUSH=0; |
| 19120 | GNULIB_FGETC=0; |
| 19121 | GNULIB_FGETS=0; |
| 19122 | GNULIB_FOPEN=0; |
| 19123 | GNULIB_FPRINTF=0; |
| 19124 | GNULIB_FPRINTF_POSIX=0; |
| 19125 | GNULIB_FPURGE=0; |
| 19126 | GNULIB_FPUTC=0; |
| 19127 | GNULIB_FPUTS=0; |
| 19128 | GNULIB_FREAD=0; |
| 19129 | GNULIB_FREOPEN=0; |
| 19130 | GNULIB_FSCANF=0; |
| 19131 | GNULIB_FSEEK=0; |
| 19132 | GNULIB_FSEEKO=0; |
| 19133 | GNULIB_FTELL=0; |
| 19134 | GNULIB_FTELLO=0; |
| 19135 | GNULIB_FWRITE=0; |
| 19136 | GNULIB_GETC=0; |
| 19137 | GNULIB_GETCHAR=0; |
| 19138 | GNULIB_GETDELIM=0; |
| 19139 | GNULIB_GETLINE=0; |
| 19140 | GNULIB_OBSTACK_PRINTF=0; |
| 19141 | GNULIB_OBSTACK_PRINTF_POSIX=0; |
| 19142 | GNULIB_PCLOSE=0; |
| 19143 | GNULIB_PERROR=0; |
| 19144 | GNULIB_POPEN=0; |
| 19145 | GNULIB_PRINTF=0; |
| 19146 | GNULIB_PRINTF_POSIX=0; |
| 19147 | GNULIB_PUTC=0; |
| 19148 | GNULIB_PUTCHAR=0; |
| 19149 | GNULIB_PUTS=0; |
| 19150 | GNULIB_REMOVE=0; |
| 19151 | GNULIB_RENAME=0; |
| 19152 | GNULIB_RENAMEAT=0; |
| 19153 | GNULIB_SCANF=0; |
| 19154 | GNULIB_SNPRINTF=0; |
| 19155 | GNULIB_SPRINTF_POSIX=0; |
| 19156 | GNULIB_STDIO_H_NONBLOCKING=0; |
| 19157 | GNULIB_STDIO_H_SIGPIPE=0; |
| 19158 | GNULIB_TMPFILE=0; |
| 19159 | GNULIB_VASPRINTF=0; |
| 19160 | GNULIB_VFSCANF=0; |
| 19161 | GNULIB_VSCANF=0; |
| 19162 | GNULIB_VDPRINTF=0; |
| 19163 | GNULIB_VFPRINTF=0; |
| 19164 | GNULIB_VFPRINTF_POSIX=0; |
| 19165 | GNULIB_VPRINTF=0; |
| 19166 | GNULIB_VPRINTF_POSIX=0; |
| 19167 | GNULIB_VSNPRINTF=0; |
| 19168 | GNULIB_VSPRINTF_POSIX=0; |
| 19169 | HAVE_DECL_FPURGE=1; |
| 19170 | HAVE_DECL_FSEEKO=1; |
| 19171 | HAVE_DECL_FTELLO=1; |
| 19172 | HAVE_DECL_GETDELIM=1; |
| 19173 | HAVE_DECL_GETLINE=1; |
| 19174 | HAVE_DECL_OBSTACK_PRINTF=1; |
| 19175 | HAVE_DECL_SNPRINTF=1; |
| 19176 | HAVE_DECL_VSNPRINTF=1; |
| 19177 | HAVE_DPRINTF=1; |
| 19178 | HAVE_FSEEKO=1; |
| 19179 | HAVE_FTELLO=1; |
| 19180 | HAVE_PCLOSE=1; |
| 19181 | HAVE_POPEN=1; |
| 19182 | HAVE_RENAMEAT=1; |
| 19183 | HAVE_VASPRINTF=1; |
| 19184 | HAVE_VDPRINTF=1; |
| 19185 | REPLACE_DPRINTF=0; |
| 19186 | REPLACE_FCLOSE=0; |
| 19187 | REPLACE_FDOPEN=0; |
| 19188 | REPLACE_FFLUSH=0; |
| 19189 | REPLACE_FOPEN=0; |
| 19190 | REPLACE_FPRINTF=0; |
| 19191 | REPLACE_FPURGE=0; |
| 19192 | REPLACE_FREOPEN=0; |
| 19193 | REPLACE_FSEEK=0; |
| 19194 | REPLACE_FSEEKO=0; |
| 19195 | REPLACE_FTELL=0; |
| 19196 | REPLACE_FTELLO=0; |
| 19197 | REPLACE_GETDELIM=0; |
| 19198 | REPLACE_GETLINE=0; |
| 19199 | REPLACE_OBSTACK_PRINTF=0; |
| 19200 | REPLACE_PERROR=0; |
| 19201 | REPLACE_POPEN=0; |
| 19202 | REPLACE_PRINTF=0; |
| 19203 | REPLACE_REMOVE=0; |
| 19204 | REPLACE_RENAME=0; |
| 19205 | REPLACE_RENAMEAT=0; |
| 19206 | REPLACE_SNPRINTF=0; |
| 19207 | REPLACE_SPRINTF=0; |
| 19208 | REPLACE_STDIO_READ_FUNCS=0; |
| 19209 | REPLACE_STDIO_WRITE_FUNCS=0; |
| 19210 | REPLACE_TMPFILE=0; |
| 19211 | REPLACE_VASPRINTF=0; |
| 19212 | REPLACE_VDPRINTF=0; |
| 19213 | REPLACE_VFPRINTF=0; |
| 19214 | REPLACE_VPRINTF=0; |
| 19215 | REPLACE_VSNPRINTF=0; |
| 19216 | REPLACE_VSPRINTF=0; |
| 19217 | |
| 19218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19219 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 19220 | if test "${ac_cv_struct_tm+set}" = set; then : |
| 19221 | $as_echo_n "(cached) " >&6 |
| 19222 | else |
| 19223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19224 | /* end confdefs.h. */ |
| 19225 | #include <sys/types.h> |
| 19226 | #include <time.h> |
| 19227 | |
| 19228 | int |
| 19229 | main () |
| 19230 | { |
| 19231 | struct tm tm; |
| 19232 | int *p = &tm.tm_sec; |
| 19233 | return !p; |
| 19234 | ; |
| 19235 | return 0; |
| 19236 | } |
| 19237 | _ACEOF |
| 19238 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19239 | ac_cv_struct_tm=time.h |
| 19240 | else |
| 19241 | ac_cv_struct_tm=sys/time.h |
| 19242 | fi |
| 19243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19244 | fi |
| 19245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 19246 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 19247 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19248 | |
| 19249 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| 19250 | |
| 19251 | fi |
| 19252 | |
| 19253 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 19254 | #include <$ac_cv_struct_tm> |
| 19255 | |
| 19256 | " |
| 19257 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
| 19258 | |
| 19259 | cat >>confdefs.h <<_ACEOF |
| 19260 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19261 | _ACEOF |
| 19262 | |
| 19263 | |
| 19264 | fi |
| 19265 | |
| 19266 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19267 | |
| 19268 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 19269 | |
| 19270 | else |
| 19271 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 19272 | " |
| 19273 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 19274 | ac_have_decl=1 |
| 19275 | else |
| 19276 | ac_have_decl=0 |
| 19277 | fi |
| 19278 | |
| 19279 | cat >>confdefs.h <<_ACEOF |
| 19280 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 19281 | _ACEOF |
| 19282 | |
| 19283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 19284 | $as_echo_n "checking for tzname... " >&6; } |
| 19285 | if test "${ac_cv_var_tzname+set}" = set; then : |
| 19286 | $as_echo_n "(cached) " >&6 |
| 19287 | else |
| 19288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19289 | /* end confdefs.h. */ |
| 19290 | #include <time.h> |
| 19291 | #if !HAVE_DECL_TZNAME |
| 19292 | extern char *tzname[]; |
| 19293 | #endif |
| 19294 | |
| 19295 | int |
| 19296 | main () |
| 19297 | { |
| 19298 | return tzname[0][0]; |
| 19299 | ; |
| 19300 | return 0; |
| 19301 | } |
| 19302 | _ACEOF |
| 19303 | if ac_fn_c_try_link "$LINENO"; then : |
| 19304 | ac_cv_var_tzname=yes |
| 19305 | else |
| 19306 | ac_cv_var_tzname=no |
| 19307 | fi |
| 19308 | rm -f core conftest.err conftest.$ac_objext \ |
| 19309 | conftest$ac_exeext conftest.$ac_ext |
| 19310 | fi |
| 19311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 19312 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 19313 | if test $ac_cv_var_tzname = yes; then |
| 19314 | |
| 19315 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 19316 | |
| 19317 | fi |
| 19318 | fi |
| 19319 | |
| 19320 | |
| 19321 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
| 19322 | " |
| 19323 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : |
| 19324 | |
| 19325 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
| 19326 | |
| 19327 | fi |
| 19328 | |
| 19329 | |
| 19330 | |
| 19331 | |
| 19332 | ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default" |
| 19333 | if test "x$ac_cv_have_decl_strtoimax" = x""yes; then : |
| 19334 | ac_have_decl=1 |
| 19335 | else |
| 19336 | ac_have_decl=0 |
| 19337 | fi |
| 19338 | |
| 19339 | cat >>confdefs.h <<_ACEOF |
| 19340 | #define HAVE_DECL_STRTOIMAX $ac_have_decl |
| 19341 | _ACEOF |
| 19342 | |
| 19343 | |
| 19344 | |
| 19345 | ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default" |
| 19346 | if test "x$ac_cv_have_decl_strtoumax" = x""yes; then : |
| 19347 | ac_have_decl=1 |
| 19348 | else |
| 19349 | ac_have_decl=0 |
| 19350 | fi |
| 19351 | |
| 19352 | cat >>confdefs.h <<_ACEOF |
| 19353 | #define HAVE_DECL_STRTOUMAX $ac_have_decl |
| 19354 | _ACEOF |
| 19355 | |
| 19356 | |
| 19357 | |
| 19358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 19359 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 19360 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
| 19361 | $as_echo_n "(cached) " >&6 |
| 19362 | else |
| 19363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19364 | /* end confdefs.h. */ |
| 19365 | #include <sys/types.h> |
| 19366 | #include <sys/stat.h> |
| 19367 | |
| 19368 | #if defined S_ISBLK && defined S_IFDIR |
| 19369 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 19370 | #endif |
| 19371 | |
| 19372 | #if defined S_ISBLK && defined S_IFCHR |
| 19373 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 19374 | #endif |
| 19375 | |
| 19376 | #if defined S_ISLNK && defined S_IFREG |
| 19377 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 19378 | #endif |
| 19379 | |
| 19380 | #if defined S_ISSOCK && defined S_IFREG |
| 19381 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 19382 | #endif |
| 19383 | |
| 19384 | _ACEOF |
| 19385 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19386 | ac_cv_header_stat_broken=no |
| 19387 | else |
| 19388 | ac_cv_header_stat_broken=yes |
| 19389 | fi |
| 19390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19391 | fi |
| 19392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 19393 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 19394 | if test $ac_cv_header_stat_broken = yes; then |
| 19395 | |
| 19396 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| 19397 | |
| 19398 | fi |
| 19399 | |
| 19400 | |
| 19401 | |
| 19402 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 19403 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
| 19404 | |
| 19405 | else |
| 19406 | |
| 19407 | cat >>confdefs.h <<_ACEOF |
| 19408 | #define mode_t int |
| 19409 | _ACEOF |
| 19410 | |
| 19411 | fi |
| 19412 | |
| 19413 | |
| 19414 | |
| 19415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 19416 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } |
| 19417 | if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : |
| 19418 | $as_echo_n "(cached) " >&6 |
| 19419 | else |
| 19420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19421 | /* end confdefs.h. */ |
| 19422 | #include <time.h> |
| 19423 | |
| 19424 | int |
| 19425 | main () |
| 19426 | { |
| 19427 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19428 | ; |
| 19429 | return 0; |
| 19430 | } |
| 19431 | _ACEOF |
| 19432 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19433 | gl_cv_sys_struct_timespec_in_time_h=yes |
| 19434 | else |
| 19435 | gl_cv_sys_struct_timespec_in_time_h=no |
| 19436 | fi |
| 19437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19438 | fi |
| 19439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
| 19440 | $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } |
| 19441 | |
| 19442 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19443 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19444 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19445 | if test $gl_cv_sys_struct_timespec_in_time_h = yes; then |
| 19446 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19447 | else |
| 19448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 19449 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } |
| 19450 | if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : |
| 19451 | $as_echo_n "(cached) " >&6 |
| 19452 | else |
| 19453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19454 | /* end confdefs.h. */ |
| 19455 | #include <sys/time.h> |
| 19456 | |
| 19457 | int |
| 19458 | main () |
| 19459 | { |
| 19460 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19461 | ; |
| 19462 | return 0; |
| 19463 | } |
| 19464 | _ACEOF |
| 19465 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19466 | gl_cv_sys_struct_timespec_in_sys_time_h=yes |
| 19467 | else |
| 19468 | gl_cv_sys_struct_timespec_in_sys_time_h=no |
| 19469 | fi |
| 19470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19471 | fi |
| 19472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 19473 | $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 19474 | if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 19475 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19476 | else |
| 19477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 19478 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } |
| 19479 | if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : |
| 19480 | $as_echo_n "(cached) " >&6 |
| 19481 | else |
| 19482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19483 | /* end confdefs.h. */ |
| 19484 | #include <pthread.h> |
| 19485 | |
| 19486 | int |
| 19487 | main () |
| 19488 | { |
| 19489 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19490 | ; |
| 19491 | return 0; |
| 19492 | } |
| 19493 | _ACEOF |
| 19494 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19495 | gl_cv_sys_struct_timespec_in_pthread_h=yes |
| 19496 | else |
| 19497 | gl_cv_sys_struct_timespec_in_pthread_h=no |
| 19498 | fi |
| 19499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19500 | fi |
| 19501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 19502 | $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 19503 | if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 19504 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19505 | fi |
| 19506 | fi |
| 19507 | fi |
| 19508 | |
| 19509 | |
| 19510 | |
| 19511 | |
| 19512 | |
| 19513 | |
| 19514 | |
| 19515 | |
| 19516 | |
| 19517 | |
| 19518 | |
| 19519 | |
| 19520 | |
| 19521 | |
| 19522 | |
| 19523 | if test $gl_cv_have_include_next = yes; then |
| 19524 | gl_cv_next_time_h='<'time.h'>' |
| 19525 | else |
| 19526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 |
| 19527 | $as_echo_n "checking absolute name of <time.h>... " >&6; } |
| 19528 | if test "${gl_cv_next_time_h+set}" = set; then : |
| 19529 | $as_echo_n "(cached) " >&6 |
| 19530 | else |
| 19531 | |
| 19532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19533 | /* end confdefs.h. */ |
| 19534 | #include <time.h> |
| 19535 | |
| 19536 | _ACEOF |
| 19537 | case "$host_os" in |
| 19538 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 19539 | *) gl_absname_cpp="$ac_cpp" ;; |
| 19540 | esac |
| 19541 | |
| 19542 | case "$host_os" in |
| 19543 | mingw*) |
| 19544 | gl_dirsep_regex='[/\\]' |
| 19545 | ;; |
| 19546 | *) |
| 19547 | gl_dirsep_regex='\/' |
| 19548 | ;; |
| 19549 | esac |
| 19550 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 19551 | |
| 19552 | gl_header_literal_regex=`echo 'time.h' \ |
| 19553 | | sed -e "$gl_make_literal_regex_sed"` |
| 19554 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 19555 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 19556 | s|^/[^/]|//&| |
| 19557 | p |
| 19558 | q |
| 19559 | }' |
| 19560 | gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 19561 | sed -n "$gl_absolute_header_sed"`'"' |
| 19562 | |
| 19563 | |
| 19564 | fi |
| 19565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 |
| 19566 | $as_echo "$gl_cv_next_time_h" >&6; } |
| 19567 | fi |
| 19568 | NEXT_TIME_H=$gl_cv_next_time_h |
| 19569 | |
| 19570 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 19571 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 19572 | gl_next_as_first_directive='<'time.h'>' |
| 19573 | else |
| 19574 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 19575 | gl_next_as_first_directive=$gl_cv_next_time_h |
| 19576 | fi |
| 19577 | NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive |
| 19578 | |
| 19579 | |
| 19580 | |
| 19581 | |
| 19582 | |
| 19583 | |
| 19584 | |
| 19585 | |
| 19586 | |
| 19587 | |
| 19588 | |
| 19589 | |
| 19590 | |
| 19591 | |
| 19592 | |
| 19593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5 |
| 19594 | $as_echo_n "checking whether the utimes function works... " >&6; } |
| 19595 | if test "${gl_cv_func_working_utimes+set}" = set; then : |
| 19596 | $as_echo_n "(cached) " >&6 |
| 19597 | else |
| 19598 | |
| 19599 | if test "$cross_compiling" = yes; then : |
| 19600 | gl_cv_func_working_utimes=no |
| 19601 | else |
| 19602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19603 | /* end confdefs.h. */ |
| 19604 | |
| 19605 | #include <sys/types.h> |
| 19606 | #include <sys/stat.h> |
| 19607 | #include <fcntl.h> |
| 19608 | #include <sys/time.h> |
| 19609 | #include <time.h> |
| 19610 | #include <unistd.h> |
| 19611 | #include <stdlib.h> |
| 19612 | #include <stdio.h> |
| 19613 | #include <utime.h> |
| 19614 | |
| 19615 | static int |
| 19616 | inorder (time_t a, time_t b, time_t c) |
| 19617 | { |
| 19618 | return a <= b && b <= c; |
| 19619 | } |
| 19620 | |
| 19621 | int |
| 19622 | main () |
| 19623 | { |
| 19624 | int result = 0; |
| 19625 | char const *file = "conftest.utimes"; |
| 19626 | static struct timeval timeval[2] = {{9, 10}, {999999, 999999}}; |
| 19627 | |
| 19628 | /* Test whether utimes() essentially works. */ |
| 19629 | { |
| 19630 | struct stat sbuf; |
| 19631 | FILE *f = fopen (file, "w"); |
| 19632 | if (f == NULL) |
| 19633 | result |= 1; |
| 19634 | else if (fclose (f) != 0) |
| 19635 | result |= 1; |
| 19636 | else if (utimes (file, timeval) != 0) |
| 19637 | result |= 2; |
| 19638 | else if (lstat (file, &sbuf) != 0) |
| 19639 | result |= 1; |
| 19640 | else if (!(sbuf.st_atime == timeval[0].tv_sec |
| 19641 | && sbuf.st_mtime == timeval[1].tv_sec)) |
| 19642 | result |= 4; |
| 19643 | if (unlink (file) != 0) |
| 19644 | result |= 1; |
| 19645 | } |
| 19646 | |
| 19647 | /* Test whether utimes() with a NULL argument sets the file's timestamp |
| 19648 | to the current time. Use 'fstat' as well as 'time' to |
| 19649 | determine the "current" time, to accommodate NFS file systems |
| 19650 | if there is a time skew between the host and the NFS server. */ |
| 19651 | { |
| 19652 | int fd = open (file, O_WRONLY|O_CREAT, 0644); |
| 19653 | if (fd < 0) |
| 19654 | result |= 1; |
| 19655 | else |
| 19656 | { |
| 19657 | time_t t0, t2; |
| 19658 | struct stat st0, st1, st2; |
| 19659 | if (time (&t0) == (time_t) -1) |
| 19660 | result |= 1; |
| 19661 | else if (fstat (fd, &st0) != 0) |
| 19662 | result |= 1; |
| 19663 | else if (utimes (file, timeval) != 0) |
| 19664 | result |= 2; |
| 19665 | else if (utimes (file, NULL) != 0) |
| 19666 | result |= 8; |
| 19667 | else if (fstat (fd, &st1) != 0) |
| 19668 | result |= 1; |
| 19669 | else if (write (fd, "\n", 1) != 1) |
| 19670 | result |= 1; |
| 19671 | else if (fstat (fd, &st2) != 0) |
| 19672 | result |= 1; |
| 19673 | else if (time (&t2) == (time_t) -1) |
| 19674 | result |= 1; |
| 19675 | else |
| 19676 | { |
| 19677 | int m_ok_POSIX = inorder (t0, st1.st_mtime, t2); |
| 19678 | int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime); |
| 19679 | if (! (st1.st_atime == st1.st_mtime)) |
| 19680 | result |= 16; |
| 19681 | if (! (m_ok_POSIX || m_ok_NFS)) |
| 19682 | result |= 32; |
| 19683 | } |
| 19684 | if (close (fd) != 0) |
| 19685 | result |= 1; |
| 19686 | } |
| 19687 | if (unlink (file) != 0) |
| 19688 | result |= 1; |
| 19689 | } |
| 19690 | |
| 19691 | /* Test whether utimes() with a NULL argument works on read-only files. */ |
| 19692 | { |
| 19693 | int fd = open (file, O_WRONLY|O_CREAT, 0444); |
| 19694 | if (fd < 0) |
| 19695 | result |= 1; |
| 19696 | else if (close (fd) != 0) |
| 19697 | result |= 1; |
| 19698 | else if (utimes (file, NULL) != 0) |
| 19699 | result |= 64; |
| 19700 | if (unlink (file) != 0) |
| 19701 | result |= 1; |
| 19702 | } |
| 19703 | |
| 19704 | return result; |
| 19705 | } |
| 19706 | |
| 19707 | _ACEOF |
| 19708 | if ac_fn_c_try_run "$LINENO"; then : |
| 19709 | gl_cv_func_working_utimes=yes |
| 19710 | else |
| 19711 | gl_cv_func_working_utimes=no |
| 19712 | fi |
| 19713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19714 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19715 | fi |
| 19716 | |
| 19717 | fi |
| 19718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5 |
| 19719 | $as_echo "$gl_cv_func_working_utimes" >&6; } |
| 19720 | |
| 19721 | if test $gl_cv_func_working_utimes = yes; then |
| 19722 | |
| 19723 | $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h |
| 19724 | |
| 19725 | fi |
| 19726 | |
| 19727 | |
| 19728 | |
| 19729 | |
| 19730 | |
| 19731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 |
| 19732 | $as_echo_n "checking for struct utimbuf... " >&6; } |
| 19733 | if test "${gl_cv_sys_struct_utimbuf+set}" = set; then : |
| 19734 | $as_echo_n "(cached) " >&6 |
| 19735 | else |
| 19736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19737 | /* end confdefs.h. */ |
| 19738 | #if HAVE_SYS_TIME_H |
| 19739 | #include <sys/time.h> |
| 19740 | #endif |
| 19741 | #include <time.h> |
| 19742 | #ifdef HAVE_UTIME_H |
| 19743 | #include <utime.h> |
| 19744 | #endif |
| 19745 | |
| 19746 | int |
| 19747 | main () |
| 19748 | { |
| 19749 | static struct utimbuf x; x.actime = x.modtime; |
| 19750 | ; |
| 19751 | return 0; |
| 19752 | } |
| 19753 | _ACEOF |
| 19754 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19755 | gl_cv_sys_struct_utimbuf=yes |
| 19756 | else |
| 19757 | gl_cv_sys_struct_utimbuf=no |
| 19758 | fi |
| 19759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19760 | fi |
| 19761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5 |
| 19762 | $as_echo "$gl_cv_sys_struct_utimbuf" >&6; } |
| 19763 | |
| 19764 | if test $gl_cv_sys_struct_utimbuf = yes; then |
| 19765 | |
| 19766 | $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h |
| 19767 | |
| 19768 | fi |
| 19769 | |
| 19770 | |
| 19771 | |
| 19772 | |
| 19773 | |
| 19774 | |
| 19775 | |
| 19776 | |
| 19777 | |
| 19778 | |
| 19779 | |
| 19780 | |
| 19781 | if false; then |
| 19782 | GL_COND_LIBTOOL_TRUE= |
| 19783 | GL_COND_LIBTOOL_FALSE='#' |
| 19784 | else |
| 19785 | GL_COND_LIBTOOL_TRUE='#' |
| 19786 | GL_COND_LIBTOOL_FALSE= |
| 19787 | fi |
| 19788 | |
| 19789 | gl_cond_libtool=false |
| 19790 | gl_libdeps= |
| 19791 | gl_ltlibdeps= |
| 19792 | gl_m4_base='m4' |
| 19793 | |
| 19794 | |
| 19795 | |
| 19796 | |
| 19797 | |
| 19798 | |
| 19799 | |
| 19800 | |
| 19801 | |
| 19802 | gl_source_base='lib' |
| 19803 | |
| 19804 | |
| 19805 | if test $ac_cv_func_alloca_works = no; then |
| 19806 | : |
| 19807 | fi |
| 19808 | |
| 19809 | # Define an additional variable used in the Makefile substitution. |
| 19810 | if test $ac_cv_working_alloca_h = yes; then |
| 19811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 |
| 19812 | $as_echo_n "checking for alloca as a compiler built-in... " >&6; } |
| 19813 | if test "${gl_cv_rpl_alloca+set}" = set; then : |
| 19814 | $as_echo_n "(cached) " >&6 |
| 19815 | else |
| 19816 | |
| 19817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19818 | /* end confdefs.h. */ |
| 19819 | |
| 19820 | #if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 19821 | Need own alloca |
| 19822 | #endif |
| 19823 | |
| 19824 | _ACEOF |
| 19825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19826 | $EGREP "Need own alloca" >/dev/null 2>&1; then : |
| 19827 | gl_cv_rpl_alloca=yes |
| 19828 | else |
| 19829 | gl_cv_rpl_alloca=no |
| 19830 | fi |
| 19831 | rm -f conftest* |
| 19832 | |
| 19833 | |
| 19834 | fi |
| 19835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 19836 | $as_echo "$gl_cv_rpl_alloca" >&6; } |
| 19837 | if test $gl_cv_rpl_alloca = yes; then |
| 19838 | |
| 19839 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 19840 | |
| 19841 | ALLOCA_H=alloca.h |
| 19842 | else |
| 19843 | ALLOCA_H= |
| 19844 | fi |
| 19845 | else |
| 19846 | ALLOCA_H=alloca.h |
| 19847 | fi |
| 19848 | |
| 19849 | if test -n "$ALLOCA_H"; then |
| 19850 | GL_GENERATE_ALLOCA_H_TRUE= |
| 19851 | GL_GENERATE_ALLOCA_H_FALSE='#' |
| 19852 | else |
| 19853 | GL_GENERATE_ALLOCA_H_TRUE='#' |
| 19854 | GL_GENERATE_ALLOCA_H_FALSE= |
| 19855 | fi |
| 19856 | |
| 19857 | |
| 19858 | |
| 19859 | |
| 19860 | |
| 19861 | |
| 19862 | # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. |
| 19863 | # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
| 19864 | |
| 19865 | # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* |
| 19866 | # programs in the package would end up linked with that potentially-shared |
| 19867 | # library, inducing unnecessary run-time overhead. |
| 19868 | LIB_CLOCK_GETTIME= |
| 19869 | |
| 19870 | gl_saved_libs=$LIBS |
| 19871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 19872 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| 19873 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 19874 | $as_echo_n "(cached) " >&6 |
| 19875 | else |
| 19876 | ac_func_search_save_LIBS=$LIBS |
| 19877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19878 | /* end confdefs.h. */ |
| 19879 | |
| 19880 | /* Override any GCC internal prototype to avoid an error. |
| 19881 | Use char because int might match the return type of a GCC |
| 19882 | builtin and then its argument prototype would still apply. */ |
| 19883 | #ifdef __cplusplus |
| 19884 | extern "C" |
| 19885 | #endif |
| 19886 | char clock_gettime (); |
| 19887 | int |
| 19888 | main () |
| 19889 | { |
| 19890 | return clock_gettime (); |
| 19891 | ; |
| 19892 | return 0; |
| 19893 | } |
| 19894 | _ACEOF |
| 19895 | for ac_lib in '' rt posix4; do |
| 19896 | if test -z "$ac_lib"; then |
| 19897 | ac_res="none required" |
| 19898 | else |
| 19899 | ac_res=-l$ac_lib |
| 19900 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19901 | fi |
| 19902 | if ac_fn_c_try_link "$LINENO"; then : |
| 19903 | ac_cv_search_clock_gettime=$ac_res |
| 19904 | fi |
| 19905 | rm -f core conftest.err conftest.$ac_objext \ |
| 19906 | conftest$ac_exeext |
| 19907 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 19908 | break |
| 19909 | fi |
| 19910 | done |
| 19911 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 19912 | |
| 19913 | else |
| 19914 | ac_cv_search_clock_gettime=no |
| 19915 | fi |
| 19916 | rm conftest.$ac_ext |
| 19917 | LIBS=$ac_func_search_save_LIBS |
| 19918 | fi |
| 19919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 19920 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 19921 | ac_res=$ac_cv_search_clock_gettime |
| 19922 | if test "$ac_res" != no; then : |
| 19923 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19924 | test "$ac_cv_search_clock_gettime" = "none required" || |
| 19925 | LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime |
| 19926 | fi |
| 19927 | |
| 19928 | for ac_func in clock_gettime clock_settime |
| 19929 | do : |
| 19930 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19931 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 19932 | eval as_val=\$$as_ac_var |
| 19933 | if test "x$as_val" = x""yes; then : |
| 19934 | cat >>confdefs.h <<_ACEOF |
| 19935 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19936 | _ACEOF |
| 19937 | |
| 19938 | fi |
| 19939 | done |
| 19940 | |
| 19941 | LIBS=$gl_saved_libs |
| 19942 | |
| 19943 | |
| 19944 | |
| 19945 | |
| 19946 | : |
| 19947 | |
| 19948 | |
| 19949 | |
| 19950 | |
| 19951 | : |
| 19952 | |
| 19953 | |
| 19954 | |
| 19955 | |
| 19956 | |
| 19957 | |
| 19958 | |
| 19959 | |
| 19960 | |
| 19961 | |
| 19962 | |
| 19963 | |
| 19964 | |
| 19965 | |
| 19966 | |
| 19967 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
| 19968 | |
| 19969 | |
| 19970 | if test $HAVE_DUP2 = 1; then |
| 19971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 |
| 19972 | $as_echo_n "checking whether dup2 works... " >&6; } |
| 19973 | if test "${gl_cv_func_dup2_works+set}" = set; then : |
| 19974 | $as_echo_n "(cached) " >&6 |
| 19975 | else |
| 19976 | if test "$cross_compiling" = yes; then : |
| 19977 | case "$host_os" in |
| 19978 | mingw*) # on this platform, dup2 always returns 0 for success |
| 19979 | gl_cv_func_dup2_works="guessing no" ;; |
| 19980 | cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 |
| 19981 | gl_cv_func_dup2_works="guessing no" ;; |
| 19982 | linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a |
| 19983 | # closed fd may yield -EBADF instead of -1 / errno=EBADF. |
| 19984 | gl_cv_func_dup2_works="guessing no" ;; |
| 19985 | freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. |
| 19986 | gl_cv_func_dup2_works="guessing no" ;; |
| 19987 | haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. |
| 19988 | gl_cv_func_dup2_works="guessing no" ;; |
| 19989 | *) gl_cv_func_dup2_works="guessing yes" ;; |
| 19990 | esac |
| 19991 | else |
| 19992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19993 | /* end confdefs.h. */ |
| 19994 | |
| 19995 | #include <unistd.h> |
| 19996 | #include <fcntl.h> |
| 19997 | #include <errno.h> |
| 19998 | int |
| 19999 | main () |
| 20000 | { |
| 20001 | int result = 0; |
| 20002 | #ifdef FD_CLOEXEC |
| 20003 | if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) |
| 20004 | result |= 1; |
| 20005 | #endif |
| 20006 | if (dup2 (1, 1) == 0) |
| 20007 | result |= 2; |
| 20008 | #ifdef FD_CLOEXEC |
| 20009 | if (fcntl (1, F_GETFD) != FD_CLOEXEC) |
| 20010 | result |= 4; |
| 20011 | #endif |
| 20012 | close (0); |
| 20013 | if (dup2 (0, 0) != -1) |
| 20014 | result |= 8; |
| 20015 | /* Many gnulib modules require POSIX conformance of EBADF. */ |
| 20016 | if (dup2 (2, 1000000) == -1 && errno != EBADF) |
| 20017 | result |= 16; |
| 20018 | return result; |
| 20019 | |
| 20020 | ; |
| 20021 | return 0; |
| 20022 | } |
| 20023 | |
| 20024 | _ACEOF |
| 20025 | if ac_fn_c_try_run "$LINENO"; then : |
| 20026 | gl_cv_func_dup2_works=yes |
| 20027 | else |
| 20028 | gl_cv_func_dup2_works=no |
| 20029 | fi |
| 20030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20031 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20032 | fi |
| 20033 | |
| 20034 | |
| 20035 | fi |
| 20036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 |
| 20037 | $as_echo "$gl_cv_func_dup2_works" >&6; } |
| 20038 | case "$gl_cv_func_dup2_works" in |
| 20039 | *yes) ;; |
| 20040 | *) |
| 20041 | REPLACE_DUP2=1 |
| 20042 | ;; |
| 20043 | esac |
| 20044 | fi |
| 20045 | |
| 20046 | |
| 20047 | if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then |
| 20048 | |
| 20049 | |
| 20050 | |
| 20051 | |
| 20052 | |
| 20053 | |
| 20054 | |
| 20055 | |
| 20056 | gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" |
| 20057 | |
| 20058 | |
| 20059 | fi |
| 20060 | |
| 20061 | |
| 20062 | |
| 20063 | |
| 20064 | |
| 20065 | GNULIB_DUP2=1 |
| 20066 | |
| 20067 | |
| 20068 | |
| 20069 | |
| 20070 | |
| 20071 | |
| 20072 | |
| 20073 | |
| 20074 | |
| 20075 | |
| 20076 | |
| 20077 | GNULIB_ENVIRON=1 |
| 20078 | |
| 20079 | |
| 20080 | |
| 20081 | |
| 20082 | |
| 20083 | |
| 20084 | |
| 20085 | |
| 20086 | |
| 20087 | |
| 20088 | |
| 20089 | |
| 20090 | # Persuade glibc <stdlib.h> to declare getloadavg(). |
| 20091 | |
| 20092 | |
| 20093 | gl_save_LIBS=$LIBS |
| 20094 | |
| 20095 | # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0, |
| 20096 | # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7. |
| 20097 | HAVE_GETLOADAVG=1 |
| 20098 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
| 20099 | if test "x$ac_cv_func_getloadavg" = x""yes; then : |
| 20100 | |
| 20101 | else |
| 20102 | gl_func_getloadavg_done=no |
| 20103 | |
| 20104 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
| 20105 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
| 20106 | # to get the right answer into the cache. |
| 20107 | # For kstat on solaris, we need to test for libelf and libkvm to force the |
| 20108 | # definition of SVR4 below. |
| 20109 | if test $gl_func_getloadavg_done = no; then |
| 20110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
| 20111 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
| 20112 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : |
| 20113 | $as_echo_n "(cached) " >&6 |
| 20114 | else |
| 20115 | ac_check_lib_save_LIBS=$LIBS |
| 20116 | LIBS="-lelf $LIBS" |
| 20117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20118 | /* end confdefs.h. */ |
| 20119 | |
| 20120 | /* Override any GCC internal prototype to avoid an error. |
| 20121 | Use char because int might match the return type of a GCC |
| 20122 | builtin and then its argument prototype would still apply. */ |
| 20123 | #ifdef __cplusplus |
| 20124 | extern "C" |
| 20125 | #endif |
| 20126 | char elf_begin (); |
| 20127 | int |
| 20128 | main () |
| 20129 | { |
| 20130 | return elf_begin (); |
| 20131 | ; |
| 20132 | return 0; |
| 20133 | } |
| 20134 | _ACEOF |
| 20135 | if ac_fn_c_try_link "$LINENO"; then : |
| 20136 | ac_cv_lib_elf_elf_begin=yes |
| 20137 | else |
| 20138 | ac_cv_lib_elf_elf_begin=no |
| 20139 | fi |
| 20140 | rm -f core conftest.err conftest.$ac_objext \ |
| 20141 | conftest$ac_exeext conftest.$ac_ext |
| 20142 | LIBS=$ac_check_lib_save_LIBS |
| 20143 | fi |
| 20144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 20145 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } |
| 20146 | if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : |
| 20147 | LIBS="-lelf $LIBS" |
| 20148 | fi |
| 20149 | |
| 20150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 |
| 20151 | $as_echo_n "checking for kvm_open in -lkvm... " >&6; } |
| 20152 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : |
| 20153 | $as_echo_n "(cached) " >&6 |
| 20154 | else |
| 20155 | ac_check_lib_save_LIBS=$LIBS |
| 20156 | LIBS="-lkvm $LIBS" |
| 20157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20158 | /* end confdefs.h. */ |
| 20159 | |
| 20160 | /* Override any GCC internal prototype to avoid an error. |
| 20161 | Use char because int might match the return type of a GCC |
| 20162 | builtin and then its argument prototype would still apply. */ |
| 20163 | #ifdef __cplusplus |
| 20164 | extern "C" |
| 20165 | #endif |
| 20166 | char kvm_open (); |
| 20167 | int |
| 20168 | main () |
| 20169 | { |
| 20170 | return kvm_open (); |
| 20171 | ; |
| 20172 | return 0; |
| 20173 | } |
| 20174 | _ACEOF |
| 20175 | if ac_fn_c_try_link "$LINENO"; then : |
| 20176 | ac_cv_lib_kvm_kvm_open=yes |
| 20177 | else |
| 20178 | ac_cv_lib_kvm_kvm_open=no |
| 20179 | fi |
| 20180 | rm -f core conftest.err conftest.$ac_objext \ |
| 20181 | conftest$ac_exeext conftest.$ac_ext |
| 20182 | LIBS=$ac_check_lib_save_LIBS |
| 20183 | fi |
| 20184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 |
| 20185 | $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } |
| 20186 | if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : |
| 20187 | LIBS="-lkvm $LIBS" |
| 20188 | fi |
| 20189 | |
| 20190 | # Check for the 4.4BSD definition of getloadavg. |
| 20191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 |
| 20192 | $as_echo_n "checking for getloadavg in -lutil... " >&6; } |
| 20193 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then : |
| 20194 | $as_echo_n "(cached) " >&6 |
| 20195 | else |
| 20196 | ac_check_lib_save_LIBS=$LIBS |
| 20197 | LIBS="-lutil $LIBS" |
| 20198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20199 | /* end confdefs.h. */ |
| 20200 | |
| 20201 | /* Override any GCC internal prototype to avoid an error. |
| 20202 | Use char because int might match the return type of a GCC |
| 20203 | builtin and then its argument prototype would still apply. */ |
| 20204 | #ifdef __cplusplus |
| 20205 | extern "C" |
| 20206 | #endif |
| 20207 | char getloadavg (); |
| 20208 | int |
| 20209 | main () |
| 20210 | { |
| 20211 | return getloadavg (); |
| 20212 | ; |
| 20213 | return 0; |
| 20214 | } |
| 20215 | _ACEOF |
| 20216 | if ac_fn_c_try_link "$LINENO"; then : |
| 20217 | ac_cv_lib_util_getloadavg=yes |
| 20218 | else |
| 20219 | ac_cv_lib_util_getloadavg=no |
| 20220 | fi |
| 20221 | rm -f core conftest.err conftest.$ac_objext \ |
| 20222 | conftest$ac_exeext conftest.$ac_ext |
| 20223 | LIBS=$ac_check_lib_save_LIBS |
| 20224 | fi |
| 20225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
| 20226 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } |
| 20227 | if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : |
| 20228 | LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes |
| 20229 | fi |
| 20230 | |
| 20231 | fi |
| 20232 | |
| 20233 | if test $gl_func_getloadavg_done = no; then |
| 20234 | # There is a commonly available library for RS/6000 AIX. |
| 20235 | # Since it is not a standard part of AIX, it might be installed locally. |
| 20236 | gl_getloadavg_LIBS=$LIBS |
| 20237 | LIBS="-L/usr/local/lib $LIBS" |
| 20238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 |
| 20239 | $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } |
| 20240 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : |
| 20241 | $as_echo_n "(cached) " >&6 |
| 20242 | else |
| 20243 | ac_check_lib_save_LIBS=$LIBS |
| 20244 | LIBS="-lgetloadavg $LIBS" |
| 20245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20246 | /* end confdefs.h. */ |
| 20247 | |
| 20248 | /* Override any GCC internal prototype to avoid an error. |
| 20249 | Use char because int might match the return type of a GCC |
| 20250 | builtin and then its argument prototype would still apply. */ |
| 20251 | #ifdef __cplusplus |
| 20252 | extern "C" |
| 20253 | #endif |
| 20254 | char getloadavg (); |
| 20255 | int |
| 20256 | main () |
| 20257 | { |
| 20258 | return getloadavg (); |
| 20259 | ; |
| 20260 | return 0; |
| 20261 | } |
| 20262 | _ACEOF |
| 20263 | if ac_fn_c_try_link "$LINENO"; then : |
| 20264 | ac_cv_lib_getloadavg_getloadavg=yes |
| 20265 | else |
| 20266 | ac_cv_lib_getloadavg_getloadavg=no |
| 20267 | fi |
| 20268 | rm -f core conftest.err conftest.$ac_objext \ |
| 20269 | conftest$ac_exeext conftest.$ac_ext |
| 20270 | LIBS=$ac_check_lib_save_LIBS |
| 20271 | fi |
| 20272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
| 20273 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } |
| 20274 | if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : |
| 20275 | LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes |
| 20276 | else |
| 20277 | LIBS=$gl_getloadavg_LIBS |
| 20278 | fi |
| 20279 | |
| 20280 | fi |
| 20281 | |
| 20282 | # Set up the replacement function if necessary. |
| 20283 | if test $gl_func_getloadavg_done = no; then |
| 20284 | HAVE_GETLOADAVG=0 |
| 20285 | |
| 20286 | # Solaris has libkstat which does not require root. |
| 20287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
| 20288 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
| 20289 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
| 20290 | $as_echo_n "(cached) " >&6 |
| 20291 | else |
| 20292 | ac_check_lib_save_LIBS=$LIBS |
| 20293 | LIBS="-lkstat $LIBS" |
| 20294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20295 | /* end confdefs.h. */ |
| 20296 | |
| 20297 | /* Override any GCC internal prototype to avoid an error. |
| 20298 | Use char because int might match the return type of a GCC |
| 20299 | builtin and then its argument prototype would still apply. */ |
| 20300 | #ifdef __cplusplus |
| 20301 | extern "C" |
| 20302 | #endif |
| 20303 | char kstat_open (); |
| 20304 | int |
| 20305 | main () |
| 20306 | { |
| 20307 | return kstat_open (); |
| 20308 | ; |
| 20309 | return 0; |
| 20310 | } |
| 20311 | _ACEOF |
| 20312 | if ac_fn_c_try_link "$LINENO"; then : |
| 20313 | ac_cv_lib_kstat_kstat_open=yes |
| 20314 | else |
| 20315 | ac_cv_lib_kstat_kstat_open=no |
| 20316 | fi |
| 20317 | rm -f core conftest.err conftest.$ac_objext \ |
| 20318 | conftest$ac_exeext conftest.$ac_ext |
| 20319 | LIBS=$ac_check_lib_save_LIBS |
| 20320 | fi |
| 20321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
| 20322 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
| 20323 | if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
| 20324 | cat >>confdefs.h <<_ACEOF |
| 20325 | #define HAVE_LIBKSTAT 1 |
| 20326 | _ACEOF |
| 20327 | |
| 20328 | LIBS="-lkstat $LIBS" |
| 20329 | |
| 20330 | fi |
| 20331 | |
| 20332 | test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes |
| 20333 | |
| 20334 | # AIX has libperfstat which does not require root |
| 20335 | if test $gl_func_getloadavg_done = no; then |
| 20336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 |
| 20337 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } |
| 20338 | if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then : |
| 20339 | $as_echo_n "(cached) " >&6 |
| 20340 | else |
| 20341 | ac_check_lib_save_LIBS=$LIBS |
| 20342 | LIBS="-lperfstat $LIBS" |
| 20343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20344 | /* end confdefs.h. */ |
| 20345 | |
| 20346 | /* Override any GCC internal prototype to avoid an error. |
| 20347 | Use char because int might match the return type of a GCC |
| 20348 | builtin and then its argument prototype would still apply. */ |
| 20349 | #ifdef __cplusplus |
| 20350 | extern "C" |
| 20351 | #endif |
| 20352 | char perfstat_cpu_total (); |
| 20353 | int |
| 20354 | main () |
| 20355 | { |
| 20356 | return perfstat_cpu_total (); |
| 20357 | ; |
| 20358 | return 0; |
| 20359 | } |
| 20360 | _ACEOF |
| 20361 | if ac_fn_c_try_link "$LINENO"; then : |
| 20362 | ac_cv_lib_perfstat_perfstat_cpu_total=yes |
| 20363 | else |
| 20364 | ac_cv_lib_perfstat_perfstat_cpu_total=no |
| 20365 | fi |
| 20366 | rm -f core conftest.err conftest.$ac_objext \ |
| 20367 | conftest$ac_exeext conftest.$ac_ext |
| 20368 | LIBS=$ac_check_lib_save_LIBS |
| 20369 | fi |
| 20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 |
| 20371 | $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } |
| 20372 | if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then : |
| 20373 | cat >>confdefs.h <<_ACEOF |
| 20374 | #define HAVE_LIBPERFSTAT 1 |
| 20375 | _ACEOF |
| 20376 | |
| 20377 | LIBS="-lperfstat $LIBS" |
| 20378 | |
| 20379 | fi |
| 20380 | |
| 20381 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes |
| 20382 | fi |
| 20383 | |
| 20384 | if test $gl_func_getloadavg_done = no; then |
| 20385 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" |
| 20386 | if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : |
| 20387 | gl_func_getloadavg_done=yes |
| 20388 | |
| 20389 | $as_echo "#define DGUX 1" >>confdefs.h |
| 20390 | |
| 20391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 |
| 20392 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } |
| 20393 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : |
| 20394 | $as_echo_n "(cached) " >&6 |
| 20395 | else |
| 20396 | ac_check_lib_save_LIBS=$LIBS |
| 20397 | LIBS="-ldgc $LIBS" |
| 20398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20399 | /* end confdefs.h. */ |
| 20400 | |
| 20401 | /* Override any GCC internal prototype to avoid an error. |
| 20402 | Use char because int might match the return type of a GCC |
| 20403 | builtin and then its argument prototype would still apply. */ |
| 20404 | #ifdef __cplusplus |
| 20405 | extern "C" |
| 20406 | #endif |
| 20407 | char dg_sys_info (); |
| 20408 | int |
| 20409 | main () |
| 20410 | { |
| 20411 | return dg_sys_info (); |
| 20412 | ; |
| 20413 | return 0; |
| 20414 | } |
| 20415 | _ACEOF |
| 20416 | if ac_fn_c_try_link "$LINENO"; then : |
| 20417 | ac_cv_lib_dgc_dg_sys_info=yes |
| 20418 | else |
| 20419 | ac_cv_lib_dgc_dg_sys_info=no |
| 20420 | fi |
| 20421 | rm -f core conftest.err conftest.$ac_objext \ |
| 20422 | conftest$ac_exeext conftest.$ac_ext |
| 20423 | LIBS=$ac_check_lib_save_LIBS |
| 20424 | fi |
| 20425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
| 20426 | $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } |
| 20427 | if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : |
| 20428 | cat >>confdefs.h <<_ACEOF |
| 20429 | #define HAVE_LIBDGC 1 |
| 20430 | _ACEOF |
| 20431 | |
| 20432 | LIBS="-ldgc $LIBS" |
| 20433 | |
| 20434 | fi |
| 20435 | |
| 20436 | fi |
| 20437 | |
| 20438 | |
| 20439 | fi |
| 20440 | fi |
| 20441 | fi |
| 20442 | |
| 20443 | |
| 20444 | if test "x$gl_save_LIBS" = x; then |
| 20445 | GETLOADAVG_LIBS=$LIBS |
| 20446 | else |
| 20447 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` |
| 20448 | fi |
| 20449 | LIBS=$gl_save_LIBS |
| 20450 | |
| 20451 | |
| 20452 | # Test whether the system declares getloadavg. Solaris has the function |
| 20453 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. |
| 20454 | for ac_header in sys/loadavg.h |
| 20455 | do : |
| 20456 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" |
| 20457 | if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then : |
| 20458 | cat >>confdefs.h <<_ACEOF |
| 20459 | #define HAVE_SYS_LOADAVG_H 1 |
| 20460 | _ACEOF |
| 20461 | |
| 20462 | fi |
| 20463 | |
| 20464 | done |
| 20465 | |
| 20466 | if test $ac_cv_header_sys_loadavg_h = yes; then |
| 20467 | HAVE_SYS_LOADAVG_H=1 |
| 20468 | else |
| 20469 | HAVE_SYS_LOADAVG_H=0 |
| 20470 | fi |
| 20471 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H |
| 20472 | # include <sys/loadavg.h> |
| 20473 | #endif |
| 20474 | #include <stdlib.h> |
| 20475 | " |
| 20476 | if test "x$ac_cv_have_decl_getloadavg" = x""yes; then : |
| 20477 | |
| 20478 | else |
| 20479 | HAVE_DECL_GETLOADAVG=0 |
| 20480 | fi |
| 20481 | |
| 20482 | |
| 20483 | if test $HAVE_GETLOADAVG = 0; then |
| 20484 | |
| 20485 | |
| 20486 | |
| 20487 | |
| 20488 | |
| 20489 | |
| 20490 | |
| 20491 | |
| 20492 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" |
| 20493 | |
| 20494 | |
| 20495 | # Figure out what our getloadavg.c needs. |
| 20496 | |
| 20497 | |
| 20498 | |
| 20499 | # On HPUX9, an unprivileged user can get load averages this way. |
| 20500 | if test $gl_func_getloadavg_done = no; then |
| 20501 | for ac_func in pstat_getdynamic |
| 20502 | do : |
| 20503 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" |
| 20504 | if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : |
| 20505 | cat >>confdefs.h <<_ACEOF |
| 20506 | #define HAVE_PSTAT_GETDYNAMIC 1 |
| 20507 | _ACEOF |
| 20508 | gl_func_getloadavg_done=yes |
| 20509 | fi |
| 20510 | done |
| 20511 | |
| 20512 | fi |
| 20513 | |
| 20514 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
| 20515 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
| 20516 | # Irix 4.0.5F has the header but not the library. |
| 20517 | if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ |
| 20518 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then |
| 20519 | gl_func_getloadavg_done=yes |
| 20520 | |
| 20521 | $as_echo "#define SVR4 1" >>confdefs.h |
| 20522 | |
| 20523 | fi |
| 20524 | |
| 20525 | if test $gl_func_getloadavg_done = no; then |
| 20526 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" |
| 20527 | if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : |
| 20528 | gl_func_getloadavg_done=yes |
| 20529 | |
| 20530 | $as_echo "#define UMAX 1" >>confdefs.h |
| 20531 | |
| 20532 | |
| 20533 | $as_echo "#define UMAX4_3 1" >>confdefs.h |
| 20534 | |
| 20535 | fi |
| 20536 | |
| 20537 | |
| 20538 | fi |
| 20539 | |
| 20540 | if test $gl_func_getloadavg_done = no; then |
| 20541 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" |
| 20542 | if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : |
| 20543 | gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h |
| 20544 | |
| 20545 | fi |
| 20546 | |
| 20547 | |
| 20548 | fi |
| 20549 | |
| 20550 | if test $gl_func_getloadavg_done = no; then |
| 20551 | for ac_header in mach/mach.h |
| 20552 | do : |
| 20553 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |
| 20554 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : |
| 20555 | cat >>confdefs.h <<_ACEOF |
| 20556 | #define HAVE_MACH_MACH_H 1 |
| 20557 | _ACEOF |
| 20558 | |
| 20559 | fi |
| 20560 | |
| 20561 | done |
| 20562 | |
| 20563 | fi |
| 20564 | |
| 20565 | for ac_header in nlist.h |
| 20566 | do : |
| 20567 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
| 20568 | if test "x$ac_cv_header_nlist_h" = x""yes; then : |
| 20569 | cat >>confdefs.h <<_ACEOF |
| 20570 | #define HAVE_NLIST_H 1 |
| 20571 | _ACEOF |
| 20572 | ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> |
| 20573 | " |
| 20574 | if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : |
| 20575 | |
| 20576 | cat >>confdefs.h <<_ACEOF |
| 20577 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
| 20578 | _ACEOF |
| 20579 | |
| 20580 | |
| 20581 | fi |
| 20582 | |
| 20583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20584 | /* end confdefs.h. */ |
| 20585 | #include <nlist.h> |
| 20586 | int |
| 20587 | main () |
| 20588 | { |
| 20589 | struct nlist x; |
| 20590 | #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME |
| 20591 | x.n_un.n_name = ""; |
| 20592 | #else |
| 20593 | x.n_name = ""; |
| 20594 | #endif |
| 20595 | ; |
| 20596 | return 0; |
| 20597 | } |
| 20598 | _ACEOF |
| 20599 | if ac_fn_c_try_link "$LINENO"; then : |
| 20600 | |
| 20601 | $as_echo "#define N_NAME_POINTER 1" >>confdefs.h |
| 20602 | |
| 20603 | fi |
| 20604 | rm -f core conftest.err conftest.$ac_objext \ |
| 20605 | conftest$ac_exeext conftest.$ac_ext |
| 20606 | |
| 20607 | fi |
| 20608 | |
| 20609 | done |
| 20610 | |
| 20611 | fi |
| 20612 | |
| 20613 | |
| 20614 | |
| 20615 | |
| 20616 | |
| 20617 | GNULIB_GETLOADAVG=1 |
| 20618 | |
| 20619 | |
| 20620 | |
| 20621 | |
| 20622 | |
| 20623 | |
| 20624 | |
| 20625 | |
| 20626 | |
| 20627 | |
| 20628 | if test $REPLACE_GETOPT = 1; then |
| 20629 | |
| 20630 | |
| 20631 | |
| 20632 | |
| 20633 | |
| 20634 | |
| 20635 | |
| 20636 | |
| 20637 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 20638 | |
| 20639 | |
| 20640 | |
| 20641 | |
| 20642 | |
| 20643 | |
| 20644 | |
| 20645 | |
| 20646 | |
| 20647 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 20648 | |
| 20649 | |
| 20650 | |
| 20651 | |
| 20652 | GNULIB_GL_UNISTD_H_GETOPT=1 |
| 20653 | fi |
| 20654 | |
| 20655 | |
| 20656 | |
| 20657 | |
| 20658 | |
| 20659 | |
| 20660 | |
| 20661 | REPLACE_GETOPT=0 |
| 20662 | if test -n "$gl_replace_getopt"; then |
| 20663 | REPLACE_GETOPT=1 |
| 20664 | fi |
| 20665 | |
| 20666 | if test $REPLACE_GETOPT = 1; then |
| 20667 | |
| 20668 | GETOPT_H=getopt.h |
| 20669 | |
| 20670 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 20671 | |
| 20672 | |
| 20673 | |
| 20674 | fi |
| 20675 | |
| 20676 | if test $REPLACE_GETOPT = 1; then |
| 20677 | |
| 20678 | |
| 20679 | |
| 20680 | |
| 20681 | |
| 20682 | |
| 20683 | |
| 20684 | |
| 20685 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 20686 | |
| 20687 | |
| 20688 | |
| 20689 | |
| 20690 | |
| 20691 | |
| 20692 | |
| 20693 | |
| 20694 | |
| 20695 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 20696 | |
| 20697 | |
| 20698 | |
| 20699 | |
| 20700 | GNULIB_GL_UNISTD_H_GETOPT=1 |
| 20701 | fi |
| 20702 | |
| 20703 | |
| 20704 | |
| 20705 | |
| 20706 | |
| 20707 | |
| 20708 | |
| 20709 | |
| 20710 | |
| 20711 | |
| 20712 | |
| 20713 | |
| 20714 | gl_gettimeofday_timezone=void |
| 20715 | if test $ac_cv_func_gettimeofday != yes; then |
| 20716 | HAVE_GETTIMEOFDAY=0 |
| 20717 | else |
| 20718 | |
| 20719 | |
| 20720 | |
| 20721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 |
| 20722 | $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } |
| 20723 | if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then : |
| 20724 | $as_echo_n "(cached) " >&6 |
| 20725 | else |
| 20726 | if test "$cross_compiling" = yes; then : |
| 20727 | # When cross-compiling: |
| 20728 | case "$host_os" in |
| 20729 | # Guess all is fine on glibc systems. |
| 20730 | *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;; |
| 20731 | # If we don't know, assume the worst. |
| 20732 | *) gl_cv_func_gettimeofday_clobber="guessing yes" ;; |
| 20733 | esac |
| 20734 | |
| 20735 | else |
| 20736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20737 | /* end confdefs.h. */ |
| 20738 | #include <string.h> |
| 20739 | #include <sys/time.h> |
| 20740 | #include <time.h> |
| 20741 | #include <stdlib.h> |
| 20742 | |
| 20743 | int |
| 20744 | main () |
| 20745 | { |
| 20746 | |
| 20747 | time_t t = 0; |
| 20748 | struct tm *lt; |
| 20749 | struct tm saved_lt; |
| 20750 | struct timeval tv; |
| 20751 | lt = localtime (&t); |
| 20752 | saved_lt = *lt; |
| 20753 | gettimeofday (&tv, NULL); |
| 20754 | return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; |
| 20755 | |
| 20756 | ; |
| 20757 | return 0; |
| 20758 | } |
| 20759 | _ACEOF |
| 20760 | if ac_fn_c_try_run "$LINENO"; then : |
| 20761 | gl_cv_func_gettimeofday_clobber=no |
| 20762 | else |
| 20763 | gl_cv_func_gettimeofday_clobber=yes |
| 20764 | fi |
| 20765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20766 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20767 | fi |
| 20768 | |
| 20769 | fi |
| 20770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 |
| 20771 | $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } |
| 20772 | |
| 20773 | case "$gl_cv_func_gettimeofday_clobber" in |
| 20774 | *yes) |
| 20775 | REPLACE_GETTIMEOFDAY=1 |
| 20776 | |
| 20777 | |
| 20778 | $as_echo "#define gmtime rpl_gmtime" >>confdefs.h |
| 20779 | |
| 20780 | |
| 20781 | $as_echo "#define localtime rpl_localtime" >>confdefs.h |
| 20782 | |
| 20783 | |
| 20784 | |
| 20785 | $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h |
| 20786 | |
| 20787 | ;; |
| 20788 | esac |
| 20789 | |
| 20790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 |
| 20791 | $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } |
| 20792 | if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then : |
| 20793 | $as_echo_n "(cached) " >&6 |
| 20794 | else |
| 20795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20796 | /* end confdefs.h. */ |
| 20797 | #include <sys/time.h> |
| 20798 | struct timeval c; |
| 20799 | int gettimeofday (struct timeval *restrict, void *restrict); |
| 20800 | |
| 20801 | int |
| 20802 | main () |
| 20803 | { |
| 20804 | /* glibc uses struct timezone * rather than the POSIX void * |
| 20805 | if _GNU_SOURCE is defined. However, since the only portable |
| 20806 | use of gettimeofday uses NULL as the second parameter, and |
| 20807 | since the glibc definition is actually more typesafe, it is |
| 20808 | not worth wrapping this to get a compliant signature. */ |
| 20809 | int (*f) (struct timeval *restrict, void *restrict) |
| 20810 | = gettimeofday; |
| 20811 | int x = f (&c, 0); |
| 20812 | return !(x | c.tv_sec | c.tv_usec); |
| 20813 | |
| 20814 | ; |
| 20815 | return 0; |
| 20816 | } |
| 20817 | _ACEOF |
| 20818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20819 | gl_cv_func_gettimeofday_posix_signature=yes |
| 20820 | else |
| 20821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20822 | /* end confdefs.h. */ |
| 20823 | #include <sys/time.h> |
| 20824 | int gettimeofday (struct timeval *restrict, struct timezone *restrict); |
| 20825 | |
| 20826 | int |
| 20827 | main () |
| 20828 | { |
| 20829 | |
| 20830 | ; |
| 20831 | return 0; |
| 20832 | } |
| 20833 | _ACEOF |
| 20834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20835 | gl_cv_func_gettimeofday_posix_signature=almost |
| 20836 | else |
| 20837 | gl_cv_func_gettimeofday_posix_signature=no |
| 20838 | fi |
| 20839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20840 | fi |
| 20841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20842 | fi |
| 20843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 |
| 20844 | $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } |
| 20845 | if test $gl_cv_func_gettimeofday_posix_signature = almost; then |
| 20846 | gl_gettimeofday_timezone='struct timezone' |
| 20847 | elif test $gl_cv_func_gettimeofday_posix_signature != yes; then |
| 20848 | REPLACE_GETTIMEOFDAY=1 |
| 20849 | fi |
| 20850 | if test $REPLACE_STRUCT_TIMEVAL = 1; then |
| 20851 | REPLACE_GETTIMEOFDAY=1 |
| 20852 | fi |
| 20853 | |
| 20854 | fi |
| 20855 | |
| 20856 | cat >>confdefs.h <<_ACEOF |
| 20857 | #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone |
| 20858 | _ACEOF |
| 20859 | |
| 20860 | |
| 20861 | if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then |
| 20862 | |
| 20863 | |
| 20864 | |
| 20865 | |
| 20866 | |
| 20867 | |
| 20868 | |
| 20869 | |
| 20870 | gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" |
| 20871 | |
| 20872 | |
| 20873 | for ac_header in sys/timeb.h |
| 20874 | do : |
| 20875 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 20876 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 20877 | cat >>confdefs.h <<_ACEOF |
| 20878 | #define HAVE_SYS_TIMEB_H 1 |
| 20879 | _ACEOF |
| 20880 | |
| 20881 | fi |
| 20882 | |
| 20883 | done |
| 20884 | |
| 20885 | for ac_func in _ftime |
| 20886 | do : |
| 20887 | ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" |
| 20888 | if test "x$ac_cv_func__ftime" = x""yes; then : |
| 20889 | cat >>confdefs.h <<_ACEOF |
| 20890 | #define HAVE__FTIME 1 |
| 20891 | _ACEOF |
| 20892 | |
| 20893 | fi |
| 20894 | done |
| 20895 | |
| 20896 | |
| 20897 | fi |
| 20898 | |
| 20899 | |
| 20900 | |
| 20901 | |
| 20902 | |
| 20903 | GNULIB_GETTIMEOFDAY=1 |
| 20904 | |
| 20905 | |
| 20906 | |
| 20907 | |
| 20908 | |
| 20909 | |
| 20910 | |
| 20911 | |
| 20912 | |
| 20913 | |
| 20914 | |
| 20915 | if test $ac_cv_func_lstat = yes; then |
| 20916 | |
| 20917 | case "$gl_cv_func_lstat_dereferences_slashed_symlink" in |
| 20918 | *no) |
| 20919 | REPLACE_LSTAT=1 |
| 20920 | ;; |
| 20921 | esac |
| 20922 | else |
| 20923 | HAVE_LSTAT=0 |
| 20924 | fi |
| 20925 | |
| 20926 | if test $REPLACE_LSTAT = 1; then |
| 20927 | |
| 20928 | |
| 20929 | |
| 20930 | |
| 20931 | |
| 20932 | |
| 20933 | |
| 20934 | |
| 20935 | gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" |
| 20936 | |
| 20937 | |
| 20938 | |
| 20939 | : |
| 20940 | |
| 20941 | fi |
| 20942 | |
| 20943 | |
| 20944 | |
| 20945 | |
| 20946 | |
| 20947 | GNULIB_LSTAT=1 |
| 20948 | |
| 20949 | |
| 20950 | |
| 20951 | |
| 20952 | |
| 20953 | |
| 20954 | |
| 20955 | |
| 20956 | |
| 20957 | |
| 20958 | |
| 20959 | if test $APPLE_UNIVERSAL_BUILD = 1; then |
| 20960 | # A universal build on Apple Mac OS X platforms. |
| 20961 | # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. |
| 20962 | # But we need a configuration result that is valid in both modes. |
| 20963 | gl_cv_func_working_mktime=no |
| 20964 | fi |
| 20965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
| 20966 | $as_echo_n "checking for working mktime... " >&6; } |
| 20967 | if test "${gl_cv_func_working_mktime+set}" = set; then : |
| 20968 | $as_echo_n "(cached) " >&6 |
| 20969 | else |
| 20970 | if test "$cross_compiling" = yes; then : |
| 20971 | gl_cv_func_working_mktime=no |
| 20972 | else |
| 20973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20974 | /* end confdefs.h. */ |
| 20975 | /* Test program from Paul Eggert and Tony Leneis. */ |
| 20976 | #include <limits.h> |
| 20977 | #include <stdlib.h> |
| 20978 | #include <time.h> |
| 20979 | |
| 20980 | #ifdef HAVE_UNISTD_H |
| 20981 | # include <unistd.h> |
| 20982 | #endif |
| 20983 | |
| 20984 | #ifndef HAVE_ALARM |
| 20985 | # define alarm(X) /* empty */ |
| 20986 | #endif |
| 20987 | |
| 20988 | /* Work around redefinition to rpl_putenv by other config tests. */ |
| 20989 | #undef putenv |
| 20990 | |
| 20991 | static time_t time_t_max; |
| 20992 | static time_t time_t_min; |
| 20993 | |
| 20994 | /* Values we'll use to set the TZ environment variable. */ |
| 20995 | static char *tz_strings[] = { |
| 20996 | (char *) 0, "TZ=GMT0", "TZ=JST-9", |
| 20997 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 20998 | }; |
| 20999 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| 21000 | |
| 21001 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
| 21002 | Based on a problem report from Andreas Jaeger. */ |
| 21003 | static int |
| 21004 | spring_forward_gap () |
| 21005 | { |
| 21006 | /* glibc (up to about 1998-10-07) failed this test. */ |
| 21007 | struct tm tm; |
| 21008 | |
| 21009 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 21010 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 21011 | on systems that don't support the Olson extension, or don't have the |
| 21012 | full zoneinfo tables installed. */ |
| 21013 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 21014 | |
| 21015 | tm.tm_year = 98; |
| 21016 | tm.tm_mon = 3; |
| 21017 | tm.tm_mday = 5; |
| 21018 | tm.tm_hour = 2; |
| 21019 | tm.tm_min = 0; |
| 21020 | tm.tm_sec = 0; |
| 21021 | tm.tm_isdst = -1; |
| 21022 | return mktime (&tm) != (time_t) -1; |
| 21023 | } |
| 21024 | |
| 21025 | static int |
| 21026 | mktime_test1 (time_t now) |
| 21027 | { |
| 21028 | struct tm *lt; |
| 21029 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
| 21030 | } |
| 21031 | |
| 21032 | static int |
| 21033 | mktime_test (time_t now) |
| 21034 | { |
| 21035 | return (mktime_test1 (now) |
| 21036 | && mktime_test1 ((time_t) (time_t_max - now)) |
| 21037 | && mktime_test1 ((time_t) (time_t_min + now))); |
| 21038 | } |
| 21039 | |
| 21040 | static int |
| 21041 | irix_6_4_bug () |
| 21042 | { |
| 21043 | /* Based on code from Ariel Faigon. */ |
| 21044 | struct tm tm; |
| 21045 | tm.tm_year = 96; |
| 21046 | tm.tm_mon = 3; |
| 21047 | tm.tm_mday = 0; |
| 21048 | tm.tm_hour = 0; |
| 21049 | tm.tm_min = 0; |
| 21050 | tm.tm_sec = 0; |
| 21051 | tm.tm_isdst = -1; |
| 21052 | mktime (&tm); |
| 21053 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
| 21054 | } |
| 21055 | |
| 21056 | static int |
| 21057 | bigtime_test (int j) |
| 21058 | { |
| 21059 | struct tm tm; |
| 21060 | time_t now; |
| 21061 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; |
| 21062 | now = mktime (&tm); |
| 21063 | if (now != (time_t) -1) |
| 21064 | { |
| 21065 | struct tm *lt = localtime (&now); |
| 21066 | if (! (lt |
| 21067 | && lt->tm_year == tm.tm_year |
| 21068 | && lt->tm_mon == tm.tm_mon |
| 21069 | && lt->tm_mday == tm.tm_mday |
| 21070 | && lt->tm_hour == tm.tm_hour |
| 21071 | && lt->tm_min == tm.tm_min |
| 21072 | && lt->tm_sec == tm.tm_sec |
| 21073 | && lt->tm_yday == tm.tm_yday |
| 21074 | && lt->tm_wday == tm.tm_wday |
| 21075 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) |
| 21076 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) |
| 21077 | return 0; |
| 21078 | } |
| 21079 | return 1; |
| 21080 | } |
| 21081 | |
| 21082 | static int |
| 21083 | year_2050_test () |
| 21084 | { |
| 21085 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, |
| 21086 | ignoring leap seconds. */ |
| 21087 | unsigned long int answer = 2527315200UL; |
| 21088 | |
| 21089 | struct tm tm; |
| 21090 | time_t t; |
| 21091 | tm.tm_year = 2050 - 1900; |
| 21092 | tm.tm_mon = 2 - 1; |
| 21093 | tm.tm_mday = 1; |
| 21094 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; |
| 21095 | tm.tm_isdst = -1; |
| 21096 | |
| 21097 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 21098 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 21099 | on systems that don't support the Olson extension, or don't have the |
| 21100 | full zoneinfo tables installed. */ |
| 21101 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 21102 | |
| 21103 | t = mktime (&tm); |
| 21104 | |
| 21105 | /* Check that the result is either a failure, or close enough |
| 21106 | to the correct answer that we can assume the discrepancy is |
| 21107 | due to leap seconds. */ |
| 21108 | return (t == (time_t) -1 |
| 21109 | || (0 < t && answer - 120 <= t && t <= answer + 120)); |
| 21110 | } |
| 21111 | |
| 21112 | int |
| 21113 | main () |
| 21114 | { |
| 21115 | int result = 0; |
| 21116 | time_t t, delta; |
| 21117 | int i, j; |
| 21118 | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; |
| 21119 | int time_t_signed = ! ((time_t) 0 < (time_t) -1); |
| 21120 | |
| 21121 | /* This test makes some buggy mktime implementations loop. |
| 21122 | Give up after 60 seconds; a mktime slower than that |
| 21123 | isn't worth using anyway. */ |
| 21124 | alarm (60); |
| 21125 | |
| 21126 | time_t_max = (! time_t_signed |
| 21127 | ? (time_t) -1 |
| 21128 | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) |
| 21129 | * 2 + 1)); |
| 21130 | time_t_min = (! time_t_signed |
| 21131 | ? (time_t) 0 |
| 21132 | : time_t_signed_magnitude |
| 21133 | ? ~ (time_t) 0 |
| 21134 | : ~ time_t_max); |
| 21135 | |
| 21136 | delta = time_t_max / 997; /* a suitable prime number */ |
| 21137 | for (i = 0; i < N_STRINGS; i++) |
| 21138 | { |
| 21139 | if (tz_strings[i]) |
| 21140 | putenv (tz_strings[i]); |
| 21141 | |
| 21142 | for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta) |
| 21143 | if (! mktime_test (t)) |
| 21144 | result |= 1; |
| 21145 | if ((result & 2) == 0 |
| 21146 | && ! (mktime_test ((time_t) 1) |
| 21147 | && mktime_test ((time_t) (60 * 60)) |
| 21148 | && mktime_test ((time_t) (60 * 60 * 24)))) |
| 21149 | result |= 2; |
| 21150 | |
| 21151 | for (j = 1; (result & 4) == 0; j <<= 1) |
| 21152 | { |
| 21153 | if (! bigtime_test (j)) |
| 21154 | result |= 4; |
| 21155 | if (INT_MAX / 2 < j) |
| 21156 | break; |
| 21157 | } |
| 21158 | if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) |
| 21159 | result |= 8; |
| 21160 | } |
| 21161 | if (! irix_6_4_bug ()) |
| 21162 | result |= 16; |
| 21163 | if (! spring_forward_gap ()) |
| 21164 | result |= 32; |
| 21165 | if (! year_2050_test ()) |
| 21166 | result |= 64; |
| 21167 | return result; |
| 21168 | } |
| 21169 | _ACEOF |
| 21170 | if ac_fn_c_try_run "$LINENO"; then : |
| 21171 | gl_cv_func_working_mktime=yes |
| 21172 | else |
| 21173 | gl_cv_func_working_mktime=no |
| 21174 | fi |
| 21175 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21176 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21177 | fi |
| 21178 | |
| 21179 | |
| 21180 | fi |
| 21181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5 |
| 21182 | $as_echo "$gl_cv_func_working_mktime" >&6; } |
| 21183 | |
| 21184 | if test $gl_cv_func_working_mktime = no; then |
| 21185 | REPLACE_MKTIME=1 |
| 21186 | else |
| 21187 | REPLACE_MKTIME=0 |
| 21188 | fi |
| 21189 | |
| 21190 | if test $REPLACE_MKTIME = 1; then |
| 21191 | |
| 21192 | |
| 21193 | |
| 21194 | |
| 21195 | |
| 21196 | |
| 21197 | |
| 21198 | |
| 21199 | gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext" |
| 21200 | |
| 21201 | |
| 21202 | |
| 21203 | |
| 21204 | fi |
| 21205 | |
| 21206 | |
| 21207 | |
| 21208 | |
| 21209 | |
| 21210 | GNULIB_MKTIME=1 |
| 21211 | |
| 21212 | |
| 21213 | |
| 21214 | |
| 21215 | |
| 21216 | |
| 21217 | |
| 21218 | |
| 21219 | |
| 21220 | |
| 21221 | |
| 21222 | if test $ac_cv_func_pselect = yes; then |
| 21223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5 |
| 21224 | $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; } |
| 21225 | if test "${gl_cv_sig_pselect+set}" = set; then : |
| 21226 | $as_echo_n "(cached) " >&6 |
| 21227 | else |
| 21228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21229 | /* end confdefs.h. */ |
| 21230 | #include <sys/select.h> |
| 21231 | |
| 21232 | int |
| 21233 | main () |
| 21234 | { |
| 21235 | int (*p) (int, fd_set *, fd_set *, fd_set *restrict, |
| 21236 | struct timespec const *restrict, |
| 21237 | sigset_t const *restrict) = pselect; |
| 21238 | return !p; |
| 21239 | ; |
| 21240 | return 0; |
| 21241 | } |
| 21242 | _ACEOF |
| 21243 | if ac_fn_c_try_link "$LINENO"; then : |
| 21244 | gl_cv_sig_pselect=yes |
| 21245 | else |
| 21246 | gl_cv_sig_pselect=no |
| 21247 | fi |
| 21248 | rm -f core conftest.err conftest.$ac_objext \ |
| 21249 | conftest$ac_exeext conftest.$ac_ext |
| 21250 | fi |
| 21251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5 |
| 21252 | $as_echo "$gl_cv_sig_pselect" >&6; } |
| 21253 | fi |
| 21254 | |
| 21255 | if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then |
| 21256 | REPLACE_PSELECT=1 |
| 21257 | fi |
| 21258 | |
| 21259 | if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then |
| 21260 | |
| 21261 | |
| 21262 | |
| 21263 | |
| 21264 | |
| 21265 | |
| 21266 | |
| 21267 | |
| 21268 | gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext" |
| 21269 | |
| 21270 | fi |
| 21271 | |
| 21272 | |
| 21273 | |
| 21274 | |
| 21275 | |
| 21276 | GNULIB_PSELECT=1 |
| 21277 | |
| 21278 | |
| 21279 | |
| 21280 | |
| 21281 | |
| 21282 | |
| 21283 | |
| 21284 | |
| 21285 | |
| 21286 | LIB_PTHREAD_SIGMASK= |
| 21287 | |
| 21288 | |
| 21289 | if test $ac_cv_func_pthread_sigmask = yes; then |
| 21290 | : |
| 21291 | else |
| 21292 | HAVE_PTHREAD_SIGMASK=0 |
| 21293 | REPLACE_PTHREAD_SIGMASK=1 |
| 21294 | fi |
| 21295 | |
| 21296 | |
| 21297 | |
| 21298 | |
| 21299 | if test $HAVE_PTHREAD_SIGMASK = 1; then |
| 21300 | |
| 21301 | |
| 21302 | if test -z "$LIB_PTHREAD_SIGMASK"; then |
| 21303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 |
| 21304 | $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; } |
| 21305 | if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then : |
| 21306 | $as_echo_n "(cached) " >&6 |
| 21307 | else |
| 21308 | |
| 21309 | if test "$cross_compiling" = yes; then : |
| 21310 | |
| 21311 | case "$host_os" in |
| 21312 | freebsd* | hpux* | solaris | solaris2.[2-9]*) |
| 21313 | gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; |
| 21314 | *) |
| 21315 | gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; |
| 21316 | esac |
| 21317 | |
| 21318 | else |
| 21319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21320 | /* end confdefs.h. */ |
| 21321 | |
| 21322 | #include <pthread.h> |
| 21323 | #include <signal.h> |
| 21324 | #include <stddef.h> |
| 21325 | int main () |
| 21326 | { |
| 21327 | sigset_t set; |
| 21328 | sigemptyset (&set); |
| 21329 | return pthread_sigmask (1729, &set, NULL) != 0; |
| 21330 | } |
| 21331 | _ACEOF |
| 21332 | if ac_fn_c_try_run "$LINENO"; then : |
| 21333 | gl_cv_func_pthread_sigmask_in_libc_works=no |
| 21334 | else |
| 21335 | gl_cv_func_pthread_sigmask_in_libc_works=yes |
| 21336 | fi |
| 21337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21338 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21339 | fi |
| 21340 | |
| 21341 | |
| 21342 | fi |
| 21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 |
| 21344 | $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } |
| 21345 | case "$gl_cv_func_pthread_sigmask_in_libc_works" in |
| 21346 | *no) |
| 21347 | REPLACE_PTHREAD_SIGMASK=1 |
| 21348 | |
| 21349 | $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h |
| 21350 | |
| 21351 | ;; |
| 21352 | esac |
| 21353 | fi |
| 21354 | |
| 21355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 |
| 21356 | $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; } |
| 21357 | if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then : |
| 21358 | $as_echo_n "(cached) " >&6 |
| 21359 | else |
| 21360 | |
| 21361 | gl_save_LIBS="$LIBS" |
| 21362 | LIBS="$LIBS $LIB_PTHREAD_SIGMASK" |
| 21363 | if test "$cross_compiling" = yes; then : |
| 21364 | case "$host_os" in |
| 21365 | cygwin*) |
| 21366 | gl_cv_func_pthread_sigmask_return_works="guessing no";; |
| 21367 | *) |
| 21368 | gl_cv_func_pthread_sigmask_return_works="guessing yes";; |
| 21369 | esac |
| 21370 | |
| 21371 | else |
| 21372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21373 | /* end confdefs.h. */ |
| 21374 | |
| 21375 | #include <pthread.h> |
| 21376 | #include <signal.h> |
| 21377 | #include <stddef.h> |
| 21378 | int main () |
| 21379 | { |
| 21380 | sigset_t set; |
| 21381 | sigemptyset (&set); |
| 21382 | if (pthread_sigmask (1729, &set, NULL) == -1) |
| 21383 | return 1; |
| 21384 | return 0; |
| 21385 | } |
| 21386 | _ACEOF |
| 21387 | if ac_fn_c_try_run "$LINENO"; then : |
| 21388 | gl_cv_func_pthread_sigmask_return_works=yes |
| 21389 | else |
| 21390 | gl_cv_func_pthread_sigmask_return_works=no |
| 21391 | fi |
| 21392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21393 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21394 | fi |
| 21395 | |
| 21396 | LIBS="$gl_save_LIBS" |
| 21397 | |
| 21398 | fi |
| 21399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 |
| 21400 | $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; } |
| 21401 | case "$gl_cv_func_pthread_sigmask_return_works" in |
| 21402 | *no) |
| 21403 | REPLACE_PTHREAD_SIGMASK=1 |
| 21404 | |
| 21405 | $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h |
| 21406 | |
| 21407 | ;; |
| 21408 | esac |
| 21409 | |
| 21410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 |
| 21411 | $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; } |
| 21412 | if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then : |
| 21413 | $as_echo_n "(cached) " >&6 |
| 21414 | else |
| 21415 | |
| 21416 | case "$host_os" in |
| 21417 | irix*) |
| 21418 | gl_cv_func_pthread_sigmask_unblock_works="guessing no";; |
| 21419 | *) |
| 21420 | gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; |
| 21421 | esac |
| 21422 | gl_save_LIBS="$LIBS" |
| 21423 | LIBS="$LIBS $LIBMULTITHREAD" |
| 21424 | if test "$cross_compiling" = yes; then : |
| 21425 | : |
| 21426 | else |
| 21427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21428 | /* end confdefs.h. */ |
| 21429 | |
| 21430 | #include <pthread.h> |
| 21431 | #include <signal.h> |
| 21432 | #include <stdio.h> |
| 21433 | #include <stdlib.h> |
| 21434 | #include <unistd.h> |
| 21435 | static volatile int sigint_occurred; |
| 21436 | static void |
| 21437 | sigint_handler (int sig) |
| 21438 | { |
| 21439 | sigint_occurred++; |
| 21440 | } |
| 21441 | int main () |
| 21442 | { |
| 21443 | sigset_t set; |
| 21444 | int pid = getpid (); |
| 21445 | char command[80]; |
| 21446 | signal (SIGINT, sigint_handler); |
| 21447 | sigemptyset (&set); |
| 21448 | sigaddset (&set, SIGINT); |
| 21449 | if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) |
| 21450 | return 1; |
| 21451 | sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); |
| 21452 | if (!(system (command) == 0)) |
| 21453 | return 2; |
| 21454 | sleep (2); |
| 21455 | if (!(sigint_occurred == 0)) |
| 21456 | return 3; |
| 21457 | if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) |
| 21458 | return 4; |
| 21459 | if (!(sigint_occurred == 1)) /* This fails on IRIX. */ |
| 21460 | return 5; |
| 21461 | return 0; |
| 21462 | } |
| 21463 | _ACEOF |
| 21464 | if ac_fn_c_try_run "$LINENO"; then : |
| 21465 | : |
| 21466 | else |
| 21467 | gl_cv_func_pthread_sigmask_unblock_works=no |
| 21468 | fi |
| 21469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21470 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21471 | fi |
| 21472 | |
| 21473 | LIBS="$gl_save_LIBS" |
| 21474 | |
| 21475 | fi |
| 21476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 |
| 21477 | $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } |
| 21478 | case "$gl_cv_func_pthread_sigmask_unblock_works" in |
| 21479 | *no) |
| 21480 | REPLACE_PTHREAD_SIGMASK=1 |
| 21481 | |
| 21482 | $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h |
| 21483 | |
| 21484 | ;; |
| 21485 | esac |
| 21486 | fi |
| 21487 | |
| 21488 | if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then |
| 21489 | |
| 21490 | |
| 21491 | |
| 21492 | |
| 21493 | |
| 21494 | |
| 21495 | |
| 21496 | |
| 21497 | gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext" |
| 21498 | |
| 21499 | |
| 21500 | if test $HAVE_PTHREAD_SIGMASK = 1; then |
| 21501 | |
| 21502 | $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
| 21503 | |
| 21504 | fi |
| 21505 | |
| 21506 | fi |
| 21507 | |
| 21508 | |
| 21509 | |
| 21510 | |
| 21511 | |
| 21512 | GNULIB_PTHREAD_SIGMASK=1 |
| 21513 | |
| 21514 | |
| 21515 | |
| 21516 | |
| 21517 | |
| 21518 | |
| 21519 | |
| 21520 | |
| 21521 | if test $ac_cv_func_readlink = no; then |
| 21522 | HAVE_READLINK=0 |
| 21523 | else |
| 21524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 |
| 21525 | $as_echo_n "checking whether readlink signature is correct... " >&6; } |
| 21526 | if test "${gl_cv_decl_readlink_works+set}" = set; then : |
| 21527 | $as_echo_n "(cached) " >&6 |
| 21528 | else |
| 21529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21530 | /* end confdefs.h. */ |
| 21531 | #include <unistd.h> |
| 21532 | /* Cause compilation failure if original declaration has wrong type. */ |
| 21533 | ssize_t readlink (const char *, char *, size_t); |
| 21534 | int |
| 21535 | main () |
| 21536 | { |
| 21537 | |
| 21538 | ; |
| 21539 | return 0; |
| 21540 | } |
| 21541 | _ACEOF |
| 21542 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21543 | gl_cv_decl_readlink_works=yes |
| 21544 | else |
| 21545 | gl_cv_decl_readlink_works=no |
| 21546 | fi |
| 21547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21548 | fi |
| 21549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 |
| 21550 | $as_echo "$gl_cv_decl_readlink_works" >&6; } |
| 21551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 |
| 21552 | $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } |
| 21553 | if test "${gl_cv_func_readlink_works+set}" = set; then : |
| 21554 | $as_echo_n "(cached) " >&6 |
| 21555 | else |
| 21556 | # We have readlink, so assume ln -s works. |
| 21557 | ln -s conftest.no-such conftest.link |
| 21558 | ln -s conftest.link conftest.lnk2 |
| 21559 | if test "$cross_compiling" = yes; then : |
| 21560 | case "$host_os" in |
| 21561 | # Guess yes on glibc systems. |
| 21562 | *-gnu*) gl_cv_func_readlink_works="guessing yes" ;; |
| 21563 | # If we don't know, assume the worst. |
| 21564 | *) gl_cv_func_readlink_works="guessing no" ;; |
| 21565 | esac |
| 21566 | |
| 21567 | else |
| 21568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21569 | /* end confdefs.h. */ |
| 21570 | #include <unistd.h> |
| 21571 | |
| 21572 | int |
| 21573 | main () |
| 21574 | { |
| 21575 | char buf[20]; |
| 21576 | return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; |
| 21577 | ; |
| 21578 | return 0; |
| 21579 | } |
| 21580 | _ACEOF |
| 21581 | if ac_fn_c_try_run "$LINENO"; then : |
| 21582 | gl_cv_func_readlink_works=yes |
| 21583 | else |
| 21584 | gl_cv_func_readlink_works=no |
| 21585 | fi |
| 21586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21587 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21588 | fi |
| 21589 | |
| 21590 | rm -f conftest.link conftest.lnk2 |
| 21591 | fi |
| 21592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 |
| 21593 | $as_echo "$gl_cv_func_readlink_works" >&6; } |
| 21594 | case "$gl_cv_func_readlink_works" in |
| 21595 | *yes) |
| 21596 | if test "$gl_cv_decl_readlink_works" != yes; then |
| 21597 | REPLACE_READLINK=1 |
| 21598 | fi |
| 21599 | ;; |
| 21600 | *) |
| 21601 | |
| 21602 | $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 21603 | |
| 21604 | REPLACE_READLINK=1 |
| 21605 | ;; |
| 21606 | esac |
| 21607 | fi |
| 21608 | |
| 21609 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then |
| 21610 | |
| 21611 | |
| 21612 | |
| 21613 | |
| 21614 | |
| 21615 | |
| 21616 | |
| 21617 | |
| 21618 | gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" |
| 21619 | |
| 21620 | |
| 21621 | : |
| 21622 | |
| 21623 | fi |
| 21624 | |
| 21625 | |
| 21626 | |
| 21627 | |
| 21628 | |
| 21629 | GNULIB_READLINK=1 |
| 21630 | |
| 21631 | |
| 21632 | |
| 21633 | |
| 21634 | |
| 21635 | |
| 21636 | |
| 21637 | |
| 21638 | |
| 21639 | |
| 21640 | |
| 21641 | |
| 21642 | |
| 21643 | |
| 21644 | |
| 21645 | |
| 21646 | if test $gl_cv_have_include_next = yes; then |
| 21647 | gl_cv_next_signal_h='<'signal.h'>' |
| 21648 | else |
| 21649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 |
| 21650 | $as_echo_n "checking absolute name of <signal.h>... " >&6; } |
| 21651 | if test "${gl_cv_next_signal_h+set}" = set; then : |
| 21652 | $as_echo_n "(cached) " >&6 |
| 21653 | else |
| 21654 | |
| 21655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21656 | /* end confdefs.h. */ |
| 21657 | #include <signal.h> |
| 21658 | |
| 21659 | _ACEOF |
| 21660 | case "$host_os" in |
| 21661 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 21662 | *) gl_absname_cpp="$ac_cpp" ;; |
| 21663 | esac |
| 21664 | |
| 21665 | case "$host_os" in |
| 21666 | mingw*) |
| 21667 | gl_dirsep_regex='[/\\]' |
| 21668 | ;; |
| 21669 | *) |
| 21670 | gl_dirsep_regex='\/' |
| 21671 | ;; |
| 21672 | esac |
| 21673 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 21674 | |
| 21675 | gl_header_literal_regex=`echo 'signal.h' \ |
| 21676 | | sed -e "$gl_make_literal_regex_sed"` |
| 21677 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 21678 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 21679 | s|^/[^/]|//&| |
| 21680 | p |
| 21681 | q |
| 21682 | }' |
| 21683 | gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 21684 | sed -n "$gl_absolute_header_sed"`'"' |
| 21685 | |
| 21686 | |
| 21687 | fi |
| 21688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 |
| 21689 | $as_echo "$gl_cv_next_signal_h" >&6; } |
| 21690 | fi |
| 21691 | NEXT_SIGNAL_H=$gl_cv_next_signal_h |
| 21692 | |
| 21693 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 21694 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 21695 | gl_next_as_first_directive='<'signal.h'>' |
| 21696 | else |
| 21697 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 21698 | gl_next_as_first_directive=$gl_cv_next_signal_h |
| 21699 | fi |
| 21700 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive |
| 21701 | |
| 21702 | |
| 21703 | |
| 21704 | |
| 21705 | |
| 21706 | # AIX declares sig_atomic_t to already include volatile, and C89 compilers |
| 21707 | # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. |
| 21708 | ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " |
| 21709 | #include <signal.h> |
| 21710 | |
| 21711 | " |
| 21712 | if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : |
| 21713 | |
| 21714 | else |
| 21715 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 |
| 21716 | fi |
| 21717 | |
| 21718 | |
| 21719 | |
| 21720 | |
| 21721 | |
| 21722 | |
| 21723 | |
| 21724 | ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " |
| 21725 | #include <signal.h> |
| 21726 | |
| 21727 | " |
| 21728 | if test "x$ac_cv_type_sighandler_t" = x""yes; then : |
| 21729 | |
| 21730 | else |
| 21731 | HAVE_SIGHANDLER_T=0 |
| 21732 | fi |
| 21733 | |
| 21734 | |
| 21735 | |
| 21736 | |
| 21737 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
| 21738 | /* <sys/types.h> is not needed according to POSIX, but the |
| 21739 | <sys/socket.h> in i386-unknown-freebsd4.10 and |
| 21740 | powerpc-apple-darwin5.5 required it. */ |
| 21741 | #include <sys/types.h> |
| 21742 | #if HAVE_SYS_SOCKET_H |
| 21743 | # include <sys/socket.h> |
| 21744 | #elif HAVE_WS2TCPIP_H |
| 21745 | # include <ws2tcpip.h> |
| 21746 | #endif |
| 21747 | |
| 21748 | " |
| 21749 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
| 21750 | |
| 21751 | else |
| 21752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
| 21753 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
| 21754 | if test "${gl_cv_socklen_t_equiv+set}" = set; then : |
| 21755 | $as_echo_n "(cached) " >&6 |
| 21756 | else |
| 21757 | # Systems have either "struct sockaddr *" or |
| 21758 | # "void *" as the second argument to getpeername |
| 21759 | gl_cv_socklen_t_equiv= |
| 21760 | for arg2 in "struct sockaddr" void; do |
| 21761 | for t in int size_t "unsigned int" "long int" "unsigned long int"; do |
| 21762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21763 | /* end confdefs.h. */ |
| 21764 | #include <sys/types.h> |
| 21765 | #include <sys/socket.h> |
| 21766 | |
| 21767 | int getpeername (int, $arg2 *, $t *); |
| 21768 | int |
| 21769 | main () |
| 21770 | { |
| 21771 | $t len; |
| 21772 | getpeername (0, 0, &len); |
| 21773 | ; |
| 21774 | return 0; |
| 21775 | } |
| 21776 | _ACEOF |
| 21777 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21778 | gl_cv_socklen_t_equiv="$t" |
| 21779 | fi |
| 21780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21781 | test "$gl_cv_socklen_t_equiv" != "" && break |
| 21782 | done |
| 21783 | test "$gl_cv_socklen_t_equiv" != "" && break |
| 21784 | done |
| 21785 | |
| 21786 | fi |
| 21787 | |
| 21788 | if test "$gl_cv_socklen_t_equiv" = ""; then |
| 21789 | as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
| 21790 | fi |
| 21791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 |
| 21792 | $as_echo "$gl_cv_socklen_t_equiv" >&6; } |
| 21793 | |
| 21794 | cat >>confdefs.h <<_ACEOF |
| 21795 | #define socklen_t $gl_cv_socklen_t_equiv |
| 21796 | _ACEOF |
| 21797 | |
| 21798 | fi |
| 21799 | |
| 21800 | |
| 21801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 21802 | $as_echo_n "checking for ssize_t... " >&6; } |
| 21803 | if test "${gt_cv_ssize_t+set}" = set; then : |
| 21804 | $as_echo_n "(cached) " >&6 |
| 21805 | else |
| 21806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21807 | /* end confdefs.h. */ |
| 21808 | #include <sys/types.h> |
| 21809 | int |
| 21810 | main () |
| 21811 | { |
| 21812 | int x = sizeof (ssize_t *) + sizeof (ssize_t); |
| 21813 | return !x; |
| 21814 | ; |
| 21815 | return 0; |
| 21816 | } |
| 21817 | _ACEOF |
| 21818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21819 | gt_cv_ssize_t=yes |
| 21820 | else |
| 21821 | gt_cv_ssize_t=no |
| 21822 | fi |
| 21823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21824 | fi |
| 21825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 |
| 21826 | $as_echo "$gt_cv_ssize_t" >&6; } |
| 21827 | if test $gt_cv_ssize_t = no; then |
| 21828 | |
| 21829 | $as_echo "#define ssize_t int" >>confdefs.h |
| 21830 | |
| 21831 | fi |
| 21832 | |
| 21833 | |
| 21834 | |
| 21835 | |
| 21836 | |
| 21837 | |
| 21838 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> |
| 21839 | #include <sys/stat.h> |
| 21840 | " |
| 21841 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then : |
| 21842 | |
| 21843 | cat >>confdefs.h <<_ACEOF |
| 21844 | #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 |
| 21845 | _ACEOF |
| 21846 | |
| 21847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 |
| 21848 | $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } |
| 21849 | if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then : |
| 21850 | $as_echo_n "(cached) " >&6 |
| 21851 | else |
| 21852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21853 | /* end confdefs.h. */ |
| 21854 | |
| 21855 | #include <sys/types.h> |
| 21856 | #include <sys/stat.h> |
| 21857 | #if HAVE_SYS_TIME_H |
| 21858 | # include <sys/time.h> |
| 21859 | #endif |
| 21860 | #include <time.h> |
| 21861 | struct timespec ts; |
| 21862 | struct stat st; |
| 21863 | |
| 21864 | int |
| 21865 | main () |
| 21866 | { |
| 21867 | |
| 21868 | st.st_atim = ts; |
| 21869 | |
| 21870 | ; |
| 21871 | return 0; |
| 21872 | } |
| 21873 | _ACEOF |
| 21874 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21875 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes |
| 21876 | else |
| 21877 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no |
| 21878 | fi |
| 21879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21880 | fi |
| 21881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 |
| 21882 | $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } |
| 21883 | if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then |
| 21884 | |
| 21885 | $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h |
| 21886 | |
| 21887 | fi |
| 21888 | else |
| 21889 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> |
| 21890 | #include <sys/stat.h> |
| 21891 | " |
| 21892 | if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then : |
| 21893 | |
| 21894 | cat >>confdefs.h <<_ACEOF |
| 21895 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 |
| 21896 | _ACEOF |
| 21897 | |
| 21898 | |
| 21899 | else |
| 21900 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> |
| 21901 | #include <sys/stat.h> |
| 21902 | " |
| 21903 | if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then : |
| 21904 | |
| 21905 | cat >>confdefs.h <<_ACEOF |
| 21906 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
| 21907 | _ACEOF |
| 21908 | |
| 21909 | |
| 21910 | else |
| 21911 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> |
| 21912 | #include <sys/stat.h> |
| 21913 | " |
| 21914 | if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then : |
| 21915 | |
| 21916 | cat >>confdefs.h <<_ACEOF |
| 21917 | #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 |
| 21918 | _ACEOF |
| 21919 | |
| 21920 | |
| 21921 | fi |
| 21922 | |
| 21923 | fi |
| 21924 | |
| 21925 | fi |
| 21926 | |
| 21927 | fi |
| 21928 | |
| 21929 | |
| 21930 | |
| 21931 | |
| 21932 | |
| 21933 | |
| 21934 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h> |
| 21935 | #include <sys/stat.h> |
| 21936 | " |
| 21937 | if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then : |
| 21938 | |
| 21939 | cat >>confdefs.h <<_ACEOF |
| 21940 | #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 |
| 21941 | _ACEOF |
| 21942 | |
| 21943 | |
| 21944 | else |
| 21945 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> |
| 21946 | #include <sys/stat.h> |
| 21947 | " |
| 21948 | if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then : |
| 21949 | |
| 21950 | cat >>confdefs.h <<_ACEOF |
| 21951 | #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 |
| 21952 | _ACEOF |
| 21953 | |
| 21954 | |
| 21955 | else |
| 21956 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h> |
| 21957 | #include <sys/stat.h> |
| 21958 | " |
| 21959 | if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then : |
| 21960 | |
| 21961 | cat >>confdefs.h <<_ACEOF |
| 21962 | #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 |
| 21963 | _ACEOF |
| 21964 | |
| 21965 | |
| 21966 | fi |
| 21967 | |
| 21968 | fi |
| 21969 | |
| 21970 | fi |
| 21971 | |
| 21972 | |
| 21973 | |
| 21974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 |
| 21975 | $as_echo_n "checking for working stdalign.h... " >&6; } |
| 21976 | if test "${gl_cv_header_working_stdalign_h+set}" = set; then : |
| 21977 | $as_echo_n "(cached) " >&6 |
| 21978 | else |
| 21979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21980 | /* end confdefs.h. */ |
| 21981 | #include <stdalign.h> |
| 21982 | #include <stddef.h> |
| 21983 | |
| 21984 | /* Test that alignof yields a result consistent with offsetof. |
| 21985 | This catches GCC bug 52023 |
| 21986 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ |
| 21987 | #ifdef __cplusplus |
| 21988 | template <class t> struct alignof_helper { char a; t b; }; |
| 21989 | # define ao(type) offsetof (alignof_helper<type>, b) |
| 21990 | #else |
| 21991 | # define ao(type) offsetof (struct { char a; type b; }, b) |
| 21992 | #endif |
| 21993 | char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; |
| 21994 | char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; |
| 21995 | char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; |
| 21996 | |
| 21997 | /* Test _Alignas only on platforms where gnulib can help. */ |
| 21998 | #if \ |
| 21999 | (__GNUC__ || __IBMC__ || __IBMCPP__ \ |
| 22000 | || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER) |
| 22001 | int alignas (8) alignas_int = 1; |
| 22002 | char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1]; |
| 22003 | #endif |
| 22004 | |
| 22005 | int |
| 22006 | main () |
| 22007 | { |
| 22008 | |
| 22009 | ; |
| 22010 | return 0; |
| 22011 | } |
| 22012 | _ACEOF |
| 22013 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22014 | gl_cv_header_working_stdalign_h=yes |
| 22015 | else |
| 22016 | gl_cv_header_working_stdalign_h=no |
| 22017 | fi |
| 22018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22019 | fi |
| 22020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 |
| 22021 | $as_echo "$gl_cv_header_working_stdalign_h" >&6; } |
| 22022 | |
| 22023 | if test $gl_cv_header_working_stdalign_h = yes; then |
| 22024 | STDALIGN_H='' |
| 22025 | else |
| 22026 | STDALIGN_H='stdalign.h' |
| 22027 | fi |
| 22028 | |
| 22029 | |
| 22030 | if test -n "$STDALIGN_H"; then |
| 22031 | GL_GENERATE_STDALIGN_H_TRUE= |
| 22032 | GL_GENERATE_STDALIGN_H_FALSE='#' |
| 22033 | else |
| 22034 | GL_GENERATE_STDALIGN_H_TRUE='#' |
| 22035 | GL_GENERATE_STDALIGN_H_FALSE= |
| 22036 | fi |
| 22037 | |
| 22038 | |
| 22039 | |
| 22040 | STDARG_H='' |
| 22041 | NEXT_STDARG_H='<stdarg.h>' |
| 22042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
| 22043 | $as_echo_n "checking for va_copy... " >&6; } |
| 22044 | if test "${gl_cv_func_va_copy+set}" = set; then : |
| 22045 | $as_echo_n "(cached) " >&6 |
| 22046 | else |
| 22047 | |
| 22048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22049 | /* end confdefs.h. */ |
| 22050 | #include <stdarg.h> |
| 22051 | int |
| 22052 | main () |
| 22053 | { |
| 22054 | |
| 22055 | #ifndef va_copy |
| 22056 | void (*func) (va_list, va_list) = va_copy; |
| 22057 | #endif |
| 22058 | |
| 22059 | ; |
| 22060 | return 0; |
| 22061 | } |
| 22062 | _ACEOF |
| 22063 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22064 | gl_cv_func_va_copy=yes |
| 22065 | else |
| 22066 | gl_cv_func_va_copy=no |
| 22067 | fi |
| 22068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22069 | fi |
| 22070 | |
| 22071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 |
| 22072 | $as_echo "$gl_cv_func_va_copy" >&6; } |
| 22073 | if test $gl_cv_func_va_copy = no; then |
| 22074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22075 | /* end confdefs.h. */ |
| 22076 | #if defined _AIX && !defined __GNUC__ |
| 22077 | AIX vaccine |
| 22078 | #endif |
| 22079 | |
| 22080 | _ACEOF |
| 22081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22082 | $EGREP "vaccine" >/dev/null 2>&1; then : |
| 22083 | gl_aixcc=yes |
| 22084 | else |
| 22085 | gl_aixcc=no |
| 22086 | fi |
| 22087 | rm -f conftest* |
| 22088 | |
| 22089 | if test $gl_aixcc = yes; then |
| 22090 | STDARG_H=stdarg.h |
| 22091 | |
| 22092 | |
| 22093 | |
| 22094 | |
| 22095 | |
| 22096 | |
| 22097 | |
| 22098 | |
| 22099 | if test $gl_cv_have_include_next = yes; then |
| 22100 | gl_cv_next_stdarg_h='<'stdarg.h'>' |
| 22101 | else |
| 22102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 |
| 22103 | $as_echo_n "checking absolute name of <stdarg.h>... " >&6; } |
| 22104 | if test "${gl_cv_next_stdarg_h+set}" = set; then : |
| 22105 | $as_echo_n "(cached) " >&6 |
| 22106 | else |
| 22107 | |
| 22108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22109 | /* end confdefs.h. */ |
| 22110 | #include <stdarg.h> |
| 22111 | |
| 22112 | _ACEOF |
| 22113 | case "$host_os" in |
| 22114 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22115 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22116 | esac |
| 22117 | |
| 22118 | case "$host_os" in |
| 22119 | mingw*) |
| 22120 | gl_dirsep_regex='[/\\]' |
| 22121 | ;; |
| 22122 | *) |
| 22123 | gl_dirsep_regex='\/' |
| 22124 | ;; |
| 22125 | esac |
| 22126 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22127 | |
| 22128 | gl_header_literal_regex=`echo 'stdarg.h' \ |
| 22129 | | sed -e "$gl_make_literal_regex_sed"` |
| 22130 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22131 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22132 | s|^/[^/]|//&| |
| 22133 | p |
| 22134 | q |
| 22135 | }' |
| 22136 | gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22137 | sed -n "$gl_absolute_header_sed"`'"' |
| 22138 | |
| 22139 | |
| 22140 | fi |
| 22141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 |
| 22142 | $as_echo "$gl_cv_next_stdarg_h" >&6; } |
| 22143 | fi |
| 22144 | NEXT_STDARG_H=$gl_cv_next_stdarg_h |
| 22145 | |
| 22146 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22147 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22148 | gl_next_as_first_directive='<'stdarg.h'>' |
| 22149 | else |
| 22150 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22151 | gl_next_as_first_directive=$gl_cv_next_stdarg_h |
| 22152 | fi |
| 22153 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive |
| 22154 | |
| 22155 | |
| 22156 | |
| 22157 | |
| 22158 | if test "$gl_cv_next_stdarg_h" = '""'; then |
| 22159 | gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' |
| 22160 | NEXT_STDARG_H="$gl_cv_next_stdarg_h" |
| 22161 | fi |
| 22162 | else |
| 22163 | |
| 22164 | saved_as_echo_n="$as_echo_n" |
| 22165 | as_echo_n=':' |
| 22166 | if test "${gl_cv_func___va_copy+set}" = set; then : |
| 22167 | $as_echo_n "(cached) " >&6 |
| 22168 | else |
| 22169 | |
| 22170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22171 | /* end confdefs.h. */ |
| 22172 | #include <stdarg.h> |
| 22173 | int |
| 22174 | main () |
| 22175 | { |
| 22176 | |
| 22177 | #ifndef __va_copy |
| 22178 | error, bail out |
| 22179 | #endif |
| 22180 | |
| 22181 | ; |
| 22182 | return 0; |
| 22183 | } |
| 22184 | _ACEOF |
| 22185 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22186 | gl_cv_func___va_copy=yes |
| 22187 | else |
| 22188 | gl_cv_func___va_copy=no |
| 22189 | fi |
| 22190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22191 | fi |
| 22192 | |
| 22193 | as_echo_n="$saved_as_echo_n" |
| 22194 | |
| 22195 | if test $gl_cv_func___va_copy = yes; then |
| 22196 | |
| 22197 | $as_echo "#define va_copy __va_copy" >>confdefs.h |
| 22198 | |
| 22199 | else |
| 22200 | |
| 22201 | |
| 22202 | $as_echo "#define va_copy gl_va_copy" >>confdefs.h |
| 22203 | |
| 22204 | fi |
| 22205 | fi |
| 22206 | fi |
| 22207 | |
| 22208 | if test -n "$STDARG_H"; then |
| 22209 | GL_GENERATE_STDARG_H_TRUE= |
| 22210 | GL_GENERATE_STDARG_H_FALSE='#' |
| 22211 | else |
| 22212 | GL_GENERATE_STDARG_H_TRUE='#' |
| 22213 | GL_GENERATE_STDARG_H_FALSE= |
| 22214 | fi |
| 22215 | |
| 22216 | |
| 22217 | |
| 22218 | |
| 22219 | |
| 22220 | |
| 22221 | # Define two additional variables used in the Makefile substitution. |
| 22222 | |
| 22223 | if test "$ac_cv_header_stdbool_h" = yes; then |
| 22224 | STDBOOL_H='' |
| 22225 | else |
| 22226 | STDBOOL_H='stdbool.h' |
| 22227 | fi |
| 22228 | |
| 22229 | if test -n "$STDBOOL_H"; then |
| 22230 | GL_GENERATE_STDBOOL_H_TRUE= |
| 22231 | GL_GENERATE_STDBOOL_H_FALSE='#' |
| 22232 | else |
| 22233 | GL_GENERATE_STDBOOL_H_TRUE='#' |
| 22234 | GL_GENERATE_STDBOOL_H_FALSE= |
| 22235 | fi |
| 22236 | |
| 22237 | |
| 22238 | if test "$ac_cv_type__Bool" = yes; then |
| 22239 | HAVE__BOOL=1 |
| 22240 | else |
| 22241 | HAVE__BOOL=0 |
| 22242 | fi |
| 22243 | |
| 22244 | |
| 22245 | |
| 22246 | |
| 22247 | |
| 22248 | STDDEF_H= |
| 22249 | if test $gt_cv_c_wchar_t = no; then |
| 22250 | HAVE_WCHAR_T=0 |
| 22251 | STDDEF_H=stddef.h |
| 22252 | fi |
| 22253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
| 22254 | $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } |
| 22255 | if test "${gl_cv_decl_null_works+set}" = set; then : |
| 22256 | $as_echo_n "(cached) " >&6 |
| 22257 | else |
| 22258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22259 | /* end confdefs.h. */ |
| 22260 | #include <stddef.h> |
| 22261 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
| 22262 | |
| 22263 | int |
| 22264 | main () |
| 22265 | { |
| 22266 | |
| 22267 | ; |
| 22268 | return 0; |
| 22269 | } |
| 22270 | _ACEOF |
| 22271 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22272 | gl_cv_decl_null_works=yes |
| 22273 | else |
| 22274 | gl_cv_decl_null_works=no |
| 22275 | fi |
| 22276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22277 | fi |
| 22278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
| 22279 | $as_echo "$gl_cv_decl_null_works" >&6; } |
| 22280 | if test $gl_cv_decl_null_works = no; then |
| 22281 | REPLACE_NULL=1 |
| 22282 | STDDEF_H=stddef.h |
| 22283 | fi |
| 22284 | |
| 22285 | if test -n "$STDDEF_H"; then |
| 22286 | GL_GENERATE_STDDEF_H_TRUE= |
| 22287 | GL_GENERATE_STDDEF_H_FALSE='#' |
| 22288 | else |
| 22289 | GL_GENERATE_STDDEF_H_TRUE='#' |
| 22290 | GL_GENERATE_STDDEF_H_FALSE= |
| 22291 | fi |
| 22292 | |
| 22293 | if test -n "$STDDEF_H"; then |
| 22294 | |
| 22295 | |
| 22296 | |
| 22297 | |
| 22298 | |
| 22299 | |
| 22300 | |
| 22301 | |
| 22302 | if test $gl_cv_have_include_next = yes; then |
| 22303 | gl_cv_next_stddef_h='<'stddef.h'>' |
| 22304 | else |
| 22305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 |
| 22306 | $as_echo_n "checking absolute name of <stddef.h>... " >&6; } |
| 22307 | if test "${gl_cv_next_stddef_h+set}" = set; then : |
| 22308 | $as_echo_n "(cached) " >&6 |
| 22309 | else |
| 22310 | |
| 22311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22312 | /* end confdefs.h. */ |
| 22313 | #include <stddef.h> |
| 22314 | |
| 22315 | _ACEOF |
| 22316 | case "$host_os" in |
| 22317 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22318 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22319 | esac |
| 22320 | |
| 22321 | case "$host_os" in |
| 22322 | mingw*) |
| 22323 | gl_dirsep_regex='[/\\]' |
| 22324 | ;; |
| 22325 | *) |
| 22326 | gl_dirsep_regex='\/' |
| 22327 | ;; |
| 22328 | esac |
| 22329 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22330 | |
| 22331 | gl_header_literal_regex=`echo 'stddef.h' \ |
| 22332 | | sed -e "$gl_make_literal_regex_sed"` |
| 22333 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22334 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22335 | s|^/[^/]|//&| |
| 22336 | p |
| 22337 | q |
| 22338 | }' |
| 22339 | gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22340 | sed -n "$gl_absolute_header_sed"`'"' |
| 22341 | |
| 22342 | |
| 22343 | fi |
| 22344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 22345 | $as_echo "$gl_cv_next_stddef_h" >&6; } |
| 22346 | fi |
| 22347 | NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 22348 | |
| 22349 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22350 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22351 | gl_next_as_first_directive='<'stddef.h'>' |
| 22352 | else |
| 22353 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22354 | gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 22355 | fi |
| 22356 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 22357 | |
| 22358 | |
| 22359 | |
| 22360 | |
| 22361 | fi |
| 22362 | |
| 22363 | |
| 22364 | |
| 22365 | |
| 22366 | |
| 22367 | |
| 22368 | |
| 22369 | |
| 22370 | |
| 22371 | |
| 22372 | |
| 22373 | |
| 22374 | |
| 22375 | if test $gl_cv_have_include_next = yes; then |
| 22376 | gl_cv_next_stdio_h='<'stdio.h'>' |
| 22377 | else |
| 22378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 |
| 22379 | $as_echo_n "checking absolute name of <stdio.h>... " >&6; } |
| 22380 | if test "${gl_cv_next_stdio_h+set}" = set; then : |
| 22381 | $as_echo_n "(cached) " >&6 |
| 22382 | else |
| 22383 | |
| 22384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22385 | /* end confdefs.h. */ |
| 22386 | #include <stdio.h> |
| 22387 | |
| 22388 | _ACEOF |
| 22389 | case "$host_os" in |
| 22390 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22391 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22392 | esac |
| 22393 | |
| 22394 | case "$host_os" in |
| 22395 | mingw*) |
| 22396 | gl_dirsep_regex='[/\\]' |
| 22397 | ;; |
| 22398 | *) |
| 22399 | gl_dirsep_regex='\/' |
| 22400 | ;; |
| 22401 | esac |
| 22402 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22403 | |
| 22404 | gl_header_literal_regex=`echo 'stdio.h' \ |
| 22405 | | sed -e "$gl_make_literal_regex_sed"` |
| 22406 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22407 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22408 | s|^/[^/]|//&| |
| 22409 | p |
| 22410 | q |
| 22411 | }' |
| 22412 | gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22413 | sed -n "$gl_absolute_header_sed"`'"' |
| 22414 | |
| 22415 | |
| 22416 | fi |
| 22417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 |
| 22418 | $as_echo "$gl_cv_next_stdio_h" >&6; } |
| 22419 | fi |
| 22420 | NEXT_STDIO_H=$gl_cv_next_stdio_h |
| 22421 | |
| 22422 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22423 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22424 | gl_next_as_first_directive='<'stdio.h'>' |
| 22425 | else |
| 22426 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22427 | gl_next_as_first_directive=$gl_cv_next_stdio_h |
| 22428 | fi |
| 22429 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive |
| 22430 | |
| 22431 | |
| 22432 | |
| 22433 | |
| 22434 | |
| 22435 | GNULIB_FSCANF=1 |
| 22436 | |
| 22437 | |
| 22438 | cat >>confdefs.h <<_ACEOF |
| 22439 | #define GNULIB_FSCANF 1 |
| 22440 | _ACEOF |
| 22441 | |
| 22442 | |
| 22443 | GNULIB_SCANF=1 |
| 22444 | |
| 22445 | |
| 22446 | cat >>confdefs.h <<_ACEOF |
| 22447 | #define GNULIB_SCANF 1 |
| 22448 | _ACEOF |
| 22449 | |
| 22450 | |
| 22451 | GNULIB_FGETC=1 |
| 22452 | GNULIB_GETC=1 |
| 22453 | GNULIB_GETCHAR=1 |
| 22454 | GNULIB_FGETS=1 |
| 22455 | GNULIB_FREAD=1 |
| 22456 | |
| 22457 | |
| 22458 | GNULIB_FPRINTF=1 |
| 22459 | GNULIB_PRINTF=1 |
| 22460 | GNULIB_VFPRINTF=1 |
| 22461 | GNULIB_VPRINTF=1 |
| 22462 | GNULIB_FPUTC=1 |
| 22463 | GNULIB_PUTC=1 |
| 22464 | GNULIB_PUTCHAR=1 |
| 22465 | GNULIB_FPUTS=1 |
| 22466 | GNULIB_PUTS=1 |
| 22467 | GNULIB_FWRITE=1 |
| 22468 | |
| 22469 | |
| 22470 | |
| 22471 | |
| 22472 | |
| 22473 | |
| 22474 | |
| 22475 | |
| 22476 | |
| 22477 | |
| 22478 | |
| 22479 | |
| 22480 | |
| 22481 | |
| 22482 | |
| 22483 | if test $gl_cv_have_include_next = yes; then |
| 22484 | gl_cv_next_stdlib_h='<'stdlib.h'>' |
| 22485 | else |
| 22486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 |
| 22487 | $as_echo_n "checking absolute name of <stdlib.h>... " >&6; } |
| 22488 | if test "${gl_cv_next_stdlib_h+set}" = set; then : |
| 22489 | $as_echo_n "(cached) " >&6 |
| 22490 | else |
| 22491 | |
| 22492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22493 | /* end confdefs.h. */ |
| 22494 | #include <stdlib.h> |
| 22495 | |
| 22496 | _ACEOF |
| 22497 | case "$host_os" in |
| 22498 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22499 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22500 | esac |
| 22501 | |
| 22502 | case "$host_os" in |
| 22503 | mingw*) |
| 22504 | gl_dirsep_regex='[/\\]' |
| 22505 | ;; |
| 22506 | *) |
| 22507 | gl_dirsep_regex='\/' |
| 22508 | ;; |
| 22509 | esac |
| 22510 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22511 | |
| 22512 | gl_header_literal_regex=`echo 'stdlib.h' \ |
| 22513 | | sed -e "$gl_make_literal_regex_sed"` |
| 22514 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22515 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22516 | s|^/[^/]|//&| |
| 22517 | p |
| 22518 | q |
| 22519 | }' |
| 22520 | gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22521 | sed -n "$gl_absolute_header_sed"`'"' |
| 22522 | |
| 22523 | |
| 22524 | fi |
| 22525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 |
| 22526 | $as_echo "$gl_cv_next_stdlib_h" >&6; } |
| 22527 | fi |
| 22528 | NEXT_STDLIB_H=$gl_cv_next_stdlib_h |
| 22529 | |
| 22530 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22531 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22532 | gl_next_as_first_directive='<'stdlib.h'>' |
| 22533 | else |
| 22534 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22535 | gl_next_as_first_directive=$gl_cv_next_stdlib_h |
| 22536 | fi |
| 22537 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive |
| 22538 | |
| 22539 | |
| 22540 | |
| 22541 | |
| 22542 | |
| 22543 | |
| 22544 | |
| 22545 | |
| 22546 | |
| 22547 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
| 22548 | |
| 22549 | |
| 22550 | |
| 22551 | |
| 22552 | |
| 22553 | |
| 22554 | |
| 22555 | $as_echo "#define my_strftime nstrftime" >>confdefs.h |
| 22556 | |
| 22557 | |
| 22558 | |
| 22559 | |
| 22560 | |
| 22561 | |
| 22562 | |
| 22563 | |
| 22564 | if test "$ac_cv_have_decl_strtoimax" != yes; then |
| 22565 | HAVE_DECL_STRTOIMAX=0 |
| 22566 | fi |
| 22567 | |
| 22568 | if test $ac_cv_func_strtoimax = yes; then |
| 22569 | HAVE_STRTOIMAX=1 |
| 22570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5 |
| 22571 | $as_echo_n "checking whether strtoimax works... " >&6; } |
| 22572 | if test "${gl_cv_func_strtoimax+set}" = set; then : |
| 22573 | $as_echo_n "(cached) " >&6 |
| 22574 | else |
| 22575 | if test "$cross_compiling" = yes; then : |
| 22576 | case "$host_os" in |
| 22577 | # Guess no on AIX 5. |
| 22578 | aix5*) gl_cv_func_strtoimax="guessing no" ;; |
| 22579 | # Guess yes otherwise. |
| 22580 | *) gl_cv_func_strtoimax="guessing yes" ;; |
| 22581 | esac |
| 22582 | |
| 22583 | else |
| 22584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22585 | /* end confdefs.h. */ |
| 22586 | |
| 22587 | #include <errno.h> |
| 22588 | #include <string.h> |
| 22589 | #include <inttypes.h> |
| 22590 | int main () |
| 22591 | { |
| 22592 | if (sizeof (intmax_t) > sizeof (int)) |
| 22593 | { |
| 22594 | const char *s = "4294967295"; |
| 22595 | char *p; |
| 22596 | intmax_t res; |
| 22597 | errno = 0; |
| 22598 | res = strtoimax (s, &p, 10); |
| 22599 | if (p != s + strlen (s)) |
| 22600 | return 1; |
| 22601 | if (errno != 0) |
| 22602 | return 2; |
| 22603 | if (res != (intmax_t) 65535 * (intmax_t) 65537) |
| 22604 | return 3; |
| 22605 | } |
| 22606 | else |
| 22607 | { |
| 22608 | const char *s = "2147483647"; |
| 22609 | char *p; |
| 22610 | intmax_t res; |
| 22611 | errno = 0; |
| 22612 | res = strtoimax (s, &p, 10); |
| 22613 | if (p != s + strlen (s)) |
| 22614 | return 1; |
| 22615 | if (errno != 0) |
| 22616 | return 2; |
| 22617 | if (res != 2147483647) |
| 22618 | return 3; |
| 22619 | } |
| 22620 | return 0; |
| 22621 | } |
| 22622 | |
| 22623 | _ACEOF |
| 22624 | if ac_fn_c_try_run "$LINENO"; then : |
| 22625 | gl_cv_func_strtoimax=yes |
| 22626 | else |
| 22627 | gl_cv_func_strtoimax=no |
| 22628 | fi |
| 22629 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22630 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22631 | fi |
| 22632 | |
| 22633 | |
| 22634 | fi |
| 22635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5 |
| 22636 | $as_echo "$gl_cv_func_strtoimax" >&6; } |
| 22637 | case "$gl_cv_func_strtoimax" in |
| 22638 | *no) REPLACE_STRTOIMAX=1 ;; |
| 22639 | esac |
| 22640 | else |
| 22641 | HAVE_STRTOIMAX=0 |
| 22642 | fi |
| 22643 | |
| 22644 | if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then |
| 22645 | |
| 22646 | |
| 22647 | |
| 22648 | |
| 22649 | |
| 22650 | |
| 22651 | |
| 22652 | |
| 22653 | gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext" |
| 22654 | |
| 22655 | |
| 22656 | ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" |
| 22657 | if test "x$ac_cv_have_decl_strtoll" = x""yes; then : |
| 22658 | ac_have_decl=1 |
| 22659 | else |
| 22660 | ac_have_decl=0 |
| 22661 | fi |
| 22662 | |
| 22663 | cat >>confdefs.h <<_ACEOF |
| 22664 | #define HAVE_DECL_STRTOLL $ac_have_decl |
| 22665 | _ACEOF |
| 22666 | |
| 22667 | |
| 22668 | |
| 22669 | fi |
| 22670 | |
| 22671 | |
| 22672 | |
| 22673 | |
| 22674 | |
| 22675 | GNULIB_STRTOIMAX=1 |
| 22676 | |
| 22677 | |
| 22678 | |
| 22679 | |
| 22680 | |
| 22681 | |
| 22682 | |
| 22683 | |
| 22684 | |
| 22685 | if test "$ac_cv_have_decl_strtoumax" != yes; then |
| 22686 | HAVE_DECL_STRTOUMAX=0 |
| 22687 | fi |
| 22688 | |
| 22689 | if test $ac_cv_func_strtoumax = no; then |
| 22690 | |
| 22691 | |
| 22692 | |
| 22693 | |
| 22694 | |
| 22695 | |
| 22696 | |
| 22697 | |
| 22698 | gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext" |
| 22699 | |
| 22700 | |
| 22701 | ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" |
| 22702 | if test "x$ac_cv_have_decl_strtoull" = x""yes; then : |
| 22703 | ac_have_decl=1 |
| 22704 | else |
| 22705 | ac_have_decl=0 |
| 22706 | fi |
| 22707 | |
| 22708 | cat >>confdefs.h <<_ACEOF |
| 22709 | #define HAVE_DECL_STRTOULL $ac_have_decl |
| 22710 | _ACEOF |
| 22711 | |
| 22712 | |
| 22713 | |
| 22714 | fi |
| 22715 | |
| 22716 | |
| 22717 | |
| 22718 | |
| 22719 | |
| 22720 | GNULIB_STRTOUMAX=1 |
| 22721 | |
| 22722 | |
| 22723 | |
| 22724 | |
| 22725 | |
| 22726 | |
| 22727 | |
| 22728 | if test $ac_cv_func_symlink = no; then |
| 22729 | HAVE_SYMLINK=0 |
| 22730 | else |
| 22731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 |
| 22732 | $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } |
| 22733 | if test "${gl_cv_func_symlink_works+set}" = set; then : |
| 22734 | $as_echo_n "(cached) " >&6 |
| 22735 | else |
| 22736 | if test "$cross_compiling" = yes; then : |
| 22737 | case "$host_os" in |
| 22738 | # Guess yes on glibc systems. |
| 22739 | *-gnu*) gl_cv_func_symlink_works="guessing yes" ;; |
| 22740 | # If we don't know, assume the worst. |
| 22741 | *) gl_cv_func_symlink_works="guessing no" ;; |
| 22742 | esac |
| 22743 | |
| 22744 | else |
| 22745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22746 | /* end confdefs.h. */ |
| 22747 | #include <unistd.h> |
| 22748 | |
| 22749 | int |
| 22750 | main () |
| 22751 | { |
| 22752 | int result = 0; |
| 22753 | if (!symlink ("a", "conftest.link/")) |
| 22754 | result |= 1; |
| 22755 | if (symlink ("conftest.f", "conftest.lnk2")) |
| 22756 | result |= 2; |
| 22757 | else if (!symlink ("a", "conftest.lnk2/")) |
| 22758 | result |= 4; |
| 22759 | return result; |
| 22760 | |
| 22761 | ; |
| 22762 | return 0; |
| 22763 | } |
| 22764 | _ACEOF |
| 22765 | if ac_fn_c_try_run "$LINENO"; then : |
| 22766 | gl_cv_func_symlink_works=yes |
| 22767 | else |
| 22768 | gl_cv_func_symlink_works=no |
| 22769 | fi |
| 22770 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22771 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22772 | fi |
| 22773 | |
| 22774 | rm -f conftest.f conftest.link conftest.lnk2 |
| 22775 | fi |
| 22776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 |
| 22777 | $as_echo "$gl_cv_func_symlink_works" >&6; } |
| 22778 | case "$gl_cv_func_symlink_works" in |
| 22779 | *yes) ;; |
| 22780 | *) |
| 22781 | REPLACE_SYMLINK=1 |
| 22782 | ;; |
| 22783 | esac |
| 22784 | fi |
| 22785 | |
| 22786 | if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then |
| 22787 | |
| 22788 | |
| 22789 | |
| 22790 | |
| 22791 | |
| 22792 | |
| 22793 | |
| 22794 | |
| 22795 | gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext" |
| 22796 | |
| 22797 | fi |
| 22798 | |
| 22799 | |
| 22800 | |
| 22801 | |
| 22802 | |
| 22803 | GNULIB_SYMLINK=1 |
| 22804 | |
| 22805 | |
| 22806 | |
| 22807 | |
| 22808 | |
| 22809 | |
| 22810 | |
| 22811 | |
| 22812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 |
| 22813 | $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; } |
| 22814 | if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then : |
| 22815 | $as_echo_n "(cached) " >&6 |
| 22816 | else |
| 22817 | |
| 22818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22819 | /* end confdefs.h. */ |
| 22820 | #include <sys/select.h> |
| 22821 | int |
| 22822 | main () |
| 22823 | { |
| 22824 | struct timeval b; |
| 22825 | ; |
| 22826 | return 0; |
| 22827 | } |
| 22828 | _ACEOF |
| 22829 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22830 | gl_cv_header_sys_select_h_selfcontained=yes |
| 22831 | else |
| 22832 | gl_cv_header_sys_select_h_selfcontained=no |
| 22833 | fi |
| 22834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22835 | if test $gl_cv_header_sys_select_h_selfcontained = yes; then |
| 22836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22837 | /* end confdefs.h. */ |
| 22838 | #include <sys/select.h> |
| 22839 | int |
| 22840 | main () |
| 22841 | { |
| 22842 | int memset; int bzero; |
| 22843 | ; |
| 22844 | return 0; |
| 22845 | } |
| 22846 | |
| 22847 | _ACEOF |
| 22848 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22850 | /* end confdefs.h. */ |
| 22851 | #include <sys/select.h> |
| 22852 | int |
| 22853 | main () |
| 22854 | { |
| 22855 | |
| 22856 | #undef memset |
| 22857 | #define memset nonexistent_memset |
| 22858 | extern |
| 22859 | #ifdef __cplusplus |
| 22860 | "C" |
| 22861 | #endif |
| 22862 | void *memset (void *, int, unsigned long); |
| 22863 | #undef bzero |
| 22864 | #define bzero nonexistent_bzero |
| 22865 | extern |
| 22866 | #ifdef __cplusplus |
| 22867 | "C" |
| 22868 | #endif |
| 22869 | void bzero (void *, unsigned long); |
| 22870 | fd_set fds; |
| 22871 | FD_ZERO (&fds); |
| 22872 | |
| 22873 | ; |
| 22874 | return 0; |
| 22875 | } |
| 22876 | |
| 22877 | _ACEOF |
| 22878 | if ac_fn_c_try_link "$LINENO"; then : |
| 22879 | |
| 22880 | else |
| 22881 | gl_cv_header_sys_select_h_selfcontained=no |
| 22882 | fi |
| 22883 | rm -f core conftest.err conftest.$ac_objext \ |
| 22884 | conftest$ac_exeext conftest.$ac_ext |
| 22885 | |
| 22886 | fi |
| 22887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22888 | fi |
| 22889 | |
| 22890 | fi |
| 22891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 |
| 22892 | $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } |
| 22893 | |
| 22894 | |
| 22895 | |
| 22896 | |
| 22897 | |
| 22898 | |
| 22899 | |
| 22900 | |
| 22901 | |
| 22902 | if test $gl_cv_have_include_next = yes; then |
| 22903 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 22904 | else |
| 22905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 |
| 22906 | $as_echo_n "checking absolute name of <sys/select.h>... " >&6; } |
| 22907 | if test "${gl_cv_next_sys_select_h+set}" = set; then : |
| 22908 | $as_echo_n "(cached) " >&6 |
| 22909 | else |
| 22910 | |
| 22911 | if test $ac_cv_header_sys_select_h = yes; then |
| 22912 | |
| 22913 | |
| 22914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22915 | /* end confdefs.h. */ |
| 22916 | #include <sys/select.h> |
| 22917 | |
| 22918 | _ACEOF |
| 22919 | case "$host_os" in |
| 22920 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22921 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22922 | esac |
| 22923 | |
| 22924 | case "$host_os" in |
| 22925 | mingw*) |
| 22926 | gl_dirsep_regex='[/\\]' |
| 22927 | ;; |
| 22928 | *) |
| 22929 | gl_dirsep_regex='\/' |
| 22930 | ;; |
| 22931 | esac |
| 22932 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22933 | |
| 22934 | gl_header_literal_regex=`echo 'sys/select.h' \ |
| 22935 | | sed -e "$gl_make_literal_regex_sed"` |
| 22936 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22937 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22938 | s|^/[^/]|//&| |
| 22939 | p |
| 22940 | q |
| 22941 | }' |
| 22942 | gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22943 | sed -n "$gl_absolute_header_sed"`'"' |
| 22944 | else |
| 22945 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 22946 | fi |
| 22947 | |
| 22948 | |
| 22949 | fi |
| 22950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 |
| 22951 | $as_echo "$gl_cv_next_sys_select_h" >&6; } |
| 22952 | fi |
| 22953 | NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h |
| 22954 | |
| 22955 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22956 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22957 | gl_next_as_first_directive='<'sys/select.h'>' |
| 22958 | else |
| 22959 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22960 | gl_next_as_first_directive=$gl_cv_next_sys_select_h |
| 22961 | fi |
| 22962 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive |
| 22963 | |
| 22964 | |
| 22965 | |
| 22966 | |
| 22967 | if test $ac_cv_header_sys_select_h = yes; then |
| 22968 | HAVE_SYS_SELECT_H=1 |
| 22969 | else |
| 22970 | HAVE_SYS_SELECT_H=0 |
| 22971 | fi |
| 22972 | |
| 22973 | |
| 22974 | |
| 22975 | |
| 22976 | |
| 22977 | if test $ac_cv_header_sys_socket_h != yes; then |
| 22978 | for ac_header in winsock2.h |
| 22979 | do : |
| 22980 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 22981 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 22982 | cat >>confdefs.h <<_ACEOF |
| 22983 | #define HAVE_WINSOCK2_H 1 |
| 22984 | _ACEOF |
| 22985 | |
| 22986 | fi |
| 22987 | |
| 22988 | done |
| 22989 | |
| 22990 | fi |
| 22991 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 22992 | HAVE_WINSOCK2_H=1 |
| 22993 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 22994 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 22995 | else |
| 22996 | HAVE_WINSOCK2_H=0 |
| 22997 | fi |
| 22998 | |
| 22999 | |
| 23000 | |
| 23001 | |
| 23002 | |
| 23003 | |
| 23004 | |
| 23005 | |
| 23006 | |
| 23007 | |
| 23008 | |
| 23009 | |
| 23010 | |
| 23011 | |
| 23012 | |
| 23013 | |
| 23014 | |
| 23015 | |
| 23016 | |
| 23017 | |
| 23018 | |
| 23019 | |
| 23020 | if test $gl_cv_have_include_next = yes; then |
| 23021 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 23022 | else |
| 23023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 23024 | $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } |
| 23025 | if test "${gl_cv_next_sys_stat_h+set}" = set; then : |
| 23026 | $as_echo_n "(cached) " >&6 |
| 23027 | else |
| 23028 | |
| 23029 | if test $ac_cv_header_sys_stat_h = yes; then |
| 23030 | |
| 23031 | |
| 23032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23033 | /* end confdefs.h. */ |
| 23034 | #include <sys/stat.h> |
| 23035 | |
| 23036 | _ACEOF |
| 23037 | case "$host_os" in |
| 23038 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23039 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23040 | esac |
| 23041 | |
| 23042 | case "$host_os" in |
| 23043 | mingw*) |
| 23044 | gl_dirsep_regex='[/\\]' |
| 23045 | ;; |
| 23046 | *) |
| 23047 | gl_dirsep_regex='\/' |
| 23048 | ;; |
| 23049 | esac |
| 23050 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23051 | |
| 23052 | gl_header_literal_regex=`echo 'sys/stat.h' \ |
| 23053 | | sed -e "$gl_make_literal_regex_sed"` |
| 23054 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23055 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23056 | s|^/[^/]|//&| |
| 23057 | p |
| 23058 | q |
| 23059 | }' |
| 23060 | gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23061 | sed -n "$gl_absolute_header_sed"`'"' |
| 23062 | else |
| 23063 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 23064 | fi |
| 23065 | |
| 23066 | |
| 23067 | fi |
| 23068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 23069 | $as_echo "$gl_cv_next_sys_stat_h" >&6; } |
| 23070 | fi |
| 23071 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 23072 | |
| 23073 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23074 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23075 | gl_next_as_first_directive='<'sys/stat.h'>' |
| 23076 | else |
| 23077 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23078 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 23079 | fi |
| 23080 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 23081 | |
| 23082 | |
| 23083 | |
| 23084 | |
| 23085 | |
| 23086 | |
| 23087 | |
| 23088 | |
| 23089 | |
| 23090 | |
| 23091 | |
| 23092 | if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
| 23093 | |
| 23094 | $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h |
| 23095 | |
| 23096 | fi |
| 23097 | |
| 23098 | ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 23099 | #include <sys/stat.h> |
| 23100 | " |
| 23101 | if test "x$ac_cv_type_nlink_t" = x""yes; then : |
| 23102 | |
| 23103 | else |
| 23104 | |
| 23105 | $as_echo "#define nlink_t int" >>confdefs.h |
| 23106 | |
| 23107 | fi |
| 23108 | |
| 23109 | |
| 23110 | |
| 23111 | |
| 23112 | |
| 23113 | |
| 23114 | |
| 23115 | |
| 23116 | |
| 23117 | |
| 23118 | |
| 23119 | |
| 23120 | |
| 23121 | |
| 23122 | |
| 23123 | |
| 23124 | |
| 23125 | |
| 23126 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h> |
| 23127 | " |
| 23128 | if test "x$ac_cv_have_decl_localtime_r" = x""yes; then : |
| 23129 | ac_have_decl=1 |
| 23130 | else |
| 23131 | ac_have_decl=0 |
| 23132 | fi |
| 23133 | |
| 23134 | cat >>confdefs.h <<_ACEOF |
| 23135 | #define HAVE_DECL_LOCALTIME_R $ac_have_decl |
| 23136 | _ACEOF |
| 23137 | |
| 23138 | if test $ac_cv_have_decl_localtime_r = no; then |
| 23139 | HAVE_DECL_LOCALTIME_R=0 |
| 23140 | fi |
| 23141 | |
| 23142 | |
| 23143 | if test $ac_cv_func_localtime_r = yes; then |
| 23144 | HAVE_LOCALTIME_R=1 |
| 23145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 |
| 23146 | $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } |
| 23147 | if test "${gl_cv_time_r_posix+set}" = set; then : |
| 23148 | $as_echo_n "(cached) " >&6 |
| 23149 | else |
| 23150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23151 | /* end confdefs.h. */ |
| 23152 | #include <time.h> |
| 23153 | int |
| 23154 | main () |
| 23155 | { |
| 23156 | /* We don't need to append 'restrict's to the argument types, |
| 23157 | even though the POSIX signature has the 'restrict's, |
| 23158 | since C99 says they can't affect type compatibility. */ |
| 23159 | struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; |
| 23160 | if (ptr) return 0; |
| 23161 | /* Check the return type is a pointer. |
| 23162 | On HP-UX 10 it is 'int'. */ |
| 23163 | *localtime_r (0, 0); |
| 23164 | ; |
| 23165 | return 0; |
| 23166 | } |
| 23167 | |
| 23168 | _ACEOF |
| 23169 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23170 | gl_cv_time_r_posix=yes |
| 23171 | else |
| 23172 | gl_cv_time_r_posix=no |
| 23173 | fi |
| 23174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23175 | |
| 23176 | fi |
| 23177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 |
| 23178 | $as_echo "$gl_cv_time_r_posix" >&6; } |
| 23179 | if test $gl_cv_time_r_posix = yes; then |
| 23180 | REPLACE_LOCALTIME_R=0 |
| 23181 | else |
| 23182 | REPLACE_LOCALTIME_R=1 |
| 23183 | fi |
| 23184 | else |
| 23185 | HAVE_LOCALTIME_R=0 |
| 23186 | fi |
| 23187 | |
| 23188 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then |
| 23189 | |
| 23190 | |
| 23191 | |
| 23192 | |
| 23193 | |
| 23194 | |
| 23195 | |
| 23196 | |
| 23197 | gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext" |
| 23198 | |
| 23199 | |
| 23200 | : |
| 23201 | |
| 23202 | fi |
| 23203 | |
| 23204 | |
| 23205 | |
| 23206 | |
| 23207 | |
| 23208 | GNULIB_TIME_R=1 |
| 23209 | |
| 23210 | |
| 23211 | |
| 23212 | |
| 23213 | |
| 23214 | |
| 23215 | |
| 23216 | |
| 23217 | |
| 23218 | |
| 23219 | |
| 23220 | |
| 23221 | |
| 23222 | |
| 23223 | |
| 23224 | |
| 23225 | |
| 23226 | |
| 23227 | |
| 23228 | |
| 23229 | |
| 23230 | if test $gl_cv_have_include_next = yes; then |
| 23231 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 23232 | else |
| 23233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 |
| 23234 | $as_echo_n "checking absolute name of <unistd.h>... " >&6; } |
| 23235 | if test "${gl_cv_next_unistd_h+set}" = set; then : |
| 23236 | $as_echo_n "(cached) " >&6 |
| 23237 | else |
| 23238 | |
| 23239 | if test $ac_cv_header_unistd_h = yes; then |
| 23240 | |
| 23241 | |
| 23242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23243 | /* end confdefs.h. */ |
| 23244 | #include <unistd.h> |
| 23245 | |
| 23246 | _ACEOF |
| 23247 | case "$host_os" in |
| 23248 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23249 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23250 | esac |
| 23251 | |
| 23252 | case "$host_os" in |
| 23253 | mingw*) |
| 23254 | gl_dirsep_regex='[/\\]' |
| 23255 | ;; |
| 23256 | *) |
| 23257 | gl_dirsep_regex='\/' |
| 23258 | ;; |
| 23259 | esac |
| 23260 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23261 | |
| 23262 | gl_header_literal_regex=`echo 'unistd.h' \ |
| 23263 | | sed -e "$gl_make_literal_regex_sed"` |
| 23264 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23265 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23266 | s|^/[^/]|//&| |
| 23267 | p |
| 23268 | q |
| 23269 | }' |
| 23270 | gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23271 | sed -n "$gl_absolute_header_sed"`'"' |
| 23272 | else |
| 23273 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 23274 | fi |
| 23275 | |
| 23276 | |
| 23277 | fi |
| 23278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 |
| 23279 | $as_echo "$gl_cv_next_unistd_h" >&6; } |
| 23280 | fi |
| 23281 | NEXT_UNISTD_H=$gl_cv_next_unistd_h |
| 23282 | |
| 23283 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23284 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23285 | gl_next_as_first_directive='<'unistd.h'>' |
| 23286 | else |
| 23287 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23288 | gl_next_as_first_directive=$gl_cv_next_unistd_h |
| 23289 | fi |
| 23290 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive |
| 23291 | |
| 23292 | |
| 23293 | |
| 23294 | |
| 23295 | if test $ac_cv_header_unistd_h = yes; then |
| 23296 | HAVE_UNISTD_H=1 |
| 23297 | else |
| 23298 | HAVE_UNISTD_H=0 |
| 23299 | fi |
| 23300 | |
| 23301 | |
| 23302 | |
| 23303 | |
| 23304 | |
| 23305 | |
| 23306 | |
| 23307 | |
| 23308 | |
| 23309 | |
| 23310 | |
| 23311 | |
| 23312 | |
| 23313 | |
| 23314 | if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then |
| 23315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5 |
| 23316 | $as_echo_n "checking whether futimesat handles NULL file... " >&6; } |
| 23317 | if test "${gl_cv_func_futimesat_works+set}" = set; then : |
| 23318 | $as_echo_n "(cached) " >&6 |
| 23319 | else |
| 23320 | touch conftest.file |
| 23321 | if test "$cross_compiling" = yes; then : |
| 23322 | case "$host_os" in |
| 23323 | # Guess yes on glibc systems. |
| 23324 | *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;; |
| 23325 | # If we don't know, assume the worst. |
| 23326 | *) gl_cv_func_futimesat_works="guessing no" ;; |
| 23327 | esac |
| 23328 | |
| 23329 | else |
| 23330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23331 | /* end confdefs.h. */ |
| 23332 | |
| 23333 | #include <stddef.h> |
| 23334 | #include <sys/times.h> |
| 23335 | #include <fcntl.h> |
| 23336 | |
| 23337 | int |
| 23338 | main () |
| 23339 | { |
| 23340 | int fd = open ("conftest.file", O_RDWR); |
| 23341 | if (fd < 0) return 1; |
| 23342 | if (futimesat (fd, NULL, NULL)) return 2; |
| 23343 | |
| 23344 | ; |
| 23345 | return 0; |
| 23346 | } |
| 23347 | _ACEOF |
| 23348 | if ac_fn_c_try_run "$LINENO"; then : |
| 23349 | gl_cv_func_futimesat_works=yes |
| 23350 | else |
| 23351 | gl_cv_func_futimesat_works=no |
| 23352 | fi |
| 23353 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23354 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23355 | fi |
| 23356 | |
| 23357 | rm -f conftest.file |
| 23358 | fi |
| 23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5 |
| 23360 | $as_echo "$gl_cv_func_futimesat_works" >&6; } |
| 23361 | case "$gl_cv_func_futimesat_works" in |
| 23362 | *yes) ;; |
| 23363 | *) |
| 23364 | |
| 23365 | $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h |
| 23366 | |
| 23367 | ;; |
| 23368 | esac |
| 23369 | fi |
| 23370 | |
| 23371 | gl_gnulib_enabled_dosname=false |
| 23372 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false |
| 23373 | gl_gnulib_enabled_pathmax=false |
| 23374 | gl_gnulib_enabled_stat=false |
| 23375 | gl_gnulib_enabled_strtoll=false |
| 23376 | gl_gnulib_enabled_strtoull=false |
| 23377 | gl_gnulib_enabled_verify=false |
| 23378 | func_gl_gnulib_m4code_dosname () |
| 23379 | { |
| 23380 | if ! $gl_gnulib_enabled_dosname; then |
| 23381 | gl_gnulib_enabled_dosname=true |
| 23382 | fi |
| 23383 | } |
| 23384 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 () |
| 23385 | { |
| 23386 | if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then |
| 23387 | |
| 23388 | |
| 23389 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true |
| 23390 | fi |
| 23391 | } |
| 23392 | func_gl_gnulib_m4code_pathmax () |
| 23393 | { |
| 23394 | if ! $gl_gnulib_enabled_pathmax; then |
| 23395 | |
| 23396 | |
| 23397 | |
| 23398 | gl_gnulib_enabled_pathmax=true |
| 23399 | fi |
| 23400 | } |
| 23401 | func_gl_gnulib_m4code_stat () |
| 23402 | { |
| 23403 | if ! $gl_gnulib_enabled_stat; then |
| 23404 | |
| 23405 | |
| 23406 | |
| 23407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 |
| 23408 | $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } |
| 23409 | if test "${gl_cv_func_stat_dir_slash+set}" = set; then : |
| 23410 | $as_echo_n "(cached) " >&6 |
| 23411 | else |
| 23412 | if test "$cross_compiling" = yes; then : |
| 23413 | case $host_os in |
| 23414 | mingw*) gl_cv_func_stat_dir_slash="guessing no";; |
| 23415 | *) gl_cv_func_stat_dir_slash="guessing yes";; |
| 23416 | esac |
| 23417 | else |
| 23418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23419 | /* end confdefs.h. */ |
| 23420 | #include <sys/stat.h> |
| 23421 | |
| 23422 | int |
| 23423 | main () |
| 23424 | { |
| 23425 | struct stat st; return stat (".", &st) != stat ("./", &st); |
| 23426 | ; |
| 23427 | return 0; |
| 23428 | } |
| 23429 | _ACEOF |
| 23430 | if ac_fn_c_try_run "$LINENO"; then : |
| 23431 | gl_cv_func_stat_dir_slash=yes |
| 23432 | else |
| 23433 | gl_cv_func_stat_dir_slash=no |
| 23434 | fi |
| 23435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23436 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23437 | fi |
| 23438 | |
| 23439 | fi |
| 23440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 |
| 23441 | $as_echo "$gl_cv_func_stat_dir_slash" >&6; } |
| 23442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 |
| 23443 | $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } |
| 23444 | if test "${gl_cv_func_stat_file_slash+set}" = set; then : |
| 23445 | $as_echo_n "(cached) " >&6 |
| 23446 | else |
| 23447 | touch conftest.tmp |
| 23448 | # Assume that if we have lstat, we can also check symlinks. |
| 23449 | if test $ac_cv_func_lstat = yes; then |
| 23450 | ln -s conftest.tmp conftest.lnk |
| 23451 | fi |
| 23452 | if test "$cross_compiling" = yes; then : |
| 23453 | case "$host_os" in |
| 23454 | # Guess yes on glibc systems. |
| 23455 | *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; |
| 23456 | # If we don't know, assume the worst. |
| 23457 | *) gl_cv_func_stat_file_slash="guessing no" ;; |
| 23458 | esac |
| 23459 | |
| 23460 | else |
| 23461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23462 | /* end confdefs.h. */ |
| 23463 | #include <sys/stat.h> |
| 23464 | |
| 23465 | int |
| 23466 | main () |
| 23467 | { |
| 23468 | int result = 0; |
| 23469 | struct stat st; |
| 23470 | if (!stat ("conftest.tmp/", &st)) |
| 23471 | result |= 1; |
| 23472 | #if HAVE_LSTAT |
| 23473 | if (!stat ("conftest.lnk/", &st)) |
| 23474 | result |= 2; |
| 23475 | #endif |
| 23476 | return result; |
| 23477 | |
| 23478 | ; |
| 23479 | return 0; |
| 23480 | } |
| 23481 | _ACEOF |
| 23482 | if ac_fn_c_try_run "$LINENO"; then : |
| 23483 | gl_cv_func_stat_file_slash=yes |
| 23484 | else |
| 23485 | gl_cv_func_stat_file_slash=no |
| 23486 | fi |
| 23487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23488 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23489 | fi |
| 23490 | |
| 23491 | rm -f conftest.tmp conftest.lnk |
| 23492 | fi |
| 23493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 |
| 23494 | $as_echo "$gl_cv_func_stat_file_slash" >&6; } |
| 23495 | case $gl_cv_func_stat_dir_slash in |
| 23496 | *no) REPLACE_STAT=1 |
| 23497 | |
| 23498 | $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h |
| 23499 | ;; |
| 23500 | esac |
| 23501 | case $gl_cv_func_stat_file_slash in |
| 23502 | *no) REPLACE_STAT=1 |
| 23503 | |
| 23504 | $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h |
| 23505 | ;; |
| 23506 | esac |
| 23507 | |
| 23508 | if test $REPLACE_STAT = 1; then |
| 23509 | |
| 23510 | |
| 23511 | |
| 23512 | |
| 23513 | |
| 23514 | |
| 23515 | |
| 23516 | |
| 23517 | gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" |
| 23518 | |
| 23519 | |
| 23520 | |
| 23521 | : |
| 23522 | |
| 23523 | fi |
| 23524 | |
| 23525 | |
| 23526 | |
| 23527 | |
| 23528 | |
| 23529 | GNULIB_STAT=1 |
| 23530 | |
| 23531 | |
| 23532 | |
| 23533 | |
| 23534 | |
| 23535 | gl_gnulib_enabled_stat=true |
| 23536 | if test $REPLACE_STAT = 1; then |
| 23537 | func_gl_gnulib_m4code_dosname |
| 23538 | fi |
| 23539 | if test $REPLACE_STAT = 1; then |
| 23540 | func_gl_gnulib_m4code_pathmax |
| 23541 | fi |
| 23542 | if test $REPLACE_STAT = 1; then |
| 23543 | func_gl_gnulib_m4code_verify |
| 23544 | fi |
| 23545 | fi |
| 23546 | } |
| 23547 | func_gl_gnulib_m4code_strtoll () |
| 23548 | { |
| 23549 | if ! $gl_gnulib_enabled_strtoll; then |
| 23550 | |
| 23551 | |
| 23552 | |
| 23553 | if test "$ac_cv_type_long_long_int" = yes; then |
| 23554 | for ac_func in strtoll |
| 23555 | do : |
| 23556 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
| 23557 | if test "x$ac_cv_func_strtoll" = x""yes; then : |
| 23558 | cat >>confdefs.h <<_ACEOF |
| 23559 | #define HAVE_STRTOLL 1 |
| 23560 | _ACEOF |
| 23561 | |
| 23562 | fi |
| 23563 | done |
| 23564 | |
| 23565 | if test $ac_cv_func_strtoll = no; then |
| 23566 | HAVE_STRTOLL=0 |
| 23567 | fi |
| 23568 | fi |
| 23569 | |
| 23570 | if test $HAVE_STRTOLL = 0; then |
| 23571 | |
| 23572 | |
| 23573 | |
| 23574 | |
| 23575 | |
| 23576 | |
| 23577 | |
| 23578 | |
| 23579 | gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext" |
| 23580 | |
| 23581 | |
| 23582 | : |
| 23583 | |
| 23584 | fi |
| 23585 | |
| 23586 | |
| 23587 | |
| 23588 | |
| 23589 | |
| 23590 | GNULIB_STRTOLL=1 |
| 23591 | |
| 23592 | |
| 23593 | |
| 23594 | |
| 23595 | |
| 23596 | gl_gnulib_enabled_strtoll=true |
| 23597 | fi |
| 23598 | } |
| 23599 | func_gl_gnulib_m4code_strtoull () |
| 23600 | { |
| 23601 | if ! $gl_gnulib_enabled_strtoull; then |
| 23602 | |
| 23603 | |
| 23604 | |
| 23605 | if test "$ac_cv_type_unsigned_long_long_int" = yes; then |
| 23606 | for ac_func in strtoull |
| 23607 | do : |
| 23608 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" |
| 23609 | if test "x$ac_cv_func_strtoull" = x""yes; then : |
| 23610 | cat >>confdefs.h <<_ACEOF |
| 23611 | #define HAVE_STRTOULL 1 |
| 23612 | _ACEOF |
| 23613 | |
| 23614 | fi |
| 23615 | done |
| 23616 | |
| 23617 | if test $ac_cv_func_strtoull = no; then |
| 23618 | HAVE_STRTOULL=0 |
| 23619 | fi |
| 23620 | fi |
| 23621 | |
| 23622 | if test $HAVE_STRTOULL = 0; then |
| 23623 | |
| 23624 | |
| 23625 | |
| 23626 | |
| 23627 | |
| 23628 | |
| 23629 | |
| 23630 | |
| 23631 | gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext" |
| 23632 | |
| 23633 | |
| 23634 | : |
| 23635 | |
| 23636 | fi |
| 23637 | |
| 23638 | |
| 23639 | |
| 23640 | |
| 23641 | |
| 23642 | GNULIB_STRTOULL=1 |
| 23643 | |
| 23644 | |
| 23645 | |
| 23646 | |
| 23647 | |
| 23648 | gl_gnulib_enabled_strtoull=true |
| 23649 | fi |
| 23650 | } |
| 23651 | func_gl_gnulib_m4code_verify () |
| 23652 | { |
| 23653 | if ! $gl_gnulib_enabled_verify; then |
| 23654 | gl_gnulib_enabled_verify=true |
| 23655 | fi |
| 23656 | } |
| 23657 | if test $REPLACE_GETOPT = 1; then |
| 23658 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 |
| 23659 | fi |
| 23660 | if test $REPLACE_LSTAT = 1; then |
| 23661 | func_gl_gnulib_m4code_dosname |
| 23662 | fi |
| 23663 | if test $REPLACE_LSTAT = 1; then |
| 23664 | func_gl_gnulib_m4code_stat |
| 23665 | fi |
| 23666 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then |
| 23667 | func_gl_gnulib_m4code_stat |
| 23668 | fi |
| 23669 | if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then |
| 23670 | func_gl_gnulib_m4code_strtoll |
| 23671 | fi |
| 23672 | if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then |
| 23673 | func_gl_gnulib_m4code_verify |
| 23674 | fi |
| 23675 | if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23676 | func_gl_gnulib_m4code_strtoull |
| 23677 | fi |
| 23678 | if test $ac_cv_func_strtoumax = no; then |
| 23679 | func_gl_gnulib_m4code_verify |
| 23680 | fi |
| 23681 | |
| 23682 | if $gl_gnulib_enabled_dosname; then |
| 23683 | gl_GNULIB_ENABLED_dosname_TRUE= |
| 23684 | gl_GNULIB_ENABLED_dosname_FALSE='#' |
| 23685 | else |
| 23686 | gl_GNULIB_ENABLED_dosname_TRUE='#' |
| 23687 | gl_GNULIB_ENABLED_dosname_FALSE= |
| 23688 | fi |
| 23689 | |
| 23690 | if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then |
| 23691 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE= |
| 23692 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#' |
| 23693 | else |
| 23694 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#' |
| 23695 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE= |
| 23696 | fi |
| 23697 | |
| 23698 | if $gl_gnulib_enabled_pathmax; then |
| 23699 | gl_GNULIB_ENABLED_pathmax_TRUE= |
| 23700 | gl_GNULIB_ENABLED_pathmax_FALSE='#' |
| 23701 | else |
| 23702 | gl_GNULIB_ENABLED_pathmax_TRUE='#' |
| 23703 | gl_GNULIB_ENABLED_pathmax_FALSE= |
| 23704 | fi |
| 23705 | |
| 23706 | if $gl_gnulib_enabled_stat; then |
| 23707 | gl_GNULIB_ENABLED_stat_TRUE= |
| 23708 | gl_GNULIB_ENABLED_stat_FALSE='#' |
| 23709 | else |
| 23710 | gl_GNULIB_ENABLED_stat_TRUE='#' |
| 23711 | gl_GNULIB_ENABLED_stat_FALSE= |
| 23712 | fi |
| 23713 | |
| 23714 | if $gl_gnulib_enabled_strtoll; then |
| 23715 | gl_GNULIB_ENABLED_strtoll_TRUE= |
| 23716 | gl_GNULIB_ENABLED_strtoll_FALSE='#' |
| 23717 | else |
| 23718 | gl_GNULIB_ENABLED_strtoll_TRUE='#' |
| 23719 | gl_GNULIB_ENABLED_strtoll_FALSE= |
| 23720 | fi |
| 23721 | |
| 23722 | if $gl_gnulib_enabled_strtoull; then |
| 23723 | gl_GNULIB_ENABLED_strtoull_TRUE= |
| 23724 | gl_GNULIB_ENABLED_strtoull_FALSE='#' |
| 23725 | else |
| 23726 | gl_GNULIB_ENABLED_strtoull_TRUE='#' |
| 23727 | gl_GNULIB_ENABLED_strtoull_FALSE= |
| 23728 | fi |
| 23729 | |
| 23730 | if $gl_gnulib_enabled_verify; then |
| 23731 | gl_GNULIB_ENABLED_verify_TRUE= |
| 23732 | gl_GNULIB_ENABLED_verify_FALSE='#' |
| 23733 | else |
| 23734 | gl_GNULIB_ENABLED_verify_TRUE='#' |
| 23735 | gl_GNULIB_ENABLED_verify_FALSE= |
| 23736 | fi |
| 23737 | |
| 23738 | # End of code from modules |
| 23739 | |
| 23740 | |
| 23741 | |
| 23742 | |
| 23743 | |
| 23744 | |
| 23745 | |
| 23746 | |
| 23747 | |
| 23748 | gltests_libdeps= |
| 23749 | gltests_ltlibdeps= |
| 23750 | |
| 23751 | |
| 23752 | |
| 23753 | |
| 23754 | |
| 23755 | |
| 23756 | |
| 23757 | |
| 23758 | |
| 23759 | gl_source_base='tests' |
| 23760 | gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS |
| 23761 | |
| 23762 | gl_module_indicator_condition=$gltests_WITNESS |
| 23763 | |
| 23764 | |
| 23765 | |
| 23766 | |
| 23767 | |
| 23768 | |
| 23769 | |
| 23770 | |
| 23771 | |
| 23772 | |
| 23773 | LIBGNU_LIBDEPS="$gl_libdeps" |
| 23774 | |
| 23775 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 23776 | |
| 23777 | |
| 23778 | CFLAGS=$SAVE_CFLAGS |
| 23779 | LIBS=$SAVE_LIBS |
| 23780 | |
| 23781 | case "$opsys" in |
| 23782 | aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; |
| 23783 | |
| 23784 | darwin) |
| 23785 | ## The -headerpad option tells ld (see man page) to leave room at the |
| 23786 | ## end of the header for adding load commands. Needed for dumping. |
| 23787 | ## 0x690 is the total size of 30 segment load commands (at 56 |
| 23788 | ## each); under Cocoa 31 commands are required. |
| 23789 | if test "$HAVE_NS" = "yes"; then |
| 23790 | libs_nsgui="-framework AppKit" |
| 23791 | headerpad_extra=6C8 |
| 23792 | else |
| 23793 | libs_nsgui= |
| 23794 | headerpad_extra=690 |
| 23795 | fi |
| 23796 | LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" |
| 23797 | |
| 23798 | ## This is here because src/Makefile.in did some extra fiddling around |
| 23799 | ## with LD_SWITCH_SYSTEM. The cpp logic was: |
| 23800 | ## #ifndef LD_SWITCH_SYSTEM |
| 23801 | ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) |
| 23802 | ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: |
| 23803 | ## not using gcc, darwin. |
| 23804 | ## Because this was done in src/Makefile.in, the resulting part of |
| 23805 | ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). |
| 23806 | ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, |
| 23807 | ## rather than LD_SWITCH_SYSTEM. |
| 23808 | test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ |
| 23809 | LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" |
| 23810 | ;; |
| 23811 | |
| 23812 | ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to |
| 23813 | ## find X at run-time. |
| 23814 | ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the |
| 23815 | ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH |
| 23816 | ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM |
| 23817 | ## had different values in configure (in ac_link) and src/Makefile.in. |
| 23818 | ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. |
| 23819 | gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;; |
| 23820 | |
| 23821 | *) LD_SWITCH_SYSTEM_TEMACS= ;; |
| 23822 | esac |
| 23823 | |
| 23824 | if test "$NS_IMPL_GNUSTEP" = "yes"; then |
| 23825 | LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread" |
| 23826 | fi |
| 23827 | |
| 23828 | |
| 23829 | |
| 23830 | |
| 23831 | LD_FIRSTFLAG= |
| 23832 | ORDINARY_LINK= |
| 23833 | case "$opsys" in |
| 23834 | ## gnu: GNU needs its own crt0. |
| 23835 | aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; |
| 23836 | |
| 23837 | ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the |
| 23838 | ## library search parth, i.e. it won't search /usr/lib for libc and |
| 23839 | ## friends. Using -nostartfiles instead avoids this problem, and |
| 23840 | ## will also work on earlier NetBSD releases. |
| 23841 | netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;; |
| 23842 | |
| 23843 | ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says |
| 23844 | ## MkLinux/LinuxPPC needs this. |
| 23845 | ## s390x-* only supports opsys = gnu-linux so it can be added here. |
| 23846 | gnu-*) |
| 23847 | case "$canonical" in |
| 23848 | powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;; |
| 23849 | esac |
| 23850 | ;; |
| 23851 | esac |
| 23852 | |
| 23853 | |
| 23854 | if test "x$ORDINARY_LINK" = "xyes"; then |
| 23855 | |
| 23856 | LD_FIRSTFLAG="" |
| 23857 | |
| 23858 | $as_echo "#define ORDINARY_LINK 1" >>confdefs.h |
| 23859 | |
| 23860 | |
| 23861 | ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are: |
| 23862 | ## freebsd, gnu-* not on powerpc*|s390x*. |
| 23863 | elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then |
| 23864 | |
| 23865 | ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure |
| 23866 | ## places that are difficult to figure out at make time. Fortunately, |
| 23867 | ## these same versions allow you to pass arbitrary flags on to the |
| 23868 | ## linker, so there is no reason not to use it as a linker. |
| 23869 | ## |
| 23870 | ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from |
| 23871 | ## searching for libraries in its internal directories, so we have to |
| 23872 | ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). |
| 23873 | LD_FIRSTFLAG="-nostdlib" |
| 23874 | fi |
| 23875 | |
| 23876 | ## FIXME? What setting of EDIT_LDFLAGS should this have? |
| 23877 | test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic" |
| 23878 | |
| 23879 | |
| 23880 | |
| 23881 | |
| 23882 | ## FIXME? The logic here is not precisely the same as that above. |
| 23883 | ## There is no check here for a pre-defined LD_FIRSTFLAG. |
| 23884 | ## Should we only be setting LIB_GCC if LD ~ -nostdlib? |
| 23885 | LIB_GCC= |
| 23886 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then |
| 23887 | |
| 23888 | case "$opsys" in |
| 23889 | freebsd|netbsd|openbsd) LIB_GCC= ;; |
| 23890 | |
| 23891 | gnu-*) |
| 23892 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to |
| 23893 | ## build on ARM EABI under GNU/Linux. (Bug#5518) |
| 23894 | case $host_cpu in |
| 23895 | arm*) |
| 23896 | LIB_GCC="-lgcc_s" |
| 23897 | ;; |
| 23898 | *) |
| 23899 | ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then |
| 23900 | ## immediately undefine it again and redefine it to empty. |
| 23901 | ## Was the C_SWITCH_X_SITE part really necessary? |
| 23902 | ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name` |
| 23903 | LIB_GCC= |
| 23904 | ;; |
| 23905 | esac |
| 23906 | ;; |
| 23907 | |
| 23908 | ## Ask GCC where to find libgcc.a. |
| 23909 | *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;; |
| 23910 | esac |
| 23911 | fi |
| 23912 | |
| 23913 | |
| 23914 | ## If we're using X11/GNUstep, define some consequences. |
| 23915 | if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then |
| 23916 | |
| 23917 | $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h |
| 23918 | |
| 23919 | |
| 23920 | $as_echo "#define HAVE_MOUSE 1" >>confdefs.h |
| 23921 | |
| 23922 | fi |
| 23923 | |
| 23924 | |
| 23925 | |
| 23926 | |
| 23927 | #### Report on what we decided to do. |
| 23928 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
| 23929 | #### It makes printing result more understandable as using GTK sets |
| 23930 | #### toolkit_scroll_bars to yes by default. |
| 23931 | if test "${HAVE_GTK}" = "yes"; then |
| 23932 | if test "${with_gtk3}" = "yes"; then |
| 23933 | USE_X_TOOLKIT=GTK3 |
| 23934 | else |
| 23935 | USE_X_TOOLKIT=GTK |
| 23936 | fi |
| 23937 | fi |
| 23938 | |
| 23939 | echo " |
| 23940 | Configured for \`${canonical}'. |
| 23941 | |
| 23942 | Where should the build process find the source code? ${srcdir} |
| 23943 | What compiler should emacs be built with? ${CC} ${CFLAGS} |
| 23944 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
| 23945 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
| 23946 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
| 23947 | What window system should Emacs use? ${window_system} |
| 23948 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
| 23949 | |
| 23950 | if test -n "${x_includes}"; then |
| 23951 | echo " Where do we find X Windows header files? ${x_includes}" |
| 23952 | else |
| 23953 | echo " Where do we find X Windows header files? Standard dirs" |
| 23954 | fi |
| 23955 | if test -n "${x_libraries}"; then |
| 23956 | echo " Where do we find X Windows libraries? ${x_libraries}" |
| 23957 | else |
| 23958 | echo " Where do we find X Windows libraries? Standard dirs" |
| 23959 | fi |
| 23960 | |
| 23961 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" |
| 23962 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" |
| 23963 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
| 23964 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
| 23965 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" |
| 23966 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 23967 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 23968 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 23969 | |
| 23970 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 23971 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
| 23972 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |
| 23973 | echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}" |
| 23974 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" |
| 23975 | echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}" |
| 23976 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" |
| 23977 | |
| 23978 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" |
| 23979 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" |
| 23980 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" |
| 23981 | echo " Does Emacs use -lxft? ${HAVE_XFT}" |
| 23982 | |
| 23983 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
| 23984 | echo |
| 23985 | |
| 23986 | if test -n "${EMACSDATA}"; then |
| 23987 | echo " Environment variable EMACSDATA set to: $EMACSDATA" |
| 23988 | fi |
| 23989 | if test -n "${EMACSDOC}"; then |
| 23990 | echo " Environment variable EMACSDOC set to: $EMACSDOC" |
| 23991 | fi |
| 23992 | |
| 23993 | echo |
| 23994 | |
| 23995 | if test "$HAVE_NS" = "yes"; then |
| 23996 | echo |
| 23997 | echo "You must run \"${MAKE-make} install\" in order to test the built application. |
| 23998 | The installed application will go to nextstep/Emacs.app and can be |
| 23999 | run or moved from there." |
| 24000 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then |
| 24001 | echo "The application will be fully self-contained." |
| 24002 | else |
| 24003 | echo "The lisp resources for the application will be installed under ${prefix}. |
| 24004 | You may need to run \"${MAKE-make} install\" with sudo. The application will fail |
| 24005 | to run if these resources are not installed." |
| 24006 | fi |
| 24007 | echo |
| 24008 | fi |
| 24009 | |
| 24010 | if test "${opsys}" = "cygwin"; then |
| 24011 | case `uname -r` in |
| 24012 | 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5 |
| 24013 | $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;} |
| 24014 | echo |
| 24015 | ;; |
| 24016 | esac |
| 24017 | fi |
| 24018 | |
| 24019 | # Remove any trailing slashes in these variables. |
| 24020 | test "${prefix}" != NONE && |
| 24021 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 24022 | test "${exec_prefix}" != NONE && |
| 24023 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 24024 | |
| 24025 | SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile" |
| 24026 | |
| 24027 | ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile" |
| 24028 | |
| 24029 | |
| 24030 | opt_makefile=test/automated/Makefile |
| 24031 | |
| 24032 | if test -f $srcdir/${opt_makefile}.in; then |
| 24033 | SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile" |
| 24034 | ac_config_files="$ac_config_files test/automated/Makefile" |
| 24035 | |
| 24036 | fi |
| 24037 | |
| 24038 | |
| 24039 | opt_makefile=admin/unidata/Makefile |
| 24040 | |
| 24041 | if test -f $srcdir/${opt_makefile}.in; then |
| 24042 | SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile" |
| 24043 | ac_config_files="$ac_config_files admin/unidata/Makefile" |
| 24044 | |
| 24045 | fi |
| 24046 | |
| 24047 | |
| 24048 | SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'` |
| 24049 | |
| 24050 | |
| 24051 | |
| 24052 | ac_config_commands="$ac_config_commands mkdirs" |
| 24053 | |
| 24054 | |
| 24055 | ac_config_commands="$ac_config_commands epaths" |
| 24056 | |
| 24057 | |
| 24058 | ac_config_commands="$ac_config_commands gdbinit" |
| 24059 | |
| 24060 | |
| 24061 | cat >confcache <<\_ACEOF |
| 24062 | # This file is a shell script that caches the results of configure |
| 24063 | # tests run on this system so they can be shared between configure |
| 24064 | # scripts and configure runs, see configure's option --config-cache. |
| 24065 | # It is not useful on other systems. If it contains results you don't |
| 24066 | # want to keep, you may remove or edit it. |
| 24067 | # |
| 24068 | # config.status only pays attention to the cache file if you give it |
| 24069 | # the --recheck option to rerun configure. |
| 24070 | # |
| 24071 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 24072 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24073 | # following values. |
| 24074 | |
| 24075 | _ACEOF |
| 24076 | |
| 24077 | # The following way of writing the cache mishandles newlines in values, |
| 24078 | # but we know of no workaround that is simple, portable, and efficient. |
| 24079 | # So, we kill variables containing newlines. |
| 24080 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24081 | # and sets the high bit in the cache file unless we assign to the vars. |
| 24082 | ( |
| 24083 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24084 | eval ac_val=\$$ac_var |
| 24085 | case $ac_val in #( |
| 24086 | *${as_nl}*) |
| 24087 | case $ac_var in #( |
| 24088 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 24089 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 24090 | esac |
| 24091 | case $ac_var in #( |
| 24092 | _ | IFS | as_nl) ;; #( |
| 24093 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 24094 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 24095 | esac ;; |
| 24096 | esac |
| 24097 | done |
| 24098 | |
| 24099 | (set) 2>&1 | |
| 24100 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24101 | *${as_nl}ac_space=\ *) |
| 24102 | # `set' does not quote correctly, so add quotes: double-quote |
| 24103 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 24104 | sed -n \ |
| 24105 | "s/'/'\\\\''/g; |
| 24106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 24107 | ;; #( |
| 24108 | *) |
| 24109 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 24110 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 24111 | ;; |
| 24112 | esac | |
| 24113 | sort |
| 24114 | ) | |
| 24115 | sed ' |
| 24116 | /^ac_cv_env_/b end |
| 24117 | t clear |
| 24118 | :clear |
| 24119 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24120 | t end |
| 24121 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24122 | :end' >>confcache |
| 24123 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24124 | if test -w "$cache_file"; then |
| 24125 | test "x$cache_file" != "x/dev/null" && |
| 24126 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 24127 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 24128 | cat confcache >$cache_file |
| 24129 | else |
| 24130 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 24131 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 24132 | fi |
| 24133 | fi |
| 24134 | rm -f confcache |
| 24135 | |
| 24136 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24137 | # Let make expand exec_prefix. |
| 24138 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24139 | |
| 24140 | DEFS=-DHAVE_CONFIG_H |
| 24141 | |
| 24142 | ac_libobjs= |
| 24143 | ac_ltlibobjs= |
| 24144 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24145 | # 1. Remove the extension, and $U if already installed. |
| 24146 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24147 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 24148 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24149 | # will be set to the directory where LIBOBJS objects are built. |
| 24150 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24151 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 24152 | done |
| 24153 | LIBOBJS=$ac_libobjs |
| 24154 | |
| 24155 | LTLIBOBJS=$ac_ltlibobjs |
| 24156 | |
| 24157 | |
| 24158 | if test -n "$EXEEXT"; then |
| 24159 | am__EXEEXT_TRUE= |
| 24160 | am__EXEEXT_FALSE='#' |
| 24161 | else |
| 24162 | am__EXEEXT_TRUE='#' |
| 24163 | am__EXEEXT_FALSE= |
| 24164 | fi |
| 24165 | |
| 24166 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 24167 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 24168 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24169 | fi |
| 24170 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 24171 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 24172 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24173 | fi |
| 24174 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 24175 | as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. |
| 24176 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24177 | fi |
| 24178 | if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then |
| 24179 | as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. |
| 24180 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24181 | fi |
| 24182 | |
| 24183 | if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 24184 | as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 24185 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24186 | fi |
| 24187 | if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then |
| 24188 | as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. |
| 24189 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24190 | fi |
| 24191 | if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then |
| 24192 | as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined. |
| 24193 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24194 | fi |
| 24195 | if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then |
| 24196 | as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. |
| 24197 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24198 | fi |
| 24199 | if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then |
| 24200 | as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined. |
| 24201 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24202 | fi |
| 24203 | if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then |
| 24204 | as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined. |
| 24205 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24206 | fi |
| 24207 | if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then |
| 24208 | as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined. |
| 24209 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24210 | fi |
| 24211 | if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then |
| 24212 | as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined. |
| 24213 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24214 | fi |
| 24215 | if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then |
| 24216 | as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined. |
| 24217 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24218 | fi |
| 24219 | if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then |
| 24220 | as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined. |
| 24221 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24222 | fi |
| 24223 | if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then |
| 24224 | as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined. |
| 24225 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24226 | fi |
| 24227 | if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then |
| 24228 | as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined. |
| 24229 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 24230 | fi |
| 24231 | |
| 24232 | gl_libobjs= |
| 24233 | gl_ltlibobjs= |
| 24234 | if test -n "$gl_LIBOBJS"; then |
| 24235 | # Remove the extension. |
| 24236 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 24237 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 24238 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 24239 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 24240 | done |
| 24241 | fi |
| 24242 | gl_LIBOBJS=$gl_libobjs |
| 24243 | |
| 24244 | gl_LTLIBOBJS=$gl_ltlibobjs |
| 24245 | |
| 24246 | |
| 24247 | |
| 24248 | gltests_libobjs= |
| 24249 | gltests_ltlibobjs= |
| 24250 | if test -n "$gltests_LIBOBJS"; then |
| 24251 | # Remove the extension. |
| 24252 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 24253 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 24254 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 24255 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 24256 | done |
| 24257 | fi |
| 24258 | gltests_LIBOBJS=$gltests_libobjs |
| 24259 | |
| 24260 | gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 24261 | |
| 24262 | |
| 24263 | |
| 24264 | : ${CONFIG_STATUS=./config.status} |
| 24265 | ac_write_fail=0 |
| 24266 | ac_clean_files_save=$ac_clean_files |
| 24267 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 24268 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 24269 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24270 | as_write_fail=0 |
| 24271 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 24272 | #! $SHELL |
| 24273 | # Generated by $as_me. |
| 24274 | # Run this file to recreate the current configuration. |
| 24275 | # Compiler output produced by configure, useful for debugging |
| 24276 | # configure, is in config.log if it exists. |
| 24277 | |
| 24278 | debug=false |
| 24279 | ac_cs_recheck=false |
| 24280 | ac_cs_silent=false |
| 24281 | |
| 24282 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 24283 | export SHELL |
| 24284 | _ASEOF |
| 24285 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 24286 | ## -------------------- ## |
| 24287 | ## M4sh Initialization. ## |
| 24288 | ## -------------------- ## |
| 24289 | |
| 24290 | # Be more Bourne compatible |
| 24291 | DUALCASE=1; export DUALCASE # for MKS sh |
| 24292 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 24293 | emulate sh |
| 24294 | NULLCMD=: |
| 24295 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24296 | # is contrary to our usage. Disable this feature. |
| 24297 | alias -g '${1+"$@"}'='"$@"' |
| 24298 | setopt NO_GLOB_SUBST |
| 24299 | else |
| 24300 | case `(set -o) 2>/dev/null` in #( |
| 24301 | *posix*) : |
| 24302 | set -o posix ;; #( |
| 24303 | *) : |
| 24304 | ;; |
| 24305 | esac |
| 24306 | fi |
| 24307 | |
| 24308 | |
| 24309 | as_nl=' |
| 24310 | ' |
| 24311 | export as_nl |
| 24312 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 24313 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 24314 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 24315 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 24316 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 24317 | # but without wasting forks for bash or zsh. |
| 24318 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 24319 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 24320 | as_echo='print -r --' |
| 24321 | as_echo_n='print -rn --' |
| 24322 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 24323 | as_echo='printf %s\n' |
| 24324 | as_echo_n='printf %s' |
| 24325 | else |
| 24326 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 24327 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 24328 | as_echo_n='/usr/ucb/echo -n' |
| 24329 | else |
| 24330 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 24331 | as_echo_n_body='eval |
| 24332 | arg=$1; |
| 24333 | case $arg in #( |
| 24334 | *"$as_nl"*) |
| 24335 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 24336 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 24337 | esac; |
| 24338 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 24339 | ' |
| 24340 | export as_echo_n_body |
| 24341 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 24342 | fi |
| 24343 | export as_echo_body |
| 24344 | as_echo='sh -c $as_echo_body as_echo' |
| 24345 | fi |
| 24346 | |
| 24347 | # The user is always right. |
| 24348 | if test "${PATH_SEPARATOR+set}" != set; then |
| 24349 | PATH_SEPARATOR=: |
| 24350 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 24351 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 24352 | PATH_SEPARATOR=';' |
| 24353 | } |
| 24354 | fi |
| 24355 | |
| 24356 | |
| 24357 | # IFS |
| 24358 | # We need space, tab and new line, in precisely that order. Quoting is |
| 24359 | # there to prevent editors from complaining about space-tab. |
| 24360 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 24361 | # splitting by setting IFS to empty value.) |
| 24362 | IFS=" "" $as_nl" |
| 24363 | |
| 24364 | # Find who we are. Look in the path if we contain no directory separator. |
| 24365 | case $0 in #(( |
| 24366 | *[\\/]* ) as_myself=$0 ;; |
| 24367 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24368 | for as_dir in $PATH |
| 24369 | do |
| 24370 | IFS=$as_save_IFS |
| 24371 | test -z "$as_dir" && as_dir=. |
| 24372 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24373 | done |
| 24374 | IFS=$as_save_IFS |
| 24375 | |
| 24376 | ;; |
| 24377 | esac |
| 24378 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24379 | # in which case we are not to be found in the path. |
| 24380 | if test "x$as_myself" = x; then |
| 24381 | as_myself=$0 |
| 24382 | fi |
| 24383 | if test ! -f "$as_myself"; then |
| 24384 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 24385 | exit 1 |
| 24386 | fi |
| 24387 | |
| 24388 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 24389 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 24390 | # suppresses any "Segmentation fault" message there. '((' could |
| 24391 | # trigger a bug in pdksh 5.2.14. |
| 24392 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 24393 | do eval test x\${$as_var+set} = xset \ |
| 24394 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 24395 | done |
| 24396 | PS1='$ ' |
| 24397 | PS2='> ' |
| 24398 | PS4='+ ' |
| 24399 | |
| 24400 | # NLS nuisances. |
| 24401 | LC_ALL=C |
| 24402 | export LC_ALL |
| 24403 | LANGUAGE=C |
| 24404 | export LANGUAGE |
| 24405 | |
| 24406 | # CDPATH. |
| 24407 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 24408 | |
| 24409 | |
| 24410 | # as_fn_error ERROR [LINENO LOG_FD] |
| 24411 | # --------------------------------- |
| 24412 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 24413 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 24414 | # script with status $?, using 1 if that was 0. |
| 24415 | as_fn_error () |
| 24416 | { |
| 24417 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 24418 | if test "$3"; then |
| 24419 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 24420 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 24421 | fi |
| 24422 | $as_echo "$as_me: error: $1" >&2 |
| 24423 | as_fn_exit $as_status |
| 24424 | } # as_fn_error |
| 24425 | |
| 24426 | |
| 24427 | # as_fn_set_status STATUS |
| 24428 | # ----------------------- |
| 24429 | # Set $? to STATUS, without forking. |
| 24430 | as_fn_set_status () |
| 24431 | { |
| 24432 | return $1 |
| 24433 | } # as_fn_set_status |
| 24434 | |
| 24435 | # as_fn_exit STATUS |
| 24436 | # ----------------- |
| 24437 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 24438 | as_fn_exit () |
| 24439 | { |
| 24440 | set +e |
| 24441 | as_fn_set_status $1 |
| 24442 | exit $1 |
| 24443 | } # as_fn_exit |
| 24444 | |
| 24445 | # as_fn_unset VAR |
| 24446 | # --------------- |
| 24447 | # Portably unset VAR. |
| 24448 | as_fn_unset () |
| 24449 | { |
| 24450 | { eval $1=; unset $1;} |
| 24451 | } |
| 24452 | as_unset=as_fn_unset |
| 24453 | # as_fn_append VAR VALUE |
| 24454 | # ---------------------- |
| 24455 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 24456 | # advantage of any shell optimizations that allow amortized linear growth over |
| 24457 | # repeated appends, instead of the typical quadratic growth present in naive |
| 24458 | # implementations. |
| 24459 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 24460 | eval 'as_fn_append () |
| 24461 | { |
| 24462 | eval $1+=\$2 |
| 24463 | }' |
| 24464 | else |
| 24465 | as_fn_append () |
| 24466 | { |
| 24467 | eval $1=\$$1\$2 |
| 24468 | } |
| 24469 | fi # as_fn_append |
| 24470 | |
| 24471 | # as_fn_arith ARG... |
| 24472 | # ------------------ |
| 24473 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 24474 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 24475 | # must be portable across $(()) and expr. |
| 24476 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 24477 | eval 'as_fn_arith () |
| 24478 | { |
| 24479 | as_val=$(( $* )) |
| 24480 | }' |
| 24481 | else |
| 24482 | as_fn_arith () |
| 24483 | { |
| 24484 | as_val=`expr "$@" || test $? -eq 1` |
| 24485 | } |
| 24486 | fi # as_fn_arith |
| 24487 | |
| 24488 | |
| 24489 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24490 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 24491 | as_expr=expr |
| 24492 | else |
| 24493 | as_expr=false |
| 24494 | fi |
| 24495 | |
| 24496 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 24497 | as_basename=basename |
| 24498 | else |
| 24499 | as_basename=false |
| 24500 | fi |
| 24501 | |
| 24502 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 24503 | as_dirname=dirname |
| 24504 | else |
| 24505 | as_dirname=false |
| 24506 | fi |
| 24507 | |
| 24508 | as_me=`$as_basename -- "$0" || |
| 24509 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24510 | X"$0" : 'X\(//\)$' \| \ |
| 24511 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 24512 | $as_echo X/"$0" | |
| 24513 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24514 | s//\1/ |
| 24515 | q |
| 24516 | } |
| 24517 | /^X\/\(\/\/\)$/{ |
| 24518 | s//\1/ |
| 24519 | q |
| 24520 | } |
| 24521 | /^X\/\(\/\).*/{ |
| 24522 | s//\1/ |
| 24523 | q |
| 24524 | } |
| 24525 | s/.*/./; q'` |
| 24526 | |
| 24527 | # Avoid depending upon Character Ranges. |
| 24528 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24529 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24530 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24531 | as_cr_digits='0123456789' |
| 24532 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24533 | |
| 24534 | ECHO_C= ECHO_N= ECHO_T= |
| 24535 | case `echo -n x` in #((((( |
| 24536 | -n*) |
| 24537 | case `echo 'xy\c'` in |
| 24538 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 24539 | xy) ECHO_C='\c';; |
| 24540 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 24541 | ECHO_T=' ';; |
| 24542 | esac;; |
| 24543 | *) |
| 24544 | ECHO_N='-n';; |
| 24545 | esac |
| 24546 | |
| 24547 | rm -f conf$$ conf$$.exe conf$$.file |
| 24548 | if test -d conf$$.dir; then |
| 24549 | rm -f conf$$.dir/conf$$.file |
| 24550 | else |
| 24551 | rm -f conf$$.dir |
| 24552 | mkdir conf$$.dir 2>/dev/null |
| 24553 | fi |
| 24554 | if (echo >conf$$.file) 2>/dev/null; then |
| 24555 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 24556 | as_ln_s='ln -s' |
| 24557 | # ... but there are two gotchas: |
| 24558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 24559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 24560 | # In both cases, we have to default to `cp -p'. |
| 24561 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 24562 | as_ln_s='cp -p' |
| 24563 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24564 | as_ln_s=ln |
| 24565 | else |
| 24566 | as_ln_s='cp -p' |
| 24567 | fi |
| 24568 | else |
| 24569 | as_ln_s='cp -p' |
| 24570 | fi |
| 24571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24572 | rmdir conf$$.dir 2>/dev/null |
| 24573 | |
| 24574 | |
| 24575 | # as_fn_mkdir_p |
| 24576 | # ------------- |
| 24577 | # Create "$as_dir" as a directory, including parents if necessary. |
| 24578 | as_fn_mkdir_p () |
| 24579 | { |
| 24580 | |
| 24581 | case $as_dir in #( |
| 24582 | -*) as_dir=./$as_dir;; |
| 24583 | esac |
| 24584 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 24585 | as_dirs= |
| 24586 | while :; do |
| 24587 | case $as_dir in #( |
| 24588 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 24589 | *) as_qdir=$as_dir;; |
| 24590 | esac |
| 24591 | as_dirs="'$as_qdir' $as_dirs" |
| 24592 | as_dir=`$as_dirname -- "$as_dir" || |
| 24593 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24594 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24595 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24596 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 24597 | $as_echo X"$as_dir" | |
| 24598 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24599 | s//\1/ |
| 24600 | q |
| 24601 | } |
| 24602 | /^X\(\/\/\)[^/].*/{ |
| 24603 | s//\1/ |
| 24604 | q |
| 24605 | } |
| 24606 | /^X\(\/\/\)$/{ |
| 24607 | s//\1/ |
| 24608 | q |
| 24609 | } |
| 24610 | /^X\(\/\).*/{ |
| 24611 | s//\1/ |
| 24612 | q |
| 24613 | } |
| 24614 | s/.*/./; q'` |
| 24615 | test -d "$as_dir" && break |
| 24616 | done |
| 24617 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24618 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 24619 | |
| 24620 | |
| 24621 | } # as_fn_mkdir_p |
| 24622 | if mkdir -p . 2>/dev/null; then |
| 24623 | as_mkdir_p='mkdir -p "$as_dir"' |
| 24624 | else |
| 24625 | test -d ./-p && rmdir ./-p |
| 24626 | as_mkdir_p=false |
| 24627 | fi |
| 24628 | |
| 24629 | if test -x / >/dev/null 2>&1; then |
| 24630 | as_test_x='test -x' |
| 24631 | else |
| 24632 | if ls -dL / >/dev/null 2>&1; then |
| 24633 | as_ls_L_option=L |
| 24634 | else |
| 24635 | as_ls_L_option= |
| 24636 | fi |
| 24637 | as_test_x=' |
| 24638 | eval sh -c '\'' |
| 24639 | if test -d "$1"; then |
| 24640 | test -d "$1/."; |
| 24641 | else |
| 24642 | case $1 in #( |
| 24643 | -*)set "./$1";; |
| 24644 | esac; |
| 24645 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 24646 | ???[sx]*):;;*)false;;esac;fi |
| 24647 | '\'' sh |
| 24648 | ' |
| 24649 | fi |
| 24650 | as_executable_p=$as_test_x |
| 24651 | |
| 24652 | # Sed expression to map a string onto a valid CPP name. |
| 24653 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 24654 | |
| 24655 | # Sed expression to map a string onto a valid variable name. |
| 24656 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 24657 | |
| 24658 | |
| 24659 | exec 6>&1 |
| 24660 | ## ----------------------------------- ## |
| 24661 | ## Main body of $CONFIG_STATUS script. ## |
| 24662 | ## ----------------------------------- ## |
| 24663 | _ASEOF |
| 24664 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 24665 | |
| 24666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24667 | # Save the log message, to keep $0 and so on meaningful, and to |
| 24668 | # report actual input values of CONFIG_FILES etc. instead of their |
| 24669 | # values after options handling. |
| 24670 | ac_log=" |
| 24671 | This file was extended by emacs $as_me 24.2.50, which was |
| 24672 | generated by GNU Autoconf 2.65. Invocation command line was |
| 24673 | |
| 24674 | CONFIG_FILES = $CONFIG_FILES |
| 24675 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24676 | CONFIG_LINKS = $CONFIG_LINKS |
| 24677 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24678 | $ $0 $@ |
| 24679 | |
| 24680 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24681 | " |
| 24682 | |
| 24683 | _ACEOF |
| 24684 | |
| 24685 | case $ac_config_files in *" |
| 24686 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 24687 | esac |
| 24688 | |
| 24689 | case $ac_config_headers in *" |
| 24690 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 24691 | esac |
| 24692 | |
| 24693 | |
| 24694 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24695 | # Files that config.status was made for. |
| 24696 | config_files="$ac_config_files" |
| 24697 | config_headers="$ac_config_headers" |
| 24698 | config_commands="$ac_config_commands" |
| 24699 | |
| 24700 | _ACEOF |
| 24701 | |
| 24702 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24703 | ac_cs_usage="\ |
| 24704 | \`$as_me' instantiates files and other configuration actions |
| 24705 | from templates according to the current configuration. Unless the files |
| 24706 | and actions are specified as TAGs, all are instantiated by default. |
| 24707 | |
| 24708 | Usage: $0 [OPTION]... [TAG]... |
| 24709 | |
| 24710 | -h, --help print this help, then exit |
| 24711 | -V, --version print version number and configuration settings, then exit |
| 24712 | --config print configuration, then exit |
| 24713 | -q, --quiet, --silent |
| 24714 | do not print progress messages |
| 24715 | -d, --debug don't remove temporary files |
| 24716 | --recheck update $as_me by reconfiguring in the same conditions |
| 24717 | --file=FILE[:TEMPLATE] |
| 24718 | instantiate the configuration file FILE |
| 24719 | --header=FILE[:TEMPLATE] |
| 24720 | instantiate the configuration header FILE |
| 24721 | |
| 24722 | Configuration files: |
| 24723 | $config_files |
| 24724 | |
| 24725 | Configuration headers: |
| 24726 | $config_headers |
| 24727 | |
| 24728 | Configuration commands: |
| 24729 | $config_commands |
| 24730 | |
| 24731 | Report bugs to the package provider." |
| 24732 | |
| 24733 | _ACEOF |
| 24734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24735 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 24736 | ac_cs_version="\\ |
| 24737 | emacs config.status 24.2.50 |
| 24738 | configured by $0, generated by GNU Autoconf 2.65, |
| 24739 | with options \\"\$ac_cs_config\\" |
| 24740 | |
| 24741 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 24742 | This config.status script is free software; the Free Software Foundation |
| 24743 | gives unlimited permission to copy, distribute and modify it." |
| 24744 | |
| 24745 | ac_pwd='$ac_pwd' |
| 24746 | srcdir='$srcdir' |
| 24747 | INSTALL='$INSTALL' |
| 24748 | MKDIR_P='$MKDIR_P' |
| 24749 | AWK='$AWK' |
| 24750 | test -n "\$AWK" || AWK=awk |
| 24751 | _ACEOF |
| 24752 | |
| 24753 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24754 | # The default lists apply if the user does not specify any file. |
| 24755 | ac_need_defaults=: |
| 24756 | while test $# != 0 |
| 24757 | do |
| 24758 | case $1 in |
| 24759 | --*=*) |
| 24760 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24761 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 24762 | ac_shift=: |
| 24763 | ;; |
| 24764 | *) |
| 24765 | ac_option=$1 |
| 24766 | ac_optarg=$2 |
| 24767 | ac_shift=shift |
| 24768 | ;; |
| 24769 | esac |
| 24770 | |
| 24771 | case $ac_option in |
| 24772 | # Handling of the options. |
| 24773 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24774 | ac_cs_recheck=: ;; |
| 24775 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24776 | $as_echo "$ac_cs_version"; exit ;; |
| 24777 | --config | --confi | --conf | --con | --co | --c ) |
| 24778 | $as_echo "$ac_cs_config"; exit ;; |
| 24779 | --debug | --debu | --deb | --de | --d | -d ) |
| 24780 | debug=: ;; |
| 24781 | --file | --fil | --fi | --f ) |
| 24782 | $ac_shift |
| 24783 | case $ac_optarg in |
| 24784 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 24785 | esac |
| 24786 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 24787 | ac_need_defaults=false;; |
| 24788 | --header | --heade | --head | --hea ) |
| 24789 | $ac_shift |
| 24790 | case $ac_optarg in |
| 24791 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 24792 | esac |
| 24793 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 24794 | ac_need_defaults=false;; |
| 24795 | --he | --h) |
| 24796 | # Conflict between --help and --header |
| 24797 | as_fn_error "ambiguous option: \`$1' |
| 24798 | Try \`$0 --help' for more information.";; |
| 24799 | --help | --hel | -h ) |
| 24800 | $as_echo "$ac_cs_usage"; exit ;; |
| 24801 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24802 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24803 | ac_cs_silent=: ;; |
| 24804 | |
| 24805 | # This is an error. |
| 24806 | -*) as_fn_error "unrecognized option: \`$1' |
| 24807 | Try \`$0 --help' for more information." ;; |
| 24808 | |
| 24809 | *) as_fn_append ac_config_targets " $1" |
| 24810 | ac_need_defaults=false ;; |
| 24811 | |
| 24812 | esac |
| 24813 | shift |
| 24814 | done |
| 24815 | |
| 24816 | ac_configure_extra_args= |
| 24817 | |
| 24818 | if $ac_cs_silent; then |
| 24819 | exec 6>/dev/null |
| 24820 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24821 | fi |
| 24822 | |
| 24823 | _ACEOF |
| 24824 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24825 | if \$ac_cs_recheck; then |
| 24826 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 24827 | shift |
| 24828 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 24829 | CONFIG_SHELL='$SHELL' |
| 24830 | export CONFIG_SHELL |
| 24831 | exec "\$@" |
| 24832 | fi |
| 24833 | |
| 24834 | _ACEOF |
| 24835 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24836 | exec 5>>config.log |
| 24837 | { |
| 24838 | echo |
| 24839 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24840 | ## Running $as_me. ## |
| 24841 | _ASBOX |
| 24842 | $as_echo "$ac_log" |
| 24843 | } >&5 |
| 24844 | |
| 24845 | _ACEOF |
| 24846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24847 | # |
| 24848 | # INIT-COMMANDS |
| 24849 | # |
| 24850 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 24851 | GCC="$GCC" CPPFLAGS="$CPPFLAGS" |
| 24852 | |
| 24853 | _ACEOF |
| 24854 | |
| 24855 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24856 | |
| 24857 | # Handling of arguments. |
| 24858 | for ac_config_target in $ac_config_targets |
| 24859 | do |
| 24860 | case $ac_config_target in |
| 24861 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; |
| 24862 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 24863 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24864 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 24865 | "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;; |
| 24866 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; |
| 24867 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; |
| 24868 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; |
| 24869 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; |
| 24870 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; |
| 24871 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 24872 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
| 24873 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
| 24874 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 24875 | "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;; |
| 24876 | "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;; |
| 24877 | "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;; |
| 24878 | "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;; |
| 24879 | "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;; |
| 24880 | |
| 24881 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 24882 | esac |
| 24883 | done |
| 24884 | |
| 24885 | |
| 24886 | # If the user did not use the arguments to specify the items to instantiate, |
| 24887 | # then the envvar interface is used. Set only those that are not. |
| 24888 | # We use the long form for the default assignment because of an extremely |
| 24889 | # bizarre bug on SunOS 4.1.3. |
| 24890 | if $ac_need_defaults; then |
| 24891 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24892 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24893 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 24894 | fi |
| 24895 | |
| 24896 | # Have a temporary directory for convenience. Make it in the build tree |
| 24897 | # simply because there is no reason against having it here, and in addition, |
| 24898 | # creating and moving files from /tmp can sometimes cause problems. |
| 24899 | # Hook for its removal unless debugging. |
| 24900 | # Note that there is a small window in which the directory will not be cleaned: |
| 24901 | # after its creation but before its name has been assigned to `$tmp'. |
| 24902 | $debug || |
| 24903 | { |
| 24904 | tmp= |
| 24905 | trap 'exit_status=$? |
| 24906 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 24907 | ' 0 |
| 24908 | trap 'as_fn_exit 1' 1 2 13 15 |
| 24909 | } |
| 24910 | # Create a (secure) tmp directory for tmp files. |
| 24911 | |
| 24912 | { |
| 24913 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 24914 | test -n "$tmp" && test -d "$tmp" |
| 24915 | } || |
| 24916 | { |
| 24917 | tmp=./conf$$-$RANDOM |
| 24918 | (umask 077 && mkdir "$tmp") |
| 24919 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 24920 | |
| 24921 | # Set up the scripts for CONFIG_FILES section. |
| 24922 | # No need to generate them if there are no CONFIG_FILES. |
| 24923 | # This happens for instance with `./config.status config.h'. |
| 24924 | if test -n "$CONFIG_FILES"; then |
| 24925 | |
| 24926 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 24927 | ac_cs_awk_getline=: |
| 24928 | ac_cs_awk_pipe_init= |
| 24929 | ac_cs_awk_read_file=' |
| 24930 | while ((getline aline < (F[key])) > 0) |
| 24931 | print(aline) |
| 24932 | close(F[key])' |
| 24933 | ac_cs_awk_pipe_fini= |
| 24934 | else |
| 24935 | ac_cs_awk_getline=false |
| 24936 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 24937 | ac_cs_awk_read_file=' |
| 24938 | print "|#_!!_#|" |
| 24939 | print "cat " F[key] " &&" |
| 24940 | '$ac_cs_awk_pipe_init |
| 24941 | # The final `:' finishes the AND list. |
| 24942 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 24943 | fi |
| 24944 | ac_cr=`echo X | tr X '\015'` |
| 24945 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 24946 | # But we know of no other shell where ac_cr would be empty at this |
| 24947 | # point, so we can use a bashism as a fallback. |
| 24948 | if test "x$ac_cr" = x; then |
| 24949 | eval ac_cr=\$\'\\r\' |
| 24950 | fi |
| 24951 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 24952 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 24953 | ac_cs_awk_cr='\r' |
| 24954 | else |
| 24955 | ac_cs_awk_cr=$ac_cr |
| 24956 | fi |
| 24957 | |
| 24958 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 24959 | _ACEOF |
| 24960 | |
| 24961 | # Create commands to substitute file output variables. |
| 24962 | { |
| 24963 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 24964 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 24965 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 24966 | echo "_ACAWK" && |
| 24967 | echo "_ACEOF" |
| 24968 | } >conf$$files.sh && |
| 24969 | . ./conf$$files.sh || |
| 24970 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24971 | rm -f conf$$files.sh |
| 24972 | |
| 24973 | { |
| 24974 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 24975 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 24976 | echo "_ACEOF" |
| 24977 | } >conf$$subs.sh || |
| 24978 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24979 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 24980 | ac_delim='%!_!# ' |
| 24981 | for ac_last_try in false false false false false :; do |
| 24982 | . ./conf$$subs.sh || |
| 24983 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24984 | |
| 24985 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 24986 | if test $ac_delim_n = $ac_delim_num; then |
| 24987 | break |
| 24988 | elif $ac_last_try; then |
| 24989 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24990 | else |
| 24991 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24992 | fi |
| 24993 | done |
| 24994 | rm -f conf$$subs.sh |
| 24995 | |
| 24996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24997 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 24998 | _ACEOF |
| 24999 | sed -n ' |
| 25000 | h |
| 25001 | s/^/S["/; s/!.*/"]=/ |
| 25002 | p |
| 25003 | g |
| 25004 | s/^[^!]*!// |
| 25005 | :repl |
| 25006 | t repl |
| 25007 | s/'"$ac_delim"'$// |
| 25008 | t delim |
| 25009 | :nl |
| 25010 | h |
| 25011 | s/\(.\{148\}\)..*/\1/ |
| 25012 | t more1 |
| 25013 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 25014 | p |
| 25015 | n |
| 25016 | b repl |
| 25017 | :more1 |
| 25018 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 25019 | p |
| 25020 | g |
| 25021 | s/.\{148\}// |
| 25022 | t nl |
| 25023 | :delim |
| 25024 | h |
| 25025 | s/\(.\{148\}\)..*/\1/ |
| 25026 | t more2 |
| 25027 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 25028 | p |
| 25029 | b |
| 25030 | :more2 |
| 25031 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 25032 | p |
| 25033 | g |
| 25034 | s/.\{148\}// |
| 25035 | t delim |
| 25036 | ' <conf$$subs.awk | sed ' |
| 25037 | /^[^""]/{ |
| 25038 | N |
| 25039 | s/\n// |
| 25040 | } |
| 25041 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 25042 | rm -f conf$$subs.awk |
| 25043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25044 | _ACAWK |
| 25045 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 25046 | for (key in S) S_is_set[key] = 1 |
| 25047 | FS = "\a" |
| 25048 | \$ac_cs_awk_pipe_init |
| 25049 | } |
| 25050 | { |
| 25051 | line = $ 0 |
| 25052 | nfields = split(line, field, "@") |
| 25053 | substed = 0 |
| 25054 | len = length(field[1]) |
| 25055 | for (i = 2; i < nfields; i++) { |
| 25056 | key = field[i] |
| 25057 | keylen = length(key) |
| 25058 | if (S_is_set[key]) { |
| 25059 | value = S[key] |
| 25060 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 25061 | len += length(value) + length(field[++i]) |
| 25062 | substed = 1 |
| 25063 | } else |
| 25064 | len += 1 + keylen |
| 25065 | } |
| 25066 | if (nfields == 3 && !substed) { |
| 25067 | key = field[2] |
| 25068 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 25069 | \$ac_cs_awk_read_file |
| 25070 | next |
| 25071 | } |
| 25072 | } |
| 25073 | print line |
| 25074 | } |
| 25075 | \$ac_cs_awk_pipe_fini |
| 25076 | _ACAWK |
| 25077 | _ACEOF |
| 25078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25079 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 25080 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 25081 | else |
| 25082 | cat |
| 25083 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 25084 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 25085 | _ACEOF |
| 25086 | |
| 25087 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25088 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25089 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25090 | # (actually we leave an empty line to preserve line numbers). |
| 25091 | if test "x$srcdir" = x.; then |
| 25092 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25093 | s/:*\$(srcdir):*/:/ |
| 25094 | s/:*\${srcdir}:*/:/ |
| 25095 | s/:*@srcdir@:*/:/ |
| 25096 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25097 | s/:*$// |
| 25098 | s/^[^=]*=[ ]*$// |
| 25099 | }' |
| 25100 | fi |
| 25101 | |
| 25102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25103 | fi # test -n "$CONFIG_FILES" |
| 25104 | |
| 25105 | # Set up the scripts for CONFIG_HEADERS section. |
| 25106 | # No need to generate them if there are no CONFIG_HEADERS. |
| 25107 | # This happens for instance with `./config.status Makefile'. |
| 25108 | if test -n "$CONFIG_HEADERS"; then |
| 25109 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 25110 | BEGIN { |
| 25111 | _ACEOF |
| 25112 | |
| 25113 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 25114 | # here-document in config.status, that substitutes the proper values into |
| 25115 | # config.h.in to produce config.h. |
| 25116 | |
| 25117 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 25118 | # handling of long lines. |
| 25119 | ac_delim='%!_!# ' |
| 25120 | for ac_last_try in false false :; do |
| 25121 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 25122 | if test -z "$ac_t"; then |
| 25123 | break |
| 25124 | elif $ac_last_try; then |
| 25125 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 25126 | else |
| 25127 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25128 | fi |
| 25129 | done |
| 25130 | |
| 25131 | # For the awk script, D is an array of macro values keyed by name, |
| 25132 | # likewise P contains macro parameters if any. Preserve backslash |
| 25133 | # newline sequences. |
| 25134 | |
| 25135 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 25136 | sed -n ' |
| 25137 | s/.\{148\}/&'"$ac_delim"'/g |
| 25138 | t rset |
| 25139 | :rset |
| 25140 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 25141 | t def |
| 25142 | d |
| 25143 | :def |
| 25144 | s/\\$// |
| 25145 | t bsnl |
| 25146 | s/["\\]/\\&/g |
| 25147 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 25148 | D["\1"]=" \3"/p |
| 25149 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 25150 | d |
| 25151 | :bsnl |
| 25152 | s/["\\]/\\&/g |
| 25153 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 25154 | D["\1"]=" \3\\\\\\n"\\/p |
| 25155 | t cont |
| 25156 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 25157 | t cont |
| 25158 | d |
| 25159 | :cont |
| 25160 | n |
| 25161 | s/.\{148\}/&'"$ac_delim"'/g |
| 25162 | t clear |
| 25163 | :clear |
| 25164 | s/\\$// |
| 25165 | t bsnlc |
| 25166 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 25167 | d |
| 25168 | :bsnlc |
| 25169 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 25170 | b cont |
| 25171 | ' <confdefs.h | sed ' |
| 25172 | s/'"$ac_delim"'/"\\\ |
| 25173 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 25174 | |
| 25175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25176 | for (key in D) D_is_set[key] = 1 |
| 25177 | FS = "\a" |
| 25178 | } |
| 25179 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 25180 | line = \$ 0 |
| 25181 | split(line, arg, " ") |
| 25182 | if (arg[1] == "#") { |
| 25183 | defundef = arg[2] |
| 25184 | mac1 = arg[3] |
| 25185 | } else { |
| 25186 | defundef = substr(arg[1], 2) |
| 25187 | mac1 = arg[2] |
| 25188 | } |
| 25189 | split(mac1, mac2, "(") #) |
| 25190 | macro = mac2[1] |
| 25191 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 25192 | if (D_is_set[macro]) { |
| 25193 | # Preserve the white space surrounding the "#". |
| 25194 | print prefix "define", macro P[macro] D[macro] |
| 25195 | next |
| 25196 | } else { |
| 25197 | # Replace #undef with comments. This is necessary, for example, |
| 25198 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 25199 | # on some systems where configure will not decide to define it. |
| 25200 | if (defundef == "undef") { |
| 25201 | print "/*", prefix defundef, macro, "*/" |
| 25202 | next |
| 25203 | } |
| 25204 | } |
| 25205 | } |
| 25206 | { print } |
| 25207 | _ACAWK |
| 25208 | _ACEOF |
| 25209 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25210 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 25211 | fi # test -n "$CONFIG_HEADERS" |
| 25212 | |
| 25213 | |
| 25214 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 25215 | shift |
| 25216 | for ac_tag |
| 25217 | do |
| 25218 | case $ac_tag in |
| 25219 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25220 | esac |
| 25221 | case $ac_mode$ac_tag in |
| 25222 | :[FHL]*:*);; |
| 25223 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 25224 | :[FH]-) ac_tag=-:-;; |
| 25225 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25226 | esac |
| 25227 | ac_save_IFS=$IFS |
| 25228 | IFS=: |
| 25229 | set x $ac_tag |
| 25230 | IFS=$ac_save_IFS |
| 25231 | shift |
| 25232 | ac_file=$1 |
| 25233 | shift |
| 25234 | |
| 25235 | case $ac_mode in |
| 25236 | :L) ac_source=$1;; |
| 25237 | :[FH]) |
| 25238 | ac_file_inputs= |
| 25239 | for ac_f |
| 25240 | do |
| 25241 | case $ac_f in |
| 25242 | -) ac_f="$tmp/stdin";; |
| 25243 | *) # Look for the file first in the build tree, then in the source tree |
| 25244 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25245 | # because $ac_f cannot contain `:'. |
| 25246 | test -f "$ac_f" || |
| 25247 | case $ac_f in |
| 25248 | [\\/$]*) false;; |
| 25249 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25250 | esac || |
| 25251 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 25252 | esac |
| 25253 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 25254 | as_fn_append ac_file_inputs " '$ac_f'" |
| 25255 | done |
| 25256 | |
| 25257 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25258 | # use $as_me), people would be surprised to read: |
| 25259 | # /* config.h. Generated by config.status. */ |
| 25260 | configure_input='Generated from '` |
| 25261 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 25262 | `' by configure.' |
| 25263 | if test x"$ac_file" != x-; then |
| 25264 | configure_input="$ac_file. $configure_input" |
| 25265 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 25266 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 25267 | fi |
| 25268 | # Neutralize special characters interpreted by sed in replacement strings. |
| 25269 | case $configure_input in #( |
| 25270 | *\&* | *\|* | *\\* ) |
| 25271 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 25272 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 25273 | *) ac_sed_conf_input=$configure_input;; |
| 25274 | esac |
| 25275 | |
| 25276 | case $ac_tag in |
| 25277 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 25278 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 25279 | esac |
| 25280 | ;; |
| 25281 | esac |
| 25282 | |
| 25283 | ac_dir=`$as_dirname -- "$ac_file" || |
| 25284 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25285 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25286 | X"$ac_file" : 'X\(//\)$' \| \ |
| 25287 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 25288 | $as_echo X"$ac_file" | |
| 25289 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25290 | s//\1/ |
| 25291 | q |
| 25292 | } |
| 25293 | /^X\(\/\/\)[^/].*/{ |
| 25294 | s//\1/ |
| 25295 | q |
| 25296 | } |
| 25297 | /^X\(\/\/\)$/{ |
| 25298 | s//\1/ |
| 25299 | q |
| 25300 | } |
| 25301 | /^X\(\/\).*/{ |
| 25302 | s//\1/ |
| 25303 | q |
| 25304 | } |
| 25305 | s/.*/./; q'` |
| 25306 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 25307 | ac_builddir=. |
| 25308 | |
| 25309 | case "$ac_dir" in |
| 25310 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25311 | *) |
| 25312 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 25313 | # A ".." for each directory in $ac_dir_suffix. |
| 25314 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 25315 | case $ac_top_builddir_sub in |
| 25316 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25317 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25318 | esac ;; |
| 25319 | esac |
| 25320 | ac_abs_top_builddir=$ac_pwd |
| 25321 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25322 | # for backward compatibility: |
| 25323 | ac_top_builddir=$ac_top_build_prefix |
| 25324 | |
| 25325 | case $srcdir in |
| 25326 | .) # We are building in place. |
| 25327 | ac_srcdir=. |
| 25328 | ac_top_srcdir=$ac_top_builddir_sub |
| 25329 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25330 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 25331 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25332 | ac_top_srcdir=$srcdir |
| 25333 | ac_abs_top_srcdir=$srcdir ;; |
| 25334 | *) # Relative name. |
| 25335 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25336 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25337 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 25338 | esac |
| 25339 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 25340 | |
| 25341 | |
| 25342 | case $ac_mode in |
| 25343 | :F) |
| 25344 | # |
| 25345 | # CONFIG_FILE |
| 25346 | # |
| 25347 | |
| 25348 | case $INSTALL in |
| 25349 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 25350 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 25351 | esac |
| 25352 | ac_MKDIR_P=$MKDIR_P |
| 25353 | case $MKDIR_P in |
| 25354 | [\\/$]* | ?:[\\/]* ) ;; |
| 25355 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 25356 | esac |
| 25357 | _ACEOF |
| 25358 | |
| 25359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25360 | # If the template does not know about datarootdir, expand it. |
| 25361 | # FIXME: This hack should be removed a few years after 2.60. |
| 25362 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 25363 | ac_sed_dataroot=' |
| 25364 | /datarootdir/ { |
| 25365 | p |
| 25366 | q |
| 25367 | } |
| 25368 | /@datadir@/p |
| 25369 | /@docdir@/p |
| 25370 | /@infodir@/p |
| 25371 | /@localedir@/p |
| 25372 | /@mandir@/p' |
| 25373 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 25374 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 25375 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25376 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25377 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25378 | _ACEOF |
| 25379 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25380 | ac_datarootdir_hack=' |
| 25381 | s&@datadir@&$datadir&g |
| 25382 | s&@docdir@&$docdir&g |
| 25383 | s&@infodir@&$infodir&g |
| 25384 | s&@localedir@&$localedir&g |
| 25385 | s&@mandir@&$mandir&g |
| 25386 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25387 | esac |
| 25388 | _ACEOF |
| 25389 | |
| 25390 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25391 | # Shell code in configure.ac might set extrasub. |
| 25392 | # FIXME: do we really want to maintain this feature? |
| 25393 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25394 | ac_sed_extra="$ac_vpsub |
| 25395 | $extrasub |
| 25396 | _ACEOF |
| 25397 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25398 | :t |
| 25399 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25400 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 25401 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25402 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 25403 | s&@srcdir@&$ac_srcdir&;t t |
| 25404 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25405 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25406 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25407 | s&@builddir@&$ac_builddir&;t t |
| 25408 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25409 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25410 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25411 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 25412 | $ac_datarootdir_hack |
| 25413 | " |
| 25414 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 25415 | if $ac_cs_awk_getline; then |
| 25416 | $AWK -f "$tmp/subs.awk" |
| 25417 | else |
| 25418 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 25419 | fi >$tmp/out \ |
| 25420 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 25421 | |
| 25422 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25423 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 25424 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 25425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25426 | which seems to be undefined. Please make sure it is defined." >&5 |
| 25427 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25428 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 25429 | |
| 25430 | rm -f "$tmp/stdin" |
| 25431 | case $ac_file in |
| 25432 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 25433 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 25434 | esac \ |
| 25435 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 25436 | ;; |
| 25437 | :H) |
| 25438 | # |
| 25439 | # CONFIG_HEADER |
| 25440 | # |
| 25441 | if test x"$ac_file" != x-; then |
| 25442 | { |
| 25443 | $as_echo "/* $configure_input */" \ |
| 25444 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 25445 | } >"$tmp/config.h" \ |
| 25446 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 25447 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 25448 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 25449 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 25450 | else |
| 25451 | rm -f "$ac_file" |
| 25452 | mv "$tmp/config.h" "$ac_file" \ |
| 25453 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 25454 | fi |
| 25455 | else |
| 25456 | $as_echo "/* $configure_input */" \ |
| 25457 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 25458 | || as_fn_error "could not create -" "$LINENO" 5 |
| 25459 | fi |
| 25460 | # Compute "$ac_file"'s index in $config_headers. |
| 25461 | _am_arg="$ac_file" |
| 25462 | _am_stamp_count=1 |
| 25463 | for _am_header in $config_headers :; do |
| 25464 | case $_am_header in |
| 25465 | $_am_arg | $_am_arg:* ) |
| 25466 | break ;; |
| 25467 | * ) |
| 25468 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 25469 | esac |
| 25470 | done |
| 25471 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 25472 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25473 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 25474 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 25475 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 25476 | $as_echo X"$_am_arg" | |
| 25477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25478 | s//\1/ |
| 25479 | q |
| 25480 | } |
| 25481 | /^X\(\/\/\)[^/].*/{ |
| 25482 | s//\1/ |
| 25483 | q |
| 25484 | } |
| 25485 | /^X\(\/\/\)$/{ |
| 25486 | s//\1/ |
| 25487 | q |
| 25488 | } |
| 25489 | /^X\(\/\).*/{ |
| 25490 | s//\1/ |
| 25491 | q |
| 25492 | } |
| 25493 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 25494 | ;; |
| 25495 | |
| 25496 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 25497 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 25498 | ;; |
| 25499 | esac |
| 25500 | |
| 25501 | |
| 25502 | case $ac_file$ac_mode in |
| 25503 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 25504 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 25505 | # are listed without --file. Let's play safe and only enable the eval |
| 25506 | # if we detect the quoting. |
| 25507 | case $CONFIG_FILES in |
| 25508 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 25509 | *) set x $CONFIG_FILES ;; |
| 25510 | esac |
| 25511 | shift |
| 25512 | for mf |
| 25513 | do |
| 25514 | # Strip MF so we end up with the name of the file. |
| 25515 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 25516 | # Check whether this is an Automake generated Makefile or not. |
| 25517 | # We used to match only the files named `Makefile.in', but |
| 25518 | # some people rename them; so instead we look at the file content. |
| 25519 | # Grep'ing the first line is not enough: some people post-process |
| 25520 | # each Makefile.in and add a new line on top of each file to say so. |
| 25521 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 25522 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 25523 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 25524 | dirpart=`$as_dirname -- "$mf" || |
| 25525 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25526 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 25527 | X"$mf" : 'X\(//\)$' \| \ |
| 25528 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 25529 | $as_echo X"$mf" | |
| 25530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25531 | s//\1/ |
| 25532 | q |
| 25533 | } |
| 25534 | /^X\(\/\/\)[^/].*/{ |
| 25535 | s//\1/ |
| 25536 | q |
| 25537 | } |
| 25538 | /^X\(\/\/\)$/{ |
| 25539 | s//\1/ |
| 25540 | q |
| 25541 | } |
| 25542 | /^X\(\/\).*/{ |
| 25543 | s//\1/ |
| 25544 | q |
| 25545 | } |
| 25546 | s/.*/./; q'` |
| 25547 | else |
| 25548 | continue |
| 25549 | fi |
| 25550 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 25551 | # from the Makefile without running `make'. |
| 25552 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 25553 | test -z "$DEPDIR" && continue |
| 25554 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 25555 | test -z "am__include" && continue |
| 25556 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 25557 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 25558 | U=`sed -n 's/^U = //p' < "$mf"` |
| 25559 | # Find all dependency output files, they are included files with |
| 25560 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 25561 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 25562 | # expansion. |
| 25563 | for file in `sed -n " |
| 25564 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 25565 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 25566 | # Make sure the directory exists. |
| 25567 | test -f "$dirpart/$file" && continue |
| 25568 | fdir=`$as_dirname -- "$file" || |
| 25569 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25570 | X"$file" : 'X\(//\)[^/]' \| \ |
| 25571 | X"$file" : 'X\(//\)$' \| \ |
| 25572 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 25573 | $as_echo X"$file" | |
| 25574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25575 | s//\1/ |
| 25576 | q |
| 25577 | } |
| 25578 | /^X\(\/\/\)[^/].*/{ |
| 25579 | s//\1/ |
| 25580 | q |
| 25581 | } |
| 25582 | /^X\(\/\/\)$/{ |
| 25583 | s//\1/ |
| 25584 | q |
| 25585 | } |
| 25586 | /^X\(\/\).*/{ |
| 25587 | s//\1/ |
| 25588 | q |
| 25589 | } |
| 25590 | s/.*/./; q'` |
| 25591 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 25592 | # echo "creating $dirpart/$file" |
| 25593 | echo '# dummy' > "$dirpart/$file" |
| 25594 | done |
| 25595 | done |
| 25596 | } |
| 25597 | ;; |
| 25598 | "mkdirs":C) |
| 25599 | for dir in etc lisp ; do |
| 25600 | test -d ${dir} || mkdir ${dir} |
| 25601 | done |
| 25602 | ;; |
| 25603 | "epaths":C) |
| 25604 | echo creating src/epaths.h |
| 25605 | ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force |
| 25606 | ;; |
| 25607 | "gdbinit":C) |
| 25608 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 25609 | echo creating src/.gdbinit |
| 25610 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 25611 | fi |
| 25612 | ;; |
| 25613 | |
| 25614 | esac |
| 25615 | done # for ac_tag |
| 25616 | |
| 25617 | |
| 25618 | as_fn_exit 0 |
| 25619 | _ACEOF |
| 25620 | ac_clean_files=$ac_clean_files_save |
| 25621 | |
| 25622 | test $ac_write_fail = 0 || |
| 25623 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 25624 | |
| 25625 | |
| 25626 | # configure is writing to config.log, and then calls config.status. |
| 25627 | # config.status does its own redirection, appending to config.log. |
| 25628 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25629 | # by configure, so config.status won't be able to write to it; its |
| 25630 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25631 | # effectively closing config.log, so it can be properly (re)opened and |
| 25632 | # appended to by config.status. When coming back to configure, we |
| 25633 | # need to make the FD available again. |
| 25634 | if test "$no_create" != yes; then |
| 25635 | ac_cs_success=: |
| 25636 | ac_config_status_args= |
| 25637 | test "$silent" = yes && |
| 25638 | ac_config_status_args="$ac_config_status_args --quiet" |
| 25639 | exec 5>/dev/null |
| 25640 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 25641 | exec 5>>config.log |
| 25642 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25643 | # would make configure fail if this is the last instruction. |
| 25644 | $ac_cs_success || as_fn_exit $? |
| 25645 | fi |
| 25646 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 25647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 25648 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 25649 | fi |
| 25650 | |