Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | as_myself= |
| 91 | case $0 in #(( |
| 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
| 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
| 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | |
| 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
| 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
| 131 | |
| 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
| 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
| 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
| 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
| 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
| 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
| 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 407 | # script with STATUS, using 1 if that was 0. |
| 408 | as_fn_error () |
| 409 | { |
| 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 414 | fi |
| 415 | $as_echo "$as_me: error: $2" >&2 |
| 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
| 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
| 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
| 437 | |
| 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 442 | $as_echo X/"$0" | |
| 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
| 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 463 | |
| 464 | |
| 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
| 474 | sed ' |
| 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
| 479 | N |
| 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 482 | t loop |
| 483 | s/-\n.*// |
| 484 | ' >$as_me.lineno && |
| 485 | chmod +x "$as_me.lineno" || |
| 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 487 | |
| 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
| 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
| 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
| 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
| 500 | ECHO_C= ECHO_N= ECHO_T= |
| 501 | case `echo -n x` in #((((( |
| 502 | -n*) |
| 503 | case `echo 'xy\c'` in |
| 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
| 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
| 511 | esac |
| 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
| 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
| 518 | mkdir conf$$.dir 2>/dev/null |
| 519 | fi |
| 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 526 | # In both cases, we have to default to `cp -pR'. |
| 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 528 | as_ln_s='cp -pR' |
| 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
| 532 | as_ln_s='cp -pR' |
| 533 | fi |
| 534 | else |
| 535 | as_ln_s='cp -pR' |
| 536 | fi |
| 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
| 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
| 541 | as_mkdir_p='mkdir -p "$as_dir"' |
| 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
| 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
| 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
| 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
| 559 | |
| 560 | # Name of the host. |
| 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
| 565 | # |
| 566 | # Initializations. |
| 567 | # |
| 568 | ac_default_prefix=/usr/local |
| 569 | ac_clean_files= |
| 570 | ac_config_libobj_dir=. |
| 571 | LIBOBJS= |
| 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
| 576 | |
| 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
| 583 | PACKAGE_URL= |
| 584 | |
| 585 | ac_unique_file="buffer.c" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
| 589 | #ifdef HAVE_SYS_TYPES_H |
| 590 | # include <sys/types.h> |
| 591 | #endif |
| 592 | #ifdef HAVE_SYS_STAT_H |
| 593 | # include <sys/stat.h> |
| 594 | #endif |
| 595 | #ifdef STDC_HEADERS |
| 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
| 599 | # ifdef HAVE_STDLIB_H |
| 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
| 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
| 609 | #ifdef HAVE_STRINGS_H |
| 610 | # include <strings.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_INTTYPES_H |
| 613 | # include <inttypes.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_STDINT_H |
| 616 | # include <stdint.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_UNISTD_H |
| 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
| 622 | ac_subst_vars='LTLIBOBJS |
| 623 | LIBOBJS |
| 624 | HOST_ID |
| 625 | SHLIB |
| 626 | MACHDEPLIBS |
| 627 | extralibdir |
| 628 | extraincludedir |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 629 | FLOPPYD_IO_OBJ |
| 630 | FLOPPYD_IO_SRC |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 631 | BINFLOPPYD |
| 632 | FLOPPYD |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 633 | FLOPPYD_LIBS |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 634 | X_EXTRA_LIBS |
| 635 | X_LIBS |
| 636 | X_PRE_LIBS |
| 637 | X_CFLAGS |
| 638 | XMKMF |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 639 | XDF_IO_OBJ |
| 640 | XDF_IO_SRC |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 641 | target_os |
| 642 | target_vendor |
| 643 | target_cpu |
| 644 | target |
| 645 | host_os |
| 646 | host_vendor |
| 647 | host_cpu |
| 648 | host |
| 649 | build_os |
| 650 | build_vendor |
| 651 | build_cpu |
| 652 | build |
| 653 | INSTALL_INFO |
| 654 | LN_S |
| 655 | INSTALL_DATA |
| 656 | INSTALL_SCRIPT |
| 657 | INSTALL_PROGRAM |
| 658 | EGREP |
| 659 | GREP |
| 660 | CPP |
| 661 | OBJEXT |
| 662 | EXEEXT |
| 663 | ac_ct_CC |
| 664 | CPPFLAGS |
| 665 | LDFLAGS |
| 666 | CFLAGS |
| 667 | CC |
| 668 | target_alias |
| 669 | host_alias |
| 670 | build_alias |
| 671 | LIBS |
| 672 | ECHO_T |
| 673 | ECHO_N |
| 674 | ECHO_C |
| 675 | DEFS |
| 676 | mandir |
| 677 | localedir |
| 678 | libdir |
| 679 | psdir |
| 680 | pdfdir |
| 681 | dvidir |
| 682 | htmldir |
| 683 | infodir |
| 684 | docdir |
| 685 | oldincludedir |
| 686 | includedir |
| 687 | runstatedir |
| 688 | localstatedir |
| 689 | sharedstatedir |
| 690 | sysconfdir |
| 691 | datadir |
| 692 | datarootdir |
| 693 | libexecdir |
| 694 | sbindir |
| 695 | bindir |
| 696 | program_transform_name |
| 697 | prefix |
| 698 | exec_prefix |
| 699 | PACKAGE_URL |
| 700 | PACKAGE_BUGREPORT |
| 701 | PACKAGE_STRING |
| 702 | PACKAGE_VERSION |
| 703 | PACKAGE_TARNAME |
| 704 | PACKAGE_NAME |
| 705 | PATH_SEPARATOR |
| 706 | SHELL' |
| 707 | ac_subst_files='' |
| 708 | ac_user_opts=' |
| 709 | enable_option_checking |
| 710 | enable_xdf |
| 711 | enable_vold |
| 712 | enable_new_vold |
| 713 | enable_debug |
| 714 | enable_raw_term |
| 715 | enable_largefile |
| 716 | with_x |
| 717 | enable_floppyd |
| 718 | ' |
| 719 | ac_precious_vars='build_alias |
| 720 | host_alias |
| 721 | target_alias |
| 722 | CC |
| 723 | CFLAGS |
| 724 | LDFLAGS |
| 725 | LIBS |
| 726 | CPPFLAGS |
| 727 | CPP |
| 728 | XMKMF' |
| 729 | |
| 730 | |
| 731 | # Initialize some variables set by options. |
| 732 | ac_init_help= |
| 733 | ac_init_version=false |
| 734 | ac_unrecognized_opts= |
| 735 | ac_unrecognized_sep= |
| 736 | # The variables have the same names as the options, with |
| 737 | # dashes changed to underlines. |
| 738 | cache_file=/dev/null |
| 739 | exec_prefix=NONE |
| 740 | no_create= |
| 741 | no_recursion= |
| 742 | prefix=NONE |
| 743 | program_prefix=NONE |
| 744 | program_suffix=NONE |
| 745 | program_transform_name=s,x,x, |
| 746 | silent= |
| 747 | site= |
| 748 | srcdir= |
| 749 | verbose= |
| 750 | x_includes=NONE |
| 751 | x_libraries=NONE |
| 752 | |
| 753 | # Installation directory options. |
| 754 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 755 | # and all the variables that are supposed to be based on exec_prefix |
| 756 | # by default will actually change. |
| 757 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 758 | # (The list follows the same order as the GNU Coding Standards.) |
| 759 | bindir='${exec_prefix}/bin' |
| 760 | sbindir='${exec_prefix}/sbin' |
| 761 | libexecdir='${exec_prefix}/libexec' |
| 762 | datarootdir='${prefix}/share' |
| 763 | datadir='${datarootdir}' |
| 764 | sysconfdir='${prefix}/etc' |
| 765 | sharedstatedir='${prefix}/com' |
| 766 | localstatedir='${prefix}/var' |
| 767 | runstatedir='${localstatedir}/run' |
| 768 | includedir='${prefix}/include' |
| 769 | oldincludedir='/usr/include' |
| 770 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 771 | infodir='${datarootdir}/info' |
| 772 | htmldir='${docdir}' |
| 773 | dvidir='${docdir}' |
| 774 | pdfdir='${docdir}' |
| 775 | psdir='${docdir}' |
| 776 | libdir='${exec_prefix}/lib' |
| 777 | localedir='${datarootdir}/locale' |
| 778 | mandir='${datarootdir}/man' |
| 779 | |
| 780 | ac_prev= |
| 781 | ac_dashdash= |
| 782 | for ac_option |
| 783 | do |
| 784 | # If the previous option needs an argument, assign it. |
| 785 | if test -n "$ac_prev"; then |
| 786 | eval $ac_prev=\$ac_option |
| 787 | ac_prev= |
| 788 | continue |
| 789 | fi |
| 790 | |
| 791 | case $ac_option in |
| 792 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 793 | *=) ac_optarg= ;; |
| 794 | *) ac_optarg=yes ;; |
| 795 | esac |
| 796 | |
| 797 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 798 | |
| 799 | case $ac_dashdash$ac_option in |
| 800 | --) |
| 801 | ac_dashdash=yes ;; |
| 802 | |
| 803 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 804 | ac_prev=bindir ;; |
| 805 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 806 | bindir=$ac_optarg ;; |
| 807 | |
| 808 | -build | --build | --buil | --bui | --bu) |
| 809 | ac_prev=build_alias ;; |
| 810 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 811 | build_alias=$ac_optarg ;; |
| 812 | |
| 813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 815 | ac_prev=cache_file ;; |
| 816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 818 | cache_file=$ac_optarg ;; |
| 819 | |
| 820 | --config-cache | -C) |
| 821 | cache_file=config.cache ;; |
| 822 | |
| 823 | -datadir | --datadir | --datadi | --datad) |
| 824 | ac_prev=datadir ;; |
| 825 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 826 | datadir=$ac_optarg ;; |
| 827 | |
| 828 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 829 | | --dataroo | --dataro | --datar) |
| 830 | ac_prev=datarootdir ;; |
| 831 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 832 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 833 | datarootdir=$ac_optarg ;; |
| 834 | |
| 835 | -disable-* | --disable-*) |
| 836 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 837 | # Reject names that are not valid shell variable names. |
| 838 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 839 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 840 | ac_useropt_orig=$ac_useropt |
| 841 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 842 | case $ac_user_opts in |
| 843 | *" |
| 844 | "enable_$ac_useropt" |
| 845 | "*) ;; |
| 846 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 847 | ac_unrecognized_sep=', ';; |
| 848 | esac |
| 849 | eval enable_$ac_useropt=no ;; |
| 850 | |
| 851 | -docdir | --docdir | --docdi | --doc | --do) |
| 852 | ac_prev=docdir ;; |
| 853 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 854 | docdir=$ac_optarg ;; |
| 855 | |
| 856 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 857 | ac_prev=dvidir ;; |
| 858 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 859 | dvidir=$ac_optarg ;; |
| 860 | |
| 861 | -enable-* | --enable-*) |
| 862 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 863 | # Reject names that are not valid shell variable names. |
| 864 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 865 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 866 | ac_useropt_orig=$ac_useropt |
| 867 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 868 | case $ac_user_opts in |
| 869 | *" |
| 870 | "enable_$ac_useropt" |
| 871 | "*) ;; |
| 872 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 873 | ac_unrecognized_sep=', ';; |
| 874 | esac |
| 875 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 876 | |
| 877 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 878 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 879 | | --exec | --exe | --ex) |
| 880 | ac_prev=exec_prefix ;; |
| 881 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 882 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 883 | | --exec=* | --exe=* | --ex=*) |
| 884 | exec_prefix=$ac_optarg ;; |
| 885 | |
| 886 | -gas | --gas | --ga | --g) |
| 887 | # Obsolete; use --with-gas. |
| 888 | with_gas=yes ;; |
| 889 | |
| 890 | -help | --help | --hel | --he | -h) |
| 891 | ac_init_help=long ;; |
| 892 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 893 | ac_init_help=recursive ;; |
| 894 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 895 | ac_init_help=short ;; |
| 896 | |
| 897 | -host | --host | --hos | --ho) |
| 898 | ac_prev=host_alias ;; |
| 899 | -host=* | --host=* | --hos=* | --ho=*) |
| 900 | host_alias=$ac_optarg ;; |
| 901 | |
| 902 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 903 | ac_prev=htmldir ;; |
| 904 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 905 | | --ht=*) |
| 906 | htmldir=$ac_optarg ;; |
| 907 | |
| 908 | -includedir | --includedir | --includedi | --included | --include \ |
| 909 | | --includ | --inclu | --incl | --inc) |
| 910 | ac_prev=includedir ;; |
| 911 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 912 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 913 | includedir=$ac_optarg ;; |
| 914 | |
| 915 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 916 | ac_prev=infodir ;; |
| 917 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 918 | infodir=$ac_optarg ;; |
| 919 | |
| 920 | -libdir | --libdir | --libdi | --libd) |
| 921 | ac_prev=libdir ;; |
| 922 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 923 | libdir=$ac_optarg ;; |
| 924 | |
| 925 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 926 | | --libexe | --libex | --libe) |
| 927 | ac_prev=libexecdir ;; |
| 928 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 929 | | --libexe=* | --libex=* | --libe=*) |
| 930 | libexecdir=$ac_optarg ;; |
| 931 | |
| 932 | -localedir | --localedir | --localedi | --localed | --locale) |
| 933 | ac_prev=localedir ;; |
| 934 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 935 | localedir=$ac_optarg ;; |
| 936 | |
| 937 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 938 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 939 | ac_prev=localstatedir ;; |
| 940 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 941 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 942 | localstatedir=$ac_optarg ;; |
| 943 | |
| 944 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 945 | ac_prev=mandir ;; |
| 946 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 947 | mandir=$ac_optarg ;; |
| 948 | |
| 949 | -nfp | --nfp | --nf) |
| 950 | # Obsolete; use --without-fp. |
| 951 | with_fp=no ;; |
| 952 | |
| 953 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 954 | | --no-cr | --no-c | -n) |
| 955 | no_create=yes ;; |
| 956 | |
| 957 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 958 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 959 | no_recursion=yes ;; |
| 960 | |
| 961 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 962 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 963 | | --oldin | --oldi | --old | --ol | --o) |
| 964 | ac_prev=oldincludedir ;; |
| 965 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 966 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 967 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 968 | oldincludedir=$ac_optarg ;; |
| 969 | |
| 970 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 971 | ac_prev=prefix ;; |
| 972 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 973 | prefix=$ac_optarg ;; |
| 974 | |
| 975 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 976 | | --program-pre | --program-pr | --program-p) |
| 977 | ac_prev=program_prefix ;; |
| 978 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 979 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 980 | program_prefix=$ac_optarg ;; |
| 981 | |
| 982 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 983 | | --program-suf | --program-su | --program-s) |
| 984 | ac_prev=program_suffix ;; |
| 985 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 986 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 987 | program_suffix=$ac_optarg ;; |
| 988 | |
| 989 | -program-transform-name | --program-transform-name \ |
| 990 | | --program-transform-nam | --program-transform-na \ |
| 991 | | --program-transform-n | --program-transform- \ |
| 992 | | --program-transform | --program-transfor \ |
| 993 | | --program-transfo | --program-transf \ |
| 994 | | --program-trans | --program-tran \ |
| 995 | | --progr-tra | --program-tr | --program-t) |
| 996 | ac_prev=program_transform_name ;; |
| 997 | -program-transform-name=* | --program-transform-name=* \ |
| 998 | | --program-transform-nam=* | --program-transform-na=* \ |
| 999 | | --program-transform-n=* | --program-transform-=* \ |
| 1000 | | --program-transform=* | --program-transfor=* \ |
| 1001 | | --program-transfo=* | --program-transf=* \ |
| 1002 | | --program-trans=* | --program-tran=* \ |
| 1003 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1004 | program_transform_name=$ac_optarg ;; |
| 1005 | |
| 1006 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1007 | ac_prev=pdfdir ;; |
| 1008 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1009 | pdfdir=$ac_optarg ;; |
| 1010 | |
| 1011 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1012 | ac_prev=psdir ;; |
| 1013 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1014 | psdir=$ac_optarg ;; |
| 1015 | |
| 1016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1017 | | -silent | --silent | --silen | --sile | --sil) |
| 1018 | silent=yes ;; |
| 1019 | |
| 1020 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1021 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1022 | | --run | --ru | --r) |
| 1023 | ac_prev=runstatedir ;; |
| 1024 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1025 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1026 | | --run=* | --ru=* | --r=*) |
| 1027 | runstatedir=$ac_optarg ;; |
| 1028 | |
| 1029 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1030 | ac_prev=sbindir ;; |
| 1031 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1032 | | --sbi=* | --sb=*) |
| 1033 | sbindir=$ac_optarg ;; |
| 1034 | |
| 1035 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1036 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1037 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1038 | | --sha | --sh) |
| 1039 | ac_prev=sharedstatedir ;; |
| 1040 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1041 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1042 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1043 | | --sha=* | --sh=*) |
| 1044 | sharedstatedir=$ac_optarg ;; |
| 1045 | |
| 1046 | -site | --site | --sit) |
| 1047 | ac_prev=site ;; |
| 1048 | -site=* | --site=* | --sit=*) |
| 1049 | site=$ac_optarg ;; |
| 1050 | |
| 1051 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1052 | ac_prev=srcdir ;; |
| 1053 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1054 | srcdir=$ac_optarg ;; |
| 1055 | |
| 1056 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1057 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1058 | ac_prev=sysconfdir ;; |
| 1059 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1060 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1061 | sysconfdir=$ac_optarg ;; |
| 1062 | |
| 1063 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1064 | ac_prev=target_alias ;; |
| 1065 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1066 | target_alias=$ac_optarg ;; |
| 1067 | |
| 1068 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1069 | verbose=yes ;; |
| 1070 | |
| 1071 | -version | --version | --versio | --versi | --vers | -V) |
| 1072 | ac_init_version=: ;; |
| 1073 | |
| 1074 | -with-* | --with-*) |
| 1075 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1076 | # Reject names that are not valid shell variable names. |
| 1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1078 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1079 | ac_useropt_orig=$ac_useropt |
| 1080 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1081 | case $ac_user_opts in |
| 1082 | *" |
| 1083 | "with_$ac_useropt" |
| 1084 | "*) ;; |
| 1085 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1086 | ac_unrecognized_sep=', ';; |
| 1087 | esac |
| 1088 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1089 | |
| 1090 | -without-* | --without-*) |
| 1091 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1092 | # Reject names that are not valid shell variable names. |
| 1093 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1094 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1095 | ac_useropt_orig=$ac_useropt |
| 1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1097 | case $ac_user_opts in |
| 1098 | *" |
| 1099 | "with_$ac_useropt" |
| 1100 | "*) ;; |
| 1101 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1102 | ac_unrecognized_sep=', ';; |
| 1103 | esac |
| 1104 | eval with_$ac_useropt=no ;; |
| 1105 | |
| 1106 | --x) |
| 1107 | # Obsolete; use --with-x. |
| 1108 | with_x=yes ;; |
| 1109 | |
| 1110 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1111 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1112 | ac_prev=x_includes ;; |
| 1113 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1114 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1115 | x_includes=$ac_optarg ;; |
| 1116 | |
| 1117 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1118 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1119 | ac_prev=x_libraries ;; |
| 1120 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1121 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1122 | x_libraries=$ac_optarg ;; |
| 1123 | |
| 1124 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1125 | Try \`$0 --help' for more information" |
| 1126 | ;; |
| 1127 | |
| 1128 | *=*) |
| 1129 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1130 | # Reject names that are not valid shell variable names. |
| 1131 | case $ac_envvar in #( |
| 1132 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1133 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1134 | esac |
| 1135 | eval $ac_envvar=\$ac_optarg |
| 1136 | export $ac_envvar ;; |
| 1137 | |
| 1138 | *) |
| 1139 | # FIXME: should be removed in autoconf 3.0. |
| 1140 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1141 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1142 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1143 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1144 | ;; |
| 1145 | |
| 1146 | esac |
| 1147 | done |
| 1148 | |
| 1149 | if test -n "$ac_prev"; then |
| 1150 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1151 | as_fn_error $? "missing argument to $ac_option" |
| 1152 | fi |
| 1153 | |
| 1154 | if test -n "$ac_unrecognized_opts"; then |
| 1155 | case $enable_option_checking in |
| 1156 | no) ;; |
| 1157 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1158 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1159 | esac |
| 1160 | fi |
| 1161 | |
| 1162 | # Check all directory arguments for consistency. |
| 1163 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1164 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1165 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1166 | libdir localedir mandir runstatedir |
| 1167 | do |
| 1168 | eval ac_val=\$$ac_var |
| 1169 | # Remove trailing slashes. |
| 1170 | case $ac_val in |
| 1171 | */ ) |
| 1172 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1173 | eval $ac_var=\$ac_val;; |
| 1174 | esac |
| 1175 | # Be sure to have absolute directory names. |
| 1176 | case $ac_val in |
| 1177 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1178 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1179 | esac |
| 1180 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1181 | done |
| 1182 | |
| 1183 | # There might be people who depend on the old broken behavior: `$host' |
| 1184 | # used to hold the argument of --host etc. |
| 1185 | # FIXME: To remove some day. |
| 1186 | build=$build_alias |
| 1187 | host=$host_alias |
| 1188 | target=$target_alias |
| 1189 | |
| 1190 | # FIXME: To remove some day. |
| 1191 | if test "x$host_alias" != x; then |
| 1192 | if test "x$build_alias" = x; then |
| 1193 | cross_compiling=maybe |
| 1194 | elif test "x$build_alias" != "x$host_alias"; then |
| 1195 | cross_compiling=yes |
| 1196 | fi |
| 1197 | fi |
| 1198 | |
| 1199 | ac_tool_prefix= |
| 1200 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1201 | |
| 1202 | test "$silent" = yes && exec 6>/dev/null |
| 1203 | |
| 1204 | |
| 1205 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1206 | ac_ls_di=`ls -di .` && |
| 1207 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1208 | as_fn_error $? "working directory cannot be determined" |
| 1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1210 | as_fn_error $? "pwd does not report name of working directory" |
| 1211 | |
| 1212 | |
| 1213 | # Find the source files, if location was not specified. |
| 1214 | if test -z "$srcdir"; then |
| 1215 | ac_srcdir_defaulted=yes |
| 1216 | # Try the directory containing this script, then the parent directory. |
| 1217 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1218 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1219 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1220 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1221 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1222 | $as_echo X"$as_myself" | |
| 1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1224 | s//\1/ |
| 1225 | q |
| 1226 | } |
| 1227 | /^X\(\/\/\)[^/].*/{ |
| 1228 | s//\1/ |
| 1229 | q |
| 1230 | } |
| 1231 | /^X\(\/\/\)$/{ |
| 1232 | s//\1/ |
| 1233 | q |
| 1234 | } |
| 1235 | /^X\(\/\).*/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | s/.*/./; q'` |
| 1240 | srcdir=$ac_confdir |
| 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1242 | srcdir=.. |
| 1243 | fi |
| 1244 | else |
| 1245 | ac_srcdir_defaulted=no |
| 1246 | fi |
| 1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1249 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1250 | fi |
| 1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1252 | ac_abs_confdir=`( |
| 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1254 | pwd)` |
| 1255 | # When building in place, set srcdir=. |
| 1256 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1257 | srcdir=. |
| 1258 | fi |
| 1259 | # Remove unnecessary trailing slashes from srcdir. |
| 1260 | # Double slashes in file names in object file debugging info |
| 1261 | # mess up M-x gdb in Emacs. |
| 1262 | case $srcdir in |
| 1263 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1264 | esac |
| 1265 | for ac_var in $ac_precious_vars; do |
| 1266 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1267 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1268 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1269 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1270 | done |
| 1271 | |
| 1272 | # |
| 1273 | # Report the --help message. |
| 1274 | # |
| 1275 | if test "$ac_init_help" = "long"; then |
| 1276 | # Omit some internal or obsolete options to make the list less imposing. |
| 1277 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1278 | cat <<_ACEOF |
| 1279 | \`configure' configures this package to adapt to many kinds of systems. |
| 1280 | |
| 1281 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1282 | |
| 1283 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1284 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1285 | |
| 1286 | Defaults for the options are specified in brackets. |
| 1287 | |
| 1288 | Configuration: |
| 1289 | -h, --help display this help and exit |
| 1290 | --help=short display options specific to this package |
| 1291 | --help=recursive display the short help of all the included packages |
| 1292 | -V, --version display version information and exit |
| 1293 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1294 | --cache-file=FILE cache test results in FILE [disabled] |
| 1295 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1296 | -n, --no-create do not create output files |
| 1297 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1298 | |
| 1299 | Installation directories: |
| 1300 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1301 | [$ac_default_prefix] |
| 1302 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1303 | [PREFIX] |
| 1304 | |
| 1305 | By default, \`make install' will install all the files in |
| 1306 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1307 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1308 | for instance \`--prefix=\$HOME'. |
| 1309 | |
| 1310 | For better control, use the options below. |
| 1311 | |
| 1312 | Fine tuning of the installation directories: |
| 1313 | --bindir=DIR user executables [EPREFIX/bin] |
| 1314 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1315 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1316 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1317 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1318 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1319 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1320 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1321 | --includedir=DIR C header files [PREFIX/include] |
| 1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1325 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1327 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1329 | --htmldir=DIR html documentation [DOCDIR] |
| 1330 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1331 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1332 | --psdir=DIR ps documentation [DOCDIR] |
| 1333 | _ACEOF |
| 1334 | |
| 1335 | cat <<\_ACEOF |
| 1336 | |
| 1337 | X features: |
| 1338 | --x-includes=DIR X include files are in DIR |
| 1339 | --x-libraries=DIR X library files are in DIR |
| 1340 | |
| 1341 | System types: |
| 1342 | --build=BUILD configure for building on BUILD [guessed] |
| 1343 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1344 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1345 | _ACEOF |
| 1346 | fi |
| 1347 | |
| 1348 | if test -n "$ac_init_help"; then |
| 1349 | |
| 1350 | cat <<\_ACEOF |
| 1351 | |
| 1352 | Optional Features: |
| 1353 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1354 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1355 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1356 | --enable-xdf support for OS/2 extended density format disks |
| 1357 | --enable-vold compatibility with Solaris' vold |
| 1358 | --enable-new-vold compatibility with Solaris' vold, new version |
| 1359 | --enable-debug debugging messages |
| 1360 | --enable-raw-term raw terminal (readkey behaviour, default) |
| 1361 | --disable-largefile omit support for large files |
| 1362 | --enable-floppyd floppy daemon support |
| 1363 | |
| 1364 | Optional Packages: |
| 1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1367 | --with-x use the X Window System |
| 1368 | |
| 1369 | Some influential environment variables: |
| 1370 | CC C compiler command |
| 1371 | CFLAGS C compiler flags |
| 1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1373 | nonstandard directory <lib dir> |
| 1374 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1375 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1376 | you have headers in a nonstandard directory <include dir> |
| 1377 | CPP C preprocessor |
| 1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
| 1383 | Report bugs to the package provider. |
| 1384 | _ACEOF |
| 1385 | ac_status=$? |
| 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
| 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1391 | test -d "$ac_dir" || |
| 1392 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1393 | continue |
| 1394 | ac_builddir=. |
| 1395 | |
| 1396 | case "$ac_dir" in |
| 1397 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1398 | *) |
| 1399 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1400 | # A ".." for each directory in $ac_dir_suffix. |
| 1401 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1402 | case $ac_top_builddir_sub in |
| 1403 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1404 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1405 | esac ;; |
| 1406 | esac |
| 1407 | ac_abs_top_builddir=$ac_pwd |
| 1408 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1409 | # for backward compatibility: |
| 1410 | ac_top_builddir=$ac_top_build_prefix |
| 1411 | |
| 1412 | case $srcdir in |
| 1413 | .) # We are building in place. |
| 1414 | ac_srcdir=. |
| 1415 | ac_top_srcdir=$ac_top_builddir_sub |
| 1416 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1417 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1418 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1419 | ac_top_srcdir=$srcdir |
| 1420 | ac_abs_top_srcdir=$srcdir ;; |
| 1421 | *) # Relative name. |
| 1422 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1423 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1424 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1425 | esac |
| 1426 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1427 | |
| 1428 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1429 | # Check for guested configure. |
| 1430 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1431 | echo && |
| 1432 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1433 | elif test -f "$ac_srcdir/configure"; then |
| 1434 | echo && |
| 1435 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1436 | else |
| 1437 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1438 | fi || ac_status=$? |
| 1439 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1440 | done |
| 1441 | fi |
| 1442 | |
| 1443 | test -n "$ac_init_help" && exit $ac_status |
| 1444 | if $ac_init_version; then |
| 1445 | cat <<\_ACEOF |
| 1446 | configure |
| 1447 | generated by GNU Autoconf 2.69 |
| 1448 | |
| 1449 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1450 | This configure script is free software; the Free Software Foundation |
| 1451 | gives unlimited permission to copy, distribute and modify it. |
| 1452 | _ACEOF |
| 1453 | exit |
| 1454 | fi |
| 1455 | |
| 1456 | ## ------------------------ ## |
| 1457 | ## Autoconf initialization. ## |
| 1458 | ## ------------------------ ## |
| 1459 | |
| 1460 | # ac_fn_c_try_compile LINENO |
| 1461 | # -------------------------- |
| 1462 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1463 | ac_fn_c_try_compile () |
| 1464 | { |
| 1465 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1466 | rm -f conftest.$ac_objext |
| 1467 | if { { ac_try="$ac_compile" |
| 1468 | case "(($ac_try" in |
| 1469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1470 | *) ac_try_echo=$ac_try;; |
| 1471 | esac |
| 1472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1473 | $as_echo "$ac_try_echo"; } >&5 |
| 1474 | (eval "$ac_compile") 2>conftest.err |
| 1475 | ac_status=$? |
| 1476 | if test -s conftest.err; then |
| 1477 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1478 | cat conftest.er1 >&5 |
| 1479 | mv -f conftest.er1 conftest.err |
| 1480 | fi |
| 1481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1482 | test $ac_status = 0; } && { |
| 1483 | test -z "$ac_c_werror_flag" || |
| 1484 | test ! -s conftest.err |
| 1485 | } && test -s conftest.$ac_objext; then : |
| 1486 | ac_retval=0 |
| 1487 | else |
| 1488 | $as_echo "$as_me: failed program was:" >&5 |
| 1489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1490 | |
| 1491 | ac_retval=1 |
| 1492 | fi |
| 1493 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1494 | as_fn_set_status $ac_retval |
| 1495 | |
| 1496 | } # ac_fn_c_try_compile |
| 1497 | |
| 1498 | # ac_fn_c_try_cpp LINENO |
| 1499 | # ---------------------- |
| 1500 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1501 | ac_fn_c_try_cpp () |
| 1502 | { |
| 1503 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1504 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1505 | case "(($ac_try" in |
| 1506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1507 | *) ac_try_echo=$ac_try;; |
| 1508 | esac |
| 1509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1510 | $as_echo "$ac_try_echo"; } >&5 |
| 1511 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1512 | ac_status=$? |
| 1513 | if test -s conftest.err; then |
| 1514 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1515 | cat conftest.er1 >&5 |
| 1516 | mv -f conftest.er1 conftest.err |
| 1517 | fi |
| 1518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1519 | test $ac_status = 0; } > conftest.i && { |
| 1520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1521 | test ! -s conftest.err |
| 1522 | }; then : |
| 1523 | ac_retval=0 |
| 1524 | else |
| 1525 | $as_echo "$as_me: failed program was:" >&5 |
| 1526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1527 | |
| 1528 | ac_retval=1 |
| 1529 | fi |
| 1530 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1531 | as_fn_set_status $ac_retval |
| 1532 | |
| 1533 | } # ac_fn_c_try_cpp |
| 1534 | |
| 1535 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1536 | # ------------------------------------------------------- |
| 1537 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1538 | # the include files in INCLUDES and setting the cache variable VAR |
| 1539 | # accordingly. |
| 1540 | ac_fn_c_check_header_mongrel () |
| 1541 | { |
| 1542 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1543 | if eval \${$3+:} false; then : |
| 1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1545 | $as_echo_n "checking for $2... " >&6; } |
| 1546 | if eval \${$3+:} false; then : |
| 1547 | $as_echo_n "(cached) " >&6 |
| 1548 | fi |
| 1549 | eval ac_res=\$$3 |
| 1550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1551 | $as_echo "$ac_res" >&6; } |
| 1552 | else |
| 1553 | # Is the header compilable? |
| 1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1555 | $as_echo_n "checking $2 usability... " >&6; } |
| 1556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1557 | /* end confdefs.h. */ |
| 1558 | $4 |
| 1559 | #include <$2> |
| 1560 | _ACEOF |
| 1561 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1562 | ac_header_compiler=yes |
| 1563 | else |
| 1564 | ac_header_compiler=no |
| 1565 | fi |
| 1566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1568 | $as_echo "$ac_header_compiler" >&6; } |
| 1569 | |
| 1570 | # Is the header present? |
| 1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1572 | $as_echo_n "checking $2 presence... " >&6; } |
| 1573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1574 | /* end confdefs.h. */ |
| 1575 | #include <$2> |
| 1576 | _ACEOF |
| 1577 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1578 | ac_header_preproc=yes |
| 1579 | else |
| 1580 | ac_header_preproc=no |
| 1581 | fi |
| 1582 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1584 | $as_echo "$ac_header_preproc" >&6; } |
| 1585 | |
| 1586 | # So? What about this header? |
| 1587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1588 | yes:no: ) |
| 1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1590 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1592 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1593 | ;; |
| 1594 | no:yes:* ) |
| 1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1596 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1598 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1600 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1602 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1604 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1605 | ;; |
| 1606 | esac |
| 1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1608 | $as_echo_n "checking for $2... " >&6; } |
| 1609 | if eval \${$3+:} false; then : |
| 1610 | $as_echo_n "(cached) " >&6 |
| 1611 | else |
| 1612 | eval "$3=\$ac_header_compiler" |
| 1613 | fi |
| 1614 | eval ac_res=\$$3 |
| 1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1616 | $as_echo "$ac_res" >&6; } |
| 1617 | fi |
| 1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1619 | |
| 1620 | } # ac_fn_c_check_header_mongrel |
| 1621 | |
| 1622 | # ac_fn_c_try_run LINENO |
| 1623 | # ---------------------- |
| 1624 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1625 | # that executables *can* be run. |
| 1626 | ac_fn_c_try_run () |
| 1627 | { |
| 1628 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1629 | if { { ac_try="$ac_link" |
| 1630 | case "(($ac_try" in |
| 1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1632 | *) ac_try_echo=$ac_try;; |
| 1633 | esac |
| 1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1635 | $as_echo "$ac_try_echo"; } >&5 |
| 1636 | (eval "$ac_link") 2>&5 |
| 1637 | ac_status=$? |
| 1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1639 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1640 | { { case "(($ac_try" in |
| 1641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1642 | *) ac_try_echo=$ac_try;; |
| 1643 | esac |
| 1644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1645 | $as_echo "$ac_try_echo"; } >&5 |
| 1646 | (eval "$ac_try") 2>&5 |
| 1647 | ac_status=$? |
| 1648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1649 | test $ac_status = 0; }; }; then : |
| 1650 | ac_retval=0 |
| 1651 | else |
| 1652 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1653 | $as_echo "$as_me: failed program was:" >&5 |
| 1654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1655 | |
| 1656 | ac_retval=$ac_status |
| 1657 | fi |
| 1658 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1660 | as_fn_set_status $ac_retval |
| 1661 | |
| 1662 | } # ac_fn_c_try_run |
| 1663 | |
| 1664 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1665 | # ------------------------------------------------------- |
| 1666 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1667 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1668 | ac_fn_c_check_header_compile () |
| 1669 | { |
| 1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1672 | $as_echo_n "checking for $2... " >&6; } |
| 1673 | if eval \${$3+:} false; then : |
| 1674 | $as_echo_n "(cached) " >&6 |
| 1675 | else |
| 1676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1677 | /* end confdefs.h. */ |
| 1678 | $4 |
| 1679 | #include <$2> |
| 1680 | _ACEOF |
| 1681 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1682 | eval "$3=yes" |
| 1683 | else |
| 1684 | eval "$3=no" |
| 1685 | fi |
| 1686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1687 | fi |
| 1688 | eval ac_res=\$$3 |
| 1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1690 | $as_echo "$ac_res" >&6; } |
| 1691 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1692 | |
| 1693 | } # ac_fn_c_check_header_compile |
| 1694 | |
| 1695 | # ac_fn_c_try_link LINENO |
| 1696 | # ----------------------- |
| 1697 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1698 | ac_fn_c_try_link () |
| 1699 | { |
| 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1702 | if { { ac_try="$ac_link" |
| 1703 | case "(($ac_try" in |
| 1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1705 | *) ac_try_echo=$ac_try;; |
| 1706 | esac |
| 1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1708 | $as_echo "$ac_try_echo"; } >&5 |
| 1709 | (eval "$ac_link") 2>conftest.err |
| 1710 | ac_status=$? |
| 1711 | if test -s conftest.err; then |
| 1712 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1713 | cat conftest.er1 >&5 |
| 1714 | mv -f conftest.er1 conftest.err |
| 1715 | fi |
| 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1717 | test $ac_status = 0; } && { |
| 1718 | test -z "$ac_c_werror_flag" || |
| 1719 | test ! -s conftest.err |
| 1720 | } && test -s conftest$ac_exeext && { |
| 1721 | test "$cross_compiling" = yes || |
| 1722 | test -x conftest$ac_exeext |
| 1723 | }; then : |
| 1724 | ac_retval=0 |
| 1725 | else |
| 1726 | $as_echo "$as_me: failed program was:" >&5 |
| 1727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1728 | |
| 1729 | ac_retval=1 |
| 1730 | fi |
| 1731 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1732 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1733 | # interfere with the next link command; also delete a directory that is |
| 1734 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1735 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1737 | as_fn_set_status $ac_retval |
| 1738 | |
| 1739 | } # ac_fn_c_try_link |
| 1740 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 1741 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1742 | # ------------------------------------------- |
| 1743 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1744 | # variable VAR accordingly. |
| 1745 | ac_fn_c_check_type () |
| 1746 | { |
| 1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1749 | $as_echo_n "checking for $2... " >&6; } |
| 1750 | if eval \${$3+:} false; then : |
| 1751 | $as_echo_n "(cached) " >&6 |
| 1752 | else |
| 1753 | eval "$3=no" |
| 1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1755 | /* end confdefs.h. */ |
| 1756 | $4 |
| 1757 | int |
| 1758 | main () |
| 1759 | { |
| 1760 | if (sizeof ($2)) |
| 1761 | return 0; |
| 1762 | ; |
| 1763 | return 0; |
| 1764 | } |
| 1765 | _ACEOF |
| 1766 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1768 | /* end confdefs.h. */ |
| 1769 | $4 |
| 1770 | int |
| 1771 | main () |
| 1772 | { |
| 1773 | if (sizeof (($2))) |
| 1774 | return 0; |
| 1775 | ; |
| 1776 | return 0; |
| 1777 | } |
| 1778 | _ACEOF |
| 1779 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1780 | |
| 1781 | else |
| 1782 | eval "$3=yes" |
| 1783 | fi |
| 1784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1785 | fi |
| 1786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1787 | fi |
| 1788 | eval ac_res=\$$3 |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1790 | $as_echo "$ac_res" >&6; } |
| 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1792 | |
| 1793 | } # ac_fn_c_check_type |
| 1794 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 1795 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1796 | # ----------------------------------- |
| 1797 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1798 | # accordingly. |
| 1799 | ac_fn_c_find_intX_t () |
| 1800 | { |
| 1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1803 | $as_echo_n "checking for int$2_t... " >&6; } |
| 1804 | if eval \${$3+:} false; then : |
| 1805 | $as_echo_n "(cached) " >&6 |
| 1806 | else |
| 1807 | eval "$3=no" |
| 1808 | # Order is important - never check a type that is potentially smaller |
| 1809 | # than half of the expected target width. |
| 1810 | for ac_type in int$2_t 'int' 'long int' \ |
| 1811 | 'long long int' 'short int' 'signed char'; do |
| 1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1813 | /* end confdefs.h. */ |
| 1814 | $ac_includes_default |
| 1815 | enum { N = $2 / 2 - 1 }; |
| 1816 | int |
| 1817 | main () |
| 1818 | { |
| 1819 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 1820 | test_array [0] = 0; |
| 1821 | return test_array [0]; |
| 1822 | |
| 1823 | ; |
| 1824 | return 0; |
| 1825 | } |
| 1826 | _ACEOF |
| 1827 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1829 | /* end confdefs.h. */ |
| 1830 | $ac_includes_default |
| 1831 | enum { N = $2 / 2 - 1 }; |
| 1832 | int |
| 1833 | main () |
| 1834 | { |
| 1835 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 1836 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1837 | test_array [0] = 0; |
| 1838 | return test_array [0]; |
| 1839 | |
| 1840 | ; |
| 1841 | return 0; |
| 1842 | } |
| 1843 | _ACEOF |
| 1844 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1845 | |
| 1846 | else |
| 1847 | case $ac_type in #( |
| 1848 | int$2_t) : |
| 1849 | eval "$3=yes" ;; #( |
| 1850 | *) : |
| 1851 | eval "$3=\$ac_type" ;; |
| 1852 | esac |
| 1853 | fi |
| 1854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1855 | fi |
| 1856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1857 | if eval test \"x\$"$3"\" = x"no"; then : |
| 1858 | |
| 1859 | else |
| 1860 | break |
| 1861 | fi |
| 1862 | done |
| 1863 | fi |
| 1864 | eval ac_res=\$$3 |
| 1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1866 | $as_echo "$ac_res" >&6; } |
| 1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1868 | |
| 1869 | } # ac_fn_c_find_intX_t |
| 1870 | |
| 1871 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1872 | # ------------------------------------ |
| 1873 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1874 | # accordingly. |
| 1875 | ac_fn_c_find_uintX_t () |
| 1876 | { |
| 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1879 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 1880 | if eval \${$3+:} false; then : |
| 1881 | $as_echo_n "(cached) " >&6 |
| 1882 | else |
| 1883 | eval "$3=no" |
| 1884 | # Order is important - never check a type that is potentially smaller |
| 1885 | # than half of the expected target width. |
| 1886 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1887 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1889 | /* end confdefs.h. */ |
| 1890 | $ac_includes_default |
| 1891 | int |
| 1892 | main () |
| 1893 | { |
| 1894 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1895 | test_array [0] = 0; |
| 1896 | return test_array [0]; |
| 1897 | |
| 1898 | ; |
| 1899 | return 0; |
| 1900 | } |
| 1901 | _ACEOF |
| 1902 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1903 | case $ac_type in #( |
| 1904 | uint$2_t) : |
| 1905 | eval "$3=yes" ;; #( |
| 1906 | *) : |
| 1907 | eval "$3=\$ac_type" ;; |
| 1908 | esac |
| 1909 | fi |
| 1910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1911 | if eval test \"x\$"$3"\" = x"no"; then : |
| 1912 | |
| 1913 | else |
| 1914 | break |
| 1915 | fi |
| 1916 | done |
| 1917 | fi |
| 1918 | eval ac_res=\$$3 |
| 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1920 | $as_echo "$ac_res" >&6; } |
| 1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1922 | |
| 1923 | } # ac_fn_c_find_uintX_t |
| 1924 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 1925 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1926 | # -------------------------------------------- |
| 1927 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1928 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1929 | # computed |
| 1930 | ac_fn_c_compute_int () |
| 1931 | { |
| 1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1933 | if test "$cross_compiling" = yes; then |
| 1934 | # Depending upon the size, compute the lo and hi bounds. |
| 1935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1936 | /* end confdefs.h. */ |
| 1937 | $4 |
| 1938 | int |
| 1939 | main () |
| 1940 | { |
| 1941 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1942 | test_array [0] = 0; |
| 1943 | return test_array [0]; |
| 1944 | |
| 1945 | ; |
| 1946 | return 0; |
| 1947 | } |
| 1948 | _ACEOF |
| 1949 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1950 | ac_lo=0 ac_mid=0 |
| 1951 | while :; do |
| 1952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1953 | /* end confdefs.h. */ |
| 1954 | $4 |
| 1955 | int |
| 1956 | main () |
| 1957 | { |
| 1958 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1959 | test_array [0] = 0; |
| 1960 | return test_array [0]; |
| 1961 | |
| 1962 | ; |
| 1963 | return 0; |
| 1964 | } |
| 1965 | _ACEOF |
| 1966 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1967 | ac_hi=$ac_mid; break |
| 1968 | else |
| 1969 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1970 | if test $ac_lo -le $ac_mid; then |
| 1971 | ac_lo= ac_hi= |
| 1972 | break |
| 1973 | fi |
| 1974 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1975 | fi |
| 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1977 | done |
| 1978 | else |
| 1979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1980 | /* end confdefs.h. */ |
| 1981 | $4 |
| 1982 | int |
| 1983 | main () |
| 1984 | { |
| 1985 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 1986 | test_array [0] = 0; |
| 1987 | return test_array [0]; |
| 1988 | |
| 1989 | ; |
| 1990 | return 0; |
| 1991 | } |
| 1992 | _ACEOF |
| 1993 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1994 | ac_hi=-1 ac_mid=-1 |
| 1995 | while :; do |
| 1996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1997 | /* end confdefs.h. */ |
| 1998 | $4 |
| 1999 | int |
| 2000 | main () |
| 2001 | { |
| 2002 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2003 | test_array [0] = 0; |
| 2004 | return test_array [0]; |
| 2005 | |
| 2006 | ; |
| 2007 | return 0; |
| 2008 | } |
| 2009 | _ACEOF |
| 2010 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2011 | ac_lo=$ac_mid; break |
| 2012 | else |
| 2013 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2014 | if test $ac_mid -le $ac_hi; then |
| 2015 | ac_lo= ac_hi= |
| 2016 | break |
| 2017 | fi |
| 2018 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2019 | fi |
| 2020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2021 | done |
| 2022 | else |
| 2023 | ac_lo= ac_hi= |
| 2024 | fi |
| 2025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2026 | fi |
| 2027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2028 | # Binary search between lo and hi bounds. |
| 2029 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2030 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2032 | /* end confdefs.h. */ |
| 2033 | $4 |
| 2034 | int |
| 2035 | main () |
| 2036 | { |
| 2037 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2038 | test_array [0] = 0; |
| 2039 | return test_array [0]; |
| 2040 | |
| 2041 | ; |
| 2042 | return 0; |
| 2043 | } |
| 2044 | _ACEOF |
| 2045 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2046 | ac_hi=$ac_mid |
| 2047 | else |
| 2048 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2049 | fi |
| 2050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2051 | done |
| 2052 | case $ac_lo in #(( |
| 2053 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2054 | '') ac_retval=1 ;; |
| 2055 | esac |
| 2056 | else |
| 2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2058 | /* end confdefs.h. */ |
| 2059 | $4 |
| 2060 | static long int longval () { return $2; } |
| 2061 | static unsigned long int ulongval () { return $2; } |
| 2062 | #include <stdio.h> |
| 2063 | #include <stdlib.h> |
| 2064 | int |
| 2065 | main () |
| 2066 | { |
| 2067 | |
| 2068 | FILE *f = fopen ("conftest.val", "w"); |
| 2069 | if (! f) |
| 2070 | return 1; |
| 2071 | if (($2) < 0) |
| 2072 | { |
| 2073 | long int i = longval (); |
| 2074 | if (i != ($2)) |
| 2075 | return 1; |
| 2076 | fprintf (f, "%ld", i); |
| 2077 | } |
| 2078 | else |
| 2079 | { |
| 2080 | unsigned long int i = ulongval (); |
| 2081 | if (i != ($2)) |
| 2082 | return 1; |
| 2083 | fprintf (f, "%lu", i); |
| 2084 | } |
| 2085 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2086 | on some platforms. */ |
| 2087 | return ferror (f) || fclose (f) != 0; |
| 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | if ac_fn_c_try_run "$LINENO"; then : |
| 2094 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2095 | else |
| 2096 | ac_retval=1 |
| 2097 | fi |
| 2098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2099 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2100 | rm -f conftest.val |
| 2101 | |
| 2102 | fi |
| 2103 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2104 | as_fn_set_status $ac_retval |
| 2105 | |
| 2106 | } # ac_fn_c_compute_int |
| 2107 | |
| 2108 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2109 | # ---------------------------------- |
| 2110 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2111 | ac_fn_c_check_func () |
| 2112 | { |
| 2113 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2115 | $as_echo_n "checking for $2... " >&6; } |
| 2116 | if eval \${$3+:} false; then : |
| 2117 | $as_echo_n "(cached) " >&6 |
| 2118 | else |
| 2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2120 | /* end confdefs.h. */ |
| 2121 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2123 | #define $2 innocuous_$2 |
| 2124 | |
| 2125 | /* System header to define __stub macros and hopefully few prototypes, |
| 2126 | which can conflict with char $2 (); below. |
| 2127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2128 | <limits.h> exists even on freestanding compilers. */ |
| 2129 | |
| 2130 | #ifdef __STDC__ |
| 2131 | # include <limits.h> |
| 2132 | #else |
| 2133 | # include <assert.h> |
| 2134 | #endif |
| 2135 | |
| 2136 | #undef $2 |
| 2137 | |
| 2138 | /* Override any GCC internal prototype to avoid an error. |
| 2139 | Use char because int might match the return type of a GCC |
| 2140 | builtin and then its argument prototype would still apply. */ |
| 2141 | #ifdef __cplusplus |
| 2142 | extern "C" |
| 2143 | #endif |
| 2144 | char $2 (); |
| 2145 | /* The GNU C library defines this for functions which it implements |
| 2146 | to always fail with ENOSYS. Some functions are actually named |
| 2147 | something starting with __ and the normal name is an alias. */ |
| 2148 | #if defined __stub_$2 || defined __stub___$2 |
| 2149 | choke me |
| 2150 | #endif |
| 2151 | |
| 2152 | int |
| 2153 | main () |
| 2154 | { |
| 2155 | return $2 (); |
| 2156 | ; |
| 2157 | return 0; |
| 2158 | } |
| 2159 | _ACEOF |
| 2160 | if ac_fn_c_try_link "$LINENO"; then : |
| 2161 | eval "$3=yes" |
| 2162 | else |
| 2163 | eval "$3=no" |
| 2164 | fi |
| 2165 | rm -f core conftest.err conftest.$ac_objext \ |
| 2166 | conftest$ac_exeext conftest.$ac_ext |
| 2167 | fi |
| 2168 | eval ac_res=\$$3 |
| 2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2170 | $as_echo "$ac_res" >&6; } |
| 2171 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2172 | |
| 2173 | } # ac_fn_c_check_func |
| 2174 | cat >config.log <<_ACEOF |
| 2175 | This file contains any messages produced by compilers while |
| 2176 | running configure, to aid debugging if configure makes a mistake. |
| 2177 | |
| 2178 | It was created by $as_me, which was |
| 2179 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2180 | |
| 2181 | $ $0 $@ |
| 2182 | |
| 2183 | _ACEOF |
| 2184 | exec 5>>config.log |
| 2185 | { |
| 2186 | cat <<_ASUNAME |
| 2187 | ## --------- ## |
| 2188 | ## Platform. ## |
| 2189 | ## --------- ## |
| 2190 | |
| 2191 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2192 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2193 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2194 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2195 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2196 | |
| 2197 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2198 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2199 | |
| 2200 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2201 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2202 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2203 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2204 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2205 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2206 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2207 | |
| 2208 | _ASUNAME |
| 2209 | |
| 2210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2211 | for as_dir in $PATH |
| 2212 | do |
| 2213 | IFS=$as_save_IFS |
| 2214 | test -z "$as_dir" && as_dir=. |
| 2215 | $as_echo "PATH: $as_dir" |
| 2216 | done |
| 2217 | IFS=$as_save_IFS |
| 2218 | |
| 2219 | } >&5 |
| 2220 | |
| 2221 | cat >&5 <<_ACEOF |
| 2222 | |
| 2223 | |
| 2224 | ## ----------- ## |
| 2225 | ## Core tests. ## |
| 2226 | ## ----------- ## |
| 2227 | |
| 2228 | _ACEOF |
| 2229 | |
| 2230 | |
| 2231 | # Keep a trace of the command line. |
| 2232 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2233 | # Strip out --silent because we don't want to record it for future runs. |
| 2234 | # Also quote any args containing shell meta-characters. |
| 2235 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2236 | ac_configure_args= |
| 2237 | ac_configure_args0= |
| 2238 | ac_configure_args1= |
| 2239 | ac_must_keep_next=false |
| 2240 | for ac_pass in 1 2 |
| 2241 | do |
| 2242 | for ac_arg |
| 2243 | do |
| 2244 | case $ac_arg in |
| 2245 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2246 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2247 | | -silent | --silent | --silen | --sile | --sil) |
| 2248 | continue ;; |
| 2249 | *\'*) |
| 2250 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2251 | esac |
| 2252 | case $ac_pass in |
| 2253 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2254 | 2) |
| 2255 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2256 | if test $ac_must_keep_next = true; then |
| 2257 | ac_must_keep_next=false # Got value, back to normal. |
| 2258 | else |
| 2259 | case $ac_arg in |
| 2260 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2261 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2262 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2263 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2264 | case "$ac_configure_args0 " in |
| 2265 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2266 | esac |
| 2267 | ;; |
| 2268 | -* ) ac_must_keep_next=true ;; |
| 2269 | esac |
| 2270 | fi |
| 2271 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2272 | ;; |
| 2273 | esac |
| 2274 | done |
| 2275 | done |
| 2276 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2277 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2278 | |
| 2279 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2280 | # config.log. We remove comments because anyway the quotes in there |
| 2281 | # would cause problems or look ugly. |
| 2282 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2283 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2284 | trap 'exit_status=$? |
| 2285 | # Save into config.log some information that might help in debugging. |
| 2286 | { |
| 2287 | echo |
| 2288 | |
| 2289 | $as_echo "## ---------------- ## |
| 2290 | ## Cache variables. ## |
| 2291 | ## ---------------- ##" |
| 2292 | echo |
| 2293 | # The following way of writing the cache mishandles newlines in values, |
| 2294 | ( |
| 2295 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2296 | eval ac_val=\$$ac_var |
| 2297 | case $ac_val in #( |
| 2298 | *${as_nl}*) |
| 2299 | case $ac_var in #( |
| 2300 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2301 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2302 | esac |
| 2303 | case $ac_var in #( |
| 2304 | _ | IFS | as_nl) ;; #( |
| 2305 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2306 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2307 | esac ;; |
| 2308 | esac |
| 2309 | done |
| 2310 | (set) 2>&1 | |
| 2311 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2312 | *${as_nl}ac_space=\ *) |
| 2313 | sed -n \ |
| 2314 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2316 | ;; #( |
| 2317 | *) |
| 2318 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2319 | ;; |
| 2320 | esac | |
| 2321 | sort |
| 2322 | ) |
| 2323 | echo |
| 2324 | |
| 2325 | $as_echo "## ----------------- ## |
| 2326 | ## Output variables. ## |
| 2327 | ## ----------------- ##" |
| 2328 | echo |
| 2329 | for ac_var in $ac_subst_vars |
| 2330 | do |
| 2331 | eval ac_val=\$$ac_var |
| 2332 | case $ac_val in |
| 2333 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2334 | esac |
| 2335 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2336 | done | sort |
| 2337 | echo |
| 2338 | |
| 2339 | if test -n "$ac_subst_files"; then |
| 2340 | $as_echo "## ------------------- ## |
| 2341 | ## File substitutions. ## |
| 2342 | ## ------------------- ##" |
| 2343 | echo |
| 2344 | for ac_var in $ac_subst_files |
| 2345 | do |
| 2346 | eval ac_val=\$$ac_var |
| 2347 | case $ac_val in |
| 2348 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2349 | esac |
| 2350 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2351 | done | sort |
| 2352 | echo |
| 2353 | fi |
| 2354 | |
| 2355 | if test -s confdefs.h; then |
| 2356 | $as_echo "## ----------- ## |
| 2357 | ## confdefs.h. ## |
| 2358 | ## ----------- ##" |
| 2359 | echo |
| 2360 | cat confdefs.h |
| 2361 | echo |
| 2362 | fi |
| 2363 | test "$ac_signal" != 0 && |
| 2364 | $as_echo "$as_me: caught signal $ac_signal" |
| 2365 | $as_echo "$as_me: exit $exit_status" |
| 2366 | } >&5 |
| 2367 | rm -f core *.core core.conftest.* && |
| 2368 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2369 | exit $exit_status |
| 2370 | ' 0 |
| 2371 | for ac_signal in 1 2 13 15; do |
| 2372 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2373 | done |
| 2374 | ac_signal=0 |
| 2375 | |
| 2376 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2377 | rm -f -r conftest* confdefs.h |
| 2378 | |
| 2379 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2380 | |
| 2381 | # Predefined preprocessor variables. |
| 2382 | |
| 2383 | cat >>confdefs.h <<_ACEOF |
| 2384 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2385 | _ACEOF |
| 2386 | |
| 2387 | cat >>confdefs.h <<_ACEOF |
| 2388 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2389 | _ACEOF |
| 2390 | |
| 2391 | cat >>confdefs.h <<_ACEOF |
| 2392 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2393 | _ACEOF |
| 2394 | |
| 2395 | cat >>confdefs.h <<_ACEOF |
| 2396 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2397 | _ACEOF |
| 2398 | |
| 2399 | cat >>confdefs.h <<_ACEOF |
| 2400 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2401 | _ACEOF |
| 2402 | |
| 2403 | cat >>confdefs.h <<_ACEOF |
| 2404 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2405 | _ACEOF |
| 2406 | |
| 2407 | |
| 2408 | # Let the site file select an alternate cache file if it wants to. |
| 2409 | # Prefer an explicitly selected file to automatically selected ones. |
| 2410 | ac_site_file1=NONE |
| 2411 | ac_site_file2=NONE |
| 2412 | if test -n "$CONFIG_SITE"; then |
| 2413 | # We do not want a PATH search for config.site. |
| 2414 | case $CONFIG_SITE in #(( |
| 2415 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2416 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2417 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2418 | esac |
| 2419 | elif test "x$prefix" != xNONE; then |
| 2420 | ac_site_file1=$prefix/share/config.site |
| 2421 | ac_site_file2=$prefix/etc/config.site |
| 2422 | else |
| 2423 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2424 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2425 | fi |
| 2426 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2427 | do |
| 2428 | test "x$ac_site_file" = xNONE && continue |
| 2429 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2431 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2432 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2433 | . "$ac_site_file" \ |
| 2434 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2436 | as_fn_error $? "failed to load site script $ac_site_file |
| 2437 | See \`config.log' for more details" "$LINENO" 5; } |
| 2438 | fi |
| 2439 | done |
| 2440 | |
| 2441 | if test -r "$cache_file"; then |
| 2442 | # Some versions of bash will fail to source /dev/null (special files |
| 2443 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2444 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2446 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2447 | case $cache_file in |
| 2448 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2449 | *) . "./$cache_file";; |
| 2450 | esac |
| 2451 | fi |
| 2452 | else |
| 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2454 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2455 | >$cache_file |
| 2456 | fi |
| 2457 | |
| 2458 | # Check that the precious variables saved in the cache have kept the same |
| 2459 | # value. |
| 2460 | ac_cache_corrupted=false |
| 2461 | for ac_var in $ac_precious_vars; do |
| 2462 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2463 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2464 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2465 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2466 | case $ac_old_set,$ac_new_set in |
| 2467 | set,) |
| 2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2469 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2470 | ac_cache_corrupted=: ;; |
| 2471 | ,set) |
| 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2473 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2474 | ac_cache_corrupted=: ;; |
| 2475 | ,);; |
| 2476 | *) |
| 2477 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2478 | # differences in whitespace do not lead to failure. |
| 2479 | ac_old_val_w=`echo x $ac_old_val` |
| 2480 | ac_new_val_w=`echo x $ac_new_val` |
| 2481 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2483 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2484 | ac_cache_corrupted=: |
| 2485 | else |
| 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2487 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2488 | eval $ac_var=\$ac_old_val |
| 2489 | fi |
| 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2491 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2493 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2494 | fi;; |
| 2495 | esac |
| 2496 | # Pass precious variables to config.status. |
| 2497 | if test "$ac_new_set" = set; then |
| 2498 | case $ac_new_val in |
| 2499 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2500 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2501 | esac |
| 2502 | case " $ac_configure_args " in |
| 2503 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2504 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2505 | esac |
| 2506 | fi |
| 2507 | done |
| 2508 | if $ac_cache_corrupted; then |
| 2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2512 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2513 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2514 | fi |
| 2515 | ## -------------------- ## |
| 2516 | ## Main body of script. ## |
| 2517 | ## -------------------- ## |
| 2518 | |
| 2519 | ac_ext=c |
| 2520 | ac_cpp='$CPP $CPPFLAGS' |
| 2521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2524 | |
| 2525 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 2526 | # =========================================================================== |
| 2527 | # https://www.gnu.org/software/autoconf-archive/ax_lib_socket_nsl.html |
| 2528 | # =========================================================================== |
| 2529 | # |
| 2530 | # SYNOPSIS |
| 2531 | # |
| 2532 | # AX_LIB_SOCKET_NSL |
| 2533 | # |
| 2534 | # DESCRIPTION |
| 2535 | # |
| 2536 | # This macro figures out what libraries are required on this platform to |
| 2537 | # link sockets programs. |
| 2538 | # |
| 2539 | # The common cases are not to need any extra libraries, or to need |
| 2540 | # -lsocket and -lnsl. We need to avoid linking with libnsl unless we need |
| 2541 | # it, though, since on some OSes where it isn't necessary it will totally |
| 2542 | # break networking. Unisys also includes gethostbyname() in libsocket but |
| 2543 | # needs libnsl for socket(). |
| 2544 | # |
| 2545 | # LICENSE |
| 2546 | # |
| 2547 | # Copyright (c) 2008 Russ Allbery <rra@stanford.edu> |
| 2548 | # Copyright (c) 2008 Stepan Kasal <kasal@ucw.cz> |
| 2549 | # Copyright (c) 2008 Warren Young <warren@etr-usa.com> |
| 2550 | # |
| 2551 | # Copying and distribution of this file, with or without modification, are |
| 2552 | # permitted in any medium without royalty provided the copyright notice |
| 2553 | # and this notice are preserved. This file is offered as-is, without any |
| 2554 | # warranty. |
| 2555 | |
| 2556 | #serial 7 |
| 2557 | |
| 2558 | # This is what autoupdate's m4 run will expand. It fires |
| 2559 | # the warning (with _au_warn_XXX), outputs it into the |
| 2560 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 2561 | # the replacement expansion. |
| 2562 | |
| 2563 | |
| 2564 | # This is an auxiliary macro that is also run when |
| 2565 | # autoupdate runs m4. It simply calls m4_warning, but |
| 2566 | # we need a wrapper so that each warning is emitted only |
| 2567 | # once. We break the quoting in m4_warning's argument in |
| 2568 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 2569 | |
| 2570 | |
| 2571 | # Finally, this is the expansion that is picked up by |
| 2572 | # autoconf. It tells the user to run autoupdate, and |
| 2573 | # then outputs the replacement expansion. We do not care |
| 2574 | # about autoupdate's warning because that contains |
| 2575 | # information on what to do *after* running autoupdate. |
| 2576 | |
| 2577 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 2578 | |
| 2579 | ac_config_headers="$ac_config_headers config.h" |
| 2580 | |
| 2581 | |
| 2582 | ac_ext=c |
| 2583 | ac_cpp='$CPP $CPPFLAGS' |
| 2584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2587 | if test -n "$ac_tool_prefix"; then |
| 2588 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2589 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2591 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2592 | if ${ac_cv_prog_CC+:} false; then : |
| 2593 | $as_echo_n "(cached) " >&6 |
| 2594 | else |
| 2595 | if test -n "$CC"; then |
| 2596 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2597 | else |
| 2598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2599 | for as_dir in $PATH |
| 2600 | do |
| 2601 | IFS=$as_save_IFS |
| 2602 | test -z "$as_dir" && as_dir=. |
| 2603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2605 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2607 | break 2 |
| 2608 | fi |
| 2609 | done |
| 2610 | done |
| 2611 | IFS=$as_save_IFS |
| 2612 | |
| 2613 | fi |
| 2614 | fi |
| 2615 | CC=$ac_cv_prog_CC |
| 2616 | if test -n "$CC"; then |
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2618 | $as_echo "$CC" >&6; } |
| 2619 | else |
| 2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2621 | $as_echo "no" >&6; } |
| 2622 | fi |
| 2623 | |
| 2624 | |
| 2625 | fi |
| 2626 | if test -z "$ac_cv_prog_CC"; then |
| 2627 | ac_ct_CC=$CC |
| 2628 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2629 | set dummy gcc; ac_word=$2 |
| 2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2631 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2632 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2633 | $as_echo_n "(cached) " >&6 |
| 2634 | else |
| 2635 | if test -n "$ac_ct_CC"; then |
| 2636 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2637 | else |
| 2638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2639 | for as_dir in $PATH |
| 2640 | do |
| 2641 | IFS=$as_save_IFS |
| 2642 | test -z "$as_dir" && as_dir=. |
| 2643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2645 | ac_cv_prog_ac_ct_CC="gcc" |
| 2646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2647 | break 2 |
| 2648 | fi |
| 2649 | done |
| 2650 | done |
| 2651 | IFS=$as_save_IFS |
| 2652 | |
| 2653 | fi |
| 2654 | fi |
| 2655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2656 | if test -n "$ac_ct_CC"; then |
| 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2658 | $as_echo "$ac_ct_CC" >&6; } |
| 2659 | else |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2661 | $as_echo "no" >&6; } |
| 2662 | fi |
| 2663 | |
| 2664 | if test "x$ac_ct_CC" = x; then |
| 2665 | CC="" |
| 2666 | else |
| 2667 | case $cross_compiling:$ac_tool_warned in |
| 2668 | yes:) |
| 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2670 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2671 | ac_tool_warned=yes ;; |
| 2672 | esac |
| 2673 | CC=$ac_ct_CC |
| 2674 | fi |
| 2675 | else |
| 2676 | CC="$ac_cv_prog_CC" |
| 2677 | fi |
| 2678 | |
| 2679 | if test -z "$CC"; then |
| 2680 | if test -n "$ac_tool_prefix"; then |
| 2681 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2682 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2684 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2685 | if ${ac_cv_prog_CC+:} false; then : |
| 2686 | $as_echo_n "(cached) " >&6 |
| 2687 | else |
| 2688 | if test -n "$CC"; then |
| 2689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2690 | else |
| 2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2692 | for as_dir in $PATH |
| 2693 | do |
| 2694 | IFS=$as_save_IFS |
| 2695 | test -z "$as_dir" && as_dir=. |
| 2696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2698 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2700 | break 2 |
| 2701 | fi |
| 2702 | done |
| 2703 | done |
| 2704 | IFS=$as_save_IFS |
| 2705 | |
| 2706 | fi |
| 2707 | fi |
| 2708 | CC=$ac_cv_prog_CC |
| 2709 | if test -n "$CC"; then |
| 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2711 | $as_echo "$CC" >&6; } |
| 2712 | else |
| 2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2714 | $as_echo "no" >&6; } |
| 2715 | fi |
| 2716 | |
| 2717 | |
| 2718 | fi |
| 2719 | fi |
| 2720 | if test -z "$CC"; then |
| 2721 | # Extract the first word of "cc", so it can be a program name with args. |
| 2722 | set dummy cc; ac_word=$2 |
| 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2724 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2725 | if ${ac_cv_prog_CC+:} false; then : |
| 2726 | $as_echo_n "(cached) " >&6 |
| 2727 | else |
| 2728 | if test -n "$CC"; then |
| 2729 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2730 | else |
| 2731 | ac_prog_rejected=no |
| 2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2733 | for as_dir in $PATH |
| 2734 | do |
| 2735 | IFS=$as_save_IFS |
| 2736 | test -z "$as_dir" && as_dir=. |
| 2737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2739 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2740 | ac_prog_rejected=yes |
| 2741 | continue |
| 2742 | fi |
| 2743 | ac_cv_prog_CC="cc" |
| 2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2745 | break 2 |
| 2746 | fi |
| 2747 | done |
| 2748 | done |
| 2749 | IFS=$as_save_IFS |
| 2750 | |
| 2751 | if test $ac_prog_rejected = yes; then |
| 2752 | # We found a bogon in the path, so make sure we never use it. |
| 2753 | set dummy $ac_cv_prog_CC |
| 2754 | shift |
| 2755 | if test $# != 0; then |
| 2756 | # We chose a different compiler from the bogus one. |
| 2757 | # However, it has the same basename, so the bogon will be chosen |
| 2758 | # first if we set CC to just the basename; use the full file name. |
| 2759 | shift |
| 2760 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2761 | fi |
| 2762 | fi |
| 2763 | fi |
| 2764 | fi |
| 2765 | CC=$ac_cv_prog_CC |
| 2766 | if test -n "$CC"; then |
| 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2768 | $as_echo "$CC" >&6; } |
| 2769 | else |
| 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2771 | $as_echo "no" >&6; } |
| 2772 | fi |
| 2773 | |
| 2774 | |
| 2775 | fi |
| 2776 | if test -z "$CC"; then |
| 2777 | if test -n "$ac_tool_prefix"; then |
| 2778 | for ac_prog in cl.exe |
| 2779 | do |
| 2780 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2781 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2783 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2784 | if ${ac_cv_prog_CC+:} false; then : |
| 2785 | $as_echo_n "(cached) " >&6 |
| 2786 | else |
| 2787 | if test -n "$CC"; then |
| 2788 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2789 | else |
| 2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2791 | for as_dir in $PATH |
| 2792 | do |
| 2793 | IFS=$as_save_IFS |
| 2794 | test -z "$as_dir" && as_dir=. |
| 2795 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2797 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2799 | break 2 |
| 2800 | fi |
| 2801 | done |
| 2802 | done |
| 2803 | IFS=$as_save_IFS |
| 2804 | |
| 2805 | fi |
| 2806 | fi |
| 2807 | CC=$ac_cv_prog_CC |
| 2808 | if test -n "$CC"; then |
| 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2810 | $as_echo "$CC" >&6; } |
| 2811 | else |
| 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2813 | $as_echo "no" >&6; } |
| 2814 | fi |
| 2815 | |
| 2816 | |
| 2817 | test -n "$CC" && break |
| 2818 | done |
| 2819 | fi |
| 2820 | if test -z "$CC"; then |
| 2821 | ac_ct_CC=$CC |
| 2822 | for ac_prog in cl.exe |
| 2823 | do |
| 2824 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2825 | set dummy $ac_prog; ac_word=$2 |
| 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2827 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2828 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2829 | $as_echo_n "(cached) " >&6 |
| 2830 | else |
| 2831 | if test -n "$ac_ct_CC"; then |
| 2832 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2833 | else |
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2835 | for as_dir in $PATH |
| 2836 | do |
| 2837 | IFS=$as_save_IFS |
| 2838 | test -z "$as_dir" && as_dir=. |
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2841 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2843 | break 2 |
| 2844 | fi |
| 2845 | done |
| 2846 | done |
| 2847 | IFS=$as_save_IFS |
| 2848 | |
| 2849 | fi |
| 2850 | fi |
| 2851 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2852 | if test -n "$ac_ct_CC"; then |
| 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2854 | $as_echo "$ac_ct_CC" >&6; } |
| 2855 | else |
| 2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2857 | $as_echo "no" >&6; } |
| 2858 | fi |
| 2859 | |
| 2860 | |
| 2861 | test -n "$ac_ct_CC" && break |
| 2862 | done |
| 2863 | |
| 2864 | if test "x$ac_ct_CC" = x; then |
| 2865 | CC="" |
| 2866 | else |
| 2867 | case $cross_compiling:$ac_tool_warned in |
| 2868 | yes:) |
| 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2871 | ac_tool_warned=yes ;; |
| 2872 | esac |
| 2873 | CC=$ac_ct_CC |
| 2874 | fi |
| 2875 | fi |
| 2876 | |
| 2877 | fi |
| 2878 | |
| 2879 | |
| 2880 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2882 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2883 | See \`config.log' for more details" "$LINENO" 5; } |
| 2884 | |
| 2885 | # Provide some information about the compiler. |
| 2886 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2887 | set X $ac_compile |
| 2888 | ac_compiler=$2 |
| 2889 | for ac_option in --version -v -V -qversion; do |
| 2890 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2891 | case "(($ac_try" in |
| 2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2893 | *) ac_try_echo=$ac_try;; |
| 2894 | esac |
| 2895 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2896 | $as_echo "$ac_try_echo"; } >&5 |
| 2897 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2898 | ac_status=$? |
| 2899 | if test -s conftest.err; then |
| 2900 | sed '10a\ |
| 2901 | ... rest of stderr output deleted ... |
| 2902 | 10q' conftest.err >conftest.er1 |
| 2903 | cat conftest.er1 >&5 |
| 2904 | fi |
| 2905 | rm -f conftest.er1 conftest.err |
| 2906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2907 | test $ac_status = 0; } |
| 2908 | done |
| 2909 | |
| 2910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2911 | /* end confdefs.h. */ |
| 2912 | |
| 2913 | int |
| 2914 | main () |
| 2915 | { |
| 2916 | |
| 2917 | ; |
| 2918 | return 0; |
| 2919 | } |
| 2920 | _ACEOF |
| 2921 | ac_clean_files_save=$ac_clean_files |
| 2922 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2923 | # Try to create an executable without -o first, disregard a.out. |
| 2924 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2925 | # of exeext. |
| 2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2927 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2928 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2929 | |
| 2930 | # The possible output files: |
| 2931 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2932 | |
| 2933 | ac_rmfiles= |
| 2934 | for ac_file in $ac_files |
| 2935 | do |
| 2936 | case $ac_file in |
| 2937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2938 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2939 | esac |
| 2940 | done |
| 2941 | rm -f $ac_rmfiles |
| 2942 | |
| 2943 | if { { ac_try="$ac_link_default" |
| 2944 | case "(($ac_try" in |
| 2945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2946 | *) ac_try_echo=$ac_try;; |
| 2947 | esac |
| 2948 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2949 | $as_echo "$ac_try_echo"; } >&5 |
| 2950 | (eval "$ac_link_default") 2>&5 |
| 2951 | ac_status=$? |
| 2952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2953 | test $ac_status = 0; }; then : |
| 2954 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2955 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2956 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2957 | # so that the user can short-circuit this test for compilers unknown to |
| 2958 | # Autoconf. |
| 2959 | for ac_file in $ac_files '' |
| 2960 | do |
| 2961 | test -f "$ac_file" || continue |
| 2962 | case $ac_file in |
| 2963 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2964 | ;; |
| 2965 | [ab].out ) |
| 2966 | # We found the default executable, but exeext='' is most |
| 2967 | # certainly right. |
| 2968 | break;; |
| 2969 | *.* ) |
| 2970 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2971 | then :; else |
| 2972 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2973 | fi |
| 2974 | # We set ac_cv_exeext here because the later test for it is not |
| 2975 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2976 | # argument, so we may need to know it at that point already. |
| 2977 | # Even if this section looks crufty: it has the advantage of |
| 2978 | # actually working. |
| 2979 | break;; |
| 2980 | * ) |
| 2981 | break;; |
| 2982 | esac |
| 2983 | done |
| 2984 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2985 | |
| 2986 | else |
| 2987 | ac_file='' |
| 2988 | fi |
| 2989 | if test -z "$ac_file"; then : |
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2991 | $as_echo "no" >&6; } |
| 2992 | $as_echo "$as_me: failed program was:" >&5 |
| 2993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2994 | |
| 2995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2997 | as_fn_error 77 "C compiler cannot create executables |
| 2998 | See \`config.log' for more details" "$LINENO" 5; } |
| 2999 | else |
| 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3001 | $as_echo "yes" >&6; } |
| 3002 | fi |
| 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3004 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3006 | $as_echo "$ac_file" >&6; } |
| 3007 | ac_exeext=$ac_cv_exeext |
| 3008 | |
| 3009 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3010 | ac_clean_files=$ac_clean_files_save |
| 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3012 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3013 | if { { ac_try="$ac_link" |
| 3014 | case "(($ac_try" in |
| 3015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3016 | *) ac_try_echo=$ac_try;; |
| 3017 | esac |
| 3018 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3019 | $as_echo "$ac_try_echo"; } >&5 |
| 3020 | (eval "$ac_link") 2>&5 |
| 3021 | ac_status=$? |
| 3022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3023 | test $ac_status = 0; }; then : |
| 3024 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3025 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3026 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3027 | # `rm'. |
| 3028 | for ac_file in conftest.exe conftest conftest.*; do |
| 3029 | test -f "$ac_file" || continue |
| 3030 | case $ac_file in |
| 3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3032 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3033 | break;; |
| 3034 | * ) break;; |
| 3035 | esac |
| 3036 | done |
| 3037 | else |
| 3038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3040 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3041 | See \`config.log' for more details" "$LINENO" 5; } |
| 3042 | fi |
| 3043 | rm -f conftest conftest$ac_cv_exeext |
| 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3045 | $as_echo "$ac_cv_exeext" >&6; } |
| 3046 | |
| 3047 | rm -f conftest.$ac_ext |
| 3048 | EXEEXT=$ac_cv_exeext |
| 3049 | ac_exeext=$EXEEXT |
| 3050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3051 | /* end confdefs.h. */ |
| 3052 | #include <stdio.h> |
| 3053 | int |
| 3054 | main () |
| 3055 | { |
| 3056 | FILE *f = fopen ("conftest.out", "w"); |
| 3057 | return ferror (f) || fclose (f) != 0; |
| 3058 | |
| 3059 | ; |
| 3060 | return 0; |
| 3061 | } |
| 3062 | _ACEOF |
| 3063 | ac_clean_files="$ac_clean_files conftest.out" |
| 3064 | # Check that the compiler produces executables we can run. If not, either |
| 3065 | # the compiler is broken, or we cross compile. |
| 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3067 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3068 | if test "$cross_compiling" != yes; then |
| 3069 | { { ac_try="$ac_link" |
| 3070 | case "(($ac_try" in |
| 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3072 | *) ac_try_echo=$ac_try;; |
| 3073 | esac |
| 3074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3075 | $as_echo "$ac_try_echo"; } >&5 |
| 3076 | (eval "$ac_link") 2>&5 |
| 3077 | ac_status=$? |
| 3078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3079 | test $ac_status = 0; } |
| 3080 | if { ac_try='./conftest$ac_cv_exeext' |
| 3081 | { { case "(($ac_try" in |
| 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3083 | *) ac_try_echo=$ac_try;; |
| 3084 | esac |
| 3085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3086 | $as_echo "$ac_try_echo"; } >&5 |
| 3087 | (eval "$ac_try") 2>&5 |
| 3088 | ac_status=$? |
| 3089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3090 | test $ac_status = 0; }; }; then |
| 3091 | cross_compiling=no |
| 3092 | else |
| 3093 | if test "$cross_compiling" = maybe; then |
| 3094 | cross_compiling=yes |
| 3095 | else |
| 3096 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3097 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3098 | as_fn_error $? "cannot run C compiled programs. |
| 3099 | If you meant to cross compile, use \`--host'. |
| 3100 | See \`config.log' for more details" "$LINENO" 5; } |
| 3101 | fi |
| 3102 | fi |
| 3103 | fi |
| 3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3105 | $as_echo "$cross_compiling" >&6; } |
| 3106 | |
| 3107 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3108 | ac_clean_files=$ac_clean_files_save |
| 3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3110 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3111 | if ${ac_cv_objext+:} false; then : |
| 3112 | $as_echo_n "(cached) " >&6 |
| 3113 | else |
| 3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3115 | /* end confdefs.h. */ |
| 3116 | |
| 3117 | int |
| 3118 | main () |
| 3119 | { |
| 3120 | |
| 3121 | ; |
| 3122 | return 0; |
| 3123 | } |
| 3124 | _ACEOF |
| 3125 | rm -f conftest.o conftest.obj |
| 3126 | if { { ac_try="$ac_compile" |
| 3127 | case "(($ac_try" in |
| 3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3129 | *) ac_try_echo=$ac_try;; |
| 3130 | esac |
| 3131 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3132 | $as_echo "$ac_try_echo"; } >&5 |
| 3133 | (eval "$ac_compile") 2>&5 |
| 3134 | ac_status=$? |
| 3135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3136 | test $ac_status = 0; }; then : |
| 3137 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3138 | test -f "$ac_file" || continue; |
| 3139 | case $ac_file in |
| 3140 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3141 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3142 | break;; |
| 3143 | esac |
| 3144 | done |
| 3145 | else |
| 3146 | $as_echo "$as_me: failed program was:" >&5 |
| 3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3148 | |
| 3149 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3150 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3151 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3152 | See \`config.log' for more details" "$LINENO" 5; } |
| 3153 | fi |
| 3154 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3155 | fi |
| 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3157 | $as_echo "$ac_cv_objext" >&6; } |
| 3158 | OBJEXT=$ac_cv_objext |
| 3159 | ac_objext=$OBJEXT |
| 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3161 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3162 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3163 | $as_echo_n "(cached) " >&6 |
| 3164 | else |
| 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3166 | /* end confdefs.h. */ |
| 3167 | |
| 3168 | int |
| 3169 | main () |
| 3170 | { |
| 3171 | #ifndef __GNUC__ |
| 3172 | choke me |
| 3173 | #endif |
| 3174 | |
| 3175 | ; |
| 3176 | return 0; |
| 3177 | } |
| 3178 | _ACEOF |
| 3179 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3180 | ac_compiler_gnu=yes |
| 3181 | else |
| 3182 | ac_compiler_gnu=no |
| 3183 | fi |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3185 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3186 | |
| 3187 | fi |
| 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3189 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3190 | if test $ac_compiler_gnu = yes; then |
| 3191 | GCC=yes |
| 3192 | else |
| 3193 | GCC= |
| 3194 | fi |
| 3195 | ac_test_CFLAGS=${CFLAGS+set} |
| 3196 | ac_save_CFLAGS=$CFLAGS |
| 3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3198 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3199 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3200 | $as_echo_n "(cached) " >&6 |
| 3201 | else |
| 3202 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3203 | ac_c_werror_flag=yes |
| 3204 | ac_cv_prog_cc_g=no |
| 3205 | CFLAGS="-g" |
| 3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3207 | /* end confdefs.h. */ |
| 3208 | |
| 3209 | int |
| 3210 | main () |
| 3211 | { |
| 3212 | |
| 3213 | ; |
| 3214 | return 0; |
| 3215 | } |
| 3216 | _ACEOF |
| 3217 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3218 | ac_cv_prog_cc_g=yes |
| 3219 | else |
| 3220 | CFLAGS="" |
| 3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3222 | /* end confdefs.h. */ |
| 3223 | |
| 3224 | int |
| 3225 | main () |
| 3226 | { |
| 3227 | |
| 3228 | ; |
| 3229 | return 0; |
| 3230 | } |
| 3231 | _ACEOF |
| 3232 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3233 | |
| 3234 | else |
| 3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3236 | CFLAGS="-g" |
| 3237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3238 | /* end confdefs.h. */ |
| 3239 | |
| 3240 | int |
| 3241 | main () |
| 3242 | { |
| 3243 | |
| 3244 | ; |
| 3245 | return 0; |
| 3246 | } |
| 3247 | _ACEOF |
| 3248 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3249 | ac_cv_prog_cc_g=yes |
| 3250 | fi |
| 3251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3252 | fi |
| 3253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3254 | fi |
| 3255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3256 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3257 | fi |
| 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3259 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3260 | if test "$ac_test_CFLAGS" = set; then |
| 3261 | CFLAGS=$ac_save_CFLAGS |
| 3262 | elif test $ac_cv_prog_cc_g = yes; then |
| 3263 | if test "$GCC" = yes; then |
| 3264 | CFLAGS="-g -O2" |
| 3265 | else |
| 3266 | CFLAGS="-g" |
| 3267 | fi |
| 3268 | else |
| 3269 | if test "$GCC" = yes; then |
| 3270 | CFLAGS="-O2" |
| 3271 | else |
| 3272 | CFLAGS= |
| 3273 | fi |
| 3274 | fi |
| 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3276 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3277 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3278 | $as_echo_n "(cached) " >&6 |
| 3279 | else |
| 3280 | ac_cv_prog_cc_c89=no |
| 3281 | ac_save_CC=$CC |
| 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3283 | /* end confdefs.h. */ |
| 3284 | #include <stdarg.h> |
| 3285 | #include <stdio.h> |
| 3286 | struct stat; |
| 3287 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3288 | struct buf { int x; }; |
| 3289 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3290 | static char *e (p, i) |
| 3291 | char **p; |
| 3292 | int i; |
| 3293 | { |
| 3294 | return p[i]; |
| 3295 | } |
| 3296 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3297 | { |
| 3298 | char *s; |
| 3299 | va_list v; |
| 3300 | va_start (v,p); |
| 3301 | s = g (p, va_arg (v,int)); |
| 3302 | va_end (v); |
| 3303 | return s; |
| 3304 | } |
| 3305 | |
| 3306 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3307 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3308 | These don't provoke an error unfortunately, instead are silently treated |
| 3309 | as 'x'. The following induces an error, until -std is added to get |
| 3310 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3311 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3312 | that's true only with -std. */ |
| 3313 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3314 | |
| 3315 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3316 | inside strings and character constants. */ |
| 3317 | #define FOO(x) 'x' |
| 3318 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3319 | |
| 3320 | int test (int i, double x); |
| 3321 | struct s1 {int (*f) (int a);}; |
| 3322 | struct s2 {int (*f) (double a);}; |
| 3323 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3324 | int argc; |
| 3325 | char **argv; |
| 3326 | int |
| 3327 | main () |
| 3328 | { |
| 3329 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3330 | ; |
| 3331 | return 0; |
| 3332 | } |
| 3333 | _ACEOF |
| 3334 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3335 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3336 | do |
| 3337 | CC="$ac_save_CC $ac_arg" |
| 3338 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3339 | ac_cv_prog_cc_c89=$ac_arg |
| 3340 | fi |
| 3341 | rm -f core conftest.err conftest.$ac_objext |
| 3342 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3343 | done |
| 3344 | rm -f conftest.$ac_ext |
| 3345 | CC=$ac_save_CC |
| 3346 | |
| 3347 | fi |
| 3348 | # AC_CACHE_VAL |
| 3349 | case "x$ac_cv_prog_cc_c89" in |
| 3350 | x) |
| 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3352 | $as_echo "none needed" >&6; } ;; |
| 3353 | xno) |
| 3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3355 | $as_echo "unsupported" >&6; } ;; |
| 3356 | *) |
| 3357 | CC="$CC $ac_cv_prog_cc_c89" |
| 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3359 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3360 | esac |
| 3361 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3362 | |
| 3363 | fi |
| 3364 | |
| 3365 | ac_ext=c |
| 3366 | ac_cpp='$CPP $CPPFLAGS' |
| 3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3370 | |
| 3371 | |
| 3372 | ac_ext=c |
| 3373 | ac_cpp='$CPP $CPPFLAGS' |
| 3374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3378 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3379 | # On Suns, sometimes $CPP names a directory. |
| 3380 | if test -n "$CPP" && test -d "$CPP"; then |
| 3381 | CPP= |
| 3382 | fi |
| 3383 | if test -z "$CPP"; then |
| 3384 | if ${ac_cv_prog_CPP+:} false; then : |
| 3385 | $as_echo_n "(cached) " >&6 |
| 3386 | else |
| 3387 | # Double quotes because CPP needs to be expanded |
| 3388 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3389 | do |
| 3390 | ac_preproc_ok=false |
| 3391 | for ac_c_preproc_warn_flag in '' yes |
| 3392 | do |
| 3393 | # Use a header file that comes with gcc, so configuring glibc |
| 3394 | # with a fresh cross-compiler works. |
| 3395 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3396 | # <limits.h> exists even on freestanding compilers. |
| 3397 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3398 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3400 | /* end confdefs.h. */ |
| 3401 | #ifdef __STDC__ |
| 3402 | # include <limits.h> |
| 3403 | #else |
| 3404 | # include <assert.h> |
| 3405 | #endif |
| 3406 | Syntax error |
| 3407 | _ACEOF |
| 3408 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3409 | |
| 3410 | else |
| 3411 | # Broken: fails on valid input. |
| 3412 | continue |
| 3413 | fi |
| 3414 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3415 | |
| 3416 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3417 | # can be detected and how. |
| 3418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3419 | /* end confdefs.h. */ |
| 3420 | #include <ac_nonexistent.h> |
| 3421 | _ACEOF |
| 3422 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3423 | # Broken: success on invalid input. |
| 3424 | continue |
| 3425 | else |
| 3426 | # Passes both tests. |
| 3427 | ac_preproc_ok=: |
| 3428 | break |
| 3429 | fi |
| 3430 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3431 | |
| 3432 | done |
| 3433 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3434 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3435 | if $ac_preproc_ok; then : |
| 3436 | break |
| 3437 | fi |
| 3438 | |
| 3439 | done |
| 3440 | ac_cv_prog_CPP=$CPP |
| 3441 | |
| 3442 | fi |
| 3443 | CPP=$ac_cv_prog_CPP |
| 3444 | else |
| 3445 | ac_cv_prog_CPP=$CPP |
| 3446 | fi |
| 3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3448 | $as_echo "$CPP" >&6; } |
| 3449 | ac_preproc_ok=false |
| 3450 | for ac_c_preproc_warn_flag in '' yes |
| 3451 | do |
| 3452 | # Use a header file that comes with gcc, so configuring glibc |
| 3453 | # with a fresh cross-compiler works. |
| 3454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3455 | # <limits.h> exists even on freestanding compilers. |
| 3456 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3457 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3459 | /* end confdefs.h. */ |
| 3460 | #ifdef __STDC__ |
| 3461 | # include <limits.h> |
| 3462 | #else |
| 3463 | # include <assert.h> |
| 3464 | #endif |
| 3465 | Syntax error |
| 3466 | _ACEOF |
| 3467 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3468 | |
| 3469 | else |
| 3470 | # Broken: fails on valid input. |
| 3471 | continue |
| 3472 | fi |
| 3473 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3474 | |
| 3475 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3476 | # can be detected and how. |
| 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3478 | /* end confdefs.h. */ |
| 3479 | #include <ac_nonexistent.h> |
| 3480 | _ACEOF |
| 3481 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3482 | # Broken: success on invalid input. |
| 3483 | continue |
| 3484 | else |
| 3485 | # Passes both tests. |
| 3486 | ac_preproc_ok=: |
| 3487 | break |
| 3488 | fi |
| 3489 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3490 | |
| 3491 | done |
| 3492 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3493 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3494 | if $ac_preproc_ok; then : |
| 3495 | |
| 3496 | else |
| 3497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3499 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3500 | See \`config.log' for more details" "$LINENO" 5; } |
| 3501 | fi |
| 3502 | |
| 3503 | ac_ext=c |
| 3504 | ac_cpp='$CPP $CPPFLAGS' |
| 3505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3508 | |
| 3509 | |
| 3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3511 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3512 | if ${ac_cv_path_GREP+:} false; then : |
| 3513 | $as_echo_n "(cached) " >&6 |
| 3514 | else |
| 3515 | if test -z "$GREP"; then |
| 3516 | ac_path_GREP_found=false |
| 3517 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3519 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3520 | do |
| 3521 | IFS=$as_save_IFS |
| 3522 | test -z "$as_dir" && as_dir=. |
| 3523 | for ac_prog in grep ggrep; do |
| 3524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3525 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3526 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3527 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3528 | # Check for GNU $ac_path_GREP |
| 3529 | case `"$ac_path_GREP" --version 2>&1` in |
| 3530 | *GNU*) |
| 3531 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3532 | *) |
| 3533 | ac_count=0 |
| 3534 | $as_echo_n 0123456789 >"conftest.in" |
| 3535 | while : |
| 3536 | do |
| 3537 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3538 | mv "conftest.tmp" "conftest.in" |
| 3539 | cp "conftest.in" "conftest.nl" |
| 3540 | $as_echo 'GREP' >> "conftest.nl" |
| 3541 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3542 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3543 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3544 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3545 | # Best one so far, save it but keep looking for a better one |
| 3546 | ac_cv_path_GREP="$ac_path_GREP" |
| 3547 | ac_path_GREP_max=$ac_count |
| 3548 | fi |
| 3549 | # 10*(2^10) chars as input seems more than enough |
| 3550 | test $ac_count -gt 10 && break |
| 3551 | done |
| 3552 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3553 | esac |
| 3554 | |
| 3555 | $ac_path_GREP_found && break 3 |
| 3556 | done |
| 3557 | done |
| 3558 | done |
| 3559 | IFS=$as_save_IFS |
| 3560 | if test -z "$ac_cv_path_GREP"; then |
| 3561 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3562 | fi |
| 3563 | else |
| 3564 | ac_cv_path_GREP=$GREP |
| 3565 | fi |
| 3566 | |
| 3567 | fi |
| 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3569 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3570 | GREP="$ac_cv_path_GREP" |
| 3571 | |
| 3572 | |
| 3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3574 | $as_echo_n "checking for egrep... " >&6; } |
| 3575 | if ${ac_cv_path_EGREP+:} false; then : |
| 3576 | $as_echo_n "(cached) " >&6 |
| 3577 | else |
| 3578 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3579 | then ac_cv_path_EGREP="$GREP -E" |
| 3580 | else |
| 3581 | if test -z "$EGREP"; then |
| 3582 | ac_path_EGREP_found=false |
| 3583 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3585 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3586 | do |
| 3587 | IFS=$as_save_IFS |
| 3588 | test -z "$as_dir" && as_dir=. |
| 3589 | for ac_prog in egrep; do |
| 3590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3591 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3592 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3593 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3594 | # Check for GNU $ac_path_EGREP |
| 3595 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3596 | *GNU*) |
| 3597 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3598 | *) |
| 3599 | ac_count=0 |
| 3600 | $as_echo_n 0123456789 >"conftest.in" |
| 3601 | while : |
| 3602 | do |
| 3603 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3604 | mv "conftest.tmp" "conftest.in" |
| 3605 | cp "conftest.in" "conftest.nl" |
| 3606 | $as_echo 'EGREP' >> "conftest.nl" |
| 3607 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3608 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3609 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3610 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3611 | # Best one so far, save it but keep looking for a better one |
| 3612 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3613 | ac_path_EGREP_max=$ac_count |
| 3614 | fi |
| 3615 | # 10*(2^10) chars as input seems more than enough |
| 3616 | test $ac_count -gt 10 && break |
| 3617 | done |
| 3618 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3619 | esac |
| 3620 | |
| 3621 | $ac_path_EGREP_found && break 3 |
| 3622 | done |
| 3623 | done |
| 3624 | done |
| 3625 | IFS=$as_save_IFS |
| 3626 | if test -z "$ac_cv_path_EGREP"; then |
| 3627 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3628 | fi |
| 3629 | else |
| 3630 | ac_cv_path_EGREP=$EGREP |
| 3631 | fi |
| 3632 | |
| 3633 | fi |
| 3634 | fi |
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3636 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3637 | EGREP="$ac_cv_path_EGREP" |
| 3638 | |
| 3639 | |
| 3640 | if test $ac_cv_c_compiler_gnu = yes; then |
| 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| 3642 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| 3643 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
| 3644 | $as_echo_n "(cached) " >&6 |
| 3645 | else |
| 3646 | ac_pattern="Autoconf.*'x'" |
| 3647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3648 | /* end confdefs.h. */ |
| 3649 | #include <sgtty.h> |
| 3650 | Autoconf TIOCGETP |
| 3651 | _ACEOF |
| 3652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3653 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| 3654 | ac_cv_prog_gcc_traditional=yes |
| 3655 | else |
| 3656 | ac_cv_prog_gcc_traditional=no |
| 3657 | fi |
| 3658 | rm -f conftest* |
| 3659 | |
| 3660 | |
| 3661 | if test $ac_cv_prog_gcc_traditional = no; then |
| 3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3663 | /* end confdefs.h. */ |
| 3664 | #include <termio.h> |
| 3665 | Autoconf TCGETA |
| 3666 | _ACEOF |
| 3667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3668 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| 3669 | ac_cv_prog_gcc_traditional=yes |
| 3670 | fi |
| 3671 | rm -f conftest* |
| 3672 | |
| 3673 | fi |
| 3674 | fi |
| 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| 3676 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 3677 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 3678 | CC="$CC -traditional" |
| 3679 | fi |
| 3680 | fi |
| 3681 | |
| 3682 | ac_aux_dir= |
| 3683 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3684 | if test -f "$ac_dir/install-sh"; then |
| 3685 | ac_aux_dir=$ac_dir |
| 3686 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3687 | break |
| 3688 | elif test -f "$ac_dir/install.sh"; then |
| 3689 | ac_aux_dir=$ac_dir |
| 3690 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3691 | break |
| 3692 | elif test -f "$ac_dir/shtool"; then |
| 3693 | ac_aux_dir=$ac_dir |
| 3694 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3695 | break |
| 3696 | fi |
| 3697 | done |
| 3698 | if test -z "$ac_aux_dir"; then |
| 3699 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3700 | fi |
| 3701 | |
| 3702 | # These three variables are undocumented and unsupported, |
| 3703 | # and are intended to be withdrawn in a future Autoconf release. |
| 3704 | # They can cause serious problems if a builder's source tree is in a directory |
| 3705 | # whose full name contains unusual characters. |
| 3706 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3707 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3708 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3709 | |
| 3710 | |
| 3711 | # Find a good install program. We prefer a C program (faster), |
| 3712 | # so one script is as good as another. But avoid the broken or |
| 3713 | # incompatible versions: |
| 3714 | # SysV /etc/install, /usr/sbin/install |
| 3715 | # SunOS /usr/etc/install |
| 3716 | # IRIX /sbin/install |
| 3717 | # AIX /bin/install |
| 3718 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3719 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3720 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3721 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3722 | # OS/2's system install, which has a completely different semantic |
| 3723 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3724 | # Reject install programs that cannot install multiple files. |
| 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3726 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3727 | if test -z "$INSTALL"; then |
| 3728 | if ${ac_cv_path_install+:} false; then : |
| 3729 | $as_echo_n "(cached) " >&6 |
| 3730 | else |
| 3731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3732 | for as_dir in $PATH |
| 3733 | do |
| 3734 | IFS=$as_save_IFS |
| 3735 | test -z "$as_dir" && as_dir=. |
| 3736 | # Account for people who put trailing slashes in PATH elements. |
| 3737 | case $as_dir/ in #(( |
| 3738 | ./ | .// | /[cC]/* | \ |
| 3739 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3740 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3741 | /usr/ucb/* ) ;; |
| 3742 | *) |
| 3743 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3744 | # Don't use installbsd from OSF since it installs stuff as root |
| 3745 | # by default. |
| 3746 | for ac_prog in ginstall scoinst install; do |
| 3747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3748 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3749 | if test $ac_prog = install && |
| 3750 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3751 | # AIX install. It has an incompatible calling convention. |
| 3752 | : |
| 3753 | elif test $ac_prog = install && |
| 3754 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3755 | # program-specific install script used by HP pwplus--don't use. |
| 3756 | : |
| 3757 | else |
| 3758 | rm -rf conftest.one conftest.two conftest.dir |
| 3759 | echo one > conftest.one |
| 3760 | echo two > conftest.two |
| 3761 | mkdir conftest.dir |
| 3762 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3763 | test -s conftest.one && test -s conftest.two && |
| 3764 | test -s conftest.dir/conftest.one && |
| 3765 | test -s conftest.dir/conftest.two |
| 3766 | then |
| 3767 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3768 | break 3 |
| 3769 | fi |
| 3770 | fi |
| 3771 | fi |
| 3772 | done |
| 3773 | done |
| 3774 | ;; |
| 3775 | esac |
| 3776 | |
| 3777 | done |
| 3778 | IFS=$as_save_IFS |
| 3779 | |
| 3780 | rm -rf conftest.one conftest.two conftest.dir |
| 3781 | |
| 3782 | fi |
| 3783 | if test "${ac_cv_path_install+set}" = set; then |
| 3784 | INSTALL=$ac_cv_path_install |
| 3785 | else |
| 3786 | # As a last resort, use the slow shell script. Don't cache a |
| 3787 | # value for INSTALL within a source directory, because that will |
| 3788 | # break other packages using the cache if that directory is |
| 3789 | # removed, or if the value is a relative name. |
| 3790 | INSTALL=$ac_install_sh |
| 3791 | fi |
| 3792 | fi |
| 3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3794 | $as_echo "$INSTALL" >&6; } |
| 3795 | |
| 3796 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3797 | # It thinks the first close brace ends the variable substitution. |
| 3798 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3799 | |
| 3800 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3801 | |
| 3802 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3803 | |
| 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 3805 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 3806 | LN_S=$as_ln_s |
| 3807 | if test "$LN_S" = "ln -s"; then |
| 3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3809 | $as_echo "yes" >&6; } |
| 3810 | else |
| 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 3812 | $as_echo "no, using $LN_S" >&6; } |
| 3813 | fi |
| 3814 | |
| 3815 | |
| 3816 | # Extract the first word of "install-info", so it can be a program name with args. |
| 3817 | set dummy install-info; ac_word=$2 |
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3819 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3820 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
| 3821 | $as_echo_n "(cached) " >&6 |
| 3822 | else |
| 3823 | case $INSTALL_INFO in |
| 3824 | [\\/]* | ?:[\\/]*) |
| 3825 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 3826 | ;; |
| 3827 | *) |
| 3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3829 | for as_dir in $PATH |
| 3830 | do |
| 3831 | IFS=$as_save_IFS |
| 3832 | test -z "$as_dir" && as_dir=. |
| 3833 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3835 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 3836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3837 | break 2 |
| 3838 | fi |
| 3839 | done |
| 3840 | done |
| 3841 | IFS=$as_save_IFS |
| 3842 | |
| 3843 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="""" |
| 3844 | ;; |
| 3845 | esac |
| 3846 | fi |
| 3847 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 3848 | if test -n "$INSTALL_INFO"; then |
| 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
| 3850 | $as_echo "$INSTALL_INFO" >&6; } |
| 3851 | else |
| 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3853 | $as_echo "no" >&6; } |
| 3854 | fi |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3859 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3860 | if ${ac_cv_header_stdc+:} false; then : |
| 3861 | $as_echo_n "(cached) " >&6 |
| 3862 | else |
| 3863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3864 | /* end confdefs.h. */ |
| 3865 | #include <stdlib.h> |
| 3866 | #include <stdarg.h> |
| 3867 | #include <string.h> |
| 3868 | #include <float.h> |
| 3869 | |
| 3870 | int |
| 3871 | main () |
| 3872 | { |
| 3873 | |
| 3874 | ; |
| 3875 | return 0; |
| 3876 | } |
| 3877 | _ACEOF |
| 3878 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3879 | ac_cv_header_stdc=yes |
| 3880 | else |
| 3881 | ac_cv_header_stdc=no |
| 3882 | fi |
| 3883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3884 | |
| 3885 | if test $ac_cv_header_stdc = yes; then |
| 3886 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3888 | /* end confdefs.h. */ |
| 3889 | #include <string.h> |
| 3890 | |
| 3891 | _ACEOF |
| 3892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3893 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3894 | |
| 3895 | else |
| 3896 | ac_cv_header_stdc=no |
| 3897 | fi |
| 3898 | rm -f conftest* |
| 3899 | |
| 3900 | fi |
| 3901 | |
| 3902 | if test $ac_cv_header_stdc = yes; then |
| 3903 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3905 | /* end confdefs.h. */ |
| 3906 | #include <stdlib.h> |
| 3907 | |
| 3908 | _ACEOF |
| 3909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3910 | $EGREP "free" >/dev/null 2>&1; then : |
| 3911 | |
| 3912 | else |
| 3913 | ac_cv_header_stdc=no |
| 3914 | fi |
| 3915 | rm -f conftest* |
| 3916 | |
| 3917 | fi |
| 3918 | |
| 3919 | if test $ac_cv_header_stdc = yes; then |
| 3920 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3921 | if test "$cross_compiling" = yes; then : |
| 3922 | : |
| 3923 | else |
| 3924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3925 | /* end confdefs.h. */ |
| 3926 | #include <ctype.h> |
| 3927 | #include <stdlib.h> |
| 3928 | #if ((' ' & 0x0FF) == 0x020) |
| 3929 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3930 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3931 | #else |
| 3932 | # define ISLOWER(c) \ |
| 3933 | (('a' <= (c) && (c) <= 'i') \ |
| 3934 | || ('j' <= (c) && (c) <= 'r') \ |
| 3935 | || ('s' <= (c) && (c) <= 'z')) |
| 3936 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3937 | #endif |
| 3938 | |
| 3939 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3940 | int |
| 3941 | main () |
| 3942 | { |
| 3943 | int i; |
| 3944 | for (i = 0; i < 256; i++) |
| 3945 | if (XOR (islower (i), ISLOWER (i)) |
| 3946 | || toupper (i) != TOUPPER (i)) |
| 3947 | return 2; |
| 3948 | return 0; |
| 3949 | } |
| 3950 | _ACEOF |
| 3951 | if ac_fn_c_try_run "$LINENO"; then : |
| 3952 | |
| 3953 | else |
| 3954 | ac_cv_header_stdc=no |
| 3955 | fi |
| 3956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3957 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3958 | fi |
| 3959 | |
| 3960 | fi |
| 3961 | fi |
| 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3963 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3964 | if test $ac_cv_header_stdc = yes; then |
| 3965 | |
| 3966 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3967 | |
| 3968 | fi |
| 3969 | |
| 3970 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3971 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3972 | inttypes.h stdint.h unistd.h |
| 3973 | do : |
| 3974 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3975 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3976 | " |
| 3977 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3978 | cat >>confdefs.h <<_ACEOF |
| 3979 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3980 | _ACEOF |
| 3981 | |
| 3982 | fi |
| 3983 | |
| 3984 | done |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 3989 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 3990 | MINIX=yes |
| 3991 | else |
| 3992 | MINIX= |
| 3993 | fi |
| 3994 | |
| 3995 | |
| 3996 | if test "$MINIX" = yes; then |
| 3997 | |
| 3998 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 3999 | |
| 4000 | |
| 4001 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4002 | |
| 4003 | |
| 4004 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4005 | |
| 4006 | fi |
| 4007 | |
| 4008 | |
| 4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4010 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4011 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4012 | $as_echo_n "(cached) " >&6 |
| 4013 | else |
| 4014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4015 | /* end confdefs.h. */ |
| 4016 | |
| 4017 | # define __EXTENSIONS__ 1 |
| 4018 | $ac_includes_default |
| 4019 | int |
| 4020 | main () |
| 4021 | { |
| 4022 | |
| 4023 | ; |
| 4024 | return 0; |
| 4025 | } |
| 4026 | _ACEOF |
| 4027 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4028 | ac_cv_safe_to_define___extensions__=yes |
| 4029 | else |
| 4030 | ac_cv_safe_to_define___extensions__=no |
| 4031 | fi |
| 4032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4033 | fi |
| 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4035 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4036 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4037 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4038 | |
| 4039 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4040 | |
| 4041 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4042 | |
| 4043 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4044 | |
| 4045 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4046 | |
| 4047 | |
| 4048 | # Make sure we can run config.sub. |
| 4049 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4050 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4051 | |
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4053 | $as_echo_n "checking build system type... " >&6; } |
| 4054 | if ${ac_cv_build+:} false; then : |
| 4055 | $as_echo_n "(cached) " >&6 |
| 4056 | else |
| 4057 | ac_build_alias=$build_alias |
| 4058 | test "x$ac_build_alias" = x && |
| 4059 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4060 | test "x$ac_build_alias" = x && |
| 4061 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4062 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4063 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4064 | |
| 4065 | fi |
| 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4067 | $as_echo "$ac_cv_build" >&6; } |
| 4068 | case $ac_cv_build in |
| 4069 | *-*-*) ;; |
| 4070 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4071 | esac |
| 4072 | build=$ac_cv_build |
| 4073 | ac_save_IFS=$IFS; IFS='-' |
| 4074 | set x $ac_cv_build |
| 4075 | shift |
| 4076 | build_cpu=$1 |
| 4077 | build_vendor=$2 |
| 4078 | shift; shift |
| 4079 | # Remember, the first character of IFS is used to create $*, |
| 4080 | # except with old shells: |
| 4081 | build_os=$* |
| 4082 | IFS=$ac_save_IFS |
| 4083 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4084 | |
| 4085 | |
| 4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4087 | $as_echo_n "checking host system type... " >&6; } |
| 4088 | if ${ac_cv_host+:} false; then : |
| 4089 | $as_echo_n "(cached) " >&6 |
| 4090 | else |
| 4091 | if test "x$host_alias" = x; then |
| 4092 | ac_cv_host=$ac_cv_build |
| 4093 | else |
| 4094 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4095 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4096 | fi |
| 4097 | |
| 4098 | fi |
| 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4100 | $as_echo "$ac_cv_host" >&6; } |
| 4101 | case $ac_cv_host in |
| 4102 | *-*-*) ;; |
| 4103 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4104 | esac |
| 4105 | host=$ac_cv_host |
| 4106 | ac_save_IFS=$IFS; IFS='-' |
| 4107 | set x $ac_cv_host |
| 4108 | shift |
| 4109 | host_cpu=$1 |
| 4110 | host_vendor=$2 |
| 4111 | shift; shift |
| 4112 | # Remember, the first character of IFS is used to create $*, |
| 4113 | # except with old shells: |
| 4114 | host_os=$* |
| 4115 | IFS=$ac_save_IFS |
| 4116 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4117 | |
| 4118 | |
| 4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 4120 | $as_echo_n "checking target system type... " >&6; } |
| 4121 | if ${ac_cv_target+:} false; then : |
| 4122 | $as_echo_n "(cached) " >&6 |
| 4123 | else |
| 4124 | if test "x$target_alias" = x; then |
| 4125 | ac_cv_target=$ac_cv_host |
| 4126 | else |
| 4127 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 4128 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 4129 | fi |
| 4130 | |
| 4131 | fi |
| 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 4133 | $as_echo "$ac_cv_target" >&6; } |
| 4134 | case $ac_cv_target in |
| 4135 | *-*-*) ;; |
| 4136 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 4137 | esac |
| 4138 | target=$ac_cv_target |
| 4139 | ac_save_IFS=$IFS; IFS='-' |
| 4140 | set x $ac_cv_target |
| 4141 | shift |
| 4142 | target_cpu=$1 |
| 4143 | target_vendor=$2 |
| 4144 | shift; shift |
| 4145 | # Remember, the first character of IFS is used to create $*, |
| 4146 | # except with old shells: |
| 4147 | target_os=$* |
| 4148 | IFS=$ac_save_IFS |
| 4149 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 4150 | |
| 4151 | |
| 4152 | # The aliases save the names the user supplied, while $host etc. |
| 4153 | # will get canonicalized. |
| 4154 | test -n "$target_alias" && |
| 4155 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 4156 | NONENONEs,x,x, && |
| 4157 | program_prefix=${target_alias}- |
| 4158 | |
| 4159 | |
| 4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 4161 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 4162 | if ${ac_cv_c_const+:} false; then : |
| 4163 | $as_echo_n "(cached) " >&6 |
| 4164 | else |
| 4165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4166 | /* end confdefs.h. */ |
| 4167 | |
| 4168 | int |
| 4169 | main () |
| 4170 | { |
| 4171 | |
| 4172 | #ifndef __cplusplus |
| 4173 | /* Ultrix mips cc rejects this sort of thing. */ |
| 4174 | typedef int charset[2]; |
| 4175 | const charset cs = { 0, 0 }; |
| 4176 | /* SunOS 4.1.1 cc rejects this. */ |
| 4177 | char const *const *pcpcc; |
| 4178 | char **ppc; |
| 4179 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4180 | struct point {int x, y;}; |
| 4181 | static struct point const zero = {0,0}; |
| 4182 | /* AIX XL C 1.02.0.0 rejects this. |
| 4183 | It does not let you subtract one const X* pointer from another in |
| 4184 | an arm of an if-expression whose if-part is not a constant |
| 4185 | expression */ |
| 4186 | const char *g = "string"; |
| 4187 | pcpcc = &g + (g ? g-g : 0); |
| 4188 | /* HPUX 7.0 cc rejects these. */ |
| 4189 | ++pcpcc; |
| 4190 | ppc = (char**) pcpcc; |
| 4191 | pcpcc = (char const *const *) ppc; |
| 4192 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 4193 | char tx; |
| 4194 | char *t = &tx; |
| 4195 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4196 | |
| 4197 | *t++ = 0; |
| 4198 | if (s) return 0; |
| 4199 | } |
| 4200 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4201 | int x[] = {25, 17}; |
| 4202 | const int *foo = &x[0]; |
| 4203 | ++foo; |
| 4204 | } |
| 4205 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4206 | typedef const int *iptr; |
| 4207 | iptr p = 0; |
| 4208 | ++p; |
| 4209 | } |
| 4210 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 4211 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4212 | struct s { int j; const int *ap[3]; } bx; |
| 4213 | struct s *b = &bx; b->j = 5; |
| 4214 | } |
| 4215 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4216 | const int foo = 10; |
| 4217 | if (!foo) return 0; |
| 4218 | } |
| 4219 | return !cs[0] && !zero.x; |
| 4220 | #endif |
| 4221 | |
| 4222 | ; |
| 4223 | return 0; |
| 4224 | } |
| 4225 | _ACEOF |
| 4226 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4227 | ac_cv_c_const=yes |
| 4228 | else |
| 4229 | ac_cv_c_const=no |
| 4230 | fi |
| 4231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4232 | fi |
| 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 4234 | $as_echo "$ac_cv_c_const" >&6; } |
| 4235 | if test $ac_cv_c_const = no; then |
| 4236 | |
| 4237 | $as_echo "#define const /**/" >>confdefs.h |
| 4238 | |
| 4239 | fi |
| 4240 | |
| 4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4242 | $as_echo_n "checking for inline... " >&6; } |
| 4243 | if ${ac_cv_c_inline+:} false; then : |
| 4244 | $as_echo_n "(cached) " >&6 |
| 4245 | else |
| 4246 | ac_cv_c_inline=no |
| 4247 | for ac_kw in inline __inline__ __inline; do |
| 4248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4249 | /* end confdefs.h. */ |
| 4250 | #ifndef __cplusplus |
| 4251 | typedef int foo_t; |
| 4252 | static $ac_kw foo_t static_foo () {return 0; } |
| 4253 | $ac_kw foo_t foo () {return 0; } |
| 4254 | #endif |
| 4255 | |
| 4256 | _ACEOF |
| 4257 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4258 | ac_cv_c_inline=$ac_kw |
| 4259 | fi |
| 4260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4261 | test "$ac_cv_c_inline" != no && break |
| 4262 | done |
| 4263 | |
| 4264 | fi |
| 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4266 | $as_echo "$ac_cv_c_inline" >&6; } |
| 4267 | |
| 4268 | case $ac_cv_c_inline in |
| 4269 | inline | yes) ;; |
| 4270 | *) |
| 4271 | case $ac_cv_c_inline in |
| 4272 | no) ac_val=;; |
| 4273 | *) ac_val=$ac_cv_c_inline;; |
| 4274 | esac |
| 4275 | cat >>confdefs.h <<_ACEOF |
| 4276 | #ifndef __cplusplus |
| 4277 | #define inline $ac_val |
| 4278 | #endif |
| 4279 | _ACEOF |
| 4280 | ;; |
| 4281 | esac |
| 4282 | |
| 4283 | |
| 4284 | # Check whether --enable-xdf was given. |
| 4285 | if test "${enable_xdf+set}" = set; then : |
| 4286 | enableval=$enable_xdf; if test x$enableval = xyes; then |
| 4287 | |
| 4288 | $as_echo "#define USE_XDF 1" >>confdefs.h |
| 4289 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 4290 | XDF_IO_SRC=xdf_io.c |
| 4291 | XDF_IO_OBJ=xdf_io.o |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 4292 | fi |
| 4293 | else |
| 4294 | |
| 4295 | $as_echo "#define USE_XDF 1" >>confdefs.h |
| 4296 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 4297 | XDF_IO_SRC=xdf_io.c |
| 4298 | XDF_IO_OBJ=xdf_io.o |
| 4299 | |
| 4300 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 4301 | fi |
| 4302 | |
| 4303 | |
| 4304 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 4305 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 4306 | # Check whether --enable-vold was given. |
| 4307 | if test "${enable_vold+set}" = set; then : |
| 4308 | enableval=$enable_vold; if test x$enableval = xyes; then |
| 4309 | |
| 4310 | $as_echo "#define USING_VOLD 1" >>confdefs.h |
| 4311 | |
| 4312 | fi |
| 4313 | fi |
| 4314 | |
| 4315 | |
| 4316 | |
| 4317 | # Check whether --enable-new-vold was given. |
| 4318 | if test "${enable_new_vold+set}" = set; then : |
| 4319 | enableval=$enable_new_vold; newVold=x$enableval |
| 4320 | if test x$enableval = xyes; then |
| 4321 | |
| 4322 | $as_echo "#define USING_NEW_VOLD 1" >>confdefs.h |
| 4323 | |
| 4324 | fi |
| 4325 | fi |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | # Check whether --enable-debug was given. |
| 4330 | if test "${enable_debug+set}" = set; then : |
| 4331 | enableval=$enable_debug; if test x$enableval = xyes; then |
| 4332 | |
| 4333 | $as_echo "#define DEBUG 1" >>confdefs.h |
| 4334 | |
| 4335 | fi |
| 4336 | fi |
| 4337 | |
| 4338 | |
| 4339 | |
| 4340 | # Check whether --enable-raw_term was given. |
| 4341 | if test "${enable_raw_term+set}" = set; then : |
| 4342 | enableval=$enable_raw_term; if test x$enableval = xyes; then |
| 4343 | |
| 4344 | $as_echo "#define USE_RAWTERM 1" >>confdefs.h |
| 4345 | |
| 4346 | fi |
| 4347 | else |
| 4348 | |
| 4349 | $as_echo "#define USE_RAWTERM 1" >>confdefs.h |
| 4350 | |
| 4351 | fi |
| 4352 | |
| 4353 | |
| 4354 | |
| 4355 | |
| 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 |
| 4357 | $as_echo_n "checking for getpwnam in -lsun... " >&6; } |
| 4358 | if ${ac_cv_lib_sun_getpwnam+:} false; then : |
| 4359 | $as_echo_n "(cached) " >&6 |
| 4360 | else |
| 4361 | ac_check_lib_save_LIBS=$LIBS |
| 4362 | LIBS="-lsun $LIBS" |
| 4363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4364 | /* end confdefs.h. */ |
| 4365 | |
| 4366 | /* Override any GCC internal prototype to avoid an error. |
| 4367 | Use char because int might match the return type of a GCC |
| 4368 | builtin and then its argument prototype would still apply. */ |
| 4369 | #ifdef __cplusplus |
| 4370 | extern "C" |
| 4371 | #endif |
| 4372 | char getpwnam (); |
| 4373 | int |
| 4374 | main () |
| 4375 | { |
| 4376 | return getpwnam (); |
| 4377 | ; |
| 4378 | return 0; |
| 4379 | } |
| 4380 | _ACEOF |
| 4381 | if ac_fn_c_try_link "$LINENO"; then : |
| 4382 | ac_cv_lib_sun_getpwnam=yes |
| 4383 | else |
| 4384 | ac_cv_lib_sun_getpwnam=no |
| 4385 | fi |
| 4386 | rm -f core conftest.err conftest.$ac_objext \ |
| 4387 | conftest$ac_exeext conftest.$ac_ext |
| 4388 | LIBS=$ac_check_lib_save_LIBS |
| 4389 | fi |
| 4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 |
| 4391 | $as_echo "$ac_cv_lib_sun_getpwnam" >&6; } |
| 4392 | if test "x$ac_cv_lib_sun_getpwnam" = xyes; then : |
| 4393 | cat >>confdefs.h <<_ACEOF |
| 4394 | #define HAVE_LIBSUN 1 |
| 4395 | _ACEOF |
| 4396 | |
| 4397 | LIBS="-lsun $LIBS" |
| 4398 | |
| 4399 | fi |
| 4400 | |
| 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5 |
| 4402 | $as_echo_n "checking for cam_open_device in -lcam... " >&6; } |
| 4403 | if ${ac_cv_lib_cam_cam_open_device+:} false; then : |
| 4404 | $as_echo_n "(cached) " >&6 |
| 4405 | else |
| 4406 | ac_check_lib_save_LIBS=$LIBS |
| 4407 | LIBS="-lcam $LIBS" |
| 4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4409 | /* end confdefs.h. */ |
| 4410 | |
| 4411 | /* Override any GCC internal prototype to avoid an error. |
| 4412 | Use char because int might match the return type of a GCC |
| 4413 | builtin and then its argument prototype would still apply. */ |
| 4414 | #ifdef __cplusplus |
| 4415 | extern "C" |
| 4416 | #endif |
| 4417 | char cam_open_device (); |
| 4418 | int |
| 4419 | main () |
| 4420 | { |
| 4421 | return cam_open_device (); |
| 4422 | ; |
| 4423 | return 0; |
| 4424 | } |
| 4425 | _ACEOF |
| 4426 | if ac_fn_c_try_link "$LINENO"; then : |
| 4427 | ac_cv_lib_cam_cam_open_device=yes |
| 4428 | else |
| 4429 | ac_cv_lib_cam_cam_open_device=no |
| 4430 | fi |
| 4431 | rm -f core conftest.err conftest.$ac_objext \ |
| 4432 | conftest$ac_exeext conftest.$ac_ext |
| 4433 | LIBS=$ac_check_lib_save_LIBS |
| 4434 | fi |
| 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5 |
| 4436 | $as_echo "$ac_cv_lib_cam_cam_open_device" >&6; } |
| 4437 | if test "x$ac_cv_lib_cam_cam_open_device" = xyes; then : |
| 4438 | cat >>confdefs.h <<_ACEOF |
| 4439 | #define HAVE_LIBCAM 1 |
| 4440 | _ACEOF |
| 4441 | |
| 4442 | LIBS="-lcam $LIBS" |
| 4443 | |
| 4444 | fi |
| 4445 | |
| 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5 |
| 4447 | $as_echo_n "checking for iconv in -liconv... " >&6; } |
| 4448 | if ${ac_cv_lib_iconv_iconv+:} false; then : |
| 4449 | $as_echo_n "(cached) " >&6 |
| 4450 | else |
| 4451 | ac_check_lib_save_LIBS=$LIBS |
| 4452 | LIBS="-liconv $LIBS" |
| 4453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4454 | /* end confdefs.h. */ |
| 4455 | |
| 4456 | /* Override any GCC internal prototype to avoid an error. |
| 4457 | Use char because int might match the return type of a GCC |
| 4458 | builtin and then its argument prototype would still apply. */ |
| 4459 | #ifdef __cplusplus |
| 4460 | extern "C" |
| 4461 | #endif |
| 4462 | char iconv (); |
| 4463 | int |
| 4464 | main () |
| 4465 | { |
| 4466 | return iconv (); |
| 4467 | ; |
| 4468 | return 0; |
| 4469 | } |
| 4470 | _ACEOF |
| 4471 | if ac_fn_c_try_link "$LINENO"; then : |
| 4472 | ac_cv_lib_iconv_iconv=yes |
| 4473 | else |
| 4474 | ac_cv_lib_iconv_iconv=no |
| 4475 | fi |
| 4476 | rm -f core conftest.err conftest.$ac_objext \ |
| 4477 | conftest$ac_exeext conftest.$ac_ext |
| 4478 | LIBS=$ac_check_lib_save_LIBS |
| 4479 | fi |
| 4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5 |
| 4481 | $as_echo "$ac_cv_lib_iconv_iconv" >&6; } |
| 4482 | if test "x$ac_cv_lib_iconv_iconv" = xyes; then : |
| 4483 | cat >>confdefs.h <<_ACEOF |
| 4484 | #define HAVE_LIBICONV 1 |
| 4485 | _ACEOF |
| 4486 | |
| 4487 | LIBS="-liconv $LIBS" |
| 4488 | |
| 4489 | fi |
| 4490 | |
| 4491 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 |
| 4493 | $as_echo_n "checking for main in -lsocket... " >&6; } |
| 4494 | if ${ac_cv_lib_socket_main+:} false; then : |
| 4495 | $as_echo_n "(cached) " >&6 |
| 4496 | else |
| 4497 | ac_check_lib_save_LIBS=$LIBS |
| 4498 | LIBS="-lsocket $LIBS" |
| 4499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4500 | /* end confdefs.h. */ |
| 4501 | |
| 4502 | |
| 4503 | int |
| 4504 | main () |
| 4505 | { |
| 4506 | return main (); |
| 4507 | ; |
| 4508 | return 0; |
| 4509 | } |
| 4510 | _ACEOF |
| 4511 | if ac_fn_c_try_link "$LINENO"; then : |
| 4512 | ac_cv_lib_socket_main=yes |
| 4513 | else |
| 4514 | ac_cv_lib_socket_main=no |
| 4515 | fi |
| 4516 | rm -f core conftest.err conftest.$ac_objext \ |
| 4517 | conftest$ac_exeext conftest.$ac_ext |
| 4518 | LIBS=$ac_check_lib_save_LIBS |
| 4519 | fi |
| 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 |
| 4521 | $as_echo "$ac_cv_lib_socket_main" >&6; } |
| 4522 | if test "x$ac_cv_lib_socket_main" = xyes; then : |
| 4523 | cat >>confdefs.h <<_ACEOF |
| 4524 | #define HAVE_LIBSOCKET 1 |
| 4525 | _ACEOF |
| 4526 | |
| 4527 | LIBS="-lsocket $LIBS" |
| 4528 | |
| 4529 | fi |
| 4530 | |
| 4531 | |
| 4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 4533 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
| 4534 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 4535 | $as_echo_n "(cached) " >&6 |
| 4536 | else |
| 4537 | ac_func_search_save_LIBS=$LIBS |
| 4538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4539 | /* end confdefs.h. */ |
| 4540 | |
| 4541 | /* Override any GCC internal prototype to avoid an error. |
| 4542 | Use char because int might match the return type of a GCC |
| 4543 | builtin and then its argument prototype would still apply. */ |
| 4544 | #ifdef __cplusplus |
| 4545 | extern "C" |
| 4546 | #endif |
| 4547 | char gethostbyname (); |
| 4548 | int |
| 4549 | main () |
| 4550 | { |
| 4551 | return gethostbyname (); |
| 4552 | ; |
| 4553 | return 0; |
| 4554 | } |
| 4555 | _ACEOF |
| 4556 | for ac_lib in '' nsl; do |
| 4557 | if test -z "$ac_lib"; then |
| 4558 | ac_res="none required" |
| 4559 | else |
| 4560 | ac_res=-l$ac_lib |
| 4561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4562 | fi |
| 4563 | if ac_fn_c_try_link "$LINENO"; then : |
| 4564 | ac_cv_search_gethostbyname=$ac_res |
| 4565 | fi |
| 4566 | rm -f core conftest.err conftest.$ac_objext \ |
| 4567 | conftest$ac_exeext |
| 4568 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 4569 | break |
| 4570 | fi |
| 4571 | done |
| 4572 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 4573 | |
| 4574 | else |
| 4575 | ac_cv_search_gethostbyname=no |
| 4576 | fi |
| 4577 | rm conftest.$ac_ext |
| 4578 | LIBS=$ac_func_search_save_LIBS |
| 4579 | fi |
| 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 4581 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
| 4582 | ac_res=$ac_cv_search_gethostbyname |
| 4583 | if test "$ac_res" != no; then : |
| 4584 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4585 | |
| 4586 | fi |
| 4587 | |
| 4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 4589 | $as_echo_n "checking for library containing socket... " >&6; } |
| 4590 | if ${ac_cv_search_socket+:} false; then : |
| 4591 | $as_echo_n "(cached) " >&6 |
| 4592 | else |
| 4593 | ac_func_search_save_LIBS=$LIBS |
| 4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4595 | /* end confdefs.h. */ |
| 4596 | |
| 4597 | /* Override any GCC internal prototype to avoid an error. |
| 4598 | Use char because int might match the return type of a GCC |
| 4599 | builtin and then its argument prototype would still apply. */ |
| 4600 | #ifdef __cplusplus |
| 4601 | extern "C" |
| 4602 | #endif |
| 4603 | char socket (); |
| 4604 | int |
| 4605 | main () |
| 4606 | { |
| 4607 | return socket (); |
| 4608 | ; |
| 4609 | return 0; |
| 4610 | } |
| 4611 | _ACEOF |
| 4612 | for ac_lib in '' socket; do |
| 4613 | if test -z "$ac_lib"; then |
| 4614 | ac_res="none required" |
| 4615 | else |
| 4616 | ac_res=-l$ac_lib |
| 4617 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4618 | fi |
| 4619 | if ac_fn_c_try_link "$LINENO"; then : |
| 4620 | ac_cv_search_socket=$ac_res |
| 4621 | fi |
| 4622 | rm -f core conftest.err conftest.$ac_objext \ |
| 4623 | conftest$ac_exeext |
| 4624 | if ${ac_cv_search_socket+:} false; then : |
| 4625 | break |
| 4626 | fi |
| 4627 | done |
| 4628 | if ${ac_cv_search_socket+:} false; then : |
| 4629 | |
| 4630 | else |
| 4631 | ac_cv_search_socket=no |
| 4632 | fi |
| 4633 | rm conftest.$ac_ext |
| 4634 | LIBS=$ac_func_search_save_LIBS |
| 4635 | fi |
| 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 4637 | $as_echo "$ac_cv_search_socket" >&6; } |
| 4638 | ac_res=$ac_cv_search_socket |
| 4639 | if test "$ac_res" != no; then : |
| 4640 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4641 | |
| 4642 | else |
| 4643 | |
| 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 4645 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 4646 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 4647 | $as_echo_n "(cached) " >&6 |
| 4648 | else |
| 4649 | ac_check_lib_save_LIBS=$LIBS |
| 4650 | LIBS="-lsocket -lnsl $LIBS" |
| 4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4652 | /* end confdefs.h. */ |
| 4653 | |
| 4654 | /* Override any GCC internal prototype to avoid an error. |
| 4655 | Use char because int might match the return type of a GCC |
| 4656 | builtin and then its argument prototype would still apply. */ |
| 4657 | #ifdef __cplusplus |
| 4658 | extern "C" |
| 4659 | #endif |
| 4660 | char socket (); |
| 4661 | int |
| 4662 | main () |
| 4663 | { |
| 4664 | return socket (); |
| 4665 | ; |
| 4666 | return 0; |
| 4667 | } |
| 4668 | _ACEOF |
| 4669 | if ac_fn_c_try_link "$LINENO"; then : |
| 4670 | ac_cv_lib_socket_socket=yes |
| 4671 | else |
| 4672 | ac_cv_lib_socket_socket=no |
| 4673 | fi |
| 4674 | rm -f core conftest.err conftest.$ac_objext \ |
| 4675 | conftest$ac_exeext conftest.$ac_ext |
| 4676 | LIBS=$ac_check_lib_save_LIBS |
| 4677 | fi |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 4679 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 4680 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
| 4681 | LIBS="-lsocket -lnsl $LIBS" |
| 4682 | fi |
| 4683 | |
| 4684 | fi |
| 4685 | |
| 4686 | |
| 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5 |
| 4688 | $as_echo_n "checking for main in -lbsd... " >&6; } |
| 4689 | if ${ac_cv_lib_bsd_main+:} false; then : |
| 4690 | $as_echo_n "(cached) " >&6 |
| 4691 | else |
| 4692 | ac_check_lib_save_LIBS=$LIBS |
| 4693 | LIBS="-lbsd $LIBS" |
| 4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4695 | /* end confdefs.h. */ |
| 4696 | |
| 4697 | |
| 4698 | int |
| 4699 | main () |
| 4700 | { |
| 4701 | return main (); |
| 4702 | ; |
| 4703 | return 0; |
| 4704 | } |
| 4705 | _ACEOF |
| 4706 | if ac_fn_c_try_link "$LINENO"; then : |
| 4707 | ac_cv_lib_bsd_main=yes |
| 4708 | else |
| 4709 | ac_cv_lib_bsd_main=no |
| 4710 | fi |
| 4711 | rm -f core conftest.err conftest.$ac_objext \ |
| 4712 | conftest$ac_exeext conftest.$ac_ext |
| 4713 | LIBS=$ac_check_lib_save_LIBS |
| 4714 | fi |
| 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5 |
| 4716 | $as_echo "$ac_cv_lib_bsd_main" >&6; } |
| 4717 | if test "x$ac_cv_lib_bsd_main" = xyes; then : |
| 4718 | cat >>confdefs.h <<_ACEOF |
| 4719 | #define HAVE_LIBBSD 1 |
| 4720 | _ACEOF |
| 4721 | |
| 4722 | LIBS="-lbsd $LIBS" |
| 4723 | |
| 4724 | fi |
| 4725 | |
| 4726 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4728 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4729 | if ${ac_cv_header_stdc+:} false; then : |
| 4730 | $as_echo_n "(cached) " >&6 |
| 4731 | else |
| 4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4733 | /* end confdefs.h. */ |
| 4734 | #include <stdlib.h> |
| 4735 | #include <stdarg.h> |
| 4736 | #include <string.h> |
| 4737 | #include <float.h> |
| 4738 | |
| 4739 | int |
| 4740 | main () |
| 4741 | { |
| 4742 | |
| 4743 | ; |
| 4744 | return 0; |
| 4745 | } |
| 4746 | _ACEOF |
| 4747 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4748 | ac_cv_header_stdc=yes |
| 4749 | else |
| 4750 | ac_cv_header_stdc=no |
| 4751 | fi |
| 4752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4753 | |
| 4754 | if test $ac_cv_header_stdc = yes; then |
| 4755 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4757 | /* end confdefs.h. */ |
| 4758 | #include <string.h> |
| 4759 | |
| 4760 | _ACEOF |
| 4761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4762 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4763 | |
| 4764 | else |
| 4765 | ac_cv_header_stdc=no |
| 4766 | fi |
| 4767 | rm -f conftest* |
| 4768 | |
| 4769 | fi |
| 4770 | |
| 4771 | if test $ac_cv_header_stdc = yes; then |
| 4772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4774 | /* end confdefs.h. */ |
| 4775 | #include <stdlib.h> |
| 4776 | |
| 4777 | _ACEOF |
| 4778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4779 | $EGREP "free" >/dev/null 2>&1; then : |
| 4780 | |
| 4781 | else |
| 4782 | ac_cv_header_stdc=no |
| 4783 | fi |
| 4784 | rm -f conftest* |
| 4785 | |
| 4786 | fi |
| 4787 | |
| 4788 | if test $ac_cv_header_stdc = yes; then |
| 4789 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4790 | if test "$cross_compiling" = yes; then : |
| 4791 | : |
| 4792 | else |
| 4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4794 | /* end confdefs.h. */ |
| 4795 | #include <ctype.h> |
| 4796 | #include <stdlib.h> |
| 4797 | #if ((' ' & 0x0FF) == 0x020) |
| 4798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4800 | #else |
| 4801 | # define ISLOWER(c) \ |
| 4802 | (('a' <= (c) && (c) <= 'i') \ |
| 4803 | || ('j' <= (c) && (c) <= 'r') \ |
| 4804 | || ('s' <= (c) && (c) <= 'z')) |
| 4805 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4806 | #endif |
| 4807 | |
| 4808 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4809 | int |
| 4810 | main () |
| 4811 | { |
| 4812 | int i; |
| 4813 | for (i = 0; i < 256; i++) |
| 4814 | if (XOR (islower (i), ISLOWER (i)) |
| 4815 | || toupper (i) != TOUPPER (i)) |
| 4816 | return 2; |
| 4817 | return 0; |
| 4818 | } |
| 4819 | _ACEOF |
| 4820 | if ac_fn_c_try_run "$LINENO"; then : |
| 4821 | |
| 4822 | else |
| 4823 | ac_cv_header_stdc=no |
| 4824 | fi |
| 4825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4826 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4827 | fi |
| 4828 | |
| 4829 | fi |
| 4830 | fi |
| 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4832 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4833 | if test $ac_cv_header_stdc = yes; then |
| 4834 | |
| 4835 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4836 | |
| 4837 | fi |
| 4838 | |
| 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 4840 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 4841 | if ${ac_cv_header_sys_wait_h+:} false; then : |
| 4842 | $as_echo_n "(cached) " >&6 |
| 4843 | else |
| 4844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4845 | /* end confdefs.h. */ |
| 4846 | #include <sys/types.h> |
| 4847 | #include <sys/wait.h> |
| 4848 | #ifndef WEXITSTATUS |
| 4849 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 4850 | #endif |
| 4851 | #ifndef WIFEXITED |
| 4852 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 4853 | #endif |
| 4854 | |
| 4855 | int |
| 4856 | main () |
| 4857 | { |
| 4858 | int s; |
| 4859 | wait (&s); |
| 4860 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 4861 | ; |
| 4862 | return 0; |
| 4863 | } |
| 4864 | _ACEOF |
| 4865 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4866 | ac_cv_header_sys_wait_h=yes |
| 4867 | else |
| 4868 | ac_cv_header_sys_wait_h=no |
| 4869 | fi |
| 4870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4871 | fi |
| 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 4873 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 4874 | if test $ac_cv_header_sys_wait_h = yes; then |
| 4875 | |
| 4876 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 4877 | |
| 4878 | fi |
| 4879 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 4881 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 4882 | if ${ac_cv_header_stdbool_h+:} false; then : |
| 4883 | $as_echo_n "(cached) " >&6 |
| 4884 | else |
| 4885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4886 | /* end confdefs.h. */ |
| 4887 | |
| 4888 | #include <stdbool.h> |
| 4889 | #ifndef bool |
| 4890 | "error: bool is not defined" |
| 4891 | #endif |
| 4892 | #ifndef false |
| 4893 | "error: false is not defined" |
| 4894 | #endif |
| 4895 | #if false |
| 4896 | "error: false is not 0" |
| 4897 | #endif |
| 4898 | #ifndef true |
| 4899 | "error: true is not defined" |
| 4900 | #endif |
| 4901 | #if true != 1 |
| 4902 | "error: true is not 1" |
| 4903 | #endif |
| 4904 | #ifndef __bool_true_false_are_defined |
| 4905 | "error: __bool_true_false_are_defined is not defined" |
| 4906 | #endif |
| 4907 | |
| 4908 | struct s { _Bool s: 1; _Bool t; } s; |
| 4909 | |
| 4910 | char a[true == 1 ? 1 : -1]; |
| 4911 | char b[false == 0 ? 1 : -1]; |
| 4912 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 4913 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 4914 | /* See body of main program for 'e'. */ |
| 4915 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 4916 | char g[true]; |
| 4917 | char h[sizeof (_Bool)]; |
| 4918 | char i[sizeof s.t]; |
| 4919 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 4920 | /* The following fails for |
| 4921 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 4922 | _Bool n[m]; |
| 4923 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 4924 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 4925 | /* Catch a bug in an HP-UX C compiler. See |
| 4926 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 4927 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 4928 | */ |
| 4929 | _Bool q = true; |
| 4930 | _Bool *pq = &q; |
| 4931 | |
| 4932 | int |
| 4933 | main () |
| 4934 | { |
| 4935 | |
| 4936 | bool e = &s; |
| 4937 | *pq |= q; |
| 4938 | *pq |= ! q; |
| 4939 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 4940 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 4941 | + !m + !n + !o + !p + !q + !pq); |
| 4942 | |
| 4943 | ; |
| 4944 | return 0; |
| 4945 | } |
| 4946 | _ACEOF |
| 4947 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4948 | ac_cv_header_stdbool_h=yes |
| 4949 | else |
| 4950 | ac_cv_header_stdbool_h=no |
| 4951 | fi |
| 4952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4953 | fi |
| 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 4955 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 4956 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 4957 | if test "x$ac_cv_type__Bool" = xyes; then : |
| 4958 | |
| 4959 | cat >>confdefs.h <<_ACEOF |
| 4960 | #define HAVE__BOOL 1 |
| 4961 | _ACEOF |
| 4962 | |
| 4963 | |
| 4964 | fi |
| 4965 | |
| 4966 | |
| 4967 | if test $ac_cv_header_stdbool_h = yes; then |
| 4968 | |
| 4969 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| 4970 | |
| 4971 | fi |
| 4972 | |
| 4973 | for ac_header in getopt.h stdarg.h stdlib.h unistd.h linux/unistd.h \ |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 4974 | libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \ |
| 4975 | sys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \ |
| 4976 | sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \ |
| 4977 | iconv.h wctype.h wchar.h locale.h xlocale.h linux/fs.h |
| 4978 | do : |
| 4979 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4980 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4981 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4982 | cat >>confdefs.h <<_ACEOF |
| 4983 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4984 | _ACEOF |
| 4985 | |
| 4986 | fi |
| 4987 | |
| 4988 | done |
| 4989 | |
| 4990 | for ac_header in termio.h sys/termio.h |
| 4991 | do : |
| 4992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4993 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4994 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4995 | cat >>confdefs.h <<_ACEOF |
| 4996 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4997 | _ACEOF |
| 4998 | break |
| 4999 | fi |
| 5000 | |
| 5001 | done |
| 5002 | |
| 5003 | for ac_header in termios.h sys/termios.h |
| 5004 | do : |
| 5005 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5006 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5007 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5008 | cat >>confdefs.h <<_ACEOF |
| 5009 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5010 | _ACEOF |
| 5011 | break |
| 5012 | fi |
| 5013 | |
| 5014 | done |
| 5015 | |
| 5016 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5017 | for ac_header in sys/fdio.h |
| 5018 | do : |
| 5019 | ac_fn_c_check_header_mongrel "$LINENO" "sys/fdio.h" "ac_cv_header_sys_fdio_h" "$ac_includes_default" |
| 5020 | if test "x$ac_cv_header_sys_fdio_h" = xyes; then : |
| 5021 | cat >>confdefs.h <<_ACEOF |
| 5022 | #define HAVE_SYS_FDIO_H 1 |
| 5023 | _ACEOF |
| 5024 | |
| 5025 | fi |
| 5026 | |
| 5027 | done |
| 5028 | |
| 5029 | for ac_header in sys/socket.h arpa/inet.h netdb.h |
| 5030 | do : |
| 5031 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5032 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5033 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5034 | cat >>confdefs.h <<_ACEOF |
| 5035 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5036 | _ACEOF |
| 5037 | |
| 5038 | fi |
| 5039 | |
| 5040 | done |
| 5041 | |
| 5042 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5043 | # Check whether --enable-largefile was given. |
| 5044 | if test "${enable_largefile+set}" = set; then : |
| 5045 | enableval=$enable_largefile; |
| 5046 | fi |
| 5047 | |
| 5048 | if test "$enable_largefile" != no; then |
| 5049 | |
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5051 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5052 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 5053 | $as_echo_n "(cached) " >&6 |
| 5054 | else |
| 5055 | ac_cv_sys_largefile_CC=no |
| 5056 | if test "$GCC" != yes; then |
| 5057 | ac_save_CC=$CC |
| 5058 | while :; do |
| 5059 | # IRIX 6.2 and later do not support large files by default, |
| 5060 | # so use the C compiler's -n32 option if that helps. |
| 5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5062 | /* end confdefs.h. */ |
| 5063 | #include <sys/types.h> |
| 5064 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5065 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5066 | since some C++ compilers masquerading as C compilers |
| 5067 | incorrectly reject 9223372036854775807. */ |
| 5068 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 5069 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5070 | && LARGE_OFF_T % 2147483647 == 1) |
| 5071 | ? 1 : -1]; |
| 5072 | int |
| 5073 | main () |
| 5074 | { |
| 5075 | |
| 5076 | ; |
| 5077 | return 0; |
| 5078 | } |
| 5079 | _ACEOF |
| 5080 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5081 | break |
| 5082 | fi |
| 5083 | rm -f core conftest.err conftest.$ac_objext |
| 5084 | CC="$CC -n32" |
| 5085 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5086 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5087 | fi |
| 5088 | rm -f core conftest.err conftest.$ac_objext |
| 5089 | break |
| 5090 | done |
| 5091 | CC=$ac_save_CC |
| 5092 | rm -f conftest.$ac_ext |
| 5093 | fi |
| 5094 | fi |
| 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5096 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5097 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5098 | CC=$CC$ac_cv_sys_largefile_CC |
| 5099 | fi |
| 5100 | |
| 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5102 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5103 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 5104 | $as_echo_n "(cached) " >&6 |
| 5105 | else |
| 5106 | while :; do |
| 5107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5108 | /* end confdefs.h. */ |
| 5109 | #include <sys/types.h> |
| 5110 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5111 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5112 | since some C++ compilers masquerading as C compilers |
| 5113 | incorrectly reject 9223372036854775807. */ |
| 5114 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 5115 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5116 | && LARGE_OFF_T % 2147483647 == 1) |
| 5117 | ? 1 : -1]; |
| 5118 | int |
| 5119 | main () |
| 5120 | { |
| 5121 | |
| 5122 | ; |
| 5123 | return 0; |
| 5124 | } |
| 5125 | _ACEOF |
| 5126 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5127 | ac_cv_sys_file_offset_bits=no; break |
| 5128 | fi |
| 5129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5131 | /* end confdefs.h. */ |
| 5132 | #define _FILE_OFFSET_BITS 64 |
| 5133 | #include <sys/types.h> |
| 5134 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5135 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5136 | since some C++ compilers masquerading as C compilers |
| 5137 | incorrectly reject 9223372036854775807. */ |
| 5138 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 5139 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5140 | && LARGE_OFF_T % 2147483647 == 1) |
| 5141 | ? 1 : -1]; |
| 5142 | int |
| 5143 | main () |
| 5144 | { |
| 5145 | |
| 5146 | ; |
| 5147 | return 0; |
| 5148 | } |
| 5149 | _ACEOF |
| 5150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5151 | ac_cv_sys_file_offset_bits=64; break |
| 5152 | fi |
| 5153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5154 | ac_cv_sys_file_offset_bits=unknown |
| 5155 | break |
| 5156 | done |
| 5157 | fi |
| 5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5159 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5160 | case $ac_cv_sys_file_offset_bits in #( |
| 5161 | no | unknown) ;; |
| 5162 | *) |
| 5163 | cat >>confdefs.h <<_ACEOF |
| 5164 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5165 | _ACEOF |
| 5166 | ;; |
| 5167 | esac |
| 5168 | rm -rf conftest* |
| 5169 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5171 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5172 | if ${ac_cv_sys_large_files+:} false; then : |
| 5173 | $as_echo_n "(cached) " >&6 |
| 5174 | else |
| 5175 | while :; do |
| 5176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5177 | /* end confdefs.h. */ |
| 5178 | #include <sys/types.h> |
| 5179 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5180 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5181 | since some C++ compilers masquerading as C compilers |
| 5182 | incorrectly reject 9223372036854775807. */ |
| 5183 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 5184 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5185 | && LARGE_OFF_T % 2147483647 == 1) |
| 5186 | ? 1 : -1]; |
| 5187 | int |
| 5188 | main () |
| 5189 | { |
| 5190 | |
| 5191 | ; |
| 5192 | return 0; |
| 5193 | } |
| 5194 | _ACEOF |
| 5195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5196 | ac_cv_sys_large_files=no; break |
| 5197 | fi |
| 5198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5200 | /* end confdefs.h. */ |
| 5201 | #define _LARGE_FILES 1 |
| 5202 | #include <sys/types.h> |
| 5203 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5204 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5205 | since some C++ compilers masquerading as C compilers |
| 5206 | incorrectly reject 9223372036854775807. */ |
| 5207 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 5208 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5209 | && LARGE_OFF_T % 2147483647 == 1) |
| 5210 | ? 1 : -1]; |
| 5211 | int |
| 5212 | main () |
| 5213 | { |
| 5214 | |
| 5215 | ; |
| 5216 | return 0; |
| 5217 | } |
| 5218 | _ACEOF |
| 5219 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5220 | ac_cv_sys_large_files=1; break |
| 5221 | fi |
| 5222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5223 | ac_cv_sys_large_files=unknown |
| 5224 | break |
| 5225 | done |
| 5226 | fi |
| 5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5228 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5229 | case $ac_cv_sys_large_files in #( |
| 5230 | no | unknown) ;; |
| 5231 | *) |
| 5232 | cat >>confdefs.h <<_ACEOF |
| 5233 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5234 | _ACEOF |
| 5235 | ;; |
| 5236 | esac |
| 5237 | rm -rf conftest* |
| 5238 | fi |
| 5239 | |
| 5240 | |
| 5241 | fi |
| 5242 | |
| 5243 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 5244 | case $ac_cv_c_int8_t in #( |
| 5245 | no|yes) ;; #( |
| 5246 | *) |
| 5247 | |
| 5248 | cat >>confdefs.h <<_ACEOF |
| 5249 | #define int8_t $ac_cv_c_int8_t |
| 5250 | _ACEOF |
| 5251 | ;; |
| 5252 | esac |
| 5253 | |
| 5254 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 5255 | case $ac_cv_c_int16_t in #( |
| 5256 | no|yes) ;; #( |
| 5257 | *) |
| 5258 | |
| 5259 | cat >>confdefs.h <<_ACEOF |
| 5260 | #define int16_t $ac_cv_c_int16_t |
| 5261 | _ACEOF |
| 5262 | ;; |
| 5263 | esac |
| 5264 | |
| 5265 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 5266 | case $ac_cv_c_int32_t in #( |
| 5267 | no|yes) ;; #( |
| 5268 | *) |
| 5269 | |
| 5270 | cat >>confdefs.h <<_ACEOF |
| 5271 | #define int32_t $ac_cv_c_int32_t |
| 5272 | _ACEOF |
| 5273 | ;; |
| 5274 | esac |
| 5275 | |
| 5276 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 5277 | case $ac_cv_c_uint8_t in #( |
| 5278 | no|yes) ;; #( |
| 5279 | *) |
| 5280 | |
| 5281 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 5282 | |
| 5283 | |
| 5284 | cat >>confdefs.h <<_ACEOF |
| 5285 | #define uint8_t $ac_cv_c_uint8_t |
| 5286 | _ACEOF |
| 5287 | ;; |
| 5288 | esac |
| 5289 | |
| 5290 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 5291 | case $ac_cv_c_uint16_t in #( |
| 5292 | no|yes) ;; #( |
| 5293 | *) |
| 5294 | |
| 5295 | |
| 5296 | cat >>confdefs.h <<_ACEOF |
| 5297 | #define uint16_t $ac_cv_c_uint16_t |
| 5298 | _ACEOF |
| 5299 | ;; |
| 5300 | esac |
| 5301 | |
| 5302 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 5303 | case $ac_cv_c_uint32_t in #( |
| 5304 | no|yes) ;; #( |
| 5305 | *) |
| 5306 | |
| 5307 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 5308 | |
| 5309 | |
| 5310 | cat >>confdefs.h <<_ACEOF |
| 5311 | #define uint32_t $ac_cv_c_uint32_t |
| 5312 | _ACEOF |
| 5313 | ;; |
| 5314 | esac |
| 5315 | |
| 5316 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 5317 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 5318 | |
| 5319 | else |
| 5320 | |
| 5321 | cat >>confdefs.h <<_ACEOF |
| 5322 | #define ssize_t int |
| 5323 | _ACEOF |
| 5324 | |
| 5325 | fi |
| 5326 | |
| 5327 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 5328 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 5329 | |
| 5330 | else |
| 5331 | |
| 5332 | cat >>confdefs.h <<_ACEOF |
| 5333 | #define size_t unsigned int |
| 5334 | _ACEOF |
| 5335 | |
| 5336 | fi |
| 5337 | |
| 5338 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 5339 | if test "x$ac_cv_type_off_t" = xyes; then : |
| 5340 | |
| 5341 | else |
| 5342 | |
| 5343 | cat >>confdefs.h <<_ACEOF |
| 5344 | #define off_t long int |
| 5345 | _ACEOF |
| 5346 | |
| 5347 | fi |
| 5348 | |
| 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 5350 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| 5351 | if ${ac_cv_type_signal+:} false; then : |
| 5352 | $as_echo_n "(cached) " >&6 |
| 5353 | else |
| 5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5355 | /* end confdefs.h. */ |
| 5356 | #include <sys/types.h> |
| 5357 | #include <signal.h> |
| 5358 | |
| 5359 | int |
| 5360 | main () |
| 5361 | { |
| 5362 | return *(signal (0, 0)) (0) == 1; |
| 5363 | ; |
| 5364 | return 0; |
| 5365 | } |
| 5366 | _ACEOF |
| 5367 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5368 | ac_cv_type_signal=int |
| 5369 | else |
| 5370 | ac_cv_type_signal=void |
| 5371 | fi |
| 5372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5373 | fi |
| 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 5375 | $as_echo "$ac_cv_type_signal" >&6; } |
| 5376 | |
| 5377 | cat >>confdefs.h <<_ACEOF |
| 5378 | #define RETSIGTYPE $ac_cv_type_signal |
| 5379 | _ACEOF |
| 5380 | |
| 5381 | |
| 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 5383 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 5384 | if ${ac_cv_type_uid_t+:} false; then : |
| 5385 | $as_echo_n "(cached) " >&6 |
| 5386 | else |
| 5387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5388 | /* end confdefs.h. */ |
| 5389 | #include <sys/types.h> |
| 5390 | |
| 5391 | _ACEOF |
| 5392 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5393 | $EGREP "uid_t" >/dev/null 2>&1; then : |
| 5394 | ac_cv_type_uid_t=yes |
| 5395 | else |
| 5396 | ac_cv_type_uid_t=no |
| 5397 | fi |
| 5398 | rm -f conftest* |
| 5399 | |
| 5400 | fi |
| 5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 5402 | $as_echo "$ac_cv_type_uid_t" >&6; } |
| 5403 | if test $ac_cv_type_uid_t = no; then |
| 5404 | |
| 5405 | $as_echo "#define uid_t int" >>confdefs.h |
| 5406 | |
| 5407 | |
| 5408 | $as_echo "#define gid_t int" >>confdefs.h |
| 5409 | |
| 5410 | fi |
| 5411 | |
| 5412 | |
| 5413 | ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" |
| 5414 | if test "x$ac_cv_type_caddr_t" = xyes; then : |
| 5415 | |
| 5416 | cat >>confdefs.h <<_ACEOF |
| 5417 | #define HAVE_CADDR_T 1 |
| 5418 | _ACEOF |
| 5419 | |
| 5420 | |
| 5421 | fi |
| 5422 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5423 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 5424 | if test "x$ac_cv_type_long_long" = xyes; then : |
| 5425 | |
| 5426 | cat >>confdefs.h <<_ACEOF |
| 5427 | #define HAVE_LONG_LONG 1 |
| 5428 | _ACEOF |
| 5429 | |
| 5430 | |
| 5431 | fi |
| 5432 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5433 | # The cast to long int works around a bug in the HP C Compiler |
| 5434 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5435 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5436 | # This bug is HP SR number 8606223364. |
| 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 5438 | $as_echo_n "checking size of size_t... " >&6; } |
| 5439 | if ${ac_cv_sizeof_size_t+:} false; then : |
| 5440 | $as_echo_n "(cached) " >&6 |
| 5441 | else |
| 5442 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
| 5443 | |
| 5444 | else |
| 5445 | if test "$ac_cv_type_size_t" = yes; then |
| 5446 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5448 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 5449 | See \`config.log' for more details" "$LINENO" 5; } |
| 5450 | else |
| 5451 | ac_cv_sizeof_size_t=0 |
| 5452 | fi |
| 5453 | fi |
| 5454 | |
| 5455 | fi |
| 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 5457 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | cat >>confdefs.h <<_ACEOF |
| 5462 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 5463 | _ACEOF |
| 5464 | |
| 5465 | |
| 5466 | # The cast to long int works around a bug in the HP C Compiler |
| 5467 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5468 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5469 | # This bug is HP SR number 8606223364. |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 5471 | $as_echo_n "checking size of off_t... " >&6; } |
| 5472 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 5473 | $as_echo_n "(cached) " >&6 |
| 5474 | else |
| 5475 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 5476 | |
| 5477 | else |
| 5478 | if test "$ac_cv_type_off_t" = yes; then |
| 5479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5481 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 5482 | See \`config.log' for more details" "$LINENO" 5; } |
| 5483 | else |
| 5484 | ac_cv_sizeof_off_t=0 |
| 5485 | fi |
| 5486 | fi |
| 5487 | |
| 5488 | fi |
| 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 5490 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | cat >>confdefs.h <<_ACEOF |
| 5495 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 5496 | _ACEOF |
| 5497 | |
| 5498 | |
| 5499 | # The cast to long int works around a bug in the HP C Compiler |
| 5500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5502 | # This bug is HP SR number 8606223364. |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 5504 | $as_echo_n "checking size of time_t... " >&6; } |
| 5505 | if ${ac_cv_sizeof_time_t+:} false; then : |
| 5506 | $as_echo_n "(cached) " >&6 |
| 5507 | else |
| 5508 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : |
| 5509 | |
| 5510 | else |
| 5511 | if test "$ac_cv_type_time_t" = yes; then |
| 5512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5514 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 5515 | See \`config.log' for more details" "$LINENO" 5; } |
| 5516 | else |
| 5517 | ac_cv_sizeof_time_t=0 |
| 5518 | fi |
| 5519 | fi |
| 5520 | |
| 5521 | fi |
| 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 5523 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
| 5524 | |
| 5525 | |
| 5526 | |
| 5527 | cat >>confdefs.h <<_ACEOF |
| 5528 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 5529 | _ACEOF |
| 5530 | |
| 5531 | |
| 5532 | # The cast to long int works around a bug in the HP C Compiler |
| 5533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5535 | # This bug is HP SR number 8606223364. |
| 5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 5537 | $as_echo_n "checking size of long... " >&6; } |
| 5538 | if ${ac_cv_sizeof_long+:} false; then : |
| 5539 | $as_echo_n "(cached) " >&6 |
| 5540 | else |
| 5541 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
| 5542 | |
| 5543 | else |
| 5544 | if test "$ac_cv_type_long" = yes; then |
| 5545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5547 | as_fn_error 77 "cannot compute sizeof (long) |
| 5548 | See \`config.log' for more details" "$LINENO" 5; } |
| 5549 | else |
| 5550 | ac_cv_sizeof_long=0 |
| 5551 | fi |
| 5552 | fi |
| 5553 | |
| 5554 | fi |
| 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 5556 | $as_echo "$ac_cv_sizeof_long" >&6; } |
| 5557 | |
| 5558 | |
| 5559 | |
| 5560 | cat >>confdefs.h <<_ACEOF |
| 5561 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5562 | _ACEOF |
| 5563 | |
| 5564 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5565 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5566 | seek_function= |
| 5567 | |
| 5568 | if test $ac_cv_sizeof_off_t -ge 8 ; then |
| 5569 | seek_function=lseek |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5570 | fi |
| 5571 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5572 | if test X$seek_function = X ; then |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5573 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5574 | $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5575 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5576 | ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" |
| 5577 | if test "x$ac_cv_type_off64_t" = xyes; then : |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5578 | |
| 5579 | cat >>confdefs.h <<_ACEOF |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5580 | #define HAVE_OFF64_T 1 |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5581 | _ACEOF |
| 5582 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5583 | for ac_func in lseek64 |
| 5584 | do : |
| 5585 | ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" |
| 5586 | if test "x$ac_cv_func_lseek64" = xyes; then : |
| 5587 | cat >>confdefs.h <<_ACEOF |
| 5588 | #define HAVE_LSEEK64 1 |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5589 | _ACEOF |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5590 | seek_function=lseek64 |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5591 | fi |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5592 | done |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5593 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5594 | |
| 5595 | fi |
| 5596 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5597 | for ac_func in stat64 |
| 5598 | do : |
| 5599 | ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" |
| 5600 | if test "x$ac_cv_func_stat64" = xyes; then : |
| 5601 | cat >>confdefs.h <<_ACEOF |
| 5602 | #define HAVE_STAT64 1 |
| 5603 | _ACEOF |
| 5604 | |
| 5605 | fi |
| 5606 | done |
| 5607 | |
| 5608 | if test X$seek_function = Xlseek64 ; then |
| 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek64 declared in unistd.h" >&5 |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5610 | $as_echo_n "checking whether lseek64 declared in unistd.h... " >&6; } |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5611 | if ${mtools_cv_have_lseek64_prototype+:} false; then : |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5612 | $as_echo_n "(cached) " >&6 |
| 5613 | else |
| 5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5615 | /* end confdefs.h. */ |
| 5616 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5617 | #define _LARGEFILE64_SOURCE |
| 5618 | #include <sys/types.h> |
| 5619 | #include <unistd.h> |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5620 | |
| 5621 | int |
| 5622 | main () |
| 5623 | { |
| 5624 | extern int lseek64(int); |
| 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5630 | mtools_cv_have_lseek64_prototype=no |
| 5631 | else |
| 5632 | mtools_cv_have_lseek64_prototype=yes |
| 5633 | fi |
| 5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5635 | fi |
| 5636 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_lseek64_prototype" >&5 |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5638 | $as_echo "$mtools_cv_have_lseek64_prototype" >&6; } |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5639 | if test "$mtools_cv_have_lseek64_prototype" = yes; then |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5640 | |
| 5641 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
| 5642 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5643 | fi |
| 5644 | fi |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5645 | fi |
| 5646 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 5647 | if test X$seek_function = X ; then |
| 5648 | |
| 5649 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 5650 | |
| 5651 | ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" |
| 5652 | if test "x$ac_cv_type_loff_t" = xyes; then : |
| 5653 | |
| 5654 | cat >>confdefs.h <<_ACEOF |
| 5655 | #define HAVE_LOFF_T 1 |
| 5656 | _ACEOF |
| 5657 | |
| 5658 | for ac_func in llseek |
| 5659 | do : |
| 5660 | ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" |
| 5661 | if test "x$ac_cv_func_llseek" = xyes; then : |
| 5662 | cat >>confdefs.h <<_ACEOF |
| 5663 | #define HAVE_LLSEEK 1 |
| 5664 | _ACEOF |
| 5665 | seek_function=llseek |
| 5666 | fi |
| 5667 | done |
| 5668 | |
| 5669 | |
| 5670 | fi |
| 5671 | ac_fn_c_check_type "$LINENO" "offset_t" "ac_cv_type_offset_t" "$ac_includes_default" |
| 5672 | if test "x$ac_cv_type_offset_t" = xyes; then : |
| 5673 | |
| 5674 | cat >>confdefs.h <<_ACEOF |
| 5675 | #define HAVE_OFFSET_T 1 |
| 5676 | _ACEOF |
| 5677 | |
| 5678 | for ac_func in llseek |
| 5679 | do : |
| 5680 | ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" |
| 5681 | if test "x$ac_cv_func_llseek" = xyes; then : |
| 5682 | cat >>confdefs.h <<_ACEOF |
| 5683 | #define HAVE_LLSEEK 1 |
| 5684 | _ACEOF |
| 5685 | seek_function=llseek |
| 5686 | fi |
| 5687 | done |
| 5688 | |
| 5689 | |
| 5690 | fi |
| 5691 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 5692 | if test "x$ac_cv_type_long_long" = xyes; then : |
| 5693 | |
| 5694 | cat >>confdefs.h <<_ACEOF |
| 5695 | #define HAVE_LONG_LONG 1 |
| 5696 | _ACEOF |
| 5697 | |
| 5698 | for ac_func in llseek |
| 5699 | do : |
| 5700 | ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" |
| 5701 | if test "x$ac_cv_func_llseek" = xyes; then : |
| 5702 | cat >>confdefs.h <<_ACEOF |
| 5703 | #define HAVE_LLSEEK 1 |
| 5704 | _ACEOF |
| 5705 | seek_function=llseek |
| 5706 | fi |
| 5707 | done |
| 5708 | |
| 5709 | |
| 5710 | fi |
| 5711 | |
| 5712 | |
| 5713 | if test X$seek_function = Xllseek ; then |
| 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llseek declared in unistd.h" >&5 |
| 5715 | $as_echo_n "checking whether llseek declared in unistd.h... " >&6; } |
| 5716 | if ${mtools_cv_have_llseek_prototype+:} false; then : |
| 5717 | $as_echo_n "(cached) " >&6 |
| 5718 | else |
| 5719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5720 | /* end confdefs.h. */ |
| 5721 | |
| 5722 | #define _LARGEFILE_SOURCE |
| 5723 | #define _LARGEFILE64_SOURCE |
| 5724 | #include <sys/types.h> |
| 5725 | #include <unistd.h> |
| 5726 | |
| 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | extern int llseek(int); |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5736 | mtools_cv_have_llseek_prototype=no |
| 5737 | else |
| 5738 | mtools_cv_have_llseek_prototype=yes |
| 5739 | fi |
| 5740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5741 | fi |
| 5742 | |
| 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_llseek_prototype" >&5 |
| 5744 | $as_echo "$mtools_cv_have_llseek_prototype" >&6; } |
| 5745 | if test "$mtools_cv_have_llseek_prototype" = yes; then |
| 5746 | |
| 5747 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
| 5748 | |
| 5749 | fi |
| 5750 | fi |
| 5751 | fi |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 5752 | |
| 5753 | for ac_func in htons |
| 5754 | do : |
| 5755 | ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons" |
| 5756 | if test "x$ac_cv_func_htons" = xyes; then : |
| 5757 | cat >>confdefs.h <<_ACEOF |
| 5758 | #define HAVE_HTONS 1 |
| 5759 | _ACEOF |
| 5760 | |
| 5761 | fi |
| 5762 | done |
| 5763 | |
| 5764 | |
| 5765 | |
| 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 5767 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 5768 | if ${ac_cv_c_const+:} false; then : |
| 5769 | $as_echo_n "(cached) " >&6 |
| 5770 | else |
| 5771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5772 | /* end confdefs.h. */ |
| 5773 | |
| 5774 | int |
| 5775 | main () |
| 5776 | { |
| 5777 | |
| 5778 | #ifndef __cplusplus |
| 5779 | /* Ultrix mips cc rejects this sort of thing. */ |
| 5780 | typedef int charset[2]; |
| 5781 | const charset cs = { 0, 0 }; |
| 5782 | /* SunOS 4.1.1 cc rejects this. */ |
| 5783 | char const *const *pcpcc; |
| 5784 | char **ppc; |
| 5785 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5786 | struct point {int x, y;}; |
| 5787 | static struct point const zero = {0,0}; |
| 5788 | /* AIX XL C 1.02.0.0 rejects this. |
| 5789 | It does not let you subtract one const X* pointer from another in |
| 5790 | an arm of an if-expression whose if-part is not a constant |
| 5791 | expression */ |
| 5792 | const char *g = "string"; |
| 5793 | pcpcc = &g + (g ? g-g : 0); |
| 5794 | /* HPUX 7.0 cc rejects these. */ |
| 5795 | ++pcpcc; |
| 5796 | ppc = (char**) pcpcc; |
| 5797 | pcpcc = (char const *const *) ppc; |
| 5798 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 5799 | char tx; |
| 5800 | char *t = &tx; |
| 5801 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5802 | |
| 5803 | *t++ = 0; |
| 5804 | if (s) return 0; |
| 5805 | } |
| 5806 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5807 | int x[] = {25, 17}; |
| 5808 | const int *foo = &x[0]; |
| 5809 | ++foo; |
| 5810 | } |
| 5811 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5812 | typedef const int *iptr; |
| 5813 | iptr p = 0; |
| 5814 | ++p; |
| 5815 | } |
| 5816 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 5817 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5818 | struct s { int j; const int *ap[3]; } bx; |
| 5819 | struct s *b = &bx; b->j = 5; |
| 5820 | } |
| 5821 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5822 | const int foo = 10; |
| 5823 | if (!foo) return 0; |
| 5824 | } |
| 5825 | return !cs[0] && !zero.x; |
| 5826 | #endif |
| 5827 | |
| 5828 | ; |
| 5829 | return 0; |
| 5830 | } |
| 5831 | _ACEOF |
| 5832 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5833 | ac_cv_c_const=yes |
| 5834 | else |
| 5835 | ac_cv_c_const=no |
| 5836 | fi |
| 5837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5838 | fi |
| 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 5840 | $as_echo "$ac_cv_c_const" >&6; } |
| 5841 | if test $ac_cv_c_const = no; then |
| 5842 | |
| 5843 | $as_echo "#define const /**/" >>confdefs.h |
| 5844 | |
| 5845 | fi |
| 5846 | |
| 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5848 | $as_echo_n "checking for inline... " >&6; } |
| 5849 | if ${ac_cv_c_inline+:} false; then : |
| 5850 | $as_echo_n "(cached) " >&6 |
| 5851 | else |
| 5852 | ac_cv_c_inline=no |
| 5853 | for ac_kw in inline __inline__ __inline; do |
| 5854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5855 | /* end confdefs.h. */ |
| 5856 | #ifndef __cplusplus |
| 5857 | typedef int foo_t; |
| 5858 | static $ac_kw foo_t static_foo () {return 0; } |
| 5859 | $ac_kw foo_t foo () {return 0; } |
| 5860 | #endif |
| 5861 | |
| 5862 | _ACEOF |
| 5863 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5864 | ac_cv_c_inline=$ac_kw |
| 5865 | fi |
| 5866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5867 | test "$ac_cv_c_inline" != no && break |
| 5868 | done |
| 5869 | |
| 5870 | fi |
| 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5872 | $as_echo "$ac_cv_c_inline" >&6; } |
| 5873 | |
| 5874 | case $ac_cv_c_inline in |
| 5875 | inline | yes) ;; |
| 5876 | *) |
| 5877 | case $ac_cv_c_inline in |
| 5878 | no) ac_val=;; |
| 5879 | *) ac_val=$ac_cv_c_inline;; |
| 5880 | esac |
| 5881 | cat >>confdefs.h <<_ACEOF |
| 5882 | #ifndef __cplusplus |
| 5883 | #define inline $ac_val |
| 5884 | #endif |
| 5885 | _ACEOF |
| 5886 | ;; |
| 5887 | esac |
| 5888 | |
| 5889 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 5890 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 5891 | |
| 5892 | else |
| 5893 | |
| 5894 | cat >>confdefs.h <<_ACEOF |
| 5895 | #define size_t unsigned int |
| 5896 | _ACEOF |
| 5897 | |
| 5898 | fi |
| 5899 | |
| 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 5901 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 5902 | if ${ac_cv_header_time+:} false; then : |
| 5903 | $as_echo_n "(cached) " >&6 |
| 5904 | else |
| 5905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5906 | /* end confdefs.h. */ |
| 5907 | #include <sys/types.h> |
| 5908 | #include <sys/time.h> |
| 5909 | #include <time.h> |
| 5910 | |
| 5911 | int |
| 5912 | main () |
| 5913 | { |
| 5914 | if ((struct tm *) 0) |
| 5915 | return 0; |
| 5916 | ; |
| 5917 | return 0; |
| 5918 | } |
| 5919 | _ACEOF |
| 5920 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5921 | ac_cv_header_time=yes |
| 5922 | else |
| 5923 | ac_cv_header_time=no |
| 5924 | fi |
| 5925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5926 | fi |
| 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 5928 | $as_echo "$ac_cv_header_time" >&6; } |
| 5929 | if test $ac_cv_header_time = yes; then |
| 5930 | |
| 5931 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 5932 | |
| 5933 | fi |
| 5934 | |
| 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 5936 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 5937 | if ${ac_cv_struct_tm+:} false; then : |
| 5938 | $as_echo_n "(cached) " >&6 |
| 5939 | else |
| 5940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5941 | /* end confdefs.h. */ |
| 5942 | #include <sys/types.h> |
| 5943 | #include <time.h> |
| 5944 | |
| 5945 | int |
| 5946 | main () |
| 5947 | { |
| 5948 | struct tm tm; |
| 5949 | int *p = &tm.tm_sec; |
| 5950 | return !p; |
| 5951 | ; |
| 5952 | return 0; |
| 5953 | } |
| 5954 | _ACEOF |
| 5955 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5956 | ac_cv_struct_tm=time.h |
| 5957 | else |
| 5958 | ac_cv_struct_tm=sys/time.h |
| 5959 | fi |
| 5960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5961 | fi |
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 5963 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 5964 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5965 | |
| 5966 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| 5967 | |
| 5968 | fi |
| 5969 | |
| 5970 | |
| 5971 | |
| 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 5973 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| 5974 | if ${ac_cv_type_signal+:} false; then : |
| 5975 | $as_echo_n "(cached) " >&6 |
| 5976 | else |
| 5977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5978 | /* end confdefs.h. */ |
| 5979 | #include <sys/types.h> |
| 5980 | #include <signal.h> |
| 5981 | |
| 5982 | int |
| 5983 | main () |
| 5984 | { |
| 5985 | return *(signal (0, 0)) (0) == 1; |
| 5986 | ; |
| 5987 | return 0; |
| 5988 | } |
| 5989 | _ACEOF |
| 5990 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5991 | ac_cv_type_signal=int |
| 5992 | else |
| 5993 | ac_cv_type_signal=void |
| 5994 | fi |
| 5995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5996 | fi |
| 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 5998 | $as_echo "$ac_cv_type_signal" >&6; } |
| 5999 | |
| 6000 | cat >>confdefs.h <<_ACEOF |
| 6001 | #define RETSIGTYPE $ac_cv_type_signal |
| 6002 | _ACEOF |
| 6003 | |
| 6004 | |
| 6005 | for ac_func in strerror random srandom strchr strrchr lockf flock \ |
| 6006 | strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \ |
| 6007 | strdup strndup strcspn strspn strtoul strtol strtoll strtoi strtoui \ |
| 6008 | memcpy strpbrk memset setenv seteuid setresuid setpgrp \ |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 6009 | tcsetattr tcflush basename fchdir media_oldaliases \ |
| 6010 | snprintf setlocale toupper_l strncasecmp_l \ |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 6011 | wcsdup wcscasecmp wcsnlen putwc \ |
| 6012 | getuserid getgroupid \ |
| 6013 | alarm sigaction usleep |
| 6014 | do : |
| 6015 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6016 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6017 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 6018 | cat >>confdefs.h <<_ACEOF |
| 6019 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6020 | _ACEOF |
| 6021 | |
| 6022 | fi |
| 6023 | done |
| 6024 | |
| 6025 | |
| 6026 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 6027 | for ac_func in utimes utime |
| 6028 | do : |
| 6029 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6030 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6031 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 6032 | cat >>confdefs.h <<_ACEOF |
| 6033 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6034 | _ACEOF |
| 6035 | break |
| 6036 | fi |
| 6037 | done |
| 6038 | |
| 6039 | for ac_func in tzset gettimeofday |
| 6040 | do : |
| 6041 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6042 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6043 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 6044 | cat >>confdefs.h <<_ACEOF |
| 6045 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6046 | _ACEOF |
| 6047 | |
| 6048 | fi |
| 6049 | done |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5 |
| 6054 | $as_echo_n "checking declaration of sys_errlist... " >&6; } |
| 6055 | if ${cf_cv_dcl_sys_errlist+:} false; then : |
| 6056 | $as_echo_n "(cached) " >&6 |
| 6057 | else |
| 6058 | |
| 6059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6060 | /* end confdefs.h. */ |
| 6061 | |
| 6062 | #include <stdio.h> |
| 6063 | #include <sys/types.h> |
| 6064 | #include <errno.h> |
| 6065 | int |
| 6066 | main () |
| 6067 | { |
| 6068 | char *c = (char *) *sys_errlist |
| 6069 | ; |
| 6070 | return 0; |
| 6071 | } |
| 6072 | _ACEOF |
| 6073 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6074 | cf_cv_dcl_sys_errlist=yes |
| 6075 | else |
| 6076 | cf_cv_dcl_sys_errlist=no |
| 6077 | fi |
| 6078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6079 | fi |
| 6080 | |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_dcl_sys_errlist" >&5 |
| 6082 | $as_echo "$cf_cv_dcl_sys_errlist" >&6; } |
| 6083 | test $cf_cv_dcl_sys_errlist = no || |
| 6084 | $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | host_os0=`echo $host_os | sed 's/-/_/g'` |
| 6090 | host_os1=`echo $host_os0 | sed 's/\./_/g'` |
| 6091 | host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'` |
| 6092 | host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'` |
| 6093 | host_cpu1=`echo $host_cpu | sed 's/\./_/g'` |
| 6094 | host_vendor1=`echo $host_vendor | sed 's/\./_/g'` |
| 6095 | HOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1" |
| 6096 | if [ $host_os1 != $host_os2 ] ; then |
| 6097 | HOST_ID="$HOST_ID -DOS_$host_os2" |
| 6098 | fi |
| 6099 | if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then |
| 6100 | HOST_ID="$HOST_ID -DOS_$host_os3" |
| 6101 | fi |
| 6102 | |
| 6103 | my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u` |
| 6104 | objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' ` |
| 6105 | if [ "X$GCC" = "Xyes" ] ; then |
| 6106 | Wall=-Wall |
| 6107 | if [ "$host_os3" = sunos ] ; then |
| 6108 | Wall="" |
| 6109 | fi |
| 6110 | if [ "$host_os3" = ultrix ] ; then |
| 6111 | Wall="" |
| 6112 | fi |
| 6113 | if [ "$host_os3" = linux ] ; then |
| 6114 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 6115 | fi |
| 6116 | if [ "$host_os3" = aux ] ; then |
| 6117 | CFLAGS="$CFLAGS -ZP" |
| 6118 | MACHDEPLIBS="-lposix -UTIL" |
| 6119 | fi |
| 6120 | case "${host}" in |
| 6121 | arm*-*-linux) CFLAGS="$CFLAGS -mstructure-size-boundary=8";; |
| 6122 | esac |
| 6123 | CFLAGS="$CFLAGS $Wall" |
| 6124 | else |
| 6125 | if [ $host_os3 = hpux ] ; then |
| 6126 | CPPFLAGS="$CPPFLAGS -Ae" |
| 6127 | fi |
| 6128 | |
| 6129 | if [ $host_os3 = xenix ] ; then |
| 6130 | CFLAGS="$CFLAGS -M2e" |
| 6131 | fi |
| 6132 | fi |
| 6133 | |
| 6134 | if [ $host_os3 = hpux ] ; then |
| 6135 | LDFLAGS="$LDFLAGS -z" |
| 6136 | fi |
| 6137 | |
| 6138 | if [ $host_os3 = xenix ] ; then |
| 6139 | LDFLAGS="$LDFLAGS -M2e -i -f 5000" |
| 6140 | fi |
| 6141 | |
| 6142 | if [ $host_os2 = sysv4 ] ; then |
| 6143 | SHLIB="-lc -L/usr/ucblib -lucb" |
| 6144 | else |
| 6145 | SHLIB="" |
| 6146 | fi |
| 6147 | |
| 6148 | if [ $host_os3 = isc ] ; then |
| 6149 | CFLAGS="$CFLAGS -D_SYSV3" |
| 6150 | SHLIB="-lc_s" |
| 6151 | fi |
| 6152 | |
| 6153 | if [ $host_os3 = solaris -a x$newVold = xxyes ] ; then |
| 6154 | SHLIB="$SHLIB -s -lvolmgt" |
| 6155 | fi |
| 6156 | |
| 6157 | if [ $host_os3 = nextstep ] ; then |
| 6158 | CFLAGS="$CFLAGS -DBSD" |
| 6159 | SHLIB="" |
| 6160 | fi |
| 6161 | |
| 6162 | if [ -d /usr/5lib ] ; then |
| 6163 | extralibdir=-L/usr/5lib |
| 6164 | fi |
| 6165 | |
| 6166 | |
| 6167 | |
| 6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 6169 | $as_echo_n "checking for X... " >&6; } |
| 6170 | |
| 6171 | |
| 6172 | # Check whether --with-x was given. |
| 6173 | if test "${with_x+set}" = set; then : |
| 6174 | withval=$with_x; |
| 6175 | fi |
| 6176 | |
| 6177 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6178 | if test "x$with_x" = xno; then |
| 6179 | # The user explicitly disabled X. |
| 6180 | have_x=disabled |
| 6181 | else |
| 6182 | case $x_includes,$x_libraries in #( |
| 6183 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 6184 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
| 6185 | $as_echo_n "(cached) " >&6 |
| 6186 | else |
| 6187 | # One or both of the vars are not set, and there is no cached value. |
| 6188 | ac_x_includes=no ac_x_libraries=no |
| 6189 | rm -f -r conftest.dir |
| 6190 | if mkdir conftest.dir; then |
| 6191 | cd conftest.dir |
| 6192 | cat >Imakefile <<'_ACEOF' |
| 6193 | incroot: |
| 6194 | @echo incroot='${INCROOT}' |
| 6195 | usrlibdir: |
| 6196 | @echo usrlibdir='${USRLIBDIR}' |
| 6197 | libdir: |
| 6198 | @echo libdir='${LIBDIR}' |
| 6199 | _ACEOF |
| 6200 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 6201 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 6202 | for ac_var in incroot usrlibdir libdir; do |
| 6203 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6204 | done |
| 6205 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 6206 | for ac_extension in a so sl dylib la dll; do |
| 6207 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6208 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 6209 | ac_im_usrlibdir=$ac_im_libdir; break |
| 6210 | fi |
| 6211 | done |
| 6212 | # Screen out bogus values from the imake configuration. They are |
| 6213 | # bogus both because they are the default anyway, and because |
| 6214 | # using them would break gcc on systems where it needs fixed includes. |
| 6215 | case $ac_im_incroot in |
| 6216 | /usr/include) ac_x_includes= ;; |
| 6217 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 6218 | esac |
| 6219 | case $ac_im_usrlibdir in |
| 6220 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 6221 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 6222 | esac |
| 6223 | fi |
| 6224 | cd .. |
| 6225 | rm -f -r conftest.dir |
| 6226 | fi |
| 6227 | |
| 6228 | # Standard set of common directories for X headers. |
| 6229 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6230 | ac_x_header_dirs=' |
| 6231 | /usr/X11/include |
| 6232 | /usr/X11R7/include |
| 6233 | /usr/X11R6/include |
| 6234 | /usr/X11R5/include |
| 6235 | /usr/X11R4/include |
| 6236 | |
| 6237 | /usr/include/X11 |
| 6238 | /usr/include/X11R7 |
| 6239 | /usr/include/X11R6 |
| 6240 | /usr/include/X11R5 |
| 6241 | /usr/include/X11R4 |
| 6242 | |
| 6243 | /usr/local/X11/include |
| 6244 | /usr/local/X11R7/include |
| 6245 | /usr/local/X11R6/include |
| 6246 | /usr/local/X11R5/include |
| 6247 | /usr/local/X11R4/include |
| 6248 | |
| 6249 | /usr/local/include/X11 |
| 6250 | /usr/local/include/X11R7 |
| 6251 | /usr/local/include/X11R6 |
| 6252 | /usr/local/include/X11R5 |
| 6253 | /usr/local/include/X11R4 |
| 6254 | |
| 6255 | /usr/X386/include |
| 6256 | /usr/x386/include |
| 6257 | /usr/XFree86/include/X11 |
| 6258 | |
| 6259 | /usr/include |
| 6260 | /usr/local/include |
| 6261 | /usr/unsupported/include |
| 6262 | /usr/athena/include |
| 6263 | /usr/local/x11r5/include |
| 6264 | /usr/lpp/Xamples/include |
| 6265 | |
| 6266 | /usr/openwin/include |
| 6267 | /usr/openwin/share/include' |
| 6268 | |
| 6269 | if test "$ac_x_includes" = no; then |
| 6270 | # Guess where to find include files, by looking for Xlib.h. |
| 6271 | # First, try using that file with no special directory specified. |
| 6272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6273 | /* end confdefs.h. */ |
| 6274 | #include <X11/Xlib.h> |
| 6275 | _ACEOF |
| 6276 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6277 | # We can compile using X headers with no special include directory. |
| 6278 | ac_x_includes= |
| 6279 | else |
| 6280 | for ac_dir in $ac_x_header_dirs; do |
| 6281 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 6282 | ac_x_includes=$ac_dir |
| 6283 | break |
| 6284 | fi |
| 6285 | done |
| 6286 | fi |
| 6287 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6288 | fi # $ac_x_includes = no |
| 6289 | |
| 6290 | if test "$ac_x_libraries" = no; then |
| 6291 | # Check for the libraries. |
| 6292 | # See if we find them without any special options. |
| 6293 | # Don't add to $LIBS permanently. |
| 6294 | ac_save_LIBS=$LIBS |
| 6295 | LIBS="-lX11 $LIBS" |
| 6296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6297 | /* end confdefs.h. */ |
| 6298 | #include <X11/Xlib.h> |
| 6299 | int |
| 6300 | main () |
| 6301 | { |
| 6302 | XrmInitialize () |
| 6303 | ; |
| 6304 | return 0; |
| 6305 | } |
| 6306 | _ACEOF |
| 6307 | if ac_fn_c_try_link "$LINENO"; then : |
| 6308 | LIBS=$ac_save_LIBS |
| 6309 | # We can link X programs with no special library path. |
| 6310 | ac_x_libraries= |
| 6311 | else |
| 6312 | LIBS=$ac_save_LIBS |
| 6313 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 6314 | do |
| 6315 | # Don't even attempt the hair of trying to link an X program! |
| 6316 | for ac_extension in a so sl dylib la dll; do |
| 6317 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 6318 | ac_x_libraries=$ac_dir |
| 6319 | break 2 |
| 6320 | fi |
| 6321 | done |
| 6322 | done |
| 6323 | fi |
| 6324 | rm -f core conftest.err conftest.$ac_objext \ |
| 6325 | conftest$ac_exeext conftest.$ac_ext |
| 6326 | fi # $ac_x_libraries = no |
| 6327 | |
| 6328 | case $ac_x_includes,$ac_x_libraries in #( |
| 6329 | no,* | *,no | *\'*) |
| 6330 | # Didn't find X, or a directory has "'" in its name. |
| 6331 | ac_cv_have_x="have_x=no";; #( |
| 6332 | *) |
| 6333 | # Record where we found X for the cache. |
| 6334 | ac_cv_have_x="have_x=yes\ |
| 6335 | ac_x_includes='$ac_x_includes'\ |
| 6336 | ac_x_libraries='$ac_x_libraries'" |
| 6337 | esac |
| 6338 | fi |
| 6339 | ;; #( |
| 6340 | *) have_x=yes;; |
| 6341 | esac |
| 6342 | eval "$ac_cv_have_x" |
| 6343 | fi # $with_x != no |
| 6344 | |
| 6345 | if test "$have_x" != yes; then |
| 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 6347 | $as_echo "$have_x" >&6; } |
| 6348 | no_x=yes |
| 6349 | else |
| 6350 | # If each of the values was on the command line, it overrides each guess. |
| 6351 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6352 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6353 | # Update the cache value to reflect the command line values. |
| 6354 | ac_cv_have_x="have_x=yes\ |
| 6355 | ac_x_includes='$x_includes'\ |
| 6356 | ac_x_libraries='$x_libraries'" |
| 6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6358 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 6359 | fi |
| 6360 | |
| 6361 | if test "$no_x" = yes; then |
| 6362 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 6363 | |
| 6364 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| 6365 | |
| 6366 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6367 | else |
| 6368 | if test -n "$x_includes"; then |
| 6369 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6370 | fi |
| 6371 | |
| 6372 | # It would also be nice to do this for all -L options, not just this one. |
| 6373 | if test -n "$x_libraries"; then |
| 6374 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6375 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6376 | # others require no space. Words are not sufficient . . . . |
| 6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 6378 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6379 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6380 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6381 | ac_c_werror_flag=yes |
| 6382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6383 | /* end confdefs.h. */ |
| 6384 | |
| 6385 | int |
| 6386 | main () |
| 6387 | { |
| 6388 | |
| 6389 | ; |
| 6390 | return 0; |
| 6391 | } |
| 6392 | _ACEOF |
| 6393 | if ac_fn_c_try_link "$LINENO"; then : |
| 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6395 | $as_echo "no" >&6; } |
| 6396 | X_LIBS="$X_LIBS -R$x_libraries" |
| 6397 | else |
| 6398 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 6399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6400 | /* end confdefs.h. */ |
| 6401 | |
| 6402 | int |
| 6403 | main () |
| 6404 | { |
| 6405 | |
| 6406 | ; |
| 6407 | return 0; |
| 6408 | } |
| 6409 | _ACEOF |
| 6410 | if ac_fn_c_try_link "$LINENO"; then : |
| 6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6412 | $as_echo "yes" >&6; } |
| 6413 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6414 | else |
| 6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 6416 | $as_echo "neither works" >&6; } |
| 6417 | fi |
| 6418 | rm -f core conftest.err conftest.$ac_objext \ |
| 6419 | conftest$ac_exeext conftest.$ac_ext |
| 6420 | fi |
| 6421 | rm -f core conftest.err conftest.$ac_objext \ |
| 6422 | conftest$ac_exeext conftest.$ac_ext |
| 6423 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6424 | LIBS=$ac_xsave_LIBS |
| 6425 | fi |
| 6426 | |
| 6427 | # Check for system-dependent libraries X programs must link with. |
| 6428 | # Do this before checking for the system-independent R6 libraries |
| 6429 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6430 | |
| 6431 | if test "$ISC" = yes; then |
| 6432 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6433 | else |
| 6434 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6435 | # libraries were built with DECnet support. And Karl Berry says |
| 6436 | # the Alpha needs dnet_stub (dnet does not exist). |
| 6437 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6439 | /* end confdefs.h. */ |
| 6440 | |
| 6441 | /* Override any GCC internal prototype to avoid an error. |
| 6442 | Use char because int might match the return type of a GCC |
| 6443 | builtin and then its argument prototype would still apply. */ |
| 6444 | #ifdef __cplusplus |
| 6445 | extern "C" |
| 6446 | #endif |
| 6447 | char XOpenDisplay (); |
| 6448 | int |
| 6449 | main () |
| 6450 | { |
| 6451 | return XOpenDisplay (); |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
| 6456 | if ac_fn_c_try_link "$LINENO"; then : |
| 6457 | |
| 6458 | else |
| 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 6460 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| 6461 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
| 6462 | $as_echo_n "(cached) " >&6 |
| 6463 | else |
| 6464 | ac_check_lib_save_LIBS=$LIBS |
| 6465 | LIBS="-ldnet $LIBS" |
| 6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6467 | /* end confdefs.h. */ |
| 6468 | |
| 6469 | /* Override any GCC internal prototype to avoid an error. |
| 6470 | Use char because int might match the return type of a GCC |
| 6471 | builtin and then its argument prototype would still apply. */ |
| 6472 | #ifdef __cplusplus |
| 6473 | extern "C" |
| 6474 | #endif |
| 6475 | char dnet_ntoa (); |
| 6476 | int |
| 6477 | main () |
| 6478 | { |
| 6479 | return dnet_ntoa (); |
| 6480 | ; |
| 6481 | return 0; |
| 6482 | } |
| 6483 | _ACEOF |
| 6484 | if ac_fn_c_try_link "$LINENO"; then : |
| 6485 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6486 | else |
| 6487 | ac_cv_lib_dnet_dnet_ntoa=no |
| 6488 | fi |
| 6489 | rm -f core conftest.err conftest.$ac_objext \ |
| 6490 | conftest$ac_exeext conftest.$ac_ext |
| 6491 | LIBS=$ac_check_lib_save_LIBS |
| 6492 | fi |
| 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6494 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 6495 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
| 6496 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 6497 | fi |
| 6498 | |
| 6499 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6501 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 6502 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
| 6503 | $as_echo_n "(cached) " >&6 |
| 6504 | else |
| 6505 | ac_check_lib_save_LIBS=$LIBS |
| 6506 | LIBS="-ldnet_stub $LIBS" |
| 6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6508 | /* end confdefs.h. */ |
| 6509 | |
| 6510 | /* Override any GCC internal prototype to avoid an error. |
| 6511 | Use char because int might match the return type of a GCC |
| 6512 | builtin and then its argument prototype would still apply. */ |
| 6513 | #ifdef __cplusplus |
| 6514 | extern "C" |
| 6515 | #endif |
| 6516 | char dnet_ntoa (); |
| 6517 | int |
| 6518 | main () |
| 6519 | { |
| 6520 | return dnet_ntoa (); |
| 6521 | ; |
| 6522 | return 0; |
| 6523 | } |
| 6524 | _ACEOF |
| 6525 | if ac_fn_c_try_link "$LINENO"; then : |
| 6526 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 6527 | else |
| 6528 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 6529 | fi |
| 6530 | rm -f core conftest.err conftest.$ac_objext \ |
| 6531 | conftest$ac_exeext conftest.$ac_ext |
| 6532 | LIBS=$ac_check_lib_save_LIBS |
| 6533 | fi |
| 6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6535 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 6536 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
| 6537 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 6538 | fi |
| 6539 | |
| 6540 | fi |
| 6541 | fi |
| 6542 | rm -f core conftest.err conftest.$ac_objext \ |
| 6543 | conftest$ac_exeext conftest.$ac_ext |
| 6544 | LIBS="$ac_xsave_LIBS" |
| 6545 | |
| 6546 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6547 | # to get the SysV transport functions. |
| 6548 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 6549 | # needs -lnsl. |
| 6550 | # The nsl library prevents programs from opening the X display |
| 6551 | # on Irix 5.2, according to T.E. Dickey. |
| 6552 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6553 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 6554 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 6555 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
| 6556 | |
| 6557 | fi |
| 6558 | |
| 6559 | if test $ac_cv_func_gethostbyname = no; then |
| 6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 6561 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| 6562 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
| 6563 | $as_echo_n "(cached) " >&6 |
| 6564 | else |
| 6565 | ac_check_lib_save_LIBS=$LIBS |
| 6566 | LIBS="-lnsl $LIBS" |
| 6567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6568 | /* end confdefs.h. */ |
| 6569 | |
| 6570 | /* Override any GCC internal prototype to avoid an error. |
| 6571 | Use char because int might match the return type of a GCC |
| 6572 | builtin and then its argument prototype would still apply. */ |
| 6573 | #ifdef __cplusplus |
| 6574 | extern "C" |
| 6575 | #endif |
| 6576 | char gethostbyname (); |
| 6577 | int |
| 6578 | main () |
| 6579 | { |
| 6580 | return gethostbyname (); |
| 6581 | ; |
| 6582 | return 0; |
| 6583 | } |
| 6584 | _ACEOF |
| 6585 | if ac_fn_c_try_link "$LINENO"; then : |
| 6586 | ac_cv_lib_nsl_gethostbyname=yes |
| 6587 | else |
| 6588 | ac_cv_lib_nsl_gethostbyname=no |
| 6589 | fi |
| 6590 | rm -f core conftest.err conftest.$ac_objext \ |
| 6591 | conftest$ac_exeext conftest.$ac_ext |
| 6592 | LIBS=$ac_check_lib_save_LIBS |
| 6593 | fi |
| 6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6595 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 6596 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
| 6597 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 6598 | fi |
| 6599 | |
| 6600 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 6602 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| 6603 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
| 6604 | $as_echo_n "(cached) " >&6 |
| 6605 | else |
| 6606 | ac_check_lib_save_LIBS=$LIBS |
| 6607 | LIBS="-lbsd $LIBS" |
| 6608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6609 | /* end confdefs.h. */ |
| 6610 | |
| 6611 | /* Override any GCC internal prototype to avoid an error. |
| 6612 | Use char because int might match the return type of a GCC |
| 6613 | builtin and then its argument prototype would still apply. */ |
| 6614 | #ifdef __cplusplus |
| 6615 | extern "C" |
| 6616 | #endif |
| 6617 | char gethostbyname (); |
| 6618 | int |
| 6619 | main () |
| 6620 | { |
| 6621 | return gethostbyname (); |
| 6622 | ; |
| 6623 | return 0; |
| 6624 | } |
| 6625 | _ACEOF |
| 6626 | if ac_fn_c_try_link "$LINENO"; then : |
| 6627 | ac_cv_lib_bsd_gethostbyname=yes |
| 6628 | else |
| 6629 | ac_cv_lib_bsd_gethostbyname=no |
| 6630 | fi |
| 6631 | rm -f core conftest.err conftest.$ac_objext \ |
| 6632 | conftest$ac_exeext conftest.$ac_ext |
| 6633 | LIBS=$ac_check_lib_save_LIBS |
| 6634 | fi |
| 6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6636 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 6637 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
| 6638 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6639 | fi |
| 6640 | |
| 6641 | fi |
| 6642 | fi |
| 6643 | |
| 6644 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6645 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6646 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 6647 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6648 | # variants that don't use the name server (or something). -lsocket |
| 6649 | # must be given before -lnsl if both are needed. We assume that |
| 6650 | # if connect needs -lnsl, so does gethostbyname. |
| 6651 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 6652 | if test "x$ac_cv_func_connect" = xyes; then : |
| 6653 | |
| 6654 | fi |
| 6655 | |
| 6656 | if test $ac_cv_func_connect = no; then |
| 6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 6658 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| 6659 | if ${ac_cv_lib_socket_connect+:} false; then : |
| 6660 | $as_echo_n "(cached) " >&6 |
| 6661 | else |
| 6662 | ac_check_lib_save_LIBS=$LIBS |
| 6663 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 6664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6665 | /* end confdefs.h. */ |
| 6666 | |
| 6667 | /* Override any GCC internal prototype to avoid an error. |
| 6668 | Use char because int might match the return type of a GCC |
| 6669 | builtin and then its argument prototype would still apply. */ |
| 6670 | #ifdef __cplusplus |
| 6671 | extern "C" |
| 6672 | #endif |
| 6673 | char connect (); |
| 6674 | int |
| 6675 | main () |
| 6676 | { |
| 6677 | return connect (); |
| 6678 | ; |
| 6679 | return 0; |
| 6680 | } |
| 6681 | _ACEOF |
| 6682 | if ac_fn_c_try_link "$LINENO"; then : |
| 6683 | ac_cv_lib_socket_connect=yes |
| 6684 | else |
| 6685 | ac_cv_lib_socket_connect=no |
| 6686 | fi |
| 6687 | rm -f core conftest.err conftest.$ac_objext \ |
| 6688 | conftest$ac_exeext conftest.$ac_ext |
| 6689 | LIBS=$ac_check_lib_save_LIBS |
| 6690 | fi |
| 6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 6692 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| 6693 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
| 6694 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 6695 | fi |
| 6696 | |
| 6697 | fi |
| 6698 | |
| 6699 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6700 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 6701 | if test "x$ac_cv_func_remove" = xyes; then : |
| 6702 | |
| 6703 | fi |
| 6704 | |
| 6705 | if test $ac_cv_func_remove = no; then |
| 6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 6707 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| 6708 | if ${ac_cv_lib_posix_remove+:} false; then : |
| 6709 | $as_echo_n "(cached) " >&6 |
| 6710 | else |
| 6711 | ac_check_lib_save_LIBS=$LIBS |
| 6712 | LIBS="-lposix $LIBS" |
| 6713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6714 | /* end confdefs.h. */ |
| 6715 | |
| 6716 | /* Override any GCC internal prototype to avoid an error. |
| 6717 | Use char because int might match the return type of a GCC |
| 6718 | builtin and then its argument prototype would still apply. */ |
| 6719 | #ifdef __cplusplus |
| 6720 | extern "C" |
| 6721 | #endif |
| 6722 | char remove (); |
| 6723 | int |
| 6724 | main () |
| 6725 | { |
| 6726 | return remove (); |
| 6727 | ; |
| 6728 | return 0; |
| 6729 | } |
| 6730 | _ACEOF |
| 6731 | if ac_fn_c_try_link "$LINENO"; then : |
| 6732 | ac_cv_lib_posix_remove=yes |
| 6733 | else |
| 6734 | ac_cv_lib_posix_remove=no |
| 6735 | fi |
| 6736 | rm -f core conftest.err conftest.$ac_objext \ |
| 6737 | conftest$ac_exeext conftest.$ac_ext |
| 6738 | LIBS=$ac_check_lib_save_LIBS |
| 6739 | fi |
| 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 6741 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| 6742 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
| 6743 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 6744 | fi |
| 6745 | |
| 6746 | fi |
| 6747 | |
| 6748 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 6749 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 6750 | if test "x$ac_cv_func_shmat" = xyes; then : |
| 6751 | |
| 6752 | fi |
| 6753 | |
| 6754 | if test $ac_cv_func_shmat = no; then |
| 6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 6756 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| 6757 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
| 6758 | $as_echo_n "(cached) " >&6 |
| 6759 | else |
| 6760 | ac_check_lib_save_LIBS=$LIBS |
| 6761 | LIBS="-lipc $LIBS" |
| 6762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6763 | /* end confdefs.h. */ |
| 6764 | |
| 6765 | /* Override any GCC internal prototype to avoid an error. |
| 6766 | Use char because int might match the return type of a GCC |
| 6767 | builtin and then its argument prototype would still apply. */ |
| 6768 | #ifdef __cplusplus |
| 6769 | extern "C" |
| 6770 | #endif |
| 6771 | char shmat (); |
| 6772 | int |
| 6773 | main () |
| 6774 | { |
| 6775 | return shmat (); |
| 6776 | ; |
| 6777 | return 0; |
| 6778 | } |
| 6779 | _ACEOF |
| 6780 | if ac_fn_c_try_link "$LINENO"; then : |
| 6781 | ac_cv_lib_ipc_shmat=yes |
| 6782 | else |
| 6783 | ac_cv_lib_ipc_shmat=no |
| 6784 | fi |
| 6785 | rm -f core conftest.err conftest.$ac_objext \ |
| 6786 | conftest$ac_exeext conftest.$ac_ext |
| 6787 | LIBS=$ac_check_lib_save_LIBS |
| 6788 | fi |
| 6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6790 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| 6791 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
| 6792 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 6793 | fi |
| 6794 | |
| 6795 | fi |
| 6796 | fi |
| 6797 | |
| 6798 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 6799 | ac_save_LDFLAGS=$LDFLAGS |
| 6800 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6801 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6802 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6803 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6804 | # These have to be linked with before -lX11, unlike the other |
| 6805 | # libraries we check for below, so use a different variable. |
| 6806 | # John Interrante, Karl Berry |
| 6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 6808 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| 6809 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
| 6810 | $as_echo_n "(cached) " >&6 |
| 6811 | else |
| 6812 | ac_check_lib_save_LIBS=$LIBS |
| 6813 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 6814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6815 | /* end confdefs.h. */ |
| 6816 | |
| 6817 | /* Override any GCC internal prototype to avoid an error. |
| 6818 | Use char because int might match the return type of a GCC |
| 6819 | builtin and then its argument prototype would still apply. */ |
| 6820 | #ifdef __cplusplus |
| 6821 | extern "C" |
| 6822 | #endif |
| 6823 | char IceConnectionNumber (); |
| 6824 | int |
| 6825 | main () |
| 6826 | { |
| 6827 | return IceConnectionNumber (); |
| 6828 | ; |
| 6829 | return 0; |
| 6830 | } |
| 6831 | _ACEOF |
| 6832 | if ac_fn_c_try_link "$LINENO"; then : |
| 6833 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 6834 | else |
| 6835 | ac_cv_lib_ICE_IceConnectionNumber=no |
| 6836 | fi |
| 6837 | rm -f core conftest.err conftest.$ac_objext \ |
| 6838 | conftest$ac_exeext conftest.$ac_ext |
| 6839 | LIBS=$ac_check_lib_save_LIBS |
| 6840 | fi |
| 6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6842 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 6843 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
| 6844 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 6845 | fi |
| 6846 | |
| 6847 | LDFLAGS=$ac_save_LDFLAGS |
| 6848 | |
| 6849 | fi |
| 6850 | |
| 6851 | |
| 6852 | # Check whether --enable-floppyd was given. |
| 6853 | if test "${enable_floppyd+set}" = set; then : |
| 6854 | enableval=$enable_floppyd; if test x$enableval != x; then |
| 6855 | use_floppyd=$enableval |
| 6856 | fi |
| 6857 | fi |
| 6858 | |
| 6859 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 6860 | if test X$use_floppyd = X -a X$no_x = X ; then |
| 6861 | use_floppyd="yes" |
| 6862 | fi |
| 6863 | |
| 6864 | if test X$use_floppyd = Xyes; then |
| 6865 | if test X$no_x = Xyes ; then |
| 6866 | echo "Floppyd needs X support" >&2 |
| 6867 | echo "To compile without floppyd, use ./configure --disable-floppyd" >&2 |
| 6868 | exit 1 |
| 6869 | fi |
| 6870 | FLOPPYD="floppyd floppyd_installtest" |
| 6871 | BINFLOPPYD="\$(DESTDIR)\$(bindir)/floppyd \$(DESTDIR)\$(bindir)/floppyd_installtest" |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 6872 | FLOPPYD_IO_SRC=floppyd_io.c |
| 6873 | FLOPPYD_IO_OBJ=floppyd_io.o |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 6874 | |
| 6875 | $as_echo "#define USE_FLOPPYD 1" >>confdefs.h |
| 6876 | |
| 6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 |
| 6878 | $as_echo_n "checking whether setpgrp takes no argument... " >&6; } |
| 6879 | if ${ac_cv_func_setpgrp_void+:} false; then : |
| 6880 | $as_echo_n "(cached) " >&6 |
| 6881 | else |
| 6882 | if test "$cross_compiling" = yes; then : |
| 6883 | as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 |
| 6884 | else |
| 6885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6886 | /* end confdefs.h. */ |
| 6887 | $ac_includes_default |
| 6888 | int |
| 6889 | main () |
| 6890 | { |
| 6891 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 6892 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 6893 | exit successfully. */ |
| 6894 | return setpgrp (1,1) != -1; |
| 6895 | ; |
| 6896 | return 0; |
| 6897 | } |
| 6898 | _ACEOF |
| 6899 | if ac_fn_c_try_run "$LINENO"; then : |
| 6900 | ac_cv_func_setpgrp_void=no |
| 6901 | else |
| 6902 | ac_cv_func_setpgrp_void=yes |
| 6903 | fi |
| 6904 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6905 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6906 | fi |
| 6907 | |
| 6908 | fi |
| 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 |
| 6910 | $as_echo "$ac_cv_func_setpgrp_void" >&6; } |
| 6911 | if test $ac_cv_func_setpgrp_void = yes; then |
| 6912 | |
| 6913 | $as_echo "#define SETPGRP_VOID 1" >>confdefs.h |
| 6914 | |
| 6915 | fi |
| 6916 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 6917 | |
| 6918 | FLOPPYD_LIBS="" |
| 6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 |
| 6920 | $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } |
| 6921 | if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : |
| 6922 | $as_echo_n "(cached) " >&6 |
| 6923 | else |
| 6924 | ac_check_lib_save_LIBS=$LIBS |
| 6925 | LIBS="-lX11 $LIBS" |
| 6926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6927 | /* end confdefs.h. */ |
| 6928 | |
| 6929 | /* Override any GCC internal prototype to avoid an error. |
| 6930 | Use char because int might match the return type of a GCC |
| 6931 | builtin and then its argument prototype would still apply. */ |
| 6932 | #ifdef __cplusplus |
| 6933 | extern "C" |
| 6934 | #endif |
| 6935 | char XOpenDisplay (); |
| 6936 | int |
| 6937 | main () |
| 6938 | { |
| 6939 | return XOpenDisplay (); |
| 6940 | ; |
| 6941 | return 0; |
| 6942 | } |
| 6943 | _ACEOF |
| 6944 | if ac_fn_c_try_link "$LINENO"; then : |
| 6945 | ac_cv_lib_X11_XOpenDisplay=yes |
| 6946 | else |
| 6947 | ac_cv_lib_X11_XOpenDisplay=no |
| 6948 | fi |
| 6949 | rm -f core conftest.err conftest.$ac_objext \ |
| 6950 | conftest$ac_exeext conftest.$ac_ext |
| 6951 | LIBS=$ac_check_lib_save_LIBS |
| 6952 | fi |
| 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 |
| 6954 | $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } |
| 6955 | if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : |
| 6956 | FLOPPYD_LIBS="-lX11 $FLOPPYD_LIBS" |
| 6957 | fi |
| 6958 | |
| 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName in -lXau" >&5 |
| 6960 | $as_echo_n "checking for XauFileName in -lXau... " >&6; } |
| 6961 | if ${ac_cv_lib_Xau_XauFileName+:} false; then : |
| 6962 | $as_echo_n "(cached) " >&6 |
| 6963 | else |
| 6964 | ac_check_lib_save_LIBS=$LIBS |
| 6965 | LIBS="-lXau $LIBS" |
| 6966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6967 | /* end confdefs.h. */ |
| 6968 | |
| 6969 | /* Override any GCC internal prototype to avoid an error. |
| 6970 | Use char because int might match the return type of a GCC |
| 6971 | builtin and then its argument prototype would still apply. */ |
| 6972 | #ifdef __cplusplus |
| 6973 | extern "C" |
| 6974 | #endif |
| 6975 | char XauFileName (); |
| 6976 | int |
| 6977 | main () |
| 6978 | { |
| 6979 | return XauFileName (); |
| 6980 | ; |
| 6981 | return 0; |
| 6982 | } |
| 6983 | _ACEOF |
| 6984 | if ac_fn_c_try_link "$LINENO"; then : |
| 6985 | ac_cv_lib_Xau_XauFileName=yes |
| 6986 | else |
| 6987 | ac_cv_lib_Xau_XauFileName=no |
| 6988 | fi |
| 6989 | rm -f core conftest.err conftest.$ac_objext \ |
| 6990 | conftest$ac_exeext conftest.$ac_ext |
| 6991 | LIBS=$ac_check_lib_save_LIBS |
| 6992 | fi |
| 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauFileName" >&5 |
| 6994 | $as_echo "$ac_cv_lib_Xau_XauFileName" >&6; } |
| 6995 | if test "x$ac_cv_lib_Xau_XauFileName" = xyes; then : |
| 6996 | FLOPPYD_LIBS="-lXau $FLOPPYD_LIBS" |
| 6997 | fi |
| 6998 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 6999 | else |
| 7000 | FLOPPYD= |
| 7001 | BINFLOPPYD= |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 7002 | FLOPPYD_IO_SRC= |
| 7003 | FLOPPYD_IO_OBJ= |
| 7004 | FLOPPYD_LIBS= |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 7005 | fi |
| 7006 | |
| 7007 | |
| 7008 | |
| 7009 | |
| 7010 | |
| 7011 | |
| 7012 | |
| 7013 | |
| 7014 | |
| 7015 | |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 7016 | |
| 7017 | |
| 7018 | |
| 7019 | |
| 7020 | |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 7021 | ac_config_files="$ac_config_files Makefile" |
| 7022 | |
| 7023 | cat >confcache <<\_ACEOF |
| 7024 | # This file is a shell script that caches the results of configure |
| 7025 | # tests run on this system so they can be shared between configure |
| 7026 | # scripts and configure runs, see configure's option --config-cache. |
| 7027 | # It is not useful on other systems. If it contains results you don't |
| 7028 | # want to keep, you may remove or edit it. |
| 7029 | # |
| 7030 | # config.status only pays attention to the cache file if you give it |
| 7031 | # the --recheck option to rerun configure. |
| 7032 | # |
| 7033 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 7034 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7035 | # following values. |
| 7036 | |
| 7037 | _ACEOF |
| 7038 | |
| 7039 | # The following way of writing the cache mishandles newlines in values, |
| 7040 | # but we know of no workaround that is simple, portable, and efficient. |
| 7041 | # So, we kill variables containing newlines. |
| 7042 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7043 | # and sets the high bit in the cache file unless we assign to the vars. |
| 7044 | ( |
| 7045 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7046 | eval ac_val=\$$ac_var |
| 7047 | case $ac_val in #( |
| 7048 | *${as_nl}*) |
| 7049 | case $ac_var in #( |
| 7050 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7051 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 7052 | esac |
| 7053 | case $ac_var in #( |
| 7054 | _ | IFS | as_nl) ;; #( |
| 7055 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7056 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 7057 | esac ;; |
| 7058 | esac |
| 7059 | done |
| 7060 | |
| 7061 | (set) 2>&1 | |
| 7062 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7063 | *${as_nl}ac_space=\ *) |
| 7064 | # `set' does not quote correctly, so add quotes: double-quote |
| 7065 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 7066 | sed -n \ |
| 7067 | "s/'/'\\\\''/g; |
| 7068 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7069 | ;; #( |
| 7070 | *) |
| 7071 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7072 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 7073 | ;; |
| 7074 | esac | |
| 7075 | sort |
| 7076 | ) | |
| 7077 | sed ' |
| 7078 | /^ac_cv_env_/b end |
| 7079 | t clear |
| 7080 | :clear |
| 7081 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7082 | t end |
| 7083 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7084 | :end' >>confcache |
| 7085 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7086 | if test -w "$cache_file"; then |
| 7087 | if test "x$cache_file" != "x/dev/null"; then |
| 7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7089 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 7090 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 7091 | cat confcache >"$cache_file" |
| 7092 | else |
| 7093 | case $cache_file in #( |
| 7094 | */* | ?:*) |
| 7095 | mv -f confcache "$cache_file"$$ && |
| 7096 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 7097 | *) |
| 7098 | mv -f confcache "$cache_file" ;; |
| 7099 | esac |
| 7100 | fi |
| 7101 | fi |
| 7102 | else |
| 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7104 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 7105 | fi |
| 7106 | fi |
| 7107 | rm -f confcache |
| 7108 | |
| 7109 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7110 | # Let make expand exec_prefix. |
| 7111 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7112 | |
| 7113 | DEFS=-DHAVE_CONFIG_H |
| 7114 | |
| 7115 | ac_libobjs= |
| 7116 | ac_ltlibobjs= |
| 7117 | U= |
| 7118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7119 | # 1. Remove the extension, and $U if already installed. |
| 7120 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 7121 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 7122 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7123 | # will be set to the directory where LIBOBJS objects are built. |
| 7124 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7125 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 7126 | done |
| 7127 | LIBOBJS=$ac_libobjs |
| 7128 | |
| 7129 | LTLIBOBJS=$ac_ltlibobjs |
| 7130 | |
| 7131 | |
| 7132 | |
| 7133 | : "${CONFIG_STATUS=./config.status}" |
| 7134 | ac_write_fail=0 |
| 7135 | ac_clean_files_save=$ac_clean_files |
| 7136 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7138 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7139 | as_write_fail=0 |
| 7140 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 7141 | #! $SHELL |
| 7142 | # Generated by $as_me. |
| 7143 | # Run this file to recreate the current configuration. |
| 7144 | # Compiler output produced by configure, useful for debugging |
| 7145 | # configure, is in config.log if it exists. |
| 7146 | |
| 7147 | debug=false |
| 7148 | ac_cs_recheck=false |
| 7149 | ac_cs_silent=false |
| 7150 | |
| 7151 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7152 | export SHELL |
| 7153 | _ASEOF |
| 7154 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7155 | ## -------------------- ## |
| 7156 | ## M4sh Initialization. ## |
| 7157 | ## -------------------- ## |
| 7158 | |
| 7159 | # Be more Bourne compatible |
| 7160 | DUALCASE=1; export DUALCASE # for MKS sh |
| 7161 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 7162 | emulate sh |
| 7163 | NULLCMD=: |
| 7164 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 7165 | # is contrary to our usage. Disable this feature. |
| 7166 | alias -g '${1+"$@"}'='"$@"' |
| 7167 | setopt NO_GLOB_SUBST |
| 7168 | else |
| 7169 | case `(set -o) 2>/dev/null` in #( |
| 7170 | *posix*) : |
| 7171 | set -o posix ;; #( |
| 7172 | *) : |
| 7173 | ;; |
| 7174 | esac |
| 7175 | fi |
| 7176 | |
| 7177 | |
| 7178 | as_nl=' |
| 7179 | ' |
| 7180 | export as_nl |
| 7181 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 7182 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7183 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7184 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7185 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 7186 | # but without wasting forks for bash or zsh. |
| 7187 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 7188 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7189 | as_echo='print -r --' |
| 7190 | as_echo_n='print -rn --' |
| 7191 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7192 | as_echo='printf %s\n' |
| 7193 | as_echo_n='printf %s' |
| 7194 | else |
| 7195 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 7196 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 7197 | as_echo_n='/usr/ucb/echo -n' |
| 7198 | else |
| 7199 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 7200 | as_echo_n_body='eval |
| 7201 | arg=$1; |
| 7202 | case $arg in #( |
| 7203 | *"$as_nl"*) |
| 7204 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 7205 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 7206 | esac; |
| 7207 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 7208 | ' |
| 7209 | export as_echo_n_body |
| 7210 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 7211 | fi |
| 7212 | export as_echo_body |
| 7213 | as_echo='sh -c $as_echo_body as_echo' |
| 7214 | fi |
| 7215 | |
| 7216 | # The user is always right. |
| 7217 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7218 | PATH_SEPARATOR=: |
| 7219 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7220 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7221 | PATH_SEPARATOR=';' |
| 7222 | } |
| 7223 | fi |
| 7224 | |
| 7225 | |
| 7226 | # IFS |
| 7227 | # We need space, tab and new line, in precisely that order. Quoting is |
| 7228 | # there to prevent editors from complaining about space-tab. |
| 7229 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 7230 | # splitting by setting IFS to empty value.) |
| 7231 | IFS=" "" $as_nl" |
| 7232 | |
| 7233 | # Find who we are. Look in the path if we contain no directory separator. |
| 7234 | as_myself= |
| 7235 | case $0 in #(( |
| 7236 | *[\\/]* ) as_myself=$0 ;; |
| 7237 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7238 | for as_dir in $PATH |
| 7239 | do |
| 7240 | IFS=$as_save_IFS |
| 7241 | test -z "$as_dir" && as_dir=. |
| 7242 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7243 | done |
| 7244 | IFS=$as_save_IFS |
| 7245 | |
| 7246 | ;; |
| 7247 | esac |
| 7248 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7249 | # in which case we are not to be found in the path. |
| 7250 | if test "x$as_myself" = x; then |
| 7251 | as_myself=$0 |
| 7252 | fi |
| 7253 | if test ! -f "$as_myself"; then |
| 7254 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7255 | exit 1 |
| 7256 | fi |
| 7257 | |
| 7258 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 7259 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 7260 | # suppresses any "Segmentation fault" message there. '((' could |
| 7261 | # trigger a bug in pdksh 5.2.14. |
| 7262 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 7263 | do eval test x\${$as_var+set} = xset \ |
| 7264 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 7265 | done |
| 7266 | PS1='$ ' |
| 7267 | PS2='> ' |
| 7268 | PS4='+ ' |
| 7269 | |
| 7270 | # NLS nuisances. |
| 7271 | LC_ALL=C |
| 7272 | export LC_ALL |
| 7273 | LANGUAGE=C |
| 7274 | export LANGUAGE |
| 7275 | |
| 7276 | # CDPATH. |
| 7277 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7278 | |
| 7279 | |
| 7280 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 7281 | # ---------------------------------------- |
| 7282 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7283 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 7284 | # script with STATUS, using 1 if that was 0. |
| 7285 | as_fn_error () |
| 7286 | { |
| 7287 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 7288 | if test "$4"; then |
| 7289 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7290 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 7291 | fi |
| 7292 | $as_echo "$as_me: error: $2" >&2 |
| 7293 | as_fn_exit $as_status |
| 7294 | } # as_fn_error |
| 7295 | |
| 7296 | |
| 7297 | # as_fn_set_status STATUS |
| 7298 | # ----------------------- |
| 7299 | # Set $? to STATUS, without forking. |
| 7300 | as_fn_set_status () |
| 7301 | { |
| 7302 | return $1 |
| 7303 | } # as_fn_set_status |
| 7304 | |
| 7305 | # as_fn_exit STATUS |
| 7306 | # ----------------- |
| 7307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7308 | as_fn_exit () |
| 7309 | { |
| 7310 | set +e |
| 7311 | as_fn_set_status $1 |
| 7312 | exit $1 |
| 7313 | } # as_fn_exit |
| 7314 | |
| 7315 | # as_fn_unset VAR |
| 7316 | # --------------- |
| 7317 | # Portably unset VAR. |
| 7318 | as_fn_unset () |
| 7319 | { |
| 7320 | { eval $1=; unset $1;} |
| 7321 | } |
| 7322 | as_unset=as_fn_unset |
| 7323 | # as_fn_append VAR VALUE |
| 7324 | # ---------------------- |
| 7325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 7327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 7328 | # implementations. |
| 7329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 7330 | eval 'as_fn_append () |
| 7331 | { |
| 7332 | eval $1+=\$2 |
| 7333 | }' |
| 7334 | else |
| 7335 | as_fn_append () |
| 7336 | { |
| 7337 | eval $1=\$$1\$2 |
| 7338 | } |
| 7339 | fi # as_fn_append |
| 7340 | |
| 7341 | # as_fn_arith ARG... |
| 7342 | # ------------------ |
| 7343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7345 | # must be portable across $(()) and expr. |
| 7346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 7347 | eval 'as_fn_arith () |
| 7348 | { |
| 7349 | as_val=$(( $* )) |
| 7350 | }' |
| 7351 | else |
| 7352 | as_fn_arith () |
| 7353 | { |
| 7354 | as_val=`expr "$@" || test $? -eq 1` |
| 7355 | } |
| 7356 | fi # as_fn_arith |
| 7357 | |
| 7358 | |
| 7359 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7360 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7361 | as_expr=expr |
| 7362 | else |
| 7363 | as_expr=false |
| 7364 | fi |
| 7365 | |
| 7366 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7367 | as_basename=basename |
| 7368 | else |
| 7369 | as_basename=false |
| 7370 | fi |
| 7371 | |
| 7372 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7373 | as_dirname=dirname |
| 7374 | else |
| 7375 | as_dirname=false |
| 7376 | fi |
| 7377 | |
| 7378 | as_me=`$as_basename -- "$0" || |
| 7379 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7380 | X"$0" : 'X\(//\)$' \| \ |
| 7381 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 7382 | $as_echo X/"$0" | |
| 7383 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7384 | s//\1/ |
| 7385 | q |
| 7386 | } |
| 7387 | /^X\/\(\/\/\)$/{ |
| 7388 | s//\1/ |
| 7389 | q |
| 7390 | } |
| 7391 | /^X\/\(\/\).*/{ |
| 7392 | s//\1/ |
| 7393 | q |
| 7394 | } |
| 7395 | s/.*/./; q'` |
| 7396 | |
| 7397 | # Avoid depending upon Character Ranges. |
| 7398 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7399 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7400 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7401 | as_cr_digits='0123456789' |
| 7402 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 7403 | |
| 7404 | ECHO_C= ECHO_N= ECHO_T= |
| 7405 | case `echo -n x` in #((((( |
| 7406 | -n*) |
| 7407 | case `echo 'xy\c'` in |
| 7408 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 7409 | xy) ECHO_C='\c';; |
| 7410 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7411 | ECHO_T=' ';; |
| 7412 | esac;; |
| 7413 | *) |
| 7414 | ECHO_N='-n';; |
| 7415 | esac |
| 7416 | |
| 7417 | rm -f conf$$ conf$$.exe conf$$.file |
| 7418 | if test -d conf$$.dir; then |
| 7419 | rm -f conf$$.dir/conf$$.file |
| 7420 | else |
| 7421 | rm -f conf$$.dir |
| 7422 | mkdir conf$$.dir 2>/dev/null |
| 7423 | fi |
| 7424 | if (echo >conf$$.file) 2>/dev/null; then |
| 7425 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7426 | as_ln_s='ln -s' |
| 7427 | # ... but there are two gotchas: |
| 7428 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7429 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 7430 | # In both cases, we have to default to `cp -pR'. |
| 7431 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 7432 | as_ln_s='cp -pR' |
| 7433 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7434 | as_ln_s=ln |
| 7435 | else |
| 7436 | as_ln_s='cp -pR' |
| 7437 | fi |
| 7438 | else |
| 7439 | as_ln_s='cp -pR' |
| 7440 | fi |
| 7441 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7442 | rmdir conf$$.dir 2>/dev/null |
| 7443 | |
| 7444 | |
| 7445 | # as_fn_mkdir_p |
| 7446 | # ------------- |
| 7447 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7448 | as_fn_mkdir_p () |
| 7449 | { |
| 7450 | |
| 7451 | case $as_dir in #( |
| 7452 | -*) as_dir=./$as_dir;; |
| 7453 | esac |
| 7454 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7455 | as_dirs= |
| 7456 | while :; do |
| 7457 | case $as_dir in #( |
| 7458 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7459 | *) as_qdir=$as_dir;; |
| 7460 | esac |
| 7461 | as_dirs="'$as_qdir' $as_dirs" |
| 7462 | as_dir=`$as_dirname -- "$as_dir" || |
| 7463 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7464 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7465 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7466 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7467 | $as_echo X"$as_dir" | |
| 7468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7469 | s//\1/ |
| 7470 | q |
| 7471 | } |
| 7472 | /^X\(\/\/\)[^/].*/{ |
| 7473 | s//\1/ |
| 7474 | q |
| 7475 | } |
| 7476 | /^X\(\/\/\)$/{ |
| 7477 | s//\1/ |
| 7478 | q |
| 7479 | } |
| 7480 | /^X\(\/\).*/{ |
| 7481 | s//\1/ |
| 7482 | q |
| 7483 | } |
| 7484 | s/.*/./; q'` |
| 7485 | test -d "$as_dir" && break |
| 7486 | done |
| 7487 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 7488 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 7489 | |
| 7490 | |
| 7491 | } # as_fn_mkdir_p |
| 7492 | if mkdir -p . 2>/dev/null; then |
| 7493 | as_mkdir_p='mkdir -p "$as_dir"' |
| 7494 | else |
| 7495 | test -d ./-p && rmdir ./-p |
| 7496 | as_mkdir_p=false |
| 7497 | fi |
| 7498 | |
| 7499 | |
| 7500 | # as_fn_executable_p FILE |
| 7501 | # ----------------------- |
| 7502 | # Test if FILE is an executable regular file. |
| 7503 | as_fn_executable_p () |
| 7504 | { |
| 7505 | test -f "$1" && test -x "$1" |
| 7506 | } # as_fn_executable_p |
| 7507 | as_test_x='test -x' |
| 7508 | as_executable_p=as_fn_executable_p |
| 7509 | |
| 7510 | # Sed expression to map a string onto a valid CPP name. |
| 7511 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7512 | |
| 7513 | # Sed expression to map a string onto a valid variable name. |
| 7514 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7515 | |
| 7516 | |
| 7517 | exec 6>&1 |
| 7518 | ## ----------------------------------- ## |
| 7519 | ## Main body of $CONFIG_STATUS script. ## |
| 7520 | ## ----------------------------------- ## |
| 7521 | _ASEOF |
| 7522 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 7523 | |
| 7524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7525 | # Save the log message, to keep $0 and so on meaningful, and to |
| 7526 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7527 | # values after options handling. |
| 7528 | ac_log=" |
| 7529 | This file was extended by $as_me, which was |
| 7530 | generated by GNU Autoconf 2.69. Invocation command line was |
| 7531 | |
| 7532 | CONFIG_FILES = $CONFIG_FILES |
| 7533 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7534 | CONFIG_LINKS = $CONFIG_LINKS |
| 7535 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7536 | $ $0 $@ |
| 7537 | |
| 7538 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7539 | " |
| 7540 | |
| 7541 | _ACEOF |
| 7542 | |
| 7543 | case $ac_config_files in *" |
| 7544 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7545 | esac |
| 7546 | |
| 7547 | case $ac_config_headers in *" |
| 7548 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 7549 | esac |
| 7550 | |
| 7551 | |
| 7552 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7553 | # Files that config.status was made for. |
| 7554 | config_files="$ac_config_files" |
| 7555 | config_headers="$ac_config_headers" |
| 7556 | |
| 7557 | _ACEOF |
| 7558 | |
| 7559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7560 | ac_cs_usage="\ |
| 7561 | \`$as_me' instantiates files and other configuration actions |
| 7562 | from templates according to the current configuration. Unless the files |
| 7563 | and actions are specified as TAGs, all are instantiated by default. |
| 7564 | |
| 7565 | Usage: $0 [OPTION]... [TAG]... |
| 7566 | |
| 7567 | -h, --help print this help, then exit |
| 7568 | -V, --version print version number and configuration settings, then exit |
| 7569 | --config print configuration, then exit |
| 7570 | -q, --quiet, --silent |
| 7571 | do not print progress messages |
| 7572 | -d, --debug don't remove temporary files |
| 7573 | --recheck update $as_me by reconfiguring in the same conditions |
| 7574 | --file=FILE[:TEMPLATE] |
| 7575 | instantiate the configuration file FILE |
| 7576 | --header=FILE[:TEMPLATE] |
| 7577 | instantiate the configuration header FILE |
| 7578 | |
| 7579 | Configuration files: |
| 7580 | $config_files |
| 7581 | |
| 7582 | Configuration headers: |
| 7583 | $config_headers |
| 7584 | |
| 7585 | Report bugs to the package provider." |
| 7586 | |
| 7587 | _ACEOF |
| 7588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7589 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 7590 | ac_cs_version="\\ |
| 7591 | config.status |
| 7592 | configured by $0, generated by GNU Autoconf 2.69, |
| 7593 | with options \\"\$ac_cs_config\\" |
| 7594 | |
| 7595 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 7596 | This config.status script is free software; the Free Software Foundation |
| 7597 | gives unlimited permission to copy, distribute and modify it." |
| 7598 | |
| 7599 | ac_pwd='$ac_pwd' |
| 7600 | srcdir='$srcdir' |
| 7601 | INSTALL='$INSTALL' |
| 7602 | test -n "\$AWK" || AWK=awk |
| 7603 | _ACEOF |
| 7604 | |
| 7605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7606 | # The default lists apply if the user does not specify any file. |
| 7607 | ac_need_defaults=: |
| 7608 | while test $# != 0 |
| 7609 | do |
| 7610 | case $1 in |
| 7611 | --*=?*) |
| 7612 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7613 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 7614 | ac_shift=: |
| 7615 | ;; |
| 7616 | --*=) |
| 7617 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7618 | ac_optarg= |
| 7619 | ac_shift=: |
| 7620 | ;; |
| 7621 | *) |
| 7622 | ac_option=$1 |
| 7623 | ac_optarg=$2 |
| 7624 | ac_shift=shift |
| 7625 | ;; |
| 7626 | esac |
| 7627 | |
| 7628 | case $ac_option in |
| 7629 | # Handling of the options. |
| 7630 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7631 | ac_cs_recheck=: ;; |
| 7632 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 7633 | $as_echo "$ac_cs_version"; exit ;; |
| 7634 | --config | --confi | --conf | --con | --co | --c ) |
| 7635 | $as_echo "$ac_cs_config"; exit ;; |
| 7636 | --debug | --debu | --deb | --de | --d | -d ) |
| 7637 | debug=: ;; |
| 7638 | --file | --fil | --fi | --f ) |
| 7639 | $ac_shift |
| 7640 | case $ac_optarg in |
| 7641 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7642 | '') as_fn_error $? "missing file argument" ;; |
| 7643 | esac |
| 7644 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 7645 | ac_need_defaults=false;; |
| 7646 | --header | --heade | --head | --hea ) |
| 7647 | $ac_shift |
| 7648 | case $ac_optarg in |
| 7649 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7650 | esac |
| 7651 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 7652 | ac_need_defaults=false;; |
| 7653 | --he | --h) |
| 7654 | # Conflict between --help and --header |
| 7655 | as_fn_error $? "ambiguous option: \`$1' |
| 7656 | Try \`$0 --help' for more information.";; |
| 7657 | --help | --hel | -h ) |
| 7658 | $as_echo "$ac_cs_usage"; exit ;; |
| 7659 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7660 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7661 | ac_cs_silent=: ;; |
| 7662 | |
| 7663 | # This is an error. |
| 7664 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 7665 | Try \`$0 --help' for more information." ;; |
| 7666 | |
| 7667 | *) as_fn_append ac_config_targets " $1" |
| 7668 | ac_need_defaults=false ;; |
| 7669 | |
| 7670 | esac |
| 7671 | shift |
| 7672 | done |
| 7673 | |
| 7674 | ac_configure_extra_args= |
| 7675 | |
| 7676 | if $ac_cs_silent; then |
| 7677 | exec 6>/dev/null |
| 7678 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7679 | fi |
| 7680 | |
| 7681 | _ACEOF |
| 7682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7683 | if \$ac_cs_recheck; then |
| 7684 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 7685 | shift |
| 7686 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 7687 | CONFIG_SHELL='$SHELL' |
| 7688 | export CONFIG_SHELL |
| 7689 | exec "\$@" |
| 7690 | fi |
| 7691 | |
| 7692 | _ACEOF |
| 7693 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7694 | exec 5>>config.log |
| 7695 | { |
| 7696 | echo |
| 7697 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7698 | ## Running $as_me. ## |
| 7699 | _ASBOX |
| 7700 | $as_echo "$ac_log" |
| 7701 | } >&5 |
| 7702 | |
| 7703 | _ACEOF |
| 7704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7705 | _ACEOF |
| 7706 | |
| 7707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7708 | |
| 7709 | # Handling of arguments. |
| 7710 | for ac_config_target in $ac_config_targets |
| 7711 | do |
| 7712 | case $ac_config_target in |
| 7713 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7714 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7715 | |
| 7716 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 7717 | esac |
| 7718 | done |
| 7719 | |
| 7720 | |
| 7721 | # If the user did not use the arguments to specify the items to instantiate, |
| 7722 | # then the envvar interface is used. Set only those that are not. |
| 7723 | # We use the long form for the default assignment because of an extremely |
| 7724 | # bizarre bug on SunOS 4.1.3. |
| 7725 | if $ac_need_defaults; then |
| 7726 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7727 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7728 | fi |
| 7729 | |
| 7730 | # Have a temporary directory for convenience. Make it in the build tree |
| 7731 | # simply because there is no reason against having it here, and in addition, |
| 7732 | # creating and moving files from /tmp can sometimes cause problems. |
| 7733 | # Hook for its removal unless debugging. |
| 7734 | # Note that there is a small window in which the directory will not be cleaned: |
| 7735 | # after its creation but before its name has been assigned to `$tmp'. |
| 7736 | $debug || |
| 7737 | { |
| 7738 | tmp= ac_tmp= |
| 7739 | trap 'exit_status=$? |
| 7740 | : "${ac_tmp:=$tmp}" |
| 7741 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 7742 | ' 0 |
| 7743 | trap 'as_fn_exit 1' 1 2 13 15 |
| 7744 | } |
| 7745 | # Create a (secure) tmp directory for tmp files. |
| 7746 | |
| 7747 | { |
| 7748 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 7749 | test -d "$tmp" |
| 7750 | } || |
| 7751 | { |
| 7752 | tmp=./conf$$-$RANDOM |
| 7753 | (umask 077 && mkdir "$tmp") |
| 7754 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 7755 | ac_tmp=$tmp |
| 7756 | |
| 7757 | # Set up the scripts for CONFIG_FILES section. |
| 7758 | # No need to generate them if there are no CONFIG_FILES. |
| 7759 | # This happens for instance with `./config.status config.h'. |
| 7760 | if test -n "$CONFIG_FILES"; then |
| 7761 | |
| 7762 | |
| 7763 | ac_cr=`echo X | tr X '\015'` |
| 7764 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7765 | # But we know of no other shell where ac_cr would be empty at this |
| 7766 | # point, so we can use a bashism as a fallback. |
| 7767 | if test "x$ac_cr" = x; then |
| 7768 | eval ac_cr=\$\'\\r\' |
| 7769 | fi |
| 7770 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7771 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 7772 | ac_cs_awk_cr='\\r' |
| 7773 | else |
| 7774 | ac_cs_awk_cr=$ac_cr |
| 7775 | fi |
| 7776 | |
| 7777 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 7778 | _ACEOF |
| 7779 | |
| 7780 | |
| 7781 | { |
| 7782 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7783 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7784 | echo "_ACEOF" |
| 7785 | } >conf$$subs.sh || |
| 7786 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7787 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 7788 | ac_delim='%!_!# ' |
| 7789 | for ac_last_try in false false false false false :; do |
| 7790 | . ./conf$$subs.sh || |
| 7791 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7792 | |
| 7793 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7794 | if test $ac_delim_n = $ac_delim_num; then |
| 7795 | break |
| 7796 | elif $ac_last_try; then |
| 7797 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7798 | else |
| 7799 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7800 | fi |
| 7801 | done |
| 7802 | rm -f conf$$subs.sh |
| 7803 | |
| 7804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7805 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 7806 | _ACEOF |
| 7807 | sed -n ' |
| 7808 | h |
| 7809 | s/^/S["/; s/!.*/"]=/ |
| 7810 | p |
| 7811 | g |
| 7812 | s/^[^!]*!// |
| 7813 | :repl |
| 7814 | t repl |
| 7815 | s/'"$ac_delim"'$// |
| 7816 | t delim |
| 7817 | :nl |
| 7818 | h |
| 7819 | s/\(.\{148\}\)..*/\1/ |
| 7820 | t more1 |
| 7821 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7822 | p |
| 7823 | n |
| 7824 | b repl |
| 7825 | :more1 |
| 7826 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7827 | p |
| 7828 | g |
| 7829 | s/.\{148\}// |
| 7830 | t nl |
| 7831 | :delim |
| 7832 | h |
| 7833 | s/\(.\{148\}\)..*/\1/ |
| 7834 | t more2 |
| 7835 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7836 | p |
| 7837 | b |
| 7838 | :more2 |
| 7839 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7840 | p |
| 7841 | g |
| 7842 | s/.\{148\}// |
| 7843 | t delim |
| 7844 | ' <conf$$subs.awk | sed ' |
| 7845 | /^[^""]/{ |
| 7846 | N |
| 7847 | s/\n// |
| 7848 | } |
| 7849 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7850 | rm -f conf$$subs.awk |
| 7851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7852 | _ACAWK |
| 7853 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 7854 | for (key in S) S_is_set[key] = 1 |
| 7855 | FS = "" |
| 7856 | |
| 7857 | } |
| 7858 | { |
| 7859 | line = $ 0 |
| 7860 | nfields = split(line, field, "@") |
| 7861 | substed = 0 |
| 7862 | len = length(field[1]) |
| 7863 | for (i = 2; i < nfields; i++) { |
| 7864 | key = field[i] |
| 7865 | keylen = length(key) |
| 7866 | if (S_is_set[key]) { |
| 7867 | value = S[key] |
| 7868 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7869 | len += length(value) + length(field[++i]) |
| 7870 | substed = 1 |
| 7871 | } else |
| 7872 | len += 1 + keylen |
| 7873 | } |
| 7874 | |
| 7875 | print line |
| 7876 | } |
| 7877 | |
| 7878 | _ACAWK |
| 7879 | _ACEOF |
| 7880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7881 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7882 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7883 | else |
| 7884 | cat |
| 7885 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 7886 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 7887 | _ACEOF |
| 7888 | |
| 7889 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 7890 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 7891 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7892 | # (actually we leave an empty line to preserve line numbers). |
| 7893 | if test "x$srcdir" = x.; then |
| 7894 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 7895 | h |
| 7896 | s/// |
| 7897 | s/^/:/ |
| 7898 | s/[ ]*$/:/ |
| 7899 | s/:\$(srcdir):/:/g |
| 7900 | s/:\${srcdir}:/:/g |
| 7901 | s/:@srcdir@:/:/g |
| 7902 | s/^:*// |
| 7903 | s/:*$// |
| 7904 | x |
| 7905 | s/\(=[ ]*\).*/\1/ |
| 7906 | G |
| 7907 | s/\n// |
| 7908 | s/^[^=]*=[ ]*$// |
| 7909 | }' |
| 7910 | fi |
| 7911 | |
| 7912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7913 | fi # test -n "$CONFIG_FILES" |
| 7914 | |
| 7915 | # Set up the scripts for CONFIG_HEADERS section. |
| 7916 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7917 | # This happens for instance with `./config.status Makefile'. |
| 7918 | if test -n "$CONFIG_HEADERS"; then |
| 7919 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 7920 | BEGIN { |
| 7921 | _ACEOF |
| 7922 | |
| 7923 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7924 | # here-document in config.status, that substitutes the proper values into |
| 7925 | # config.h.in to produce config.h. |
| 7926 | |
| 7927 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7928 | # handling of long lines. |
| 7929 | ac_delim='%!_!# ' |
| 7930 | for ac_last_try in false false :; do |
| 7931 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 7932 | if test -z "$ac_tt"; then |
| 7933 | break |
| 7934 | elif $ac_last_try; then |
| 7935 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7936 | else |
| 7937 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7938 | fi |
| 7939 | done |
| 7940 | |
| 7941 | # For the awk script, D is an array of macro values keyed by name, |
| 7942 | # likewise P contains macro parameters if any. Preserve backslash |
| 7943 | # newline sequences. |
| 7944 | |
| 7945 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7946 | sed -n ' |
| 7947 | s/.\{148\}/&'"$ac_delim"'/g |
| 7948 | t rset |
| 7949 | :rset |
| 7950 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7951 | t def |
| 7952 | d |
| 7953 | :def |
| 7954 | s/\\$// |
| 7955 | t bsnl |
| 7956 | s/["\\]/\\&/g |
| 7957 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7958 | D["\1"]=" \3"/p |
| 7959 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7960 | d |
| 7961 | :bsnl |
| 7962 | s/["\\]/\\&/g |
| 7963 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7964 | D["\1"]=" \3\\\\\\n"\\/p |
| 7965 | t cont |
| 7966 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7967 | t cont |
| 7968 | d |
| 7969 | :cont |
| 7970 | n |
| 7971 | s/.\{148\}/&'"$ac_delim"'/g |
| 7972 | t clear |
| 7973 | :clear |
| 7974 | s/\\$// |
| 7975 | t bsnlc |
| 7976 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7977 | d |
| 7978 | :bsnlc |
| 7979 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7980 | b cont |
| 7981 | ' <confdefs.h | sed ' |
| 7982 | s/'"$ac_delim"'/"\\\ |
| 7983 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7984 | |
| 7985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7986 | for (key in D) D_is_set[key] = 1 |
| 7987 | FS = "" |
| 7988 | } |
| 7989 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7990 | line = \$ 0 |
| 7991 | split(line, arg, " ") |
| 7992 | if (arg[1] == "#") { |
| 7993 | defundef = arg[2] |
| 7994 | mac1 = arg[3] |
| 7995 | } else { |
| 7996 | defundef = substr(arg[1], 2) |
| 7997 | mac1 = arg[2] |
| 7998 | } |
| 7999 | split(mac1, mac2, "(") #) |
| 8000 | macro = mac2[1] |
| 8001 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8002 | if (D_is_set[macro]) { |
| 8003 | # Preserve the white space surrounding the "#". |
| 8004 | print prefix "define", macro P[macro] D[macro] |
| 8005 | next |
| 8006 | } else { |
| 8007 | # Replace #undef with comments. This is necessary, for example, |
| 8008 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8009 | # on some systems where configure will not decide to define it. |
| 8010 | if (defundef == "undef") { |
| 8011 | print "/*", prefix defundef, macro, "*/" |
| 8012 | next |
| 8013 | } |
| 8014 | } |
| 8015 | } |
| 8016 | { print } |
| 8017 | _ACAWK |
| 8018 | _ACEOF |
| 8019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8020 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 8021 | fi # test -n "$CONFIG_HEADERS" |
| 8022 | |
| 8023 | |
| 8024 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 8025 | shift |
| 8026 | for ac_tag |
| 8027 | do |
| 8028 | case $ac_tag in |
| 8029 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8030 | esac |
| 8031 | case $ac_mode$ac_tag in |
| 8032 | :[FHL]*:*);; |
| 8033 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 8034 | :[FH]-) ac_tag=-:-;; |
| 8035 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8036 | esac |
| 8037 | ac_save_IFS=$IFS |
| 8038 | IFS=: |
| 8039 | set x $ac_tag |
| 8040 | IFS=$ac_save_IFS |
| 8041 | shift |
| 8042 | ac_file=$1 |
| 8043 | shift |
| 8044 | |
| 8045 | case $ac_mode in |
| 8046 | :L) ac_source=$1;; |
| 8047 | :[FH]) |
| 8048 | ac_file_inputs= |
| 8049 | for ac_f |
| 8050 | do |
| 8051 | case $ac_f in |
| 8052 | -) ac_f="$ac_tmp/stdin";; |
| 8053 | *) # Look for the file first in the build tree, then in the source tree |
| 8054 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8055 | # because $ac_f cannot contain `:'. |
| 8056 | test -f "$ac_f" || |
| 8057 | case $ac_f in |
| 8058 | [\\/$]*) false;; |
| 8059 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8060 | esac || |
| 8061 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 8062 | esac |
| 8063 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8064 | as_fn_append ac_file_inputs " '$ac_f'" |
| 8065 | done |
| 8066 | |
| 8067 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8068 | # use $as_me), people would be surprised to read: |
| 8069 | # /* config.h. Generated by config.status. */ |
| 8070 | configure_input='Generated from '` |
| 8071 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8072 | `' by configure.' |
| 8073 | if test x"$ac_file" != x-; then |
| 8074 | configure_input="$ac_file. $configure_input" |
| 8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8076 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 8077 | fi |
| 8078 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8079 | case $configure_input in #( |
| 8080 | *\&* | *\|* | *\\* ) |
| 8081 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8082 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8083 | *) ac_sed_conf_input=$configure_input;; |
| 8084 | esac |
| 8085 | |
| 8086 | case $ac_tag in |
| 8087 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 8088 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 8089 | esac |
| 8090 | ;; |
| 8091 | esac |
| 8092 | |
| 8093 | ac_dir=`$as_dirname -- "$ac_file" || |
| 8094 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8095 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8096 | X"$ac_file" : 'X\(//\)$' \| \ |
| 8097 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 8098 | $as_echo X"$ac_file" | |
| 8099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8100 | s//\1/ |
| 8101 | q |
| 8102 | } |
| 8103 | /^X\(\/\/\)[^/].*/{ |
| 8104 | s//\1/ |
| 8105 | q |
| 8106 | } |
| 8107 | /^X\(\/\/\)$/{ |
| 8108 | s//\1/ |
| 8109 | q |
| 8110 | } |
| 8111 | /^X\(\/\).*/{ |
| 8112 | s//\1/ |
| 8113 | q |
| 8114 | } |
| 8115 | s/.*/./; q'` |
| 8116 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 8117 | ac_builddir=. |
| 8118 | |
| 8119 | case "$ac_dir" in |
| 8120 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8121 | *) |
| 8122 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 8123 | # A ".." for each directory in $ac_dir_suffix. |
| 8124 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 8125 | case $ac_top_builddir_sub in |
| 8126 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8127 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8128 | esac ;; |
| 8129 | esac |
| 8130 | ac_abs_top_builddir=$ac_pwd |
| 8131 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8132 | # for backward compatibility: |
| 8133 | ac_top_builddir=$ac_top_build_prefix |
| 8134 | |
| 8135 | case $srcdir in |
| 8136 | .) # We are building in place. |
| 8137 | ac_srcdir=. |
| 8138 | ac_top_srcdir=$ac_top_builddir_sub |
| 8139 | ac_abs_top_srcdir=$ac_pwd ;; |
| 8140 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 8141 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 8142 | ac_top_srcdir=$srcdir |
| 8143 | ac_abs_top_srcdir=$srcdir ;; |
| 8144 | *) # Relative name. |
| 8145 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8146 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8147 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 8148 | esac |
| 8149 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 8150 | |
| 8151 | |
| 8152 | case $ac_mode in |
| 8153 | :F) |
| 8154 | # |
| 8155 | # CONFIG_FILE |
| 8156 | # |
| 8157 | |
| 8158 | case $INSTALL in |
| 8159 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 8160 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 8161 | esac |
| 8162 | _ACEOF |
| 8163 | |
| 8164 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8165 | # If the template does not know about datarootdir, expand it. |
| 8166 | # FIXME: This hack should be removed a few years after 2.60. |
| 8167 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 8168 | ac_sed_dataroot=' |
| 8169 | /datarootdir/ { |
| 8170 | p |
| 8171 | q |
| 8172 | } |
| 8173 | /@datadir@/p |
| 8174 | /@docdir@/p |
| 8175 | /@infodir@/p |
| 8176 | /@localedir@/p |
| 8177 | /@mandir@/p' |
| 8178 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 8179 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 8180 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8182 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 8183 | _ACEOF |
| 8184 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8185 | ac_datarootdir_hack=' |
| 8186 | s&@datadir@&$datadir&g |
| 8187 | s&@docdir@&$docdir&g |
| 8188 | s&@infodir@&$infodir&g |
| 8189 | s&@localedir@&$localedir&g |
| 8190 | s&@mandir@&$mandir&g |
| 8191 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 8192 | esac |
| 8193 | _ACEOF |
| 8194 | |
| 8195 | # Neutralize VPATH when `$srcdir' = `.'. |
| 8196 | # Shell code in configure.ac might set extrasub. |
| 8197 | # FIXME: do we really want to maintain this feature? |
| 8198 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8199 | ac_sed_extra="$ac_vpsub |
| 8200 | $extrasub |
| 8201 | _ACEOF |
| 8202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8203 | :t |
| 8204 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 8205 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 8206 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 8207 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 8208 | s&@srcdir@&$ac_srcdir&;t t |
| 8209 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 8210 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 8211 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 8212 | s&@builddir@&$ac_builddir&;t t |
| 8213 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 8214 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 8215 | s&@INSTALL@&$ac_INSTALL&;t t |
| 8216 | $ac_datarootdir_hack |
| 8217 | " |
| 8218 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 8219 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8220 | |
| 8221 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 8222 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 8223 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 8224 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 8226 | which seems to be undefined. Please make sure it is defined" >&5 |
| 8227 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 8228 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 8229 | |
| 8230 | rm -f "$ac_tmp/stdin" |
| 8231 | case $ac_file in |
| 8232 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 8233 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 8234 | esac \ |
| 8235 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8236 | ;; |
| 8237 | :H) |
| 8238 | # |
| 8239 | # CONFIG_HEADER |
| 8240 | # |
| 8241 | if test x"$ac_file" != x-; then |
| 8242 | { |
| 8243 | $as_echo "/* $configure_input */" \ |
| 8244 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 8245 | } >"$ac_tmp/config.h" \ |
| 8246 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8247 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 8249 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 8250 | else |
| 8251 | rm -f "$ac_file" |
| 8252 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 8253 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8254 | fi |
| 8255 | else |
| 8256 | $as_echo "/* $configure_input */" \ |
| 8257 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 8258 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 8259 | fi |
| 8260 | ;; |
| 8261 | |
| 8262 | |
| 8263 | esac |
| 8264 | |
| 8265 | done # for ac_tag |
| 8266 | |
| 8267 | |
| 8268 | as_fn_exit 0 |
| 8269 | _ACEOF |
| 8270 | ac_clean_files=$ac_clean_files_save |
| 8271 | |
| 8272 | test $ac_write_fail = 0 || |
| 8273 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 8274 | |
| 8275 | |
| 8276 | # configure is writing to config.log, and then calls config.status. |
| 8277 | # config.status does its own redirection, appending to config.log. |
| 8278 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8279 | # by configure, so config.status won't be able to write to it; its |
| 8280 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8281 | # effectively closing config.log, so it can be properly (re)opened and |
| 8282 | # appended to by config.status. When coming back to configure, we |
| 8283 | # need to make the FD available again. |
| 8284 | if test "$no_create" != yes; then |
| 8285 | ac_cs_success=: |
| 8286 | ac_config_status_args= |
| 8287 | test "$silent" = yes && |
| 8288 | ac_config_status_args="$ac_config_status_args --quiet" |
| 8289 | exec 5>/dev/null |
| 8290 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 8291 | exec 5>>config.log |
| 8292 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8293 | # would make configure fail if this is the last instruction. |
| 8294 | $ac_cs_success || as_fn_exit 1 |
| 8295 | fi |
| 8296 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8298 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 8299 | fi |
| 8300 | |